/* Open Bible Bookstore — storefront theme */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    /* Open Bible Bookstore logo palette — navy + gold */
    --color-primary: #243b5c;
    --color-primary-light: #2f5080;
    --color-primary-dark: #0f1a28;
    --color-accent: #d4a82a;
    --color-accent-light: #e4bc42;
    --color-accent-dark: #b8921f;
    --color-gold: #d4a82a;
    --color-logo-black: #0a0a0a;
    --color-bg: #f7f6f3;
    --color-bg-warm: #efede8;
    --color-surface: #ffffff;
    --color-text: #1a2332;
    --color-muted: #5c6573;
    --color-border: #e4e0d8;
    --color-border-strong: #cfc9be;
    --color-success: #166534;
    --color-success-bg: #dcfce7;
    --color-danger: #b91c1c;
    --color-danger-bg: #fee2e2;
    --color-info-bg: #dbeafe;
    --color-info: #1d4ed8;
    --color-warning-bg: #fef3c7;
    --color-warning: #b45309;
    --color-hover: #f3f4f6;
    --color-table-head: #fafafa;
    --color-table-row-hover: #fafbfc;
    --color-input-border: #d1d5db;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(15, 39, 68, 0.06);
    --shadow: 0 8px 30px rgba(15, 39, 68, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 39, 68, 0.12);
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --header-height: 72px;
    --transition: 0.2s ease;
    color-scheme: light;
}

[data-theme="dark"] {
    --color-primary: #6b8cbe;
    --color-primary-light: #8ba3c7;
    --color-primary-dark: #0a1018;
    --color-accent: #e0b84a;
    --color-accent-light: #ecc86a;
    --color-accent-dark: #c9a038;
    --color-gold: #e0b84a;
    --color-logo-black: #e8eaed;
    --color-bg: #0f1419;
    --color-bg-warm: #151b22;
    --color-surface: #1a2332;
    --color-text: #e8eaed;
    --color-muted: #9aa3b2;
    --color-border: #2a3444;
    --color-border-strong: #3d4a5c;
    --color-success: #4ade80;
    --color-success-bg: #14532d;
    --color-danger: #f87171;
    --color-danger-bg: #7f1d1d;
    --color-info-bg: #1e3a5f;
    --color-info: #93c5fd;
    --color-warning-bg: #78350f;
    --color-warning: #fbbf24;
    --color-hover: #243044;
    --color-table-head: #151b22;
    --color-table-row-hover: #1f2a3a;
    --color-input-border: #3d4a5c;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a { color: var(--color-primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: min(1200px, 100% - 2.5rem);
    margin-inline: auto;
}

.container--narrow { width: min(900px, 100% - 2.5rem); margin-inline: auto; }

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 3px solid var(--color-gold);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 0;
}

.logo:hover { text-decoration: none; opacity: 0.92; }

.logo-img {
    height: 52px;
    width: auto;
    max-width: min(240px, 55vw);
    display: block;
}

.logo-img--footer {
    height: 44px;
    filter: brightness(1.05);
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.header-search {
    flex: 1;
    max-width: 420px;
    display: none;
}

@media (min-width: 768px) {
    .header-search { display: block; }
}

.header-search-form {
    display: flex;
    position: relative;
}

.header-search-form input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.9rem;
    background: var(--color-bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.header-search-form input:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.header-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    pointer-events: none;
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
    text-decoration: none;
}

.nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    background: var(--color-gold);
    color: var(--color-primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
}

.account-menu {
    position: relative;
}

.account-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.55rem 0.28rem 0.28rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(212, 168, 42, 0.14), rgba(255, 255, 255, 0.92));
    color: var(--color-primary-dark);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.account-menu__trigger:hover,
.account-menu.is-open .account-menu__trigger {
    border-color: rgba(212, 168, 42, 0.65);
    box-shadow: 0 4px 14px rgba(15, 26, 40, 0.08);
    background:
        linear-gradient(180deg, rgba(212, 168, 42, 0.2), rgba(255, 255, 255, 0.96));
}

.account-menu__avatar {
    display: inline-grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.account-menu__label {
    max-width: 8.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu__caret {
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.15rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.7;
}

.account-menu__panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 80;
    min-width: 13.5rem;
    padding: 0.45rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: 0 16px 36px rgba(15, 26, 40, 0.14);
}

.account-menu__panel[hidden] {
    display: none !important;
}

.account-menu__greeting {
    margin: 0;
    padding: 0.45rem 0.65rem 0.55rem;
    font-size: 0.8rem;
    color: var(--color-muted);
    border-bottom: 1px solid var(--color-border);
}

.account-menu__greeting strong {
    color: var(--color-primary-dark);
}

.account-menu__panel > a,
.account-menu__logout button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.account-menu__panel > a:hover,
.account-menu__logout button:hover {
    background: var(--color-bg);
    color: var(--color-primary);
    text-decoration: none;
}

.account-menu__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: rgba(212, 168, 42, 0.22);
    color: var(--color-primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.account-menu__logout {
    margin: 0.2rem 0 0;
    padding-top: 0.2rem;
    border-top: 1px solid var(--color-border);
}

.account-menu__logout button {
    color: var(--color-muted);
}

.signed-in-note {
    margin: 0 0 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 168, 42, 0.4);
    background: linear-gradient(180deg, rgba(212, 168, 42, 0.12), rgba(255, 255, 255, 0.85));
    color: var(--color-primary-dark);
    font-size: 0.92rem;
}

.signed-in-note strong {
    font-weight: 700;
}

.mobile-nav .account-menu {
    margin: 0.35rem 0;
}

.mobile-nav .account-menu__trigger {
    width: 100%;
    justify-content: flex-start;
}

.mobile-nav .account-menu__panel {
    position: static;
    margin-top: 0.45rem;
    box-shadow: none;
}

[data-theme="dark"] .account-menu__trigger {
    background: linear-gradient(180deg, rgba(212, 168, 42, 0.16), rgba(255, 255, 255, 0.04));
    color: #f7f4ee;
}

[data-theme="dark"] .signed-in-note {
    background: linear-gradient(180deg, rgba(212, 168, 42, 0.16), rgba(255, 255, 255, 0.03));
    color: #f7f4ee;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .menu-toggle { display: none; }
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
    }

    .header-search {
        display: none;
    }
}

.mobile-nav {
    display: none;
    padding: 1rem 0 1.25rem;
    border-top: 1px solid var(--color-border);
}

.mobile-nav.is-open { display: block; }

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-text);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:last-child { border-bottom: none; }

@media (min-width: 768px) {
    .mobile-nav { display: none !important; }
}

/* Main */
main { padding: 0 0 4rem; min-height: 65vh; }

main > .container { padding-top: 2rem; }

main > .container--flush { padding-top: 0; }

/* Footer */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    max-width: 32ch;
    line-height: 1.7;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    margin: 0 0 1rem;
}

.footer-links { list-style: none; margin: 0; padding: 0; }

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Alerts */
.alert {
    padding: 0.9rem 1.15rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.alert ul { margin: 0; padding-left: 1.25rem; }

.alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border-color: #bbf7d0;
}

.alert-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border-color: #fecaca;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    line-height: 1.2;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    box-shadow: 0 4px 14px rgba(36, 59, 92, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(36, 59, 92, 0.32);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
    color: var(--color-primary-dark);
    box-shadow: 0 4px 14px rgba(212, 168, 42, 0.35);
    font-weight: 700;
}

.btn-accent:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
    background: var(--color-bg);
    text-decoration: none;
    color: var(--color-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover { background: var(--color-bg); text-decoration: none; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-block { width: 100%; }

/* Cards */
.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
}

.card--flat { box-shadow: none; }

.section-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* Hero */
.hero {
    position: relative;
    background: #152033;
    color: #fff;
    padding: 4rem 0;
    margin-bottom: 0;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-inner { grid-template-columns: 1.4fr 1fr; }
    .hero { padding: 5rem 0; }
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-lead {
    margin: 0 0 1.75rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 42ch;
    line-height: 1.7;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero .btn-primary {
    background: var(--color-surface);
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary:hover {
    background: var(--color-bg);
    color: var(--color-primary-dark);
}

.hero .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(15, 26, 40, 0.28);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero .btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(15, 26, 40, 0.45);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(15, 26, 40, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.hero-stats--two {
    grid-template-columns: repeat(2, 1fr);
}

.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-gold);
}

.hero-stat span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Shared product mosaic (home hero + shop banner + about) */
.catalogue-mosaic {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 2px;
    /* Avoid CSS filter here — Safari iOS often fails to paint filtered grids of many images. */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.catalogue-mosaic img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    display: block;
    background: #1a2332;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.catalogue-mosaic-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 65% at 35% 45%, rgba(15, 26, 40, 0.58) 0%, rgba(15, 26, 40, 0.22) 55%, transparent 75%),
        linear-gradient(180deg, rgba(15, 26, 40, 0.52) 0%, rgba(15, 26, 40, 0.68) 50%, rgba(15, 26, 40, 0.82) 100%),
        radial-gradient(ellipse at center, rgba(15, 26, 40, 0.2) 0%, rgba(15, 26, 40, 0.55) 100%);
    pointer-events: none;
}

@media (max-width: 639px) {
    .catalogue-mosaic {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-rows: repeat(8, minmax(0, 1fr));
    }

    /* Stronger on mobile — copy stacks over more of the busy mosaic */
    .catalogue-mosaic-overlay {
        background:
            radial-gradient(ellipse 90% 70% at 50% 40%, rgba(15, 26, 40, 0.72) 0%, rgba(15, 26, 40, 0.35) 55%, transparent 78%),
            linear-gradient(180deg, rgba(15, 26, 40, 0.62) 0%, rgba(15, 26, 40, 0.78) 50%, rgba(15, 26, 40, 0.88) 100%),
            radial-gradient(ellipse at center, rgba(15, 26, 40, 0.28) 0%, rgba(15, 26, 40, 0.62) 100%);
    }
}

/* Trust bar */
.trust-bar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-muted);
}

.trust-icon {
    width: 32px;
    height: 32px;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Sections */
.section { padding: 3rem 0; }

.section--alt { background: var(--color-surface); }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.section-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-primary);
}

.section-subtitle {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.section-link {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Page header */
.page-header { margin-bottom: 2rem; }

.page-header h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--color-primary);
}

.page-header p {
    margin: 0;
    color: var(--color-muted);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
}

.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }

.breadcrumbs-sep { opacity: 0.5; }

.breadcrumbs-categories {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.breadcrumbs-cat-sep {
    opacity: 0.45;
    font-weight: 600;
}

/* Category pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.15rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition);
}

.category-pill:hover {
    border-color: var(--color-gold);
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Product grid */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .grid-products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
}

@media (min-width: 1024px) {
    .grid-products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--color-border-strong);
}

.product-card-media {
    position: relative;
    flex-shrink: 0;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.product-card-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 1;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.product-card-badge--sale {
    background: var(--color-gold);
    color: var(--color-primary-dark);
}

.product-card-badge--stock {
    top: auto;
    bottom: 0.65rem;
    background: var(--color-primary);
    color: #fff;
}

.product-card-cta {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.checkout-status {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.product-buy-cues {
    margin-top: 0.65rem;
    max-width: 40ch;
}

.product-card-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-media img { transform: scale(1.03); }

.product-card-body {
    padding: 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 7.5rem;
}

.product-card h3 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.9em;
}

.product-card h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.product-card h3 a:hover { color: var(--color-primary); }

.product-card-sku {
    font-size: 0.72rem;
    color: var(--color-muted);
    letter-spacing: 0.02em;
}

.product-price {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-top: auto;
    padding-top: 0.35rem;
}

.product-price small {
    font-weight: 400;
    color: var(--color-muted);
    display: block;
    font-size: 0.72rem;
}

.product-price--sale .product-price-was {
    text-decoration: line-through;
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 400;
    margin-right: 0.35rem;
}

/* Stock badges */
.stock-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stock-in { background: var(--color-success-bg); color: var(--color-success); }
.stock-supplier { background: var(--color-info-bg); color: var(--color-info); }
.stock-backorder { background: var(--color-warning-bg); color: var(--color-warning); }
.stock-partial { background: var(--color-success-bg); color: var(--color-success); }
.stock-out { background: var(--color-danger-bg); color: var(--color-danger); }

/* Forms */
.form-group { margin-bottom: 1.15rem; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-row { display: grid; gap: 1rem; }

@media (min-width: 640px) {
    .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.orders-search-card {
    margin-bottom: 1.25rem;
}

.orders-search-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
}

.orders-search-hint {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.orders-search-empty {
    color: var(--color-muted);
}

#orders-results.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* Filters */
.filters-card { margin-bottom: 2rem; }

.filters-card .form-group:last-child { margin-bottom: 0; }

.results-meta {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* Product detail */
.product-detail {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.product-detail__main {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .product-detail__main {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }
}

.product-detail__description {
    width: 100%;
}

.product-description--full {
    margin-top: 0;
}

.product-description-empty {
    margin: 0;
}

.product-gallery {
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-gallery img {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.product-info h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-primary);
}

.product-meta {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
}

.product-buy-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.product-description {
    margin: 1.5rem 0;
    line-height: 1.75;
    color: var(--color-text);
}

.qty-input { max-width: 100px; }

.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    width: 8.5rem;
    height: 2.75rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 2px;
    background: var(--color-surface);
    overflow: hidden;
}

.qty-stepper__btn {
    flex: 0 0 2.25rem;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.qty-stepper__btn:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.qty-stepper__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.qty-stepper__input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-stepper__input:focus {
    outline: none;
}

.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-buy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.product-buy-row__qty {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.product-buy-row__action {
    flex: 1 1 10rem;
    min-width: 0;
}

.product-buy-row__action .btn {
    width: 100%;
    min-height: 2.75rem;
}

.shop-category-header {
    margin: 0 0 1.5rem;
}

.shop-category-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    color: var(--color-primary);
    line-height: 1.2;
}

.shop-category-description {
    max-width: 48rem;
    color: var(--color-text);
    line-height: 1.7;
}

.product-faq {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--color-border);
}

.product-faq__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
}

.product-faq__list {
    display: grid;
    gap: 0.65rem;
    max-width: 46rem;
}

.product-faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    padding: 0.85rem 1rem;
}

.product-faq__item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text);
    list-style: none;
}

.product-faq__item summary::-webkit-details-marker {
    display: none;
}

.product-faq__item p {
    margin: 0.65rem 0 0;
    color: var(--color-muted);
    line-height: 1.65;
}

/* Floating add-to-cart (appears when buy box scrolls out of view) */
.product-buy-float {
    position: fixed;
    z-index: 40;
    right: 1rem;
    bottom: 1rem;
    max-width: min(22rem, calc(100vw - 2rem));
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg, 0 12px 32px rgba(15, 39, 68, 0.18));
    padding: 0.9rem 1rem;
}

.product-buy-float[hidden] {
    display: none !important;
}

.product-buy-float__inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.product-buy-float__meta {
    min-width: 0;
    flex: 1;
}

.product-buy-float__title {
    margin: 0 0 0.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-buy-float__price {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.product-buy-float__price small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-muted);
    margin-left: 0.25rem;
}

.product-buy-float__price .product-price-was {
    display: none;
}

.product-buy-float .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (min-width: 900px) {
    .product-buy-float {
        right: 1.5rem;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        max-width: 16.5rem;
    }

    .product-buy-float__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .product-buy-float__title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-buy-float .btn {
        width: 100%;
    }
}

@media (max-width: 899px) {
    body.has-product-buy-float {
        padding-bottom: 5.5rem;
    }
}

/* Cart */
.cart-item {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 0.25rem;
}

.cart-item-details { flex: 1; min-width: 180px; }

.cart-item-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.cart-item-title a { color: inherit; text-decoration: none; }
.cart-item-title a:hover { color: var(--color-primary); }

.cart-item-price {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.cart-item-actions {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.cart-item-total {
    text-align: right;
    min-width: 80px;
}

.cart-item-total strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.order-summary h2 {
    margin: 0 0 1.25rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
}

.summary-dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
    font-size: 0.95rem;
}

.summary-dl dt { color: var(--color-muted); }
.summary-dl dd { margin: 0; text-align: right; font-weight: 600; }

.summary-note {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 1rem 0 1.5rem;
}

.checkout-grid { display: grid; gap: 1.5rem; }

@media (min-width: 900px) {
    .checkout-grid { grid-template-columns: 1.5fr 1fr; }
}

.order-summary { position: sticky; top: calc(var(--header-height) + 1.5rem); }

.checkout-summary-items {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.checkout-summary-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: start;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--color-border);
}

.checkout-summary-item__img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--color-bg-muted, #f3f3f3);
}

.checkout-summary-item__title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    line-height: 1.35;
}

.checkout-summary-item__title:hover {
    text-decoration: underline;
}

.checkout-summary-item__sku,
.checkout-summary-item__qty {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.checkout-summary-item__remove {
    margin: 0;
}

.checkout-summary-item__remove-btn {
    appearance: none;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-muted);
    border-radius: 6px;
    padding: 0.3rem 0.55rem;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.checkout-summary-item__remove-btn:hover {
    color: var(--color-danger, #b91c1c);
    border-color: #fecaca;
    background: #fef2f2;
}

.checkout-address-lookup {
    margin: 0 0 1.1rem;
}

.checkout-address-lookup__panel {
    margin: 0;
    padding: 0.95rem 1rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(36, 59, 92, 0.04) 0%, rgba(255, 255, 255, 0) 48%),
        var(--color-surface);
}

.checkout-address-lookup__label {
    display: block;
    margin: 0 0 0.4rem;
    font-weight: 600;
    color: var(--color-text);
}

.checkout-address-lookup__field {
    position: relative;
}

.checkout-address-lookup__input {
    padding-left: 2.35rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%235c6573' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm10 2-5.4-5.4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.8rem 50%;
    background-size: 1rem;
}

.checkout-address-lookup__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(36, 59, 92, 0.12);
}

.checkout-address-lookup__hint,
.checkout-address-lookup__status {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--color-muted);
}

.checkout-address-lookup__status {
    color: var(--color-warning);
}

.checkout-address-lookup__manual {
    display: inline-block;
    margin-top: 0.65rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-primary);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.checkout-address-lookup__manual:hover,
.checkout-address-lookup__manual:focus {
    color: var(--color-primary-light);
    outline: none;
}

.checkout-address-suggestions {
    position: absolute;
    z-index: 60;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.15rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 26, 40, 0.14);
    max-height: 17rem;
    overflow: auto;
}

.checkout-address-suggestions[hidden] {
    display: none !important;
}

.checkout-address-suggestions__item {
    display: grid;
    gap: 0.15rem;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.8rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    font: inherit;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.15s ease;
}

.checkout-address-suggestions__item:hover,
.checkout-address-suggestions__item:focus {
    background: rgba(36, 59, 92, 0.08);
    outline: none;
}

.checkout-address-suggestions__primary {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.checkout-address-suggestions__secondary {
    display: block;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--color-muted);
}

.checkout-pickup-warning {
    margin: 0 0 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 10px;
    border: 1px solid #f0c36d;
    background: linear-gradient(180deg, #fff9eb 0%, #fff4d6 100%);
    color: #6b4a12;
}

.checkout-pickup-warning__title {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #7a5210;
}

.checkout-pickup-warning__body {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.checkout-pickup-warning__body:last-of-type {
    margin-bottom: 0.75rem;
}

.checkout-pickup-warning .btn {
    margin-top: 0.15rem;
}

/* Tables */
.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th, .table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    font-weight: 600;
    background: var(--color-bg);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-pending { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-synced { background: var(--color-success-bg); color: var(--color-success); }
.badge-failed { background: var(--color-danger-bg); color: var(--color-danger); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.empty-state p {
    margin: 0 0 1.5rem;
    color: var(--color-muted);
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 2.5rem;
    list-style: none;
    padding: 0;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
}

.pagination li.active span {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.pagination li a:hover {
    border-color: var(--color-gold);
    color: var(--color-primary);
    background: var(--color-bg);
}

.pagination li.disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Checkout sections */
.checkout-section h2 {
    margin: 0 0 1.15rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Auth */
.auth-panel {
    max-width: 420px;
    margin: 0 auto;
}

.auth-panel h1 {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
    text-align: center;
    color: var(--color-primary);
}

.auth-panel .auth-footer {
    text-align: center;
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cart-bar a { color: #fff; font-weight: 600; }

@media (min-width: 768px) {
    .cart-bar { display: none; }
    body.has-cart-bar { padding-bottom: 0; }
}

@media (max-width: 767px) {
    body.has-cart-bar { padding-bottom: 60px; }
}

/* Live search dropdown */
.header-search,
.filters-card .form-group,
.mobile-nav form[data-live-search] {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 300;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 420px;
    overflow-y: auto;
}

.search-dropdown-item {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--color-border);
}

.search-dropdown-item:last-child { border-bottom: 0; }
.search-dropdown-item:hover,
.search-dropdown-item.is-active,
.search-dropdown-item[aria-selected="true"] {
    background: var(--color-bg);
}

.search-dropdown-thumb {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.search-dropdown-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.search-dropdown-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.search-dropdown-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.search-dropdown-copy strong {
    font-size: 0.92rem;
    color: var(--color-primary);
    line-height: 1.3;
}

.search-dropdown-variants,
.search-dropdown-sku {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.search-dropdown-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.search-dropdown-empty {
    padding: 1rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.search-dropdown-more {
    display: block;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    position: sticky;
    bottom: 0;
}

.search-dropdown-more:hover {
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-bg));
    text-decoration: underline;
}

/* Variant picker */
.variant-picker {
    margin: 1.25rem 0;
}

.variant-picker-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-option {
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.variant-option:hover {
    border-color: var(--color-accent);
}

.variant-option.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.variant-select {
    width: 100%;
    max-width: 28rem;
}

.product-gallery--detail {
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
    background: transparent;
    border: none;
}

.product-gallery-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: 520px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    touch-action: manipulation;
}

.product-gallery-thumbs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    width: 100%;
}

.product-gallery-thumbs[hidden] {
    display: none !important;
}

.product-gallery-thumbs__track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    flex: 1;
    min-width: 0;
    padding: 0.15rem 0;
}

.product-gallery-thumb {
    flex: 0 0 auto;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.2rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm, 4px);
    background: var(--color-surface);
    cursor: pointer;
    scroll-snap-align: start;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
}

.product-gallery-thumb:hover {
    border-color: var(--color-accent, #8b6914);
}

.product-gallery-thumb.is-active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.product-gallery-thumbs__nav {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    box-shadow: var(--shadow);
}

.product-gallery-thumbs__nav[hidden] {
    display: none !important;
}

.product-gallery-thumbs__nav:hover {
    background: var(--color-bg);
}

@media (hover: none), (pointer: coarse) {
    .product-gallery-viewport[data-inline-zoom] {
        cursor: zoom-in;
    }
}

.product-gallery-zoom-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-gallery--detail img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transform-origin: center center;
    transition: transform 0.08s ease-out;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.product-gallery-viewport.is-hover-zooming {
    cursor: crosshair;
}

.product-gallery-viewport.is-hover-zooming .product-gallery--detail img,
.product-gallery-viewport.is-hover-zooming img {
    transition: none;
}

.product-gallery-crosshair {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.product-gallery-crosshair[hidden] {
    display: none;
}

.product-gallery-crosshair__h,
.product-gallery-crosshair__v {
    position: absolute;
    background: rgba(15, 39, 68, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.product-gallery-crosshair__h {
    left: 0;
    right: 0;
    top: var(--crosshair-y, 50%);
    height: 1px;
    transform: translateY(-50%);
}

.product-gallery-crosshair__v {
    top: 0;
    bottom: 0;
    left: var(--crosshair-x, 50%);
    width: 1px;
    transform: translateX(-50%);
}

@media (hover: hover) and (pointer: fine) {
    .product-gallery-viewport[data-inline-zoom] {
        cursor: crosshair;
    }
}

.product-gallery-nav,
.product-gallery-zoom {
    position: absolute;
    z-index: 4;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.product-gallery-nav:hover,
.product-gallery-zoom:hover {
    background: var(--color-surface);
    transform: scale(1.03);
}

.product-gallery-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
}

.product-gallery-nav:hover {
    transform: translateY(-50%) scale(1.03);
}

.product-gallery-nav--prev {
    left: 0.75rem;
}

.product-gallery-nav--next {
    right: 0.75rem;
}

.product-gallery-zoom {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.1rem;
}

.product-gallery-counter {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-muted);
    font-weight: 600;
}

.product-zoom-open {
    overflow: hidden;
    touch-action: none;
}

.product-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 39, 68, 0.92);
    overscroll-behavior: none;
}

.product-zoom-modal[hidden] {
    display: none;
}

.product-zoom-chrome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 520;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) 0.75rem max(1rem, env(safe-area-inset-left, 0px));
    background: linear-gradient(180deg, rgba(15, 26, 40, 0.92), rgba(15, 26, 40, 0));
    pointer-events: none;
}

.product-zoom-chrome > * {
    pointer-events: auto;
}

.product-zoom-done {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary-dark, #0f1a28);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.product-zoom-stage {
    position: relative;
    z-index: 505;
    width: min(92vw, 1100px);
    height: min(72vh, 820px);
    max-height: calc(100dvh - 8rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.product-zoom-stage.is-zoomed {
    cursor: grab;
}

.product-zoom-stage.is-zoomed:active {
    cursor: grabbing;
}

.product-zoom-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.12s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}

.product-zoom-close {
    position: static;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.product-zoom-nav {
    position: fixed;
    z-index: 515;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.product-zoom-nav--prev {
    left: max(0.75rem, env(safe-area-inset-left, 0px));
}

.product-zoom-nav--next {
    right: max(0.75rem, env(safe-area-inset-right, 0px));
}

.product-zoom-toolbar {
    position: fixed;
    z-index: 515;
    left: 50%;
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(8px);
}

.product-zoom-control {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.product-zoom-level,
.product-zoom-counter {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 3.5rem;
    text-align: center;
}

.product-zoom-counter {
    min-width: auto;
    margin-left: 0.25rem;
}

.product-description--rich {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.product-detail__description .product-description--rich {
    padding-top: 0.25rem;
}

.product-description--rich p,
.product-description--rich ul,
.product-description--rich ol {
    margin: 0 0 1rem;
}

.product-description--rich ul,
.product-description--rich ol {
    padding-left: 1.25rem;
}

.product-description--rich img {
    max-width: 100%;
    height: auto;
}

.product-card-variants {
    display: block;
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

/* Theme toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.theme-toggle:hover {
    background: var(--color-hover);
    border-color: var(--color-border-strong);
    color: var(--color-primary);
}

.nav-links .theme-toggle {
    margin-left: 0.15rem;
}

.mobile-nav .theme-toggle {
    margin-top: 0.5rem;
    width: 100%;
    height: 2.5rem;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0 0.85rem;
    font-size: 0.95rem;
}

.mobile-nav .theme-toggle::after {
    content: attr(aria-label);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Related products */
.related-products {
    margin: 3rem 0 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.related-products-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 0 0 1.25rem;
}

.product-weight {
    margin: 0.75rem 0 0;
}

/* Category directory */
.category-children {
    margin-bottom: 2rem;
}

.section-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    margin: 0 0 0.75rem;
}

.category-directory {
    display: grid;
    gap: 1rem;
}

.category-directory-item h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.category-directory-item h2 a {
    text-decoration: none;
    color: inherit;
}

.category-directory-item h2 a:hover {
    color: var(--color-primary);
}

.category-directory-desc {
    margin: 0 0 0.85rem;
    color: var(--color-muted);
}

/* About page — home-style mosaic hero + body band */
.hero--about {
    min-height: 42vh;
    padding: 3.5rem 0;
}

.hero-inner--about {
    grid-template-columns: 1fr;
    max-width: 44rem;
}

.hero--about .about-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0 0 0.85rem;
    font-weight: 600;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero--about .catalogue-mosaic-overlay {
    background:
        radial-gradient(ellipse 75% 70% at 50% 42%, rgba(15, 26, 40, 0.62) 0%, rgba(15, 26, 40, 0.25) 55%, transparent 75%),
        linear-gradient(180deg, rgba(15, 26, 40, 0.55) 0%, rgba(15, 26, 40, 0.7) 50%, rgba(15, 26, 40, 0.84) 100%),
        radial-gradient(ellipse at center, rgba(15, 26, 40, 0.22) 0%, rgba(15, 26, 40, 0.58) 100%);
}

@media (max-width: 639px) {
    .hero--about .catalogue-mosaic-overlay {
        background:
            radial-gradient(ellipse 95% 75% at 50% 40%, rgba(15, 26, 40, 0.76) 0%, rgba(15, 26, 40, 0.38) 55%, transparent 80%),
            linear-gradient(180deg, rgba(15, 26, 40, 0.65) 0%, rgba(15, 26, 40, 0.8) 50%, rgba(15, 26, 40, 0.9) 100%),
            radial-gradient(ellipse at center, rgba(15, 26, 40, 0.3) 0%, rgba(15, 26, 40, 0.65) 100%);
    }
}

.hero--about .about-lead {
    max-width: 52ch;
    margin-bottom: 0;
}

.about-body-band {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0 3rem;
}

.about-body {
    max-width: 40rem;
}

.about-launch {
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}

.about-note {
    border-left: 4px solid var(--color-accent, var(--color-primary));
    padding: 1.15rem 1.25rem;
    background: var(--color-surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.75rem;
}

.about-note h2 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
    color: var(--color-accent, var(--color-primary));
    font-weight: 600;
}

.about-note p {
    margin: 0;
    line-height: 1.65;
    color: var(--color-muted);
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .hero--about {
        padding: 4.5rem 0;
        min-height: 48vh;
    }
}

/* Contact page — About-style mosaic hero + body band */
.hero--contact {
    min-height: 38vh;
    padding: 3.5rem 0;
}

.hero-inner--contact {
    grid-template-columns: 1fr;
    max-width: 44rem;
}

.hero--contact .contact-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0 0 0.85rem;
    font-weight: 600;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero--contact .contact-lead {
    max-width: 48ch;
    margin-bottom: 0;
}

.hero--contact .catalogue-mosaic-overlay {
    background:
        radial-gradient(ellipse 75% 70% at 50% 42%, rgba(15, 26, 40, 0.62) 0%, rgba(15, 26, 40, 0.25) 55%, transparent 75%),
        linear-gradient(180deg, rgba(15, 26, 40, 0.55) 0%, rgba(15, 26, 40, 0.7) 50%, rgba(15, 26, 40, 0.84) 100%),
        radial-gradient(ellipse at center, rgba(15, 26, 40, 0.22) 0%, rgba(15, 26, 40, 0.58) 100%);
}

@media (max-width: 639px) {
    .hero--contact .catalogue-mosaic-overlay {
        background:
            radial-gradient(ellipse 95% 75% at 50% 40%, rgba(15, 26, 40, 0.76) 0%, rgba(15, 26, 40, 0.38) 55%, transparent 80%),
            linear-gradient(180deg, rgba(15, 26, 40, 0.65) 0%, rgba(15, 26, 40, 0.8) 50%, rgba(15, 26, 40, 0.9) 100%),
            radial-gradient(ellipse at center, rgba(15, 26, 40, 0.3) 0%, rgba(15, 26, 40, 0.65) 100%);
    }
}

@media (min-width: 768px) {
    .hero--contact {
        padding: 4.5rem 0;
        min-height: 42vh;
    }
}

.contact-body-band {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0 3rem;
}

.contact-body {
    max-width: 40rem;
}

.contact-trust {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.contact-trust li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.contact-trust li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--color-gold);
}

.contact-intro-login {
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-muted);
}

.contact-intro-login a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.contact-intro-login a:hover {
    color: var(--color-primary-dark);
}

.contact-form {
    padding: 0;
    background: transparent;
}

.contact-form-header {
    margin-bottom: 1.35rem;
}

.contact-form-header h2 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--color-primary);
}

.contact-form-header p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.contact-existing-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin: 0 0 1.35rem;
    padding: 1.15rem 1.2rem;
    border-radius: 14px;
    border: 2px solid rgba(212, 168, 42, 0.55);
    background:
        radial-gradient(circle at top right, rgba(212, 168, 42, 0.18), transparent 46%),
        linear-gradient(145deg, #1a2d48 0%, var(--color-primary, #243b5c) 55%, #2a4a73 100%);
    color: #f7f4ee;
    box-shadow: 0 14px 32px rgba(15, 26, 40, 0.16);
}

.contact-existing-banner__title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
}

.contact-existing-banner__text {
    margin: 0;
    max-width: 40rem;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(247, 244, 238, 0.9);
}

.contact-existing-banner__text a {
    color: #f6e7b2;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.contact-existing-banner__text a:hover {
    color: #fff;
}

.contact-existing-banner__counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 0.7rem 0 0;
    font-size: 0.92rem;
    color: rgba(247, 244, 238, 0.82);
}

.contact-existing-banner__counts strong {
    color: #fff;
    font-size: 1.05rem;
}

.contact-existing-banner .btn-primary {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.contact-existing-banner .btn-primary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.contact-login-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.contact-login-banner[hidden] {
    display: none !important;
}

.contact-login-banner p {
    margin: 0;
    flex: 1 1 14rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--color-text);
}

.contact-login-banner strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--color-primary);
}

.contact-login-banner .btn {
    flex: 0 0 auto;
}

.contact-form-row {
    display: grid;
    gap: 0 1rem;
}

@media (min-width: 560px) {
    .contact-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-optional {
    font-weight: 400;
    color: var(--color-muted);
    font-size: 0.85em;
}

.contact-form .form-group {
    margin-bottom: 1.05rem;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.contact-form .form-control {
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.85rem;
    border-color: var(--color-input-border);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(36, 59, 92, 0.12);
    outline: none;
}

.contact-message {
    min-height: 9rem;
    resize: vertical;
}

.contact-submit {
    width: 100%;
    margin-top: 0.35rem;
}

@media (min-width: 560px) {
    .contact-submit {
        width: auto;
        min-width: 12rem;
    }
}

/* Tickets */

.ticket-thread {
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.contact-login-hint {
    margin-bottom: 1rem;
}

.contact-login-hint p {
    margin: 0;
}

.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.ticket-status {
    font-weight: 600;
    color: var(--color-primary-dark, #0f1a28);
}

.ticket-status--open {
    color: #b45309;
}

.ticket-status--pending_customer,
.ticket-status--answered {
    color: #1d4ed8;
}

.ticket-status--closed {
    color: var(--color-muted, #5c6573);
}

.ticket-order {
    color: var(--color-muted);
}

.ticket-messages {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
    padding: 1rem 0.75rem;
    border-radius: 16px;
    background: #f2f2f7;
    border: 1px solid var(--color-border);
}

[data-theme="dark"] .ticket-messages {
    background: #1c1c1e;
}

.ticket-message {
    display: flex;
    flex-direction: column;
    max-width: min(78%, 34rem);
    background: transparent;
    border: 0;
    padding: 0;
}

.ticket-message__meta {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0 0.55rem 0.28rem;
    font-size: 0.75rem;
    color: var(--color-muted);
}

.ticket-message__role {
    font-weight: 600;
}

.ticket-message__bubble {
    padding: 0.7rem 0.9rem;
    border-radius: 1.15rem;
    line-height: 1.45;
    box-shadow: 0 1px 1px rgba(15, 26, 40, 0.04);
}

.ticket-message-body {
    line-height: 1.45;
    word-wrap: break-word;
}

.ticket-message__bubble .ticket-attach-list {
    margin-top: 0.55rem;
}

/* Customer portal: you = right (blue), staff = left (gray) */
.ticket-message--customer {
    align-self: flex-end;
    align-items: flex-end;
}

.ticket-message--customer .ticket-message__meta {
    flex-direction: row-reverse;
}

.ticket-message--customer .ticket-message__bubble {
    background: #0a84ff;
    color: #fff;
    border-bottom-right-radius: 0.3rem;
}

.ticket-message--customer .ticket-message__bubble .btn {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.ticket-message--customer .ticket-message__bubble .btn:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
}

.ticket-message--customer .ticket-attach-list .btn span {
    opacity: 0.85;
}

.ticket-message--staff {
    align-self: flex-start;
    align-items: flex-start;
}

.ticket-message--staff .ticket-message__bubble {
    background: #e9e9eb;
    color: #111827;
    border-bottom-left-radius: 0.3rem;
}

/* Admin portal: staff = right (blue), customer = left (gray) */
.ticket-messages--admin .ticket-message--staff {
    align-self: flex-end;
    align-items: flex-end;
}

.ticket-messages--admin .ticket-message--staff .ticket-message__meta {
    flex-direction: row-reverse;
}

.ticket-messages--admin .ticket-message--staff .ticket-message__bubble {
    background: #0a84ff;
    color: #fff;
    border-bottom-left-radius: 1.15rem;
    border-bottom-right-radius: 0.3rem;
}

.ticket-messages--admin .ticket-message--staff .ticket-message__bubble .btn {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.ticket-messages--admin .ticket-message--customer {
    align-self: flex-start;
    align-items: flex-start;
}

.ticket-messages--admin .ticket-message--customer .ticket-message__meta {
    flex-direction: row;
}

.ticket-messages--admin .ticket-message--customer .ticket-message__bubble {
    background: #e9e9eb;
    color: #111827;
    border-bottom-right-radius: 1.15rem;
    border-bottom-left-radius: 0.3rem;
}

.ticket-messages--admin .ticket-message--customer .ticket-message__bubble .btn {
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
}

[data-theme="dark"] .ticket-message--staff .ticket-message__bubble {
    background: #3a3a3c;
    color: #f3f4f6;
}

[data-theme="dark"] .ticket-messages--admin .ticket-message--customer .ticket-message__bubble {
    background: #3a3a3c;
    color: #f3f4f6;
}

[data-theme="dark"] .ticket-messages--admin .ticket-message--customer .ticket-message__bubble .btn {
    background: #2c2c2e;
    border-color: #52525b;
    color: #f3f4f6;
}

.ticket-reply-form {
    padding: 1.25rem;
}

/* Shop category browse (icon card grid) */
.shop-breadcrumb-bar {
    background: #00adef;
    color: #fff;
    padding: 0.85rem 0;
    margin-bottom: 0;
}

.shop-abundance-banner {
    position: relative;
    overflow: hidden;
    height: 50vh;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    background: #152033;
}

.shop-abundance-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.35rem 1rem 3.5rem;
}

.shop-abundance-banner .catalogue-mosaic-overlay {
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(15, 26, 40, 0.68) 0%, rgba(15, 26, 40, 0.28) 55%, transparent 75%),
        linear-gradient(180deg, rgba(15, 26, 40, 0.55) 0%, rgba(15, 26, 40, 0.7) 50%, rgba(15, 26, 40, 0.84) 100%),
        radial-gradient(ellipse at center, rgba(15, 26, 40, 0.22) 0%, rgba(15, 26, 40, 0.58) 100%);
}

.shop-abundance-copy {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.6),
        0 2px 18px rgba(0, 0, 0, 0.55);
    letter-spacing: -0.01em;
}

@media (max-width: 639px) {
    .shop-abundance-banner .catalogue-mosaic-overlay {
        background:
            radial-gradient(ellipse 90% 60% at 50% 45%, rgba(15, 26, 40, 0.78) 0%, rgba(15, 26, 40, 0.4) 55%, transparent 80%),
            linear-gradient(180deg, rgba(15, 26, 40, 0.65) 0%, rgba(15, 26, 40, 0.8) 50%, rgba(15, 26, 40, 0.9) 100%),
            radial-gradient(ellipse at center, rgba(15, 26, 40, 0.3) 0%, rgba(15, 26, 40, 0.65) 100%);
    }

    .shop-abundance-copy {
        font-size: clamp(1.25rem, 5.5vw, 1.65rem);
        padding: 0 0.25rem;
    }
}

.shop-abundance-scroll {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    z-index: 2;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.shop-abundance-scroll:hover,
.shop-abundance-scroll:focus-visible {
    opacity: 1;
    outline: none;
}

.shop-abundance-scroll-arrow {
    display: block;
    width: 0.85rem;
    height: 0.85rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: shop-abundance-bounce 1.6s ease-in-out infinite;
}

@keyframes shop-abundance-bounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.85; }
    50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .shop-abundance-scroll-arrow {
        animation: none;
    }
}

.shop-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.shop-breadcrumb a {
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

.shop-breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.shop-breadcrumb span[aria-hidden="true"] {
    opacity: 0.7;
}

.shop-browse {
    scroll-margin-top: 1rem;
    padding-bottom: 3rem;
}

.shop-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .shop-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .shop-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.shop-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    padding: 1.75rem 1rem 1.5rem;
    min-height: 220px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.shop-category-card:hover {
    border-color: #00adef;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.shop-category-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7.5rem;
    height: 7.5rem;
    margin-bottom: 1.1rem;
    border: 2px solid #00adef;
    border-radius: 50%;
    background: color-mix(in srgb, #00adef 6%, var(--color-surface));
}

.shop-category-card-icon img {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
}

.shop-category-card-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
    line-height: 1.3;
}

.shop-category-card-count {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.shop-browse-footer {
    margin-top: 2rem;
    text-align: center;
}

.shop-products-heading {
    margin: 2.5rem 0 1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

[data-theme="dark"] .shop-breadcrumb-bar {
    background: #008fc7;
}

[data-theme="dark"] .shop-category-card-icon {
    background: color-mix(in srgb, #00adef 12%, var(--color-surface));
}

/* Product listing sort */
.listing-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1.25rem;
}
.listing-toolbar .results-meta {
    margin: 0;
}
.listing-toolbar .related-products-title {
    margin: 0;
}
.product-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.product-sort-label {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-muted);
    white-space: nowrap;
}
.product-sort-select {
    min-width: 11.5rem;
    width: auto;
}
.section-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

/* Guest cart — draw attention to save-cart card */
.cart-save-banner {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--color-accent) 45%, var(--color-border)),
        0 0 0.65rem color-mix(in srgb, var(--color-accent) 35%, transparent),
        0 0 1.4rem color-mix(in srgb, var(--color-accent) 18%, transparent);
    animation: cart-save-box-glow-pulse 2.2s ease-in-out infinite;
}

@keyframes cart-save-box-glow-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--color-accent) 35%, var(--color-border)),
            0 0 0.45rem color-mix(in srgb, var(--color-accent) 28%, transparent),
            0 0 1rem color-mix(in srgb, var(--color-accent) 12%, transparent);
    }
    50% {
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--color-accent) 70%, var(--color-border)),
            0 0 0.85rem color-mix(in srgb, var(--color-accent) 55%, transparent),
            0 0 1.75rem color-mix(in srgb, var(--color-accent-light) 40%, transparent),
            0 0 2.4rem color-mix(in srgb, var(--color-accent) 22%, transparent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-save-banner {
        animation: none;
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--color-accent) 50%, var(--color-border)),
            0 0 0.7rem color-mix(in srgb, var(--color-accent) 35%, transparent),
            0 0 1.3rem color-mix(in srgb, var(--color-accent) 18%, transparent);
    }
}

/* —— Urgent notification banner (admin System → Banner) —— */
.urgent-banner {
    --urgent-bg: #7a1f1f;
    --urgent-bg-2: #9a2b2b;
    --urgent-text: #fff8f0;
    --urgent-glow: rgba(255, 140, 60, 0.75);
    position: relative;
    z-index: 60;
    background: linear-gradient(105deg, var(--urgent-bg) 0%, var(--urgent-bg-2) 55%, #8a2424 100%);
    color: var(--urgent-text);
    border-bottom: 2px solid #ffb060;
    box-shadow:
        0 0 0 1px rgba(255, 176, 96, 0.55),
        0 0 0.85rem var(--urgent-glow),
        0 0 1.8rem rgba(255, 120, 40, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    animation: urgent-banner-glow 2.4s ease-in-out infinite;
}

.urgent-banner__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.7rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem 1rem;
}

.urgent-banner__label {
    flex: 0 0 auto;
    margin-top: 0.1rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 220, 170, 0.55);
    background: rgba(0, 0, 0, 0.22);
    color: #ffe6c2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.urgent-banner__message {
    flex: 1 1 auto;
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 500;
}

.urgent-banner__message a {
    color: #ffe08a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.urgent-banner__message a:hover {
    color: #fff;
}

.urgent-banner__message p {
    margin: 0;
}

@keyframes urgent-banner-glow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 176, 96, 0.45),
            0 0 0.6rem rgba(255, 140, 60, 0.45),
            0 0 1.4rem rgba(255, 120, 40, 0.25),
            inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 200, 120, 0.85),
            0 0 1.1rem rgba(255, 160, 70, 0.8),
            0 0 2.2rem rgba(255, 120, 40, 0.45),
            0 0 3rem rgba(255, 100, 30, 0.2),
            inset 0 -1px 0 rgba(255, 255, 255, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .urgent-banner {
        animation: none;
    }
}

[data-theme="dark"] .urgent-banner {
    --urgent-bg: #5c1515;
    --urgent-bg-2: #7a1f1f;
}

@media (max-width: 640px) {
    .urgent-banner__inner {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.75rem 1rem;
    }

    .urgent-banner__message {
        font-size: 0.9rem;
    }
}


