/* =====================================================================
   PJY Jewellers - storefront styles
   One place for the shop's look: cream paper, charcoal ink, muted gold.
   Mobile first; breakpoints at 576 / 768 / 992 / 1200px.
   ===================================================================== */

:root {
    --ink: #1c1b18;
    --ink-2: #3f3c35;
    --muted: #716b60;
    --line: #e6dfd2;
    --line-soft: #efe9de;
    --paper: #fdfbf7;
    --paper-2: #f6f1e7;
    --card: #ffffff;
    --gold: #a8873a;          /* gold for text on light backgrounds (readable) */
    --gold-bright: #d4af37;   /* gold for fills and accents */
    --gold-soft: rgba(212, 175, 55, 0.12);
    /* Brand colour: deep jewellery maroon for buttons, badges and active states (instead of black) */
    --brand: #7a1f35;
    --brand-hover: #63182a;
    --brand-deep: #3a0e1a;     /* announcement strip, footer */
    --brand-soft: rgba(122, 31, 53, 0.08);
    --on-brand: #ffffff;
    --danger: #b42318;
    --success: #1f7a4d;
    --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(28, 27, 24, 0.05), 0 6px 20px rgba(28, 27, 24, 0.06);
    --header-h: 64px;
    --bottom-nav-h: 60px;
    --gutter: clamp(16px, 4vw, 32px);

    /* keep the older variables (used by existing pages) in step */
    --bg-primary: var(--paper);
    --bg-secondary: var(--paper-2);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-2);
    --text-muted: var(--muted);
    --accent-primary: var(--gold);
    --accent-hover: #8a6e2c;
    --border-color: var(--line);
    --border-soft: var(--line-soft);
    --font-heading: var(--font-display);
}

[data-theme="dark"] {
    --ink: #f4efe6;
    --ink-2: #d6d0c4;
    --muted: #a39d91;
    --line: #2e2b26;
    --line-soft: #26241f;
    --paper: #121110;
    --paper-2: #1a1916;
    --card: #1d1c19;
    --gold: #d9b85c;
    --gold-soft: rgba(212, 175, 55, 0.14);
    --brand: #a8384f;
    --brand-hover: #8f2e43;
    --brand-deep: #240a11;
    --brand-soft: rgba(200, 80, 105, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.s-display { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.03em; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.s-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.s-section { padding-block: clamp(36px, 6vw, 64px); }
.s-section-alt { background: var(--paper-2); }

/* ---------- Buttons ---------- */
.s-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.92rem; line-height: 1; text-decoration: none;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.s-btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 2px 8px rgba(122, 31, 53, 0.18); }
.s-btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.s-btn-gold { background: var(--gold-bright); color: #1c1b18; }
.s-btn-gold:hover { background: #c49f2c; color: #1c1b18; }
.s-btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.s-btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.s-btn-light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.5); }
.s-btn-light:hover { background: rgba(255,255,255,0.24); color: #fff; }
.s-btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.85rem; }
.s-btn-block { width: 100%; }
.s-btn:disabled { opacity: .55; cursor: not-allowed; }

.s-icon-btn {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 0; background: transparent; color: var(--ink);
    font-size: 1.2rem; position: relative; text-decoration: none; cursor: pointer;
}
.s-icon-btn:hover { background: var(--gold-soft); color: var(--ink); }
.s-count {
    position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--brand); color: var(--on-brand);
    font-size: 0.68rem; font-weight: 700; line-height: 18px; text-align: center;
}
.s-count:empty, .s-count[data-count="0"] { display: none; }

/* ---------- Announcement + header ---------- */
.s-announce {
    background: var(--brand-deep); color: #f0dca4; font-size: 0.78rem; text-align: center;
    padding: 7px var(--gutter); letter-spacing: 0.02em;
}
.s-announce span + span::before { content: "·"; margin: 0 10px; opacity: .6; }

.s-header { background: var(--paper); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 1030; }
.s-header-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 8px; }
.s-header-left, .s-header-right { display: flex; align-items: center; gap: 2px; }
.s-header-right { justify-content: flex-end; }

.s-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.s-logo img { height: 40px; width: auto; }
.s-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.s-logo-name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.14em; }
.s-logo-tag { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 3px; }
.s-logo:hover { color: var(--ink); }

.s-search {
    display: flex; align-items: center; gap: 8px; width: 100%; max-width: 320px; height: 40px;
    padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card);
    color: var(--muted); font-size: 0.86rem; cursor: pointer; text-align: left;
}
.s-search:hover { border-color: var(--gold); }

.s-catnav { border-top: 1px solid var(--line-soft); }
.s-catnav-list { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; height: 46px; align-items: stretch; }
.s-catnav-list > li { display: flex; position: relative; }
.s-catnav-list a, .s-catnav-list button {
    display: flex; align-items: center; padding: 0 14px; font-size: 0.86rem; font-weight: 600;
    color: var(--ink-2); text-decoration: none; border: 0; background: none; border-bottom: 2px solid transparent;
}
.s-catnav-list a:hover, .s-catnav-list button:hover { color: var(--ink); }
.s-catnav-list a.is-active { color: var(--ink); border-bottom-color: var(--gold-bright); }
.s-catnav .dropdown-menu { border-radius: var(--radius); border-color: var(--line); background: var(--card); padding: 6px; min-width: 220px; }
.s-catnav .dropdown-item { border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.88rem; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.s-catnav .dropdown-item small { color: var(--muted); }
.s-catnav .dropdown-item:hover { background: var(--paper-2); }

@media (max-width: 991.98px) {
    :root { --header-h: 58px; }
    .s-header-bar { grid-template-columns: auto 1fr auto; }
    .s-header-center { justify-self: start; }
    .s-logo img { height: 34px; }
    .s-logo-name { font-size: 1.12rem; letter-spacing: 0.1em; }
    .s-logo-tag { display: none; }
    .s-icon-btn { width: 40px; height: 40px; font-size: 1.15rem; }
    .s-hide-mobile { display: none !important; }
}
@media (max-width: 380px) {
    .s-logo img { display: none; }
}

/* ---------- Mobile drawer ---------- */
.s-drawer { width: min(320px, 86vw) !important; background: var(--paper) !important; color: var(--ink); }
.s-drawer .offcanvas-header { border-bottom: 1px solid var(--line-soft); }
.s-drawer-section { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.s-drawer-title { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 6px; }
.s-drawer-links { list-style: none; margin: 0; padding: 0; }
.s-drawer-links a, .s-drawer-links button {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
    padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 500; border: 0; background: none; text-align: left;
}
.s-drawer-links small { color: var(--muted); }

/* ---------- Mobile bottom navigation ---------- */
.s-bottom-nav { display: none; }
@media (max-width: 991.98px) {
    .s-bottom-nav {
        display: grid; grid-template-columns: repeat(5, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
        background: var(--paper); border-top: 1px solid var(--line);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .s-bottom-nav a {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        height: var(--bottom-nav-h); color: var(--muted); font-size: 0.68rem; font-weight: 600; text-decoration: none; position: relative;
    }
    .s-bottom-nav a i { font-size: 1.2rem; }
    .s-bottom-nav a.is-active { color: var(--brand); }
    .s-bottom-nav .s-count { top: 6px; right: calc(50% - 22px); }
    body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }
}

.s-whatsapp {
    position: fixed; right: 18px; bottom: 22px; z-index: 1034;
    width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.55rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18); text-decoration: none;
}
.s-whatsapp:hover { color: #fff; background: #1fb956; }
@media (max-width: 991.98px) {
    .s-whatsapp { bottom: calc(var(--bottom-nav-h) + 14px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; font-size: 1.4rem; }
}

/* ---------- Section headings ---------- */
.s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.s-head h1, .s-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3.2vw, 2rem); letter-spacing: 0.02em; margin: 0; }
.s-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.s-head-link { font-weight: 600; font-size: 0.88rem; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold-bright); white-space: nowrap; }
.s-head-link:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.s-hero { position: relative; background: #16151a; color: #fff; }
.s-hero .swiper-slide { position: relative; min-height: clamp(360px, 58vh, 620px); display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.s-hero .swiper-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0.15) 0%, rgba(10,10,12,0.55) 55%, rgba(10,10,12,0.82) 100%); }
.s-hero-content { position: relative; z-index: 2; padding-block: clamp(32px, 7vw, 72px); max-width: 640px; }
.s-hero-kicker { display: inline-block; font-size: 0.78rem; font-weight: 600; color: #e9d9a6; margin-bottom: 10px; }
.s-hero h1, .s-hero h2 { font-family: var(--font-display); color: #fff; font-weight: 600; font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: 1.12; letter-spacing: 0.02em; margin: 0 0 12px; }
.s-hero p { color: rgba(255,255,255,0.88); font-size: clamp(0.95rem, 1.6vw, 1.08rem); margin: 0 0 22px; max-width: 560px; }
.s-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.s-hero .swiper-pagination { bottom: 16px !important; text-align: right; padding-inline: var(--gutter); }
.s-hero .swiper-pagination-bullet { background: #fff; opacity: .45; width: 8px; height: 8px; }
.s-hero .swiper-pagination-bullet-active { opacity: 1; background: var(--gold-bright); }

/* ---------- Categories ---------- */
/* One row of equal framed cards; scrolls sideways (arrows on desktop, swipe on phones) */
.s-cats-wrap { position: relative; }
/* Carousel arrows sit on the card row, centred on the photos */
.s-rail-btn { position: absolute; top: calc(50% - 26px); z-index: 3; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: 0 4px 14px rgba(28, 27, 24, .16);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
    transition: border-color .2s, color .2s, transform .2s; }
.s-rail-btn.is-prev { left: -10px; }
.s-rail-btn.is-next { right: -10px; }
.s-rail-btn:hover { border-color: var(--gold-bright); color: var(--gold); transform: scale(1.06); }
.s-rail-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
@media (min-width: 1300px) { .s-rail-btn.is-prev { left: -22px; } .s-rail-btn.is-next { right: -22px; } }
@media (max-width: 575.98px) { .s-rail-btn { width: 36px; height: 36px; font-size: .95rem; top: calc(50% - 30px); } .s-rail-btn.is-prev { left: -6px; } .s-rail-btn.is-next { right: -6px; } }
/* Page dots under the row */
.s-rail-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.s-rail-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); transition: width .25s ease, background-color .25s ease; }
.s-rail-dot.is-active { width: 26px; background: var(--gold-bright); }
.s-rail-dot:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.s-cats { display: grid; grid-auto-flow: column; grid-auto-columns: 116px; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: none; }
.s-cats::-webkit-scrollbar { display: none; }
/* soft fade on the side that has more cards */
.s-cats-wrap.more-right .s-cats { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.s-cats-wrap.more-left .s-cats { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); }
.s-cats-wrap.more-left.more-right .s-cats { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }

.s-cat { scroll-snap-align: start; display: flex; flex-direction: column; text-align: center; text-decoration: none; color: var(--ink);
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 7px 7px 12px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.s-cat:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(212, 175, 55, .6); }
.s-cat:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.s-cat-img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper-2); margin-bottom: 10px;
    display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 2rem; }
.s-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.s-cat:hover .s-cat-img img { transform: scale(1.06); }
.s-cat-name { display: block; font-weight: 600; font-size: 0.86rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline: 2px; }
.s-cat-count { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
@media (min-width: 576px) { .s-cats { grid-auto-columns: 140px; gap: 14px; } }
@media (min-width: 992px) { .s-cats { grid-auto-columns: 164px; gap: 16px; } .s-cat-name { font-size: 0.92rem; } }
@media (prefers-reduced-motion: reduce) { .s-cat, .s-cat-img img { transition: none; } .s-cat:hover { transform: none; } }

/* ---------- Product grid + card ---------- */
.s-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 768px) { .s-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .s-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

.s-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; height: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.s-card:hover { border-color: var(--line); box-shadow: var(--shadow); }
.s-card-media { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.s-card-media > a { display: block; width: 100%; height: 100%; }
.s-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.s-card:hover .s-card-media img { transform: scale(1.04); }
.s-card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 2rem; }

.s-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; background: var(--paper); color: var(--ink); }
.s-badge-sale { background: var(--gold-bright); color: #1c1b18; }
.s-badge-out { background: #3a3833; color: #fff; }

.s-card-tools { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.s-card-tool {
    width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.92);
    color: #1c1b18; display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12); cursor: pointer;
}
.s-card-tool:hover { background: #fff; color: var(--danger); }
.s-card-tool .bi-heart-fill { color: var(--danger); }
/* compare / quick view appear on hover where a mouse is available; heart is always visible */
.s-card-tool-extra { display: none; }
@media (hover: hover) and (pointer: fine) {
    .s-card-tool-extra { display: flex; opacity: 0; transform: translateX(6px); transition: opacity .15s ease, transform .15s ease; }
    .s-card:hover .s-card-tool-extra { opacity: 1; transform: none; }
}

.s-card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.s-card-sku { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }
.s-card-title { font-size: 0.92rem; font-weight: 600; line-height: 1.35; margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.s-card-title a { text-decoration: none; color: inherit; }
.s-card-title a:hover { color: var(--gold); }
.s-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.s-price { font-weight: 700; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.s-price-old { color: var(--muted); text-decoration: line-through; font-size: 0.82rem; }
.s-tier { font-size: 0.7rem; font-weight: 700; color: var(--gold); background: var(--gold-soft); border-radius: 4px; padding: 2px 6px; }
.s-moq { font-size: 0.75rem; color: var(--muted); }
.s-rating { font-size: 0.75rem; color: var(--gold); display: flex; align-items: center; gap: 2px; }
.s-rating span { color: var(--muted); margin-left: 4px; }

.s-card-buy { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
.s-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); height: 40px; flex-shrink: 0; background: var(--card); }
.s-qty button { width: 32px; height: 100%; border: 0; background: none; color: var(--ink); font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.s-qty button:hover { color: var(--brand); }
.s-qty input { width: 40px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 0.88rem; color: var(--ink); padding: 0; -moz-appearance: textfield; appearance: textfield; }
.s-qty input::-webkit-outer-spin-button, .s-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.s-card-buy .s-btn { flex: 1; min-height: 40px; padding: 0 10px; font-size: 0.85rem; }
@media (max-width: 420px) {
    .s-card-body { padding: 10px 10px 12px; }
    .s-card-buy { flex-direction: column; }
    .s-card-buy .s-qty { width: 100%; justify-content: space-between; }
    .s-card-buy .s-qty input { flex: 1; }
}

/* ---------- Chips / filters ---------- */
.s-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.s-chips::-webkit-scrollbar { display: none; }
.s-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
    border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
    font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.s-chip:hover { border-color: var(--brand); color: var(--brand); }
.s-chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.s-chip small { opacity: .65; font-weight: 500; }

.s-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0; }
.s-toolbar-count { color: var(--muted); font-size: 0.88rem; }
.s-select { height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 34px 0 12px; font-size: 0.88rem; }

.s-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.s-filter-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px; background: var(--paper-2); color: var(--ink); font-size: 0.8rem; text-decoration: none; }
.s-filter-tag:hover { color: var(--danger); }

/* ---------- Page header ---------- */
.s-page-head { padding-block: clamp(22px, 4vw, 40px) clamp(14px, 3vw, 24px); border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.s-page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3.6vw, 2.2rem); letter-spacing: 0.02em; margin: 0; }
.s-page-head p { color: var(--muted); margin: 6px 0 0; }
.s-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; list-style: none; padding: 0; }
.s-crumbs a { color: var(--muted); text-decoration: none; }
.s-crumbs a:hover { color: var(--ink); }
.s-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

/* ---------- Trust strip ---------- */
.s-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 992px) { .s-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.s-trust-item { display: flex; gap: 12px; align-items: flex-start; }
.s-trust-item i { font-size: 1.5rem; color: var(--gold); line-height: 1; margin-top: 2px; }
.s-trust-item strong { display: block; font-size: 0.92rem; }
.s-trust-item span { color: var(--muted); font-size: 0.84rem; }

/* ---------- Instagram strip ---------- */
.s-insta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 992px) { .s-insta { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
.s-insta a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-2); }
.s-insta img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.s-insta a:hover img { transform: scale(1.05); }
.s-insta a::after { content: "\F437"; font-family: bootstrap-icons; position: absolute; right: 8px; bottom: 6px; color: #fff; font-size: 1rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
@media (max-width: 991.98px) { .s-insta a:nth-child(n+7) { display: none; } }

/* ---------- Empty states, panels ---------- */
.s-empty { text-align: center; padding: clamp(40px, 8vw, 80px) 16px; }
.s-empty i { font-size: 2.2rem; color: var(--gold); }
.s-empty h2 { font-size: 1.15rem; margin: 12px 0 6px; }
.s-empty p { color: var(--muted); margin: 0 auto 18px; max-width: 420px; }
.s-panel { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(16px, 3vw, 24px); }

/* ---------- Footer ---------- */
.s-footer { background: var(--brand-deep); color: #e2d3cb; border-top: 3px solid var(--gold-bright); padding-top: clamp(36px, 6vw, 56px); margin-top: clamp(32px, 6vw, 56px); }
.s-footer a { color: #e2d3cb; text-decoration: none; }
.s-footer a:hover { color: #f0dca4; }
.s-footer h2 { color: #fff; font-size: 0.85rem; font-weight: 700; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.s-footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .s-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.s-footer-brand { font-family: var(--font-display); color: #fff; font-size: 1.3rem; letter-spacing: 0.12em; font-weight: 700; }
.s-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 0.9rem; }
.s-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding: 16px 0 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 0.8rem; color: #b9a39b; }
.s-footer-social { display: flex; gap: 10px; margin-top: 14px; }

/* Developer credit (Views/Shared/_DevCredit.cshtml) */
.dev-credit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dev-credit strong { font-weight: 600; }
.dev-credit a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; white-space: nowrap; }
.s-footer .dev-credit strong, .s-footer .dev-credit a { color: #f0dca4; }
.s-footer .dev-credit a:hover { color: #fff; }
.dev-credit-sep { opacity: .6; }
/* room under the last footer line so the floating WhatsApp button never covers it */
.s-footer-bottom { padding-bottom: 84px; }
.auth-dev-footer { text-align: center; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px)); font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line-soft); background: var(--paper); }
.auth-dev-footer strong { color: var(--ink); }
.auth-dev-footer a { color: var(--brand); }
.auth-dev-footer a:hover { color: var(--brand-hover); }
.s-footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Search dialog ---------- */
.s-search-dialog .modal-content { background: var(--paper); color: var(--ink); border: 0; border-radius: var(--radius); }
.s-search-field { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--brand); padding-bottom: 8px; }
.s-search-field input { flex: 1; border: 0; background: transparent; font-size: 1.15rem; color: var(--ink); outline: none; min-width: 0; }
.s-search-results { margin-top: 10px; max-height: 60vh; overflow-y: auto; }
.s-search-result { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.s-search-result:hover { background: var(--paper-2); color: var(--ink); }
.s-search-result img, .s-search-result .s-search-noimg { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); background: var(--paper-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.s-search-result-name { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-search-result-meta { font-size: 0.8rem; color: var(--muted); }

/* ---------- Toast ---------- */
.s-toast { background: var(--brand-deep) !important; color: #fff !important; border: 0; border-radius: var(--radius); }
.s-toast .btn-close { filter: invert(1); }
@media (max-width: 991.98px) {
    .s-toast-wrap { left: 0; right: 0; top: auto !important; bottom: calc(var(--bottom-nav-h) + 10px) !important; padding: 0 12px !important; }
    .s-toast-wrap .toast { width: 100%; }
}

/* ---------- Compare tray ---------- */
.s-compare-tray {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 1033;
    width: min(560px, calc(100% - 24px)); background: var(--card); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 10px 12px; display: flex; align-items: center; gap: 12px;
}
.s-compare-tray[hidden] { display: none !important; }
.s-compare-items { display: flex; gap: 8px; flex: 1; min-width: 0; }
.s-compare-items img, .s-compare-items .s-compare-noimg { width: 46px; height: 46px; border-radius: var(--radius-sm); object-fit: cover; background: var(--paper-2); }
@media (max-width: 991.98px) { .s-compare-tray { bottom: calc(var(--bottom-nav-h) + 10px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Forms (store pages) ---------- */
.s-field { display: grid; gap: 6px; margin-bottom: 14px; }
.s-field label { font-weight: 600; font-size: 0.86rem; }
.s-input, .s-field .form-control, .s-field .form-select {
    min-height: 44px; border-radius: var(--radius-sm) !important; border: 1px solid var(--line) !important;
    background: var(--card) !important; color: var(--ink) !important; font-size: 0.95rem;
}
.s-input:focus, .s-field .form-control:focus, .s-field .form-select:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 3px var(--brand-soft) !important; }

/* ---------- Bootstrap tweaks so older pages follow the theme ---------- */
.btn-dark { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-dark:hover, .btn-dark:focus { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn-outline-dark { color: var(--brand); border-color: var(--brand); }
.btn-outline-dark:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.text-gold { color: var(--gold) !important; }
/* Sign-in pages (Login, Register, Forgot / Reset / Set password) copy a black button style into each page; one brand look here */
.btn-auth-submit { background: var(--brand) !important; border-color: var(--brand) !important; color: var(--on-brand) !important; box-shadow: 0 4px 14px rgba(122, 31, 53, 0.22) !important; }
.btn-auth-submit:hover, .btn-auth-submit:focus { background: var(--brand-hover) !important; border-color: var(--brand-hover) !important; box-shadow: 0 6px 20px rgba(122, 31, 53, 0.3) !important; }
.auth-side-image-bg { background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%) !important; }
.auth-side-copy { max-width: 560px; }
.auth-side-kicker { color: #f0dca4; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 10px; }
.auth-side-title { font-family: var(--font-display); color: #fff !important; font-size: clamp(1.9rem, 2.6vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: 0.02em; margin: 0 0 10px; }
.auth-side-lead { color: rgba(255, 255, 255, 0.86); font-size: 1rem; line-height: 1.6; margin: 0 0 18px; }
.auth-side-points { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.auth-side-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.86); font-size: 0.92rem; line-height: 1.45; }
.auth-side-points i { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(212, 175, 55, 0.16); border: 1px solid rgba(212, 175, 55, 0.45); color: #f0dca4; font-size: 0.95rem; }
.auth-side-points strong { color: #fff; font-weight: 600; }
.auth-side-note { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; margin: 0; }
.auth-side-overlay { background: linear-gradient(to top, rgba(40, 9, 18, 0.94) 0%, rgba(40, 9, 18, 0.7) 45%, rgba(40, 9, 18, 0.15) 100%) !important; }
.modal-content { background: var(--paper); color: var(--ink); }
.dropdown-menu { background: var(--card); border-color: var(--line); }
.dropdown-item { color: var(--ink); }
.dropdown-item:hover { background: var(--paper-2); color: var(--ink); }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
