/* ============================================================
   Digi4u storefront theme — design system + components
   ============================================================ */

/* Single lightweight font file (~50KB). Heavier weights (headings/buttons) are
   synthesised by the browser, so only one request is ever made. */
@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg-page: #eff3f6;
	--bg-card: #ffffff;
	--primary: #2f3ac9;
	--primary-600: #2530a8;
	--primary-50: #ecedfb;
	--text: #1e293b;
	--text-2: #475569;
	--text-3: #94a3b8;
	--border: #eef2f6;
	--border-2: #e2e8f0;
	--success: #16a34a;
	--danger: #dc2626;
	--radius: 16px;
	--radius-sm: 12px;
	--font: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font) !important;
	background: var(--bg-page);
	color: var(--text);
	direction: rtl;
	font-size: 14px;
	line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1380px; margin-inline: auto; padding-inline: 16px; }
.section { padding-block: 24px; }
.hidden-sm { }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
	padding: 10px 20px; transition: all .15s ease; cursor: pointer; line-height: 1;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-light { background: #fff; color: var(--primary); border: 1px solid var(--border-2); }
.btn-light:hover { background: #f8fafc; }
.btn-soft { background: var(--primary-50); color: var(--primary); }
.btn-soft:hover { background: #d6eafb; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.header-top { border-bottom: 1px solid var(--border); }
.header-top .container { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand img { width: auto; height: 40px; object-fit: contain; display: block; }
.brand-name { font-size: 22px; font-weight: 800; color: var(--primary); }
.header-search { flex: 1; max-width: 620px; }
.header-search form { position: relative; }
.header-search input {
	width: 100%; height: 44px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
	padding: 0 16px; font-family: inherit; font-size: 13px; background: #f8fafc;
}
.header-search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.header-search button { position: absolute; inset-inline-start: 6px; top: 6px; height: 32px; width: 32px; border: none; background: transparent; color: var(--text-3); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.icon-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; color: var(--text-2); background: transparent; }
.icon-btn:hover { background: #f1f5f9; color: var(--text); }
.icon-btn svg { width: 24px; height: 24px; }
.cart-badge { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Bottom nav row */
.header-nav { background: #fff; border-bottom: 1px solid var(--border); }
.header-nav .container { display: flex; align-items: center; height: 48px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 0 14px; height: 48px; display: flex; align-items: center; font-size: 13px; color: var(--text-2); }
.nav-links a:hover { color: var(--primary); }

/* ── Mega menu ─────────────────────────────────────────────── */
.mega { position: relative; height: 48px; }
.mega-trigger {
	display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 16px;
	font-weight: 700; font-size: 13px; color: var(--primary); background: transparent; border: none;
	border-inline-end: 1px solid var(--border);
}
.mega-trigger svg { width: 18px; height: 18px; }
.mega-panel {
	position: absolute; top: 100%; inset-inline-start: 0; z-index: 50; display: none;
	width: 940px; max-width: 95vw; background: #fff; border: 1px solid var(--border-2); border-top: none;
	border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 20px 40px -16px rgba(15,23,42,.25);
}
.mega:hover .mega-panel, .mega.open .mega-panel { display: flex; }
.mega-parents { width: 220px; flex-shrink: 0; border-inline-end: 1px solid var(--border); padding: 8px 0; max-height: 460px; overflow-y: auto; }
.mega-parent { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.mega-parent svg { width: 20px; height: 20px; flex-shrink: 0; }
.mega-parent .chev { margin-inline-start: auto; opacity: .5; width: 16px; height: 16px; }
.mega-parent:hover, .mega-parent.active { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.mega-content { flex: 1; padding: 20px; display: none; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; align-content: start; max-height: 460px; overflow-y: auto; }
.mega-content.active { display: grid; }
.mega-group > a { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border-2); padding-bottom: 8px; margin-bottom: 8px; }
.mega-group > a svg { width: 16px; height: 16px; color: var(--primary); }
.mega-group ul { list-style: none; margin: 0; padding: 0; }
.mega-group li a { display: block; font-size: 12px; color: var(--text-3); padding: 3px 0; }
.mega-group li a:hover { color: var(--primary); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero { padding-top: 16px; }
/* Slides are stacked in ONE grid cell (in-flow) rather than position:absolute,
   so the first slide's image is a normal in-flow element that Chrome records as
   the LCP. The fade transition is enabled by JS (.ready) only after load so the
   first paint is a clean static image. */
.slider { position: relative; display: grid; border-radius: var(--radius); overflow: hidden; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; }
.slide.active { opacity: 1; visibility: visible; z-index: 1; pointer-events: auto; }
.slider.ready .slide { transition: opacity .6s ease, visibility 0s linear .6s; }
.slider.ready .slide.active { transition: opacity .6s ease; }
.slide a { display: block; line-height: 0; }
.slide img { width: 100%; height: auto; aspect-ratio: 1600 / 420; object-fit: cover; object-position: center; display: block; }
.slider-dots { position: absolute; bottom: 16px; inset-inline-start: 50%; transform: translateX(50%); display: flex; gap: 8px; z-index: 5; }
.slider-dots button { width: 8px; height: 8px; border-radius: 9px; border: none; background: rgba(255,255,255,.6); transition: all .2s; }
.slider-dots button.active { width: 24px; background: #fff; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,.8); color: var(--text); display: flex; align-items: center; justify-content: center; }
.slider-arrow:hover { background: #fff; }
.slider-arrow svg { width: 20px; height: 20px; }
.slider-arrow.prev { inset-inline-start: 12px; }
.slider-arrow.next { inset-inline-end: 12px; }

/* ============================================================
   CATEGORY CARDS ROW
   ============================================================ */
.cat-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 12px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cat-card .thumb { width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: all .2s; }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-card:hover .thumb { transform: translateY(-2px); border-color: #bfdbf3; box-shadow: 0 8px 18px -10px rgba(26,115,199,.4); }
.cat-card:hover .thumb img { transform: scale(1.05); }
.cat-card span { font-size: 12px; font-weight: 500; color: var(--text-2); text-align: center; }
.cat-card:hover span { color: var(--primary); }

/* ============================================================
   SECTION HEADER + PRODUCT GRID
   ============================================================ */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sec-title { display: flex; align-items: center; gap: 12px; }
.sec-title .ic { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; }
.sec-title .ic svg { width: 22px; height: 22px; }
.sec-title h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--text); }

.product-card-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(15,23,42,.05); padding: 20px 24px; }
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }

/* ── Product card ──────────────────────────────────────────── */
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: all .3s; }
.pcard:hover { transform: translateY(-2px); border-color: #bfdbf3; box-shadow: 0 10px 22px -12px rgba(26,115,199,.45); }
.pcard .wish { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--text-3); border: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pcard .wish:hover { color: var(--danger); }
.pcard .wish svg { width: 16px; height: 16px; }
.pcard .avail { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.88); border-radius: 9px; padding: 2px 7px; box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: 9px; font-weight: 600; }
.pcard .avail .dot { width: 6px; height: 6px; border-radius: 50%; }
.pcard .pimg { position: relative; aspect-ratio: 1; background: linear-gradient(to bottom,#f8fafc,#fff); padding: 12px; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.pcard:hover .pimg img { transform: scale(1.08); }
.pcard .pbody { display: flex; flex-direction: column; flex: 1; padding: 4px 10px 10px; }
.pcard .pcat { align-self: flex-start; background: #f1f5f9; color: var(--text-3); font-size: 10px; border-radius: 5px; padding: 1px 7px; margin-bottom: 4px; }
.pcard:hover .pcat { background: var(--primary-50); color: var(--primary); }
.pcard .ptitle { font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--text); margin: 0 0 8px; min-height: 2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard:hover .ptitle { color: var(--primary-600); }
.pcard .pfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.pcard .price { font-size: 14px; font-weight: 800; color: var(--text); }
.pcard .price small { font-size: 10px; font-weight: 400; color: var(--text-3); }
.pcard .price.muted { font-size: 12px; font-weight: 500; color: var(--primary); }
.pcard .addcart { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg,var(--primary),var(--primary-600)); color: #fff; border: none; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.pcard .addcart:hover { transform: scale(1.1); }
.pcard .addcart svg { width: 18px; height: 18px; }
.pcard .reqbtn { flex-shrink: 0; font-size: 11px; padding: 6px 10px; border-radius: 9px; background: var(--primary-50); color: var(--primary); border: none; }

/* ============================================================
   BLOG / MAGAZINE
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(15,23,42,.05); transition: all .3s; }
.bcard:hover { box-shadow: 0 10px 22px -12px rgba(15,23,42,.2); }
.bcard .bimg { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg,var(--primary),#1e3a8a); overflow: hidden; }
.bcard .bimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bcard:hover .bimg img { transform: scale(1.05); }
.bcard .bimg .ph { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(255,255,255,.45); }
.bcard .bimg .ph svg { width: 48px; height: 48px; }
.bcard .bbadge { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(255,255,255,.9); color: var(--primary); font-size: 11px; font-weight: 500; border-radius: 8px; padding: 3px 9px; }
.bcard .bbody { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.bcard h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard:hover h3 { color: var(--primary); }
.bcard p { font-size: 12px; color: var(--text-3); margin: 0 0 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard .bmeta { margin-top: auto; font-size: 11px; color: var(--text-3); }

/* ============================================================
   FOOTER
   ============================================================ */

/* ============================================================
   WooCommerce archive / single (light touch)
   ============================================================ */
.page-title { font-size: 22px; font-weight: 700; margin: 24px 0 16px; }
.wc-empty { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; text-align: center; color: var(--text-3); }
.woocommerce-breadcrumb { font-size: 12px; color: var(--text-3); margin: 16px 0; }
.woocommerce-breadcrumb a { color: var(--primary); }

/* Mobile menu drawer */
.menu-toggle { display: none; }
.mobile-only { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.cat-row { grid-template-columns: repeat(8, 1fr); }
	.product-grid { grid-template-columns: repeat(4, 1fr); }
	/* Slider scales with the viewport instead of a fixed height. */
	.slide img { aspect-ratio: 1600 / 420; }
}
@media (max-width: 768px) {
	/* Taller, friendlier crop on phones so the banner reads correctly. */
	.slide img { aspect-ratio: 16 / 9; }
	.cat-row { grid-template-columns: repeat(4, 1fr); }
	.product-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-grid { grid-template-columns: 1fr; }
	.header-nav, .header-search.desktop { display: none; }
	.menu-toggle { display: flex; }
	.slider-arrow { width: 30px; height: 30px; }
	.slider-arrow svg { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
	.slide img { aspect-ratio: 3 / 2; }
	.slider { border-radius: 12px; }
}

/* ============================================================
   WooCommerce pages (single product, shop archive, cart, checkout)
   ============================================================ */
.woo-wrap { padding-block: 24px; }
.card-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(15,23,42,.05); padding: 24px 28px; }

/* Brand buttons across WooCommerce */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .button.alt,
.woocommerce .single_add_to_cart_button, .wc-block-components-button.contained {
	background: var(--primary) !important; color: #fff !important; border: none !important;
	border-radius: var(--radius-sm) !important; font-weight: 700 !important; font-family: inherit !important;
	padding: 12px 22px !important; transition: background .15s ease !important; box-shadow: none !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce .button.alt:hover, .woocommerce .single_add_to_cart_button:hover,
.wc-block-components-button.contained:hover { background: var(--primary-600) !important; }

/* ── Single product ───────────────────────────────────────── */
.single-product .woo-wrap { max-width: 1100px; }
.single-product div.product {
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: 0 1px 3px rgba(15,23,42,.05); padding: 28px; display: flex; flex-wrap: wrap; gap: 32px;
}
.single-product div.product .woocommerce-product-gallery { width: 46% !important; margin: 0 !important; float: none !important; }
.single-product div.product .summary { width: calc(54% - 32px) !important; margin: 0 !important; float: none !important; }
.single-product .product_title { font-size: 22px; font-weight: 800; line-height: 1.8; margin: 0 0 14px; color: var(--text); }
.single-product .summary .price,
.single-product .summary .price ins { color: var(--success) !important; font-weight: 800; font-size: 22px; }
.single-product .summary .price del { color: var(--text-3); font-weight: 400; font-size: 15px; }
.single-product .woocommerce-product-details__short-description { color: var(--text-2); line-height: 2; font-size: 13px; margin-bottom: 16px; }
.single-product form.cart { margin: 18px 0 !important; display: flex; gap: 12px; align-items: center; }
.single-product .quantity input { height: 46px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); width: 72px; text-align: center; }
.single-product .single_add_to_cart_button { height: 46px; font-size: 15px !important; }
.single-product .product_meta { font-size: 12px; color: var(--text-3); margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.single-product .woocommerce-tabs { width: 100%; margin-top: 8px; }
.single-product .woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 8px; padding: 0; border-bottom: 1px solid var(--border-2); margin: 0 0 16px; }
.single-product .woocommerce-tabs ul.tabs li { background: transparent; border: none; }
.single-product .woocommerce-tabs ul.tabs li a { color: var(--text-2); font-weight: 600; padding: 8px 14px; display: inline-block; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--primary); border-bottom: 2px solid var(--primary); }
.single-product table.shop_attributes th { color: var(--text-2); }
.single-product .related.products { width: 100%; }
.single-product .related.products > h2 { font-size: 18px; font-weight: 700; margin: 8px 0 16px; }

/* ── Shop / category archive grid (uses our .pcard inside li.product) ──────── */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 12px;
	margin: 0 0 24px !important; padding: 0 !important; list-style: none !important;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important;
}
.woocommerce ul.products li.product::before { display: none; }
/* WC clearfix pseudo-elements become empty grid cells — drop them. */
.woocommerce ul.products::before, .woocommerce ul.products::after, .woocommerce-page ul.products::before, .woocommerce-page ul.products::after { content: none !important; display: none !important; }
.single-product .related.products ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 768px) { .single-product .related.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.woocommerce-result-count { color: var(--text-3); font-size: 13px; }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--border-2); border-radius: 10px; padding: 8px; font-family: inherit; }
.woocommerce nav.woocommerce-pagination ul { border: none; gap: 6px; display: flex; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	border: 1px solid var(--border-2); border-radius: 10px; background: #fff; color: var(--text-2); padding: 8px 14px;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Cart / Checkout (block-based) ─────────────────────────── */
.wc-page-content { padding-bottom: 24px; }
.wp-block-woocommerce-cart .wc-block-cart-items,
.wp-block-woocommerce-cart .wc-block-cart__sidebar > .wc-block-components-totals-wrapper,
.wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-block,
.wc-block-checkout__main, .wc-block-checkout__sidebar {
	background: #fff !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important;
	box-shadow: 0 1px 3px rgba(15,23,42,.05) !important; padding: 20px 24px !important;
}
.woocommerce-cart .cart_totals, .woocommerce-checkout #order_review, .woocommerce-checkout #customer_details {
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; box-shadow: 0 1px 3px rgba(15,23,42,.05);
}
.wc-block-components-text-input input, .woocommerce form .input-text, .woocommerce form select {
	border-radius: 10px !important; border-color: var(--border-2) !important;
}

/* ── Features strip ────────────────────────────────────────── */
.features { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(15,23,42,.05); padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { display: flex; align-items: center; gap: 14px; justify-content: center; }
.feature .fic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.feature .fic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--text); }
.feature p { margin: 0; font-size: 12px; color: var(--text-3); }
@media (max-width: 768px) { .features { grid-template-columns: 1fr; gap: 16px; } }

/* ============================================================
   Single product — minimal premium (.d4u-single)
   ============================================================ */
.single-product .woo-wrap { max-width: 1240px; }
.single-product div.product.d4u-single { display:block !important; background:transparent !important; border:none !important; box-shadow:none !important; padding:0 !important; }

/* Hero: gallery (right) + summary (left) */
.d4u-hero { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:48px; align-items:start; background:#fff; border:1px solid var(--border); border-radius:22px; padding:32px; }

/* Gallery */
.d4u-gallery { position:sticky; top:88px; }
.d4u-stagewrap { display:flex; flex-direction:column; gap:14px; }
.d4u-thumbs { order:2; display:flex; flex-direction:row; flex-wrap:wrap; gap:10px; padding:4px 2px; }
.d4u-gal-thumb { flex:0 0 72px; width:72px; height:72px; padding:6px; border:1px solid var(--border-2); border-radius:14px; background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; overflow:hidden; transition:border-color .15s, box-shadow .15s; }
.d4u-gal-thumb:hover { border-color:var(--text-3); }
.d4u-gal-thumb.is-active { border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-50); }
.d4u-gal-thumb img { width:100%; height:100%; object-fit:contain; }

.d4u-gal-main { position:relative; flex:1 1 auto; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid var(--border); border-radius:18px; overflow:hidden; padding:0; cursor:zoom-in; }
.d4u-gal-main img { max-width:90%; max-height:90%; width:auto; height:auto; object-fit:contain; transition:transform .25s ease; will-change:transform; }
.d4u-gal-main.is-zooming img { transform:scale(2.1); transition:transform .05s linear; }
.d4u-stage-badge { position:absolute; top:14px; inset-inline-start:14px; z-index:2; background:var(--danger); color:#fff; font-size:12px; font-weight:800; padding:6px 11px; border-radius:999px; box-shadow:0 6px 16px rgba(220,38,38,.3); }
.d4u-zoom-hint { position:absolute; inset-inline-end:14px; bottom:14px; display:inline-flex; align-items:center; gap:6px; padding:7px 11px; border-radius:999px; background:rgba(255,255,255,.92); border:1px solid var(--border); color:var(--text-2); font-size:12px; font-weight:700; box-shadow:0 8px 20px rgba(15,23,42,.08); opacity:0; transform:translateY(6px); transition:opacity .18s, transform .18s; }
.d4u-zoom-hint svg { width:16px; height:16px; }
.d4u-gal-main:hover .d4u-zoom-hint { opacity:1; transform:translateY(0); }
.d4u-gal-main.is-zooming .d4u-zoom-hint { opacity:0; }

.d4u-gallery-actions { display:flex; gap:8px; margin-top:18px; }
.d4u-ga { flex:1; min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:7px; background:#fff; border:1px solid var(--border-2); color:var(--text-2); font-size:13px; font-family:inherit; font-weight:600; cursor:pointer; padding:10px; border-radius:12px; transition:border-color .15s, color .15s, background .15s; }
.d4u-ga:hover { border-color:var(--primary); color:var(--primary); }
.d4u-ga svg { width:18px; height:18px; }
.d4u-ga.is-on { border-color:var(--primary); color:var(--primary); background:var(--primary-50); }
.d4u-ga.is-on svg { fill:currentColor; }
.d4u-ga:disabled { opacity:.65; cursor:progress; }

/* Summary */
.d4u-summary { position:sticky; top:88px; padding-top:4px; }
.d4u-brand { display:inline-block; font-size:12px; font-weight:700; color:var(--text-3); letter-spacing:.04em; margin-bottom:8px; }
.d4u-title { font-size:25px; font-weight:800; line-height:1.7; color:var(--text); margin:0 0 8px; }
.d4u-subtitle { font-size:12.5px; color:#64748b; font-family:ui-monospace,monospace; }
.d4u-meta-row { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:14px; }
.d4u-rating { display:inline-flex; align-items:center; gap:8px; }
.d4u-rating-num { font-size:12.5px; color:var(--text-2); font-weight:600; }
.d4u-rating-num small { color:var(--text-3); font-weight:400; }
.d4u-rating-empty { color:var(--primary); }
.d4u-stars { display:inline-block; width:92px; height:16px; background:linear-gradient(90deg,#f5a623 var(--rate,0%),#e2e8f0 var(--rate,0%)); -webkit-mask:repeating-linear-gradient(90deg,#000 0 15px,transparent 15px 18.4px); mask:repeating-linear-gradient(90deg,#000 0 15px,transparent 15px 18.4px); }
.d4u-stock { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:700; }
.d4u-stock .d4u-dot { width:7px; height:7px; border-radius:50%; }
.d4u-rule { border:none; border-top:1px solid var(--border); margin:20px 0; }

.d4u-pricerow { display:flex; align-items:center; gap:12px; }
.d4u-price-stack { display:flex; flex-direction:column; }
.d4u-price, .d4u-price .price { font-size:26px !important; font-weight:800 !important; color:var(--text) !important; line-height:1.4; }
.d4u-price ins { text-decoration:none; }
.d4u-price del { color:var(--text-3); font-size:14px; font-weight:400; }
.d4u-callprice { font-size:18px; font-weight:700; color:var(--primary); }
.d4u-disc-tag { background:var(--danger); color:#fff; font-size:14px; font-weight:800; padding:6px 12px; border-radius:12px; flex-shrink:0; }

.d4u-block { margin-top:22px; }
.d4u-colors { display:flex; align-items:center; gap:14px; }
.d4u-colors-label { font-size:13px; color:var(--text-2); }
.d4u-colors-label b { color:var(--text); font-weight:700; }
.d4u-color-list { display:flex; gap:8px; }
.d4u-color { width:34px; height:34px; border:2px solid var(--border-2); border-radius:50%; background:#fff; cursor:pointer; padding:3px; display:inline-flex; align-items:center; justify-content:center; transition:border-color .15s; }
.d4u-color.is-active { border-color:var(--primary); }
.d4u-color-dot { width:100%; height:100%; border-radius:50%; border:1px solid rgba(0,0,0,.1); }

.d4u-keyspecs-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.d4u-keyspecs-head span { font-size:13.5px; font-weight:700; color:var(--text); }
.d4u-keyspecs-head a { font-size:12px; color:var(--primary); font-weight:600; }
.d4u-keyspecs-list { list-style:none; margin:0; padding:0; }
.d4u-keyspecs-list li { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:9px 0; font-size:13px; }
.d4u-keyspecs-list li + li { border-top:1px solid var(--border); }
.d4u-ks-label { color:var(--text-3); flex-shrink:0; }
.d4u-ks-value { color:var(--text); font-weight:600; text-align:left; }

.d4u-buy { margin-top:26px; }
.d4u-single form.cart { margin:0 !important; display:block; }
.d4u-single form.cart .quantity { display:none; }
.d4u-single form.cart .single_add_to_cart_button, .d4u-req-btn { width:100%; height:54px; font-size:16px !important; font-weight:800 !important; border-radius:14px !important; display:flex; align-items:center; justify-content:center; background:var(--primary); color:#fff; border:none; cursor:pointer; box-shadow:0 10px 24px rgba(47,58,201,.22); transition:background .15s, transform .1s; font-family:inherit; }
.d4u-single form.cart .single_add_to_cart_button:hover, .d4u-req-btn:hover { background:var(--primary-600); }
.d4u-single form.cart .single_add_to_cart_button:active { transform:translateY(1px); }
.d4u-req-btn { text-decoration:none; }
.d4u-req-btn[disabled] { opacity:.55; cursor:not-allowed; box-shadow:none; }

.d4u-perks { list-style:none; margin:24px 0 0; padding:18px 0 0; border-top:1px solid var(--border); display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.d4u-perks li { display:flex; align-items:center; gap:9px; font-size:12.5px; color:var(--text-2); }
.d4u-perks svg { width:20px; height:20px; color:var(--primary); flex-shrink:0; }

.single-product .related.products { background:#fff; border:1px solid var(--border); border-radius:22px; padding:24px 28px; margin-top:22px; }
.single-product .related.products > h2 { font-size:17px; font-weight:800; margin-bottom:18px; }

.d4u-lightbox { position:fixed; inset:0; z-index:1100; display:none; align-items:center; justify-content:center; padding:24px; }
.d4u-lightbox.open { display:flex; }
.d4u-lb-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.78); backdrop-filter:blur(6px); }
.d4u-lb-dialog { position:relative; z-index:1; width:min(960px,100%); min-height:min(700px,82vh); display:flex; align-items:center; justify-content:center; border-radius:22px; background:#fff; box-shadow:0 24px 70px rgba(15,23,42,.35); padding:54px 68px; }
.d4u-lb-dialog img { max-width:100%; max-height:72vh; width:auto; height:auto; object-fit:contain; }
.d4u-lb-close, .d4u-lb-nav { position:absolute; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--border); background:#fff; color:var(--text); cursor:pointer; font-family:inherit; box-shadow:0 8px 22px rgba(15,23,42,.12); transition:color .15s, border-color .15s, background .15s; }
.d4u-lb-close:hover, .d4u-lb-nav:hover { color:var(--primary); border-color:var(--primary); background:var(--primary-50); }
.d4u-lb-close { top:16px; inset-inline-end:16px; width:38px; height:38px; border-radius:999px; font-size:26px; line-height:1; }
.d4u-lb-nav { top:50%; width:44px; height:56px; border-radius:14px; font-size:34px; transform:translateY(-50%); }
.d4u-lb-prev { inset-inline-start:16px; }
.d4u-lb-next { inset-inline-end:16px; }
.d4u-lb-count { position:absolute; inset-inline-start:18px; top:18px; min-width:52px; text-align:center; color:var(--text-2); background:#f8fafc; border:1px solid var(--border); border-radius:999px; padding:6px 10px; font-size:12px; font-weight:700; }

.d4u-info-tabs { background:#fff; border:1px solid var(--border); border-radius:22px; margin-top:22px; overflow:hidden; }
.d4u-tabnav { display:flex; gap:4px; border-bottom:1px solid var(--border); padding:0 18px; overflow-x:auto; }
.d4u-tab { background:transparent; border:none; border-bottom:2px solid transparent; padding:18px 16px; font-size:14px; font-weight:700; color:var(--text-3); font-family:inherit; cursor:pointer; white-space:nowrap; }
.d4u-tab:hover { color:var(--text); }
.d4u-tab.is-active { color:var(--primary); border-bottom-color:var(--primary); }
.d4u-tabpanes { padding:28px; }
.d4u-pane { display:none; }
.d4u-pane.is-active { display:block; }
.d4u-spec-table { width:100%; border-collapse:collapse; }
.d4u-spec-table tr { border-bottom:1px solid var(--border); }
.d4u-spec-table th { text-align:right; font-weight:600; color:var(--text-3); font-size:13px; padding:14px 16px; width:240px; vertical-align:top; }
.d4u-spec-table td { color:var(--text); font-size:13px; padding:14px 16px; line-height:1.9; }
.d4u-desc-content { font-size:14px; line-height:2.1; color:var(--text-2); }
.d4u-desc-content h2, .d4u-desc-content h3 { color:var(--text); font-weight:700; margin:18px 0 10px; }
.d4u-empty { color:var(--text-3); font-size:14px; text-align:center; padding:34px 0; }

.d4u-toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px); background:#111827; color:#fff; padding:11px 20px; border-radius:10px; font-size:13px; font-weight:600; z-index:9999; opacity:0; transition:.25s; pointer-events:none; }
.d4u-toast.is-show { opacity:1; transform:translateX(-50%) translateY(0); }

@media (max-width:1024px) {
	.d4u-hero { grid-template-columns:1fr; gap:28px; padding:22px; }
	.d4u-gallery, .d4u-summary { position:static; }
	.d4u-gallery { max-width:520px; margin-inline:auto; width:100%; }
}
@media (max-width:768px) {
	.d4u-hero { padding:16px; border-radius:18px; }
	.d4u-thumbs { justify-content:center; }
	.d4u-gal-main.is-zooming img { transform:none; }
	.d4u-title { font-size:20px; }
	.d4u-perks { grid-template-columns:1fr; }
	.d4u-spec-table th { width:120px; }
	.d4u-tabpanes { padding:18px; }
	.d4u-lightbox { padding:12px; }
	.d4u-lb-dialog { min-height:78vh; padding:56px 12px 64px; }
	.d4u-lb-nav { top:auto; bottom:14px; transform:none; width:42px; height:42px; border-radius:12px; font-size:30px; }
	.d4u-lb-prev { inset-inline-start:calc(50% - 50px); }
	.d4u-lb-next { inset-inline-end:calc(50% - 50px); }
	.d4u-lb-dialog img { max-height:62vh; }
}

/* ============================================================
   Mobile drawer menu (categories + nav) — shown via .menu-toggle
   ============================================================ */
.menu-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-inline-end: 8px; background: none; border: none; cursor: pointer; color: var(--text); }
@media (max-width: 768px) { .menu-toggle { display: flex; } }
.menu-toggle svg { width: 26px; height: 26px; }
/* Bottom-sheet drawer: slides up from the bottom of the screen. */
.mobile-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.mobile-drawer .md-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.5); opacity: 0; transition: opacity .25s ease; }
.mobile-drawer .md-panel { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; max-height: 85vh; display: flex; flex-direction: column; background: #fff; border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,0,1); padding: 8px 16px max(16px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(15,23,42,.22); }
.mobile-drawer.open { visibility: visible; }
.mobile-drawer.open .md-overlay { opacity: 1; }
.mobile-drawer.open .md-panel { transform: translateY(0); }
.md-grabber { width: 40px; height: 4px; border-radius: 4px; background: var(--border); margin: 6px auto 4px; flex: none; }
.md-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex: none; }
.md-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.md-close { background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--text-3); }
.md-search input { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; font: inherit; }
.md-panel h4 { margin: 14px 0 4px; font-size: 12px; color: var(--text-3); }
.md-link { display: block; padding: 12px 6px; color: var(--text); border-bottom: 1px solid var(--border-2); font-size: 15px; }
.md-link:hover { color: var(--primary); }
.md-cat { font-size: 14px; color: var(--text-2); }
/* Accordion sub-menus */
.md-acc { border-bottom: 1px solid var(--border-2); }
.md-acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 6px; background: none; border: none; cursor: pointer; font: inherit; font-size: 15px; color: var(--text); text-align: start; }
.md-chev { width: 18px; height: 18px; flex: none; color: var(--text-3); transition: transform .25s ease; }
.md-acc.open .md-chev { transform: rotate(180deg); }
.md-acc-body { display: none; padding: 2px 0 8px; }
.md-acc.open .md-acc-body { display: block; }
.md-sub { display: block; padding: 9px 6px 9px 18px; font-size: 14px; color: var(--text-2); border-top: 1px solid var(--border-2); }
.md-sub:hover { color: var(--primary); }
.md-sub-all { color: var(--primary); font-weight: 600; }

/* ============================================================
   Homepage redesign: deals row, promo banners, auth modal, footer
   ============================================================ */

/* Header auth button */
.auth-btn { display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border:1px solid var(--border); border-radius:10px; background:#fff; cursor:pointer; font:inherit; font-size:14px; font-weight:600; color:var(--text); transition:all .15s ease; }
.auth-btn svg { width:20px; height:20px; }
.auth-btn:hover { border-color:var(--primary); color:var(--primary); }
@media (max-width:768px){ .auth-btn span { display:none; } .auth-btn { padding:8px; } }

/* Auth modal */
.auth-modal { position:fixed; inset:0; z-index:1100; display:none; }
.auth-modal.open { display:block; }
.auth-overlay { position:absolute; inset:0; background:rgba(15,23,42,.55); }
.auth-box { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:400px; max-width:92vw; background:#fff; border-radius:16px; padding:26px 24px; box-shadow:0 20px 60px rgba(15,23,42,.3); }
.auth-close { position:absolute; top:12px; left:14px; background:none; border:none; font-size:26px; line-height:1; cursor:pointer; color:var(--text-3); }
.auth-tabs { display:flex; gap:6px; background:var(--border-2,#eef1f5); padding:5px; border-radius:11px; margin-bottom:18px; }
.auth-tab { flex:1; padding:9px; border:none; background:none; border-radius:8px; cursor:pointer; font:inherit; font-weight:600; color:var(--text-2); }
.auth-tab.active { background:#fff; color:var(--primary); box-shadow:0 1px 3px rgba(15,23,42,.1); }
.auth-form { display:none; flex-direction:column; gap:13px; }
.auth-form.active { display:flex; }
.auth-form label { display:flex; flex-direction:column; gap:5px; font-size:13px; font-weight:600; color:var(--text-2); }
.auth-form input[type=text],.auth-form input[type=email],.auth-form input[type=password] { padding:11px 12px; border:1px solid var(--border); border-radius:9px; font:inherit; }
.auth-form input:focus { outline:none; border-color:var(--primary); }
.auth-remember { flex-direction:row !important; align-items:center; gap:7px !important; font-weight:500 !important; }
.auth-submit { margin-top:4px; width:100%; justify-content:center; padding:12px; }
.auth-alt { font-size:12px; color:var(--text-3); text-align:center; }
.auth-note { font-size:12px; color:var(--text-3); margin:-4px 0 0; }

/* Daily deals row */
.deals-section { padding-top:4px; }

/* Promo banner grid (4 cells between category rows) */
.banner-grid-section { padding:8px 0; }
.banner-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.bgrid-cell:hover { transform:translateY(-3px); box-shadow:0 10px 26px rgba(15,23,42,.16); }
.bgrid-cell.has-img img { width:100%; height:100%; object-fit:cover; display:block; }
.bgrid-cell.is-fallback { color:#fff; }
.bgrid-cell.is-fallback::after { content:""; position:absolute; inset:0; background:radial-gradient(120% 120% at 85% 15%, rgba(255,255,255,.22), transparent 55%); }
.bgrid-text { position:absolute; inset:0; z-index:1; display:flex; flex-direction:column; justify-content:center; gap:6px; padding:18px 20px; }
.bgrid-text strong { font-size:19px; font-weight:800; }
.bgrid-text em { font-style:normal; font-size:13px; opacity:.92; }
.bgrid-cta { margin-top:6px; font-size:12.5px; font-weight:700; opacity:.95; }
@media (max-width:1024px){ .banner-grid { gap:12px; } .bgrid-text strong { font-size:17px; } }
@media (max-width:680px){ .banner-grid { grid-template-columns:repeat(2,1fr); gap:10px; } .bgrid-text { padding:14px; } }

/* Footer additions */

/* ============================================================
   Accessibility: WCAG-AA contrast + touch-target fixes
   ============================================================ */
/* Muted greys (var(--text-3)) failed 4.5:1 — darken to passing tones. */
.pcard .pcat { color: #475569; }
.bcard .bmeta { color: #5b6577; }
.bcard .bbody p { color: #5b6577; }
.feature p { color: #5b6577; }


/* Slider dots: ≥24px touch target with a small visual dot inside. */
.slider-dots button { width: 24px; height: 24px; padding: 0; background: transparent; position: relative; }
.slider-dots button::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 9px; background: rgba(255,255,255,.6); transform: translate(-50%,-50%); transition: all .2s; }
.slider-dots button.active { width: 24px; background: transparent; }
.slider-dots button.active::after { width: 18px; background: #fff; }

/* ============================================================
   Product sliders (horizontal scroll, no wrap) for homepage rows
   ============================================================ */
.product-slider { position: relative; }
.product-track {
	display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: none;
	padding: 4px 2px 10px; -webkit-overflow-scrolling: touch;
	scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
}
/* Snap is switched on by JS a few seconds AFTER load. A mandatory snap (esp. in RTL)
   scrolls the track during first layout, which invalidates the LCP candidate in
   Chrome/PageSpeed ("NO_LCP"). Smooth scrolling is done by the arrows via scrollBy(). */
.snap-ready .product-track { scroll-snap-type: x mandatory; }
.product-track::-webkit-scrollbar { height: 6px; }
.product-track::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; }
.product-track > * { flex: 0 0 232px; scroll-snap-align: start; }
@media (max-width: 768px) { .product-track > * { flex: 0 0 168px; } }

.ps-nav {
	position: absolute; top: 40%; z-index: 4; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--border-2); background: #fff; color: var(--text-2);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 16px rgba(15,23,42,.14); transition: all .15s ease;
}
.ps-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.ps-nav svg { width: 20px; height: 20px; }
.ps-prev { inset-inline-start: -10px; }
.ps-next { inset-inline-end: -10px; }
.ps-nav[hidden] { display: none; }
@media (max-width: 768px) { .ps-nav { display: none; } }

/* Screen-reader-only (accessible H1 / labels without visual clutter) */
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   Mini-cart drawer
   ============================================================ */
.cart-drawer { position: fixed; inset: 0; z-index: 1200; visibility: hidden; pointer-events: none; }
.cart-drawer.open { visibility: visible; pointer-events: auto; }
.cd-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.5); opacity: 0; transition: opacity .25s ease; }
.cart-drawer.open .cd-overlay { opacity: 1; }
.cd-panel {
	position: absolute; inset-block: 0; inset-inline-start: 0; width: 380px; max-width: 90vw;
	background: #fff; display: flex; flex-direction: column;
	transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
	box-shadow: 4px 0 30px rgba(15,23,42,.2);
}
.cart-drawer.open .cd-panel { transform: translateX(0); }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 15px; }
.cd-close { background: none; border: none; font-size: 26px; line-height: 1; color: var(--text-3); width: 32px; height: 32px; border-radius: 8px; }
.cd-close:hover { background: var(--border); color: var(--text); }
.cd-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.cd-loading { text-align: center; color: var(--text-3); padding: 40px 0; }
.cd-empty { text-align: center; color: var(--text-3); padding: 48px 16px; }
.cd-empty svg { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--border-2); }
.cd-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--border); position: relative; }
.cd-item.removing { opacity: .5; }
.cd-thumb { width: 60px; height: 60px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.cd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cd-info { flex: 1; min-width: 0; }
.cd-name { display: block; font-size: 13px; font-weight: 600; line-height: 1.6; color: var(--text); max-height: 2.6em; overflow: hidden; }
.cd-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.cd-price { font-weight: 700; color: var(--text); }
.cd-remove { background: none; border: none; font-size: 20px; line-height: 1; color: var(--text-3); width: 26px; height: 26px; border-radius: 7px; flex: none; }
.cd-remove:hover { background: #fee2e2; color: var(--danger); }
.cd-foot { border-top: 1px solid var(--border); padding: 14px 18px 18px; background: #fff; }
.cd-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.cd-total strong { font-size: 16px; color: var(--primary); }
.cd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-actions .btn { width: 100%; padding: 11px; }

/* ============================================================
   Archive faceted filters
   ============================================================ */
.d4u-filters { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 18px; overflow: hidden; }
.d4u-filter-toggle { display: none; width: 100%; align-items: center; gap: 8px; padding: 13px 16px; background: #fff; border: none; font-weight: 700; font-size: 14px; color: var(--text); }
.d4u-filter-toggle svg { width: 20px; height: 20px; color: var(--primary); }
.d4u-filter-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 22px; padding: 18px 20px; align-items: start; }
.d4u-fgroup h4 { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--text); }
.d4u-orderby { width: 100%; padding: 9px 12px; border: 1px solid var(--border-2); border-radius: 10px; background: #fff; font-family: inherit; font-size: 13px; color: var(--text); }
.d4u-price { display: flex; align-items: center; gap: 8px; }
.d4u-price input { width: 100%; padding: 9px 10px; border: 1px solid var(--border-2); border-radius: 10px; font-family: inherit; font-size: 13px; }
.d4u-price span { color: var(--text-3); font-size: 12px; }
.d4u-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.d4u-chip { display: inline-flex; }
.d4u-chip input { position: absolute; opacity: 0; pointer-events: none; }
.d4u-chip span { display: inline-flex; align-items: center; padding: 7px 13px; border: 1px solid var(--border-2); border-radius: 999px; font-size: 12.5px; color: var(--text-2); cursor: pointer; transition: all .12s ease; }
.d4u-chip span:hover { border-color: var(--primary); color: var(--primary); }
.d4u-chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.d4u-switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); cursor: pointer; }
.d4u-switch input { width: 18px; height: 18px; accent-color: var(--primary); }
.d4u-filter-actions { display: flex; gap: 10px; align-items: flex-end; }
.d4u-filter-actions .btn { padding: 10px 18px; }
@media (max-width: 768px) {
	.d4u-filter-toggle { display: flex; }
	.d4u-filter-toggle[aria-expanded="true"] { border-bottom: 1px solid var(--border); }
	.d4u-filter-body { display: none; grid-template-columns: 1fr; }
	.d4u-filters.open .d4u-filter-body { display: grid; }
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-page .contact-lead { font-size: 15px; color: var(--text-2); margin-bottom: 22px; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px 18px; text-align: center; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.contact-card .cc-ic { font-size: 30px; display: block; margin-bottom: 10px; }
.contact-card h3 { margin: 0 0 6px; font-size: 14px; font-weight: 800; }
.contact-card p { margin: 0; font-size: 13.5px; color: var(--text-2); direction: ltr; unicode-bidi: plaintext; }
@media (max-width: 880px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .contact-cards { grid-template-columns: 1fr; } }

/* ── Modern contact page (page-contact.php) ── */
.cpage-hero { background: linear-gradient(135deg, var(--primary), #4f46e5); color: #fff; padding: 40px 0 46px; }
.cpage-hero .container { max-width: 1100px; }
.cpage-crumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; opacity: .85; margin-bottom: 14px; }
.cpage-crumb a { color: #fff; }
.cpage-crumb b { font-weight: 600; }
.cpage-hero h1 { margin: 0 0 10px; font-size: 30px; font-weight: 800; }
.cpage-hero p { margin: 0; font-size: 15px; opacity: .92; max-width: 620px; line-height: 1.9; }
.cpage-hero + .section .container { max-width: 1100px; }

.cpage-alert { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: 14px; font-weight: 600; }
.cpage-alert svg { width: 22px; height: 22px; flex: none; }
.cpage-alert.is-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.cpage-alert.is-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.cpage-grid { display: grid; grid-template-columns: 360px 1fr; gap: 26px; align-items: start; }
.cpage-info { display: flex; flex-direction: column; gap: 12px; }
.cpage-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px 16px; box-shadow: 0 1px 3px rgba(15,23,42,.05); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.cpage-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,23,42,.12); border-color: var(--border-2); }
.cpage-card .cc-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.cpage-card .cc-ic svg { width: 23px; height: 23px; }
.cpage-card .cc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cpage-card .cc-body b { font-size: 13.5px; font-weight: 700; color: var(--text); }
.cpage-card .cc-body i { font-style: normal; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.cpage-social { display: flex; gap: 10px; margin-top: 4px; }
.cpage-social a { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; border: 1px solid var(--border); color: var(--text-2); transition: all .15s ease; }
.cpage-social a svg { width: 21px; height: 21px; }
.cpage-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.cpage-formwrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(15,23,42,.05); padding: 28px 30px; }
.cpage-formwrap h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.cpage-formlead { margin: 0 0 20px; font-size: 13.5px; color: var(--text-2); }
.cpage-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.cpage-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cpage-form input, .cpage-form textarea { width: 100%; margin-top: 7px; padding: 11px 13px; border: 1px solid var(--border-2); border-radius: 10px; font-family: inherit; font-size: 13.5px; color: var(--text); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.cpage-form input:focus, .cpage-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.cpage-form textarea { resize: vertical; }
.cpage-submit { width: 100%; padding: 13px; font-size: 14.5px; margin-top: 4px; }

/* Location map */
.cpage-mapwrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(15,23,42,.05); padding: 24px; }
.cpage-mapwrap h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.cpage-map { margin-top: 14px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-2); }
.cpage-map iframe { width: 100%; height: 400px; border: 0; display: block; }
.cpage-maplink { margin-top: 14px; }
@media (max-width: 860px) { .cpage-grid { grid-template-columns: 1fr; } .cpage-map iframe { height: 320px; } }
@media (max-width: 520px) { .cpage-row { grid-template-columns: 1fr; } .cpage-hero h1 { font-size: 24px; } .cpage-formwrap { padding: 22px 18px; } }

/* a11y: breadcrumb text meets WCAG AA (4.5:1) on the page background. */
.woocommerce-breadcrumb, .woocommerce-breadcrumb a, nav.woocommerce-breadcrumb { color: #4b5563 !important; }
/* a11y: WooCommerce's default olive price (#958e09) fails contrast on white. */
.pcard .price, .pcard .price .woocommerce-Price-amount, .pcard .price ins { color: var(--text) !important; text-decoration: none; }
.pcard .price del, .pcard .price del .woocommerce-Price-amount { color: #6b7280 !important; font-weight: 400; }

/* a11y contrast (WCAG AA 4.5:1): struck-through price, stock label, inactive tabs. */
.woocommerce del, .woocommerce del .woocommerce-Price-amount, .d4u-price del, .d4u-price del .woocommerce-Price-amount { opacity: 1 !important; color: #6b7280 !important; }
.d4u-stock { color: #15803d !important; }
.d4u-price del, .d4u-price .woocommerce-Price-amount del { color: #6b7280 !important; }
.d4u-tab:not(.is-active) { color: #64748b !important; }
.d4u-price .woocommerce-Price-amount, .d4u-price .woocommerce-Price-amount bdi { color: var(--text) !important; }
.d4u-price del .woocommerce-Price-amount, .d4u-price del .woocommerce-Price-amount bdi { color: #6b7280 !important; }

/* ============================================================
   Homepage v2: deals, category promo banners, footer
   ============================================================ */

/* Deals */
.deals-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: stretch; padding: 18px; border-radius: 22px; color: #fff; background: radial-gradient(120% 140% at 100% 0, #ff7a45 0, transparent 55%), linear-gradient(135deg, #e11d48, #be123c 55%, #9f1239); box-shadow: 0 18px 40px -20px rgba(190,18,60,.55); }
.deals-side { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 6px 4px; }
.deals-flame { font-size: 44px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.deals-side h2 { margin: 0; font-size: 21px; font-weight: 800; color: #fff; }
.deals-side p { margin: 0 0 6px; font-size: 13px; color: #ffe4e6; }
.deals-timer { display: flex; align-items: center; gap: 4px; direction: ltr; margin: 4px 0 8px; }
.deals-timer span { display: flex; flex-direction: column; align-items: center; min-width: 52px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 6px 4px 4px; }
.deals-timer b { font-size: 22px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.deals-timer small { font-size: 10px; color: #ffe4e6; }
.deals-timer i { font-style: normal; font-weight: 800; font-size: 20px; opacity: .8; }
.btn-deals { background: #fff; color: #be123c; border: none; padding: 10px 18px; border-radius: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.btn-deals:hover { background: #fff1f2; color: #9f1239; }
.deals-slider .ps-nav { background: #fff; }
.deals-slider .product-track { padding-block: 2px; }
.deals-wrap .pcard { border-color: transparent; }
.dbadge { position: absolute; bottom: 8px; inset-inline-start: 8px; z-index: 2; background: #e11d48; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; padding: 5px 8px; border-radius: 8px; box-shadow: 0 4px 10px -4px rgba(225,29,72,.7); }
@media (max-width: 900px) {
	.deals-wrap { grid-template-columns: minmax(0, 1fr); padding: 14px; }
	.deals-side { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: start; gap: 6px 12px; }
	.deals-flame { font-size: 30px; }
	.deals-side h2 { font-size: 17px; flex: 1 1 auto; }
	.deals-side p { display: none; }
	.deals-timer { order: 3; margin: 0; }
	.deals-timer span { min-width: 44px; }
	.deals-timer b { font-size: 17px; }
	.btn-deals { order: 4; padding: 8px 14px; font-size: 13px; }
}

/* Category promo banners */
.bgrid-cell { position: relative; display: block; border-radius: 18px; overflow: hidden; min-height: 150px; box-shadow: 0 6px 18px -10px rgba(15,23,42,.35); transition: transform .2s ease, box-shadow .2s ease; }
.bgrid-cell.has-img { aspect-ratio: 16/10; }
.bgrid-cell:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -12px rgba(15,23,42,.45); }
.bgrid-cell.is-cat { color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; }
.bgrid-cell.is-cat::after { content: ""; position: absolute; inset: 0; background: radial-gradient(100% 120% at 100% 0, rgba(255,255,255,.22), transparent 55%); pointer-events: none; }
.bgrid-cell.is-cat .bgrid-text { position: relative; inset: auto; z-index: 1; padding: 0; flex: 1; min-width: 0; justify-content: center; }
.bgrid-cell.is-cat .bgrid-text strong { font-size: 17px; line-height: 1.4; }
.bgrid-cell.is-cat .bgrid-cta { display: inline-block; align-self: flex-start; margin-top: 8px; padding: 5px 11px; background: rgba(255,255,255,.2); border-radius: 999px; font-size: 12px; }
.bgrid-cell.is-cat:hover .bgrid-cta { background: #fff; color: #0f172a; }
.bgrid-plate { position: relative; z-index: 1; flex: none; width: 46%; aspect-ratio: 1; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 10px 22px -10px rgba(0,0,0,.5); transform: rotate(-4deg); transition: transform .25s ease; }
.bgrid-cell:hover .bgrid-plate { transform: rotate(0) scale(1.04); }
.bgrid-plate img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 680px) { .bgrid-cell { min-height: 130px; } .bgrid-cell.is-cat { padding: 10px; } .bgrid-cell.is-cat .bgrid-text strong { font-size: 14px; } .bgrid-plate { width: 48%; padding: 5px; } }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 56px; border-top: 0; }
.ft-trust { background: #111c33; border-bottom: 1px solid rgba(255,255,255,.07); }
.ft-trust-list { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ft-trust-list li { display: flex; align-items: center; gap: 12px; }
.ft-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(99,102,241,.16); color: #a5b4fc; }
.ft-ic svg { width: 24px; height: 24px; }
.ft-trust-list strong { display: block; color: #fff; font-size: 14px; }
.ft-trust-list em { display: block; font-style: normal; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.ft-main { padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1.3fr 1fr 1.4fr; gap: 36px; padding-block: 0 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: auto; height: 44px; border-radius: 0; }
.footer-brand span { font-size: 21px; font-weight: 800; color: #fff; }
.site-footer .footer-about { font-size: 13px; line-height: 2; color: #cbd5e1; margin: 0; max-width: 360px; }
.site-footer .footer-h { position: relative; font-size: 15px; font-weight: 800; color: #fff; margin: 0 0 18px; padding-bottom: 10px; }
.site-footer .footer-h::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #6366f1, #a78bfa); }
.site-footer .footer-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-col li { margin-bottom: 11px; }
.site-footer .footer-col a { font-size: 13px; color: #cbd5e1; transition: color .15s, padding .15s; }
.site-footer .footer-col a:hover { color: #fff; }
.site-footer .footer-col > ul:not(.ft-cats):not(.footer-contact ul) a:hover { padding-inline-start: 4px; }
.ft-cats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,255,255,.07); color: #e2e8f0; transition: all .15s ease; }
.footer-social a svg { width: 20px; height: 20px; }
.footer-social a:hover { background: #4f46e5; color: #fff; transform: translateY(-2px); }
.footer-contact ul { display: flex; flex-direction: column; gap: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #cbd5e1; line-height: 1.8; }
.footer-contact li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: #a5b4fc; }
.footer-contact a { color: #e2e8f0; }
.footer-contact a:hover { color: #fff; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; padding: 24px 0 28px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-badge { display: inline-flex; background: #fff; border-radius: 12px; padding: 6px; }
.footer-badge img { height: 76px; width: auto; display: block; border-radius: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); background: #0b1220; color: #94a3b8; text-align: initial; padding: 0; font-size: 12px; }
.footer-bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.ft-top { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #e2e8f0; border-radius: 10px; padding: 7px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.ft-top svg { width: 14px; height: 14px; }
.ft-top:hover { background: #4f46e5; border-color: #4f46e5; color: #fff; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } .ft-trust-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.ft-trust-list { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
	.footer-bottom-in { flex-direction: column; text-align: center; }
}

/* ============================================================
   Checkout (shortcode) — compact two-column layout
   ============================================================ */
.woocommerce-checkout .woocommerce-info::before { position: static; margin-inline-end: 8px; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info { padding: 10px 14px; margin: 0 0 12px; font-size: 13px; border-radius: 10px; }
.woocommerce-checkout .woocommerce-message, .woocommerce-checkout .woocommerce-info { margin-bottom: 12px; }
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; column-gap: 16px; row-gap: 0; align-items: start; }
.woocommerce-checkout form.checkout > .col2-set, .woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; width: 100%; float: none; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; padding: 0; }
.woocommerce-checkout #customer_details { padding: 18px 20px; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 14px 18px 0; font-size: 15px; background: #fff; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 8px 18px 18px; position: sticky; top: 90px; }
.woocommerce-checkout h3 { font-size: 15px; font-weight: 800; margin: 0 0 12px; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.woocommerce-checkout .form-row { margin: 0 0 12px !important; padding: 0; width: auto !important; float: none !important; }
.woocommerce-checkout .form-row-wide { grid-column: 1 / -1; }
.woocommerce-checkout .form-row label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; line-height: 1.4; }
.woocommerce-checkout .form-row .input-text, .woocommerce-checkout .form-row select { width: 100%; height: 42px; padding: 0 12px; font-size: 14px; }
.woocommerce-checkout .d4u-ltr { direction: ltr; text-align: right; }
.woocommerce-checkout .select2-container .select2-selection--single { height: 42px; border-radius: 10px; border-color: var(--border-2); }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px; padding-inline: 12px; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }
/* order summary */
.woocommerce-checkout table.shop_table { border: 0; margin: 0 0 10px; font-size: 13px; border-collapse: collapse; }
.woocommerce-checkout table.shop_table th, .woocommerce-checkout table.shop_table td { padding: 9px 0; border: 0; border-bottom: 1px dashed var(--border-2); background: transparent; }
.woocommerce-checkout table.shop_table thead { display: none; }
.woocommerce-checkout table.shop_table .product-name { font-weight: 500; line-height: 1.6; }
.woocommerce-checkout table.shop_table td:last-child, .woocommerce-checkout table.shop_table th + td { text-align: start; white-space: nowrap; font-weight: 700; }
.woocommerce-checkout table.shop_table .order-total th, .woocommerce-checkout table.shop_table .order-total td { font-size: 15px; font-weight: 800; border-bottom: 0; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { padding: 0; border: 0; margin: 0 0 10px; }
.woocommerce-checkout #payment ul.payment_methods li { font-size: 13px; padding: 10px 12px; margin: 0 0 6px; border: 1px solid var(--border-2); border-radius: 10px; list-style: none; }
.woocommerce-checkout #payment div.payment_box { margin: 8px 0 0; padding: 10px; font-size: 12px; background: var(--primary-50); border-radius: 8px; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment .form-row { padding: 0 !important; margin: 0 !important; }
.woocommerce-checkout #place_order { width: 100%; height: 50px; font-size: 16px; font-weight: 800; border-radius: 12px; background: var(--primary); color: #fff; border: 0; cursor: pointer; box-shadow: 0 10px 24px rgba(47,58,201,.22); }
.woocommerce-checkout #place_order:hover { background: var(--primary-600); }
.woocommerce-privacy-policy-text { font-size: 11.5px; color: var(--text-2); }
@media (max-width: 900px) {
	.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-checkout form.checkout > .col2-set, .woocommerce-checkout #customer_details { grid-column: 1; grid-row: auto; }
	.woocommerce-checkout #order_review_heading { grid-column: 1; grid-row: auto; }
	.woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
}
@media (max-width: 480px) { .woocommerce-checkout #billing_phone_field, .woocommerce-checkout #billing_email_field, .woocommerce-checkout #billing_state_field, .woocommerce-checkout #billing_city_field { grid-column: 1 / -1; } }

/* ============================================================
   Sign-in / sign-up card
   ============================================================ */
body.woocommerce-account:not(.logged-in) .page-title { display: none; }
.d4u-auth { display: flex; justify-content: center; padding: 28px 0 40px; }
.da-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 20px 50px -28px rgba(15,23,42,.35); padding: 28px 28px 22px; }
.da-head { text-align: center; margin-bottom: 18px; }
.da-logo { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 16px; background: linear-gradient(135deg, var(--primary), #6366f1); color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.da-head h1, .da-head h2 { font-size: 18px; margin: 0 0 6px; font-weight: 800; }
.da-head p { margin: 0; font-size: 13px; color: var(--text-2); }
.da-notice { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.8; margin-bottom: 12px; }
.da-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.da-error[hidden], .da-view[hidden], .da-form[hidden], .da-tabs[hidden] { display: none !important; }
.da-google { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border: 1px solid var(--border-2); border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--text); background: #fff; transition: background .15s, box-shadow .15s; }
.da-google:hover { background: #f8fafc; box-shadow: 0 4px 12px -6px rgba(15,23,42,.3); }
.da-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--text-2); font-size: 12px; }
.da-or::before, .da-or::after { content: ""; flex: 1; height: 1px; background: var(--border-2); }
.da-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f5f9; border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.da-tabs button { border: 0; background: transparent; height: 38px; border-radius: 9px; font: inherit; font-weight: 700; font-size: 14px; color: var(--text-2); cursor: pointer; }
.da-tabs button.active { background: #fff; color: var(--primary); box-shadow: 0 2px 6px -2px rgba(15,23,42,.25); }
.da-seg { display: flex; gap: 8px; margin-bottom: 14px; }
.da-seg button { flex: 1; height: 34px; border: 1px solid var(--border-2); background: #fff; border-radius: 999px; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; }
.da-seg button.active { border-color: var(--primary); color: var(--primary); background: var(--primary-50); font-weight: 700; }
.da-form { display: flex; flex-direction: column; gap: 14px; }
.da-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.da-form label small { font-weight: 400; color: #64748b; }
.da-form input[type=text], .da-form input[type=tel], .da-form input[type=email], .da-form input[type=password] { height: 46px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: 12px; font: inherit; font-size: 14px; background: #fff; width: 100%; text-align: right; }
.da-form input[dir=ltr]::placeholder { text-align: right; direction: rtl; }
.da-form input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,58,201,.15); }
.da-pw { position: relative; display: block; }
.da-pw input { padding-inline-end: 64px; }
.da-eye { position: absolute; top: 0; bottom: 0; inset-inline-end: 6px; border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 12px; cursor: pointer; padding: 0 8px; }
.da-forgot { font-size: 12.5px; color: var(--primary); align-self: flex-start; }
.da-submit { height: 48px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(47,58,201,.6); }
.da-submit:hover { background: var(--primary-600); }
.da-submit:disabled { opacity: .65; cursor: progress; }
.da-code-info { margin: 0; font-size: 13.5px; text-align: center; color: var(--text-2); }
.da-form input.da-code { text-align: center; letter-spacing: 12px; font-size: 24px; font-weight: 800; height: 56px; direction: ltr; }
.da-code-actions { display: flex; justify-content: space-between; }
.da-link { border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0; }
.da-link:disabled { color: #64748b; cursor: default; }
.da-terms { margin: 16px 0 0; font-size: 11.5px; color: #64748b; text-align: center; line-height: 1.8; }
@media (max-width: 480px) { .da-card { padding: 22px 16px 18px; border-radius: 18px; } }
.woocommerce:has(> .d4u-auth) { display: block !important; }
.d4u-auth .show-password-input { display: none !important; }

/* ============================================================
   Cart
   ============================================================ */
.woocommerce-cart .woocommerce-message, .woocommerce-cart .woocommerce-info { margin-bottom: 12px; }
.dc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.dc-items { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 6px 20px 16px; }
.dc-head h2 { font-size: 16px; font-weight: 800; margin: 14px 0 6px; display: flex; align-items: center; gap: 8px; }
.dc-head h2 span { font-size: 12px; font-weight: 600; color: var(--text-2); background: #f1f5f9; border-radius: 999px; padding: 3px 10px; }
.dc-list { list-style: none; margin: 0; padding: 0; }
.dc-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto 36px; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.dc-item:last-child { border-bottom: 0; }
.dc-thumb { width: 84px; height: 84px; border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 6px; display: block; }
.dc-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dc-name { display: block; font-size: 14px; font-weight: 700; line-height: 1.7; color: var(--text); }
.dc-name:hover { color: var(--primary); }
.dc-unit { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.dc-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden; background: #fff; }
.dc-step { width: 34px; height: 38px; border: 0; background: #f8fafc; color: var(--primary); font-size: 18px; font-weight: 700; cursor: pointer; font-family: inherit; }
.dc-step:hover { background: var(--primary-50); }
.dc-qty .quantity { margin: 0; }
.dc-qty .quantity label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dc-qty input.qty { width: 44px; height: 38px; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 14px; background: #fff; -moz-appearance: textfield; padding: 0; }
.dc-qty input.qty::-webkit-outer-spin-button, .dc-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dc-sub { font-weight: 800; font-size: 14.5px; min-width: 120px; text-align: end; white-space: nowrap; }
.dc-remove { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #64748b; background: transparent; }
.dc-remove svg { width: 20px; height: 20px; }
.dc-remove:hover { background: #fee2e2; color: #dc2626; }
.dc-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--border-2); flex-wrap: wrap; }
.dc-coupon summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--primary); list-style: none; padding: 8px 0; }
.dc-coupon summary::-webkit-details-marker { display: none; }
.dc-coupon-row { display: flex; gap: 8px; margin-top: 6px; }
.dc-coupon-row input { height: 40px; border: 1px solid var(--border-2); border-radius: 10px; padding: 0 12px; font: inherit; width: 200px; }
.dc-coupon-row .button, .dc-update { height: 40px; border-radius: 10px; font-family: inherit; }
.dc-update { background: #f1f5f9; color: var(--text-2); border: 0; padding: 0 16px; cursor: pointer; }
.dc-update:disabled { opacity: .5; cursor: default; }
/* summary */
.dc-side .cart_totals { float: none; width: 100%; position: sticky; top: 100px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: none; }
.dc-side .cart_totals h2 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.dc-side table.shop_table { border: 0; margin: 0 0 14px; width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dc-side table.shop_table th, .dc-side table.shop_table td { padding: 11px 0; border: 0; border-bottom: 1px dashed var(--border-2); background: transparent; text-align: start; }
.dc-side table.shop_table td { text-align: end; font-weight: 700; }
.dc-side table.shop_table tr.order-total th, .dc-side table.shop_table tr.order-total td { font-size: 16px; font-weight: 800; border-bottom: 0; }
.dc-side .wc-proceed-to-checkout { padding: 0; }
.dc-side .checkout-button { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 52px; margin: 0 !important; border-radius: 14px !important; background: var(--primary) !important; color: #fff !important; font-size: 16px !important; font-weight: 800 !important; box-shadow: 0 10px 24px rgba(47,58,201,.22); }
.dc-side .checkout-button:hover { background: var(--primary-600) !important; }
.dc-side .shipping-calculator-button { font-size: 12px; }
/* empty */
.dc-empty { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 56px 20px; max-width: 560px; margin: 24px auto; }
.dc-empty-ic { display: inline-flex; width: 84px; height: 84px; border-radius: 26px; background: var(--primary-50); color: var(--primary); align-items: center; justify-content: center; margin-bottom: 14px; }
.dc-empty-ic svg { width: 42px; height: 42px; }
.dc-empty h2 { margin: 0 0 6px; font-size: 19px; }
.dc-empty p { margin: 0 0 20px; color: var(--text-2); font-size: 14px; }
.dc-empty-btn { display: inline-flex; align-items: center; height: 46px; padding: 0 28px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; }
.dc-empty-btn:hover { background: var(--primary-600); color: #fff; }
@media (max-width: 900px) {
	.dc-layout { grid-template-columns: minmax(0, 1fr); }
	.dc-side .cart_totals { position: static; }
	.dc-item { grid-template-columns: 72px minmax(0, 1fr) 36px; grid-template-areas: "t i r" "t q s"; row-gap: 8px; }
	.dc-thumb { grid-area: t; width: 72px; height: 72px; } .dc-info { grid-area: i; } .dc-remove { grid-area: r; } .dc-qty { grid-area: q; justify-self: start; } .dc-sub { grid-area: s; min-width: 0; }
}

/* ============================================================
   Single product v2
   ============================================================ */
.d4u-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 28px; border-radius: 24px; }
.d4u-gal-main { max-height: 560px; margin-inline: auto; width: 100%; background: radial-gradient(80% 80% at 50% 40%, #fff 40%, #f8fafc); }
.d4u-gal-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; }
.d4u-thumbs { justify-content: center; }
.d4u-gallery-actions { margin-top: 14px; }
.d4u-ga { min-height: 40px; font-size: 12.5px; border-style: dashed; }
.d4u-brand { background: var(--primary-50); color: var(--primary); padding: 4px 12px; border-radius: 999px; letter-spacing: 0; font-size: 12px; }
.d4u-title { font-size: 24px; line-height: 1.75; margin-bottom: 6px; }
.d4u-pricebox { margin-top: 4px; background: linear-gradient(135deg, #f8fafc, #eef2ff); border: 1px solid #e0e7ff; border-radius: 18px; padding: 16px 18px; }
.d4u-pricerow { justify-content: space-between; }
.d4u-pricebox .d4u-price, .d4u-pricebox .d4u-price .price { font-size: 30px !important; color: var(--text) !important; }
.d4u-pricebox .d4u-price del { display: block; font-size: 15px; }
.d4u-pricebox .d4u-price ins { display: block; }
.d4u-saving { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: #15803d; }
.d4u-disc-tag { font-size: 18px; padding: 10px 14px; border-radius: 14px; box-shadow: 0 8px 18px -8px rgba(220,38,38,.6); }
.d4u-buy { margin-top: 18px; }
.d4u-single form.cart { display: flex; gap: 10px; align-items: stretch; }
.d4u-single form.cart .quantity { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; background: #fff; flex: none; }
.d4u-single form.cart .quantity label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.d4u-single form.cart .quantity input.qty { width: 46px; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 16px; padding: 0; background: #fff; -moz-appearance: textfield; }
.d4u-single form.cart .quantity input.qty::-webkit-outer-spin-button, .d4u-single form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.d4u-step { width: 38px; align-self: stretch; border: 0; background: #f8fafc; color: var(--primary); font-size: 20px; font-weight: 700; cursor: pointer; font-family: inherit; }
.d4u-step:hover { background: var(--primary-50); }
.d4u-single form.cart .single_add_to_cart_button { flex: 1; }
.d4u-perks { grid-template-columns: 1fr 1fr; gap: 10px; border-top: 0; padding-top: 0; margin-top: 18px; }
.d4u-perks li { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.d4u-perks svg { width: 22px; height: 22px; padding: 4px; background: var(--primary-50); border-radius: 8px; box-sizing: content-box; }
.d4u-keyspecs { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; }
.d4u-info-tabs { border-radius: 24px; overflow: visible; }
.d4u-tabnav { position: sticky; top: 94px; z-index: 20; background: #fff; border-radius: 24px 24px 0 0; }
.d4u-spec-table tr:nth-child(odd) { background: #f8fafc; }
.d4u-spec-table th { border-inline-start: 3px solid transparent; }
.d4u-spec-table tr:hover th { border-inline-start-color: var(--primary); }
/* sticky buy bar (phones) */
.d4u-stickybar { position: fixed; inset-inline: 0; bottom: 0; z-index: 900; display: none; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border-2); box-shadow: 0 -10px 24px -14px rgba(15,23,42,.35); transform: translateY(110%); transition: transform .25s; }
.d4u-stickybar.is-show { transform: translateY(0); }
.d4u-sb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.d4u-sb-title { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d4u-sb-price, .d4u-sb-price .price { font-size: 15px; font-weight: 800; color: var(--text); }
.d4u-sb-price del { font-size: 11px; color: #6b7280; margin-inline-end: 6px; }
.d4u-sb-price ins { text-decoration: none; }
.d4u-sb-btn { height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
@media (max-width: 900px) {
	.d4u-hero { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 22px; }
	.d4u-gallery, .d4u-summary { position: static; }
	.d4u-title { font-size: 20px; }
	.d4u-stickybar { display: flex; }
	.d4u-tabnav { top: 60px; border-radius: 18px 18px 0 0; }
}

/* Sign-in split layout */
.d4u-auth { padding: 8px 0 28px; }
.da-wrap { width: 100%; max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--border); border-radius: 28px; overflow: hidden; box-shadow: 0 16px 40px -28px rgba(15,23,42,.4); }
.da-wrap .da-card { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 36px 40px 28px; align-self: center; }
.da-aside { position: relative; overflow: hidden; color: #fff; background: radial-gradient(90% 70% at 100% 0, rgba(167,139,250,.55), transparent 60%), radial-gradient(80% 60% at 0 100%, rgba(56,189,248,.35), transparent 60%), linear-gradient(160deg, #2f3ac9, #4338ca 55%, #312e81); display: flex; flex-direction: column; justify-content: space-between; padding: 40px 36px 0; min-height: 560px; }
.da-aside h2 { margin: 0 0 18px; font-size: 24px; line-height: 1.7; font-weight: 800; color: #fff; }
.da-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.da-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #e0e7ff; }
.da-perks li span { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.da-tiles { position: relative; height: 230px; margin-top: 24px; }
.da-tile { position: absolute; width: 112px; height: 112px; border-radius: 22px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 18px 30px -16px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 8px; }
.da-tile img { width: 100%; height: 100%; object-fit: contain; }
.da-tile.t0 { inset-inline-start: 2%; top: 60px; transform: rotate(-6deg); }
.da-tile.t1 { inset-inline-start: 28%; top: 120px; transform: rotate(5deg); }
.da-tile.t2 { inset-inline-start: 54%; top: 50px; transform: rotate(-4deg); width: 124px; height: 124px; }
.da-tile.t3 { inset-inline-start: 78%; top: 130px; transform: rotate(7deg); width: 96px; height: 96px; }
.da-tile.t4 { inset-inline-start: 10%; top: 190px; transform: rotate(4deg); width: 96px; height: 96px; }
.da-tile.t5 { inset-inline-start: 62%; top: 190px; transform: rotate(-5deg); width: 96px; height: 96px; }
@media (max-width: 860px) {
	.da-wrap { grid-template-columns: minmax(0, 1fr); border-radius: 22px; max-width: 480px; }
	.da-aside { display: none; }
	.da-wrap .da-card { padding: 26px 20px 20px; }
}
body.woocommerce-account .woocommerce:has(> .d4u-auth) { display: flex !important; justify-content: center; max-width: none !important; width: 100% !important; }
.d4u-auth { width: 100%; }
body .dc-layout .dc-side .cart_totals { float: none !important; width: 100% !important; }
body .dc-layout .dc-side { float: none !important; width: auto !important; }

/* Mobile polish (found while walking the buy flow) */
@media (max-width: 900px) {
	.d4u-thumbs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: 6px; }
	.d4u-thumbs::-webkit-scrollbar { display: none; }
	.d4u-gal-thumb { flex: 0 0 58px; width: 58px; height: 58px; }
	.d4u-gal-main { aspect-ratio: 1 / 0.82; }
	.d4u-single form.cart .single_add_to_cart_button { font-size: 15px !important; white-space: nowrap; padding: 0 8px; }
	.d4u-single form.cart .quantity input.qty { width: 34px; }
	.d4u-step { width: 34px; }
	.d4u-gallery-actions { margin-top: 8px; }
}
@media (max-width: 768px) {
	/* show the whole wide banner instead of cropping its text */
	.slide img { aspect-ratio: auto !important; height: auto; }
	.slider { height: auto; }
}
@media (max-width: 480px) {
	.cat-row { grid-template-columns: repeat(5, 1fr); gap: 8px; }
	.cat-card span { font-size: 11px; }
	.ft-trust-list { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ft-trust-list li { gap: 8px; }
	.ft-trust-list .ft-ic { width: 38px; height: 38px; border-radius: 11px; }
	.ft-trust-list .ft-ic svg { width: 20px; height: 20px; }
	.ft-trust-list strong { font-size: 12.5px; }
	.ft-trust-list em { display: none; }
}

.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { border: 0 !important; box-shadow: none !important; padding: 0 !important; background: transparent !important; border-radius: 0 !important; }
.woocommerce-checkout #payment #place_order, .woocommerce-checkout #place_order { background: var(--primary) !important; color: #fff !important; }
.woocommerce-checkout #payment #place_order:hover { background: var(--primary-600) !important; }

/* Account pages on phones: nav becomes a scrolling pill bar above the content */
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
@media (max-width: 768px) {
	body.woocommerce-account .woocommerce:not(:has(> .d4u-auth)) { display: block !important; }
	.woocommerce-MyAccount-navigation { margin-bottom: 12px; }
	.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
	.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	.woocommerce-MyAccount-navigation li { flex: none; }
	.woocommerce-MyAccount-navigation li a { display: block; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border-2); font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
	.woocommerce-MyAccount-navigation li.is-active a { background: var(--primary); border-color: var(--primary); color: #fff; }
	.woocommerce-MyAccount-content { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
	table.my_account_orders, table.shop_table_responsive { font-size: 13px; }
}

/* ============================================================
   Order received
   ============================================================ */
.dt-wrap { max-width: 980px; margin: 0 auto; }
.dt-hero { text-align: center; background: linear-gradient(135deg, #ecfdf5, #f0fdf4); border: 1px solid #bbf7d0; border-radius: 24px; padding: 30px 20px 26px; margin-bottom: 14px; }
.dt-hero.is-failed { background: linear-gradient(135deg, #fef2f2, #fff1f2); border-color: #fecaca; }
.dt-ic { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: #16a34a; color: #fff; align-items: center; justify-content: center; box-shadow: 0 12px 24px -10px rgba(22,163,74,.6); margin-bottom: 12px; }
.is-failed .dt-ic { background: #dc2626; box-shadow: 0 12px 24px -10px rgba(220,38,38,.6); }
.dt-ic svg { width: 32px; height: 32px; }
.dt-hero h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.dt-hero p { margin: 0; color: var(--text-2); font-size: 14px; }
.dt-facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dt-facts li { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dt-facts span { font-size: 12px; color: var(--text-2); }
.dt-facts strong { font-size: 14.5px; font-weight: 800; overflow-wrap: anywhere; }
.dt-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 14px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.dt-note p { margin: 0; }
.dt-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dt-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px; }
.dt-card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.dt-items { list-style: none; margin: 0; padding: 0; }
.dt-items li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border-2); }
.dt-thumb { width: 56px; height: 56px; border: 1px solid var(--border); border-radius: 12px; padding: 4px; background: #fff; display: block; }
.dt-thumb img { width: 100%; height: 100%; object-fit: contain; }
.dt-name { font-size: 13.5px; font-weight: 600; line-height: 1.7; }
.dt-name a { color: var(--text); }
.dt-name em { display: block; font-style: normal; font-size: 12px; color: var(--text-2); font-weight: 400; }
.dt-sum { font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.dt-totals { margin: 8px 0 0; }
.dt-totals > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13.5px; }
.dt-totals dt { color: var(--text-2); }
.dt-totals dd { margin: 0; font-weight: 700; }
.dt-totals .is-total { border-top: 1px solid var(--border-2); margin-top: 4px; padding-top: 12px; font-size: 15px; }
.dt-totals .is-total dt { color: var(--text); font-weight: 800; }
.dt-line { margin: 0 0 10px; font-size: 13.5px; line-height: 1.9; color: var(--text-2); }
.dt-line b { color: var(--text); }
.dt-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.dt-hero .dt-actions { margin-top: 16px; }
.dt-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; }
.dt-btn:hover { background: var(--primary-600); color: #fff; }
.dt-btn.is-ghost { background: #fff; color: var(--primary); border: 1px solid var(--border-2); }
.dt-btn.is-ghost:hover { background: var(--primary-50); color: var(--primary); }
@media (max-width: 800px) {
	.dt-facts { grid-template-columns: 1fr 1fr; }
	.dt-grid { grid-template-columns: minmax(0, 1fr); }
	.dt-btn { flex: 1; }
}

/* ============================================================
   Mobile app-style UX (≤768px): bottom tab bar, compact header with
   search, edge-to-edge sections, swipeable gallery, fixed action bars.
   Visual design is unchanged — only layout/navigation patterns.
   ============================================================ */
.bnav, .hdr-back, .d4u-swipe, .d4u-sortchips { display: none; }
@media (max-width: 768px) {
	body { padding-bottom: 64px; }
	body.single-product, body.woocommerce-cart, body.woocommerce-checkout { padding-bottom: 0; }
	body.single-product.has-buybar { padding-bottom: 76px; }
	body.woocommerce-cart { padding-bottom: 130px; }
	body.woocommerce-checkout:not(.woocommerce-order-received) { padding-bottom: 90px; }

	/* Header: [back] [brand] [search pill] */
	.header-top .container { height: auto; padding-block: 8px; gap: 8px; }
	.menu-toggle { display: none !important; }
	.header-actions { display: none !important; }
	.hdr-back { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; background: #f1f5f9; border-radius: 50%; color: var(--text); flex: none; }
	.hdr-back svg { width: 18px; height: 18px; }
	.brand-name { font-size: 17px; }
	.brand img { width: auto; height: 30px; }
	.header-search.desktop { display: block !important; flex: 1; max-width: none; min-width: 0; }
	.header-search input { height: 40px; border-radius: 999px; font-size: 13px; padding-inline-start: 38px; background: #f1f5f9; border-color: transparent; }
	.header-search button { top: 4px; inset-inline-start: 4px; }
	.site-header { box-shadow: 0 1px 0 var(--border); }

	/* Bottom tab bar */
	.bnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 950; background: #fff; border-top: 1px solid var(--border-2); box-shadow: 0 -6px 18px -12px rgba(15,23,42,.35); padding-bottom: env(safe-area-inset-bottom); }
	.bn-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 56px; background: transparent; border: 0; color: #64748b; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
	.bn-item svg { width: 24px; height: 24px; }
	.bn-item.is-active { color: var(--primary); }
	.bn-item.is-active svg { stroke-width: 2.1; }
	.bn-item .cart-badge { top: 4px; inset-inline-end: auto; inset-inline-start: calc(50% + 4px); }

	/* Home: edge-to-edge hero, scrolling category row, tighter sections */
	.hero .container { padding-inline: 0; }
	.slider { border-radius: 0; }
	.cat-row { display: flex !important; overflow-x: auto; gap: 12px; padding-bottom: 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
	.cat-row::-webkit-scrollbar { display: none; }
	.cat-card { flex: 0 0 74px; scroll-snap-align: start; }
	.cat-card span { font-size: 11.5px; }
	.section .container { padding-inline: 12px; }
	.product-card-wrap { padding: 12px 0 14px; border-radius: 16px; }
	.product-card-wrap .sec-head { padding-inline: 12px; }
	.product-card-wrap .product-track { padding-inline: 12px; }
	.deals-wrap { border-radius: 18px; }
	.product-track > * { flex: 0 0 150px; }

	/* Listing: compact 2-col grid + sticky sort chips */
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.woo-wrap { padding-block: 10px; padding-inline: 10px; }
	.woo-wrap .page-title, .woocommerce-products-header__title { font-size: 17px; margin: 6px 0 10px; }
	.d4u-filters { position: sticky; top: 56px; z-index: 30; margin-bottom: 0; border-radius: 14px; }
	.d4u-sortchips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; position: sticky; top: 108px; z-index: 29; background: var(--bg-page); }
	.d4u-sortchips::-webkit-scrollbar { display: none; }
	.d4u-sortchips button { flex: none; border: 1px solid var(--border-2); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
	.d4u-sortchips button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
	.woocommerce-result-count { margin: 0 0 6px; font-size: 12px; }
	.woocommerce-ordering { display: none; }

	/* Product page: swipeable gallery + always-visible buy bar */
	.d4u-stagewrap { display: none; }
	.d4u-swipe { display: block; position: relative; margin: 0 -16px; }
	.d4u-swipe-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
	.d4u-swipe-track::-webkit-scrollbar { display: none; }
	.d4u-swipe-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 0.9; display: flex; align-items: center; justify-content: center; background: #fff; border: 0; padding: 0; }
	.d4u-swipe-slide img { max-width: 92%; max-height: 92%; object-fit: contain; }
	.d4u-swipe-count { position: absolute; inset-inline-end: 14px; bottom: 10px; background: rgba(15,23,42,.65); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
	.d4u-swipe .d4u-stage-badge { top: 10px; inset-inline-start: 14px; }
	.d4u-hero { border-radius: 18px; padding: 12px 16px 16px; }
	.d4u-stickybar { display: flex; }
	.d4u-buy { display: none; }
	.d4u-sb-btn { min-width: 150px; }
	.d4u-sb-price { font-size: 16px; }
	.d4u-perks { grid-template-columns: 1fr; }
	.d4u-perks li { padding: 8px 12px; }
	.d4u-gallery-actions { gap: 6px; }

	/* Cart: fixed checkout bar */
	.dc-side .wc-proceed-to-checkout { position: fixed; inset-inline: 0; bottom: 0; z-index: 950; background: #fff; border-top: 1px solid var(--border-2); box-shadow: 0 -8px 20px -14px rgba(15,23,42,.4); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
	.dc-mtotal { flex: 1; display: flex; flex-direction: column; font-size: 11.5px; color: var(--text-2); }
	.dc-mtotal strong { font-size: 15px; color: var(--text); }
	.dc-side .checkout-button { width: auto !important; flex: none; min-width: 150px; height: 46px !important; }

	/* Checkout: fixed place-order bar */
	.woocommerce-checkout #payment .place-order { position: fixed; inset-inline: 0; bottom: 0; z-index: 950; background: #fff; border-top: 1px solid var(--border-2); box-shadow: 0 -8px 20px -14px rgba(15,23,42,.4); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important; margin: 0 !important; }
	.woocommerce-checkout #payment .place-order .woocommerce-privacy-policy-text { display: none; }
	.woocommerce-checkout #place_order { height: 46px; }
}

/* ---- Mobile fixes round 2 ---- */
@media (max-width: 768px) {
	/* category menu icon back in the header */
	.menu-toggle { display: flex !important; margin-inline-end: 0; width: 36px; height: 36px; flex: none; }
	.menu-toggle svg { width: 24px; height: 24px; }
	.header-top .container { gap: 6px; }

	/* product card: price + cart button always fit inside the card */
	.pcard .pbody { padding: 4px 8px 8px; }
	.pcard .pfoot { gap: 4px; }
	.pcard .price { font-size: 12.5px; min-width: 0; flex: 1 1 auto; line-height: 1.5; }
	.pcard .price small, .pcard .price .woocommerce-Price-currencySymbol { font-size: 9px; }
	.pcard .price del { display: block; font-size: 10.5px; }
	.pcard .addcart, .pcard .reqbtn { flex: none; }
	.pcard .addcart { width: 28px; height: 28px; border-radius: 9px; }
	.pcard .addcart svg { width: 16px; height: 16px; }
	.product-track > * { flex-basis: 156px; }

	/* the tab bar is always visible → fixed bars sit above it */
	body, body.single-product, body.woocommerce-cart, body.woocommerce-checkout { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	body.single-product.has-buybar { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
	body.woocommerce-cart { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
	body.woocommerce-checkout:not(.woocommerce-order-received) { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
	.d4u-stickybar { bottom: calc(56px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
	.dc-side .wc-proceed-to-checkout, .woocommerce-checkout #payment .place-order { bottom: calc(56px + env(safe-area-inset-bottom)); padding-bottom: 10px !important; }

	/* cart drawer: fit the real visible viewport so the checkout button is reachable */
	.cart-drawer .cd-panel { height: 100dvh; max-height: 100dvh; }
	.cart-drawer .cd-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); position: sticky; bottom: 0; }

	/* cart page rows: price stays inside the card */
	.dc-item { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "t i r" "t q s"; }
	.dc-sub { font-size: 13.5px; min-width: 0; white-space: normal; text-align: end; }
	.dc-unit { font-size: 12px; }
	.dc-qty { justify-self: start; }
	.dc-items { padding-inline: 14px; }
}
/* The cart drawer and category sheet live inside the sticky header; lift the
   header's stacking context above the fixed bottom bars so they cover them. */
@media (max-width: 768px) { .site-header { z-index: 1000; } }
@media (max-width: 768px) {
	.hdr-back ~ .brand { display: none; }
	.woocommerce-checkout #payment .place-order { display: flex; align-items: center; gap: 12px; }
	.pl-total { flex: 1; display: flex; flex-direction: column; font-size: 11.5px; color: var(--text-2); }
	.pl-total strong { font-size: 15px; color: var(--text); }
	.woocommerce-checkout #place_order { width: auto !important; flex: none; min-width: 160px; }
}

/* ============================================================
   Account area
   ============================================================ */
.woocommerce-account .woocommerce-MyAccount-navigation { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 14px; }
.an-profile { display: flex; align-items: center; gap: 10px; padding: 6px 6px 14px; margin-bottom: 8px; border-bottom: 1px dashed var(--border-2); }
.an-profile strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-avatar { flex: none; width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(135deg, var(--primary), #6366f1); color: #fff; font-weight: 800; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.woocommerce-MyAccount-navigation li a svg { width: 20px; height: 20px; flex: none; }
.woocommerce-MyAccount-navigation li a:hover { background: #f8fafc; color: var(--text); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--primary-50); color: var(--primary); }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: #b91c1c; margin-top: 6px; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fef2f2; }
.woocommerce-account .woocommerce-MyAccount-content { background: transparent; border: 0; padding: 0; }

.da-dash { display: grid; gap: 14px; }
.dd-hero { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #2f3ac9, #4338ca 55%, #312e81); color: #fff; border-radius: 22px; padding: 20px 22px; position: relative; overflow: hidden; }
.dd-hero::after { content: ""; position: absolute; inset-inline-end: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.1); }
.dd-hero .dd-avatar { width: 56px; height: 56px; font-size: 24px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); }
.dd-who { flex: 1; min-width: 0; position: relative; z-index: 1; }
.dd-who h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: #fff; }
.dd-who p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: #e0e7ff; }
.dd-edit { position: relative; z-index: 1; background: #fff; color: var(--primary); border-radius: 10px; padding: 8px 14px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.dd-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dd-stats li { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.dd-stats strong { display: block; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.dd-stats em { font-style: normal; font-size: 12px; color: var(--text-2); }
.dd-si { flex: none; width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; }
.dd-si svg { width: 22px; height: 22px; }
.dd-si.is-blue { background: #e0e7ff; color: #3730a3; }
.dd-si.is-amber { background: #fef3c7; color: #b45309; }
.dd-si.is-green { background: #dcfce7; color: #15803d; }
.dd-tip { display: flex; align-items: center; gap: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 16px; padding: 12px 16px; font-size: 13px; font-weight: 600; }
.dd-tip b { margin-inline-start: auto; }
.dd-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 16px 18px; }
.dd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dd-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.dd-head a { font-size: 12.5px; color: var(--primary); font-weight: 700; }
.dd-orders { list-style: none; margin: 0; padding: 0; }
.dd-orders li + li { border-top: 1px dashed var(--border-2); }
.dd-orders a { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; font-size: 13px; color: var(--text); }
.dd-onum { font-weight: 800; }
.dd-odate { color: var(--text-2); }
.dd-ototal { font-size: 13px; }
.dd-badge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e0e7ff; color: #3730a3; white-space: nowrap; }
.dd-badge.is-ok { background: #dcfce7; color: #15803d; }
.dd-badge.is-busy { background: #dbeafe; color: #1d4ed8; }
.dd-badge.is-warn { background: #fef3c7; color: #b45309; }
.dd-badge.is-bad { background: #fee2e2; color: #b91c1c; }
.dd-empty { text-align: center; padding: 18px 0 8px; }
.dd-empty p { margin: 0 0 12px; color: var(--text-2); font-size: 13.5px; }
.dd-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dd-quick a { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dd-quick a:hover { border-color: #c7d2fe; box-shadow: 0 10px 22px -14px rgba(47,58,201,.5); transform: translateY(-2px); }
.dd-quick .dd-si { margin-bottom: 6px; }
.dd-quick b { font-size: 14px; color: var(--text); }
.dd-quick em { font-style: normal; font-size: 12px; color: var(--text-2); }
@media (max-width: 768px) {
	.woocommerce-account .woocommerce-MyAccount-navigation { background: transparent; border: 0; padding: 0; }
	.an-profile { display: none; }
	.woocommerce-MyAccount-navigation li a { background: #fff; }
	.woocommerce-MyAccount-navigation li a svg { display: none; }
	.woocommerce-MyAccount-navigation li.is-active a { background: var(--primary); color: #fff; }
	.woocommerce-account .woocommerce-MyAccount-content { background: transparent; border: 0; padding: 0; }
	.dd-hero { flex-wrap: wrap; padding: 16px; }
	.dd-edit { order: 3; }
	.dd-stats { grid-template-columns: 1fr 1fr; }
	.dd-stats li:last-child { grid-column: 1 / -1; }
	.dd-quick { grid-template-columns: 1fr; }
	.dd-quick a { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
	.dd-quick .dd-si { margin: 0; }
	.dd-quick em { flex-basis: 100%; margin-inline-start: 52px; margin-top: -6px; }
	.dd-orders a { grid-template-columns: auto 1fr auto; }
	.dd-orders .dd-ototal { grid-column: 1 / -1; }
}
.dd-who p, .dd-who p span { color: #e0e7ff !important; opacity: 1; }
.dd-who h2 { color: #fff !important; }

/* ---- Account sub-pages ---- */
.da-page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.da-page-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.ao-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ao-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.ao-card:hover { border-color: #c7d2fe; box-shadow: 0 10px 22px -16px rgba(47,58,201,.5); }
.ao-thumb { width: 72px; height: 72px; border: 1px solid var(--border); border-radius: 14px; padding: 5px; display: block; background: #fff; }
.ao-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ao-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ao-top strong { font-size: 14px; font-weight: 800; }
.ao-name { margin: 4px 0; font-size: 13px; color: var(--text-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ao-name em { font-style: normal; color: var(--primary); }
.ao-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.ao-meta b { color: var(--text); font-size: 13.5px; }
.ao-btn { height: 38px; padding: 0 18px; font-size: 13px; }
.ao-pager { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.ao-notes { margin: 0; padding: 0 18px 0 0; font-size: 13px; line-height: 1.9; }
.ao-notes li span { display: block; font-size: 11.5px; color: var(--text-2); }
.aa-card { display: flex; align-items: center; gap: 14px; }
.aa-body { flex: 1; min-width: 0; }
.aa-body strong { display: block; margin-bottom: 4px; }
.aa-body p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.9; color: var(--text-2); }
/* address + account forms */
.woocommerce-account .woocommerce-MyAccount-content form.edit-account, .woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields, .woocommerce-account .woocommerce-MyAccount-content form[action*="edit-address"] { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px; }
.woocommerce-account .woocommerce-MyAccount-content h3 { margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.woocommerce-account .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.woocommerce-account .woocommerce-MyAccount-content .form-row { margin: 0 0 12px !important; float: none !important; width: auto !important; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-content .form-row-wide, .woocommerce-account .woocommerce-MyAccount-content fieldset { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-content label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.woocommerce-account .woocommerce-MyAccount-content .input-text, .woocommerce-account .woocommerce-MyAccount-content select { width: 100%; height: 42px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.woocommerce-account .woocommerce-MyAccount-content fieldset { border: 1px solid var(--border-2); border-radius: 14px; padding: 12px 14px 4px; margin: 6px 0 14px; }
.woocommerce-account .woocommerce-MyAccount-content fieldset legend { font-size: 13px; font-weight: 800; padding: 0 6px; }
.woocommerce-EditAccountForm #account_display_name, .woocommerce-EditAccountForm #account_display_name + span, .woocommerce-EditAccountForm .form-row:has(#account_display_name) { display: none !important; }
.woocommerce-account .woocommerce-MyAccount-content button.button, .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button { height: 46px; padding: 0 26px; border-radius: 12px; background: var(--primary); color: #fff; border: 0; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.woocommerce-account .woocommerce-MyAccount-content button.button:hover { background: var(--primary-600); }
.woocommerce-account .woocommerce-message, .woocommerce-account .woocommerce-error, .woocommerce-account .woocommerce-info { border-radius: 14px; margin-bottom: 12px; }
@media (max-width: 768px) {
	.ao-card { grid-template-columns: 60px minmax(0, 1fr); }
	.ao-thumb { width: 60px; height: 60px; }
	.ao-btn { grid-column: 1 / -1; width: 100%; }
	.aa-card { flex-wrap: wrap; }
	.aa-card .dt-btn { width: 100%; }
	.woocommerce-account .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
	.woocommerce-account .woocommerce-MyAccount-content form.edit-account, .woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields { padding: 14px; }
}

.woocommerce-account .woocommerce-MyAccount-content { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.da-page-head { background: transparent; }
/* the page <h1> already carries the title */
.da-page-head h2 { display: none; }
.da-page-head:not(:has(.dd-badge)) { display: none; }
.woocommerce-EditAccountForm .form-row:has(#account_email) label .required { display: none; }

/* Verification card */
.dv-card { border-color: #fde68a; background: linear-gradient(135deg, #fffbeb, #fff); }
.dv-step + .dv-step { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-2); }
.dv-step p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.9; color: var(--text-2); }
.dv-step .da-form { max-width: 420px; }
.dv-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 12px; padding: 9px 12px; font-size: 13px; margin-bottom: 10px; }
.dv-error[hidden], .dv-step .da-form[hidden] { display: none !important; }
.dv-msg { border-radius: 14px; padding: 11px 14px; font-size: 13px; font-weight: 600; }
.dv-msg.is-ok { background: #dcfce7; color: #166534; }
.dv-msg.is-bad { background: #fee2e2; color: #991b1b; }
.dv-msg.is-warn { background: #fef3c7; color: #92400e; }
.dv-note { margin-inline-start: 10px; font-size: 12.5px; color: var(--text-2); }

/* ── Wishlist / compare ── */
.pcard .wish { cursor: pointer; transition: color .15s, transform .15s; }
.pcard .wish.is-on { color: #e11d48; }
.pcard .wish.is-on svg { fill: currentColor; }
.pcard .wish:active { transform: scale(.9); }
.d4u-toast { display: flex; align-items: center; gap: 12px; }
.d4u-toast-link { color: #93c5fd; font-weight: 800; white-space: nowrap; text-decoration: underline; }
.dl-root { min-height: 200px; }
.dl-loading { text-align: center; color: var(--text-2); padding: 40px 0; }
.dl-empty { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 44px 20px; max-width: 520px; margin: 10px auto; }
.dl-empty span { display: inline-flex; width: 72px; height: 72px; border-radius: 22px; background: var(--primary-50); color: var(--primary); align-items: center; justify-content: center; font-size: 34px; margin-bottom: 10px; }
.dl-empty h2 { margin: 0 0 6px; font-size: 18px; }
.dl-empty p { margin: 0 0 18px; color: var(--text-2); font-size: 14px; }
.dl-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.dl-cell { position: relative; }
.dl-remove { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 5; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,23,42,.7); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.dl-remove:hover { background: #dc2626; }
.dl-cell .pcard .wish { display: none; }
.dl-diff { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.dl-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.dl-compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.dl-compare th, .dl-compare td { padding: 12px 14px; font-size: 13px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
.dl-compare thead th { position: relative; text-align: center; background: #fff; vertical-align: top; }
.dl-corner { width: 140px; }
.dl-compare tbody th { background: #f8fafc; color: var(--text-2); font-weight: 700; width: 140px; }
.dl-img { display: block; width: 110px; height: 110px; margin: 0 auto 8px; }
.dl-img img { width: 100%; height: 100%; object-fit: contain; }
.dl-name { display: block; color: var(--text); font-weight: 700; line-height: 1.7; margin-bottom: 6px; }
.dl-price { font-weight: 800; font-size: 13.5px; }
.dl-compare tbody tr.is-diff td { background: #fffbeb; }
.dl-root.only-diff tbody tr:not(.is-diff) { display: none; }
.dl-nospec { text-align: center !important; color: var(--text-2); }
body.d4u-list-page .page-title { margin-bottom: 14px; }
@media (max-width: 768px) {
	.dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.d4u-toast { bottom: calc(150px + env(safe-area-inset-bottom)); max-width: 92vw; }
	.dl-corner, .dl-compare tbody th { width: 96px; min-width: 96px; position: sticky; inset-inline-start: 0; }
}

/* ── Product reviews ── */
.dr-summary { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 24px; align-items: center; background: linear-gradient(135deg, #f8fafc, #eef2ff); border: 1px solid #e0e7ff; border-radius: 20px; padding: 18px 22px; margin-bottom: 18px; }
.dr-score { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.dr-score strong { font-size: 40px; line-height: 1; font-weight: 800; }
.dr-score em { font-style: normal; font-size: 12.5px; color: var(--text-2); }
.dr-bars { display: grid; gap: 7px; }
.dr-bar { display: grid; grid-template-columns: 36px minmax(0, 1fr) 28px; gap: 10px; align-items: center; font-size: 12px; color: var(--text-2); }
.dr-bar i { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; display: block; }
.dr-bar b { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24); border-radius: 999px; }
.dr-cta { white-space: nowrap; }
.dr-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.dr-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; margin: 0; }
.dr-card .comment_container { display: flex; gap: 12px; }
.dr-avatar { flex: none; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), #6366f1); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.dr-body { flex: 1; min-width: 0; }
.dr-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.dr-meta strong { font-size: 14px; }
.dr-meta time { margin-inline-start: auto; font-size: 12px; color: var(--text-2); }
.dr-badge { background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.dr-text { margin-top: 6px; font-size: 13.5px; line-height: 2; color: var(--text); }
.dr-text p { margin: 0; }
.dr-pending { margin: 6px 0 0; font-size: 13px; color: #92400e; background: #fffbeb; border-radius: 10px; padding: 8px 12px; }
.dr-form { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.dr-form .comment-reply-title { font-size: 16px; font-weight: 800; margin: 0 0 14px; display: block; }
.dr-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.dr-form input[type=text], .dr-form input[type=email], .dr-form textarea { width: 100%; border: 1px solid var(--border-2); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 14px; }
.dr-form input[type=text], .dr-form input[type=email] { height: 44px; }
.dr-form textarea { min-height: 120px; resize: vertical; line-height: 1.9; }
.dr-form input:focus, .dr-form textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,58,201,.15); }
.dr-form .comment-form { display: grid; gap: 14px; }
.dr-form .comment-form p { margin: 0; }
.dr-rate > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.dr-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.dr-stars input { position: absolute; opacity: 0; pointer-events: none; }
.dr-stars label { margin: 0; font-size: 32px; line-height: 1; color: #cbd5e1; cursor: pointer; transition: color .12s, transform .12s; }
.dr-stars input:checked ~ label, .dr-stars label:hover, .dr-stars label:hover ~ label { color: #f59e0b; }
.dr-stars label:hover { transform: scale(1.12); }
.dr-stars input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 6px; }
.dr-submit { height: 48px; padding: 0 30px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.dr-submit:hover { background: var(--primary-600); }
.dr-login { background: #f8fafc; border: 1px dashed var(--border-2); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; text-align: center; margin: 0; }
.dr-login a { color: var(--primary); font-weight: 700; }
@media (max-width: 768px) {
	.dr-summary { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
	.dr-cta { width: 100%; }
	.dr-card { padding: 14px; }
	.dr-form { padding: 16px; }
}

/* Real star shapes for rating displays (was square blocks). */
.d4u-stars { width: 92px; height: 16px; background: linear-gradient(90deg, #f59e0b var(--rate, 0%), #e2e8f0 var(--rate, 0%)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.9-4.8 4.6 1.2 6.6L12 17.5l-5.9 3.2 1.2-6.6L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E") repeat-x left center / 18.4px 16px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.9-4.8 4.6 1.2 6.6L12 17.5l-5.9 3.2 1.2-6.6L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E") repeat-x left center / 18.4px 16px; direction: ltr; transform: scaleX(-1); }
.dr-score .d4u-stars { width: 112px; height: 20px; -webkit-mask-size: 22.4px 20px; mask-size: 22.4px 20px; }

/* ── Magazine cards (home) ── */
.blog-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: repeat(2, auto); gap: 16px; }
.blog-grid .bcard { position: relative; flex-direction: row; border-radius: 20px; min-height: 150px; }
.blog-grid .bcard .bimg { flex: 0 0 38%; aspect-ratio: auto; min-height: 150px; }
.blog-grid .bcard .bbody { padding: 14px 16px; justify-content: center; gap: 2px; }
.blog-grid .bcard h3 { font-size: 14.5px; }
.blog-grid .bcard .bmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.blog-grid .bcard .bread::before { content: "·"; margin-inline-end: 12px; color: var(--text-3); }
.blog-grid .bcard .bmore { margin-inline-start: auto; color: var(--primary); font-weight: 700; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; }
.blog-grid .bcard:hover .bmore { opacity: 1; transform: none; }
.blog-grid .bcard.is-lead { grid-row: 1 / span 2; flex-direction: column; min-height: 0; color: #fff; }
.blog-grid .bcard.is-lead .bimg { position: absolute; inset: 0; flex: none; min-height: 0; }
.blog-grid .bcard.is-lead .bimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.92) 8%, rgba(15,23,42,.35) 55%, rgba(15,23,42,.05)); }
.blog-grid .bcard.is-lead .bbody { position: relative; z-index: 1; margin-top: auto; padding: 24px; gap: 6px; min-height: 360px; justify-content: flex-end; }
.blog-grid .bcard.is-lead h3 { font-size: 21px; line-height: 1.7; color: #fff; -webkit-line-clamp: 3; }
.blog-grid .bcard.is-lead p { color: #e2e8f0 !important; font-size: 13.5px; -webkit-line-clamp: 3; margin: 0; }
.blog-grid .bcard.is-lead .bmeta { color: #cbd5e1 !important; }
.blog-grid .bcard.is-lead .bmore { color: #fff; opacity: 1; transform: none; }
.blog-grid .bcard.is-lead .bbadge { z-index: 2; top: 18px; inset-inline-start: 18px; background: var(--primary); color: #fff; }
.blog-grid .bcard.is-lead:hover h3 { color: #fff; }
@media (max-width: 900px) {
	.blog-grid { grid-template-columns: minmax(0, 1fr); }
	.blog-grid .bcard.is-lead { grid-row: auto; }
	.blog-grid .bcard.is-lead .bbody { min-height: 260px; padding: 18px; }
	.blog-grid .bcard.is-lead h3 { font-size: 18px; }
}
@media (max-width: 520px) {
	.blog-grid .bcard:not(.is-lead) { flex-direction: column; }
	.blog-grid .bcard:not(.is-lead) .bimg { flex: none; min-height: 0; aspect-ratio: 16/9; }
}
.blog-grid .bcard .bimg .ph { align-items: center; }
.blog-grid .bcard.is-lead .bimg .ph { align-items: flex-start; justify-content: flex-end; padding: 22px; }
.blog-grid .bcard.is-lead .bimg .ph svg { width: 64px; height: 64px; color: rgba(255,255,255,.25); }
.blog-grid .bcard:not(.is-lead) .bimg { background: linear-gradient(135deg, #4338ca, #2f3ac9 60%, #6366f1); }

.md-logo { height: 30px; width: auto; display: block; }

/* Trust badges live inside the contact column (compact) */
.footer-badges.is-inline { border-top: 0; padding: 0; margin: 14px 0 0; justify-content: flex-start; gap: 10px; }
.footer-badges.is-inline .footer-badge { padding: 4px; border-radius: 10px; }
.footer-badges.is-inline .footer-badge img { height: 58px; }
