/* ==========================================================================
   Fold & Field – design system
   Colours, fonts and shapes come from the active theme (CSS variables set by the Theme library).
   Fonts are self-hosted in assets/fonts and declared in fonts.css.
   ========================================================================== */


:root {
	--ff-cream: #F7F2EA;
	--ff-paper: #FFFDF9;
	--ff-sand: #EFE6D8;
	--ff-sand-2: #E7DCCB;
	--ff-line: #E4DACB;
	--ff-forest: #1F3A33;
	--ff-forest-2: #2D5247;
	--ff-forest-3: #3B6457;
	--ff-sage: #A9BFA8;
	--ff-sage-soft: #DCE5DA;
	--ff-clay: #C46A3F;
	--ff-clay-dark: #A9552D;
	--ff-ink: #1D2421;
	--ff-on-primary: #FFFFFF;
	--ff-on-accent: #FFFFFF;
	--ff-footer-bg: #1F3A33;
	--ff-footer-ink: #D6E0D8;
	--ff-footer-head: #A9BFA8;
	--ff-announce-bg: #1F3A33;
	--ff-announce-ink: #EAF0E8;
	--ff-btn-radius: 999px;
	--ff-heading-weight: 600;
	--ff-heading-transform: none;
	--ff-heading-spacing: -.01em;
	--ff-muted: #66706B;
	--ff-radius: 18px;
	--ff-radius-sm: 12px;
	--ff-shadow: 0 1px 2px rgba(31, 58, 51, .06), 0 8px 24px rgba(31, 58, 51, .07);
	--ff-shadow-lg: 0 2px 6px rgba(31, 58, 51, .08), 0 22px 48px rgba(31, 58, 51, .12);
	--ff-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--bs-body-font-family: var(--ff-sans);
	--bs-body-color: var(--ff-ink);
	--bs-body-bg: var(--ff-cream);
	--bs-border-color: var(--ff-line);
	--bs-secondary-color: var(--ff-muted);
	--bs-link-color-rgb: 31, 58, 51;
	--bs-link-hover-color-rgb: 196, 106, 63;
	--bs-border-radius: 12px;
	--bs-border-radius-lg: 18px;
	--bs-focus-ring-color: rgba(169, 191, 168, .55);
}

body { background: var(--ff-cream); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .h1, .h2, .h3, .display-title, .brand-name { font-family: var(--ff-serif); font-weight: var(--ff-heading-weight); letter-spacing: var(--ff-heading-spacing); text-transform: var(--ff-heading-transform); color: var(--ff-ink); }
.brand-name { text-transform: none; }
h4, h5, h6, .h4, .h5, .h6 { font-weight: 600; }
a { text-underline-offset: .2em; }
::selection { background: var(--ff-sage); color: var(--ff-ink); }
.text-body-secondary { color: var(--ff-muted) !important; }

/* Buttons ---------------------------------------------------------------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-x: 1.15rem; --bs-btn-padding-y: .6rem; --bs-btn-border-radius: var(--ff-btn-radius); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .85rem; --bs-btn-font-size: 1.02rem; }
.btn-sm { --bs-btn-padding-x: .8rem; --bs-btn-padding-y: .35rem; }
.btn-dark, .btn-ff {
	--bs-btn-bg: var(--ff-forest); --bs-btn-border-color: var(--ff-forest); --bs-btn-color: var(--ff-on-primary);
	--bs-btn-hover-bg: var(--ff-forest-2); --bs-btn-hover-border-color: var(--ff-forest-2); --bs-btn-hover-color: var(--ff-on-primary); --bs-btn-active-color: var(--ff-on-primary); --bs-btn-disabled-color: var(--ff-on-primary);
	--bs-btn-active-bg: var(--ff-forest-2); --bs-btn-active-border-color: var(--ff-forest-2);
	--bs-btn-disabled-bg: var(--ff-forest); --bs-btn-disabled-border-color: var(--ff-forest);
}
.btn-accent {
	--bs-btn-bg: var(--ff-clay); --bs-btn-border-color: var(--ff-clay); --bs-btn-color: var(--ff-on-accent);
	--bs-btn-hover-bg: var(--ff-clay-dark); --bs-btn-hover-border-color: var(--ff-clay-dark); --bs-btn-hover-color: var(--ff-on-accent); --bs-btn-active-color: var(--ff-on-accent);
	--bs-btn-active-bg: var(--ff-clay-dark); --bs-btn-active-border-color: var(--ff-clay-dark);
}
.btn-outline-dark {
	--bs-btn-color: var(--ff-ink); --bs-btn-border-color: var(--ff-line);
	--bs-btn-hover-bg: var(--ff-forest); --bs-btn-hover-border-color: var(--ff-forest); --bs-btn-hover-color: var(--ff-on-primary); --bs-btn-active-bg: var(--ff-forest); --bs-btn-active-color: var(--ff-on-primary);
}
.btn-dark:not(:disabled):hover, .btn-accent:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31, 58, 51, .18); }

.form-control, .form-select { border-radius: var(--ff-radius-sm); border-color: var(--ff-line); background-color: var(--ff-paper); color: var(--ff-ink); padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--ff-sage); box-shadow: 0 0 0 .25rem rgba(169, 191, 168, .45); }
.form-check-input { background-color: var(--ff-paper); border-color: var(--ff-line); }
.form-check-input:checked { background-color: var(--ff-forest); border-color: var(--ff-forest); }
.form-label { font-weight: 500; font-size: .92rem; }

.card { --bs-card-border-color: var(--ff-line); --bs-card-border-radius: var(--ff-radius); --bs-card-bg: var(--ff-paper); }
.alert { border-radius: var(--ff-radius-sm); border: 0; }
.alert-info { background: var(--ff-sage-soft); color: var(--ff-forest); }
.alert-warning { background: #FBEBDD; color: #7A3F1D; }
.alert-success { background: #E2EEDF; color: #1F4A2B; }
.badge { font-weight: 600; letter-spacing: .01em; }

/* Announcement bar & header ---------------------------------------------- */
.announce { background: var(--ff-announce-bg); color: var(--ff-announce-ink); font-size: .82rem; letter-spacing: .01em; }
.announce .sep { opacity: .45; margin: 0 .6rem; }
.preview-bar { background: #FFF1C9; color: #5E4A0A; border-bottom: 1px solid #F2DE9C; }

.site-header { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--ff-cream) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--ff-line); }
.site-header .navbar { padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ff-ink); }
.brand img { width: 36px; height: 36px; }
.brand-name { font-size: 1.35rem; line-height: 1; }
.site-header .nav-link { color: var(--ff-ink); font-weight: 500; font-size: .95rem; padding: .5rem .85rem !important; border-radius: 999px; }
.site-header .nav-link:hover, .site-header .nav-link:focus-visible { background: var(--ff-sand); color: var(--ff-ink); }
.site-header .nav-link.active { background: var(--ff-sand-2); }
.market-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--ff-muted); padding: .35rem .75rem; border: 1px solid var(--ff-line); border-radius: 999px; background: var(--ff-paper); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; background: var(--ff-forest); color: var(--ff-on-primary); text-decoration: none; font-weight: 600; font-size: .92rem; transition: background-color .15s ease; border-radius: var(--ff-btn-radius); }
.cart-btn:hover { background: var(--ff-forest-2); color: var(--ff-on-primary); }
.cart-btn .badge { position: absolute; top: -6px; right: -6px; background: var(--ff-clay); color: var(--ff-on-accent); border: 2px solid var(--ff-cream); }
.navbar-toggler { border: 0; padding: .4rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }

/* Hero ------------------------------------------------------------------- */
.hero { padding: 4.5rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; left: -220px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(169, 191, 168, .35), transparent); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ff-clay); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.display-title { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.05; margin: 1rem 0 1.1rem; }
.display-title em { font-style: italic; font-weight: 400; color: var(--ff-forest-2); }
.hero-lead { font-size: 1.12rem; color: var(--ff-muted); max-width: 34rem; line-height: 1.6; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(31, 58, 51, .12)); }
.hero-chip { position: absolute; display: flex; align-items: center; gap: .55rem; background: var(--ff-paper); border-radius: 999px; padding: .55rem .9rem .55rem .6rem; box-shadow: var(--ff-shadow); font-size: .85rem; font-weight: 600; }
.hero-chip .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ff-sage-soft); color: var(--ff-forest); }
.hero-chip.c1 { left: 2%; bottom: 14%; }
.hero-chip.c2 { right: 0; top: 10%; }

/* Trust strip ------------------------------------------------------------ */
.trust { background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 1.4rem 1.2rem; box-shadow: var(--ff-shadow); }
.trust-item { display: flex; gap: .9rem; align-items: flex-start; }
.trust-item .ico { flex: 0 0 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--ff-sand); color: var(--ff-forest); font-size: 1.2rem; }
.trust-item h3 { font-family: var(--ff-sans); font-size: .95rem; font-weight: 600; margin: 0 0 .15rem; }
.trust-item p { font-size: .85rem; color: var(--ff-muted); margin: 0; line-height: 1.45; }

/* Sections --------------------------------------------------------------- */
.section { padding: 3.5rem 0 1rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; }
.section-head p { color: var(--ff-muted); margin: .35rem 0 0; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--ff-forest); white-space: nowrap; }
.link-arrow i { transition: transform .15s ease; display: inline-block; }
.link-arrow:hover i { transform: translateX(3px); }

/* Category tiles --------------------------------------------------------- */
.cat-tile { position: relative; display: block; border-radius: var(--ff-radius); overflow: hidden; text-decoration: none; color: var(--ff-ink); background: var(--ff-sand); aspect-ratio: 4 / 5; box-shadow: var(--ff-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-tile .label { position: absolute; left: .8rem; right: .8rem; bottom: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .9rem; border-radius: 14px; background: color-mix(in srgb, var(--ff-paper) 92%, transparent); backdrop-filter: blur(6px); }
.cat-tile .label > span { min-width: 0; }
.cat-tile .label strong { font-family: var(--ff-serif); font-size: 1.1rem; font-weight: 600; display: block; line-height: 1.2; overflow-wrap: anywhere; }
.cat-tile .label span { font-size: .78rem; color: var(--ff-muted); }
.cat-tile .label i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ff-forest); color: var(--ff-on-primary); flex: 0 0 32px; transition: transform .2s ease; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--ff-shadow-lg); }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile:hover .label i { transform: rotate(-45deg); }

/* Product cards ---------------------------------------------------------- */
.product-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--ff-radius); background: var(--ff-paper); border: 1px solid var(--ff-line); overflow: hidden; text-decoration: none; color: var(--ff-ink); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product-card .media { position: relative; aspect-ratio: 1 / 1; background: var(--ff-sand); overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card .quick { position: absolute; right: .8rem; bottom: .8rem; width: 40px; height: 40px; display: grid; place-items: center; transform: translateY(8px); opacity: 0; background: var(--ff-forest); color: var(--ff-on-primary); border-radius: 50%; transition: opacity .2s ease, transform .2s ease; }
.product-card .body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card .cat { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ff-clay); }
.product-card .name { font-family: var(--ff-serif); font-size: 1.12rem; font-weight: 600; line-height: 1.25; margin: 0; }
.product-card .desc { font-size: .86rem; color: var(--ff-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .price { margin-top: auto; padding-top: .5rem; font-weight: 600; font-size: 1.05rem; color: var(--ff-forest); }
.product-card:hover, .product-card:focus-visible { transform: translateY(-4px); box-shadow: var(--ff-shadow-lg); border-color: transparent; }
.product-card:hover .media img { transform: scale(1.05); }
.product-card:hover .quick, .product-card:focus-visible .quick { opacity: 1; transform: translateY(0); }

/* Page header band ------------------------------------------------------- */
.page-band { padding: 2.2rem 0 1.6rem; }
.page-band .crumbs { font-size: .85rem; color: var(--ff-muted); }
.page-band .crumbs a { color: var(--ff-muted); text-decoration: none; }
.page-band .crumbs a:hover { color: var(--ff-forest); }
.page-band h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: .4rem 0 0; }
.cat-hero { display: flex; align-items: center; gap: 1.4rem; background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 1rem; box-shadow: var(--ff-shadow); }
.cat-hero img { width: 112px; height: 112px; border-radius: 14px; object-fit: cover; }

/* Product detail --------------------------------------------------------- */
.pdp-gallery .main { border-radius: var(--ff-radius); overflow: hidden; background: var(--ff-sand); aspect-ratio: 1 / 1; box-shadow: var(--ff-shadow); }
.pdp-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.pdp-thumbs button { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--ff-sand); }
.pdp-thumbs button.active, .pdp-thumbs button:hover { border-color: var(--ff-forest); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { position: sticky; top: 96px; }
.pdp-info h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.12; margin: .4rem 0 .6rem; }
.pdp-price { font-family: var(--ff-serif); font-size: 2rem; font-weight: 600; color: var(--ff-forest); line-height: 1; }
.pdp-tax { font-size: .82rem; color: var(--ff-muted); margin-top: .35rem; }
.option-label { font-size: .85rem; font-weight: 600; margin-bottom: .5rem; display: block; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-option input { position: absolute; opacity: 0; pointer-events: none; }
.pill-option span { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: var(--ff-btn-radius); border: 1.5px solid var(--ff-line); background: var(--ff-paper); font-weight: 500; font-size: .9rem; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.pill-option input:checked + span { border-color: var(--ff-forest); background: var(--ff-forest); color: var(--ff-on-primary); }
.pill-option input:focus-visible + span { box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.pill-option input:disabled + span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ff-line); border-radius: var(--ff-btn-radius); background: var(--ff-paper); height: 50px; }
.qty-stepper button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 1.15rem; color: var(--ff-forest); border-radius: 999px; }
.qty-stepper button:hover { background: var(--ff-sand); }
.qty-stepper input { width: 44px; border: 0; background: transparent; color: var(--ff-ink); text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }
.info-card { background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: .4rem 1.1rem; }
.info-row { display: flex; gap: .85rem; align-items: flex-start; padding: .8rem 0; font-size: .9rem; }
.info-row + .info-row { border-top: 1px dashed var(--ff-line); }
.info-row i { font-size: 1.15rem; color: var(--ff-forest-2); margin-top: .05rem; }
.prose { line-height: 1.75; color: #353D39; }

/* Cart ------------------------------------------------------------------- */
.cart-line { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); }
.cart-line + .cart-line { margin-top: .75rem; }
.cart-thumb { width: 88px; height: 88px; flex: 0 0 88px; border-radius: 14px; object-fit: cover; background: var(--ff-sand); }
.cart-line .name { font-family: var(--ff-serif); font-weight: 600; font-size: 1.05rem; color: var(--ff-ink); text-decoration: none; }
.cart-qty { width: 4.6rem; padding: .35rem .6rem; }
.cart-line .btn-link { color: var(--ff-muted) !important; text-decoration: none; font-weight: 500; }
.cart-line .btn-link:hover { color: var(--ff-clay) !important; text-decoration: underline; }
.summary-card { background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 1.4rem; box-shadow: var(--ff-shadow); position: sticky; top: 96px; }
.summary-card .total { font-family: var(--ff-serif); font-size: 1.45rem; }
.summary-card dl.row, .card dl.row { --bs-gutter-x: 0; }
.form-control:disabled, .form-control[readonly] { background-color: var(--ff-sand); color: var(--ff-muted); }
.crumbs { font-size: .85rem; color: var(--ff-muted); }
.crumbs a { color: var(--ff-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ff-forest); text-decoration: underline; }
.ship-progress { background: var(--ff-sand); border-radius: 999px; height: 8px; overflow: hidden; }
.ship-progress > div { height: 100%; background: linear-gradient(90deg, var(--ff-sage), var(--ff-forest-2)); border-radius: 999px; transition: width .4s ease; }
.empty-state { text-align: center; padding: 3rem 1rem; background: var(--ff-paper); border: 1px dashed var(--ff-line); border-radius: var(--ff-radius); }
.empty-state .ico { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--ff-sand); color: var(--ff-forest); font-size: 1.8rem; }

/* Checkout & order --------------------------------------------------------- */
.form-section { background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 1.5rem; }
.form-section + .form-section { margin-top: 1rem; }
.form-section h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.form-section h2 .step { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ff-forest); color: var(--ff-on-primary); font-family: var(--ff-sans); font-size: .85rem; font-weight: 600; }
.status-hero { background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 1.5rem; box-shadow: var(--ff-shadow); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ff-footer-bg); color: var(--ff-footer-ink); margin-top: 5rem; padding: 3.5rem 0 1.5rem; font-size: .9rem; }
.site-footer .brand-name { color: var(--ff-footer-ink); }
.site-footer .brand img { background: var(--ff-cream); border-radius: 12px; padding: 3px; }
.site-footer h3 { font-family: var(--ff-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ff-footer-head); margin-bottom: 1rem; }
.site-footer a { color: var(--ff-footer-ink); text-decoration: none; }
.site-footer a:hover { color: var(--ff-footer-ink); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .5rem; }
.site-footer .bottom { border-top: 1px solid color-mix(in srgb, var(--ff-footer-ink) 18%, transparent); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .8rem; color: var(--ff-footer-ink); opacity: .8; }

.toast { border-radius: 14px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 991.98px) {
	.hero { padding: 2.5rem 0 2rem; }
	.pdp-info, .summary-card { position: static; }
	.site-header .navbar-collapse { padding: .75rem 0 .25rem; }
}
@media (max-width: 575.98px) {
	.product-card .body { padding: .8rem .85rem .95rem; }
	.product-card .name { font-size: 1rem; }
	.product-card .desc { display: none; }
	.cat-tile { aspect-ratio: 1 / 1; }
	.cat-tile .label { left: .5rem; right: .5rem; bottom: .5rem; padding: .5rem .55rem .5rem .7rem; }
	.cat-tile .label strong { font-size: .92rem; }
	.cat-tile .label i { width: 28px; height: 28px; flex-basis: 28px; font-size: .8rem; }
	.hero-chip { display: none; }
	.cart-thumb { width: 68px; height: 68px; flex-basis: 68px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Admin (kept consistent with the storefront palette) --------------------- */
body.admin { background: #F4F1EB; }
body.admin h1, body.admin .h4 { font-family: var(--ff-serif); }
body.admin .btn { --bs-btn-border-radius: 10px; }
.admin-sidebar { background: var(--ff-forest) !important; }
.admin-sidebar .nav-link { color: rgba(255, 255, 255, .78); border-radius: 10px; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: #fff; background: rgba(255, 255, 255, .12); }
.table-prices input { min-width: 6rem; }
.tr-value { font-size: .875rem; }
.admin-main { min-width: 0; }
body.admin .card { --bs-card-bg: #fff; }

/* ==========================================================================
   Theme layout variants (body classes set by the Theme library)
   ========================================================================== */

/* Navigation in capitals (fashion, beauty, sport, adult themes) */
.nav-upper .site-header .nav-link { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 600; }

/* Hero: centred */
.hero-center .hero { text-align: center; }
.hero-center .hero .row { flex-direction: column; align-items: center; }
.hero-center .hero .row > [class*="col-"] { width: 100%; max-width: 820px; }
.hero-center .hero .hero-lead { margin-left: auto; margin-right: auto; }
.hero-center .hero .d-flex { justify-content: center; }
.hero-center .hero .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.hero-center .hero-art { max-width: 440px; margin: 0 auto; }
.hero-center .hero-chip { display: none; }

/* Hero: full-width colour banner */
.hero-banner .hero { padding: 2rem 0 3rem; }
.hero-banner .hero::before { display: none; }
.hero-banner .hero-inner { background: var(--ff-forest); color: var(--ff-on-primary); border-radius: var(--ff-radius); padding: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.hero-banner .hero-inner::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: color-mix(in srgb, var(--ff-on-primary) 7%, transparent); pointer-events: none; }
.hero-banner .display-title, .hero-banner .hero-lead { color: var(--ff-on-primary); }
.hero-banner .hero-lead { opacity: .85; }
.hero-banner .eyebrow { color: var(--ff-on-primary); opacity: .8; }
.hero-banner .hero .btn-dark { --bs-btn-bg: var(--ff-clay); --bs-btn-border-color: var(--ff-clay); --bs-btn-color: var(--ff-on-accent); --bs-btn-hover-bg: var(--ff-clay-dark); --bs-btn-hover-border-color: var(--ff-clay-dark); --bs-btn-hover-color: var(--ff-on-accent); }
.hero-banner .hero .btn-outline-dark { --bs-btn-color: var(--ff-on-primary); --bs-btn-border-color: color-mix(in srgb, var(--ff-on-primary) 45%, transparent); --bs-btn-hover-bg: var(--ff-on-primary); --bs-btn-hover-color: var(--ff-forest); --bs-btn-hover-border-color: var(--ff-on-primary); }
.hero-banner .hero-art img { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25)); }
.hero-banner .hero-chip { display: none; }

/* Product cards: flat (image-led, no frame) */
.cards-flat .product-card { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.cards-flat .product-card .media { border-radius: var(--ff-radius); }
.cards-flat .product-card .body { padding: .9rem .15rem 0; }
.cards-flat .product-card:hover, .cards-flat .product-card:focus-visible { transform: none; box-shadow: none; }

/* Product cards: outline (technical, crisp) */
.cards-outline .product-card { border: 1.5px solid var(--ff-line); box-shadow: none; }
.cards-outline .product-card .media { border-bottom: 1.5px solid var(--ff-line); }
.cards-outline .product-card:hover, .cards-outline .product-card:focus-visible { transform: none; box-shadow: none; border-color: var(--ff-forest); }

/* Dark themes */
.theme-dark .hero::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--ff-forest) 22%, transparent), transparent); }
.theme-dark .product-card .media, .theme-dark .cat-tile, .theme-dark .pdp-gallery .main { background: var(--ff-sand); }
.theme-dark .alert-warning { background: #3A2A12; color: #F6DDAE; }
.theme-dark .alert-success { background: #12301F; color: #BFEBCF; }
.theme-dark .alert-info { background: var(--ff-sage-soft); color: var(--ff-ink); }
.theme-dark .preview-bar { background: #3A2F0A; color: #F6E7A8; border-color: #5A4A12; }
.theme-dark .trust, .theme-dark .summary-card, .theme-dark .status-hero { box-shadow: none; }
.theme-dark ::selection { color: var(--ff-cream); }

/* Theme-specific touches */
.theme-atelier .display-title { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.theme-atelier .product-card .name, .theme-summit .product-card .name { font-size: 1rem; letter-spacing: .02em; }
.theme-playground .display-title, .theme-paws .display-title { letter-spacing: -.02em; }
.theme-bloom .display-title, .theme-glow .display-title { font-style: normal; }
.theme-velvet .display-title { letter-spacing: .01em; }

/* Age confirmation (18+) */
.age-gate { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--ff-forest) 18%, var(--ff-cream)), var(--ff-cream) 60%); }
.age-card { max-width: 460px; width: 100%; text-align: center; background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 2.5rem 2rem; box-shadow: var(--ff-shadow-lg); }
.age-card .badge-18 { width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ff-forest); color: var(--ff-forest); font-weight: 700; font-size: 1.35rem; font-family: var(--ff-sans); }

/* Uploaded logo (Admin → Homepage) */
.brand-logo { height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.site-footer .brand-logo { background: var(--ff-cream); border-radius: 10px; padding: 4px 8px; }

/* Promo banner section */
.promo-band { border-radius: var(--ff-radius); padding: clamp(1.6rem, 4vw, 2.6rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.promo-band.style-accent { background: var(--ff-clay); color: var(--ff-on-accent); }
.promo-band.style-primary { background: var(--ff-forest); color: var(--ff-on-primary); }
.promo-band.style-soft { background: var(--ff-sage-soft); color: var(--ff-ink); }
.promo-band h2 { color: inherit; margin: 0 0 .3rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.promo-band p { margin: 0; opacity: .9; }
.promo-band .btn { --bs-btn-bg: var(--ff-paper); --bs-btn-color: var(--ff-ink); --bs-btn-border-color: var(--ff-paper); --bs-btn-hover-bg: var(--ff-cream); --bs-btn-hover-color: var(--ff-ink); --bs-btn-hover-border-color: var(--ff-cream); }
.hero-art .hero-photo { width: 100%; height: auto; border-radius: var(--ff-radius); box-shadow: var(--ff-shadow-lg); object-fit: cover; aspect-ratio: 6 / 5; filter: none; }

/* Payment method choice */
.pay-method { cursor: pointer; background: var(--ff-paper); }
.pay-method:has(input:checked) { border-color: var(--ff-forest) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ff-forest) 25%, transparent); }

/* Customer accounts ------------------------------------------------------ */
.account-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: var(--ff-btn-radius, 999px); color: var(--ff-ink, inherit); text-decoration: none; font-weight: 600; font-size: .92rem; border: 1px solid transparent; transition: border-color .15s ease, background-color .15s ease; }
.account-btn:hover, .account-btn.active { border-color: currentColor; color: var(--ff-forest); }
.account-btn i { font-size: 1.1rem; }
.account-tabs .nav-link { color: var(--ff-muted); }
.account-tabs .nav-link.active { color: var(--ff-forest); }
.account-order .h5 { font-family: inherit; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.account-order .h5:hover { color: var(--ff-forest) !important; }

.track-steps { list-style: none; display: flex; margin: 1.1rem 0 .25rem; padding: 0; counter-reset: s; }
.track-steps li { flex: 1 1 0; position: relative; text-align: center; font-size: .82rem; color: var(--ff-muted); }
.track-steps li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 3px; border-radius: 3px; background: rgba(127, 127, 127, .25); }
.track-steps li:first-child::before { display: none; }
.track-steps li.done::before, .track-steps li.current::before { background: var(--ff-forest); }
.track-steps .dot { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bs-body-bg); border: 2px solid rgba(127, 127, 127, .35); font-size: 1rem; position: relative; z-index: 1; }
.track-steps li.done .dot { background: var(--ff-forest); border-color: var(--ff-forest); color: var(--ff-on-primary); }
.track-steps li.current .dot { border-color: var(--ff-forest); color: var(--ff-forest); box-shadow: 0 0 0 4px rgba(127, 127, 127, .12); }
.track-steps li.done .lbl, .track-steps li.current .lbl { color: var(--bs-body-color); font-weight: 600; }
.track-steps .lbl { display: block; margin-top: .4rem; line-height: 1.25; padding: 0 .25rem; }
.track-compact .dot { width: 28px; height: 28px; font-size: .85rem; }
.track-compact li::before { top: 13px; left: calc(-50% + 16px); right: calc(50% + 16px); }
.track-compact .lbl { font-size: .76rem; }
@media (max-width: 420px) { .track-steps .lbl { font-size: .7rem; } }

/* Promotions --------------------------------------------------------------- */
.referral-bar { background: var(--ff-clay, #b5643c); color: var(--ff-on-accent, #fff); }
.referral-bar .bi { opacity: .9; }
.promo-box .form-control { text-transform: uppercase; }
.promo-box .form-control::placeholder { text-transform: none; }

/* Gift milestones ------------------------------------------------------------ */
.gift-card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 14px; padding: 1rem 1.1rem; transition: box-shadow .2s ease; }
.gift-card.unlocked { border-color: var(--ff-forest); box-shadow: 0 0 0 3px rgba(31, 77, 58, .08); }
.gift-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ff-sand, #efe6d8); color: var(--ff-forest); font-size: 1.35rem; }
.gift-card.unlocked .gift-ico { background: var(--ff-forest); color: var(--ff-on-primary, #fff); }
.gift-pct { color: var(--ff-forest); font-variant-numeric: tabular-nums; }
.gift-bar { display: flex; height: 10px; border-radius: 5px; background: var(--ff-sand-2, #e7dccb); overflow: hidden; }
.gift-bar .done { background: var(--ff-forest); border-radius: 5px 0 0 5px; transition: width .8s ease; }
.gift-bar .pending { background: repeating-linear-gradient(45deg, rgba(31, 77, 58, .35) 0 6px, rgba(31, 77, 58, .18) 6px 12px); }
.gift-card.unlocked .gift-bar .done { border-radius: 5px; }
.min-w-0 { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .gift-bar .done { transition: none; } }

/* Reviews ---------------------------------------------------------------------- */
.stars { display: inline-flex; gap: 1px; color: var(--ff-clay, #C46A3F); font-size: .95rem; line-height: 1; }
.card-rating .stars { font-size: .8rem; }
.pdp-reviews { border-top: 1px solid var(--bs-border-color); }
.review-summary { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 14px; padding: 1.2rem; }
.review-summary .display-avg { font-size: 2.6rem; font-weight: 600; line-height: 1; }
.review-summary .stars { font-size: 1.15rem; }
.dist-row { display: grid; grid-template-columns: 4.5rem 1fr 2rem; gap: .5rem; align-items: center; font-size: .85rem; color: inherit; text-decoration: none; padding: 2px 4px; border-radius: 6px; }
.dist-row:hover, .dist-row.active { background: var(--ff-sand, #efe6d8); }
.dist-bar { height: 8px; border-radius: 4px; background: var(--ff-sand-2, #e7dccb); overflow: hidden; }
.dist-bar > span { display: block; height: 100%; background: var(--ff-clay, #C46A3F); border-radius: 4px; }
.review-item { padding: 1rem 0; border-bottom: 1px solid var(--bs-border-color); }
.review-item:first-child { padding-top: 0; }
.review-body { line-height: 1.6; overflow-wrap: anywhere; }
.review-photo img, .review-thumb-edit img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--bs-border-color); }
.review-thumb-edit { display: inline-flex; flex-direction: column; gap: 2px; }
.review-reply { background: var(--ff-sand, #efe6d8); border-radius: 10px; padding: .6rem .8rem; }
/* Star picker: radios in reverse order so CSS can light up all stars up to the chosen one. */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .25rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; color: var(--ff-sand-2, #d8cdbb); cursor: pointer; transition: color .1s ease, transform .1s ease; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--ff-clay, #C46A3F); }
.star-input input:focus-visible + label { outline: 2px solid var(--ff-forest); outline-offset: 2px; border-radius: 4px; }
.star-input label:active { transform: scale(.92); }
