/* ===== Ward Single Product ===== */
.ward-single-product-page {
	padding: 0 0 80px;
	margin-top: 0;
	background: #fff;
	direction: rtl;
}

.ward-product-top {
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	gap: 28px;
	align-items: start;
	margin-bottom: 48px;
}

/* ——— Gallery ——— */
.ward-product-gallery-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ward-product-main-image {
	background: #f5f6fa;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(16, 26, 74, .08);
	aspect-ratio: 3 / 4;
}

.ward-product-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ward-product-thumbs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	width: 100%;
}

.ward-product-thumb {
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	padding: 0;
	background: #f5f6fa;
	cursor: pointer;
	aspect-ratio: 1;
	transition: border-color .2s ease;
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
}

.ward-product-thumb.is-active,
.ward-product-thumb:hover {
	border-color: #091037;
}

.ward-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ——— Info ——— */
.ward-product-info-col {
	min-width: 0;
}

.ward-product-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.ward-product-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.ward-product-badge--stock.is-instock {
	background: #e6f6ee;
	color: #1a7a4c;
}
.ward-product-badge--stock.is-outofstock {
	background: #fde8e8;
	color: #b42318;
}
.ward-product-badge--cat {
	background: #eef0f5;
	color: #4a5578;
}

.ward-product-title {
	margin: 0 0 10px;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 900;
	color: #091037;
	line-height: 1.35;
}

.ward-product-author {
	margin: 0 0 8px;
	font-size: 16px;
	color: #6b7089;
	font-weight: 600;
}

.ward-product-meta-line {
	margin: 0 0 14px;
	font-size: 13px;
	color: #9aa0b5;
}

.ward-product-short-desc {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.85;
	color: #6b7089;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}
.ward-product-short-desc p {
	margin: 0;
}

/* Buy box */
.ward-product-buy-box {
	border: 1px solid #e5e7ef;
	border-radius: 14px;
	padding: 18px 20px;
	background: #fff;
	margin-bottom: 18px;
}

.ward-product-buy-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.ward-product-cart-form {
	margin: 0;
}

.ward-btn-product-primary,
.ward-btn-product-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	border: 2px solid #091037;
	cursor: pointer;
	transition: all .25s ease;
	text-align: center;
	font-family: inherit;
}

.ward-btn-product-primary {
	background: #091037;
	color: #fff;
}
.ward-btn-product-primary:hover {
	background: #1b2a6b;
	border-color: #1b2a6b;
	color: #fff;
}
.ward-btn-product-primary:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.ward-btn-product-outline {
	background: #fff;
	color: #091037;
}
.ward-btn-product-outline:hover {
	background: #091037;
	color: #fff;
}

.ward-product-share {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ward-product-share-label {
	font-size: 14px;
	font-weight: 700;
	color: #091037;
}

.ward-product-share-icons {
	display: flex;
	gap: 8px;
}

.ward-product-share-icons a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #d1d5e1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #091037;
	text-decoration: none;
	background: #fff;
	transition: all .2s ease;
}
.ward-product-share-icons a svg {
	display: block;
}
.ward-product-share-icons a:hover {
	background: #091037;
	border-color: #091037;
	color: #fff;
}

/* ——— Sidebar info card ——— */
.ward-product-sidebar-col {
	display: flex;
	justify-content: center;
}

.ward-product-info-card {
	width: 90%;
	background: #fff;
	border: 1px solid #e5e7ef;
	border-radius: 16px;
	padding: 22px 20px;
	box-shadow: 0 8px 24px rgba(16, 26, 74, .04);
}

.ward-product-info-card-title {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 800;
	color: #091037;
}

.ward-product-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ward-product-info-list li {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #eef0f5;
	font-size: 13px;
}
.ward-product-info-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.ward-product-info-list li:first-child {
	padding-top: 0;
}

.ward-info-label {
	color: #6b7089;
	font-weight: 600;
}
.ward-info-value {
	color: #091037;
	font-weight: 700;
	text-align: left;
}

.ward-info-price-row .ward-product-price {
	font-size: 15px;
	font-weight: 900;
	color: #091037;
	display: inline-flex;
	justify-content: flex-end;
}
.ward-info-price-row .ward-product-price .woocommerce-Price-amount {
	color: #091037;
}
.ward-info-price-row .ward-product-price del {
	font-size: 12px;
	color: #9aa0b5;
	font-weight: 600;
	margin-inline-start: 6px;
}

.ward-product-info-empty {
	margin: 0;
	font-size: 13px;
	color: #9aa0b5;
}

/* ——— Tabs ——— */
.ward-product-tabs {
	margin-bottom: 56px;
}

.ward-product-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	border-bottom: 1px solid #e5e7ef;
	margin-bottom: 24px;
}

.ward-tab-btn {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	padding: 12px 4px;
	margin-bottom: -1px;
	font-size: 15px;
	font-weight: 700;
	color: #6b7089;
	cursor: pointer;
	font-family: inherit;
}
.ward-tab-btn.is-active {
	color: #091037;
	border-bottom-color: #091037;
}

.ward-tab-panel[hidden] {
	display: none !important;
}

.ward-tab-desc-content {
	color: #4a5578;
	font-size: 15px;
	line-height: 1.95;
	max-width: 920px;
}
.ward-tab-desc-content p {
	margin: 0 0 14px;
}

.ward-product-quote {
	margin: 28px 0 0;
	padding: 8px 20px 8px 0;
	border-right: 4px solid #091037;
	border-left: 0;
	color: #091037;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.8;
	font-style: normal;
}

.ward-product-faq {
	max-width: 820px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ward-faq-item {
	border: 1px solid #e5e7ef;
	border-radius: 12px;
	padding: 14px 18px;
	background: #fff;
}
.ward-faq-item summary {
	cursor: pointer;
	font-weight: 800;
	color: #091037;
	font-size: 15px;
}
.ward-faq-a {
	margin-top: 10px;
	color: #6b7089;
	font-size: 14px;
	line-height: 1.8;
}

.ward-product-specs-table {
	width: 100%;
	max-width: 720px;
	border-collapse: collapse;
}
.ward-product-specs-table th,
.ward-product-specs-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #eef0f5;
	text-align: right;
	font-size: 14px;
}
.ward-product-specs-table th {
	width: 40%;
	color: #6b7089;
	font-weight: 600;
}
.ward-product-specs-table td {
	color: #091037;
	font-weight: 700;
}

.ward-tab-empty {
	color: #9aa0b5;
	font-size: 14px;
}

/* Reviews override */
.ward-tab-panel #reviews,
.ward-tab-panel .woocommerce-Reviews {
	max-width: 820px;
}

/* ——— Related ——— */
.ward-related-books {
	padding-top: 8px;
}

.ward-related-title {
	margin: 0 0 28px;
	font-size: clamp(22px, 2.5vw, 28px);
	font-weight: 900;
	color: #091037;
}

.ward-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.ward-related-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(16, 26, 74, .07);
	display: flex;
	flex-direction: column;
}

.ward-related-media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	background: #eef0f6;
	overflow: hidden;
}

.ward-related-img,
.ward-related-media img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	margin: 0;
}

.ward-related-cat {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #f3e8c8;
	color: #091037;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}

.ward-related-body {
	padding: 14px 16px 10px;
	text-align: right;
	flex: 1;
}

.ward-related-name {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.45;
}
.ward-related-name a {
	color: #091037;
	text-decoration: none;
}

.ward-related-author,
.ward-related-meta {
	margin: 0;
	font-size: 12px;
	color: #9aa0b5;
	line-height: 1.5;
}

.ward-related-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
	background: #f3f4f8;
}

.ward-related-price {
	font-size: 14px;
	font-weight: 800;
	color: #091037;
}
.ward-related-price .woocommerce-Price-amount {
	color: inherit;
}

.ward-related-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 14px;
	border-radius: 8px;
	background: #091037;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}
.ward-related-btn:hover {
	background: #1b2a6b;
	color: #fff;
}

/* Hide default WC bits inside our page if any */
.ward-single-product-page .woocommerce-product-gallery,
.ward-single-product-page .summary.entry-summary,
.ward-single-product-page .related.products,
.ward-single-product-page .upsells.products {
	display: none !important;
}

@media (max-width: 1100px) {
	.ward-product-top {
		grid-template-columns: 1fr 1.4fr;
	}
	.ward-product-sidebar-col {
		grid-column: 1 / -1;
	}
	.ward-product-info-card {
		width: 100%;
	}
	.ward-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 760px) {
	.ward-product-top {
		grid-template-columns: 1fr;
	}
	.ward-product-buy-actions {
		grid-template-columns: 1fr;
	}
	.ward-related-grid {
		grid-template-columns: 1fr;
	}
}
