/* ==========================================================================
   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;
}
.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; }
/* Keep a full main menu on one row on smaller desktops. */
@media (min-width: 992px) and (max-width: 1399.98px) { .category-nav .nav-link { padding: 0.75rem 0.6rem; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .category-nav .nav-link { padding: 0.75rem 0.4rem; font-size: 0.8rem; } }

/* 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(120% 140% at 100% 0%, rgba(var(--brand-primary-rgb), 0.55) 0%, rgba(var(--brand-primary-rgb), 0) 55%),
        var(--brand-secondary);
    color: var(--brand-on-secondary);
    min-height: 20rem;
    display: flex;
    align-items: center;
}
@media (min-width: 992px) { .hero-slide { min-height: 26rem; } }
.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; max-width: 38rem; }
@media (min-width: 768px) { .hero-content { padding: 3.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; } }
.hero .carousel-indicators [data-bs-target] { width: 1.5rem; height: 0.25rem; border-radius: 1rem; }

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

/* ==========================================================================
   Nursery design layer
   Warm botanical neutrals, soft green surfaces and rounded, calm cards.
   Brand colours still come from the Theme settings (--brand-*).
   ========================================================================== */

:root {
    --surface-muted: #f5f8f1;
    --surface-sunken: #ecf2e6;
    --border-color: #e2e9dc;
    --text-color: #16261b;
    --text-muted: #5d6e62;
    --page-bg: #fbfcf8;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --shadow: 0 1px 3px rgba(22, 38, 27, 0.05), 0 8px 20px rgba(22, 38, 27, 0.06);
    --shadow-lg: 0 14px 34px rgba(22, 38, 27, 0.12);
}
body { background: var(--page-bg); }
.prose { color: #2f3d33; }

/* Section headings: an optional eyebrow line in brand green. */
.section-heading h2 { letter-spacing: -0.02em; }
.home-section.bg-muted, .section.bg-muted { background: var(--surface-muted) !important; }

/* ---------- Hero ---------- */
.hero-slide { box-shadow: var(--shadow); }
.hero-illustration {
    position: absolute; right: 2%; bottom: 0; z-index: 1; height: 92%; width: auto; max-width: 46%;
    pointer-events: none;
}
@media (max-width: 767.98px) { .hero-illustration { height: 52%; max-width: 60%; right: -4%; opacity: .45; } }

/* ---------- Value props & delivery info ---------- */
.value-prop { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.value-prop-icon { border-radius: 50%; }

.delivery-info {
    display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    border-radius: var(--radius-lg); overflow: hidden; background: var(--border-color); border: 1px solid var(--border-color);
}
.delivery-info-item { display: flex; gap: .875rem; align-items: flex-start; padding: 1.25rem; background: var(--surface); }
.delivery-info-item > .bi { font-size: 1.5rem; color: var(--brand-primary); line-height: 1; margin-top: .125rem; }
.delivery-info-item h3 { font-size: .9375rem; margin: 0 0 .25rem; }
.delivery-info-item p { font-size: .8125rem; color: var(--text-muted); margin: 0; }

/* ---------- Category tiles ---------- */
.category-tile { background: var(--surface); border: 1px solid var(--border-color); padding: 1rem .75rem 1.125rem; gap: .625rem; font-size: .9rem; }
.category-tile:hover { transform: translateY(-2px); }
.category-tile img { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
@media (min-width: 992px) { .category-tile img { width: 6.5rem; height: 6.5rem; } }
.category-tile-icon { width: 5.5rem; height: 5.5rem; font-size: 2rem; background: var(--brand-primary-soft); }
.category-tile span { line-height: 1.3; }
.subcategory-icon { width: 2.25rem; height: 2.25rem; }

/* ---------- Product card ---------- */
.product-card { border-radius: var(--radius); }
.product-card:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .product-card:hover, .category-tile:hover { transform: none; } }
.product-card { transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition); }
.product-card-media { background: linear-gradient(180deg, #f3f7ef 0%, #e8f0e2 100%); }
.product-card-media img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.product-card-eyebrow {
    font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-primary);
    margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card-title { min-height: 2.7em; }
.product-card-highlights { list-style: none; display: flex; flex-wrap: wrap; gap: .375rem; padding: 0; margin: -.125rem 0 .625rem; position: relative; z-index: 1; }
.product-card-highlights li {
    display: inline-flex; align-items: center; gap: .25rem; font-size: .6875rem; font-weight: 600; line-height: 1.2;
    padding: .25rem .5rem; border-radius: 999px; background: var(--brand-primary-soft); color: var(--brand-secondary);
}
.product-card-highlights .bi { color: var(--brand-primary); }
.product-card-add { border-radius: 999px; padding-inline: .75rem; white-space: nowrap; }
.badge-discount, .badge-new, .badge-best { border-radius: 999px; }
.product-card-stock.is-in { color: #2f7d32; }

/* ---------- Filters ---------- */
.filter-card { border-radius: var(--radius); }
.filter-panel .filter-collapsible > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    font-size: .875rem; font-weight: 700; margin-bottom: .625rem;
}
.filter-panel .filter-collapsible > summary::-webkit-details-marker { display: none; }
.filter-panel .filter-collapsible > summary::after { content: "\F282"; font-family: bootstrap-icons; font-weight: 400; font-size: .75rem; color: var(--text-muted); transition: transform var(--transition); }
.filter-panel .filter-collapsible:not([open]) > summary { margin-bottom: 0; }
.filter-panel .filter-collapsible[open] > summary::after { transform: rotate(180deg); }
.filter-panel .filter-collapsible > fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-panel .filter-group + .filter-group { border-top: 1px solid var(--border-color); padding-top: 1rem; margin-top: 1rem; }

/* ---------- Product page ---------- */
.gallery-main { border-radius: var(--radius-lg); background: linear-gradient(180deg, #f3f7ef 0%, #e8f0e2 100%); }
.buy-box { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.product-glance {
    list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 576px) { .product-glance { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product-glance li {
    display: flex; align-items: center; gap: .625rem; padding: .625rem .75rem; border-radius: .875rem;
    background: var(--surface-muted); border: 1px solid var(--border-color); font-size: .8125rem; font-weight: 600; min-width: 0;
}
.product-glance .bi { font-size: 1.125rem; color: var(--brand-primary); flex-shrink: 0; }
.product-glance span { min-width: 0; line-height: 1.25; }
.product-glance small { display: block; font-size: .6875rem; font-weight: 500; color: var(--text-muted); }
.care-guide { background: var(--surface-muted); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; }
.care-guide h2 + .care-guide-text, .care-guide-text { color: #2f3d33; line-height: 1.7; margin-bottom: .75rem; }
.product-tabs a { font-weight: 600; }
@media (max-width: 575.98px) {
    .listing-toolbar .listing-count { display: none; }
    .listing-toolbar form { margin-left: auto; }
    .listing-toolbar .form-select { min-width: 9.5rem; }
    .product-card-highlights li:nth-child(n+2) { display: none; }
    .product-card-add { width: 100%; }
}

/* ---------- Brand ---------- */
.brand-wordmark { letter-spacing: -0.02em; }
.brand-wordmark .brand-mark-img { width: 2.125rem; height: 2.125rem; margin-right: .5rem; flex-shrink: 0; }
.brand-wordmark-accent { color: var(--brand-primary); }
.header-dark .site-header .brand-wordmark-accent, .footer-dark .site-footer .brand-wordmark-accent { color: #8fd694; }
