/* ==========================================================================
   Tamara's — main stylesheet
   Design tokens are printed as CSS custom properties in <head> by
   inc/customizer.php (tamaras_css_variables). Fallbacks below cover the
   editor preview / no-JS case.
   ========================================================================== */

:root {
	--color-bg: #FFFFFF;
	--color-surface: #FFFFFF;
	--color-text: #111111;
	--color-muted: #65706E;
	--color-border: #EBEBEB;
	--color-primary: #111111;
	--color-primary-h: #3A3A3A;
	--color-accent: #111111;
	--color-sale: #EF2D2D;
	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Poppins', sans-serif;
	--font-italic: 'Cormorant', serif;
	--container-width: 1680px;
	--radius: 0px;
	--button-radius: 80px;
	--header-h: 88px;
}

/* ---- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4, h5 {
	font-family: var(--font-heading);
	font-weight: 400;
	line-height: 1;
	margin: 0 0 .5em;
	letter-spacing: -0.04em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
p { margin: 0 0 1em; }

/* Emphasised words inside headings render in the italic accent font —
   wrap a word in <em> (or *word* in the block editor) to trigger it,
   matching the "Bold by *design*" treatment on the reference store. */
h1 em, h2 em, h3 em, h4 em, h5 em {
	font-family: var(--font-italic);
	font-style: italic;
	font-weight: 400;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px; overflow: hidden;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #fff; padding: 1em; }
.skip-link:focus { left: 0; }

.container {
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: clamp(1rem, 3vw, 2.5rem);
}
.container--narrow { max-width: 860px; }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section__header {
	display: flex; align-items: flex-end; justify-content: space-between;
	max-width: var(--container-width); margin: 0 auto 2rem; padding-inline: clamp(1rem, 3vw, 2.5rem);
}
.section__header.centered { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.section__link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.section__link svg { width: 16px; height: 16px; transition: transform .2s; }
.section__link:hover svg { transform: translateX(3px); }

/* ---- Buttons -------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .95rem 1.75rem;
	border-radius: var(--button-radius);
	font-weight: 500; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
	border: 1px solid transparent;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
	white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-h); }
.btn--outline { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn--outline:hover { background: var(--color-text); color: #fff; }
.btn--lg { padding: 1.1rem 2.25rem; }
.btn--full { width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* ---- Icons ------------------------------------------------------------ */
svg { width: 22px; height: 22px; }

/* ==========================================================================
   Announcement bar + header
   ========================================================================== */
.announcement-bar {
	background: var(--color-primary); color: #fff; overflow: hidden;
	font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
}
.announcement-bar__track {
	display: flex; gap: 3rem; white-space: nowrap; padding: .6rem 0;
	animation: marquee 22s linear infinite;
}
.announcement-bar__item { padding-inline: 1.5rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.site-header {
	position: sticky; top: 0; z-index: 500;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	transition: box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.site-header__inner {
	max-width: var(--container-width); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2.5rem);
	display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 2rem;
	height: var(--header-h);
}
.site-branding img { max-height: 40px; width: auto; }
.site-title-fallback { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; }

.mobile-nav-toggle { display: none; }

.main-navigation { justify-self: center; }
.mega-menu__list { display: flex; gap: 2.25rem; }
.mega-menu__list > li { position: relative; }
.mega-menu__list .nav-link {
	display: flex; align-items: center; gap: .3rem; padding: .5rem 0;
	font-weight: 500; font-size: .95rem; position: relative;
}
.mega-menu__list .nav-link span { position: relative; }
.mega-menu__list .nav-link span::after {
	content: ''; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: currentColor;
	transition: right .25s ease;
}
.mega-menu__list .nav-link:hover span::after { right: 0; }
.nav-caret svg { width: 12px; height: 12px; transition: transform .2s; }
.has-dropdown:hover .nav-caret svg { transform: rotate(180deg); }

/* Simple dropdown (non-mega submenu) */
.mega-menu__list .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--color-surface); border: 1px solid var(--color-border);
	padding: .75rem 0; opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease; box-shadow: 0 12px 28px rgba(0,0,0,.08);
	z-index: 50;
}
.mega-menu__list > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu__list .sub-menu a { display: block; padding: .5rem 1.25rem; }
.mega-menu__list .sub-menu a:hover { background: var(--color-bg); }

/* Mega menu full panel */
.mega-menu__panel {
	position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
	width: min(var(--container-width), 92vw);
	background: var(--color-surface); border: 1px solid var(--color-border);
	box-shadow: 0 20px 50px rgba(0,0,0,.1);
	opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease;
	z-index: 60;
}
.has-mega-menu:hover .mega-menu__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-menu__panel-inner { display: flex; gap: 3rem; padding: 2.5rem; }
.mega-menu__column-title { display: block; font-weight: 600; margin-bottom: .75rem; font-size: .95rem; }
.mega-menu__column-links { display: flex; flex-direction: column; gap: .5rem; min-width: 160px; }
.mega-menu__column-links a { color: var(--color-muted); }
.mega-menu__column-links a:hover { color: var(--color-text); }
.mega-menu__featured { position: relative; width: 220px; flex-shrink: 0; }
.mega-menu__featured img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.mega-menu__featured-label {
	position: absolute; left: .85rem; bottom: .85rem; color: #fff; font-weight: 600;
	text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.header-actions { display: flex; align-items: center; gap: 1.1rem; justify-self: end; }
.header-action { position: relative; display: inline-flex; }
.header-action--cart .cart-count {
	position: absolute; top: -8px; right: -10px; background: var(--color-accent); color: #fff;
	font-size: .65rem; min-width: 17px; height: 17px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.search-drawer {
	position: absolute; top: 100%; left: 0; right: 0; background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
	transition: all .2s ease; z-index: 40;
}
.search-drawer.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.search-drawer__inner { max-width: 760px; margin: 0 auto; padding: 2rem clamp(1rem,3vw,2.5rem); display: flex; gap: 1rem; align-items: center; }
.search-drawer input[type="search"] { flex: 1; border: none; border-bottom: 2px solid var(--color-text); padding: .75rem 0; font-size: 1.25rem; background: transparent; }
.search-drawer input[type="search"]:focus { outline: none; }

/* ---- Mobile drawer -------------------------------------------------- */
.mobile-drawer {
	position: fixed; top: 0; left: -100%; width: min(360px, 88vw); height: 100%;
	background: var(--color-surface); z-index: 900; transition: left .3s ease;
	display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-drawer.is-open { left: 0; }
.mobile-drawer__header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem; border-bottom: 1px solid var(--color-border); }
.mobile-drawer__list > li { border-bottom: 1px solid var(--color-border); }
.mobile-drawer__list a { display: block; padding: 1rem 1.25rem; font-weight: 500; }
.mobile-drawer__account { display: flex; gap: .5rem; align-items: center; padding: 1.25rem; margin-top: auto; border-top: 1px solid var(--color-border); font-weight: 600; }
.drawer-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 800;
	opacity: 0; visibility: hidden; transition: opacity .3s ease;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.hero { position: relative; min-height: 82vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media .placeholder-tile { width: 100%; height: 100%; }
.hero__content { position: relative; z-index: 1; padding: clamp(2rem, 6vw, 5rem); color: #fff; max-width: 640px; }
.hero__eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 1rem; font-weight: 600; }
.hero__title { color: inherit; }
.hero__subtitle { font-size: 1.1rem; opacity: .92; }

.placeholder-tile {
	display: block; width: 100%; aspect-ratio: 4/5;
	background: linear-gradient(135deg, #dcd3c4 0%, #b9ab92 45%, #171717 100%);
	border-radius: var(--radius);
}
.hero .placeholder-tile { aspect-ratio: auto; background: linear-gradient(160deg, #3a3a3a 0%, #171717 60%, #B08159 140%); }

.category-grid, .products-carousel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: var(--container-width); margin: 0 auto; padding-inline: clamp(1rem, 3vw, 2.5rem); }
.category-card { display: flex; flex-direction: column; text-align: center; }
.category-card__media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/4; }
.category-card__media img, .category-card__media .placeholder-tile { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover .category-card__media img,
.category-card:hover .category-card__media .placeholder-tile { transform: scale(1.05); }
.category-card__label {
	margin-top: 1rem; color: var(--color-text); font-family: var(--font-heading);
	font-size: 1.1rem; letter-spacing: -0.02em;
}

.products-carousel .products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.brand-story { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: var(--container-width); margin: 0 auto; padding-inline: clamp(1rem,3vw,2.5rem); }
.brand-story__content p { color: var(--color-muted); max-width: 46ch; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; max-width: var(--container-width); margin: 0 auto; padding-inline: clamp(1rem,3vw,2.5rem); }
.testimonial-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; }
.testimonial-card__stars svg { width: 15px; height: 15px; color: var(--color-accent); }
.testimonial-card__name { display: block; margin-top: 1rem; font-weight: 600; font-size: .875rem; }

/* Scroll reveal (JS toggles .is-visible via IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-newsletter { background: var(--color-primary); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; text-align: center; }
.footer-newsletter__inner { max-width: 560px; margin: 0 auto; padding-inline: 1.5rem; }
.footer-newsletter h3 { color: #fff; }
.footer-newsletter p { opacity: .8; }
.newsletter-form { display: flex; gap: .5rem; margin-top: 1.5rem; }
.newsletter-form input { flex: 1; padding: .9rem 1.1rem; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: var(--radius); }
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form button { padding: .9rem 1.5rem; background: #fff; color: var(--color-primary); font-weight: 700; border-radius: var(--radius); text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; }

.footer-columns { padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.footer-columns__inner { max-width: var(--container-width); margin: 0 auto; padding-inline: clamp(1rem,3vw,2.5rem); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.1rem; }
.footer-col__list { display: flex; flex-direction: column; gap: .65rem; }
.footer-col__list a { color: var(--color-muted); }
.footer-col__list a:hover { color: var(--color-text); }
.footer-tagline { color: var(--color-muted); max-width: 32ch; }
.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-links a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: 50%; font-size: .7rem; font-weight: 700; }

.footer-bottom { border-top: 1px solid var(--color-border); padding: 1.25rem 0; }
.footer-bottom__inner { max-width: var(--container-width); margin: 0 auto; padding-inline: clamp(1rem,3vw,2.5rem); display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--color-muted); }
.payment-icons { display: flex; gap: .75rem; }
.payment-icons span { border: 1px solid var(--color-border); padding: .2rem .6rem; border-radius: var(--radius); font-size: .7rem; }

/* ==========================================================================
   Breadcrumbs / badges
   ========================================================================== */
.breadcrumbs { font-size: .8rem; color: var(--color-muted); margin-bottom: 1.5rem; }
.breadcrumbs a:hover { color: var(--color-text); }
.breadcrumbs .sep { margin: 0 .4rem; }
.breadcrumbs .current { color: var(--color-text); }

.badge { display: inline-block; padding: .25rem .55rem; font-size: .7rem; font-weight: 700; border-radius: var(--radius); text-transform: uppercase; letter-spacing: .03em; }
.badge--sale { background: var(--color-sale); color: #fff; }
.badge--soldout { background: var(--color-muted); color: #fff; }
.product-badges { position: absolute; top: .75rem; left: .75rem; display: flex; flex-direction: column; gap: .35rem; z-index: 2; }

/* ==========================================================================
   Shop archive
   ========================================================================== */
.woo-wrapper { padding-block: 2.5rem 4rem; }
.woo-container, .shop-page__inner { max-width: var(--container-width); margin: 0 auto; padding-inline: clamp(1rem, 3vw, 2.5rem); }

.shop-page__inner { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.shop-sidebar__title { text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; margin-bottom: 1.25rem; }
.shop-filter-widget { margin-bottom: 2rem; }
.shop-filter-widget__title { font-size: .85rem; font-weight: 600; margin-bottom: .75rem; }

.shop-header { margin-bottom: 1.5rem; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; margin-bottom: 2rem; font-size: .85rem; color: var(--color-muted); }
.shop-toolbar select { border: 1px solid var(--color-border); padding: .5rem .75rem; border-radius: var(--radius); background: var(--color-surface); }

.product-grid, ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1.75rem 1.25rem; }
.shop-page__inner .product-grid { grid-template-columns: repeat(3, 1fr); }

.product-card { position: relative; }
.product-card__media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--color-border); aspect-ratio: 4/5; }
.product-card__media img,
.product-card__media .placeholder-tile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: opacity .35s ease, transform .5s ease; }
.product-card__img--hover { opacity: 0; }
.product-card__media:hover .product-card__img--hover { opacity: 1; }
.product-card__media:hover img:not(.product-card__img--hover) { transform: scale(1.03); }

.product-card__quickadd {
	position: absolute; right: .75rem; bottom: .75rem; width: 40px; height: 40px; border-radius: 50%;
	background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.15);
	opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
}
.product-card__media:hover .product-card__quickadd { opacity: 1; transform: translateY(0); }
.product-card__quickadd svg { width: 18px; height: 18px; }

.product-card__wishlist { position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center; }
.product-card__wishlist svg { width: 16px; height: 16px; }
.product-card__wishlist.is-active svg { fill: var(--color-sale); stroke: var(--color-sale); }

.product-card__body { padding-top: .85rem; text-align: center; }
.product-card__cat { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); margin-bottom: .3rem; }
.product-card__title { font-family: var(--font-body); font-size: .95rem; font-weight: 500; margin: 0 0 .3rem; letter-spacing: -0.02em; }
.product-card__price { font-weight: 600; }
.product-card__price del { color: var(--color-muted); font-weight: 400; margin-right: .4rem; }
.product-card__price ins { text-decoration: none; color: var(--color-sale); }
.product-card__swatches { display: flex; justify-content: center; gap: .35rem; margin-top: .5rem; }

.swatch-dot {
	width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 1px solid var(--color-border);
	background: var(--swatch-color, #ccc);
}

/* ==========================================================================
   Single product
   ========================================================================== */
.single-product-page { max-width: var(--container-width); margin: 0 auto; padding: 2rem clamp(1rem,3vw,2.5rem) 4rem; }
.product-single__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: flex-start; }

/* Gallery: thumbnails rail to the left of the main image (row-reverse puts
   the 2nd DOM child — WooCommerce's flex-control-thumbs — on the left). */
.woocommerce-product-gallery { display: flex; flex-direction: row-reverse; gap: 1rem; position: sticky; top: calc(var(--header-h) + 20px); }
.woocommerce-product-gallery .flex-viewport { flex: 1; border-radius: var(--radius); overflow: hidden; background: var(--color-border); }
.woocommerce-product-gallery img { width: 100%; }
.woocommerce-product-gallery ol.flex-control-thumbs { display: flex; flex-direction: column; gap: .75rem; width: 84px; }
.woocommerce-product-gallery ol.flex-control-thumbs li img { border-radius: var(--radius); opacity: .55; transition: opacity .2s ease; cursor: pointer; }
.woocommerce-product-gallery ol.flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery ol.flex-control-thumbs li img:hover { opacity: 1; outline: 1px solid var(--color-text); }

.product-single__summary { max-width: 480px; }
.product-single__summary .product_title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.product-single__summary .woocommerce-product-rating { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.product-single__summary .star-rating { color: var(--color-accent); }
.product-single__summary p.price { font-size: 1.35rem; font-weight: 600; margin-bottom: 1rem; }
.product-single__summary p.price del { color: var(--color-muted); font-weight: 400; margin-right: .5rem; font-size: 1rem; }
.product-single__summary p.price ins { text-decoration: none; color: var(--color-sale); }
.product-single__excerpt { color: var(--color-muted); margin-bottom: 1.5rem; }

.swatch-group { margin-bottom: 1.5rem; }
.swatch-group__label { display: flex; justify-content: space-between; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .65rem; font-weight: 600; }
.swatch-group__value { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--color-muted); }
.swatch-group__options { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch {
	border: 1px solid var(--color-border); background: var(--color-surface);
	transition: border-color .15s ease, transform .1s ease;
}
.swatch--color { width: 34px; height: 34px; border-radius: 50%; background-color: var(--swatch-color, #ccc); position: relative; }
.swatch--color::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid transparent; transition: border-color .15s; }
.swatch--color.is-selected::after { border-color: var(--color-text); }
.swatch--text { min-width: 46px; height: 40px; padding: 0 .9rem; border-radius: var(--radius); font-size: .85rem; font-weight: 500; }
.swatch--text.is-selected { border-color: var(--color-text); background: var(--color-text); color: #fff; }
.swatch--text:disabled, .swatch--color:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.swatch-group__select { position: absolute; }

.quantity { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius); margin-right: .75rem; }
.quantity .qty { width: 52px; border: none; text-align: center; background: transparent; padding: .85rem 0; -moz-appearance: textfield; }
.quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart { display: flex; align-items: center; gap: 0; margin: 1.5rem 0; flex-wrap: wrap; gap: .75rem; }
.single_add_to_cart_button { flex: 1; min-width: 220px; }

.trust-badges { display: flex; flex-direction: column; gap: .65rem; margin: 1.5rem 0; font-size: .85rem; color: var(--color-muted); }
.trust-badges li { display: flex; align-items: center; gap: .6rem; }
.trust-badges svg { width: 18px; height: 18px; }

.product-single__below { max-width: 900px; margin: 4rem auto 0; }
.product-accordion__item { border-bottom: 1px solid var(--color-border); }
.product-accordion__trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; font-weight: 600; }
.product-accordion__icon svg { width: 14px; height: 14px; transition: transform .2s ease; }
.product-accordion__item.is-open .product-accordion__icon svg { transform: rotate(45deg); }
.product-accordion__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.product-accordion__item.is-open .product-accordion__panel { max-height: 800px; }
.product-accordion__panel-inner { padding-bottom: 1.5rem; color: var(--color-muted); }

.sticky-atc-bar {
	position: fixed; left: 0; right: 0; bottom: -100px; z-index: 400;
	background: var(--color-surface); border-top: 1px solid var(--color-border);
	box-shadow: 0 -6px 20px rgba(0,0,0,.06);
	padding: .85rem clamp(1rem, 3vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	transition: bottom .25s ease;
}
.sticky-atc-bar.is-visible { bottom: 0; }
.sticky-atc-bar__info { display: flex; align-items: center; gap: .85rem; }
.sticky-atc-bar__thumb img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius); }
.sticky-atc-bar__title { font-weight: 500; font-size: .9rem; }
.sticky-atc-bar__price { color: var(--color-muted); font-size: .85rem; }

/* Related / upsell products */
.related.products, .upsells.products { margin-top: 4rem; }
.related.products > h2, .upsells.products > h2 { text-align: center; margin-bottom: 2rem; }

/* ==========================================================================
   Auth pages (sign in / register / lost password)
   ========================================================================== */
.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; margin: -2.5rem calc(50% - 50vw) -4rem; }
.auth-page__visual { background: linear-gradient(160deg, #3a3a3a, #171717 60%, var(--color-accent) 150%); color: #fff; display: flex; align-items: center; padding: 4rem; }
.auth-page__visual-inner { max-width: 420px; }
.auth-page__logo { font-family: var(--font-heading); font-size: 1.4rem; display: block; margin-bottom: 2rem; }
.auth-page__visual h2 { color: #fff; }
.auth-page__visual p { opacity: .85; }
.auth-page__form-side { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth-page__form-wrap { width: 100%; max-width: 400px; }
.auth-form__title { margin-bottom: 1.5rem; }

.auth-tabs { display: flex; gap: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--color-border); }
.auth-tabs__btn { padding-bottom: 1rem; font-weight: 600; color: var(--color-muted); position: relative; }
.auth-tabs__btn.is-active { color: var(--color-text); }
.auth-tabs__btn.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--color-text); }

.auth-panel { display: none; }
.auth-panel.is-active { display: block; }

.auth-form .form-row { margin-bottom: 1.1rem; }
.auth-form label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .04em; }
.auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"] {
	width: 100%; padding: .85rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface);
}
.auth-form input:focus { outline: none; border-color: var(--color-text); }
.auth-form__row-inline { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; }
.auth-form__forgot { color: var(--color-muted); text-decoration: underline; }
.auth-form__forgot:hover { color: var(--color-text); }

/* ==========================================================================
   Account dashboard
   ========================================================================== */
.account-page { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; max-width: var(--container-width); margin: 0 auto; padding: 3rem clamp(1rem,3vw,2.5rem) 5rem; }
.account-nav ul { display: flex; flex-direction: column; gap: .25rem; }
.account-nav a { display: block; padding: .75rem 1rem; border-radius: var(--radius); color: var(--color-muted); }
.account-nav li.is-active a, .account-nav a:hover { background: var(--color-surface); color: var(--color-text); font-weight: 600; }
.account-content { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; }

/* ==========================================================================
   Generic content pages
   ========================================================================== */
.content-template { padding-block: 3rem 5rem; }
.page-title { margin-bottom: 1.5rem; }
.error-404 { text-align: center; padding-block: 6rem; }
.error-404__code { display: block; font-family: var(--font-heading); font-size: 6rem; color: var(--color-border); }
.error-404 .btn { margin: .5rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.post-card__media { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); margin-bottom: 1rem; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.pagination { margin-top: 3rem; text-align: center; }

/* ---- Countdown banner (Elementor widget) --------------------------- */
.countdown-banner { text-align: center; padding: 3rem 1.5rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.countdown-banner__timer { display: flex; justify-content: center; gap: 1.5rem; margin: 1.25rem 0 1.75rem; }
.countdown-banner__timer > div { display: flex; flex-direction: column; align-items: center; }
.countdown-banner__timer span { font-family: var(--font-heading); font-size: 2rem; }
.countdown-banner__timer small { text-transform: uppercase; font-size: .7rem; color: var(--color-muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.category-grid, .products-carousel, .products-carousel .products { grid-template-columns: repeat(2, 1fr); }
	.testimonial-grid { grid-template-columns: 1fr; }
	.brand-story { grid-template-columns: 1fr; }
	.shop-page__inner { grid-template-columns: 1fr; }
	.shop-sidebar { position: static; }
	.product-single__grid { grid-template-columns: 1fr; }
	.woocommerce-product-gallery { position: static; }
	.account-page { grid-template-columns: 1fr; }
	.auth-page { grid-template-columns: 1fr; }
	.auth-page__visual { display: none; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
	:root { --header-h: 64px; }
	.mobile-nav-toggle { display: inline-flex; }
	.main-navigation, .header-action:not(.header-action--cart):not(.js-search-toggle) { display: none; }
	.site-header__inner { grid-template-columns: auto 1fr auto; }
	.site-branding { justify-self: center; }
	.category-grid, .products-carousel, .products-carousel .products, .product-grid, ul.products, .shop-page__inner .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.footer-columns__inner { grid-template-columns: repeat(2, 1fr); }
	.footer-col--widgets { grid-column: span 2; }
	.post-grid { grid-template-columns: 1fr; }
	.announcement-bar__track { animation-duration: 16s; }
}
