/* =========================================================================
   WISHDIBA — WOOCOMMERCE OVERRIDES
   Enqueued only on WC pages.
   ========================================================================= */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	background: var(--wd-surface);
	border-radius: var(--radius-md);
	border-left: 4px solid var(--wd-primary-500);
	padding: var(--space-md) var(--space-lg);
	font-size: 14px;
	color: var(--wd-ink-900);
	box-shadow: var(--shadow-xs);
	list-style: none;
	margin-block: var(--space-md);
}
.woocommerce-error  { border-left-color: var(--wd-error); }
.woocommerce-info   { border-left-color: var(--wd-info); }
.woocommerce-message { border-left-color: var(--wd-success); }
.woocommerce-error li, .woocommerce-info li, .woocommerce-message li { list-style: none; padding-left: 0; }
.woocommerce-message a.button, .woocommerce-info a.button { margin-left: 8px; }

/* Shop wrapper */
.wd-shop { padding-bottom: var(--space-4xl); }
.wd-shop__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); margin-top: var(--space-md); }
.wd-shop__content { min-width: 0; }
@media (min-width: 1024px) {
	/* Only apply 2-column layout when the sidebar actually renders */
/* 	.wd-is-shop:not(.wd-is-product) .wd-shop__inner:has(.wd-shop__sidebar) {
		grid-template-columns: 280px minmax(0, 1fr);
	} */
	/* DOM has content first, sidebar second — visually put sidebar on the left */
	.wd-is-shop:not(.wd-is-product) .wd-shop__inner:has(.wd-shop__sidebar) .wd-shop__content { order: 2; }
	.wd-is-shop:not(.wd-is-product) .wd-shop__inner:has(.wd-shop__sidebar) .wd-shop__sidebar { order: 1; }
}

/* Sort bar */
.wd-shop__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-md); border-block: 1px solid var(--wd-border); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.woocommerce-result-count { color: var(--wd-ink-500); font-size: 14px; margin: 0; }
.woocommerce-ordering select { height: 40px; padding-block: 0; }

/* Sidebar */
.wd-shop__sidebar h2, .wd-shop__sidebar .wd-widget__title { font-family: var(--wd-font-body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wd-ink-900); margin-bottom: var(--space-md); margin-top: var(--space-lg); }
.wd-shop__sidebar ul { display: flex; flex-direction: column; gap: 6px; }
.wd-shop__sidebar li a { font-size: 14px; color: var(--wd-ink-700); }
.wd-shop__sidebar li a:hover { color: var(--wd-primary-600); }

/* Loop add-to-cart button (WC injects .add_to_cart_button) */
.wd-shop a.button, .wd-product-card a.add_to_cart_button, .wd-product-card a.product_type_simple, .wd-product-card .added_to_cart {
	display: inline-flex; align-items: center; justify-content: center;
	height: 40px; padding: 0 14px;
	background: var(--wd-ink-900); color: var(--wd-cream);
	border-radius: var(--radius-md);
	font-size: 13px; font-weight: 600;
	text-decoration: none;
	transition: background var(--dur-base), transform var(--dur-base);
}
.wd-shop a.button:hover, .wd-product-card a.add_to_cart_button:hover { background: var(--wd-primary-500); color: var(--wd-ink-900); transform: translateY(-1px); }

/* ---- Single product ---- */
.product .wd-single-product { display: grid; grid-template-columns: 1fr; gap: var(--space-2xl); padding-block: var(--space-xl); }
@media (min-width: 1024px) { .product .wd-single-product { grid-template-columns: 1.1fr 1fr; gap: var(--space-3xl); } }
.wd-single-product__gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.wd-single-product__gallery .flex-control-thumbs img { border-radius: var(--radius-sm); cursor: pointer; opacity: 0.65; transition: opacity var(--dur-base); }
.wd-single-product__gallery .flex-control-thumbs img.flex-active, .wd-single-product__gallery .flex-control-thumbs img:hover { opacity: 1; }
.wd-single-product__gallery img { border-radius: var(--radius-lg); }
.wd-single-product__summary { display: flex; flex-direction: column; gap: var(--space-md); position: relative; }
@media (min-width: 1024px) { .wd-single-product__summary { position: sticky; top: calc(var(--header-h) + var(--space-md)); align-self: start; } }
.wd-single-product__brand { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wd-primary-700); }
.wd-single-product__title { font-size: var(--fs-h1); line-height: 1.1; }
.wd-single-product .price, .wd-single-product__price { font-family: var(--wd-font-body); font-size: var(--fs-price-lg); font-weight: 600; color: var(--wd-ink-900); display: flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.wd-single-product .price del { font-size: 1rem; font-weight: 400; color: var(--wd-ink-500); }
.wd-single-product .price ins { text-decoration: none; }
.wd-single-product .stock { font-size: 13px; color: var(--wd-success); }
.wd-single-product .stock.out-of-stock { color: var(--wd-error); }
.wd-single-product__cart { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-sm); align-items: stretch; }
.wd-single-product .quantity { display: inline-flex; align-items: stretch; border: 1.5px solid var(--wd-border-strong); border-radius: var(--radius-md); overflow: hidden; height: 52px; }
.wd-single-product .quantity .qty { width: 60px; height: 100%; border: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0; }
.wd-single-product .single_add_to_cart_button { flex: 1; min-width: 200px; }
.wd-single-product__trust { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-sm); margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--wd-border); }
.wd-single-product__trust-item { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--wd-ink-700); }
.wd-single-product__trust-item strong { color: var(--wd-ink-900); font-size: 13px; }

/* Tabs (accordion-style) */
.woocommerce-tabs { padding-block: var(--space-3xl); }
.woocommerce-tabs .tabs { display: flex; flex-wrap: wrap; gap: var(--space-md); list-style: none; padding: 0; border-bottom: 1px solid var(--wd-border); margin-bottom: var(--space-lg); }
.woocommerce-tabs .tabs li a { display: inline-block; padding: var(--space-sm) 0; font-weight: 600; color: var(--wd-ink-500); position: relative; }
.woocommerce-tabs .tabs li.active a { color: var(--wd-ink-900); }
.woocommerce-tabs .tabs li.active a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--wd-primary-500); }
.woocommerce-tabs .panel { padding-block: var(--space-md); color: var(--wd-ink-700); line-height: 1.7; }

/* Variations */
.variations { width: 100%; }
.variations td, .variations th { padding: 8px 0; border: 0; }
.variations label { font-weight: 600; font-size: 13px; color: var(--wd-ink-700); }
.variations select { height: 44px; }
.woocommerce-variation-price { margin-block: var(--space-sm); }

/* Cart */
.woocommerce-cart .wd-shop__inner { grid-template-columns: 1fr; gap: var(--space-2xl); }
@media (min-width: 1024px) { .woocommerce-cart .wd-shop__inner { grid-template-columns: 2fr 1fr; } }
.shop_table { background: var(--wd-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.shop_table th { background: var(--wd-surface-alt); padding: var(--space-md); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wd-ink-700); text-align: left; }
.shop_table td { padding: var(--space-md); border-top: 1px solid var(--wd-border); vertical-align: middle; }
.shop_table .product-thumbnail img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-md); }
.shop_table .product-name a { font-weight: 600; color: var(--wd-ink-900); }
.shop_table .product-remove a { color: var(--wd-ink-500); font-size: 18px; }
.shop_table .product-remove a:hover { color: var(--wd-error); }
.shop_table .quantity { display: inline-flex; }
.shop_table .actions { padding: var(--space-md); display: flex; gap: var(--space-sm); align-items: center; flex-wrap: wrap; background: var(--wd-surface); }
.coupon { display: inline-flex; gap: 8px; align-items: center; }
.coupon input[type="text"] { height: 40px; max-width: 200px; }

.cart_totals { background: var(--wd-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); padding: var(--space-xl); position: sticky; top: calc(var(--header-h) + var(--space-md)); align-self: start; }
.cart_totals h2 { font-family: var(--wd-font-body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-md); }
.cart_totals table th { font-weight: 500; color: var(--wd-ink-700); padding: var(--space-sm) 0; border: 0; }
.cart_totals table td { padding: var(--space-sm) 0; text-align: right; border: 0; font-variant-numeric: tabular-nums; }
.cart_totals .order-total td { font-size: 18px; font-weight: 700; }
.cart_totals .wc-proceed-to-checkout { margin-top: var(--space-md); }
.cart_totals .wc-proceed-to-checkout .button { width: 100%; height: 56px; font-size: 16px; }

/* Checkout */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1fr; gap: var(--space-2xl); }
@media (min-width: 1024px) { .woocommerce-checkout form.checkout { grid-template-columns: 1.4fr 1fr; gap: var(--space-3xl); } }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { background: var(--wd-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); padding: var(--space-lg); }
.woocommerce-checkout #order_review_heading { padding-bottom: 0; padding-top: var(--space-lg); margin-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; font-family: var(--wd-font-body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.woocommerce-checkout #order_review { border-radius: 0 0 var(--radius-lg) var(--radius-lg); margin-top: -1px; position: sticky; top: calc(var(--header-h) + var(--space-md)); align-self: start; }
.woocommerce-checkout h3 { font-family: var(--wd-font-display); font-size: 22px; margin-bottom: var(--space-md); }
.woocommerce-checkout .form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--wd-ink-700); margin-bottom: 6px; }
.woocommerce-checkout .form-row { margin-bottom: var(--space-md); }
#payment ul.payment_methods { list-style: none; padding: 0; }
#payment ul.payment_methods li { padding: var(--space-sm) 0; border-bottom: 1px solid var(--wd-border); }
#payment #place_order { width: 100%; height: 56px; font-size: 16px; }

/* My account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; background: var(--wd-surface); border-radius: var(--radius-lg); padding: var(--space-sm); box-shadow: var(--shadow-xs); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; color: var(--wd-ink-700); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--wd-surface-alt); color: var(--wd-ink-900); }
.woocommerce-account .woocommerce-MyAccount-content { background: var(--wd-surface); border-radius: var(--radius-lg); padding: var(--space-xl); box-shadow: var(--shadow-xs); }

@media (min-width: 1024px) {
	.woocommerce-account .wd-shop__inner { grid-template-columns: 260px 1fr !important; }
}

/* Mini-cart inside drawer */
.wd-cart-drawer .woocommerce-mini-cart { display: flex; flex-direction: column; gap: var(--space-md); list-style: none; padding: 0; margin: 0; }
.wd-cart-drawer .mini_cart_item { display: grid; grid-template-columns: 80px 1fr auto; gap: var(--space-sm); align-items: center; padding-bottom: var(--space-md); border-bottom: 1px solid var(--wd-border); position: relative; }
.wd-cart-drawer .mini_cart_item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-md); }
.wd-cart-drawer .mini_cart_item a { font-weight: 600; font-size: 14px; color: var(--wd-ink-900); }
.wd-cart-drawer .mini_cart_item .quantity { font-size: 13px; color: var(--wd-ink-500); }
.wd-cart-drawer .mini_cart_item .remove { color: var(--wd-ink-500); font-size: 18px; line-height: 1; }
.wd-cart-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding-top: var(--space-md); border-top: 2px solid var(--wd-ink-900); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 16px; }
.wd-cart-drawer .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-md); }
.wd-cart-drawer .woocommerce-mini-cart__buttons .button { width: 100%; height: 48px; }
.wd-cart-drawer .woocommerce-mini-cart__buttons .checkout { background: var(--wd-primary-500); color: var(--wd-ink-900); }
.wd-cart-drawer .woocommerce-mini-cart__empty-message { text-align: center; color: var(--wd-ink-500); padding-block: var(--space-2xl); }

/* Order success page */
.woocommerce-order { padding-block: var(--space-2xl); }
.woocommerce-thankyou-order-received { font-family: var(--wd-font-display); font-size: var(--fs-h2); margin-bottom: var(--space-lg); color: var(--wd-ink-900); }
.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-md); padding: var(--space-lg); background: var(--wd-surface-alt); border-radius: var(--radius-lg); list-style: none; margin-bottom: var(--space-xl); }
.woocommerce-order-overview li { display: flex; flex-direction: column; font-size: 13px; color: var(--wd-ink-500); }
.woocommerce-order-overview li strong { color: var(--wd-ink-900); font-size: 15px; }

/* =========================================================================
   WISHDIBA — SHOP HERO
   ========================================================================= */
.wd-shop-hero {
	position: relative;
	background: linear-gradient(135deg, var(--wd-primary-50) 0%, var(--wd-surface-alt) 60%, var(--wd-cream) 100%);
	border-radius: var(--radius-xl);
	padding: var(--space-3xl) var(--space-xl);
	margin-bottom: var(--space-xl);
	overflow: hidden;
	isolation: isolate;
}
.wd-shop-hero::before,
.wd-shop-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.55;
	pointer-events: none;
	z-index: -1;
}
.wd-shop-hero::before { width: 320px; height: 320px; background: var(--wd-primary-300); top: -80px; right: -80px; }
.wd-shop-hero::after  { width: 260px; height: 260px; background: var(--wd-secondary-100); bottom: -100px; left: -60px; }
.wd-shop-hero__inner { max-width: 760px; display: flex; flex-direction: column; gap: var(--space-sm); }
.wd-shop-hero__eyebrow {
	font-family: var(--wd-font-body);
	font-size: 12px; font-weight: 700;
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--wd-primary-700);
}
.wd-shop-hero__title {
	font-family: var(--wd-font-display);
	font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
	line-height: 1.05;
	color: var(--wd-ink-900);
	margin: 0;
}
.wd-shop-hero__desc { font-size: 15px; color: var(--wd-ink-700); max-width: 620px; }
.wd-shop-hero__desc p { margin: 0; }
.wd-shop-hero__meta {
	display: inline-flex; align-items: baseline; gap: 6px;
	padding: 6px 14px;
	background: rgba(255,255,255,0.7);
	border-radius: var(--radius-pill);
	backdrop-filter: blur(6px);
	width: fit-content;
	margin-top: 4px;
}
.wd-shop-hero__count { font-weight: 700; font-size: 15px; color: var(--wd-ink-900); font-variant-numeric: tabular-nums; }
.wd-shop-hero__count-label { font-size: 13px; color: var(--wd-ink-500); }

.wd-shop-hero__chips {
	display: flex; flex-wrap: wrap; gap: 8px;
	margin-top: var(--space-lg);
	position: relative; z-index: 1;
}
.wd-chip {
	display: inline-flex; align-items: center;
	padding: 8px 16px;
	background: rgba(255,255,255,0.7);
	border: 1px solid rgba(28,26,23,0.08);
	border-radius: var(--radius-pill);
	font-size: 13px; font-weight: 500;
	color: var(--wd-ink-700);
	transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base), transform var(--dur-base);
	backdrop-filter: blur(4px);
}
.wd-chip:hover { background: #fff; color: var(--wd-primary-700); border-color: var(--wd-primary-300); transform: translateY(-1px); }
.wd-chip.is-active { background: var(--wd-ink-900); color: var(--wd-cream); border-color: var(--wd-ink-900); }

@media (max-width: 640px) {
	.wd-shop-hero { padding: var(--space-xl) var(--space-md); }
	.wd-shop-hero__title { font-size: 1.9rem; }
}

/* =========================================================================
   WISHDIBA — SHOP TOOLBAR REFINEMENTS
   ========================================================================= */
.wd-shop__bar {
	background: var(--wd-surface);
	border: 1px solid var(--wd-border);
	border-radius: var(--radius-lg);
	padding: 10px 16px;
	box-shadow: var(--shadow-xs);
}
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select {
	background-color: var(--wd-surface-alt);
	border: 1px solid var(--wd-border);
	border-radius: var(--radius-md);
	font-weight: 500;
	padding: 0 36px 0 14px;
	cursor: pointer;
}
.woocommerce-ordering select:hover { border-color: var(--wd-primary-300); }
.woocommerce-result-count { font-weight: 500; }

/* =========================================================================
   WISHDIBA — PRODUCT CARD REDESIGN (loop)
   ========================================================================= */
.wd-product-card {
	background: var(--wd-surface);
	border: 1px solid var(--wd-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	position: relative;
	display: flex; flex-direction: column;
	box-shadow: var(--shadow-xs);
	transition: transform var(--dur-slow) var(--ease-standard),
	            box-shadow var(--dur-slow) var(--ease-standard),
	            border-color var(--dur-slow) var(--ease-standard);
}
.wd-product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--wd-primary-300);
}
.wd-product-card__media {
	position: relative;
	aspect-ratio: 4/5;
	overflow: hidden;
	background: var(--wd-surface-alt);
}
.wd-product-card__media-link { display: block; width: 100%; height: 100%; position: relative; }
.wd-product-card__img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slower) var(--ease-standard),
	            opacity var(--dur-slower) var(--ease-standard);
}
.wd-product-card__img--alt {
	position: absolute; inset: 0;
	opacity: 0;
	transform: scale(1.02);
}
.wd-product-card:hover .wd-product-card__img--main { opacity: 0; transform: scale(1.06); }
.wd-product-card:hover .wd-product-card__img--alt  { opacity: 1; transform: scale(1); }

/* Fallback when there's no gallery image */
.wd-product-card:hover .wd-product-card__img--main:only-child { opacity: 1; transform: scale(1.05); }

.wd-product-card__badges {
	position: absolute;
	top: 12px; left: 12px;
	display: flex; flex-direction: column; gap: 6px;
	z-index: 2;
}
.wd-badge {
	display: inline-flex; align-items: center;
	padding: 4px 10px;
	font-size: 11px; font-weight: 700;
	letter-spacing: 0.04em; text-transform: uppercase;
	border-radius: var(--radius-pill);
	background: var(--wd-ink-900); color: var(--wd-cream);
	line-height: 1.2;
	box-shadow: var(--shadow-sm);
}
.wd-badge--sale { background: var(--wd-accent-pink); color: #fff; }
.wd-badge--new  { background: var(--wd-accent-green); color: #fff; }
.wd-badge--best { background: var(--wd-primary-500); color: var(--wd-ink-900); }
.wd-badge--out  { background: var(--wd-ink-500); color: #fff; }

.wd-product-card__wishlist {
	position: absolute;
	top: 12px; right: 12px;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,0.94);
	backdrop-filter: blur(6px);
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--wd-ink-700);
	box-shadow: var(--shadow-xs);
	transform: translateY(-4px);
	opacity: 0;
	transition: transform var(--dur-slow) var(--ease-standard),
	            opacity var(--dur-slow) var(--ease-standard),
	            color var(--dur-base),
	            background var(--dur-base);
	z-index: 2;
}
.wd-product-card:hover .wd-product-card__wishlist,
.wd-product-card:focus-within .wd-product-card__wishlist { opacity: 1; transform: translateY(0); }
.wd-product-card__wishlist:hover { color: var(--wd-accent-pink); background: #fff; }
.wd-product-card__wishlist.is-active { color: var(--wd-accent-pink); }
.wd-product-card__wishlist.is-active svg { fill: currentColor; }

.wd-product-card__quickview {
	position: absolute;
	left: 12px; right: 12px; bottom: 12px;
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 40px;
	background: var(--wd-ink-900);
	color: var(--wd-cream);
	font-size: 13px; font-weight: 600;
	border-radius: var(--radius-md);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--dur-slow) var(--ease-standard),
	            transform var(--dur-slow) var(--ease-standard),
	            background var(--dur-base);
	z-index: 2;
	text-decoration: none;
}
.wd-product-card:hover .wd-product-card__quickview,
.wd-product-card:focus-within .wd-product-card__quickview { opacity: 1; transform: translateY(0); }
.wd-product-card__quickview:hover { background: var(--wd-primary-500); color: var(--wd-ink-900); }

.wd-product-card__body {
	padding: var(--space-md);
	display: flex; flex-direction: column; gap: 6px;
	flex: 1;
}
.wd-product-card__cat {
	font-size: 11px; font-weight: 700;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--wd-primary-600);
}
.wd-product-card__title {
	font-family: var(--wd-font-body);
	font-size: 15px; font-weight: 600;
	color: var(--wd-ink-900);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 42px;
	margin: 0;
}
.wd-product-card__title a { color: inherit; }
.wd-product-card__title a:hover { color: var(--wd-primary-600); }
.wd-product-card__rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--wd-ink-500); }
.wd-product-card__rating-stars { color: var(--wd-accent-yellow); letter-spacing: 1px; }
.wd-product-card__rating-count { color: var(--wd-ink-500); font-size: 12px; }
.wd-product-card__foot {
	display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
	margin-top: auto; padding-top: var(--space-sm);
	border-top: 1px dashed var(--wd-border);
}
.wd-product-card__price {
	font-size: 17px; font-weight: 700;
	color: var(--wd-ink-900);
	font-variant-numeric: tabular-nums;
	display: flex; align-items: baseline; gap: 8px;
}
.wd-product-card__price del { font-size: 13px; font-weight: 400; color: var(--wd-ink-400); }
.wd-product-card__price ins { text-decoration: none; color: var(--wd-accent-pink); }
.wd-product-card__add .wd-button--sm { padding-inline: 14px; }

/* =========================================================================
   WISHDIBA — SINGLE PRODUCT REDESIGN
   ========================================================================= */
.product .wd-single-product {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2xl);
	padding-block: var(--space-xl) var(--space-2xl);
}
@media (min-width: 1024px) {
	.product .wd-single-product {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: var(--space-3xl);
	}
}

/* -- Gallery -- */
.wd-single-product__gallery {
	position: relative;
	background: var(--wd-surface);
	border-radius: var(--radius-xl);
	padding: var(--space-md);
	box-shadow: var(--shadow-xs);
}
.wd-single-product__gallery .woocommerce-product-gallery__image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--wd-surface-alt);
	aspect-ratio: 1/1;
}
.wd-single-product__gallery .woocommerce-product-gallery__image img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: var(--radius-lg);
	transition: transform var(--dur-slower) var(--ease-standard);
}
.wd-single-product__gallery .woocommerce-product-gallery__image:hover img { transform: scale(1.04); }
.wd-single-product__gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 22px; right: 22px;
	width: 44px; height: 44px;
	background: rgba(255,255,255,0.94);
	backdrop-filter: blur(6px);
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--wd-ink-900);
	box-shadow: var(--shadow-sm);
	font-size: 0; z-index: 5;
}
.wd-single-product__gallery .woocommerce-product-gallery__trigger::before {
	content: "⤢";
	font-size: 18px;
}
.wd-single-product__gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-top: 12px;
	padding: 0;
	list-style: none;
}
.wd-single-product__gallery .flex-control-thumbs li { cursor: pointer; }
.wd-single-product__gallery .flex-control-thumbs img {
	border-radius: var(--radius-md);
	opacity: 0.6;
	transition: opacity var(--dur-base), border-color var(--dur-base), transform var(--dur-base);
	border: 2px solid transparent;
	background: var(--wd-surface-alt);
	aspect-ratio: 1/1; object-fit: cover;
}
.wd-single-product__gallery .flex-control-thumbs img:hover { opacity: 0.9; transform: translateY(-1px); }
.wd-single-product__gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: var(--wd-primary-500);
}

/* -- Summary -- */
.wd-single-product__summary {
	display: flex; flex-direction: column;
	gap: var(--space-md);
	position: relative;
}
@media (min-width: 1024px) {
	.wd-single-product__summary {
		position: sticky;
		top: calc(var(--header-h) + var(--space-md));
		align-self: start;
	}
}
.wd-single-product__brand {
	font-family: var(--wd-font-body);
	font-size: 12px; font-weight: 700;
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--wd-primary-700);
}
.wd-single-product__brand a { color: inherit; }
.wd-single-product__brand a:hover { color: var(--wd-primary-500); }
.wd-single-product__title {
	font-family: var(--wd-font-display);
	font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: var(--wd-ink-900);
	margin: 0;
}
.wd-single-product__rating { display: inline-flex; align-items: center; gap: 10px; }
.wd-single-product__rating-stars { color: var(--wd-accent-yellow); letter-spacing: 2px; font-size: 15px; }
.wd-single-product__rating-meta { font-size: 13px; color: var(--wd-ink-500); }
.wd-single-product__rating-meta a { color: var(--wd-ink-700); text-decoration: underline; text-underline-offset: 3px; }
.wd-single-product__rating-meta a:hover { color: var(--wd-primary-600); }

.wd-single-product__price-wrap {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
	padding: var(--space-md) var(--space-lg);
	background: linear-gradient(135deg, var(--wd-primary-50), var(--wd-surface-alt));
	border-radius: var(--radius-lg);
	border: 1px solid var(--wd-border);
}
.wd-single-product__price,
.wd-single-product .price {
	font-family: var(--wd-font-body);
	font-size: clamp(1.5rem, 1.2vw + 1rem, 2.25rem);
	font-weight: 700;
	color: var(--wd-ink-900);
	display: flex; align-items: baseline; gap: 10px;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	margin: 0;
}
.wd-single-product .price del,
.wd-single-product__price del { font-size: 0.55em; font-weight: 400; color: var(--wd-ink-500); }
.wd-single-product .price ins,
.wd-single-product__price ins { text-decoration: none; color: var(--wd-accent-pink); }

.wd-single-product__stock {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 600;
	padding: 6px 12px;
	background: #fff;
	border-radius: var(--radius-pill);
	color: var(--wd-success);
}
.wd-single-product__stock.out-of-stock { color: var(--wd-error); }
.wd-single-product__stock .wd-dot {
	width: 8px; height: 8px; border-radius: 50%; background: currentColor;
	box-shadow: 0 0 0 4px rgba(46,139,74,0.15);
}

.wd-single-product__short {
	color: var(--wd-ink-700);
	line-height: 1.65;
	font-size: 15px;
}
.wd-single-product__short p { margin: 0; }
.wd-single-product__short p + p { margin-top: 8px; }

/* Variations */
.wd-single-product .variations {
	width: 100%;
	background: var(--wd-surface);
	border: 1px solid var(--wd-border);
	border-radius: var(--radius-md);
	padding: 8px 14px;
}
.wd-single-product .variations tr + tr td,
.wd-single-product .variations tr + tr th { border-top: 1px dashed var(--wd-border); }
.wd-single-product .variations td, .wd-single-product .variations th { padding: 10px 0; border: 0; }
.wd-single-product .variations label { font-weight: 700; font-size: 13px; color: var(--wd-ink-900); text-transform: uppercase; letter-spacing: 0.04em; }
.wd-single-product .variations select { height: 46px; border-radius: var(--radius-md); background: var(--wd-surface-alt); border: 1px solid var(--wd-border); }
.wd-single-product .reset_variations { font-size: 12px; color: var(--wd-ink-500); text-decoration: underline; }

/* Cart area */
.wd-single-product__cart-area .cart {
	display: flex; flex-wrap: wrap; gap: var(--space-sm);
	align-items: stretch;
	margin: 0;
}
.wd-single-product .quantity {
	display: inline-flex; align-items: stretch;
	border: 1.5px solid var(--wd-border-strong);
	border-radius: var(--radius-md);
	overflow: hidden;
	height: 56px;
	background: var(--wd-surface);
}
.wd-single-product .quantity .qty {
	width: 68px; height: 100%;
	border: 0; text-align: center;
	font-weight: 700; font-size: 15px;
	font-variant-numeric: tabular-nums;
	padding: 0;
	background: transparent;
}
.wd-single-product .single_add_to_cart_button,
.wd-single-product button.single_add_to_cart_button {
	flex: 1; min-width: 240px;
	height: 56px;
	background: var(--wd-ink-900);
	color: var(--wd-cream);
	border-radius: var(--radius-md);
	font-size: 15px; font-weight: 700;
	letter-spacing: 0.02em; text-transform: uppercase;
	transition: background var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base);
	border: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.wd-single-product .single_add_to_cart_button:hover {
	background: var(--wd-primary-500); color: var(--wd-ink-900);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

/* Meta list */
.wd-single-product__meta {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-direction: column; gap: 8px;
	font-size: 13px;
	color: var(--wd-ink-700);
	padding-top: var(--space-md);
	border-top: 1px dashed var(--wd-border);
}
.wd-single-product__meta li { display: flex; gap: 8px; }
.wd-single-product__meta li span {
	min-width: 90px;
	font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
	font-size: 11px; color: var(--wd-ink-500);
	padding-top: 2px;
}
.wd-single-product__meta li strong { font-weight: 500; color: var(--wd-ink-900); }
.wd-single-product__meta a { color: var(--wd-ink-900); text-decoration: underline; text-underline-offset: 3px; }
.wd-single-product__meta a:hover { color: var(--wd-primary-600); }

/* Trust bar */
.wd-single-product__trust {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-top: var(--space-md);
	padding-top: var(--space-md);
	border-top: 1px solid var(--wd-border);
}
@media (min-width: 640px) { .wd-single-product__trust { grid-template-columns: repeat(4, 1fr); } }
.wd-single-product__trust-item {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 12px;
	background: var(--wd-surface-alt);
	border-radius: var(--radius-md);
}
.wd-single-product__trust-icon {
	flex: 0 0 auto;
	width: 36px; height: 36px;
	border-radius: 10px;
	background: #fff;
	color: var(--wd-primary-600);
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-xs);
}
.wd-single-product__trust-item strong { display: block; color: var(--wd-ink-900); font-size: 13px; font-weight: 700; }
.wd-single-product__trust-item span { display: block; font-size: 11.5px; color: var(--wd-ink-500); }

/* =========================================================================
   WISHDIBA — SINGLE PRODUCT: TABS + RELATED
   ========================================================================= */
.woocommerce-tabs {
	padding-block: var(--space-2xl);
	background: var(--wd-surface);
	border-radius: var(--radius-xl);
	padding: var(--space-xl);
	box-shadow: var(--shadow-xs);
	margin-block: var(--space-xl);
}
.woocommerce-tabs .tabs {
	display: flex; flex-wrap: wrap; gap: var(--space-lg);
	list-style: none; padding: 0;
	border-bottom: 1px solid var(--wd-border);
	margin-bottom: var(--space-lg);
}
.woocommerce-tabs .tabs li { padding: 0; margin: 0; }
.woocommerce-tabs .tabs li a {
	display: inline-block;
	padding: var(--space-sm) 0;
	font-family: var(--wd-font-body);
	font-weight: 700;
	font-size: 14px;
	color: var(--wd-ink-500);
	letter-spacing: 0.02em; text-transform: uppercase;
	position: relative;
	transition: color var(--dur-base);
}
.woocommerce-tabs .tabs li a:hover { color: var(--wd-ink-900); }
.woocommerce-tabs .tabs li.active a { color: var(--wd-ink-900); }
.woocommerce-tabs .tabs li.active a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 3px;
	background: var(--wd-primary-500);
	border-radius: 3px 3px 0 0;
}
.woocommerce-tabs .panel {
	padding-block: var(--space-md);
	color: var(--wd-ink-700);
	line-height: 1.75;
	font-size: 15px;
}
.woocommerce-tabs .panel h2 {
	font-family: var(--wd-font-display);
	font-size: var(--fs-h3);
	margin-bottom: var(--space-md);
	color: var(--wd-ink-900);
}

/* Reviews */
#reviews .commentlist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-md); }
#reviews .comment_container {
	display: flex; gap: var(--space-md);
	background: var(--wd-surface-alt);
	padding: var(--space-md);
	border-radius: var(--radius-md);
}
#reviews .avatar { width: 48px; height: 48px; border-radius: 50%; }
#reviews .comment-text { flex: 1; }
#reviews .star-rating { color: var(--wd-accent-yellow); }
#review_form_wrapper { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--wd-border); }
#review_form_wrapper #reply-title { font-family: var(--wd-font-display); font-size: var(--fs-h4); display: block; margin-bottom: var(--space-md); }
#review_form_wrapper textarea { min-height: 120px; }

/* Related / Upsells */
.related.products,
.upsells.products {
	padding-block: var(--space-2xl);
	margin-top: var(--space-xl);
}
.related.products > h2,
.upsells.products > h2 {
	font-family: var(--wd-font-display);
	font-size: var(--fs-h2);
	margin-bottom: var(--space-lg);
	position: relative;
	padding-bottom: 12px;
}
.related.products > h2::after,
.upsells.products > h2::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 60px; height: 3px;
	background: var(--wd-primary-500);
	border-radius: 3px;
}
.related.products ul.products,
.upsells.products ul.products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-md);
	list-style: none; padding: 0; margin: 0;
}
@media (min-width: 640px) {
	.related.products ul.products,
	.upsells.products ul.products { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
}
@media (min-width: 1024px) {
	.related.products ul.products,
	.upsells.products ul.products { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.wd-product-card, .wd-product-card__img, .wd-product-card__wishlist, .wd-product-card__quickview,
	.wd-single-product__gallery .woocommerce-product-gallery__image img { transition: none !important; }
	.wd-product-card:hover { transform: none; }
}
