:root {
  --primary: #9B2853;
  --primary-dark: #701638;
  --accent: #F4C9D8;
  --nude: #F8EDF1;
  --cream: #FFF8FB;
  --dark: #171116;
  --muted: #6F6670;
  --border: #EADDE3;
  --gold: #C9A45C;
  --shadow: 0 18px 45px rgba(23, 17, 22, .10);
  --heading-font: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --body-font: "Inter", "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { color: var(--dark); background: #fff; font-family: var(--body-font); letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
h1, h2, .footer-brand { font-family: var(--heading-font); letter-spacing: 0; }

.topbar { background: var(--dark); color: #fff; font-size: .9rem; padding: .45rem 0; }
.topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.site-header { background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(234,221,227,.9); transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 30px rgba(23,17,22,.08); }
.navbar { padding: .72rem 0; }
.navbar-brand { font-weight: 850; color: var(--dark); min-width: 0; }
.brand-mark, .admin-brand-mark { width: 44px; height: 44px; display: inline-grid; place-items: center; background: var(--primary); color: #fff; border-radius: 50%; font-weight: 850; font-family: var(--heading-font); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); flex: 0 0 auto; }
.brand-text { display: grid; line-height: 1.05; min-width: 0; }
.brand-text strong { font-family: var(--heading-font); font-size: 1.24rem; white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.site-logo { max-height: 46px; width: auto; }
.mobile-header-actions { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.header-cart { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; display: inline-grid; place-items: center; position: relative; color: var(--dark); background: #fff; }
.header-cart span { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; }
.nav-link { font-weight: 700; color: var(--dark); }
.dropdown-menu { border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 8px; }

.btn { border-radius: 999px; font-weight: 800; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark); box-shadow: 0 10px 24px rgba(155,40,83,.22); }
.btn-outline-dark { --bs-btn-border-color: var(--dark); --bs-btn-color: var(--dark); --bs-btn-hover-bg: var(--dark); --bs-btn-hover-border-color: var(--dark); }

.hero-section { position: relative; overflow: hidden; background: var(--cream); }
.hero-media { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,248,251,.98) 0%, rgba(255,248,251,.86) 47%, rgba(255,248,251,.25) 100%), var(--hero-image, url("../img/hero-bg.jpg")) center right / cover no-repeat; }
.min-vh-hero { min-height: calc(100vh - 110px); padding: 5.4rem 0; }
.hero-section h1, .page-hero h1 { max-width: 860px; font-size: clamp(2.3rem, 5.4vw, 4.8rem); line-height: 1.03; font-weight: 800; margin-bottom: 1.2rem; }
.lead { color: #4f454c; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.eyebrow { color: var(--primary); font-weight: 900; text-transform: uppercase; font-size: .78rem; letter-spacing: 0; display: inline-block; margin-bottom: .75rem; }
.trust-strip, .trust-points { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.trust-strip span, .trust-points span { border: 1px solid var(--border); background: rgba(255,255,255,.78); border-radius: 999px; padding: .5rem .75rem; color: var(--muted); font-size: .88rem; }
.hero-product-note { background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); border-radius: 8px; padding: 1.5rem; max-width: 330px; margin-left: auto; }
.hero-product-note span, .hero-product-note small { display: block; color: var(--muted); }
.hero-product-note strong { display: block; font-family: var(--heading-font); font-size: 1.65rem; margin: .4rem 0; }

.section-pad { padding: 5rem 0; }
.section-heading { max-width: 760px; margin: 0 auto 2.4rem; text-align: center; }
.section-heading h2 { font-weight: 800; font-size: clamp(1.9rem, 3vw, 3rem); }
.section-heading p, .compact-hero p { color: var(--muted); }
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem; text-align: left; }
.benefits-section, .category-section, .faq-section { background: var(--cream); }
.products-band { background: #fff; }

.benefit-card, .product-card, .content-panel, .blog-card, .category-card, .filter-panel, .order-summary, .promo-banner, .video-panel {
  border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(23,17,22,.06);
}
.benefit-card { height: 100%; padding: 1.4rem; transition: transform .22s ease, box-shadow .22s ease; }
.benefit-card:hover, .product-card:hover, .category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.benefit-card i { color: var(--primary); font-size: 1.8rem; }
.benefit-card h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; font-weight: 850; }
.benefit-card p { color: var(--muted); margin: 0; }

.product-card { height: 100%; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.product-image { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--nude); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-badge { position: absolute; top: .8rem; left: .8rem; background: var(--dark); color: #fff; border-radius: 999px; padding: .35rem .65rem; font-size: .76rem; font-weight: 850; z-index: 2; }
.product-badge.static { position: static; display: inline-block; margin-bottom: .8rem; }
.badge-stock { background: #1f7a4d; }
.badge-preorder { background: var(--gold); color: var(--dark); }
.badge-muted { background: #6c6570; }
.product-body { padding: 1rem; }
.product-category { color: var(--primary); font-weight: 850; font-size: .82rem; }
.product-body h3 { font-size: 1rem; line-height: 1.35; margin: .35rem 0 .8rem; font-weight: 850; }
.price-row, .detail-price { display: flex; align-items: baseline; gap: .65rem; margin-bottom: 1rem; }
.price-row strong, .detail-price strong { color: var(--primary); font-size: 1.22rem; }
.detail-price strong { font-size: 1.8rem; }
.price-row span, .detail-price span { color: var(--muted); text-decoration: line-through; }
.mini-options { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .65rem; }
.card-cart-form.needs-attention, #productAddForm.needs-attention { animation: attention .35s ease 2; }
@keyframes attention { 50% { transform: translateX(4px); } }

.category-card { min-height: 170px; padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.category-card span { font-family: var(--heading-font); font-size: 1.45rem; font-weight: 800; }
.category-card small { color: var(--muted); max-width: 85%; }
.category-card i { position: absolute; right: 1.1rem; bottom: 1rem; color: var(--primary); font-size: 1.4rem; }

.page-hero { background: linear-gradient(135deg, var(--cream), var(--nude)); padding: 5rem 0; }
.compact-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.breadcrumb-wrap { background: #fff; border-bottom: 1px solid var(--border); padding: .85rem 0; }
.breadcrumb a { color: var(--primary); }
.filter-panel, .content-panel, .order-summary { padding: 1.2rem; }
.filter-actions { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; }
.empty-state { padding: 2rem; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); text-align: center; background: #fff; }
.seo-text, .content-readable { max-width: 880px; margin: 3rem auto 0; line-height: 1.8; color: #443941; }
.content-panel h2 { font-size: 1.45rem; font-weight: 850; margin-bottom: 1rem; }
.content-panel h3 { font-size: 1rem; font-weight: 850; margin-top: 1.1rem; }

.measurement-panel { display: grid; gap: 1rem; padding: 1rem; background: var(--cream); border-radius: 8px; border: 1px solid var(--border); }
.measurement-panel div { background: #fff; border-radius: 8px; padding: 1.15rem; display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; align-items: center; }
.measurement-panel span { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 50%; grid-row: span 2; font-weight: 800; }
.measurement-panel small { color: var(--muted); }
.final-cta { padding: 4.5rem 0; background: var(--primary); color: #fff; text-align: center; }
.final-cta h2 { font-weight: 850; }
.final-cta p { max-width: 640px; margin: .75rem auto 1.4rem; }

.product-gallery { position: sticky; top: 120px; }
.main-product-image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: var(--nude); }
.thumbnail-row { display: flex; gap: .75rem; margin-top: .8rem; flex-wrap: wrap; }
.thumb-button { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: .25rem; width: 76px; height: 92px; }
.thumb-button img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.delivery-note { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: .85rem; color: var(--muted); margin: 1rem 0; }
.product-buy-panel { border: 1px solid var(--border); border-radius: 8px; padding: 1rem; background: #fff; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.size-table th { background: var(--cream); }
.product-sticky-add { position: fixed; left: .75rem; right: .75rem; bottom: 78px; z-index: 1032; }

.cart-line { display: grid; grid-template-columns: 92px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line img { width: 92px; height: 112px; object-fit: cover; border-radius: 8px; background: var(--nude); }
.cart-product-title { font-weight: 850; }
.cart-options { display: flex; flex-wrap: wrap; gap: .45rem; color: var(--muted); font-size: .9rem; margin: .35rem 0; }
.mini-badge { background: var(--nude); color: var(--primary); border-radius: 999px; padding: .15rem .45rem; }
.cart-line-actions { min-width: 160px; display: grid; gap: .45rem; justify-items: end; }
.cart-line-actions input { width: 82px; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.summary-row.total { font-size: 1.2rem; border-bottom: 0; }
.free-shipping-note { background: var(--nude); color: var(--primary); border-radius: 8px; padding: .8rem; margin-bottom: .8rem; font-weight: 750; }
.free-shipping-note.success { background: #e8f5ee; color: #1f7a4d; }
.coupon-form { margin-top: 1rem; }
.payment-methods { display: grid; gap: .75rem; }
.payment-method { border: 1px solid var(--border); border-radius: 8px; padding: .9rem; display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; }
.payment-method small { display: block; color: var(--muted); }
.sticky-summary { position: sticky; top: 110px; }
.checkout-item { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.checkout-item small { display: block; color: var(--muted); }

.promo-banner { min-height: 240px; display: flex; align-items: center; padding: 2rem; color: #fff; background: linear-gradient(90deg, rgba(23,17,22,.72), rgba(155,40,83,.42)), var(--banner-image, linear-gradient(135deg, var(--primary), var(--primary-dark))) center / cover no-repeat; overflow: hidden; }
.promo-banner.small-promo { min-height: 190px; }
.promo-banner h2 { max-width: 620px; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.video-panel { margin-top: 2rem; padding: 1.2rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.2rem; align-items: center; }
.video-panel p { color: var(--muted); }

.soft-accordion .accordion-item { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: .75rem; }
.soft-accordion .accordion-button { font-weight: 800; }
.soft-accordion .accordion-button:not(.collapsed) { color: var(--primary); background: var(--cream); box-shadow: none; }
.blog-card { overflow: hidden; height: 100%; }
.blog-card img, .post-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card > div { padding: 1.2rem; }
.blog-card time { color: var(--primary); font-weight: 800; font-size: .85rem; }
.blog-card h2 { font-size: 1.25rem; font-weight: 850; margin: .5rem 0; }
.blog-card p { color: var(--muted); }
.post-cover { border-radius: 8px; border: 1px solid var(--border); }
.text-link { color: var(--primary); font-weight: 850; display: inline-flex; align-items: center; gap: .35rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.contact-list li { display: flex; gap: .6rem; align-items: flex-start; color: #f4e7ea; }
.contact-list.large li { color: var(--dark); }

.site-footer { background: var(--dark); color: #fff; padding: 4rem 0 2rem; }
.footer-brand-wrap { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand-wrap small { color: #e8d8dd; }
.site-footer h2, .site-footer h3 { font-size: 1rem; font-weight: 850; margin-bottom: 1rem; }
.site-footer p, .site-footer a { color: #e5d6da; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.social-links { display: flex; gap: .6rem; }
.social-links a { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,.08); border-radius: 50%; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; margin-top: 2rem; color: #e5d6da; }
.footer-bottom span:last-child { display: flex; gap: 1rem; flex-wrap: wrap; }

.flash-toast { position: fixed; right: 1rem; top: 118px; z-index: 1040; background: #fff; color: var(--dark); border: 1px solid var(--border); border-left: 4px solid #1f7a4d; box-shadow: var(--shadow); border-radius: 8px; padding: .85rem 1rem; font-weight: 750; }
.flash-toast.error { border-left-color: #b42342; }
.mobile-sticky-cta { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 1030; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.mobile-sticky-cta a { background: var(--dark); color: #fff; padding: .72rem .45rem; text-align: center; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow); display: grid; place-items: center; gap: .15rem; position: relative; }
.mobile-sticky-cta a:last-child { background: #1f9d55; }
.mobile-sticky-cta em { position: absolute; top: -6px; right: -2px; background: var(--primary); border-radius: 999px; min-width: 20px; height: 20px; font-style: normal; font-size: .72rem; display: grid; place-items: center; }

@media (max-width: 991.98px) {
  .min-vh-hero { min-height: auto; padding: 4rem 0; }
  .split-heading { display: block; text-align: center; }
  .product-gallery, .sticky-summary { position: static; }
  .video-panel { grid-template-columns: 1fr; }
  .navbar-collapse { padding-top: 1rem; }
}
@media (max-width: 767.98px) {
  body { padding-bottom: 86px; }
  body.product-page { padding-bottom: 150px; }
  .section-pad { padding: 3.25rem 0; }
  .hero-section h1, .page-hero h1 { font-size: 2.25rem; }
  .hero-actions .btn, .detail-actions .btn { width: 100%; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1.04rem; }
  .brand-text small { font-size: .66rem; }
  .topbar { font-size: .8rem; }
  .cart-line { grid-template-columns: 74px 1fr; }
  .cart-line img { width: 74px; height: 92px; }
  .cart-line-actions { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; }
  .promo-banner { background-image: linear-gradient(90deg, rgba(23,17,22,.72), rgba(155,40,83,.42)), var(--banner-mobile-image, var(--banner-image)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
