/*
Theme Name: SkinSelection
Description: WooCommerce theme for SkinSelection, Sri Lanka.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
WC requires at least: 8.0
Text Domain: skinselection
*/

:root {
	--burgundy: #660033;
	--rose: #993366;
	--blush: #F7E8EE;
	--pale: #F2DCE5;
	--line: #E3C6D3;
	--text: #3A2A30;
	--muted: #6B5560;
	--green: #1F7A4D;
	--serif: Fraunces, Georgia, serif;
	--sans: Inter, system-ui, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.6 var(--sans); }
a { color: var(--burgundy); }
a:hover { color: var(--rose); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); color: var(--burgundy); line-height: 1.15; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: static; width: auto; height: auto; clip: auto; padding: 8px; }
.ic { flex: none; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.h2 { margin: 0; font-weight: 600; font-size: clamp(28px, 3vw, 40px); }
.page-body { padding-top: 40px; padding-bottom: 80px; }
.page-title { font-weight: 800; font-size: clamp(34px, 4vw, 48px); margin: 0 0 24px; }

/* ---------- Buttons ---------- */
.ss-btn, .button, button.button, input.button, .woocommerce a.button, .woocommerce button.button,
.wc-block-components-button:not(.is-link), .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 28px; border: 1.5px solid var(--burgundy); border-radius: 999px;
	background: var(--burgundy); color: #fff; font: 600 15px var(--sans); text-decoration: none; cursor: pointer;
}
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.ss-btn:hover, .button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.ss-btn-o { background: transparent; color: var(--burgundy); }
.ss-btn-w { background: #fff; color: var(--burgundy); border-color: #fff; }
.ss-btn-wa { background: #fff; color: var(--green); border-color: var(--green); width: 100%; margin: 12px 0; }
.ss-btn-wa:hover { background: var(--green); border-color: var(--green); }

/* ---------- Forms ---------- */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password],
input[type=search], select, textarea, .woocommerce form .form-row .input-text, .select2-container .select2-selection--single {
	min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px;
	font: 15px var(--sans); color: var(--text); background: #fff;
}
textarea { padding: 12px 14px; min-height: 88px; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding: 0; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
input[type=checkbox], input[type=radio] { accent-color: var(--burgundy); width: 18px; height: 18px; }
label { font-size: 14px; font-weight: 500; }

/* ---------- Header ---------- */
/* Sticky by default; ss.js switches to fixed + a body spacer (--hh) so collapsing never shifts the page. */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--pale); transition: box-shadow .25s; }
.hh-ready .site-header { position: fixed; left: 0; right: 0; }
.hh-ready body { padding-top: var(--hh, 0px); }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(102,0,51,.08); }

/* Rolling top bar (moves right to left, pauses on hover). */
.topbar { background: var(--burgundy); color: #fff; font-size: 13px; overflow: hidden; white-space: nowrap; }
.topbar-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.topbar:hover .topbar-track, .topbar:focus-within .topbar-track { animation-play-state: paused; }
.topbar-set { display: flex; }
.topbar-set span { display: inline-flex; align-items: center; gap: 28px; padding: 9px 0 9px 28px; }
.topbar-set span::after { content: "✦"; font-size: 10px; color: var(--pale); }
.topbar a { color: #fff; font-weight: 600; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-25%); } } /* Right to left. */

/* Main row. */
.header-main { display: flex; align-items: center; gap: 16px 28px; padding-top: 12px; padding-bottom: 18px; transition: padding .3s ease; }
.logo { display: flex; align-items: flex-start; gap: 4px; flex: none; margin-left: -2px; text-decoration: none; color: var(--burgundy); }
.logo img { max-height: 52px; width: auto; transition: max-height .3s ease; }
.logo .ic { color: var(--rose); width: 24px; height: 24px; transition: width .3s ease, height .3s ease; }
.wordmark { font-family: var(--serif); font-size: 36px; line-height: 1; transition: font-size .3s ease; }
.wordmark b { font-weight: 800; }
.wordmark i { font-weight: 400; }

/* Twinkling stars: each star dims, shrinks and flares back in turn. */
.logo .ic path { transform-box: fill-box; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite; }
.logo .ic path:nth-child(2) { animation-delay: 1.2s; }
.logo .ic path:nth-child(3) { animation-delay: 2.4s; }
@keyframes twinkle {
	0%, 100% { opacity: 1; transform: scale(1); }
	18% { opacity: .1; transform: scale(.35); }
	30% { opacity: 1; transform: scale(1.2); }
	42% { transform: scale(1); }
}

/* Search. */
.search { position: relative; flex: 1 1 280px; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1.5px solid transparent; border-radius: 999px; background: var(--blush); color: var(--rose); transition: border-color .2s, background-color .2s; }
.search:focus-within { border-color: var(--rose); background: #fff; }
.search .ic { width: 18px; height: 18px; }
.search input[type=search] { flex: 1; min-width: 0; min-height: 42px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 15px; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
.search input[type=search]::placeholder { font-size: 14px; color: var(--muted); opacity: 1; }
.search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Live search results. */
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 120; background: #fff; border: 1px solid var(--pale); border-radius: 18px; box-shadow: 0 16px 40px rgba(102,0,51,.12); padding: 8px; max-height: 70vh; overflow-y: auto; animation: rise .2s ease; }
.search-results[hidden] { display: none; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a:focus { background: var(--blush); outline: none; }
.search-results img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--blush); flex: none; }
.search-results .sr-name { flex: 1; font-size: 14px; line-height: 1.35; }
.search-results .sr-price { font-weight: 600; color: var(--burgundy); font-size: 14px; white-space: nowrap; }
.search-results .sr-all { justify-content: center; font-weight: 600; color: var(--burgundy); border-top: 1px solid var(--pale); border-radius: 0 0 12px 12px; margin-top: 4px; }
.search-results .sr-empty { padding: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* Icons. */
.icons { display: flex; align-items: center; gap: 2px; flex: none; }
.icons a, .search-toggle { position: relative; flex: none; aspect-ratio: 1; box-sizing: border-box; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; border-radius: 999px; background: transparent; color: var(--burgundy); cursor: pointer; }
.icons a:hover, .search-toggle:hover { background: var(--blush); }
.search-toggle { display: none; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* Menu row (desktop). */
.main-nav { overflow: visible; max-height: 120px; transition: max-height .3s ease, opacity .25s ease; }
.main-nav .menu { list-style: none; margin: -6px 0 0; padding: 0 0 8px; display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -14px; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a { display: block; padding: 10px 14px; font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 999px; }
.main-nav .menu > li > a:hover { background: var(--blush); }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 50; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--pale); border-radius: 14px; box-shadow: 0 12px 30px rgba(102,0,51,.08); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { font-weight: 500; padding: 10px 12px; border-radius: 8px; }
.main-nav .sub-menu a:hover { background: var(--blush); }

/* Compact (scrolling down): top bar + menu row collapse, logo shrinks; search + icons stay. */
.topbar { max-height: 60px; transition: max-height .3s ease, opacity .25s ease; }
.site-header.is-compact .topbar, .site-header.is-compact .main-nav { max-height: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.site-header.is-compact .header-main { padding-top: 10px; padding-bottom: 10px; }
.site-header.is-compact .wordmark { font-size: 28px; }
.site-header.is-compact .logo img { max-height: 38px; }
.site-header.is-compact .logo .ic { width: 18px; height: 18px; }

/* ---------- Mobile menu drawer ---------- */
.mobile-nav { display: none; }
.mobile-nav summary { list-style: none; flex: none; aspect-ratio: 1; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; cursor: pointer; color: var(--burgundy); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 210; width: min(88vw, 380px); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: #fff; box-shadow: 10px 0 40px rgba(102,0,51,.18); border-radius: 0 24px 24px 0; animation: drawer-in .35s cubic-bezier(.2,.8,.2,1); }
.drawer-backdrop { display: none; }
.mobile-nav[open] .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 200; border: 0; padding: 0; background: rgba(58,42,48,.45); backdrop-filter: blur(2px); animation: fade-in .25s; cursor: pointer; }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 16px 20px; background: var(--blush); }
.drawer-head .wordmark { font-size: 26px; }
.drawer-head .logo .ic { width: 18px; height: 18px; }
.drawer .drawer-close:not(.drawer-backdrop) { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: #fff; color: var(--burgundy); cursor: pointer; transition: transform .25s; }
.drawer .drawer-close:not(.drawer-backdrop):hover { transform: rotate(90deg); }
.mobile-menu { list-style: none; margin: 0; padding: 8px 20px; flex: 1; }
.mobile-menu > li { position: relative; border-bottom: 1px solid var(--pale); }
.mobile-nav[open] .mobile-menu > li { animation: slide-in .4s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms + 120ms); }
.mobile-menu a { display: block; padding: 15px 52px 15px 0; font-weight: 600; font-size: 16px; color: var(--burgundy); text-decoration: none; }
.mobile-menu .sub-menu { list-style: none; margin: 0 0 12px; padding: 4px 0 4px 14px; border-left: 2px solid var(--pale); }
.mobile-menu .sub-menu a { padding: 10px 0; font-weight: 400; font-size: 15px; color: var(--text); }
/* Accordion (ss.js adds .js-accordion and the toggle buttons). */
.js-accordion .sub-menu { display: none; }
.js-accordion li.is-open > .sub-menu { display: block; animation: rise .25s ease; }
.sub-toggle { position: absolute; right: 0; top: 6px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--blush); color: var(--burgundy); cursor: pointer; transition: transform .25s, background-color .2s; }
li.is-open > .sub-toggle { transform: rotate(180deg); background: var(--pale); }
.drawer-foot { display: grid; gap: 10px; padding: 16px 20px 24px; border-top: 1px solid var(--pale); }
.drawer-foot .ss-btn-wa { margin: 0; }
.drawer-link { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; }
.drawer-note { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.drawer-note .ic { width: 18px; height: 18px; color: var(--burgundy); }
html.drawer-open { overflow: hidden; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-14px); } }
@keyframes fade-in { from { opacity: 0; } }

/* WordPress admin bar offsets (logged-in only). */
.admin-bar .drawer, .admin-bar .mini-cart { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header, .admin-bar .drawer, .admin-bar .mini-cart { top: 46px; }
}
@media (max-width: 600px) { /* The admin bar scrolls away on phones. */
	.admin-bar .site-header, .admin-bar .drawer, .admin-bar .mini-cart { top: 0; }
}

@media (max-width: 860px) {
	.mobile-nav { display: block; }
	.main-nav { display: none; }
	.topbar { font-size: 12px; }
	.topbar-set span { padding: 7px 0 7px 22px; gap: 22px; }
	/* Menu button + logo on the left, icons on the right. */
	.header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 6px; padding: 16px 12px; }
	.header-main > .logo { justify-content: flex-start; margin: 0; }
	.logo img { max-height: 38px; }
	.wordmark { font-size: 26px; }
	.logo .ic { width: 16px; height: 16px; }
	.icons { justify-content: flex-end; gap: 0; }
	.search-toggle { display: flex; }
	.icons a, .search-toggle { width: 40px; height: 40px; }
	/* Search hidden until the search icon is tapped, then shown under the logo. */
	.search { display: none; grid-column: 1 / -1; order: 9; margin: 12px 0 2px; min-height: 44px; }
	.site-header.search-open .search { display: flex; animation: rise .2s ease; }
	.search input[type=search] { font-size: 16px; } /* 16px stops iOS zooming in. */
	.search input[type=search]::placeholder { font-size: 14px; }
	.site-header.is-compact .header-main { padding-top: 8px; padding-bottom: 10px; } /* Sticky = the old full-size padding. */
	.site-header.is-compact .wordmark { font-size: 21px; }
	.site-header.is-compact .logo .ic { width: 13px; height: 13px; }
}
@media (max-width: 380px) { .wordmark { font-size: 23px; } .icons a, .search-toggle { width: 38px; height: 38px; } }

/* Light motion. */
.ss-btn, .button, .chips a, .cat-circles a, .icons a { transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.ss-btn:active, .button:active { transform: scale(.97); }
.circle img, .woocommerce ul.products li.product img, .hero-img img, .promo-img img { transition: transform .5s ease; }
.cat-circles a:hover .circle img, .woocommerce ul.products li.product:hover img { transform: scale(1.04); }
.circle, .woocommerce ul.products li.product a.woocommerce-LoopProduct-link { overflow: hidden; }
.reveal-on .reveal, .reveal-on ul.products li.product { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on .reveal.in, .reveal-on ul.products li.product.in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise .7s ease both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--burgundy); color: #fff; padding: 56px 0 32px; margin-top: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-brand { flex: 2 1 280px; }
.footer-brand p { color: var(--pale); max-width: 320px; }
.site-footer nav { flex: 3 1 480px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.footer-menu > li > a { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pale); }
.footer-menu .sub-menu { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.footer-bottom { padding-right: 72px; margin-top: 40px; border-top: 1px solid var(--rose); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--pale); }
.pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pay span { border: 1px solid var(--rose); border-radius: 6px; padding: 4px 10px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 999px; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(102,0,51,.25); }
.wa-float:hover { color: #fff; }
.wa-float .ic { width: 28px; height: 28px; }

/* ---------- Homepage ---------- */
.hero { background: var(--blush); }
.hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 420px; }
.hero h1 { margin: 0 0 20px; font-weight: 800; font-size: clamp(40px, 5vw, 68px); line-height: 1.04; }
.hero h1 i, .promo h2 i { font-weight: 400; }
.lead { font-size: 18px; max-width: 480px; margin: 0 0 24px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img, .promo-img { flex: 1 1 420px; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden; background: var(--pale); }
.hero-img img, .promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trust { border-bottom: 1px solid var(--pale); }
.trust-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 16px; padding-top: 32px; padding-bottom: 32px; }
.trust-in > div { display: flex; gap: 12px; align-items: flex-start; color: var(--burgundy); line-height: 1.35; }
.trust-in > div .ic { margin-top: 1px; }
.trust-in strong { display: block; font-size: 15px; margin-bottom: 2px; }
.trust-in span { display: block; font-size: 13px; color: var(--muted); }

/* Brand strip: auto-scrolls right to left, swipe or drag to move it. */
.brand-strip { overflow-x: auto; scrollbar-width: none; cursor: grab; margin: 0 -24px; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-strip::-webkit-scrollbar { display: none; }
.brand-strip.dragging { cursor: grabbing; }
.brand-strip.dragging a { pointer-events: none; }
.brand-track { display: flex; gap: 14px; width: max-content; padding: 0 24px; }
.brand-item { flex: none; display: flex; align-items: center; justify-content: center; min-width: 150px; height: 84px; padding: 0 28px; border: 1px solid var(--pale); border-radius: 18px; background: #fff; font-family: var(--serif); font-size: 20px; color: var(--burgundy); text-decoration: none; white-space: nowrap; user-select: none; -webkit-user-drag: none; transition: border-color .2s, background-color .2s; }
.brand-item:hover { border-color: var(--rose); background: var(--blush); }
.brand-item img { max-height: 48px; max-width: 120px; width: auto; object-fit: contain; pointer-events: none; }
.block { padding-top: 72px; }
.block .h2 { margin-bottom: 32px; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.block-head .h2 { margin: 0; }
.block-head > a { font-weight: 600; }
.center { text-align: center; }
.cat-circles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .cat-circles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-circles a { display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; text-align: center; }
.circle { width: 100%; aspect-ratio: 1; border-radius: 999px; overflow: hidden; background: var(--pale); }
.circle img { width: 100%; height: 100%; object-fit: cover; }
.promo { display: flex; flex-wrap: wrap; background: var(--burgundy); border-radius: 28px; overflow: hidden; }
.promo-copy { flex: 1 1 420px; padding: 56px; color: var(--pale); }
.promo-copy .eyebrow { color: var(--pale); }
.promo h2 { color: #fff; font-weight: 800; font-size: clamp(32px, 4vw, 52px); margin: 0 0 16px; }
.promo-img { border-radius: 0; aspect-ratio: auto; min-height: 360px; background: var(--rose); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { padding: 12px 22px; border-radius: 999px; background: var(--blush); font-weight: 500; font-size: 15px; text-decoration: none; }
.chips a:hover, .chips a[aria-current] { background: var(--burgundy); color: #fff; }
.genuine-band { background: var(--blush); border-radius: 28px; padding: 56px 32px; text-align: center; color: var(--burgundy); }
.genuine-band .ic { width: 40px; height: 40px; }
.genuine-band .h2 { margin: 12px 0; }
.genuine-band p { max-width: 620px; margin: 0 auto; color: var(--text); font-size: 17px; }
@media (max-width: 600px) { .promo-copy { padding: 32px; } }

/* ---------- Product cards (all loops) ---------- */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 32px 24px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; gap: 8px; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; position: relative; }
.woocommerce ul.products li.product img { margin: 0 !important; border-radius: 16px; background: var(--blush); aspect-ratio: 1; object-fit: cover; }
.ss-brand { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 400 15px/1.4 var(--sans); color: var(--text); padding: 0; min-height: 42px; }
.woocommerce ul.products li.product .price { color: var(--burgundy); font-weight: 600; font-size: 16px; }
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; font-size: 13px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { display: flex; align-items: center; justify-content: center; margin-top: auto; padding: 0 16px; line-height: 1.2; width: 100%; background: #fff; color: var(--burgundy); min-height: 44px; font-size: 14px; }
.woocommerce ul.products li.product .button:hover { background: var(--burgundy); color: #fff; }
.woocommerce ul.products li.product .added_to_cart { display: none; } /* The header cart badge pops instead. */
.cart-count.pop { animation: pop .5s ease; }
@keyframes pop { 40% { transform: scale(1.5); } }
.woocommerce span.onsale { min-height: 0; min-width: 0; line-height: 1; top: 12px !important; left: 12px !important; right: auto !important; margin: 0 !important; padding: 6px 10px; border-radius: 999px; background: var(--burgundy); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Category / shop ---------- */
.cat-hero { background: var(--blush); padding: 28px 0 40px; }
.cat-hero h1 { margin: 10px 0 12px; font-weight: 800; font-size: clamp(36px, 4vw, 56px); }
.cat-hero .term-description, .cat-hero .page-description { max-width: 620px; }
.cat-hero .chips { margin-top: 16px; }
.cat-hero .chips a { background: #fff; border: 1.5px solid var(--burgundy); font-size: 14px; padding: 10px 20px; }
.cat-hero .chips a:hover, .cat-hero .chips a:focus-visible { background: var(--burgundy); color: #fff; }
.woocommerce .woocommerce-breadcrumb { margin: 0; font-size: 13px; color: var(--muted); }
.shop-layout { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 40px; padding-bottom: 80px; }
.filters { flex: 1 1 220px; max-width: 280px; }
.shop-main { flex: 999 1 560px; min-width: 0; }
.filter-block { margin-bottom: 28px; }
.filter-title { font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.woocommerce .woocommerce-result-count { color: var(--muted); font-size: 14px; margin: 0 0 24px; line-height: 42px; }
.woocommerce .woocommerce-ordering select { border-radius: 999px; min-height: 42px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--pale); font-weight: 600; color: var(--burgundy); }
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--burgundy); color: #fff; }
@media (max-width: 720px) { .filters { max-width: none; } }

/* ---------- Single product ---------- */
.woocommerce div.product { display: flex; flex-wrap: wrap; gap: 56px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; flex: 1 1 420px; min-width: 0; margin: 0; }
.woocommerce div.product div.images img { border-radius: 24px; background: var(--blush); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 12px; }
.woocommerce div.product .product_title { font-weight: 600; font-size: clamp(30px, 3vw, 42px); margin: 6px 0 16px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--burgundy); font-size: 28px; font-weight: 600; }
.woocommerce div.product .stock.in-stock { color: var(--green); font-weight: 600; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.woocommerce div.product form.cart .button { flex: 1 1 200px; min-height: 52px; font-size: 16px; }
.woocommerce div.product form.cart table.variations { width: 100%; }
/* Quantity stepper (ss.js adds the − / + buttons). */
.woocommerce .quantity, .woocommerce div.product form.cart div.quantity { float: none; margin: 0; display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; min-height: 52px; background: #fff; }
.woocommerce .quantity .qty { width: 40px; min-height: 0; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; text-align: center; font: 600 16px var(--sans); -moz-appearance: textfield; }
.woocommerce .quantity .qty::-webkit-inner-spin-button, .woocommerce .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--burgundy); font-size: 20px; line-height: 1; cursor: pointer; border-radius: 999px; }
.qty-btn:hover { background: var(--blush); }
.woocommerce table.cart .quantity { min-height: 44px; }
.woocommerce table.cart .qty-btn { width: 38px; height: 38px; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 200px; min-height: 48px; margin-right: 8px; border-radius: 999px; }
.woocommerce-cart table.cart td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-cart table.cart button[name=update_cart] { display: none; } /* Cart updates by itself. */
.woocommerce form.cart .button.loading, .woocommerce .button.loading { opacity: .7; pointer-events: none; }
/* WooCommerce's spinner/tick are placed for its own buttons; centre them vertically in ours. */
.woocommerce a.button.loading::after, .woocommerce button.button.loading::after, .woocommerce input.button.loading::after,
.woocommerce #respond input#submit.loading::after { top: 50%; right: 14px; height: 1em; line-height: 1; margin-top: -.5em; }
.woocommerce a.button.added::after, .woocommerce button.button.added::after { position: static; margin-left: 8px; height: 1em; line-height: 1; vertical-align: middle; }

/* Mini cart drawer. */
.mini-cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 220; width: min(92vw, 400px); background: #fff; box-shadow: -8px 0 30px rgba(102,0,51,.15); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.mini-cart.open { transform: none; visibility: visible; }
.mini-cart-backdrop { position: fixed; inset: 0; z-index: 215; background: rgba(58,42,48,.45); border: 0; padding: 0; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mini-cart.open + .mini-cart-backdrop { opacity: 1; pointer-events: auto; }
.mini-cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--pale); }
.mini-cart-head h2 { margin: 0; font-size: 24px; }
.mini-cart-head .mini-cart-close { width: 44px; height: 44px; border: 0; background: var(--blush); border-radius: 999px; font-size: 26px; line-height: 1; color: var(--burgundy); cursor: pointer; }
.mini-cart .widget_shopping_cart_content { flex: 1; overflow-y: auto; padding: 8px 20px 20px; display: flex; flex-direction: column; }
.mini-cart ul.cart_list { list-style: none; margin: 0; padding: 0; }
/* Each item: 64px image on the left, name + qty beside it, remove at the right; row tall enough for the image. */
.mini-cart ul.cart_list li { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 16px 40px 16px 80px; border-bottom: 1px solid var(--pale); font-size: 14px; line-height: 1.4; animation: rise .3s ease both; }
.mini-cart ul.cart_list li a:not(.remove) { color: var(--text); text-decoration: none; font-weight: 500; }
.mini-cart ul.cart_list li img { position: absolute; left: 0; top: 50%; width: 64px; height: 64px; margin: -32px 0 0; border-radius: 12px; object-fit: cover; background: var(--blush); float: none; }
.mini-cart ul.cart_list li .quantity { display: block; border: 0; min-height: 0; margin: 4px 0 0; color: var(--burgundy); font-weight: 600; background: none; }
.mini-cart ul.cart_list li a.remove { position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; display: flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--rose) !important; text-decoration: none; font-size: 20px; line-height: 1; }
.mini-cart ul.cart_list li a.remove:hover { background: var(--blush); }
.mini-cart-head { padding: 14px 16px 14px 20px; }
.mini-cart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: auto 0 12px; padding-top: 16px; font-size: 17px; color: var(--burgundy); }
.mini-cart .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.mini-cart .woocommerce-mini-cart__buttons .button { width: 100%; margin: 0; }
.mini-cart .woocommerce-mini-cart__buttons .button:not(.checkout) { background: #fff; color: var(--burgundy); }
.mini-cart .woocommerce-mini-cart__empty-message { margin: auto; text-align: center; color: var(--muted); }
.mini-cart .blockUI.blockOverlay { background: rgba(255,255,255,.6) !important; }
.ss-genuine { display: flex; gap: 14px; align-items: flex-start; background: var(--blush); border-radius: 18px; padding: 20px; margin: 8px 0 12px; color: var(--burgundy); }
.ss-genuine .ic { width: 32px; height: 32px; }
.ss-genuine strong { display: block; font-size: 15px; }
.ss-genuine span { font-size: 14px; color: var(--text); }
.ss-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; font-size: 14px; line-height: 1.5; }
.ss-info > div { border: 1px solid var(--pale); border-radius: 14px; padding: 14px 16px; }
.ss-info strong { display: block; color: var(--burgundy); }
.woocommerce div.product .product_meta { font-size: 13px; color: var(--muted); margin-top: 16px; }
.woocommerce div.product .woocommerce-tabs { flex-basis: 100%; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0; border-radius: 999px; background: var(--blush); margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 22px; color: var(--burgundy); font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--burgundy); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.woocommerce div.product .related, .woocommerce div.product .upsells { flex-basis: 100%; }
.related > h2, .upsells > h2, .cross-sells > h2 { font-weight: 600; font-size: clamp(26px, 3vw, 36px); }

/* ---------- Notices ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
	padding: 16px 20px; border: 0; border-radius: 16px; background: var(--blush); color: var(--text);
	font-size: 15px; outline: none; animation: rise .3s ease;
}
.woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-error:focus { outline: none; box-shadow: 0 0 0 2px var(--pale); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { position: static; flex: none; color: var(--burgundy); }
.woocommerce-message::after, .woocommerce-info::after, .woocommerce-error::after { display: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 9; float: none; margin-left: auto; min-height: 42px; padding: 0 22px; font-size: 14px; }
.woocommerce-error { color: #8A1C1C; }
.woocommerce-error li { flex-basis: 100%; }

/* ---------- Cart (classic + block) ---------- */
.woocommerce table.shop_table { border: 0; border-collapse: collapse; }
.woocommerce table.shop_table th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.woocommerce table.shop_table td { border-top: 1px solid var(--pale); padding: 20px 12px; }
.woocommerce table.cart img { width: 96px; border-radius: 14px; }
.woocommerce a.remove { color: var(--rose) !important; }
.woocommerce a.remove:hover { background: var(--rose); color: #fff !important; }
.woocommerce .cart-collaterals .cart_totals, .wc-block-cart__sidebar, .wc-block-checkout__sidebar {
	background: var(--blush); border-radius: 24px; padding: 28px;
}
.woocommerce .cart-collaterals .cart_totals h2 { font-weight: 600; font-size: 24px; margin-top: 0; }
.woocommerce .cart-collaterals .cart_totals table td, .woocommerce .cart-collaterals .cart_totals table th { border-top-color: var(--line); }
.woocommerce ul#shipping_method li { margin-bottom: 8px; }
.wc-block-components-totals-footer-item, .order-total { color: var(--burgundy); }
.wc-block-components-product-name { color: var(--text); font-weight: 500; }
.wc-block-cart-item__image img { border-radius: 14px; }

/* ---------- Checkout (classic + block) ---------- */
.woocommerce-checkout h3, .wc-block-components-title.wc-block-components-title { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--burgundy); }
.woocommerce form .form-row label { font-weight: 500; }
.woocommerce form .form-row { margin-bottom: 14px; }
#order_review_heading { margin-top: 32px; }
.woocommerce-checkout #payment { background: var(--blush); border-radius: 24px; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--line); }
.woocommerce-checkout #payment ul.payment_methods li { padding: 12px 0; }
.woocommerce-checkout #payment div.payment_box { background: #fff; border-radius: 12px; color: var(--text); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce-checkout #payment #place_order { width: 100%; min-height: 54px; font-size: 16px; float: none; }

/* Two columns: details on the left, order + payment on the right. */
form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); grid-template-rows: auto auto 1fr; column-gap: 48px; align-items: start; }
#ss_whatsapp_ok_field .optional { display: none; }
form.woocommerce-checkout > * { grid-column: 1 / -1; }
form.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 2 / span 2; }
form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 2; margin: 0; padding: 24px 24px 0; background: var(--blush); border-radius: 24px 24px 0 0; }
form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 3; padding: 8px 24px 24px; background: var(--blush); border-radius: 0 0 24px 24px; }
form.woocommerce-checkout .woocommerce-NoticeGroup { grid-row: 1; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce-checkout .col2-set .col-2 { margin-top: 12px; }
.woocommerce-checkout .woocommerce-additional-fields h3 { margin-top: 8px; }
.woocommerce-checkout #payment { background: #fff; border-radius: 18px; margin-top: 16px; }
.woocommerce-checkout #payment div.payment_box { background: var(--blush); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--blush); }
.woocommerce-checkout-review-order-table { margin: 0 !important; font-size: 14px; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 14px 0 !important; border-top: 1px solid var(--line) !important; background: none !important; }
.woocommerce-checkout-review-order-table thead th { border-top: 0 !important; }
.woocommerce-checkout-review-order-table td.product-total, .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.woocommerce-checkout-review-order-table .order-total td { font-size: 18px; }
.woocommerce-checkout-review-order-table #shipping_method { margin: 0; padding: 0; list-style: none; }
.ss-co-item { display: inline-flex; align-items: center; gap: 12px; vertical-align: middle; margin-right: 4px; max-width: calc(100% - 44px); }
.woocommerce-checkout-review-order-table td.product-name { white-space: nowrap; }
.woocommerce-checkout-review-order-table td.product-name .ss-co-item > span { white-space: normal; }
.ss-co-item img { width: 52px; height: 52px; flex: none; border-radius: 10px; object-fit: cover; background: #fff; }
.ss-co-item .product-quantity { white-space: nowrap; color: var(--burgundy); }
@media (max-width: 900px) {
	form.woocommerce-checkout { grid-template-columns: minmax(0, 1fr); }
	form.woocommerce-checkout #customer_details, form.woocommerce-checkout #order_review_heading, form.woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
	form.woocommerce-checkout #order_review_heading { margin-top: 24px; }
	form.woocommerce-checkout #order_review_heading, form.woocommerce-checkout #order_review { padding-left: 16px; padding-right: 16px; }
}
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: 12px !important; border-color: var(--line) !important; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-radius: 14px; }
.wc-block-components-checkout-place-order-button { width: 100%; min-height: 54px; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
	.wrap { padding: 0 16px; }
	.block { padding-top: 48px; }
	.block .h2, .block-head { margin-bottom: 20px; }
	.hero-in { padding-top: 32px; padding-bottom: 32px; gap: 28px; }
	.hero h1 { font-size: 36px; }
	.lead { font-size: 16px; }
	.hero-img { aspect-ratio: 4 / 3; flex-basis: 100%; }
	.btns .ss-btn { flex: 1; padding: 0 16px; }
	.trust-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; padding-top: 28px; padding-bottom: 28px; }
	.brand-strip { margin: 0 -16px; } .brand-track { padding: 0 16px; gap: 10px; } .brand-item { min-width: 120px; height: 68px; padding: 0 20px; font-size: 17px; }
	.trust-in strong { font-size: 13px; }
	.trust-in span { font-size: 12px; }
	.cat-circles { gap: 14px 10px; }
	.cat-circles a { font-size: 13px; gap: 8px; }
	.promo-img { min-height: 200px; flex-basis: 100%; }
	.promo h2 { font-size: 30px; }
	.genuine-band { padding: 36px 20px; }
	.chips a { padding: 10px 16px; font-size: 14px; }

	/* Two products per row. */
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
	.woocommerce ul.products li.product img { border-radius: 12px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; min-height: 40px; }
	.woocommerce ul.products li.product .price { font-size: 14px; }
	.woocommerce ul.products li.product .button { min-height: 40px; font-size: 13px; padding: 0 8px; }
	.ss-brand { font-size: 11px; }
	.woocommerce span.onsale { top: 8px !important; left: 8px !important; font-size: 10px; }

	.cat-hero { padding: 20px 0 24px; }
	.cat-hero h1 { font-size: 34px; }
	.cat-hero .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-bottom: 4px; }
	.cat-hero .chips a { white-space: nowrap; }
	.cat-hero .chips, .woocommerce div.product .woocommerce-tabs ul.tabs { scrollbar-width: none; }
	.cat-hero .chips::-webkit-scrollbar, .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
	.shop-layout { padding-top: 24px; gap: 24px; }
	.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { float: none; margin: 0 0 12px; }
	.woocommerce .woocommerce-ordering select { width: 100%; }

	.woocommerce div.product { gap: 24px; }
	.woocommerce div.product div.images, .woocommerce div.product div.summary { flex-basis: 100%; }
	.woocommerce div.product .product_title { font-size: 28px; }
	.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 24px; }
	.woocommerce div.product .woocommerce-tabs ul.tabs { flex-wrap: nowrap; overflow-x: auto; }
	.woocommerce div.product .woocommerce-tabs ul.tabs li { flex: none; }
	.page-body { padding-top: 20px; padding-bottom: 48px; }
	.page-title { font-size: 32px; }

	.wa-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
	.wa-float .ic { width: 24px; height: 24px; }
	.site-footer { padding-top: 40px; }
	.footer-bottom { flex-direction: column; padding-right: 0; padding-bottom: 56px; }
}

/* ---------- My account ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--blush); }
