/*
Theme Name: Aurelia
Theme URI: https://example.com/aurelia
Author: Aurelia
Author URI: https://example.com
Description: Aurelia is a fast, general-purpose multi-category WooCommerce store theme — one universal product template, one product-card component, one design system for any catalog. Native variable products, dynamic category navigation, filterable shop archive, mobile-first checkout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aurelia
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--ink: #16211b;
	--muted: #5b6b62;
	--bg: #ffffff;
	--surface: #f5f6f2;
	--border: #e4e7e2;
	--primary: #1f6f54;
	--primary-dark: #17543f;
	--accent: #c9a227;
	--danger: #b3403a;
	--star: #d99a26;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 6px 24px rgba(22, 33, 27, 0.07);
	--shadow-lg: 0 16px 44px rgba(22, 33, 27, 0.12);
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--maxw: 1200px;
	--header-h: 64px;
	--transition: 0.18s ease;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	left: 12px; top: 12px; z-index: 100000; position: fixed;
	background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 24px; border-radius: 999px;
	font-weight: 600; font-size: 0.95rem; line-height: 1.2;
	border: 2px solid transparent; cursor: pointer; text-align: center;
	transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 8px 20px rgba(31, 111, 84, 0.28); }
.btn--ghost { border-color: var(--border); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--lg { padding: 14px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   4. Announcement + header
   ========================================================================== */
.announce {
	background: var(--ink); color: #f2f4f1;
	font-size: 0.82rem; font-weight: 500; text-align: center; padding: 8px 0;
}
.announce p { margin: 0; }

.site-header {
	position: sticky; top: 0; z-index: 900;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	min-height: var(--header-h);
}
.site-logo-text { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.site-branding .custom-logo { max-height: 48px; width: auto; }

.main-nav { display: flex; align-items: center; }
.main-nav__list { display: flex; align-items: center; gap: 4px; }
.main-nav__list > li { position: relative; }
.main-nav__list a, .main-nav__sub-toggle {
	display: block; padding: 9px 14px; border-radius: 8px;
	font-size: 0.94rem; font-weight: 600; color: var(--ink);
}
.main-nav__list a:hover, .main-nav__list a:focus-visible,
.main-nav__sub-toggle:hover { color: var(--primary); background: rgba(31, 111, 84, 0.07); }
.main-nav__has-sub { position: relative; }
.main-nav__sub {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
	z-index: 950;
}
.main-nav__has-sub:hover .main-nav__sub,
.main-nav__has-sub:focus-within .main-nav__sub,
.main-nav__has-sub.is-open .main-nav__sub {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav__sub a { padding: 9px 12px; font-weight: 500; font-size: 0.92rem; }
.main-nav__sub-all { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }

.site-header__actions { display: flex; align-items: center; gap: 6px; }
.header-search-toggle, .header-account, .header-cart, .nav-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%; position: relative;
	color: var(--ink); transition: background var(--transition), color var(--transition);
}
.header-search-toggle:hover, .header-account:hover, .header-cart:hover, .nav-toggle:hover { background: var(--surface); color: var(--primary); }
.header-search-toggle svg, .header-account svg, .header-cart svg, .nav-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header-cart .nav__cart-count {
	position: absolute; top: 2px; right: 0;
	min-width: 18px; height: 18px; padding: 0 4px;
	background: var(--primary); color: #fff; border-radius: 999px;
	font-size: 0.68rem; font-weight: 700; line-height: 18px; text-align: center;
}
.nav__cart-count[data-count="0"], .nav__cart-count:empty { display: none; }

.header-search {
	border-top: 1px solid var(--border);
	background: #fff; padding: 14px 0;
}
.header-search[hidden] { display: none; }
.header-search .search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.header-search input[type="search"] {
	flex: 1; padding: 11px 16px; border: 1px solid var(--border); border-radius: 999px;
}
.header-search button[type="submit"] { padding: 11px 22px; }

.nav-toggle { display: none; }

/* Mobile drawer */
.mobile-nav {
	position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 85vw);
	background: #fff; z-index: 1200; transform: translateX(-102%);
	transition: transform 0.25s ease; overflow-y: auto;
	box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.mobile-nav__title { font-weight: 700; font-size: 1.05rem; }
.mobile-nav__close { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.mobile-nav__close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.mobile-nav__list { padding: 14px 20px 28px; }
.mobile-nav__list li a {
	display: block; padding: 11px 4px; font-weight: 600; font-size: 1rem;
	border-bottom: 1px solid var(--surface);
}
.nav-scrim {
	position: fixed; inset: 0; background: rgba(22, 33, 27, 0.45); z-index: 1100;
	opacity: 0; transition: opacity 0.25s ease;
}
.nav-scrim.is-open { opacity: 1; }
.nav-scrim[hidden] { display: none; }

/* ==========================================================================
   5. Search form (shared)
   ========================================================================== */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
	flex: 1; padding: 11px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff;
}
.search-form button[type="submit"] { border-radius: 999px; }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
	background: linear-gradient(160deg, #eef4ef 0%, #fbfbf9 55%, #f7f3e8 100%);
	overflow: hidden;
}
.hero__inner {
	display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
	padding-top: 64px; padding-bottom: 64px;
}
.hero__eyebrow {
	display: inline-block; padding: 6px 14px; border-radius: 999px;
	background: rgba(31, 111, 84, 0.1); color: var(--primary);
	font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	margin-bottom: 18px;
}
.hero__title { font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.hero__subtitle { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin: 0 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px; }
.hero__trust li { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--muted); }
.hero__trust svg { width: 17px; height: 17px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__media { display: flex; justify-content: center; }
.hero__media-link img { border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 420px; width: auto; }
.hero__media-fallback {
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	padding: 60px 40px; border: 2px dashed var(--border); border-radius: var(--radius);
	color: var(--muted); text-align: center; max-width: 360px;
}
.hero__media-fallback svg { width: 40px; height: 40px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   7. Homepage sections
   ========================================================================== */
.home-section { padding: 64px 0; }
.home-section--alt { background: var(--surface); }
.home-section__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	margin-bottom: 28px;
}
.home-section__head h2 { margin: 0; }
.home-section__link { font-weight: 600; font-size: 0.92rem; color: var(--primary); white-space: nowrap; }
.home-section__link:hover { text-decoration: underline; }

/* Categories */
.category-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.category-card {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 22px 14px; text-align: center;
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.category-card__media { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.category-card__media img { width: 100%; height: 100%; object-fit: cover; }
.category-card__fallback { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.category-card__name { font-weight: 700; font-size: 0.98rem; }
.category-card__count { font-size: 0.8rem; color: var(--muted); }

/* Why shop with us */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card {
	padding: 26px 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.why-card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 50px; height: 50px; border-radius: 14px; margin-bottom: 14px;
	background: rgba(31, 111, 84, 0.1);
}
.why-card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.why-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
	padding: 26px 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	display: flex; flex-direction: column; gap: 12px;
}
.review-card__stars .star-rating { color: var(--star); }
.review-card blockquote { margin: 0; color: var(--ink); font-size: 0.97rem; line-height: 1.65; }
.review-card__author { margin-top: auto; }
.review-card__author strong { display: block; font-size: 0.92rem; }
.review-card__author span { font-size: 0.82rem; color: var(--muted); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-item summary {
	padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none;
	display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.35rem; color: var(--primary); transition: transform var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__answer { padding: 0 20px 16px; color: var(--muted); }
.faq-item__answer p { margin: 0; }

/* Newsletter */
.newsletter { padding-top: 0; }
.newsletter__box {
	text-align: center; padding: 48px 28px;
	background: linear-gradient(135deg, var(--primary) 0%, #144d3a 100%);
	color: #fff; border-radius: var(--radius);
}
.newsletter__box h2 { color: #fff; }
.newsletter__box p { color: rgba(255, 255, 255, 0.85); max-width: 480px; margin: 0 auto 20px; }
.newsletter-form { display: flex; gap: 8px; justify-content: center; max-width: 440px; margin: 0 auto; }
.newsletter-form input[type="email"] {
	flex: 1; padding: 12px 18px; border: 1px solid var(--border); border-radius: 999px;
}
.newsletter__box .newsletter-form input { border: none; }

/* ==========================================================================
   8. Product cards — THE unified card component
   ========================================================================== */
.product-grid { display: grid; gap: 22px; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 2.4rem; font-weight: 800; color: var(--primary); opacity: 0.4; }
.product-card__badge {
	position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
	font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.product-card__badge--sale { background: var(--accent); color: #16211b; }
.product-card__badge--oos { background: var(--ink); color: #fff; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; gap: 8px; }
.product-card__title { font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.35; }
.product-card__title a:hover { color: var(--primary); }
.product-card__rating { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.product-card__rating .star-rating { color: var(--star); }
.product-card__price { font-weight: 700; color: var(--primary); font-size: 1.02rem; }
.product-card__price del { color: var(--muted); font-weight: 500; font-size: 0.88rem; margin-right: 6px; }
.product-card__price ins { text-decoration: none; }
.product-card__variations { font-size: 0.78rem; color: var(--muted); }
.product-card__actions { margin-top: auto; padding-top: 6px; }
.product-card__actions .btn { width: 100%; }

/* Star rating (shared with Woo markup) */
.star-rating { overflow: hidden; position: relative; height: 1em; line-height: 1; font-size: 0.9em; width: 5.4em; font-family: star, sans-serif; }
.star-rating::before { content: "★★★★★"; float: left; top: 0; left: 0; position: absolute; color: var(--border); }
.star-rating span { overflow: hidden; float: left; top: 0; left: 0; position: absolute; padding-top: 1.5em; color: var(--star); }
.star-rating span::before { content: "★★★★★"; top: 0; position: absolute; left: 0; color: var(--star); }

/* ==========================================================================
   9. Archive header + shop layout
   ========================================================================== */
.archive-header { padding: 36px 0 8px; }
.woocommerce-breadcrumb { font-size: 0.84rem; color: var(--muted); margin-bottom: 10px; }
.woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-breadcrumb a:hover { color: var(--primary); }
.crumb-sep { margin: 0 7px; opacity: 0.6; }
.archive-header__title { margin-bottom: 6px; }
.taxonomy-description { color: var(--muted); max-width: 640px; }

.shop-layout {
	display: grid; grid-template-columns: 260px 1fr; gap: 36px;
	padding: 28px 0 72px; align-items: start;
}
.shop-filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters__title { font-size: 0.86rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.filters__widget, .filter-block { margin-bottom: 28px; }
.filters__list li { margin-bottom: 8px; }
.filters__list a { font-size: 0.92rem; color: var(--muted); }
.filters__list a:hover { color: var(--primary); }
.filters__list span { color: var(--muted); font-size: 0.8rem; }
.filters__group { margin-bottom: 14px; }
.filters__group strong { display: block; font-size: 0.85rem; margin-bottom: 6px; }
.filters__group ul { padding-left: 4px; }

.price-form__fields { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-form__fields input {
	width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.filter-check input { accent-color: var(--primary); width: 16px; height: 16px; }

.filters-close { display: none; }

/* Toolbar */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	background: var(--surface); border-radius: var(--radius-sm);
	padding: 13px 18px 13px 44px; margin-bottom: 20px; position: relative;
	border-top: 3px solid var(--primary);
}
.woocommerce-error { border-top-color: var(--danger); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
	position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
	font-family: WooCommerce, sans-serif;
}
.woocommerce-store-notice { display: none; }

/* Sorting + count */
.woocommerce-result-count { float: left; font-size: 0.88rem; color: var(--muted); margin: 10px 0; }
.woocommerce-ordering { float: right; margin: 4px 0; }
.woocommerce-ordering select {
	padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 0.9rem;
}
.shop-toolbar::after { content: ""; display: table; clear: both; }

/* Pagination */
.woocommerce-pagination ul { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: 0.92rem;
}
.woocommerce-pagination ul li span.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.woocommerce-pagination ul li a:hover { border-color: var(--primary); color: var(--primary); }

/* No products */
.woocommerce-no-products-found, .woocommerce-info.no-products { padding: 48px 0; text-align: center; color: var(--muted); }

/* ==========================================================================
   10. Single product
   ========================================================================== */
.product-single { padding: 32px 0 72px; }
.product-single__grid {
	display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start;
}

/* Gallery — no background block, manual control, thumbnails + lightbox */
.product-gallery { position: relative; }
.product-gallery__main {
	margin: 0; border-radius: var(--radius); overflow: hidden; background: transparent;
	display: flex; align-items: center; justify-content: center;
}
.product-gallery__main img { width: 100%; height: auto; object-fit: contain; }
.product-gallery__trigger { display: block; width: 100%; cursor: zoom-in; }
.product-gallery__placeholder {
	width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
	background: var(--surface); border-radius: var(--radius); color: var(--muted); text-align: center; padding: 20px;
}
.product-gallery__thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.product-gallery__thumb {
	width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden;
	border: 2px solid transparent; padding: 0; background: var(--surface);
	transition: border-color var(--transition);
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb.is-active, .product-gallery__thumb:hover { border-color: var(--primary); }

/* Summary */
.product-summary .product_title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.woocommerce-product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.88rem; color: var(--muted); }
.woocommerce-product-rating .star-rating { color: var(--star); }
.woocommerce-review-link { color: var(--muted); font-size: 0.85rem; text-decoration: underline; }

/* Price */
.product-summary p.price {
	font-size: 1.55rem; font-weight: 800; color: var(--primary); margin: 4px 0 14px;
}
.product-summary p.price del { font-size: 1.05rem; font-weight: 500; color: var(--muted); margin-right: 8px; }
.product-summary p.price ins { text-decoration: none; }

/* Short description + benefits */
.product-summary .woocommerce-product-details__short-description { color: var(--muted); margin-bottom: 16px; }
.product-benefits { margin: 4px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.product-benefits li { position: relative; padding-left: 26px; font-size: 0.94rem; color: var(--ink); }
.product-benefits li::before {
	content: "✓"; position: absolute; left: 0; top: 0;
	width: 18px; height: 18px; border-radius: 50%;
	background: rgba(31, 111, 84, 0.12); color: var(--primary);
	font-size: 0.72rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* Variations (native selects, themed) */
.product-summary form.cart .variations {
	width: 100%; margin-bottom: 16px; border: none; display: table;
}
.product-summary form.cart .variations tr { display: block; margin-bottom: 12px; }
.product-summary form.cart .variations th, .product-summary form.cart .variations td { display: block; padding: 0; background: none; border: none; }
.product-summary form.cart .variations label { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); display: block; margin-bottom: 6px; }
.product-summary form.cart .variations select {
	width: 100%; max-width: 320px; padding: 11px 14px;
	border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
}
.product-summary form.cart .reset_variations { font-size: 0.82rem; color: var(--muted); margin-left: 10px; }
.product-summary .single_variation_wrap { margin-bottom: 16px; }
.product-summary .woocommerce-variation-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.product-summary .woocommerce-variation-price del { color: var(--muted); font-weight: 500; font-size: 0.95rem; margin-right: 6px; }
.product-summary .woocommerce-variation-price ins { text-decoration: none; }
.product-summary .woocommerce-variation-availability .stock { font-size: 0.86rem; margin-bottom: 8px; }
.product-summary .stock.in-stock { color: var(--primary); font-weight: 600; }
.product-summary .stock.out-of-stock { color: var(--danger); font-weight: 600; }

/* Cart form: quantity + add to cart + buy now */
.product-summary form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; }
.product-summary form.cart .quantity { display: inline-flex; }
.product-summary .quantity .qty {
	width: 74px; height: 50px; padding: 8px; text-align: center;
	border: 1px solid var(--border); border-radius: 999px;
}
.product-summary form.cart .single_add_to_cart_button {
	flex: 1; min-width: 200px; height: 50px;
	background: var(--primary); color: #fff; border-radius: 999px;
	font-weight: 700; font-size: 1rem; transition: background var(--transition), box-shadow var(--transition);
}
.product-summary form.cart .single_add_to_cart_button:hover { background: var(--primary-dark); box-shadow: 0 8px 20px rgba(31, 111, 84, 0.28); }
.product-summary form.cart .single_add_to_cart_button.disabled { opacity: 0.5; cursor: not-allowed; }
.product-summary [data-aurelia-buy-now] { flex: 1 1 100%; max-width: none; }

/* Trust row */
.product-trust {
	display: flex; flex-wrap: wrap; gap: 14px 22px;
	margin: 6px 0 20px; padding: 14px 16px;
	background: var(--surface); border-radius: var(--radius-sm);
}
.product-trust li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.product-trust svg { width: 18px; height: 18px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Meta */
.product_meta { border-top: 1px solid var(--border); padding-top: 14px; font-size: 0.84rem; color: var(--muted); }
.product_meta > span { display: block; margin-bottom: 4px; }
.product_meta a { color: var(--muted); text-decoration: underline; }

/* Tabs */
.product-single .woocommerce-tabs {
	clear: both; margin-top: 48px;
}
.product-single .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px;
}
.product-single .woocommerce-tabs ul.tabs li { background: none; border: none; margin: 0; padding: 0; }
.product-single .woocommerce-tabs ul.tabs li::before, .product-single .woocommerce-tabs ul.tabs li::after { display: none; }
.product-single .woocommerce-tabs ul.tabs li a {
	display: inline-block; padding: 13px 20px; font-weight: 600; font-size: 0.95rem;
	color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.product-single .woocommerce-tabs ul.tabs li.active a { color: var(--primary); border-bottom-color: var(--primary); }
.product-single .woocommerce-tabs .panel { padding: 4px 0 12px; }
.product-single .woocommerce-tabs .panel h2 { font-size: 1.3rem; margin-bottom: 14px; }
.woocommerce-Tabs-panel--description, .woocommerce-Tabs-panel--additional_information { max-width: 760px; color: var(--ink); }
.woocommerce-Tabs-panel--description p, .woocommerce-Tabs-panel--additional_information p { margin-bottom: 1em; }

/* Specs table */
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; max-width: 640px; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td {
	padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92rem;
}
.woocommerce-product-attributes th { color: var(--muted); font-weight: 600; width: 40%; }

/* Reviews */
.commentlist { margin-bottom: 28px; }
.commentlist li.review { border-bottom: 1px solid var(--border); padding: 18px 0; }
.commentlist .comment-text { margin-left: 0; }
.commentlist .meta { font-size: 0.84rem; color: var(--muted); margin-bottom: 6px; }
.commentlist .description { font-size: 0.94rem; }
.comment-form-rating .stars { display: inline-flex; gap: 4px; }
.comment-form .form-row { margin-bottom: 14px; }
.comment-form label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 5px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
	width: 100%; max-width: 560px; padding: 11px 14px;
	border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.comment-form .submit { background: var(--primary); color: #fff; border: none; padding: 12px 26px; border-radius: 999px; font-weight: 600; }

/* Related products */
.related.products, .upsells.products { margin-top: 56px; clear: both; }
.related.products > h2, .upsells.products > h2 { font-size: 1.4rem; margin-bottom: 20px; }

/* Sticky mobile purchase bar */
.sticky-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 980;
	background: #fff; border-top: 1px solid var(--border);
	box-shadow: 0 -6px 24px rgba(22, 33, 27, 0.1);
	transform: translateY(110%); transition: transform 0.25s ease;
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar[hidden] { display: none; }
.sticky-bar__inner {
	display: flex; align-items: center; gap: 14px;
	max-width: var(--maxw); margin: 0 auto;
	padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
}
.sticky-bar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-bar__price { font-weight: 800; color: var(--primary); font-size: 1.05rem; }
.sticky-bar__price del { color: var(--muted); font-weight: 500; font-size: 0.85rem; margin-right: 5px; }
.sticky-bar__price ins { text-decoration: none; }
.sticky-bar__variation { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-bar .btn { flex-shrink: 0; min-width: 150px; }
body.has-sticky-bar { padding-bottom: 0; }
/* Sticky purchase bar is a mobile feature — hidden on desktop. */
@media (min-width: 861px) {
	.sticky-bar { display: none !important; }
}

/* Lightbox */
.aurelia-lightbox {
	position: fixed; inset: 0; z-index: 3000;
	background: rgba(22, 33, 27, 0.9);
	display: flex; align-items: center; justify-content: center;
	padding: 24px; cursor: zoom-out;
}
.aurelia-lightbox img { max-width: min(920px, 92vw); max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.aurelia-lightbox__close {
	position: absolute; top: 18px; right: 18px; width: 44px; height: 44px;
	border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff;
	display: flex; align-items: center; justify-content: center;
}
.aurelia-lightbox__close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.aurelia-lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }

/* ==========================================================================
   11. Cart & checkout
   ========================================================================== */
.page-shell { padding: 40px 0 72px; }

.woocommerce table.shop_table {
	border: 1px solid var(--border); border-radius: var(--radius);
	border-collapse: separate; border-spacing: 0; overflow: hidden; width: 100%;
}
.woocommerce table.shop_table th { background: var(--surface); font-weight: 700; text-align: left; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 14px; border-bottom: 1px solid var(--border); }
.woocommerce table.shop_table img { width: 64px; border-radius: var(--radius-sm); }
.woocommerce table.shop_table .product-remove a { color: var(--danger); font-weight: 700; text-decoration: none; }

.woocommerce .quantity .qty { width: 68px; height: 44px; padding: 6px; text-align: center; border: 1px solid var(--border); border-radius: 999px; }

.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button {
	background: var(--primary); color: #fff; border-radius: 999px; font-weight: 600;
	padding: 11px 22px; border: none; transition: background var(--transition);
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--primary-dark); color: #fff; }
.woocommerce .button.alt, .woocommerce button.button.alt { background: var(--primary); }
.woocommerce .checkout-button { width: 100%; }
.woocommerce .coupon .input-text { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

.cart_totals h2, .woocommerce-billing-fields h3, .woocommerce-additional-fields h3 { font-size: 1.25rem; }

.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form .form-row label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 5px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce form .form-row input[type="tel"], .woocommerce form .form-row input[type="email"] {
	width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
}
.woocommerce form .form-row input:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus {
	outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 111, 84, 0.14);
}
.select2-container .select2-selection--single {
	height: 44px; border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important;
	display: flex; align-items: center; padding: 0 12px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }

#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
	background: var(--surface); border-radius: var(--radius);
}
.woocommerce #payment div.payment_box { background: #e9efe9; color: var(--ink); border-radius: var(--radius-sm); }
.woocommerce #payment div.payment_box::before { border-bottom-color: #e9efe9; }
.woocommerce #payment #place_order { width: 100%; font-size: 1.05rem; padding: 15px; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--border); }
.woocommerce-checkout #payment ul.payment_methods li { margin-bottom: 10px; }
.woocommerce-checkout #payment div.payment_box { padding: 12px 14px; margin: 6px 0 10px; }

/* Order received */
.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.woocommerce-order-overview li { background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.9rem; }

/* ==========================================================================
   12. Generic pages / posts / 404 / search
   ========================================================================== */
.page-shell--narrow { max-width: 800px; margin: 0 auto; }
.page-header { padding: 44px 0 8px; }
.page-header h1 { margin-bottom: 6px; }
.page-content { padding: 24px 0 72px; max-width: 800px; margin: 0 auto; }
.entry-content h2 { margin-top: 1.5em; }
.entry-content img { border-radius: var(--radius-sm); }

.error-404 { text-align: center; padding: 88px 20px; }
.error-404 .error-code { font-size: clamp(4rem, 12vw, 6.5rem); font-weight: 800; color: var(--primary); line-height: 1; }
.error-404 p { color: var(--muted); margin-bottom: 22px; }
.error-404 .search-form { max-width: 420px; margin: 0 auto 26px; }

.search-results-count { color: var(--muted); margin-bottom: 24px; }
.search-result { padding: 18px 0; border-bottom: 1px solid var(--border); }
.search-result h2 { font-size: 1.15rem; margin-bottom: 4px; }
.search-result .result-type { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer { background: #14201a; color: #c4cdc7; margin-top: auto; }
.site-footer__grid {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
	padding: 56px 0 40px;
}
.site-footer .site-logo-text { color: #fff; font-size: 1.2rem; }
.site-footer__about { font-size: 0.92rem; margin: 12px 0 14px; max-width: 320px; }
.site-footer__contact a { color: #c4cdc7; }
.site-footer__contact a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 16px; }
.site-footer__links li { margin-bottom: 9px; }
.site-footer__links a { font-size: 0.9rem; color: #c4cdc7; }
.site-footer__links a:hover { color: #fff; }
.site-footer__newsletter p { font-size: 0.88rem; margin-bottom: 12px; }
.site-footer .newsletter-form input { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.site-footer .newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.site-footer__bottom {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0 22px;
	font-size: 0.82rem; color: #8b968f;
}
.site-footer__bottom p { margin: 0; }
.site-footer__trust { display: flex; align-items: center; gap: 7px; }
.site-footer__trust svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.hero__inner { gap: 32px; }
	.category-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
	.review-grid { grid-template-columns: repeat(2, 1fr); }
	.product-grid--4 { grid-template-columns: repeat(3, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.main-nav { display: none; }
	.nav-toggle { display: inline-flex; }
	.header-account { display: none; }
	.product-single__grid { grid-template-columns: 1fr; gap: 28px; }
	.shop-layout { grid-template-columns: 1fr; }

	/* Filters become a slide-up drawer */
	.shop-filters {
		position: fixed; left: 0; right: 0; bottom: 0; top: auto;
		max-height: 78vh; overflow-y: auto; z-index: 1300;
		background: #fff; border-radius: 18px 18px 0 0;
		padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
		transform: translateY(105%); transition: transform 0.28s ease;
		box-shadow: var(--shadow-lg);
	}
	.shop-filters.is-open { transform: translateY(0); }
	.shop-filters__head { display: flex; justify-content: flex-end; padding: 8px 0; }
	.filters-close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); }
	.filters-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
}

@media (max-width: 768px) {
	.hero { padding-top: 8px; }
	.hero__inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 44px; text-align: center; }
	.hero__subtitle { margin-left: auto; margin-right: auto; }
	.hero__actions, .hero__trust { justify-content: center; }
	.hero__media { order: -1; }
	.hero__media-link img { max-height: 300px; }

	.home-section { padding: 44px 0; }
	.product-grid--3, .product-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.category-grid { grid-template-columns: repeat(2, 1fr); }
	.why-grid { grid-template-columns: 1fr; }
	.review-grid { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 32px; }
	.newsletter-form { flex-direction: column; }
	.woocommerce-result-count { float: none; display: block; }
	.woocommerce-ordering { float: none; display: block; margin-bottom: 14px; }
	.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 10px; }
}

@media (max-width: 480px) {
	.container { padding: 0 16px; }
	.hero__actions .btn { width: 100%; }
	.product-grid--3, .product-grid--4 { grid-template-columns: 1fr 1fr; }
	.product-card__actions .btn { padding: 8px 10px; font-size: 0.8rem; }
	.sticky-bar__inner { padding-left: 14px; padding-right: 14px; gap: 10px; }
	.sticky-bar .btn { min-width: 120px; padding: 10px 16px; }
	.woocommerce-ordering select { width: 100%; }
}

/* ==========================================================================
   15. Motion & a11y
   ========================================================================== */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
