/* ==========================================================================
   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; }

/* ==========================================================================
   Home décor & pooja theme layer
   Warm ivory surfaces, serif headings (Theme → Heading font), brass
   accents and ornamental dividers. Brand colours still come from the
   theme settings (--brand-*); only neutrals are set here.
   ========================================================================== */

.storefront {
    --surface: #ffffff;
    --surface-muted: #faf5ec;
    --surface-sunken: #f3eadb;
    --border-color: #ecdfca;
    --text-color: #2a1d17;
    --text-muted: #7b6a5b;
    --gold: #b8892f;
    --gold-soft: #f6ead0;
    --shadow-sm: 0 1px 2px rgba(64, 38, 16, 0.06);
    --shadow: 0 1px 3px rgba(64, 38, 16, 0.06), 0 8px 20px rgba(64, 38, 16, 0.07);
    --shadow-lg: 0 16px 36px rgba(64, 38, 16, 0.14);
    background: #fffcf7;
}
.storefront h1, .storefront h2, .storefront h3, .storefront .h1, .storefront .h2, .storefront .h3, .storefront .h4,
.storefront .hero-title, .storefront .promo-title, .storefront .brand-wordmark {
    font-family: var(--brand-heading-font, var(--brand-font));
    font-weight: 600;
    letter-spacing: -0.005em;
}
.storefront .prose { color: #4a3b31; }

/* Announcement bar & header */
.storefront .topbar { background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary) 50%, var(--brand-secondary)); letter-spacing: .02em; }
.storefront .site-header { background: rgba(255, 252, 247, .97); backdrop-filter: saturate(1.2) blur(6px); border-bottom-color: var(--border-color); }
.storefront .brand-wordmark .brand-mark { background: linear-gradient(135deg, var(--brand-primary), var(--gold)); border-radius: 50%; }
.storefront .header-search .form-control { background: var(--surface-muted); border: 1px solid var(--border-color); }
.storefront .category-nav { border-top-color: var(--border-color); }
.storefront .category-nav .nav-link { font-weight: 600; letter-spacing: .01em; }
.storefront .category-nav .nav-link:hover, .storefront .category-nav .show > .nav-link { color: var(--brand-primary); box-shadow: inset 0 -2px 0 var(--gold); }
.storefront .category-nav .dropdown-menu { border-top: 2px solid var(--gold); }

/* Ornamental section headings: a thin brass rule with a small lotus-diamond. */
.storefront .section-heading { flex-wrap: wrap; }
.storefront .section-heading h2 { position: relative; padding-bottom: .75rem; font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem); }
.storefront .section-heading h2::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 5.5rem; height: 10px;
    background:
        radial-gradient(circle at center, var(--gold) 0 3px, transparent 3.5px) center / 10px 10px no-repeat,
        linear-gradient(var(--gold), var(--gold)) left center / 2.1rem 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) right center / 2.1rem 1px no-repeat;
}
.storefront .section-bg-dark .section-heading h2::after, .storefront .section-bg-brand .section-heading h2::after { filter: brightness(1.6); }

/* Hero: deep maroon with a soft rangoli motif instead of a grid. */
.storefront .hero-slide {
    background:
        radial-gradient(60% 90% at 85% 15%, rgba(251, 191, 36, .22) 0%, rgba(251, 191, 36, 0) 60%),
        radial-gradient(55% 80% at 5% 110%, rgba(var(--brand-primary-rgb), .65) 0%, rgba(var(--brand-primary-rgb), 0) 70%),
        linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 130%);
}
.storefront .hero-slide::after {
    background-image:
        radial-gradient(circle at 50% 50%, rgba(243, 210, 122, .12) 0 2px, transparent 2.5px),
        radial-gradient(circle at 50% 50%, transparent 0 17px, rgba(243, 210, 122, .08) 17.5px 18.5px, transparent 19px);
    background-size: 44px 44px, 44px 44px;
}
.storefront .hero-eyebrow { background: rgba(243, 210, 122, .16); color: #f7deb0; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.storefront .hero-eyebrow-dot { background: #f3d27a; box-shadow: 0 0 0 3px rgba(243, 210, 122, .3); }
.storefront .hero-title { font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.storefront .hero-cta { background: linear-gradient(135deg, #d9a441, #b8892f); border-color: #b8892f; color: #2a1d17; box-shadow: 0 14px 30px -12px rgba(217, 164, 65, .9); }
.storefront .hero-cta:hover { background: #f0c469; border-color: #f0c469; color: #2a1d17; }
.storefront .hero-art-svg { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .3)); }

/* Value props */
.storefront .value-prop { background: var(--surface); border-color: var(--border-color); }
.storefront .value-prop-icon { background: var(--gold-soft); color: var(--gold); border-radius: 50%; }

/* Category tiles: medallions */
.storefront .category-tile { background: var(--surface); border: 1px solid var(--border-color); font-family: var(--brand-heading-font, inherit); font-size: 1.02rem; }
.storefront .category-tile:hover { border-color: var(--gold); box-shadow: var(--shadow); color: var(--brand-primary); transform: translateY(-2px); }
.storefront .category-tile { transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.storefront .category-tile-icon {
    width: 4.25rem; height: 4.25rem; font-size: 1.75rem; color: var(--brand-primary);
    background: radial-gradient(circle, #fffaf0 55%, var(--gold-soft) 56%);
    box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px #fffaf0, 0 0 0 6px var(--border-color);
}
.storefront .category-tile img { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold-soft); }

/* Product cards */
.storefront .product-card { border-color: var(--border-color); border-radius: 1rem; }
.storefront .product-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold-soft); transform: translateY(-3px); }
.storefront .product-card { transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition); }
.storefront .product-card-media { aspect-ratio: 1 / 1; background: radial-gradient(120% 90% at 50% 20%, #fffaf2 0%, var(--surface-muted) 70%); }
.storefront .product-card-media img { padding: .5rem; transition: transform .4s ease; }
.storefront .product-card:hover .product-card-media img { transform: scale(1.035); }
.storefront .product-card-brand { color: var(--gold); letter-spacing: .08em; font-size: .7rem; }
.storefront .product-card-title { font-family: var(--brand-heading-font, var(--brand-font)); font-size: 1.02rem; font-weight: 600; }
.storefront .price-current { color: var(--brand-primary); font-weight: 700; }
.storefront .badge { border-radius: 50rem; font-weight: 600; letter-spacing: .02em; }
.storefront .badge-discount { background: var(--brand-primary); color: #fff; }
.storefront .badge-new { background: var(--gold); color: #fff; }
.storefront .badge-condition { background: rgba(255, 255, 255, .92); color: var(--text-color); border: 1px solid var(--border-color); }
.storefront .badge-best { background: #2a1d17; color: #f6ead0; }
.storefront .card-icon-btn { border-color: var(--border-color); }
.storefront .card-icon-btn:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.storefront .btn-soft { --bs-btn-bg: var(--gold-soft); --bs-btn-color: var(--brand-primary); }

/* Listing, filters and category pages */
.storefront .page-header h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.storefront .filter-card { border-color: var(--border-color); }
.storefront .subcategory-tile { border-color: var(--border-color); }
.storefront .subcategory-tile:hover { border-color: var(--gold); }
.storefront .subcategory-icon { background: var(--gold-soft); color: var(--gold); }
.storefront .category-description { background: var(--surface-muted); border: 1px solid var(--border-color); border-radius: 1rem; padding: 1.5rem; }

/* Product page */
.storefront .gallery-main { background: radial-gradient(120% 90% at 50% 20%, #fffaf2 0%, var(--surface-muted) 70%); border: 1px solid var(--border-color); }
.storefront .gallery-thumb { background: var(--surface-muted); }
.storefront .product-brand { color: var(--gold); display: inline-block; }
.storefront .product-summary h1 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); line-height: 1.15; }
.storefront .buy-box { background: linear-gradient(180deg, #fffdf8, var(--surface)); border-color: var(--border-color); border-radius: 1rem; }
.storefront .key-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; margin: 1rem 0 0; }
.storefront .key-fact { background: var(--surface-muted); border: 1px solid var(--border-color); border-radius: .75rem; padding: .5rem .75rem; }
.storefront .key-fact dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; }
.storefront .key-fact dd { margin: 0; font-weight: 600; font-size: .95rem; }
.storefront .craft-note { margin: .75rem 0 0; font-size: .85rem; color: #7a5a1f; background: var(--gold-soft); border-radius: .5rem; padding: .5rem .75rem; }
.storefront .spec-table th { background: var(--surface-muted); }
.storefront .product-tabs a:hover { border-color: var(--gold); }
.storefront .trust-list .bi { color: var(--gold); }
.storefront .variant-option { border-radius: 50rem; }

/* Promo banners, newsletter, footer */
.storefront .promo-banner { border-radius: 1rem; background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary)); }
.storefront .newsletter-box { background: linear-gradient(135deg, #fffaf0, var(--gold-soft)); border-color: var(--border-color); border-radius: 1rem; }
.storefront.footer-dark .site-footer { border-top: 3px solid var(--gold); }
.storefront.footer-dark .site-footer h2 { color: #f6ead0; }

/* Small screens */
@media (max-width: 575.98px) {
    .storefront .section-heading h2 { font-size: 1.45rem; }
    .storefront .product-card-title { font-size: .95rem; }
    .storefront .key-facts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .storefront .product-card:hover, .storefront .category-tile:hover { transform: none; }
    .storefront .product-card:hover .product-card-media img { transform: none; }
}

.swatch-dot { display: inline-block; width: .875rem; height: .875rem; border-radius: 50%; margin-right: .375rem; vertical-align: -.1rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
@media (max-width: 575.98px) {
    .storefront .value-prop { flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: .875rem .625rem; }
    .storefront .value-prop p { display: none; }
    .storefront .value-prop h3 { font-size: .85rem; }
}

/* Featured collections tiles (homepage "collections" section) */
.collection-tile {
    position: relative; display: flex; align-items: flex-end; height: 100%; min-height: 10rem; overflow: hidden; isolation: isolate;
    border-radius: 1rem; color: #fff; text-decoration: none;
    background:
        radial-gradient(circle at 85% 15%, rgba(243, 210, 122, .35) 0 18%, transparent 19%),
        radial-gradient(circle at 85% 15%, transparent 0 26%, rgba(243, 210, 122, .18) 26.5% 28%, transparent 28.5%),
        linear-gradient(145deg, var(--brand-secondary), var(--brand-primary));
    transition: transform var(--transition), box-shadow var(--transition);
}
.collection-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.collection-tile.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 10, 6, .75), rgba(20, 10, 6, 0) 70%); }
.collection-tile:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.collection-tile-body { display: grid; gap: .25rem; padding: 1rem 1.125rem; }
.collection-tile-name { font-family: var(--brand-heading-font, var(--brand-font)); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.collection-tile-text { font-size: .8rem; opacity: .85; }
.collection-tile-cta { font-size: .8rem; font-weight: 600; color: #f6d892; }
@media (min-width: 768px) { .collection-tile { min-height: 12rem; } }
@media (prefers-reduced-motion: reduce) { .collection-tile:hover { transform: none; } }
/* A default-background section right after a shaded one keeps its top spacing. */
.home-section:not(.section-bg-default) + .home-section.section-bg-default { padding-top: 3rem; }
@media (min-width: 992px) { .home-section:not(.section-bg-default) + .home-section.section-bg-default { padding-top: 4rem; } }
/* In a stacked (column) layout the form's flex-basis would become a 20rem height. */
@media (max-width: 991.98px) { .footer-newsletter .newsletter-form { flex: 0 0 auto; } }
@media (max-width: 575.98px) { .newsletter-box .newsletter-form { flex-basis: 100%; } }

/* Reviews */
.rating-summary { background: var(--surface-muted); border: 1px solid var(--border-color); border-radius: 1rem; padding: 1.25rem; }
.rating-score { font-family: var(--brand-heading-font, var(--brand-font)); font-size: 2.5rem; font-weight: 600; line-height: 1; }
.rating-score span { font-size: 1rem; color: var(--text-muted); margin-left: .125rem; }
.rating-stars { color: #d39b1c; letter-spacing: .1em; }
.review { border-bottom: 1px solid var(--border-color); padding: 1rem 0; }
.review:first-child { padding-top: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .125rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.75rem; line-height: 1; color: #d6cbb8; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #d39b1c; }
.star-input input:focus-visible + label { outline: 2px solid var(--brand-primary); outline-offset: 2px; border-radius: .25rem; }

/* Related categories / collections (internal links) */
.related-links { display: grid; gap: 1.25rem; padding: 1.25rem 1.5rem; border: 1px solid var(--border-color); border-radius: 1rem; background: var(--surface); }
.related-links h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .625rem; font-family: var(--brand-font); }
.related-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.related-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .375rem .875rem; border-radius: 50rem; border: 1px solid var(--border-color); color: var(--text-color); font-size: .875rem; font-weight: 500; background: var(--surface-muted); }
.related-chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.related-chip.is-collection { background: var(--gold-soft, #f6ead0); border-color: transparent; color: #6b4a12; }

/* Account menu: a horizontal, scrollable row on phones and tablets so the page content comes first. */
@media (max-width: 991.98px) {
    .account-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: .375rem; padding-bottom: .25rem; scrollbar-width: thin; }
    .account-nav .list-group-item, .account-nav form .list-group-item { flex: 0 0 auto; width: auto; white-space: nowrap; border: 1px solid var(--border-color) !important; border-radius: 50rem !important; padding: .4rem .875rem; font-size: .875rem; }
    .account-nav .list-group-item + .list-group-item { border-top-width: 1px; margin-top: 0; }
    .account-nav form { flex: 0 0 auto; }
    .account-nav .list-group-item .bi { width: auto; margin-right: .35rem; }
}

/* Customer order list: each order becomes a compact card on phones. */
@media (max-width: 575.98px) {
    .orders-table-wrap table, .orders-table-wrap tbody, .orders-table-wrap tr, .orders-table-wrap td { display: block; }
    .orders-table-wrap thead { display: none; }
    .orders-table-wrap tr { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding: .875rem 1rem; border-bottom: 1px solid var(--border-color); }
    .orders-table-wrap td { border: 0; padding: 0; }
    .orders-table-wrap .order-cell-number { grid-column: 1; }
    .orders-table-wrap .order-cell-amount { grid-column: 2; grid-row: 1; text-align: right; font-weight: 600; }
    .orders-table-wrap .order-cell-date { grid-column: 1; color: var(--text-muted); }
    .orders-table-wrap .order-cell-status { grid-column: 2; grid-row: 2; text-align: right; }
    .orders-table-wrap .order-cell-actions { grid-column: 1 / -1; text-align: left !important; margin-top: .375rem; }
}
