/* ==========================================================================
   Storefront
   ========================================================================== */

.skip-link:focus {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    background: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.section { padding: 3rem 0; }
@media (min-width: 992px) { .section { padding: 4rem 0; } }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); margin: 0; }
.section-heading p { margin: 0.25rem 0 0; color: var(--text-muted); }
.link-arrow { font-weight: 600; white-space: nowrap; }
.link-arrow .bi { transition: transform var(--transition); display: inline-block; }
.link-arrow:hover .bi { transform: translateX(3px); }

/* ---------- Announcement bar ---------- */

.topbar {
    background: var(--brand-secondary);
    color: var(--brand-on-secondary);
    font-size: 0.8125rem;
}
.topbar a { color: inherit; opacity: 0.85; }
.topbar a:hover { opacity: 1; }
.topbar .container { min-height: 2.25rem; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
}
.site-header-main { padding-top: 0.75rem; padding-bottom: 0.75rem; }
@media (min-width: 992px) { .site-header-main { padding-top: 1rem; padding-bottom: 1rem; } }

.brand-logo { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--text-color); }
.brand-logo img { max-height: 2.5rem; width: auto; }
.brand-wordmark { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.brand-wordmark .brand-mark {
    width: 2rem; height: 2rem; border-radius: 0.5rem; margin-right: 0.5rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-primary); color: var(--brand-on-primary); font-size: 1rem;
}
@media (min-width: 992px) { .brand-wordmark { font-size: 1.4rem; } }

.header-search { position: relative; flex: 1 1 auto; max-width: 42rem; }
.header-search .form-control {
    padding-left: 2.75rem;
    padding-right: 6.5rem;
    height: 2.875rem;
    background: var(--surface-muted);
    border-color: transparent;
    border-radius: var(--brand-btn-radius);
}
.header-search .form-control:focus { background: var(--surface); border-color: var(--brand-primary); }
.header-search .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.header-search .btn { position: absolute; right: 0.3125rem; top: 0.3125rem; bottom: 0.3125rem; --bs-btn-padding-y: 0; }

.header-action {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--text-color); font-weight: 600; font-size: 0.875rem;
    padding: 0.5rem; border-radius: var(--radius-sm); background: none; border: 0;
    position: relative;
}
.header-action:hover, .header-action:focus-visible { color: var(--brand-primary); background: var(--surface-muted); }
.header-action .bi { font-size: 1.375rem; line-height: 1; }
.header-action .action-label { display: none; flex-direction: column; line-height: 1.15; text-align: left; }
.header-action .action-label small { font-weight: 500; font-size: 0.75rem; color: var(--text-muted); }
@media (min-width: 1200px) { .header-action .action-label { display: flex; } }
.cart-count {
    position: absolute; top: 0.125rem; left: 1.5rem;
    min-width: 1.125rem; height: 1.125rem; padding: 0 0.3rem; border-radius: 1rem;
    background: var(--brand-primary); color: var(--brand-on-primary);
    font-size: 0.6875rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

.category-nav { border-top: 1px solid var(--border-color); }
.category-nav .nav-link {
    color: var(--text-color); font-weight: 600; font-size: 0.9rem;
    padding: 0.75rem 0.875rem; display: flex; align-items: center; gap: 0.375rem; white-space: nowrap;
}
/* Many top-level categories: tighten spacing so the bar stays on one line. */
.category-nav .nav { flex-wrap: nowrap; }
@media (max-width: 1399.98px) { .category-nav .nav-link { padding-left: 0.6rem; padding-right: 0.6rem; font-size: 0.85rem; } }
@media (max-width: 1199.98px) { .category-nav .nav-link { padding-left: 0.45rem; padding-right: 0.45rem; font-size: 0.8rem; } }
.category-nav .nav-link:hover, .category-nav .nav-link.active, .category-nav .show > .nav-link { color: var(--brand-primary); }
.category-nav .nav-item:first-child .nav-link { padding-left: 0; }
.category-nav .dropdown-menu { margin-top: 0 !important; min-width: 14rem; }

/* Dark header variant (Theme → Header style) */
.header-dark .site-header { background: var(--brand-secondary); border-bottom-color: transparent; }
.header-dark .site-header .brand-logo,
.header-dark .site-header .header-action,
.header-dark .site-header .category-nav .nav-link { color: var(--brand-on-secondary); }
.header-dark .site-header .header-action:hover { background: rgba(255, 255, 255, 0.08); color: var(--brand-on-secondary); }
.header-dark .site-header .header-action .action-label small { color: rgba(255, 255, 255, 0.6); }
.header-dark .site-header .category-nav { border-top-color: rgba(255, 255, 255, 0.1); }
.header-dark .site-header .category-nav .nav-link:hover { color: #fff; opacity: 0.8; }
.header-dark .site-header .header-search .form-control { background: rgba(255, 255, 255, 0.95); }
.header-dark .topbar { background: var(--brand-primary); color: var(--brand-on-primary); }

/* Mobile menu */
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--border-color); }
.mobile-menu .list-group-item { border-left: 0; border-right: 0; padding: 0.875rem 1.25rem; font-weight: 600; }
.mobile-menu .submenu .list-group-item { padding-left: 2.25rem; font-weight: 500; }

/* ---------- Hero ---------- */

.hero { padding: 1rem 0 0; }
@media (min-width: 992px) { .hero { padding-top: 1.5rem; } }
.hero-slide {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(60% 90% at 85% 10%, rgba(var(--brand-primary-rgb), 0.55) 0%, rgba(var(--brand-primary-rgb), 0) 70%),
        radial-gradient(45% 70% at 10% 110%, rgba(var(--brand-primary-rgb), 0.28) 0%, rgba(var(--brand-primary-rgb), 0) 70%),
        var(--brand-secondary);
    color: var(--brand-on-secondary);
    min-height: 20rem;
    display: flex;
    align-items: center;
    isolation: isolate;
}
/* Fine grid texture for depth. */
.hero-slide::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(80% 90% at 70% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(80% 90% at 70% 40%, #000 20%, transparent 75%);
}
@media (min-width: 992px) { .hero-slide { min-height: 28rem; } }

/* Split layout: text left, image / video / illustration right. */
.hero-slide.is-split { display: grid; grid-template-columns: 1fr; align-items: stretch; }
.hero-slide.is-split .hero-content { max-width: none; align-self: center; }
.hero-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 0 1.25rem 4.5rem; }
.hero-art-svg { width: 100%; max-width: 30rem; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }
.hero-visual.has-media { padding: 0 1rem 4.5rem; }
.hero-visual-img, .hero-video {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
    border-radius: calc(var(--radius-lg) - 0.25rem);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}
@media (min-width: 768px) {
    .hero-slide.is-split { grid-template-columns: 1.05fr 1fr; }
    .hero-visual { padding: 2.5rem 2.5rem 4.5rem 0; }
    .hero-visual.has-media { padding: 1.75rem 1.75rem 4.5rem 0; }
    .hero-visual-img, .hero-video { aspect-ratio: auto; height: 100%; min-height: 20rem; max-height: 26rem; }
}
@media (min-width: 992px) { .hero-visual, .hero-visual.has-media { padding-bottom: 1.75rem; } }
@media (prefers-reduced-motion: no-preference) {
    .hero-art-float { animation: hero-float 6s ease-in-out infinite; }
    .hero-art-float-2 { animation-delay: -3s; }
    .carousel-item.active .hero-content > * { animation: hero-rise 0.7s cubic-bezier(.2, .7, .2, 1) both; }
    .carousel-item.active .hero-content > *:nth-child(2) { animation-delay: 0.06s; }
    .carousel-item.active .hero-content > *:nth-child(3) { animation-delay: 0.12s; }
    .carousel-item.active .hero-content > *:nth-child(4) { animation-delay: 0.18s; }
}
@keyframes hero-float { 50% { transform: translateY(-8px); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* All slides share the tallest slide's height, so the page never jumps. */
.hero .carousel-inner { display: grid; }
.hero .carousel-item { display: block; grid-area: 1 / 1; margin-right: 0; }
.hero .carousel-item:not(.active, .carousel-item-next, .carousel-item-prev) { visibility: hidden; pointer-events: none; }
.hero .carousel-item > .hero-slide { height: 100%; }

/* Controls bar: dots and arrows together at the bottom-left, under the text (never over the media). */
.hero-controls {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
    padding: 0 1.5rem 1.25rem; pointer-events: none;
}
@media (min-width: 768px) {
    .hero-controls { justify-content: flex-start; right: auto; width: 51%; padding: 0 3.5rem 1.75rem; }
    .hero-visual, .hero-visual.has-media { padding-bottom: 1.75rem !important; }
}
.hero-controls > * { pointer-events: auto; }
.hero .hero-dots { position: static; margin: 0; justify-content: flex-start; gap: 0.375rem; }
.hero .hero-dots [data-bs-target] {
    width: 0.5rem; height: 0.5rem; border-radius: 1rem; margin: 0; border: 0; opacity: 0.45;
    background: #fff; transition: width 0.3s, opacity 0.3s;
}
.hero .hero-dots .active { width: 1.75rem; opacity: 1; }
.hero-arrows { display: flex; gap: 0.5rem; }
.hero-arrow {
    width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08); color: #fff; display: inline-flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px); transition: background var(--transition), border-color var(--transition);
}
.hero-arrow:hover, .hero-arrow:focus-visible { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.45); }
.hero-cta { box-shadow: 0 12px 30px -10px rgba(var(--brand-primary-rgb), 0.9); }
.hero-eyebrow-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--brand-primary); box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.35); }
.hero-slide .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.has-image::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(var(--brand-secondary-rgb), 0.92) 0%, rgba(var(--brand-secondary-rgb), 0.55) 55%, rgba(var(--brand-secondary-rgb), 0.1) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 2.5rem 1.5rem 1.5rem; max-width: 38rem; }
.hero-slide:not(.is-split) .hero-content { padding-bottom: 4.5rem; }
@media (min-width: 768px) { .hero-content { padding: 3.5rem 3.5rem 5rem; } }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.375rem 0.75rem; border-radius: 50rem;
    background: rgba(255, 255, 255, 0.12); font-size: 0.8125rem; font-weight: 600; margin-bottom: 1rem;
}
.hero-title { color: inherit; font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.hero-subtitle { font-size: 1.0625rem; opacity: 0.82; margin: 1rem 0 1.75rem; max-width: 32rem; }
.hero-art {
    position: absolute; right: -2rem; bottom: -3rem; z-index: 1;
    font-size: 18rem; line-height: 1; color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
@media (max-width: 767.98px) { .hero-art { font-size: 11rem; right: -1.5rem; bottom: -2rem; } }

/* ---------- Value props ---------- */

.value-props { padding: 1.5rem 0 0; }
.value-prop {
    display: flex; gap: 0.875rem; align-items: flex-start; height: 100%;
    padding: 1rem; border: 1px solid var(--border-color); border-radius: var(--radius);
    background: var(--surface);
}
.value-prop-icon {
    flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-primary-soft); color: var(--brand-primary); font-size: 1.25rem;
}
.value-prop h3 { font-size: 0.9375rem; margin: 0 0 0.125rem; }
.value-prop p { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }

/* ---------- Category tiles ---------- */

.category-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
    height: 100%; padding: 1.5rem 1rem; text-align: center;
    background: var(--surface-muted); border: 1px solid transparent; border-radius: var(--radius);
    color: var(--text-color); font-weight: 600;
    transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}
.category-tile:hover { background: var(--surface); border-color: var(--brand-primary); box-shadow: var(--shadow); color: var(--brand-primary); }
.category-tile-icon {
    width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--surface);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}
.category-tile img { width: 4rem; height: 4rem; object-fit: contain; }

/* ---------- Product card ---------- */

.product-grid { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
@media (min-width: 992px) { .product-grid { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; } }

.product-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card-media {
    position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-muted); overflow: hidden;
}
.product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; mix-blend-mode: multiply; }
.product-card-badges { position: absolute; top: 0.625rem; left: 0.625rem; right: 0.625rem; display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; z-index: 1; }
.product-card-badges .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 0.875rem; }
@media (min-width: 768px) { .product-card-body { padding: 1rem 1.125rem 1.125rem; } }
.product-card-brand { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.product-card-title {
    font-size: 0.9375rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.5rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.product-card-title a { color: var(--text-color); }
.product-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.product-card-title a:hover { color: var(--brand-primary); }
.product-card-footer { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 0.5rem; }
.product-card-footer form, .product-card-footer .btn { position: relative; z-index: 1; }
.product-card-stock { font-size: 0.75rem; margin-top: 0.25rem; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.375rem 0.5rem; }
.price-current { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--text-color); }
.price-compare { color: var(--text-muted); text-decoration: line-through; font-size: 0.8125rem; }
.price-save { color: var(--brand-accent); font-weight: 700; font-size: 0.8125rem; }
.price-lg .price-current { font-size: 1.875rem; }
.price-lg .price-compare { font-size: 1rem; }
.price-lg .price-save { font-size: 0.9375rem; }

.badge-condition { background: var(--brand-secondary); color: var(--brand-on-secondary); }
.badge-discount { background: var(--brand-accent); color: #fff; }

/* ---------- Listing ---------- */

.page-header { padding: 1.5rem 0 1rem; }
.page-header h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); margin: 0; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--text-muted); --bs-breadcrumb-item-active-color: var(--text-muted); font-size: 0.8125rem; margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-primary); }

.filter-panel .filter-group + .filter-group { border-top: 1px solid var(--border-color); padding-top: 1.25rem; margin-top: 1.25rem; }
.filter-panel h2 { font-size: 0.875rem; margin-bottom: 0.75rem; }
.chip {
    display: inline-flex; align-items: center; padding: 0.375rem 0.875rem; border-radius: 50rem;
    border: 1px solid var(--border-color); color: var(--text-color); font-size: 0.875rem; font-weight: 500; background: var(--surface);
}
.chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ---------- Product page ---------- */

.gallery-main {
    aspect-ratio: 1 / 1; background: var(--surface-muted); border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
@media (min-width: 992px) { .gallery-main { aspect-ratio: 5 / 4; } }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; mix-blend-mode: multiply; }
.gallery-thumbs { display: flex; gap: 0.625rem; overflow-x: auto; padding: 0.75rem 0 0.25rem; }
.gallery-thumb {
    flex: 0 0 4.5rem; height: 4.5rem; padding: 0.25rem; border-radius: var(--radius-sm);
    border: 2px solid transparent; background: var(--surface-muted); cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--brand-primary); }

.product-summary h1 { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); line-height: 1.2; }
.product-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.875rem; color: var(--text-muted); }
.buy-box { border: 1px solid var(--border-color); border-radius: var(--radius); padding: 1.25rem; background: var(--surface); }
.qty-input { max-width: 7rem; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.625rem; font-size: 0.875rem; }
.trust-list .bi { color: var(--brand-primary); margin-right: 0.5rem; }

.spec-table { margin: 0; }
.spec-table th { width: 40%; font-weight: 600; color: var(--text-muted); background: var(--surface-muted); }
.spec-table th, .spec-table td { padding: 0.75rem 1rem; font-size: 0.9rem; }

.prose { line-height: 1.75; color: #334155; }
.prose h2, .prose h3 { margin-top: 1.75rem; }
.prose img { border-radius: var(--radius); }

/* ---------- Cart ---------- */

.cart-item { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border-color); }
@media (min-width: 768px) { .cart-item { grid-template-columns: 6.5rem 1fr auto; align-items: center; } }
.cart-item-media { aspect-ratio: 1 / 1; background: var(--surface-muted); border-radius: var(--radius-sm); overflow: hidden; }
.cart-item-media img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; mix-blend-mode: multiply; }
.cart-item-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (min-width: 768px) { .cart-item-actions { grid-column: auto; justify-content: flex-end; } }
.summary-card { position: sticky; top: 9rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.375rem 0; }

/* ---------- Auth & account ---------- */

.auth-wrapper { padding: 2.5rem 0 4rem; }
.auth-card { max-width: 28rem; margin: 0 auto; }
.auth-card .card-body { padding: 2rem; }
@media (min-width: 576px) { .auth-card .card-body { padding: 2.5rem; } }

.account-nav .list-group-item { border: 0; border-radius: var(--radius-sm) !important; font-weight: 500; padding: 0.625rem 0.875rem; color: var(--text-color); }
.account-nav .list-group-item .bi { width: 1.5rem; display: inline-block; color: var(--text-muted); }
.account-nav .list-group-item.active { background: var(--brand-primary-soft); color: var(--brand-primary); }
.account-nav .list-group-item.active .bi { color: var(--brand-primary); }
.account-nav .list-group-item:hover:not(.active) { background: var(--surface-muted); }

/* ---------- Footer ---------- */

.site-footer { margin-top: 4rem; font-size: 0.9rem; }
.site-footer .footer-main { padding-top: 3rem; padding-bottom: 2rem; }
.site-footer h2 { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.625rem; }
.site-footer .footer-bottom { padding: 1.25rem 0; font-size: 0.8125rem; }
.social-links { display: flex; gap: 0.5rem; }
.social-links a {
    width: 2.25rem; height: 2.25rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; transition: background-color var(--transition);
}

.footer-dark .site-footer { background: var(--brand-secondary); color: rgba(255, 255, 255, 0.72); }
.footer-dark .site-footer h2, .footer-dark .site-footer .brand-logo { color: #fff; }
.footer-dark .site-footer a { color: rgba(255, 255, 255, 0.72); }
.footer-dark .site-footer a:hover { color: #fff; }
.footer-dark .site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-dark .social-links a { background: rgba(255, 255, 255, 0.08); }
.footer-dark .social-links a:hover { background: var(--brand-primary); color: var(--brand-on-primary); }

.footer-light .site-footer { background: var(--surface-muted); color: var(--text-muted); border-top: 1px solid var(--border-color); }
.footer-light .site-footer a { color: var(--text-muted); }
.footer-light .site-footer a:hover { color: var(--brand-primary); }
.footer-light .site-footer .footer-bottom { border-top: 1px solid var(--border-color); }
.footer-light .social-links a { background: var(--surface); border: 1px solid var(--border-color); }
.footer-light .social-links a:hover { background: var(--brand-primary); color: var(--brand-on-primary); border-color: var(--brand-primary); }

/* Staff preview banner while maintenance mode is on */
.maintenance-preview { background: #fef3c7; color: #78350f; text-align: center; font-size: .8125rem; font-weight: 600; padding: .375rem 1rem; }
.maintenance-preview a { color: inherit; text-decoration: underline; margin-left: .5rem; }

/* ---------- Account ---------- */

.account-tile { color: var(--text-color); transition: box-shadow .15s, transform .15s; }
.account-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.account-tile .bi { font-size: 1.25rem; color: var(--brand-primary); }
.account-tile-count { font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-top: .25rem; }
.account-tile-label { font-size: .85rem; color: var(--text-muted); }
.address-card.is-default { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }
.address-card address { line-height: 1.5; }

/* ---------- Catalog: product card ---------- */

.product-card { position: relative; }
.product-card.is-out-of-stock .product-card-media img { opacity: .55; }
.badge-new { background: var(--brand-primary); color: var(--brand-on-primary, #fff); }
.badge-best { background: #f59e0b; color: #1f2937; }
.product-card-actions { position: absolute; top: .625rem; right: .625rem; z-index: 2; display: flex; flex-direction: column; gap: .375rem; }
.card-icon-btn {
    width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--border-color); background: rgba(255, 255, 255, .92);
    display: inline-flex; align-items: center; justify-content: center; color: var(--text-color); transition: color .15s, border-color .15s, transform .15s;
}
.card-icon-btn:hover { color: var(--brand-accent); border-color: var(--brand-accent); transform: scale(1.06); }
.card-icon-btn.is-active { color: #e11d48; border-color: #fecdd3; }
.product-card-rating { font-size: .8rem; margin-bottom: .375rem; }
.product-card-rating .bi { color: #f59e0b; }
.product-card-stock.is-in { color: #15803d; }
.product-card-stock.is-low { color: #b45309; font-weight: 600; }
.product-card-stock.is-out { color: #b91c1c; font-weight: 600; }
.product-card-view { white-space: nowrap; }
@media (max-width: 575.98px) {
    .product-card-footer { flex-direction: column; align-items: stretch; }
    .product-card-footer form .btn, .product-card-view { width: 100%; }
}

/* ---------- Catalog: listing & filters ---------- */

.category-header h1 { margin-bottom: 0; }
.subcategory-nav { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .25rem; scroll-snap-type: x proximity; }
.subcategory-tile {
    flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: .625rem; padding: .5rem .875rem .5rem .5rem;
    border: 1px solid var(--border-color); border-radius: 999px; background: var(--surface); color: var(--text-color); font-weight: 600; font-size: .9rem;
}
.subcategory-tile:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.subcategory-icon { width: 2rem; height: 2rem; border-radius: 50%; overflow: hidden; background: var(--brand-primary-soft); color: var(--brand-primary); display: inline-flex; align-items: center; justify-content: center; }
.subcategory-icon img { width: 100%; height: 100%; object-fit: cover; }
.subcategory-count { font-size: .75rem; font-weight: 600; color: var(--text-muted); background: var(--surface-muted); border-radius: 999px; padding: .05rem .5rem; }

.listing-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.listing-count { color: var(--text-muted); font-size: .875rem; }
.listing-toolbar .form-select { min-width: 11rem; }

.filter-card .card-body { padding: 1.25rem; }
.filter-panel .filter-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-panel .filter-group + .filter-group { border-top: 1px solid var(--border-color); padding-top: 1.125rem; margin-top: 1.125rem; }
.filter-panel legend { font-size: .875rem; font-weight: 700; margin-bottom: .625rem; float: none; }
.filter-options .form-check { margin-bottom: .375rem; }
.filter-options.is-scroll { max-height: 13rem; overflow-y: auto; padding-right: .25rem; }
.facet-count { color: var(--text-muted); font-size: .75rem; margin-left: .125rem; }
.facet-count::before { content: "("; }
.facet-count::after { content: ")"; }
.filter-actions { background: var(--surface); padding-top: 1rem; margin-top: 1rem; }
@media (max-width: 991.98px) { .filter-actions { position: sticky; bottom: 0; background: var(--surface-muted); padding-bottom: .5rem; } }

.filters-offcanvas.offcanvas-lg { --bs-offcanvas-width: min(22rem, 88vw); }
@media (max-width: 991.98px) {
    .filters-offcanvas .offcanvas-body { background: var(--surface-muted); }
    .filters-offcanvas .filter-card { border: 0; box-shadow: none; }
}
@media (min-width: 992px) {
    .filters-offcanvas .offcanvas-header { display: none; }
    .filters-offcanvas .offcanvas-body { padding: 0; overflow: visible; }
}

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.filter-chip {
    display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .5rem .25rem .75rem; border-radius: 999px; font-size: .8125rem; font-weight: 600;
    background: var(--brand-primary-soft); color: var(--brand-primary);
}
.filter-chip:hover { background: var(--brand-primary); color: var(--brand-on-primary, #fff); }
.category-description { max-width: 60rem; }
.search-empty { max-width: 44rem; }

/* ---------- Catalog: product page ---------- */

.gallery-main { position: relative; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, .92); display: inline-flex; align-items: center; justify-content: center; color: var(--text-color);
}
.gallery-nav:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.gallery-prev { left: .75rem; }
.gallery-next { right: .75rem; }
.product-brand { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-primary); margin-bottom: .25rem; }
.product-rating .bi { color: #f59e0b; }

.variant-axis { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.variant-axis legend { font-size: .9rem; font-weight: 700; margin-bottom: .5rem; float: none; }
.variant-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-option {
    cursor: pointer; padding: .5rem .875rem; min-width: 3.25rem; text-align: center; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm);
    font-weight: 600; font-size: .9rem; background: var(--surface); transition: border-color .15s, background-color .15s;
}
.variant-option:hover { border-color: var(--brand-primary); }
.btn-check:checked + .variant-option { border-color: var(--brand-primary); background: var(--brand-primary-soft); color: var(--brand-primary); }
.btn-check:focus-visible + .variant-option { box-shadow: 0 0 0 .2rem rgba(var(--brand-primary-rgb), .25); }
.variant-option.is-sold-out { color: var(--text-muted); text-decoration: line-through; }
.variant-option.is-unavailable { opacity: .45; border-style: dashed; }

.stock-status { font-weight: 600; font-size: .9rem; color: #15803d; margin-bottom: 1rem; }
.stock-status.is-low { color: #b45309; }
.stock-status.is-out { color: #b91c1c; }
.buy-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 575.98px) {
    .buy-actions .btn { flex: 1 1 100%; }
    .buy-actions .qty-input { max-width: none; flex: 1 1 100%; }
}
.wishlist-link { font-weight: 600; text-decoration: none; color: var(--text-color); }
.wishlist-link.is-active, .wishlist-link.is-active .bi { color: #e11d48; }
.trust-list li { display: flex; align-items: flex-start; }

.product-tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--border-color); margin-bottom: 1.5rem; overflow-x: auto; }
.product-tabs a { padding: .75rem 0; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.product-tabs a:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.product-section { scroll-margin-top: 1rem; margin-bottom: 2rem; }
.info-list { display: grid; grid-template-columns: minmax(6rem, auto) 1fr; gap: .5rem 1.25rem; }
.info-list dt { font-weight: 600; }
.info-list dd { margin: 0; color: var(--text-muted); }
@media (max-width: 575.98px) { .info-list { grid-template-columns: 1fr; } .info-list dd { margin-bottom: .5rem; } }
@media (max-width: 767.98px) { .product-gallery .gallery-main { max-height: 70vh; } }
@media (min-width: 768px) { .product-gallery { position: sticky; top: 1rem; } }

/* ---------- Cart ---------- */

.cart-line { display: grid; grid-template-columns: 6rem 1fr auto auto; gap: 1rem 1.25rem; align-items: start; padding: 1.25rem; border-bottom: 1px solid var(--border-color); }
.cart-line:last-child { border-bottom: 0; }
.cart-line-media { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--surface-muted); overflow: hidden; }
.cart-line-media img { width: 100%; height: 100%; object-fit: contain; padding: .375rem; mix-blend-mode: multiply; }
.cart-line-title { display: block; font-weight: 600; color: var(--text-color); margin-bottom: .25rem; }
.cart-line-title:hover { color: var(--brand-primary); }
.cart-line-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .375rem; margin-top: .375rem; }
.cart-line-total { text-align: right; min-width: 7rem; }
.cart-line-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: .5rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.qty-stepper .btn { border: 0; border-radius: 0; padding: .375rem .625rem; }
.qty-stepper .btn:disabled { opacity: .35; }
.qty-stepper input { width: 3rem; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 767.98px) {
    .cart-line { grid-template-columns: 5rem 1fr; padding: 1rem; }
    .cart-line-qty { grid-column: 2; }
    .cart-line-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; border-top: 1px dashed var(--border-color); padding-top: .75rem; }
    .cart-line-actions { margin-top: 0; }
}
.summary-card { position: sticky; top: 1rem; }
.summary-list { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0; font-size: .925rem; }
.summary-list dt { font-weight: 500; }
.summary-list dd { margin: 0; text-align: right; font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 800; border-top: 1px solid var(--border-color); margin-top: 1rem; padding-top: 1rem; }
.applied-coupon { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .625rem .75rem; border: 1px dashed var(--brand-primary); border-radius: var(--radius-sm); background: var(--brand-primary-soft); }
.cart-mobile-bar { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.5rem calc(var(--bs-gutter-x, 1.5rem) * -.5) 0; padding: .75rem calc(var(--bs-gutter-x, 1.5rem) * .5); background: var(--surface); border-top: 1px solid var(--border-color); box-shadow: 0 -4px 16px rgba(15, 23, 42, .06); }
.cart-line-actions .btn { white-space: nowrap; }
@media (max-width: 767.98px) {
    .cart-line-total { flex-wrap: wrap; row-gap: .25rem; }
    .cart-line-total > .small { order: 2; flex-basis: 100%; }
    .cart-line-actions { order: 1; gap: 1rem; }
}

/* ---------- Checkout ---------- */

.checkout-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: step; flex-wrap: wrap; }
.checkout-steps li { counter-increment: step; display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--text-muted); }
.checkout-steps li::before { content: counter(step); width: 1.625rem; height: 1.625rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-muted); border: 1px solid var(--border-color); font-size: .75rem; }
.checkout-steps li + li::after { order: -1; content: ""; width: 1.5rem; height: 1px; background: var(--border-color); }
.checkout-steps li.is-done::before { content: "✓"; background: #dcfce7; border-color: #bbf7d0; color: #15803d; }
.checkout-steps li.is-current { color: var(--text-color); }
.checkout-steps li.is-current::before { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-on-primary, #fff); }
.checkout-steps a { color: inherit; }
.checkout-section-title { display: flex; align-items: center; gap: .625rem; font-size: 1.125rem; margin-bottom: 1rem; }
.checkout-section-title span { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--brand-primary-soft); color: var(--brand-primary); display: inline-flex; align-items: center; justify-content: center; font-size: .875rem; }
.address-options { display: grid; gap: .625rem; }
.address-option { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background-color .15s; }
.address-option:hover { border-color: var(--brand-primary); }
.address-option:has(input:checked) { border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.address-option input { margin-top: .3rem; accent-color: var(--brand-primary); }
.business-details summary { cursor: pointer; color: var(--brand-primary); }
.summary-items li { display: grid; grid-template-columns: 3rem 1fr auto; gap: .75rem; align-items: center; padding: .75rem 1.25rem; border-bottom: 1px solid var(--border-color); font-size: .875rem; }
.summary-item-media { position: relative; width: 3rem; height: 3rem; border-radius: var(--radius-sm); background: var(--surface-muted); }
.summary-item-media img { width: 100%; height: 100%; object-fit: contain; padding: .25rem; mix-blend-mode: multiply; }
.summary-qty { position: absolute; top: -.4rem; right: -.4rem; min-width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--text-color); color: #fff; font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 .3rem; }
.summary-item-price { font-weight: 600; white-space: nowrap; }
.summary-list .summary-tax { color: var(--text-muted); font-size: .85rem; }
.review-block h2 { margin-bottom: .5rem; }
.review-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.order-confirmation { max-width: 40rem; margin: 2rem auto; }
.confirmation-icon { width: 4rem; height: 4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1rem; }
.confirmation-icon.is-success { background: #dcfce7; color: #15803d; }
.confirmation-icon.is-pending { background: #fef3c7; color: #b45309; }
.payment-card { max-width: 32rem; margin: 2rem auto; }

/* ---------- Orders ---------- */

.order-progress { display: flex; list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: step; }
.order-progress li { flex: 1; position: relative; text-align: center; font-size: .75rem; color: var(--text-muted); }
.order-progress li::before { content: ""; position: absolute; top: .75rem; left: -50%; width: 100%; height: 3px; background: var(--border-color, #e5e7eb); z-index: 0; }
.order-progress li:first-child::before { display: none; }
.order-progress li.is-done::before, .order-progress li.is-current::before { background: var(--brand-primary); }
.order-progress-dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface, #fff); border: 3px solid var(--border-color, #e5e7eb); color: #fff; }
.order-progress li.is-done .order-progress-dot { background: var(--brand-primary); border-color: var(--brand-primary); }
.order-progress li.is-current .order-progress-dot { border-color: var(--brand-primary); }
.order-progress li.is-current { color: var(--text-color, inherit); font-weight: 600; }
.order-progress-label { display: block; margin-top: .35rem; line-height: 1.2; }
@media (max-width: 575.98px) { .order-progress-label { font-size: .625rem; } .order-progress li:not(.is-current) .order-progress-label { visibility: hidden; } }
.order-updates li { padding: .75rem 1rem; border-bottom: 1px solid var(--border-color, #e5e7eb); }
.order-updates li:last-child { border-bottom: 0; }
.shipment-block + .shipment-block { border-top: 1px solid var(--border-color, #e5e7eb); margin-top: 1rem; padding-top: 1rem; }
.tracking-timeline { list-style: none; padding: 0 0 0 1rem; border-left: 2px solid var(--border-color, #e5e7eb); }
.tracking-timeline li { position: relative; padding: 0 0 .75rem .75rem; }
.tracking-timeline li::before { content: ""; position: absolute; left: -1.4rem; top: .3rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--border-color, #d1d5db); }
.tracking-timeline li.is-latest::before { background: var(--brand-primary); }

/* ---------- Homepage builder sections ---------- */

.home-section + .home-section.section-bg-default { padding-top: 0; }
.section-bg-muted { background: var(--surface-muted, #f5f7fa); }
.section-bg-dark { background: var(--brand-secondary); color: rgba(255, 255, 255, 0.85); }
.section-bg-dark .section-heading h2, .section-bg-dark h2, .section-bg-dark h3 { color: #fff; }
.section-bg-dark .section-heading p, .section-bg-dark .text-muted { color: rgba(255, 255, 255, 0.7) !important; }
.section-bg-dark a:not(.btn) { color: #fff; }
.section-bg-brand { background: var(--brand-primary); color: var(--brand-on-primary); }
.section-bg-brand .section-heading h2, .section-bg-brand .section-heading p, .section-bg-brand h2, .section-bg-brand .text-muted, .section-bg-brand a:not(.btn) { color: var(--brand-on-primary) !important; }

.promo-banner {
    position: relative; display: flex; align-items: end; min-height: 11rem; height: 100%;
    border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    isolation: isolate;
}
.promo-banner picture, .promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo-banner:not(.is-text)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 70%); }
.promo-banner-body { display: grid; gap: 0.25rem; padding: 1.25rem 1.5rem; }
.promo-eyebrow { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.promo-title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.promo-subtitle { font-size: 0.875rem; opacity: 0.9; }
.promo-cta { font-weight: 600; font-size: 0.875rem; margin-top: 0.25rem; }
.promo-banner:hover .promo-cta .bi { transform: translateX(3px); }
.promo-cta .bi { display: inline-block; transition: transform var(--transition); }
a.promo-banner:hover { color: #fff; }

.brand-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.75rem; margin: 0; }
.brand-chip {
    display: flex; align-items: center; justify-content: center; height: 4.5rem; padding: 0.75rem 1rem;
    background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius);
    color: var(--text-color); font-weight: 700; text-decoration: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.brand-chip:hover, .brand-chip:focus-visible { border-color: var(--brand-primary); box-shadow: var(--shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.06)); }
.brand-chip img { max-height: 2.5rem; max-width: 100%; width: auto; object-fit: contain; }

.testimonial { border: 1px solid var(--border-color); }
.testimonial blockquote p { font-size: 0.9375rem; margin: 0; }
.testimonial blockquote::before { content: "\201C"; display: block; font-size: 2.5rem; line-height: 1; color: var(--brand-primary); }
.section-bg-dark .testimonial, .section-bg-brand .testimonial { color: var(--text-color); }

.faq-list { max-width: 56rem; }
.section-bg-dark .faq-list, .section-bg-brand .faq-list { color: var(--text-color); }

.newsletter-box {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
    padding: 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-color);
    color: var(--text-color);
}
.newsletter-box > div:first-child { flex: 1 1 18rem; }
.newsletter-form { flex: 1 1 20rem; max-width: 28rem; }
.site-footer .newsletter-form { max-width: none; }

.cms-content { line-height: 1.75; }
.cms-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose img { max-width: 100%; height: auto; }
.prose table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--border-color); padding: 0.5rem 0.75rem; }
.prose .table-wrap, .prose { overflow-wrap: anywhere; }

.listing-logo { display: inline-flex; align-items: center; justify-content: center; padding: 0.375rem 0.75rem; background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-sm); }
.listing-logo img { max-height: 3rem; width: auto; object-fit: contain; }

.page-featured-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.page-featured-image img { width: 100%; height: auto; display: block; }

.contact-card .bi { font-size: 1.25rem; color: var(--brand-primary); }

.footer-newsletter { padding: 1.75rem 0; border-bottom: 1px solid var(--border-color); }
.footer-newsletter .newsletter-form { width: 100%; max-width: 28rem; }
.footer-dark .footer-newsletter { border-color: rgba(255, 255, 255, 0.12); }
.footer-dark .footer-newsletter h2 { color: #fff; text-transform: none; letter-spacing: 0; font-size: 1.125rem; }

.auth-icon { width: 3rem; height: 3rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--brand-primary-rgb), .1); color: var(--brand-primary); font-size: 1.375rem; }
.otp-input { font-size: 1.5rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-notice { font-size: .875rem; }

.gallery-note { line-height: 1.5; }
.gallery-note a { color: inherit; text-decoration: underline; }
.product-video { border-radius: var(--radius); overflow: hidden; background: #000; }
.product-video video { width: 100%; height: 100%; object-fit: contain; }
.product-card-media img, .gallery-main img { color: transparent; }

/* ==========================================================================
   Jewellery theme layer: warm ivory surfaces, serif display type, fine gold
   rules and square, jewellery-friendly product imagery. Brand colours and
   fonts still come from Theme settings (--brand-*).
   ========================================================================== */

:root {
    --surface: #ffffff;
    --surface-muted: #faf6f0;
    --surface-sunken: #f3ece2;
    --border-color: #ebe2d5;
    --text-color: #2b2420;
    --text-muted: #7b6f66;
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-lg: 0.5rem;
    --shadow-sm: 0 1px 2px rgba(43, 36, 32, 0.05);
    --shadow: 0 2px 6px rgba(43, 36, 32, 0.05), 0 10px 24px rgba(43, 36, 32, 0.06);
    --shadow-lg: 0 18px 40px rgba(43, 36, 32, 0.12);
    --gold: var(--brand-accent);
    --font-display: var(--brand-font-heading, var(--brand-font));
}

body.storefront { background: var(--surface); letter-spacing: 0.005em; }
.storefront h1, .storefront h2, .storefront h3, .storefront .h1, .storefront .h2, .storefront .h3, .storefront .h4,
.storefront .hero-title, .storefront .promo-title, .storefront .brand-wordmark, .storefront .price-current, .storefront .summary-total {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0;
}
.storefront h4, .storefront h5, .storefront h6, .storefront .h5, .storefront .h6 { letter-spacing: 0; }
.storefront .btn { --bs-btn-font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8125rem; }
.storefront .btn-lg { font-size: 0.875rem; }
.storefront .btn-icon, .storefront .btn-sm.btn-light, .storefront .qty-stepper .btn, .storefront .btn-link { text-transform: none; letter-spacing: 0; }
.storefront .card { box-shadow: none; }

/* Section headings: centred, with a small gold ornament. */
.storefront .home-section .section-heading { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; margin-bottom: 2rem; }
.storefront .home-section .section-heading h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.storefront .home-section .section-heading h2::after {
    content: ""; display: block; width: 3.5rem; height: 1px; margin: 0.75rem auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.storefront .home-section .section-heading p { max-width: 36rem; }
.storefront .link-arrow { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-color); border-bottom: 1px solid var(--gold); padding-bottom: 0.125rem; }
.storefront .link-arrow:hover { color: var(--brand-primary); }
.section-bg-dark .link-arrow, .section-bg-brand .link-arrow { color: inherit; }

/* Announcement bar & header */
.topbar { background: var(--brand-secondary); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-header { border-bottom-color: var(--border-color); box-shadow: 0 1px 0 rgba(var(--brand-accent-rgb), 0.15); }
.brand-wordmark { font-size: 1.5rem; font-weight: 600; letter-spacing: 0.04em; }
@media (min-width: 992px) { .brand-wordmark { font-size: 1.75rem; } }
.brand-wordmark .brand-mark { background: transparent; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; font-size: 0.9rem; }
.header-search .form-control { border-radius: 0; background: var(--surface-muted); border: 1px solid transparent; }
.header-search .form-control:focus { border-color: var(--gold); box-shadow: none; }
.header-action { font-weight: 500; }
.header-action:hover, .header-action:focus-visible { background: transparent; color: var(--brand-primary); }
.cart-count { background: var(--brand-primary); }
.category-nav { border-top-color: var(--border-color); }
.category-nav .nav { justify-content: center; }
.category-nav .nav-link { font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; position: relative; }
.category-nav .nav-item:first-child .nav-link { padding-left: 0.875rem; }
.category-nav .nav-link::after { border: 0; }
.category-nav .nav-link:hover::before, .category-nav .nav-link.active::before {
    content: ""; position: absolute; left: 0.875rem; right: 0.875rem; bottom: 0.45rem; height: 1px; background: var(--gold);
}
@media (max-width: 1399.98px) { .category-nav .nav-link { font-size: 0.75rem; letter-spacing: 0.05em; } }
@media (max-width: 1199.98px) { .category-nav .nav-link { font-size: 0.7rem; letter-spacing: 0.02em; } }
.category-nav .dropdown-menu { border-radius: 0; border-top: 2px solid var(--gold); }
.mobile-menu .list-group-item { font-weight: 500; letter-spacing: 0.02em; }

/* Hero */
.hero { padding-top: 0; }
.hero > .container { max-width: none; padding: 0; }
.hero-slide { border-radius: 0; min-height: 24rem; background:
    radial-gradient(55% 80% at 80% 30%, rgba(var(--brand-accent-rgb), 0.35) 0%, rgba(var(--brand-accent-rgb), 0) 70%),
    radial-gradient(45% 70% at 10% 110%, rgba(var(--brand-primary-rgb), 0.55) 0%, rgba(var(--brand-primary-rgb), 0) 70%),
    var(--brand-secondary); }
.hero-slide::after { background-image: none; }
@media (min-width: 992px) { .hero-slide { min-height: 34rem; } .hero-content { padding-left: max(3.5rem, calc((100vw - 1320px) / 2 + 1rem)); } }
.hero-eyebrow { background: transparent; border: 1px solid rgba(var(--brand-accent-rgb), 0.6); border-radius: 0; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.6875rem; font-weight: 500; color: #f3e3c3; }
.hero-eyebrow-dot { background: var(--gold); box-shadow: none; }
.hero-title { font-weight: 500; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); line-height: 1.05; }
.hero-subtitle { font-weight: 300; font-size: 1.0625rem; }
.hero-cta { box-shadow: none; background: var(--gold); border-color: var(--gold); color: #1f1a17; }
.hero-cta:hover { background: #fff; border-color: #fff; color: #1f1a17; }
.hero-arrow { border-radius: 0; }
.hero-controls { padding-left: max(1.5rem, calc((100vw - 1320px) / 2 + 1rem)); }

/* Category tiles: round jewellery medallions */
.category-tile { background: transparent; border: 0; padding: 0.5rem; gap: 0.875rem; font-weight: 500; font-size: 0.875rem; letter-spacing: 0.04em; }
.category-tile:hover { background: transparent; box-shadow: none; }
.category-tile-icon, .category-tile img {
    width: 6.5rem; height: 6.5rem; border-radius: 50%; object-fit: cover;
    background: radial-gradient(circle at 30% 25%, #fff, var(--surface-sunken));
    border: 1px solid var(--border-color); color: var(--gold); font-size: 2rem; box-shadow: none;
    transition: border-color var(--transition), transform var(--transition);
}
.category-tile:hover .category-tile-icon, .category-tile:hover img { border-color: var(--gold); transform: translateY(-3px); }
@media (max-width: 575.98px) { .category-tile-icon, .category-tile img { width: 5rem; height: 5rem; font-size: 1.5rem; } }

.category-quicklinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: -0.75rem 0 1.75rem; }
.storefront .chip { border-radius: 0; font-size: 0.8125rem; letter-spacing: 0.03em; }
.storefront .chip:hover { border-color: var(--gold); color: var(--text-color); background: var(--surface-muted); }
.category-feature { position: relative; display: block; height: 100%; min-height: 18rem; overflow: hidden; background: var(--surface-muted); }
.category-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category-feature:hover img { transform: scale(1.04); }
.category-feature-label { position: absolute; left: 1rem; bottom: 1rem; background: #fff; color: var(--text-color); padding: 0.625rem 1rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Product card */
.product-card { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.product-card:hover { box-shadow: none; }
.product-card-media { aspect-ratio: 1 / 1; background: var(--surface-muted); overflow: hidden; }
.product-card-media img { padding: 0; object-fit: cover; mix-blend-mode: normal; transition: transform 0.6s ease; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-body { padding: 0.875rem 0.125rem 0; text-align: center; }
.product-card-brand { font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--gold); }
.product-card-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.product-card-title { font-family: var(--brand-font); font-weight: 400; font-size: 0.9375rem; min-height: 2.7em; }
.product-card-footer { flex-direction: column; align-items: center; gap: 0.5rem; }
.product-card-footer .min-w-0 { display: flex; flex-direction: column; align-items: center; }
.product-card .price { justify-content: center; }
.product-card .price-current { font-size: 1.25rem; }
.product-card-stock { font-size: 0.7rem; letter-spacing: 0.04em; }
.product-card-stock.is-in { color: var(--text-muted); }
.product-card .btn-soft { border-radius: 0; background: transparent; border: 1px solid var(--border-color); color: var(--text-color); width: auto; padding: 0.375rem 1rem; height: auto; }
.product-card .btn-soft:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-on-primary); }
.product-card .btn-soft.btn-icon::after { content: "Add to cart"; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-left: 0.375rem; }
.product-card-badges .badge { border-radius: 0; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.625rem; padding: 0.35rem 0.5rem; }
.badge-discount { background: var(--brand-primary); color: var(--brand-on-primary); }
.badge-new { background: #fff; color: var(--text-color); border: 1px solid var(--border-color); }
.badge-best { background: var(--gold); color: #1f1a17; }
.badge-trending { background: var(--brand-secondary); color: var(--brand-on-secondary); }
.card-icon-btn { border-color: transparent; background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-sm); }
.card-icon-btn:hover { color: var(--brand-primary); border-color: transparent; }
@media (max-width: 575.98px) { .product-card-footer form .btn { width: auto; } .product-card .btn-soft.btn-icon::after { content: "Add"; } }

.price-current { color: var(--text-color); font-weight: 600; }
.price-save { color: var(--brand-primary); font-weight: 600; }

/* Listing & category banner */
.category-banner { position: relative; margin: 0 0 1.5rem; padding: 2.5rem 1.5rem; text-align: center; background:
    radial-gradient(60% 120% at 50% 0%, rgba(var(--brand-accent-rgb), 0.18), transparent 70%), var(--surface-muted); overflow: hidden; }
.category-banner .breadcrumb { justify-content: center; }
.category-banner h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 500; }
.category-intro { max-width: 40rem; margin: 0.75rem auto 0; color: var(--text-muted); }
.category-count { display: inline-block; margin-top: 0.75rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.category-banner.has-image { color: #fff; min-height: 14rem; display: flex; align-items: center; justify-content: center; }
.category-banner.has-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(var(--brand-secondary-rgb), 0.45); }
.category-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-banner-body { position: relative; z-index: 2; }
.category-banner.has-image h1, .category-banner.has-image .category-intro, .category-banner.has-image .breadcrumb a, .category-banner.has-image .breadcrumb-item.active { color: #fff; }
@media (min-width: 992px) { .category-banner { padding: 3.5rem 2rem; } .category-banner.has-image { min-height: 18rem; } }
.subcategory-nav { justify-content: flex-start; }
@media (min-width: 992px) { .subcategory-nav { justify-content: center; flex-wrap: wrap; } }
.subcategory-tile { border-radius: 0; font-weight: 500; }
.subcategory-tile:hover { border-color: var(--gold); color: var(--text-color); }
.subcategory-icon { background: var(--surface-muted); color: var(--gold); }
.filter-card { border-radius: 0; }
.filter-panel legend { font-family: var(--brand-font); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.filter-chip { border-radius: 0; background: var(--surface-muted); color: var(--text-color); border: 1px solid var(--border-color); }
.filter-chip:hover { background: var(--brand-primary); border-color: var(--brand-primary); }

/* Product page */
.gallery-main { border-radius: 0; aspect-ratio: 1 / 1; }
@media (min-width: 992px) { .gallery-main { aspect-ratio: 1 / 1; } }
.gallery-main img { padding: 0; object-fit: cover; mix-blend-mode: normal; }
.gallery-thumb { border-radius: 0; padding: 0; flex-basis: 4.75rem; height: 4.75rem; }
.gallery-thumb img { object-fit: cover; mix-blend-mode: normal; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold); }
.gallery-nav { border-radius: 0; }
.product-brand { color: var(--gold); letter-spacing: 0.16em; font-weight: 500; }
.product-summary h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 500; line-height: 1.15; }
.buy-box { border-radius: 0; border-color: var(--border-color); background: var(--surface); }
.jewel-highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1px; background: var(--border-color); border: 1px solid var(--border-color); margin: 1.25rem 0 0; }
.jewel-highlights > div { background: var(--surface); padding: 0.75rem 0.875rem; }
.jewel-highlights dt { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.jewel-highlights dd { margin: 0.125rem 0 0; font-weight: 600; font-size: 0.9375rem; }
.variant-option { border-radius: 0; font-weight: 500; }
.variant-option:hover { border-color: var(--gold); }
.btn-check:checked + .variant-option { border-color: var(--text-color); background: var(--text-color); color: #fff; }
.size-guide-link { color: var(--text-color); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.trust-list .bi { color: var(--gold); }
.product-tabs { justify-content: center; }
.product-tabs a { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.product-tabs a:hover { color: var(--text-color); border-color: var(--gold); }
.care-list { padding-left: 1.125rem; color: var(--text-muted); line-height: 1.8; }
.spec-table th { background: var(--surface-muted); font-weight: 500; }

/* Homepage blocks */
.value-prop { border: 0; background: transparent; flex-direction: column; align-items: center; text-align: center; }
.value-prop-icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.value-prop h3 { font-size: 1.25rem; margin-top: 0.25rem; }
.care-tip { height: 100%; padding: 1.75rem 1.5rem; background: var(--surface); border: 1px solid var(--border-color); text-align: center; }
.care-tip-icon { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; color: var(--gold); font-size: 1.5rem; }
.care-tip h3 { font-size: 1.25rem; margin: 0.5rem 0 0.375rem; }
.care-tip p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.care-section .section-heading { position: relative; }
.home-care-tips .section-heading a.link-arrow { order: 3; }
.promo-banner { border-radius: 0; min-height: 15rem; background:
    radial-gradient(70% 100% at 85% 20%, rgba(var(--brand-accent-rgb), 0.45), transparent 70%), var(--brand-secondary); }
.promo-eyebrow { color: #f3e3c3; letter-spacing: 0.18em; }
.promo-title { font-size: 1.75rem; font-weight: 500; }
.promo-cta { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.newsletter-box { border-radius: 0; border: 0; background: transparent; color: inherit; justify-content: center; text-align: center; flex-direction: column; }
.newsletter-box > div:first-child { flex: none; }
.newsletter-box h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.newsletter-form { width: 100%; }
.newsletter-form .form-control { border-radius: 0; }
.section-bg-dark { background: var(--brand-secondary); }
.section-bg-dark .newsletter-box .text-muted { color: rgba(255, 255, 255, 0.7) !important; }
.section-bg-dark .product-card-title a, .section-bg-dark .price-current { color: #fff; }
.section-bg-dark .product-card-meta, .section-bg-dark .price-compare { color: rgba(255, 255, 255, 0.65); }
.section-bg-dark .product-card .btn-soft { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.section-bg-brand .product-card-title a, .section-bg-brand .price-current, .section-bg-brand .product-card-meta { color: var(--brand-on-primary); }
.section-bg-brand .product-card .btn-soft { color: var(--brand-on-primary); border-color: rgba(255, 255, 255, 0.45); }
.section-bg-brand .badge-discount { background: #fff; color: var(--brand-primary); }
.brand-chip { border-radius: 0; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }

/* Footer */
.site-footer h2 { font-family: var(--brand-font); font-weight: 600; letter-spacing: 0.14em; font-size: 0.75rem; }
.footer-dark .site-footer { border-top: 2px solid var(--gold); }
.footer-dark .social-links a:hover { background: var(--gold); color: #1f1a17; }

/* Forms, cart & checkout */
.storefront .form-control, .storefront .form-select { border-radius: 0; }
.storefront .form-control:focus, .storefront .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 0.2rem rgba(var(--brand-accent-rgb), 0.18); }
.cart-line-media, .summary-item-media, .cart-item-media { border-radius: 0; }
.cart-line-media img, .summary-item-media img, .cart-item-media img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.applied-coupon { border-radius: 0; border-color: var(--gold); background: var(--surface-muted); }
.account-nav .list-group-item { border-radius: 0 !important; }
.account-nav .list-group-item.active { background: var(--surface-muted); color: var(--text-color); box-shadow: inset 2px 0 0 var(--gold); }
.auth-card { border-radius: 0; }
/* Many navigation items: wrap onto a second centred line instead of overflowing. */
@media (min-width: 992px) { .category-nav .nav { flex-wrap: wrap; } .category-nav .nav-link { padding-top: 0.625rem; padding-bottom: 0.625rem; } }
/* Only collapse the gap between two sections that share the plain background. */
.home-section + .home-section.section-bg-default { padding-top: 3rem; }
@media (min-width: 992px) { .home-section + .home-section.section-bg-default { padding-top: 4rem; } }
.home-section.section-bg-default + .home-section.section-bg-default { padding-top: 0; }
.home-section .product-grid { justify-content: center; }
.section-bg-muted .product-card-media, .section-bg-dark .product-card-media, .section-bg-brand .product-card-media { background: #fff; }
.jewel-highlights { gap: 0; background: transparent; border-width: 1px 0 0 1px; }
.jewel-highlights > div { border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.storefront .prose { color: var(--text-color); }
.storefront .product-section .prose, .storefront .care-list { color: #4a403a; }
@media (max-width: 767.98px) { .product-tabs { justify-content: flex-start; } }
/* In column layouts the newsletter form's flex-basis would become a height. */
.newsletter-box .newsletter-form { flex: none; max-width: 32rem; }
@media (max-width: 991.98px) { .footer-newsletter .newsletter-form { flex: none; } }
@media (max-width: 575.98px) {
    .category-tile { font-size: 0.75rem; gap: 0.5rem; padding: 0.25rem; letter-spacing: 0.02em; }
    .category-tile-icon, .category-tile img { width: 4.25rem; height: 4.25rem; font-size: 1.375rem; }
}
