/* ============================================================
   Fursan Chocolate — Storefront Theme
   Palette: dark chocolate #482e20 · sage #b8bb9a · cream #e9e4de
   Type:    Baskerville Old Face (display) · Futura (body) · Almarai (Arabic)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Futura';
    src: url('../fonts/Futura-Light.woff2') format('woff2'), url('../fonts/Futura-Light.woff') format('woff');
    font-weight: 300; font-display: swap;
}
@font-face {
    font-family: 'Futura';
    src: url('../fonts/FuturaBT-Book.woff2') format('woff2'), url('../fonts/FuturaBT-Book.woff') format('woff');
    font-weight: 400; font-display: swap;
}
@font-face {
    font-family: 'Futura';
    src: url('../fonts/FuturaBT-Medium.woff2') format('woff2'), url('../fonts/FuturaBT-Medium.woff') format('woff');
    font-weight: 500; font-display: swap;
}
@font-face {
    font-family: 'Futura';
    src: url('../fonts/FuturaBT-Bold.woff2') format('woff2'), url('../fonts/FuturaBT-Bold.woff') format('woff');
    font-weight: 700; font-display: swap;
}
@font-face {
    font-family: 'Baskerville W';
    src: url('../fonts/BaskOldFace.woff2') format('woff2'), url('../fonts/BaskOldFace.woff') format('woff');
    font-weight: 400; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
    --brand: #482e20;          /* dark chocolate */
    --brand-dark: #2a1911;
    --brand-darker: #160304;
    --sage: #b8bb9a;           /* olive/sage green */
    --sage-dark: #9da17f;
    --cream: #e9e4de;          /* beige */
    --cream-soft: #f4f1ec;
    --ink: #3d2b20;
    --muted: #7a6a5f;
    --line: #e7ded6;
    --gold: #c99e67;
    --danger: #b23a2e;

    --brand-rgb: 72, 46, 32;
    --sage-rgb: 184, 187, 154;

    --font-body: 'Futura', 'Almarai', 'Segoe UI', Tahoma, sans-serif;
    --font-display: 'Baskerville W', 'Almarai', Georgia, 'Times New Roman', serif;

    --shadow-sm: 0 2px 10px rgba(var(--brand-rgb), .06);
    --shadow-md: 0 10px 30px rgba(var(--brand-rgb), .10);
    --shadow-lg: 0 20px 50px rgba(var(--brand-rgb), .16);
    --radius: 14px;
    --bs-body-font-family: var(--font-body);
}

/* Arabic uses Almarai as the primary UI face */
html[dir="rtl"] {
    --font-body: 'Almarai', 'Futura', 'Segoe UI', Tahoma, sans-serif;
    --font-display: 'Almarai', 'Baskerville W', Georgia, serif;
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: #fff;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-title {
    font-family: var(--font-display);
    color: var(--brand);
    letter-spacing: .01em;
}

a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--sage-dark); }

.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; color: #fff; }
.bg-sage { background: var(--sage) !important; }
.bg-cream { background: var(--cream-soft) !important; }
.container-fluid.px-xl { padding-inline: clamp(1rem, 5vw, 5rem); }

::selection { background: var(--sage); color: var(--brand-dark); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 500; letter-spacing: .02em; padding: .6rem 1.6rem; transition: all .2s ease; }
.btn-lg { padding: .8rem 2.2rem; }
.btn-brand {
    background: var(--sage); color: var(--brand-dark); border: 1px solid var(--sage);
}
.btn-brand:hover, .btn-brand:focus {
    background: var(--brand); color: #fff; border-color: var(--brand);
    transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-outline-brand { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-dark-brand { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.btn-dark-brand:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-check:checked + .btn-outline-brand { background: var(--brand); color: #fff; }

/* map Bootstrap primary → brand so tag-helper buttons inherit the look */
.btn-primary { background: var(--sage); border-color: var(--sage); color: var(--brand-dark); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.btn-success { background: var(--brand); border-color: var(--brand); }
.btn-success:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.link-brand { color: var(--brand); }

/* ---------- Announcement top bar ---------- */
.top-bar {
    background: var(--sage); color: var(--brand-dark);
    font-size: .82rem; letter-spacing: .03em;
}
.top-bar .tb-item { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .25rem; }
.top-bar i { font-size: 1rem; }
.top-bar a { color: var(--brand-dark); }

/* ---------- Header / Navbar ---------- */
.site-navbar {
    background: #fff;
    box-shadow: 0 2px 14px rgba(var(--brand-rgb), .07);
    padding-block: .35rem;
    transition: box-shadow .2s ease;
}
.site-navbar .navbar-brand img { height: 82px; width: auto; max-width: none; }
.site-navbar .navbar-brand { font-family: var(--font-display); color: var(--brand); font-size: 1.5rem; }
.site-navbar .nav-link {
    font-weight: 500; color: var(--brand); text-transform: none;
    font-size: 1rem; letter-spacing: .01em; padding-inline: .9rem;
    position: relative;
}
.site-navbar .nav-link::after {
    content: ""; position: absolute; bottom: .35rem; inset-inline-start: .95rem; inset-inline-end: .95rem;
    height: 2px; background: var(--sage); transform: scaleX(0); transform-origin: center; transition: transform .22s ease;
}
.site-navbar .nav-link:hover::after, .site-navbar .nav-item.show .nav-link::after { transform: scaleX(1); }
.site-navbar .nav-link:hover { color: var(--sage-dark); }

/* ---- Template-matched 3-column header ---- */
.top-bar .tb-col { display: flex; align-items: center; gap: .5rem; padding: .5rem .25rem; }
.top-bar .tb-col img { height: 24px; width: auto; }
.top-bar .tb-col span { font-size: .82rem; }
.top-bar .tb-col b { font-weight: 600; }
.site-navbar > .container-fluid, .site-navbar > .container { display: flex; align-items: center; }
.header-nav-wrap { order: 1; }
.header-logo { order: 2; margin: 0 auto; padding: 0; }
.header-logo img { height: 82px; width: auto; max-width: none; }
.header-logo { justify-self: center; }
.header-icons { order: 3; justify-content: flex-end; }
.header-nav { gap: .3rem; }
/* Desktop: true 3-column grid keeps the logo perfectly centered regardless of side widths */
@media (min-width: 992px) {
    .site-navbar > .container-fluid, .site-navbar > .container { display: grid; grid-template-columns: 1fr auto 1fr; }
    .header-icons { display: flex; }
}
.hdr-lang { color: var(--brand); font-size: .85rem; text-decoration: none; font-weight: 500; padding: .35rem .55rem; border-radius: 999px; }
.hdr-lang:hover { color: var(--sage-dark); background: var(--cream-soft); }
.hdr-currency { color: var(--brand); font-weight: 600; font-size: .82rem; padding: 0 .55rem; border-inline-start: 1px solid var(--line); }
@media (max-width: 991.98px) {
    .header-nav-wrap { order: 4; flex-basis: 100%; }
    .header-icons { flex: 0 0 auto; }
    .header-logo { margin-inline: 0; margin-inline-start: .5rem; }
    .header-nav { gap: 0; }
}

/* header icon cluster */
.header-icons { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; color: var(--brand);
    background: transparent; border: 0; transition: background .18s ease, color .18s ease;
}
.icon-btn:hover { background: var(--cream-soft); color: var(--brand); }
.icon-btn i { font-size: 1.15rem; }
.icon-btn .badge-count {
    position: absolute; top: 4px; inset-inline-end: 2px;
    background: var(--brand); color: #fff; font-size: .62rem; font-weight: 700;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.lang-switch .dropdown-toggle { border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; color: var(--brand); }

/* ---------- Dropdowns / Mega menu ---------- */
.site-navbar .dropdown-menu {
    border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius);
    padding: .6rem; margin-top: .5rem; animation: ddIn .18s ease;
}
@keyframes ddIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.site-navbar .dropdown-item { border-radius: 9px; padding: .5rem .9rem; color: var(--ink); font-size: .9rem; }
.site-navbar .dropdown-item:hover { background: var(--cream-soft); color: var(--brand); }
.site-navbar .mega-menu { width: min(880px, 92vw); padding: 1.6rem 1.9rem; }
.mega-menu .mega-col-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--brand); display: block; margin-bottom: .6rem; }
.mega-menu .mega-col-title:hover { color: var(--sage-dark); }
.mega-menu .mega-link { display: block; padding: .28rem 0; color: var(--muted); font-size: .9rem; }
.mega-menu .mega-link:hover { color: var(--brand); padding-inline-start: .3rem; }
.nav-item-icon { margin-inline-end: .35rem; color: var(--sage-dark); }

/* mini-cart dropdown */
.mini-cart { width: 340px; padding: 1rem; }
.mini-cart .mc-row { display: flex; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.mini-cart .mc-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.mini-cart .mc-name { font-size: .85rem; color: var(--ink); }
.mini-cart .mc-meta { font-size: .78rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 560px; display: flex; align-items: center;
    background: linear-gradient(rgba(22,3,4,.35), rgba(22,3,4,.45)), var(--brand-darker) center/cover no-repeat;
    color: #fff;
}
.hero .hero-inner { max-width: 640px; }
.hero .hero-eyebrow { color: var(--sage); text-transform: uppercase; letter-spacing: .28em; font-size: .8rem; margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.1rem; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.9); margin-bottom: 1.8rem; }

/* keep legacy hero-section usable */
.hero-section { background: linear-gradient(135deg, var(--brand-darker), var(--brand)); min-height: 420px; color: #fff; }
.hero-section h1, .hero-section h2 { color: #fff; }

/* ---------- Section headings ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-cream { background: var(--cream-soft); }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head .eyebrow { color: var(--sage-dark); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 500; }
.section-head h2, .section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--brand); margin-top: .4rem; }
.section-head p { color: var(--muted); max-width: 640px; margin: .6rem auto 0; }
.section-title { font-weight: 400; position: relative; padding-bottom: .6rem; }
.section-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 64px; height: 3px; background: var(--sage); border-radius: 2px; }
.text-center .section-title::after { inset-inline-start: 50%; transform: translateX(-50%); }

/* ---------- Welcome / about teaser ---------- */
.welcome-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); object-fit: cover; }
.welcome-years { font-family: var(--font-display); font-size: 3rem; color: var(--sage-dark); line-height: 1; }
.pic-welcome { background: var(--cream-soft); border-inline-start: 3px solid var(--sage-dark); padding: 1rem 1.2rem; margin: -2.5rem 1.2rem 0; position: relative; z-index: 2; font-family: var(--font-display); font-style: italic; color: var(--brand); border-radius: 12px; box-shadow: var(--shadow-md); }
.pic-welcome span { display: block; margin-top: .5rem; font-family: var(--font-body); font-style: normal; font-size: .8rem; color: var(--sage-dark); letter-spacing: .04em; }
.section-head .eyebrow { display: block; margin-top: .35rem; }

/* ---------- Category tiles ---------- */
.cat-tile {
    position: relative; display: block; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4/3.4; box-shadow: var(--shadow-sm); background: var(--brand);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(22,3,4,.78)); }
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile .cat-name {
    position: absolute; inset-inline: 0; bottom: 0; z-index: 2; text-align: center; color: #fff;
    font-family: var(--font-display); font-size: 1.35rem; padding: 1.2rem;
}
.cat-tile .cat-name small { display: block; font-family: var(--font-body); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); }

/* ---------- Product cards ---------- */
.product-card {
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease; height: 100%; position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-card .pc-imgwrap { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--cream-soft); }
.product-card .pc-imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .pc-imgwrap img { transform: scale(1.06); }
.product-card .card-body { padding: 1rem 1.1rem 1.2rem; text-align: center; }
.product-card .pc-title { font-family: var(--font-display); font-size: 1.08rem; color: var(--brand); margin-bottom: .35rem; display: block; }
.product-card .pc-title:hover { color: var(--sage-dark); }
.product-card .pc-price { font-weight: 700; color: var(--brand); }
.product-card .pc-old { color: var(--muted); text-decoration: line-through; font-size: .85rem; margin-inline-start: .4rem; font-weight: 400; }
.pc-labels { position: absolute; top: .7rem; inset-inline-start: .7rem; z-index: 3; display: flex; flex-direction: column; gap: .3rem; }
.pc-label { font-size: .68rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; color: #fff; background: var(--brand); letter-spacing: .04em; }
.pc-wish {
    position: absolute; top: .6rem; inset-inline-end: .6rem; z-index: 3;
    width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92);
    color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
    transition: all .18s ease;
}
.pc-wish:hover, .pc-wish.active { background: var(--brand); color: #fff; }
.pc-actions { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; padding: .7rem; transform: translateY(120%); transition: transform .25s ease; }
.product-card:hover .pc-actions { transform: none; }
.pc-soldout { position: absolute; top: .7rem; inset-inline-start: .7rem; z-index: 3; background: rgba(22,3,4,.78); color: #fff; font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; letter-spacing: .03em; }
.product-card:has(.pc-soldout) .pc-imgwrap img { filter: grayscale(.4) opacity(.85); }

/* ---------- Product detail ---------- */
.pd-gallery .pd-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream-soft); aspect-ratio: 1/1; cursor: zoom-in; }
.pd-gallery .pd-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .12s ease-out; will-change: transform; }
.pd-gallery .pd-main.zooming { cursor: crosshair; }
.pd-zoom-hint { position: absolute; top: .7rem; inset-inline-end: .7rem; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: opacity .15s ease; }
.pd-main.zooming .pd-zoom-hint { opacity: 0; }
.pd-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .18s ease, background .15s ease; }
.pd-main:hover .pd-nav { opacity: 1; }
.pd-nav:hover { background: var(--brand); color: #fff; }
.pd-prev { inset-inline-start: .6rem; }
.pd-next { inset-inline-end: .6rem; }
.pd-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.pd-thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; transition: border-color .15s ease, transform .15s ease; }
.pd-thumbs img:hover { transform: translateY(-2px); }
.pd-thumbs img.active { border-color: var(--brand); }
.pd-thumbs .pd-attr-thumb { box-shadow: inset 0 0 0 2px var(--cream); }
.pd-opt-img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; margin-inline-end: .4rem; vertical-align: middle; border: 1px solid rgba(0,0,0,.1); }
.btn-check:checked + .pd-optlabel-img .pd-opt-img { box-shadow: 0 0 0 2px #fff; }
.pd-optlabel-img { display: inline-flex; align-items: center; }
.pd-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .5rem; }
.pd-price { font-size: 1.8rem; font-weight: 700; color: var(--brand); }
.pd-price .old { color: var(--muted); text-decoration: line-through; font-size: 1.1rem; font-weight: 400; margin-inline-start: .5rem; }
.pd-meta { color: var(--muted); font-size: .9rem; }
.variant-radio + label, .matrix-radio + label {
    display: inline-block; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px;
    cursor: pointer; margin: 0 .4rem .4rem 0; font-size: .9rem; transition: all .15s ease;
}
.variant-radio:checked + label, .matrix-radio:checked + label { background: var(--brand); color: #fff; border-color: var(--brand); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 40px; height: 42px; border: 0; background: var(--cream-soft); color: var(--brand); font-size: 1.1rem; }
.qty-stepper button:hover { background: var(--sage); }
.qty-stepper input { width: 54px; text-align: center; border: 0; height: 42px; font-weight: 600; }
.stars i { color: var(--gold); }
.review-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.nav-tabs { border-bottom: 2px solid var(--line); }
.nav-tabs .nav-link { color: var(--muted); border: 0; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.nav-tabs .nav-link.active { color: var(--brand); border: 0; border-bottom: 2px solid var(--brand); background: transparent; }

/* ---------- Breadcrumb / inner banner ---------- */
.page-banner {
    background: var(--sage); color: var(--brand-dark); text-align: center; padding: clamp(2.4rem, 5vw, 3.6rem) 1rem;
    position: relative;
}
.page-banner h1 { color: var(--brand-dark); font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.page-banner .breadcrumb { justify-content: center; margin: .6rem 0 0; --bs-breadcrumb-divider-color: rgba(var(--brand-rgb),.5); }
.page-banner .breadcrumb a { color: var(--brand-dark); }
.page-banner .breadcrumb-item.active { color: rgba(var(--brand-rgb),.7); }
.page-header { background: var(--cream-soft); border-bottom: 1px solid var(--line); }
.page-cover { max-height: 460px; width: 100%; object-fit: cover; border-radius: var(--radius); }
.page-content { line-height: 1.85; font-size: 1.05rem; color: var(--ink); }
.page-content img { max-width: 100%; height: auto; border-radius: 10px; }
.page-content h2, .page-content h3 { margin-top: 1.6rem; }

/* ---------- Checkout: payment method cards ---------- */
.pay-options { display: flex; flex-direction: column; gap: .6rem; }
.pay-option {
    display: flex; align-items: center; gap: .85rem;
    border: 1.5px solid var(--line); border-radius: 12px;
    padding: .85rem 1rem; cursor: pointer; position: relative;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    margin: 0;
}
.pay-option:hover { border-color: var(--sage); }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option .pay-ic {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--cream-soft); color: var(--brand); font-size: 1.3rem;
    transition: background .15s ease, color .15s ease;
}
.pay-option .pay-text { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.3; }
.pay-option .pay-title { font-family: var(--font-display); color: var(--brand); font-size: 1.02rem; }
.pay-option .pay-desc { font-size: .82rem; color: var(--muted); }
.pay-option .pay-brands { color: var(--sage-dark); font-size: 1.4rem; }
.pay-option .pay-check {
    flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: .8rem; transition: all .15s ease;
}
.pay-option .pay-check .bi { opacity: 0; }
/* selected state */
.pay-option:has(input:checked) { border-color: var(--sage-dark); background: color-mix(in srgb, var(--sage) 10%, transparent); box-shadow: 0 2px 10px rgba(72,46,32,.06); }
.pay-option:has(input:checked) .pay-ic { background: var(--sage-dark); color: #fff; }
.pay-option:has(input:checked) .pay-check { background: var(--sage-dark); border-color: var(--sage-dark); }
.pay-option:has(input:checked) .pay-check .bi { opacity: 1; }
.pay-option input:focus-visible ~ .pay-check { outline: 2px solid var(--sage-dark); outline-offset: 2px; }
.pay-bank-note {
    background: var(--cream-soft); border: 1px dashed var(--sage);
    border-radius: 10px; padding: .8rem 1rem; font-size: .88rem; color: var(--ink);
}

/* ---------- Shop grid / list view toggle ---------- */
.view-toggle { display: inline-flex; border: 1px solid var(--sage); border-radius: 8px; overflow: hidden; }
.view-toggle .vt-btn {
    background: #fff; border: 0; color: var(--sage-dark);
    width: 40px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.05rem; transition: background .15s ease, color .15s ease;
}
.view-toggle .vt-btn + .vt-btn { border-inline-start: 1px solid var(--sage); }
.view-toggle .vt-btn.active { background: var(--sage); color: #fff; }

/* List mode: each product takes the full row and the card lays out horizontally. */
#productGrid.view-list .product-col { flex: 0 0 100%; max-width: 100%; }
#productGrid.view-list .product-card { display: flex; flex-direction: row; height: auto; }
#productGrid.view-list .product-card .pc-imgwrap { flex: 0 0 240px; width: 240px; aspect-ratio: 4/3; }
#productGrid.view-list .product-card .card-body {
    flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center;
    text-align: start; padding: 1.2rem 1.6rem;
}
#productGrid.view-list .product-card .pc-title { font-size: 1.3rem; white-space: normal; }
#productGrid.view-list .product-card .pc-actions { position: static; transform: none; padding: 0; margin-top: .9rem; max-width: 220px; }
#productGrid.view-list .product-card .card-body .btn { max-width: 220px; }
@media (max-width: 575.98px) {
    #productGrid.view-list .product-card .pc-imgwrap { flex-basis: 130px; width: 130px; }
    #productGrid.view-list .product-card .pc-title { font-size: 1.05rem; }
}

/* ---------- Filters / shop sidebar ---------- */
.filter-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; position: sticky; top: 90px; }
.filter-card h6 { font-family: var(--font-display); color: var(--brand); }
.filter-group { padding-block: .9rem; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; }
.filter-title { font-size: .95rem; margin-bottom: .6rem; }
.filter-card .form-check { margin-bottom: .25rem; }
.filter-card .form-check-label { font-size: .9rem; color: var(--ink); cursor: pointer; }
.filter-card .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.fw-500 { font-weight: 500; }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .6rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--sage-dark); box-shadow: 0 0 0 .2rem rgba(var(--sage-rgb), .35); }
label.form-label { color: var(--brand); font-weight: 500; font-size: .9rem; }

/* ---------- Cart / checkout ---------- */
.cart-table th { color: var(--muted); font-weight: 500; text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.cart-row td { vertical-align: middle; }
.cart-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.summary-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--cream-soft); position: sticky; top: 90px; }
.summary-card .s-row { display: flex; justify-content: space-between; padding: .35rem 0; color: var(--ink); }
.summary-card .s-total { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .8rem; font-size: 1.25rem; font-weight: 700; color: var(--brand); }
.checkout-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.checkout-card h5 { display: flex; align-items: center; gap: .5rem; }

/* ---------- Category themes (rebrand of existing) ---------- */
.theme-list1-item, .theme-news2-item, .theme-blog-card, .theme-team-card { border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: var(--radius); overflow: hidden; }
.theme-list1-img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.theme-list2 .list-group-item:hover { background: var(--cream-soft); }
.theme-news1-hero { min-height: 400px; background-color: var(--brand-darker); background-size: cover; background-position: center; display: flex; align-items: flex-end; border-radius: var(--radius); overflow: hidden; }
.theme-news1-overlay { width: 100%; background: linear-gradient(transparent, rgba(22,3,4,.85)); }
.theme-news2-date { background: var(--brand); color: #fff; width: 64px; padding: .4rem .2rem; border-radius: 10px; }
.theme-news2-day { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.theme-news2-month { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.theme-news2-thumb { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; }
.theme-blog-cover { width: 100%; max-height: 380px; object-fit: cover; }
.theme-video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; color: rgba(255,255,255,.95); text-shadow: 0 2px 12px rgba(0,0,0,.5); transition: transform .15s ease; }
.theme-video-play:hover { transform: scale(1.1); }
.theme-team-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 4px solid var(--cream); }
.theme-team-placeholder { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--sage-dark); font-size: 3rem; }
.page-card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; height: 100%; }
.page-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.page-card .card-img-top { height: 210px; object-fit: cover; }
.page-card .card-title { font-family: var(--font-display); color: var(--brand); }
.site-gallery-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; transition: transform .15s ease; }
.site-gallery-thumb:hover { transform: scale(1.02); }

/* ---------- Faq accordion ---------- */
.accordion-button { font-family: var(--font-display); color: var(--brand); }
.accordion-button:not(.collapsed) { background: var(--cream-soft); color: var(--brand); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(var(--sage-rgb), .35); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--brand-darker); color: var(--cream);
    background-image: linear-gradient(rgba(22,3,4,.94), rgba(22,3,4,.94));
}
.site-footer h5, .site-footer h6 { color: #fff; font-family: var(--font-display); }
.site-footer p, .site-footer li, .site-footer address { color: rgba(233,228,222,.75); font-size: .92rem; }
.footer-links a { color: rgba(233,228,222,.78); display: inline-block; padding: .18rem 0; }
.footer-links a:hover { color: var(--sage); padding-inline-start: .3rem; }
.footer-newsletter .form-control { border-radius: 999px 0 0 999px; border: 0; }
html[dir="rtl"] .footer-newsletter .form-control { border-radius: 0 999px 999px 0; }
.social-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: all .18s ease;
}
.social-icon:hover { background: var(--sage); color: var(--brand-dark); transform: translateY(-3px); }
.footer-bottom { background: rgba(0,0,0,.3); color: rgba(233,228,222,.55); font-size: .85rem; }
.footer-pay img { max-height: 30px; opacity: .85; }

/* ---------- Utilities / misc ---------- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--sage-dark); }
.badge-soft { background: var(--cream); color: var(--brand); font-weight: 500; }
.divider-line { height: 1px; background: var(--line); border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .site-navbar .nav-link::after { display: none; }
    .filter-card, .summary-card { position: static; }
    .hero { min-height: 420px; text-align: center; }
    .hero .hero-inner { margin-inline: auto; }
}
@media (max-width: 575.98px) {
    .site-navbar .navbar-brand img { height: 58px; }
    .icon-btn { width: 38px; height: 38px; }
}
