/* =====================================================
   Heritage boutique theme — ivory, royal burgundy, antique gold, peacock emerald
   Fonts: Cormorant Garamond (headings) + DM Sans (body)
   ===================================================== */
:root {
    --bg: #F6EEE3;
    --bg-deep: #EBDFCD;
    --card: #FFFBF5;
    --maroon: #6A1B2B;
    --maroon-dark: #4A1019;
    --maroon-soft: #8A3441;
    --gold: #B08A3E;
    --gold-light: #E6CF9C;
    --emerald: #1F5A4B;
    --ink: #2B1B1E;
    --muted: #7A6862;
    --line: #E3D5BF;
    --green: #1F5A4B;
    --radius: 6px;
    --shadow: 0 6px 24px rgba(74, 16, 25, .08);
    --shadow-lg: 0 16px 40px rgba(74, 16, 25, .16);
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', 'Segoe UI', Roboto, Arial, sans-serif;

    --bs-primary: #6A1B2B;
    --bs-primary-rgb: 106, 27, 43;
    --bs-success: #1F5A4B;
    --bs-success-rgb: 31, 90, 75;
    --bs-info: #3E7C84;
    --bs-info-rgb: 62, 124, 132;
    --bs-warning: #D9A441;
    --bs-warning-rgb: 217, 164, 65;
    --bs-danger: #A63A3A;
    --bs-danger-rgb: 166, 58, 58;
    --bs-dark: #2B1B1E;
    --bs-dark-rgb: 43, 27, 30;
    --bs-link-color: #6A1B2B;
    --bs-link-hover-color: #4A1019;
    --bs-link-color-rgb: 106, 27, 43;
    --bs-link-hover-color-rgb: 74, 16, 25;
    --bs-body-bg: #F6EEE3;
    --bs-body-color: #2B1B1E;
    --bs-border-color: #E3D5BF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg);
    /* very soft woven-lattice pattern, like fine textile */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23B08A3E' stroke-opacity='.13' stroke-width='1'%3E%3Cpath d='M36 6 66 36 36 66 6 36z'/%3E%3Cpath d='M36 22 50 36 36 50 22 36z'/%3E%3C/g%3E%3Ccircle cx='36' cy='36' r='2' fill='%23B08A3E' fill-opacity='.2'/%3E%3Ccircle cx='0' cy='0' r='2' fill='%23B08A3E' fill-opacity='.16'/%3E%3Ccircle cx='72' cy='0' r='2' fill='%23B08A3E' fill-opacity='.16'/%3E%3Ccircle cx='0' cy='72' r='2' fill='%23B08A3E' fill-opacity='.16'/%3E%3Ccircle cx='72' cy='72' r='2' fill='%23B08A3E' fill-opacity='.16'/%3E%3C/svg%3E");
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
h1, h2, h3, h4, h5, h6, .brand-name, .detail-price, .stat-card .s-num, .price-detail dl.total { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.1rem; }
a { text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--maroon); color: #fff; }
.container-xxl { --gutter: clamp(14px, 2.6vw, 40px); padding-left: var(--gutter); padding-right: var(--gutter); }
.hero-slide .container-xxl { padding-left: clamp(22px, 6vw, 90px); }
.main-wrap { min-height: 60vh; padding-bottom: 3rem; }
.main-wrap:has(> .offer-strip:last-child) { padding-bottom: 0; }
.main-wrap:has(> .offer-strip:last-child) + .fk-footer { margin-top: 0; }
.text-muted { color: var(--muted) !important; }
.border, .border-bottom { border-color: var(--line) !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Marquee (offer ticker) ---------- */
.marquee { background: var(--maroon-dark); color: var(--gold-light); overflow: hidden; white-space: nowrap; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: .5rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; min-width: 100vw; justify-content: space-around; }
.marquee-group span { padding: 0 2rem; display: inline-flex; align-items: center; }
.marquee-group i { color: var(--gold); margin-right: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header { background: rgba(246, 238, 227, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 1030; border-bottom: 1px solid var(--line); }
.hdr-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: .55rem; padding-bottom: .55rem; gap: .5rem; }
.hdr-side { display: flex; align-items: center; gap: .15rem; }
.hdr-right { justify-content: flex-end; }
.icon-btn { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--ink); font-size: 1.25rem; border-radius: 50%; transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--maroon); background: rgba(106, 27, 43, .07); }
.cart-badge { position: absolute; top: 2px; right: 0; background: var(--maroon); color: #fff; font-size: .62rem; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; text-align: center; line-height: 1; color: var(--maroon); }
.brand:hover { color: var(--maroon-dark); }
.brand-name { font-family: var(--serif); font-size: 2.35rem; font-weight: 700; letter-spacing: .01em; color: var(--maroon); }
.brand-tag { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-top: .25rem; font-weight: 600; }
.brand-img { max-height: 58px; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 575px) { .brand-name { font-size: 1.7rem; } .brand-tag { font-size: .5rem; letter-spacing: .18em; } .brand-img { max-height: 42px; max-width: 150px; } .icon-btn { width: 36px; height: 40px; } }

.hdr-nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .2rem 2.1rem; margin: 0 auto; padding: .5rem var(--gutter) .7rem; border-top: 1px solid rgba(176, 138, 62, .25); }
.hdr-nav a { display: inline-block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink); padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.hdr-nav a:hover, .hdr-nav a.active { color: var(--maroon); border-bottom-color: var(--maroon); }
.hdr-nav a.sale-link { color: var(--maroon); }

.search-form { display: flex; align-items: center; gap: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: 2px; margin: .2rem 0 .8rem; padding: .25rem .25rem .25rem 1rem; }
.search-form i { color: var(--muted); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: .55rem 0; font-size: .95rem; color: var(--ink); }
.search-form button { border: 0; background: var(--maroon); color: #fff; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; padding: .65rem 1.3rem; border-radius: 2px; }
.search-form button:hover { background: var(--maroon-dark); }

.mobile-menu { background: var(--bg); width: 300px; }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--line); }
.mobile-menu .offcanvas-body a { display: block; padding: .8rem .2rem; color: var(--ink); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; border-bottom: 1px solid rgba(227, 213, 191, .7); }
.mobile-menu .offcanvas-body a:hover { color: var(--maroon); }
.mobile-menu .sale-link { color: var(--maroon); }
.mobile-menu hr { opacity: .15; }

/* ---------- Buttons & forms ---------- */
.btn-heritage, .btn-fk, .btn-cart, .btn-buy { display: inline-block; border-radius: 2px; text-transform: uppercase; letter-spacing: .13em; font-size: .76rem; font-weight: 600; padding: .85rem 1.9rem; border: 1px solid var(--maroon); transition: all .25s; text-align: center; }
.btn-heritage, .btn-fk, .btn-buy { background: var(--maroon); color: #fff; }
.btn-heritage:hover, .btn-fk:hover, .btn-buy:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; box-shadow: 0 8px 20px rgba(74, 16, 25, .25); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--maroon-dark); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--maroon-dark); }
.btn-outline, .btn-cart { background: transparent; color: var(--maroon); }
.btn-outline:hover, .btn-cart:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn-fk.btn-sm, .btn.btn-fk { padding: .6rem 1.3rem; }
.btn.btn-sm { font-size: .72rem; }
.btn-outline-primary { --bs-btn-color: var(--maroon); --bs-btn-border-color: var(--maroon); --bs-btn-hover-bg: var(--maroon); --bs-btn-hover-border-color: var(--maroon); --bs-btn-active-bg: var(--maroon-dark); --bs-btn-active-border-color: var(--maroon-dark); }
.btn-success { --bs-btn-bg: #1F5A4B; --bs-btn-border-color: #1F5A4B; --bs-btn-hover-bg: #174638; --bs-btn-hover-border-color: #174638; }
.btn-warning { --bs-btn-bg: #D9A441; --bs-btn-border-color: #D9A441; --bs-btn-hover-bg: #C8922F; --bs-btn-hover-border-color: #C8922F; }
.btn-light { --bs-btn-bg: var(--bg-deep); --bs-btn-border-color: var(--bg-deep); --bs-btn-hover-bg: var(--line); --bs-btn-hover-border-color: var(--line); }
.btn-link { color: var(--maroon); }
.form-control, .form-select { background-color: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: .6rem .85rem; color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(106, 27, 43, .1); background-color: #fff; }
.form-control:disabled { background: var(--bg-deep); }
.form-label { font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--maroon); border-color: var(--maroon); }
.alert { border-radius: 4px; border: 0; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg); padding: .5rem; background: var(--card); }
.dropdown-item { border-radius: 4px; padding: .5rem .8rem; }
.dropdown-item:hover { background: var(--bg-deep); color: var(--maroon); }
.dropdown-header { font-family: var(--serif); font-size: 1.05rem; color: var(--maroon); }
.breadcrumb { --bs-breadcrumb-divider-color: var(--muted); font-size: .85rem; }
.badge { font-weight: 600; letter-spacing: .03em; border-radius: 3px; padding: .4em .75em; }
.pagination { --bs-pagination-active-bg: var(--maroon); --bs-pagination-active-border-color: var(--maroon); --bs-pagination-color: var(--maroon); --bs-pagination-hover-color: var(--maroon-dark); --bs-pagination-bg: var(--card); --bs-pagination-border-color: var(--line); --bs-pagination-focus-box-shadow: 0 0 0 4px rgba(106, 27, 43, .1); }

/* ---------- Hero slider ---------- */
.hero { margin: 0; }
.hero-slide { position: relative; min-height: clamp(360px, 40vw, 540px); display: flex; align-items: center; background-size: cover; background-position: right center; background-repeat: no-repeat; overflow: hidden; }
.hero-slide .container-xxl { position: relative; z-index: 2; }
.hero-text { max-width: 480px; padding: 2.5rem 0 3rem; }
.hero-text h2 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.02; color: var(--maroon); font-weight: 600; margin-bottom: 1rem; }
.hero-text p { font-size: clamp(1rem, 1.7vw, 1.2rem); color: #4B3A3D; max-width: 380px; margin-bottom: 1.6rem; }
/* photo slide: ivory fade on the left so text stays readable */
.hero-slide.has-img::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(246, 238, 227, .97) 0%, rgba(246, 238, 227, .88) 28%, rgba(246, 238, 227, .25) 56%, rgba(246, 238, 227, 0) 72%); }
/* no-photo slide: tinted gradient with an ornamental arch (until the admin uploads photos) */
.hero-slide.fallback { background-image: none; }
.fb-0 { background: linear-gradient(100deg, #F6EEE3 0%, #EAD7BC 55%, #D8B98C 100%); }
.fb-1 { background: linear-gradient(100deg, #F6EEE3 0%, #EBD2CB 55%, #CFA097 100%); }
.fb-2 { background: linear-gradient(100deg, #F6EEE3 0%, #DDE3D5 55%, #A9BFB0 100%); }
.hero-slide.fallback::before, .hero-slide.fallback::after { content: ''; position: absolute; bottom: 0; border: 2px solid rgba(176, 138, 62, .6); border-bottom: 0; border-radius: 999px 999px 0 0; }
.hero-slide.fallback::before { right: 9%; width: min(34vw, 380px); height: 86%; background: rgba(255, 251, 245, .28); }
.hero-slide.fallback::after { right: calc(9% + min(34vw, 380px) * .13); width: calc(min(34vw, 380px) * .74); height: 70%; border-color: rgba(176, 138, 62, .45); }
@media (max-width: 767px) {
    .hero-slide { min-height: 400px; background-position: 70% center; }
    .hero-slide.has-img::before { background: linear-gradient(90deg, rgba(246, 238, 227, .94) 0%, rgba(246, 238, 227, .8) 55%, rgba(246, 238, 227, .2) 100%); }
    .hero-text { max-width: 78%; padding: 2rem 0 3rem; }
    .hero-slide.fallback::before { right: -12%; width: 62vw; }
    .hero-slide.fallback::after { right: -2%; width: 44vw; }
}
.carousel-indicators { margin-bottom: .9rem; gap: 6px; }
.carousel-indicators [data-bs-target] { width: 26px; height: 3px; border: 0; background: var(--maroon); opacity: .3; }
.carousel-indicators .active { opacity: 1; }
.carousel-control-prev, .carousel-control-next { width: 56px; opacity: 1; }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 2.6rem; height: 2.6rem; background-color: rgba(255, 251, 245, .88); border-radius: 50%; background-size: 36%; box-shadow: 0 2px 10px rgba(74, 16, 25, .18); }
.carousel-control-prev-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236A1B2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 2 4.5 8l6 6'/%3E%3C/svg%3E"); }
.carousel-control-next-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236A1B2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 2 11.5 8l-6 6'/%3E%3C/svg%3E"); }
@media (max-width: 575px) { .carousel-control-prev, .carousel-control-next { display: none; } }

/* ---------- Trust strip ---------- */
.trust-wrap { background: var(--card); border-bottom: 1px solid var(--line); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.trust-item .ti { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--maroon); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.trust-item b { display: block; font-size: .86rem; line-height: 1.25; }
.trust-item div > span { font-size: .76rem; color: var(--muted); }
@media (max-width: 575px) {
    .trust { gap: .4rem; }
    .trust-item { flex-direction: column; text-align: center; gap: .4rem; }
    .trust-item b { font-size: .74rem; }
    .trust-item div > span { font-size: .66rem; display: block; line-height: 1.25; }
}

/* ---------- Section titles ---------- */
.section-gap { margin-top: clamp(2.6rem, 6vw, 4.6rem); }
.sec-title { display: flex; align-items: center; justify-content: center; gap: 1.2rem; text-align: center; font-size: clamp(1.15rem, 2.6vw, 1.65rem); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--maroon); margin: 0 0 1.8rem; }
.sec-title::before, .sec-title::after { content: ''; flex: 0 1 110px; height: 1px; }
.sec-title::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.sec-title::after { background: linear-gradient(270deg, transparent, var(--gold)); }
@media (max-width: 575px) { .sec-title { letter-spacing: .12em; gap: .7rem; } .sec-title::before, .sec-title::after { flex-basis: 28px; } }

/* ---------- Category circles ---------- */
.cat-circles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem clamp(1rem, 3vw, 2.4rem); }
.cat-circle { flex: 0 0 auto; width: clamp(92px, 12vw, 136px); text-align: center; color: var(--ink); }
.cat-circle .circle { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; padding: 4px; border: 2px solid var(--gold); background: var(--card); overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s; }
.cat-circle .circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: transform .6s; }
.cat-circle .circle.no-photo { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #F3E7D2, #E3CBA0); }
.fallback-mark { font-family: var(--serif); font-size: 2.6rem; color: var(--maroon); line-height: 1; }
.cat-circle .lbl { display: block; margin-top: .8rem; font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; }
.cat-circle:hover { color: var(--maroon); }
.cat-circle:hover .circle { border-color: var(--maroon); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-circle:hover .circle img { transform: scale(1.08); }
@media (max-width: 767px) {
    .cat-circles { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: .3rem var(--gutter) 1rem; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
    .cat-circles::-webkit-scrollbar { display: none; }
    .cat-circle { width: 92px; }
}

/* ---------- Promo banners ---------- */
.promo { display: grid; grid-template-columns: 5fr 7fr; min-height: 300px; overflow: hidden; border-radius: 2px; }
.promo-text { padding: clamp(1.6rem, 4vw, 3.6rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; z-index: 2; }
.promo .eyebrow { display: block; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; font-weight: 600; }
.promo .eyebrow::before, .promo .eyebrow::after { content: ''; display: inline-block; width: 16px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 .5rem; opacity: .7; }
.promo .eyebrow::before { margin-left: 0; }
.promo h3 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.08; margin-bottom: .9rem; }
.promo p { max-width: 400px; margin-bottom: 1.5rem; opacity: .9; }
.promo-img { position: relative; background-size: cover; background-position: center; min-height: 220px; }
.promo-dark { background: var(--maroon-dark); color: #F3E6D8; }
.promo-dark h3 { color: #FFF3E0; }
.promo-dark .promo-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--maroon-dark), rgba(74, 16, 25, 0) 38%); z-index: 1; }
.promo-dark .promo-img.no-photo { background: linear-gradient(135deg, #8A3441 0%, #5A1A25 100%); }
.promo-light { background: #EDE0CB; color: var(--ink); border: 1px solid var(--line); }
.promo-light h3 { color: var(--maroon); }
.promo-light .promo-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #EDE0CB, rgba(237, 224, 203, 0) 38%); z-index: 1; }
.promo-light .promo-img.no-photo { background: linear-gradient(135deg, #F4E8D3 0%, #D9BE8E 100%); }
/* ornament shown when no photo is uploaded */
.promo-img.no-photo::after { content: ''; position: absolute; right: 12%; bottom: 0; width: min(26vw, 260px); height: 82%; border: 2px solid rgba(230, 207, 156, .6); border-bottom: 0; border-radius: 999px 999px 0 0; }
.promo-light .promo-img.no-photo::after { border-color: rgba(106, 27, 43, .3); }
@media (max-width: 767px) {
    .promo { grid-template-columns: 1fr; }
    .promo-img { order: -1; min-height: 200px; }
    .promo-dark .promo-img::before { background: linear-gradient(0deg, var(--maroon-dark), rgba(74, 16, 25, 0) 45%); }
    .promo-light .promo-img::before { background: linear-gradient(0deg, #EDE0CB, rgba(237, 224, 203, 0) 45%); }
    .promo-img.no-photo::after { width: 150px; right: 50%; transform: translateX(50%); }
}

/* ---------- Collection tabs ---------- */
.coll-tabs { justify-content: center; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.8rem; border: 0; }
.coll-tabs .nav-link { text-transform: uppercase; letter-spacing: .13em; font-size: .74rem; font-weight: 600; color: var(--ink); background: transparent; border: 0; border-radius: 999px; padding: .55rem 1.3rem; }
.coll-tabs .nav-link:hover { color: var(--maroon); }
.coll-tabs .nav-link.active { background: var(--maroon); color: #fff; }

/* ---------- Offer strip ---------- */
.offer-strip { background: var(--maroon); color: #fff; padding: 1.5rem 0; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.offer-item { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.offer-item .oi { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.offer-item small { display: block; color: var(--gold-light); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.offer-item b { font-size: 1rem; font-weight: 600; }
@media (max-width: 767px) { .offer-grid { grid-template-columns: 1fr; gap: 1rem; } .offer-item { justify-content: flex-start; } }

/* ---------- Product card ---------- */
.product-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 2px; transition: box-shadow .3s, transform .3s; height: 100%; overflow: hidden; animation: rise .5s both; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-link { display: block; color: inherit; }
.product-img { position: relative; aspect-ratio: 3 / 4; background: var(--bg-deep); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.pill { position: absolute; bottom: 12px; left: 0; background: var(--maroon); color: #fff; font-size: .66rem; font-weight: 600; padding: .3rem .75rem; letter-spacing: .1em; text-transform: uppercase; z-index: 1; }
.pill-soft { left: auto; right: 0; background: var(--card); color: var(--maroon); }
.product-info { padding: .85rem .9rem 1.05rem; }
.product-cat { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: .15rem; }
.product-name { font-size: .92rem; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; line-height: 1.25; color: var(--ink); }
.price-row { margin-top: .4rem; display: flex; flex-wrap: wrap; gap: .1rem .55rem; align-items: baseline; }
.price { font-size: 1.02rem; font-weight: 700; color: var(--maroon); }
.mrp { color: var(--muted); text-decoration: line-through; font-size: .82rem; }
.off { color: var(--green); font-weight: 600; font-size: .82rem; }
.wish-btn { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 251, 245, .94); box-shadow: 0 2px 10px rgba(74, 16, 25, .2); color: var(--muted); font-size: .98rem; display: flex; align-items: center; justify-content: center; transition: transform .2s, color .2s; }
.wish-btn:hover { transform: scale(1.12); color: var(--maroon); }
.wish-btn.active { color: var(--maroon); }
.wish-btn.active i { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.4); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.row > *:nth-child(2) .product-card { animation-delay: .05s; }
.row > *:nth-child(3) .product-card { animation-delay: .1s; }
.row > *:nth-child(4) .product-card { animation-delay: .15s; }
@media (max-width: 575px) { .product-info { padding: .7rem .65rem .85rem; } .product-name { font-size: .85rem; } .price { font-size: .96rem; } }

@media (max-width: 575px) { .btn-heritage, .btn-fk, .btn-cart, .btn-buy { padding-left: 1rem; padding-right: 1rem; letter-spacing: .09em; } }

/* ---------- Filters ---------- */
.filter-box { background: var(--card); padding: 1.3rem; border: 1px solid var(--line); border-radius: 2px; }
.filter-box h6 { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--gold); margin-bottom: .7rem; }
.filter-cat a { display: block; padding: .35rem .6rem; margin: 0 -.6rem; border-radius: 3px; color: var(--ink); font-size: .92rem; }
.filter-cat a.active { background: var(--maroon); color: #fff; font-weight: 600; }
.filter-cat a:hover:not(.active) { background: var(--bg-deep); color: var(--maroon); }

/* ---------- Product details ---------- */
.detail-box { background: var(--card); padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow); }
.gallery-main { aspect-ratio: 4 / 5; display: block; background: var(--bg-deep); position: relative; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .wish-btn { top: 14px; right: 14px; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.gallery-thumbs img { width: 66px; height: 80px; object-fit: cover; border: 2px solid var(--line); cursor: pointer; background: var(--bg-deep); transition: border-color .2s; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--maroon); }
.detail-price { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--maroon); line-height: 1; }
.detail-desc { white-space: pre-line; line-height: 1.75; color: #4B3A3D; }
.qty-box { display: inline-flex; align-items: center; background: var(--bg-deep); border-radius: 999px; padding: 3px; }
.qty-box button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card); color: var(--maroon); font-weight: 700; line-height: 1; box-shadow: 0 1px 4px rgba(74, 16, 25, .15); }
.qty-box button:hover { background: var(--maroon); color: #fff; }
.qty-box input { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 600; height: 34px; -moz-appearance: textfield; }
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 767px) { .detail-price { font-size: 2rem; } }
.sticky-md { position: sticky; top: 130px; }

/* ---------- Cart / checkout ---------- */
.white-box { background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 1.3rem; box-shadow: var(--shadow); }
.cart-row { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 88px; height: 110px; object-fit: cover; background: var(--bg-deep); }
.price-detail dl { display: flex; justify-content: space-between; margin-bottom: .7rem; }
.price-detail dl.total { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: .9rem 0; font-weight: 700; font-size: 1.2rem; font-family: var(--serif); color: var(--maroon); }
.addr-option { border: 1px solid var(--line); border-radius: 3px; padding: .9rem 1rem; margin-bottom: .7rem; display: block; cursor: pointer; transition: all .2s; }
.addr-option:hover { border-color: var(--maroon-soft); }
.addr-option:has(input:checked) { border-color: var(--maroon); background: #FAF0E8; }
.addr-option input[type=radio] { accent-color: var(--maroon); }
.step-title { background: var(--maroon); color: #FBEFDD; padding: .75rem 1.3rem; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: .06em; margin: -1.3rem -1.3rem 1.2rem; }
.sticky-bottom-bar { position: sticky; bottom: 0; background: rgba(255, 251, 245, .96); padding: .9rem 1rem; box-shadow: 0 -6px 20px rgba(74, 16, 25, .1); }

.timeline { display: flex; justify-content: space-between; position: relative; margin: 1.8rem 0 1rem; }
.timeline::before { content: ''; position: absolute; top: 15px; left: 8%; right: 8%; height: 3px; background: var(--line); }
.timeline .step { text-align: center; position: relative; flex: 1; font-size: .8rem; color: var(--muted); }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--line); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto .35rem; position: relative; z-index: 1; }
.timeline .step.done { color: var(--maroon); font-weight: 600; }
.timeline .step.done .dot { background: var(--maroon); }

/* ---------- Auth ---------- */
.auth-card { max-width: 900px; margin: 2.5rem auto; background: var(--card); display: flex; box-shadow: var(--shadow-lg); min-height: 480px; border: 1px solid var(--line); }
.auth-side { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--maroon), var(--maroon-dark)); color: #FBEFDD; padding: 2.6rem; width: 40%; flex: 0 0 40%; display: flex; flex-direction: column; justify-content: center; }
.auth-side::after { content: ''; position: absolute; width: 240px; height: 270px; right: -60px; bottom: -2px; border: 1.5px solid rgba(230, 207, 156, .45); border-radius: 999px 999px 0 0; }
.auth-side h3 { font-size: 2.2rem; line-height: 1.1; position: relative; z-index: 1; }
.auth-side p { color: #E9D2BE; margin-top: 1rem; position: relative; z-index: 1; }
.auth-form { flex: 1; padding: 2.6rem; }
@media (max-width: 767px) { .auth-card { flex-direction: column; margin: 1rem auto; } .auth-side { width: 100%; flex: none; padding: 1.6rem; } .auth-side h3 { font-size: 1.7rem; } .auth-form { padding: 1.5rem; } }

/* ---------- Footer ---------- */
.fk-footer { background: var(--maroon-dark); color: #D9C2B0; padding: 3rem 0 1.2rem; margin-top: 3rem; font-size: .92rem; }
.fk-footer h6 { font-family: var(--sans); color: var(--gold-light); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: .9rem; }
.fk-footer a { color: #FBEFDD; display: block; padding: .2rem 0; transition: padding .2s, color .2s; }
.fk-footer a:hover { color: var(--gold-light); padding-left: 6px; }
.fk-footer .footer-brand { display: inline-flex; padding: 0; }
.fk-footer .footer-brand:hover { padding-left: 0; }
.fk-footer .footer-brand .brand-name { color: #FBEFDD; }
.fk-footer .footer-brand .brand-tag { color: var(--gold-light); }
.fk-footer .footer-brand .brand-img { filter: brightness(0) invert(1); opacity: .92; }
.fk-footer .footer-note { color: #C9B09C; max-width: 320px; }
.fk-footer hr { border-color: rgba(255, 255, 255, .15) !important; opacity: 1; }

/* ---------- Admin ---------- */
.admin-body { background-color: var(--bg); background-image: none; }
.admin-sidebar { background-color: var(--maroon-dark) !important; width: 250px; color: #D9C2B0; border: 0; }
@media (min-width: 992px) { .admin-sidebar { background-color: var(--maroon-dark) !important; width: 250px !important; height: auto !important; } }
.admin-sidebar .brand { padding: 1.3rem 1.4rem; font-size: 1.7rem; font-family: var(--serif); font-weight: 700; color: #FBEFDD; border-bottom: 1px solid rgba(255, 255, 255, .1); display: block; text-align: left; line-height: 1.1; }
.admin-sidebar .brand small { font-family: var(--sans); color: var(--gold-light); letter-spacing: .14em; text-transform: uppercase; font-size: .62rem !important; }
.admin-sidebar .nav { padding: .6rem .8rem; }
.admin-sidebar .nav-link { color: #D9C2B0; padding: .7rem 1rem; display: flex; gap: .8rem; align-items: center; font-weight: 500; border-radius: 4px; margin-bottom: 2px; transition: background .2s, color .2s; }
.admin-sidebar .nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-sidebar .nav-link.active { background: #FBEFDD; color: var(--maroon-dark); font-weight: 600; }
@media (min-width: 992px) {
    .admin-sidebar { position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; }
    .admin-main { margin-left: 250px; }
}
.admin-top { background: rgba(246, 238, 227, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: .85rem 1.3rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .8rem; position: sticky; top: 0; z-index: 1020; }
.admin-top h5 { font-size: 1.5rem; }
.admin-content { padding: 1.5rem; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem; height: 100%; }
.stat-card .s-ico { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; flex: 0 0 52px; }
.stat-card .s-num { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; line-height: 1.1; color: var(--ink); }
.stat-card .s-lbl { color: var(--muted); font-size: .82rem; }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 1.3rem; }
.table { --bs-table-bg: transparent; --bs-table-hover-bg: rgba(106, 27, 43, .04); --bs-table-border-color: var(--line); }
.table thead th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.thumb-sm { width: 48px; height: 60px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-deep); }
.extra-img { position: relative; display: inline-block; margin: 0 .5rem .5rem 0; text-align: center; font-size: .75rem; }
.extra-img img { width: 80px; height: 100px; object-fit: cover; border: 1px solid var(--line); display: block; background: var(--bg-deep); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(800px 500px at 80% 0%, rgba(176, 138, 62, .3), transparent 60%), linear-gradient(150deg, var(--maroon), var(--maroon-dark)); padding: 1rem; }
.login-box { background: var(--card); width: 100%; max-width: 410px; border-radius: 6px; padding: 2.3rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .marquee { white-space: normal; text-align: center; }
    .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }
    .marquee-group[aria-hidden] { display: none; }
    .marquee-group { min-width: 0; flex-wrap: wrap; justify-content: center; }
}
