/* Custom CSS for Django Ecommerce */

/* Global Styles – Best Battery brand colors (energy green + gold), sampled
   straight from the approved UI mockup in design/. */
:root {
    /* --- Best Battery core palette ------------------------------------- */
    --bb-green: #00a14f;          /* primary CTA / buttons */
    --bb-green-light: #00b75b;    /* top bar, trust strip, footer */
    --bb-green-dark: #009a4d;     /* hotline button, hovers */
    --bb-forest: #0b3d2c;         /* headings, active pill, dark badges */
    --bb-forest-deep: #0c402e;
    --bb-gold: #dba638;           /* section accent bar, highlights */
    --bb-gold-dark: #c48f16;
    --bb-gold-light: #e5da83;     /* gold text on green */
    --bb-orange: #e8622a;
    --bb-magenta: #e0218a;        /* "% OFF" flag on product cards */
    --bb-magenta-dark: #b8156f;
    --bb-green-soft: #e9f7ef;     /* pale green fill for pills/chips */
    --bb-green-line: rgba(0, 161, 79, .28); /* green hairline on tinted chrome */
    --bb-cream: #faf7f0;          /* page background */
    --bb-cream-deep: #f6f3ea;     /* search field, inactive pills */
    --bb-card: #ffffff;
    --bb-ink: #12261d;
    --bb-muted: #6f7d75;
    --bb-line: #e6e2d6;
    --bb-radius: 18px;
    --bb-radius-sm: 12px;
    --bb-radius-pill: 999px;
    /* Premium glow — deliberately soft; never let these read as neon. */
    --bb-glow-green: 0 6px 22px -8px rgba(0, 161, 79, .55), 0 0 0 1px rgba(0, 161, 79, .10);
    --bb-glow-green-strong: 0 10px 30px -8px rgba(0, 161, 79, .70), 0 0 0 1px rgba(0, 161, 79, .18);
    --bb-glow-gold: 0 6px 22px -8px rgba(196, 143, 22, .55), 0 0 0 1px rgba(196, 143, 22, .12);
    --bb-glow-gold-strong: 0 10px 30px -8px rgba(196, 143, 22, .70), 0 0 0 1px rgba(196, 143, 22, .22);
    --bb-card-shadow: 0 2px 10px rgba(11, 61, 44, .05);
    --bb-card-shadow-hover: 0 14px 34px -12px rgba(11, 61, 44, .28);
    --bb-ease: cubic-bezier(.2, .7, .3, 1);

    /* --- Legacy token names, remapped onto the Best Battery palette so the
       older pages (cart, checkout, quote, about) stay on-brand. ---------- */
    --brand-blue: var(--bb-green);
    --brand-blue-dark: var(--bb-forest);
    --brand-blue-soft: #e6f6ed;
    --brand-orange: var(--bb-green);
    --brand-orange-light: var(--bb-green-light);
    --brand-orange-soft: #e6f6ed;
    --brand-yellow: var(--bb-gold);
    --brand-yellow-dark: var(--bb-gold-dark);
    --brand-yellow-gradient: linear-gradient(135deg, var(--bb-gold) 0%, var(--bb-gold-dark) 100%);
    --brand-green-gradient: linear-gradient(135deg, var(--bb-forest) 0%, var(--bb-green) 100%);
    --brand-grey: #4b5750;
    --brand-grey-light: #6b7280;
    --veridian-green: var(--bb-green);
    --veridian-green-dark: var(--bb-forest);
    --veridian-gold: var(--bb-gold);
    --eneva-navy: var(--bb-forest);
    --eneva-blue: var(--bb-green);
    --eneva-red: var(--bb-green);
    --eneva-orange: var(--bb-green);
    --eneva-orange-dark: var(--bb-green-dark);
    --eneva-green-dark: #059669;
    --primary-color: var(--bb-forest);
    --secondary-color: var(--bb-green);
    --accent-color: var(--bb-green);
    --success-color: var(--eneva-green-dark);
    --warning-color: var(--bb-gold-dark);
    --danger-color: #c73e4d;
    --dark-color: var(--bb-forest);
    --light-color: var(--bb-cream);
    --light-bg: var(--bb-cream);
    --light-bg-warm: var(--bb-cream-deep);
    --border-color: var(--bb-line);
    --text-primary: var(--bb-ink);
    --text-secondary: var(--bb-muted);
    --text-muted: var(--brand-grey);
    --shadow: var(--bb-card-shadow);
    --shadow-lg: var(--bb-card-shadow-hover);
    --btn-primary-bg: var(--bb-green);
    --btn-primary-color: #fff;
    --btn-secondary-bg: transparent;
    --btn-secondary-color: var(--primary-color);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-muted);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base layout – navbar (loaded from base.html) */
.navbar {
    background: #f8f7f5;
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    min-height: 72px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-blue-dark) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    height: 56px;
    width: auto;
    max-width: min(280px, 55vw);
    object-fit: contain;
    object-position: left center;
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    color: var(--brand-grey);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    color: var(--brand-grey) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--brand-blue-dark) !important;
    background: var(--brand-blue-soft);
    border-radius: 8px;
}

.main-content {
    padding: 1rem 0;
    flex: 1 0 auto;
    width: 100%;
}


@media (min-width: 768px) {
    .navbar-brand img {
        height: 64px;
        max-width: 320px;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    .main-content {
        padding: 2rem 0;
    }
}

@media (min-width: 992px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Enhanced form styling */
.form-control:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.2rem rgba(21, 122, 91, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Enhanced button styling */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--eneva-orange-dark) 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-orange-light) 0%, var(--brand-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 122, 91, 0.25);
    color: #fff;
}

.btn-outline-primary {
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
}

.btn-outline-primary:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
    transform: translateY(-2px);
}

/* Card enhancements */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

/* Navigation enhancements */
.navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-orange-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

/* Dropdown enhancements */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
    transform: translateX(5px);
}

/* Badge enhancements */
.badge {
    border-radius: 20px;
    font-weight: 600;
    padding: 0.5em 0.75em;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

/* Keyframe animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--brand-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .product-card .product-card-actions .btn {
        margin-bottom: 0.5rem;
    }
    .product-card .product-card-actions .btn:last-child {
        margin-bottom: 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

/* ========== Shop – Product list page ========== */
body.body-product-list {
    background-color: var(--light-bg);
}

.product-list-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-list-count {
    font-size: 0.85rem;
}

.hero-section {
    background: linear-gradient(135deg, var(--eneva-blue) 0%, var(--eneva-navy) 100%);
    color: white;
    padding: 1rem 0;
    margin-bottom: 0.5rem;
}

.hero-section h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-section p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.top-copywriting {
    background: linear-gradient(135deg, #fff6f6 0%, #ffffff 100%);
    border-bottom: 3px solid var(--eneva-orange);
    padding: 0.75rem 0;
    text-align: center;
    margin-bottom: 0.75rem;
}

.copywriting-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.copywriting-text .highlight {
    color: var(--eneva-orange);
    font-weight: 700;
}

.trust-strip {
    background: linear-gradient(135deg, var(--brand-orange-soft) 0%, #fff 100%);
    border-bottom: 2px solid var(--eneva-orange);
    padding: 0.75rem 0;
    margin-bottom: 0.75rem;
}

.trust-strip-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.5rem;
}

.trust-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-strip-item i {
    color: var(--eneva-orange);
    font-size: 1.2rem;
}

.category-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0.75rem 1rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.category-sidebar h5 {
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.category-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.category-item:hover {
    background: #fff6f6;
    color: var(--eneva-orange);
    border-color: var(--eneva-orange);
    text-decoration: none;
}

.category-item.active {
    background: var(--eneva-navy);
    color: white;
}

.urgency-badge {
    background: linear-gradient(135deg, var(--eneva-blue) 0%, var(--eneva-navy) 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.trust-badges-mobile {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.trust-badge-mobile {
    background: #fff6f6;
    border: 2px solid var(--eneva-orange);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-badge-mobile i {
    color: var(--eneva-orange);
}

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--eneva-orange);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Product list: contain layout and keep buttons from shrinking */
.shop-product-list {
    max-width: 100%;
}

.shop-product-list .product-card .card-body .btn {
    flex-shrink: 0;
}

/* Product list: same size and white text for both action buttons */
.shop-product-list .product-card-actions .add-to-cart-btn,
.shop-product-list .product-card-actions .btn-order-now {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    min-height: 44px;
    width: 100%;
    color: #fff;
}

.shop-product-list .product-card-actions .add-to-cart-btn:hover,
.shop-product-list .product-card-actions .btn-order-now:hover {
    color: #fff;
}

.shop-product-list .row.g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

/* Product list: image area sized for 1000×1000 source; square aspect ratio */
.product-image {
    width: 100%;
    aspect-ratio: 1;
    flex-shrink: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--eneva-orange) 0%, var(--eneva-orange-dark) 100%);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-card .product-title {
    font-size: 0.95rem;
    line-height: 1.3;
    min-height: 2.6rem;
    color: var(--eneva-navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card .product-category {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--eneva-orange);
    margin-bottom: 0.75rem;
}

.product-card .card-body {
    padding: 1.25rem !important;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-card .product-card-link {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.product-card .product-card-actions {
    padding: 0 1.25rem 1.25rem !important;
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
}

.btn-order-now {
    background: var(--veridian-green);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 0.95rem;
    min-height: 44px;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-order-now:hover {
    transform: translateY(-2px);
    background: var(--veridian-green-dark);
    box-shadow: 0 8px 25px rgba(21, 122, 91, 0.28);
    color: #ffffff;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: none;
}

.toast-header {
    background: linear-gradient(135deg, var(--eneva-navy) 0%, #0f172a 100%);
    color: var(--eneva-orange);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.toast-header .btn-close {
    filter: invert(1);
}

.add-to-cart-success {
    background: #28a745 !important;
    color: white !important;
}

.add-to-cart-loading {
    background: #6c757d !important;
    color: white !important;
}

/* Order Now button feedback states (JS toggles classes, no inline styles).
   !important needed to beat the .deal-btn-cart overrides below. */
.btn-feedback-success {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--eneva-orange-dark) 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.btn-feedback-error {
    background: var(--danger-color) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.btn-feedback-loading {
    opacity: 0.7;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-badge.updated {
    animation: pulse 0.6s ease-in-out;
}

@media (max-width: 768px) {
    .hero-section { padding: 0.75rem 0; margin-bottom: 0.25rem; }
    .hero-section h1 { font-size: 1.25rem; margin-bottom: 0.25rem; }
    .hero-section p { font-size: 0.85rem; }
    .top-copywriting { padding: 0.5rem 0; margin-bottom: 0.5rem; }
    .trust-strip { padding: 0.5rem 0; margin-bottom: 0.5rem; }
    .trust-strip-item { font-size: 0.85rem; }
    .copywriting-text { font-size: 0.85rem; padding: 0 0.5rem; }
    .category-sidebar { padding: 0.75rem 0.5rem; margin-bottom: 0.5rem; }
    .category-sidebar h5 { font-size: 0.9rem; margin-bottom: 0.5rem; }
    .category-list { gap: 0.3rem; }
    .category-item { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    .trust-badges-mobile { margin-bottom: 0.5rem; gap: 0.4rem; }
    .trust-badge-mobile { padding: 0.4rem 0.75rem; font-size: 0.75rem; }
    .urgency-badge { margin-bottom: 0.5rem; padding: 0.35rem 0.7rem; font-size: 0.75rem; }
    .product-card { margin-bottom: 1rem; }
    .product-image { aspect-ratio: 1; }
    .product-card .product-title { font-size: 1rem; margin-bottom: 0.4rem; }
    .product-price { font-size: 1.3rem; margin-bottom: 0.75rem; }
    body { padding-top: 0; }
    .text-center.mb-3 h2 { font-size: 1.1rem !important; }
    .text-center.mb-3 p { font-size: 0.8rem !important; }
}

/* ========== Shop – Product detail page ========== */
.breadcrumb {
    background: transparent;
    padding: 0.25rem 0;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--brand-orange);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--border-color);
}

/* Product detail: sticky mobile CTA */
.product-detail-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    z-index: 1020;
    padding: 0.75rem 0;
}

.product-detail-sticky-cta .sticky-cta-inner {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.product-detail-sticky-cta .sticky-btn-cart,
.product-detail-sticky-cta .sticky-btn-order {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 10px;
    font-size: 0.95rem;
}

.product-detail-sticky-cta .sticky-btn-cart {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-color);
    border: 2px solid var(--eneva-orange);
}

.product-detail-sticky-cta .sticky-btn-order {
    background: var(--brand-orange);
    color: white;
    border: none;
}

.product-detail-sticky-cta .sticky-btn-cart:hover {
    background: var(--brand-orange-soft);
    color: var(--eneva-orange);
}

.product-detail-sticky-cta .sticky-btn-order:hover {
    color: white;
    opacity: 0.95;
}

@media (max-width: 991.98px) {
    .product-detail-sticky-cta { display: block; }
    body.product-detail-page .main-content { padding-bottom: 5.5rem; }
}

@media (min-width: 992px) {
    .product-detail-sticky-cta { display: none !important; }
}

.product-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 3rem;
}

.gallery-section {
    background: var(--light-bg);
    padding: 1.5rem;
    position: relative;
}

/* Product detail: main image for 1000×1000 source; square, max 600px for sharp display */
.main-image-container {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
    aspect-ratio: 1;
    max-width: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.05);
}

.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: var(--eneva-orange);
    transform: scale(1.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info .product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--eneva-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-info .product-category {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-add-to-cart-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price-add-to-cart-row .product-price {
    margin-bottom: 0;
}

/* Product detail: same design for কার্টে যোগ করুন and অর্ডার করুন, both full width */
.price-add-to-cart-row form.add-to-cart-inline {
    width: 100%;
    min-width: 0;
}

.price-add-to-cart-row .add-to-cart-btn,
.price-add-to-cart-row .btn-order-now {
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    min-height: 44px;
    border-radius: 10px;
    width: 100%;
    transition: all 0.3s ease;
}

.price-add-to-cart-row .add-to-cart-btn:hover,
.price-add-to-cart-row .btn-order-now:hover {
    color: #fff;
    transform: translateY(-2px);
}

.price-add-to-cart-row .add-to-cart-btn {
    margin-bottom: 0;
}

.add-to-cart-inline {
    margin: 0;
    display: inline-block;
}

.product-info .product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--eneva-orange);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-currency {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.product-description {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.quantity-section {
    margin-bottom: 2rem;
}

.quantity-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    max-width: 200px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: white;
    color: var(--eneva-orange);
    border: 2px solid var(--eneva-orange);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.quantity-btn:hover {
    background: var(--eneva-orange);
    color: white;
    transform: translateY(-2px);
}

.quantity-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    flex-grow: 1;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--eneva-orange);
    box-shadow: 0 0 0 3px rgba(21, 122, 91, 0.1);
}

.trust-badges-detail {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.trust-badge-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-badge-detail i {
    color: var(--eneva-orange);
    font-size: 1.1rem;
}

.urgency-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: white;
    border: 1px solid var(--brand-yellow);
    color: var(--text-primary);
    padding: 0.9rem 1.15rem;
    border-radius: 14px;
    text-align: left;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.urgency-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--brand-yellow);
    color: white;
}

.urgency-icon .bi {
    display: block;
    line-height: 1;
    font-size: 1.35rem;
}

.add-to-cart-btn {
    background: var(--brand-orange);
    border: none;
    color: white;
    padding: 1.25rem 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 122, 91, 0.3);
    width: 100%;
    min-height: 56px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(21, 122, 91, 0.3);
}

.product-meta {
    background: var(--light-bg);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.meta-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    color: var(--text-muted);
    font-weight: 500;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

.related-products {
    margin-top: 3rem;
}

.related-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.related-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-info {
    padding: 1.5rem;
}

.related-title {
    font-weight: 600;
    color: var(--eneva-navy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-price {
    color: var(--eneva-orange);
    font-weight: 700;
    font-size: 1.1rem;
}

.related-link {
    text-decoration: none;
    color: inherit;
}

.related-link:hover {
    color: inherit;
}

@media (max-width: 767px) {
    .breadcrumb { margin-bottom: 1rem; font-size: 0.85rem; }
    .product-container { margin-bottom: 1.5rem; }
    .gallery-section { padding: 1rem; }
    .main-image-container { margin-bottom: 1rem; }
    .thumbnail { width: 60px; height: 60px; }
    .product-info { padding: 1.25rem; }
    .product-info .product-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
    .product-info .product-price { font-size: 1.75rem; margin-bottom: 1rem; }
    .product-description { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .quantity-controls { max-width: 100%; }
    .add-to-cart-section { margin-bottom: 5rem; }
}

@media (min-width: 768px) {
    .gallery-section, .product-info { padding: 2rem; }
    .product-info .product-title { font-size: 2.5rem; }
    .product-info .product-price { font-size: 2rem; }
    .thumbnail { width: 80px; height: 80px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

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

@media (min-width: 1200px) {
    .related-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========== Cart page ========== */
.cart-page {
    padding: 1rem 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--eneva-navy);
    margin-bottom: 2rem;
    text-align: center;
}

.cart-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.cart-header {
    background: white;
    color: var(--brand-blue-dark);
    padding: 1.1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.15rem;
}

.cart-header h3 .bi {
    color: var(--brand-orange);
}

.cart-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-bg);
    flex-shrink: 0;
    align-self: center;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-page .no-image {
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.item-details {
    flex-grow: 1;
    text-align: center;
}

.item-name {
    font-weight: 600;
    color: var(--eneva-navy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.item-name a {
    color: inherit;
    text-decoration: none;
}

.item-name a:hover {
    color: var(--brand-orange);
}

.item-category {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.item-price {
    color: var(--eneva-orange);
    font-weight: 600;
    font-size: 1rem;
}

.item-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quantity-form {
    width: 100%;
    max-width: 200px;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-bg);
    border-radius: 10px;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
}

/* Checkout: read-only quantity (no +/- buttons) */
.quantity-input-group.justify-content-center .quantity-display {
    font-weight: 600;
    color: var(--text-primary);
}

.item-total {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.item-total .remove-btn {
    align-self: center;
    width: max-content;
}

.total-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--eneva-orange);
}

.remove-btn {
    background: transparent;
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    padding: 0.45rem 0.9rem;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.remove-btn i,
.remove-btn span {
    display: inline-block;
    flex-shrink: 0;
    line-height: 1;
}

.remove-btn:hover {
    background: var(--danger-color);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.summary-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    height: fit-content;
}

.summary-header {
    background: white;
    color: var(--brand-blue-dark);
    padding: 1.1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.summary-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.15rem;
}

.summary-header h3 .bi {
    color: var(--brand-orange);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-blue-dark);
    background: var(--brand-blue-soft);
    margin: 0.5rem 1rem 1rem;
    border-radius: 10px;
    padding: 1rem;
    border-bottom: none;
}

.summary-row.total .summary-label,
.summary-row.total .summary-value {
    color: inherit;
    font-weight: 700;
}

.summary-actions {
    padding: 0 1.5rem 1.5rem;
}

.summary-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.continue-shopping-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
}

.continue-shopping-btn:hover {
    border-color: var(--eneva-orange);
    color: var(--eneva-orange);
    background: var(--brand-blue-soft);
    text-decoration: none;
}

.checkout-btn {
    background: var(--brand-orange);
    border: none;
    color: white;
    font-weight: 700;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(21, 122, 91, 0.3);
    color: white;
    text-decoration: none;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--eneva-navy);
    margin-bottom: 0.5rem;
}

.empty-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.start-shopping-btn {
    background: var(--brand-orange);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.start-shopping-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(21, 122, 91, 0.3);
    color: white;
    text-decoration: none;
}

@media (min-width: 768px) {
    .cart-item { flex-direction: row; align-items: center; text-align: left; }
    .item-details { text-align: left; }
    .item-quantity { align-items: flex-start; }
    .item-total { text-align: right; align-items: flex-end; }
    .page-title { font-size: 2.5rem; }
}

/* ========== Checkout page ========== */
.checkout-page {
    padding: 0.5rem 0;
}

.checkout-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-header {
    background: white;
    color: var(--brand-blue-dark);
    padding: 1.1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.checkout-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.checkout-header h2 .bi {
    color: var(--brand-orange);
}

.checkout-header p {
    margin: 0.25rem 0 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section.form-section-warning {
    background: var(--brand-blue-soft);
    border-left: 4px solid var(--brand-blue);
}

.form-section .invalid-feedback {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.payment-methods {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    flex: 1;
    min-width: 140px;
}

.payment-method:hover {
    border-color: var(--eneva-orange);
    background: var(--brand-blue-soft);
}

.payment-method.selected {
    border-color: var(--brand-orange);
    background: var(--brand-blue-soft);
    box-shadow: 0 0 0 1px var(--brand-orange) inset;
}

.payment-method input[type="radio"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.payment-method-label {
    font-weight: 500;
    color: var(--eneva-navy);
    cursor: pointer;
    flex-grow: 1;
    font-size: 0.9rem;
}

.payment-icon {
    color: var(--eneva-orange);
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

/* Checkout page: cart and summary synchronized with billing block */
.checkout-page .cart-container,
.checkout-page .summary-card {
    box-shadow: var(--shadow);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-page .cart-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-page .cart-item:last-child {
    border-bottom: none;
}

.checkout-page .cart-container .item-total {
    min-width: 100px;
    flex-shrink: 0;
}

.checkout-page .cart-container .remove-btn {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.checkout-page .cart-container .remove-btn i,
.checkout-page .cart-container .remove-btn span {
    display: inline-block;
    flex-shrink: 0;
    line-height: 1;
}

.checkout-page .summary-row {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-page .summary-row.total {
    margin: 0.5rem 1rem 1rem;
    padding: 1rem;
}

.order-summary {
    background: var(--light-bg);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 0;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.summary-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--eneva-navy);
    margin-bottom: 0.75rem;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-muted);
    font-weight: 500;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--eneva-navy);
    background: transparent;
    margin: 0.75rem 0 0;
    padding: 0.75rem 0;
    border-top: 2px solid var(--eneva-orange);
}

.summary-total .summary-label,
.summary-total .summary-value {
    color: var(--eneva-navy);
    font-weight: 700;
}

.submit-section {
    text-align: center;
    padding: 1.5rem;
    background: white;
}

.submit-btn {
    background: var(--brand-orange);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 122, 91, 0.3);
    width: 100%;
    min-height: 52px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(21, 122, 91, 0.3);
    color: white;
}

.cod-message {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.checkout-trust-line {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.checkout-trust-line i {
    color: var(--success-color);
}

.spinner {
    display: none;
}

@media (max-width: 767px) {
    .checkout-container { margin-bottom: 1rem; }
    .checkout-header { padding: 0.85rem 1rem; }
    .checkout-header h2 { font-size: 1.1rem; }
    .form-section { padding: 1rem; }
    .payment-methods { flex-direction: column; }
    .payment-method { min-width: 100%; }
    .checkout-page .cart-container,
    .checkout-page .summary-card { margin-bottom: 1rem; }
    .checkout-page .cart-header,
    .checkout-page .summary-header { padding: 0.85rem 1rem; }
    .checkout-page .cart-header h3,
    .checkout-page .summary-header h3 { font-size: 1.1rem; }
    .checkout-page .cart-item { padding: 1rem; }
    .checkout-page .summary-row { padding: 1rem 1.5rem; }
    .checkout-page .summary-row.total { margin: 0.5rem 1rem 1rem; padding: 1rem; }
}

/* ========== Success page ========== */
.success-page {
    padding: 1rem 0;
}

.success-container {
    max-width: 800px;
    margin: 0 auto;
}

.success-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.success-icon {
    font-size: 3rem;
    color: var(--brand-orange);
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-blue-soft);
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
    border: 1px solid var(--brand-orange);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--eneva-navy);
    margin-bottom: 1rem;
}

.success-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.order-details {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.details-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--eneva-navy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.details-title i {
    color: var(--eneva-orange);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.success-page .order-summary {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.success-page .summary-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--eneva-navy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.success-page .summary-title i {
    color: var(--eneva-orange);
}

.success-page .summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-blue-dark);
    background: var(--brand-blue-soft);
    margin: 0.75rem 0 0;
    padding: 1rem;
    border-radius: 10px;
    border-top: none;
}

.next-steps-lead {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--brand-orange-soft);
    border-radius: 10px;
    border-left: 4px solid var(--brand-yellow);
}

.next-steps {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.steps-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--eneva-navy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.steps-title i {
    color: var(--eneva-orange);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
}

/* Vertical connector between step numbers — reads as a timeline */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 56px;
    bottom: -8px;
    width: 2px;
    background: var(--border-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--brand-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-weight: 600;
    color: var(--eneva-navy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-info {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--eneva-navy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-title i {
    color: var(--eneva-orange);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    color: var(--eneva-orange);
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.contact-text {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
}

a.contact-text:hover {
    color: var(--brand-orange);
}

.action-buttons {
    text-align: center;
    margin-bottom: 2rem;
}

.action-btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.primary-btn {
    background: var(--brand-orange);
    color: #fff;
    border: none;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(21, 122, 91, 0.3);
    color: #fff;
    text-decoration: none;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--brand-orange);
    color: var(--brand-orange);
}

.secondary-btn:hover {
    border-color: var(--brand-orange);
    color: #fff;
    background: var(--brand-orange);
    text-decoration: none;
}

@media (min-width: 768px) {
    .success-page {
        padding: 2rem 0;
    }
    .success-title {
        font-size: 3rem;
    }
    .success-subtitle {
        font-size: 1.3rem;
    }
    .detail-row, .success-page .summary-item, .step-item, .contact-item {
        font-size: 1.1rem;
    }
    .step-title, .contact-text {
        font-size: 1.2rem;
    }
}

@media (min-width: 992px) {
    .success-container {
        max-width: 900px;
    }
}

/* ========== Ecomadmin ========== */

/* The storefront footer is not relevant inside the admin panel. */
.ecomadmin-body .footer {
    display: none;
}

/* --- Admin login page --- */
.admin-login-body .footer {
    display: none;
}

.admin-login {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 1rem 3.5rem;
    min-height: 60vh;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 12px 40px rgba(15, 74, 55, 0.10);
}

.admin-login-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.admin-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-orange-soft);
    color: var(--brand-blue-dark);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.admin-login-title {
    color: var(--brand-blue-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.admin-login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.admin-login-submit {
    min-height: 46px;
    font-weight: 600;
    margin-top: 0.25rem;
}

.admin-login-field-error {
    color: #b02a37;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

/* --- Admin shell layout (mobile-first: single column) --- */
.admin-layout {
    display: block;
    max-width: 1320px;
    margin: 0 auto;
    padding: 1rem;
}

.admin-sidebar {
    background: #fff;
    border-right: 1px solid var(--border-color);
}

.admin-sidebar-body {
    padding: 1rem 0.75rem;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--brand-blue-dark);
    padding: 0.25rem 0.75rem 1rem;
}

.admin-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-nav-divider {
    margin: 0.75rem 0.5rem;
    border-color: var(--border-color);
    opacity: 1;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.15rem;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-sidebar-link i {
    font-size: 1.15rem;
    color: var(--brand-grey-light);
    transition: color 0.15s ease;
}

.admin-sidebar-link:hover {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
}

.admin-sidebar-link:hover i {
    color: var(--brand-blue-dark);
}

.admin-sidebar-link.active {
    background: var(--brand-blue-dark);
    color: #fff;
}

.admin-sidebar-link.active i {
    color: #fff;
}

.admin-main {
    min-width: 0;
    padding-top: 0.5rem;
    /* Absorb the negative gutters of any Bootstrap .row inside so the admin
       content never triggers a horizontal scrollbar on small screens.
       clip (not hidden) keeps sticky descendants working. */
    overflow-x: clip;
}

.admin-menu-toggle {
    margin-bottom: 1rem;
}

/* Desktop: static two-column layout with a persistent sidebar */
@media (min-width: 992px) {
    .admin-layout {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .admin-sidebar {
        position: sticky;
        top: 1.5rem;
        align-self: start;
        background: #fff;
        border-radius: 14px;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow);
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
    }

    /* Bootstrap's responsive offcanvas sets `.offcanvas-lg .offcanvas-body`
       to `display:flex` (row) at >=lg, which laid the brand and nav links
       side-by-side. Force the sidebar body back to a vertical stack. */
    .admin-sidebar .admin-sidebar-body {
        display: block;
        flex-grow: 1;
        padding: 1rem 0.75rem;
        overflow-y: auto;
    }

    .admin-main {
        padding-top: 0;
    }
}

.dashboard-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Equal-height only when the card is a direct child of a grid column.
   A standalone dashboard-card (e.g. Recent Orders) must size to its own
   content — otherwise height:100% balloons it to fill the admin column. */
.row > [class*="col"] > .dashboard-card {
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Compact stat cards */
.dashboard-card .card-body {
    padding: 1rem 0.75rem;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 1.6rem;
    opacity: 0.18;
    color: var(--brand-blue-dark);
}

.nav-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
    height: 100%;
}

.nav-card:hover {
    border-color: var(--brand-blue-dark);
    background: var(--brand-blue-soft);
    color: inherit;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.nav-icon {
    font-size: 2.5rem;
    color: var(--brand-blue-dark);
    margin-bottom: 1rem;
}

.revenue-card {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: white;
}

.revenue-card .stat-number,
.revenue-card .stat-label {
    color: white;
}

.revenue-card .stat-icon {
    color: rgba(255,255,255,0.3);
}

.ecomadmin-product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.ecomadmin-product-thumb-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

.ecomadmin-empty-icon {
    font-size: 3rem;
    color: var(--border-color);
}

.ecomadmin-img-preview {
    max-width: 200px;
    border-radius: 5px;
}

.ecomadmin-img-preview-sm {
    max-width: 100px;
    border-radius: 5px;
}

.ecomadmin-slider-thumb {
    width: 120px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.ecomadmin-slider-preview {
    max-width: 100%;
    width: 320px;
    border-radius: 8px;
}

/* Collapsible "Advanced options" block in the admin editors: the everyday edit
   stays short, but every field is still in the DOM — an unrendered checkbox
   would post as False and silently switch its feature off on save. */
.ecomadmin-advanced {
    border: 1px solid var(--border-color, #e3e6ea);
    border-radius: 8px;
    background: #fbfcfd;
}

.ecomadmin-advanced-toggle {
    cursor: pointer;
    padding: .7rem 1rem;
    font-weight: 600;
    font-size: .9rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
}

.ecomadmin-advanced-toggle::-webkit-details-marker { display: none; }

.ecomadmin-advanced-toggle::before {
    content: "\f231";
    font-family: "bootstrap-icons";
    font-weight: normal;
    transition: transform .2s ease;
}

.ecomadmin-advanced[open] > .ecomadmin-advanced-toggle::before { transform: rotate(90deg); }

.ecomadmin-advanced[open] > .ecomadmin-advanced-toggle {
    border-bottom: 1px solid var(--border-color, #e3e6ea);
}

.ecomadmin-advanced-body { padding: 1rem; }

@media (prefers-reduced-motion: reduce) {
    .ecomadmin-advanced-toggle::before { transition: none; }
}

/* CKEditor 5 in the product editor — a long description needs room to work in. */
.ck-editor__editable_inline { min-height: 420px; }
.ck.ck-editor { max-width: 100%; }
.ck-editor__editable_inline h2 { font-size: 1.25rem; }
.ck-editor__editable_inline h3 { font-size: 1.1rem; }

.ecomadmin-video-preview {
    max-width: 480px;
    border-radius: 10px;
    overflow: hidden;
}

/* Live preview of the 🎁 FREE WITH PURCHASE block inside the product editor —
   staff see the storefront styling while they type. */
.free-preview {
    border: 1px solid rgba(196, 143, 22, .38);
    background: linear-gradient(135deg, #fffdf7 0%, #f4fbf6 100%);
    border-radius: 10px;
    padding: 1rem 1.1rem;
}

.free-preview-title {
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .04em;
    color: var(--bb-forest);
    margin-bottom: .7rem;
}

.free-preview-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 576px) { .free-preview-list { grid-template-columns: 1fr 1fr; } }

.free-preview-list li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .84rem;
    color: var(--bb-ink);
}

.free-preview-list li i { color: var(--bb-green); font-size: 1rem; line-height: 1.35; }
.free-preview-list li small { display: block; color: var(--bb-muted); font-size: .72rem; }
.free-preview-empty { color: var(--bb-muted); font-style: italic; }

.formset-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.formset-item.deleted {
    opacity: 0.5;
    background: #fff3cd;
}

.order-item-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.order-item-card:hover {
    border-color: #D4AF37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.order-item-card.deleted {
    opacity: 0.5;
    background: #fff3cd;
}

.order-edit .summary-card {
    position: sticky;
    top: 80px;
}

.order-edit .form-control,
.order-edit .form-select {
    border-radius: 8px;
}

.btn-remove-item {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.btn-remove-item:hover {
    background: #c82333;
    color: white;
}

/* ========== Thank you page (standalone style) ========== */
body.thank-you-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    min-height: 100vh;
    padding: 2rem;
}

body.thank-you-page .main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.thank-you-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}

.thank-you-container .success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.thank-you-container .success-icon i {
    font-size: 4rem;
    color: var(--text-primary);
}

.thank-you-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.thank-you-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.thank-you-page .order-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.thank-you-page .order-id {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 1rem;
}

.thank-you-page .order-details {
    text-align: left;
    margin-top: 1rem;
}

.thank-you-page .order-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.thank-you-page .order-detail-item:last-child {
    border-bottom: none;
}

.thank-you-page .detail-label {
    font-weight: 600;
    color: #666;
}

.thank-you-page .detail-value {
    color: #333;
}

.thank-you-page .next-steps {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #D4AF37;
}

.thank-you-page .next-steps h4 {
    color: #D4AF37;
    margin-bottom: 1rem;
}

.thank-you-page .next-steps ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

.thank-you-page .next-steps li {
    padding: 0.5rem 0;
    color: #666;
}

.thank-you-page .next-steps li i {
    color: #D4AF37;
    margin-right: 0.5rem;
}

.thank-you-page .action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.thank-you-page .btn {
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.thank-you-page .btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: var(--text-primary);
}

.thank-you-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
}

.thank-you-page .btn-secondary {
    background: #f8f9fa;
    color: #333;
}

.thank-you-page .btn-secondary:hover {
    background: #e9ecef;
    color: #333;
}

@media (max-width: 768px) {
    .thank-you-container {
        padding: 2rem 1.5rem;
    }
    .thank-you-title {
        font-size: 2rem;
    }
    .thank-you-page .action-buttons {
        flex-direction: column;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #800080;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== Homepage hero slider ========== */
.hero-slider {
    margin-bottom: 1.5rem;
}

.hero-slider .carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(15, 74, 55, 0.14);
    background: var(--brand-blue-soft);
}

.hero-slider .carousel-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.hero-slider .carousel-indicators {
    /* Compensate the 17px transparent hit-area padding so the dots keep
       their original optical position */
    margin-bottom: calc(0.5rem - 17px);
}

.hero-slider .carousel-indicators [data-bs-target] {
    /* 10px visual dot + 17px transparent padding = 44px touch target */
    box-sizing: content-box;
    width: 10px;
    height: 10px;
    padding: 17px;
    border-radius: 50%;
    background-color: #fff;
    background-clip: content-box;
    opacity: 0.55;
    border: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-slider .carousel-indicators .active {
    opacity: 1;
    background-color: var(--eneva-red);
    transform: scale(1.15);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 12%;
}

/* ========== Mobile: two product cards per row ========== */
@media (max-width: 767.98px) {
    .shop-product-list .row.g-3 {
        --bs-gutter-x: 0.6rem;
        --bs-gutter-y: 0.6rem;
    }

    .product-card {
        border-radius: 12px;
        margin-bottom: 0;
    }

    .product-card .card-body {
        padding: 0.7rem !important;
    }

    .product-card .product-card-actions {
        padding: 0 0.7rem 0.7rem !important;
    }

    .product-card .product-title {
        font-size: 0.82rem;
        line-height: 1.25;
        min-height: 2.05rem;
        margin-bottom: 0.3rem;
    }

    .product-card .product-category {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .product-card .product-price {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

    .product-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.45rem;
        top: 6px;
        right: 6px;
        border-radius: 12px;
    }

    .shop-product-list .product-card-actions .add-to-cart-btn,
    .shop-product-list .product-card-actions .btn-order-now {
        padding: 0.5rem 0.35rem;
        font-size: 0.78rem;
        min-height: 44px;
    }

    .shop-product-list .product-card-actions .btn i {
        margin-right: 0.25rem !important;
    }

    .btn-order-now {
        margin-top: 0.4rem;
    }
}

/* ========== Momentum Veridian mockup redesign ========== */
.site-header {
    background: #ffffff;
    color: var(--brand-blue-dark);
    padding: 0.85rem 0 1rem;
    box-shadow: 0 2px 12px rgba(15, 74, 55, 0.07);
    border-bottom: 1px solid var(--border-color);
}

.site-header .container,
.main-content > .container,
.hero-slider .container {
    max-width: 1180px;
}

.site-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--brand-blue-dark);
    text-decoration: none;
    min-width: 0;
}

.brand:hover {
    color: var(--brand-blue-dark);
}

.brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    flex: 0 0 auto;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Two-tier wordmark lockup: bold forest-green "Momentum" over a
   letterspaced gold "VERIDIAN" echoing the logo's gold ring. */
.brand-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    min-width: 0;
}

.brand-name-main {
    font-size: clamp(1.1rem, 2.2vw, 1.42rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1;
    color: var(--brand-blue-dark);
}

.brand-name-sub {
    font-size: clamp(0.68rem, 1.3vw, 0.82rem);
    font-weight: 700;
    text-transform: uppercase;
    /* Wide tracking gives the sub-line a premium wordmark feel; trailing
       tracking space is absorbed so both lines stay optically aligned. */
    letter-spacing: 0.34em;
    margin-right: -0.34em;
    line-height: 1;
    color: var(--brand-yellow-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.btn-cart,
.btn-logout {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--brand-blue-dark);
    text-decoration: none;
    background: var(--brand-blue-soft);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    font-weight: 800;
    box-shadow: none;
}

.btn-logout {
    padding: 0 1.05rem;
}

.btn-logout:hover {
    color: #fff;
    background: var(--eneva-red);
    border-color: var(--eneva-red);
}

.btn-cart {
    padding: 0 0.9rem;
    position: relative;
    font-size: 1.3rem;
}

.btn-cart-label {
    font-size: 0.95rem;
    font-weight: 800;
}

.btn-cart:hover {
    color: #fff;
    background: var(--eneva-red);
    border-color: var(--eneva-red);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--eneva-red);
    color: #fff;
    border: 2px solid #fff;
    font-size: 0.68rem;
    line-height: 16px;
    text-align: center;
    font-weight: 800;
}

/* Header primary nav: Categories dropdown + Get a Quote */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0 0.9rem;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--brand-blue-dark);
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    white-space: nowrap;
}

.header-nav-link:hover,
.header-nav-link.active,
.header-nav-drop.show .header-nav-link {
    background: var(--brand-blue-soft);
    color: var(--eneva-red);
}

.header-nav-link:focus-visible {
    outline: 2px solid var(--eneva-red);
    outline-offset: 2px;
}

.header-dropdown {
    min-width: 250px;
    padding: 0.4rem;
    margin-top: 0.3rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 74, 55, 0.14);
}

/* Invisible bridge so hover doesn't drop while crossing the toggle→panel gap */
.header-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.45rem;
    height: 0.45rem;
}

.header-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--brand-blue-dark);
}

.header-dropdown .dropdown-item i {
    width: 1.5rem;
    text-align: center;
    font-size: 1.05rem;
    color: var(--eneva-red);
}

.header-dropdown .dropdown-item:hover,
.header-dropdown .dropdown-item:focus {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
}

.header-dropdown .dropdown-item.active {
    background: var(--brand-blue-soft);
    color: var(--eneva-red);
}

.header-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.35rem 0.35rem 0.35rem 0;
    min-height: 52px;
    box-shadow: 0 4px 12px rgba(15, 74, 55, 0.08);
}

/* Keyboard/caret focus ring on the whole pill (the inner input has outline:0) */
.header-search:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(21, 122, 91, 0.18);
}

.header-search-icon {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-left: 0.9rem;
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text-primary);
    font-weight: 700;
    background: transparent;
}

.header-search input::placeholder {
    color: var(--text-secondary);
    opacity: 1;
}

.header-search button {
    min-height: 44px;
    padding: 0 1.35rem;
    border: 0;
    border-radius: 10px;
    background: var(--eneva-red);
    color: #fff;
    font-weight: 800;
}

.header-search button:hover {
    background: var(--eneva-orange-dark);
}

/* Standalone search bar on the product list page (separate from the top bar) */
.list-search {
    margin: 0 0 1.5rem;
}

.main-content {
    padding: 1rem 0 2rem;
    background: var(--light-bg);
}

.hero-slide {
    display: block;
    color: #fff;
    text-decoration: none;
    position: relative;
}

.hero-slide-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.hero-slide-gradient {
    min-height: 300px;
    padding: clamp(2.2rem, 6vw, 5.5rem) clamp(1.8rem, 7vw, 4.5rem);
    background: linear-gradient(115deg, var(--brand-blue-dark) 0%, var(--brand-blue) 62%, #1f9c73 100%);
}

.hero-title {
    max-width: 670px;
    font-size: clamp(2.3rem, 7vw, 5.4rem);
    line-height: 0.98;
    margin: 1.15rem 0 0.7rem;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-highlight {
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 1.05rem;
    border-radius: 999px;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
    font-weight: 900;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.45rem);
    margin-bottom: 1.35rem;
    font-weight: 700;
    opacity: 0.92;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 56px;
    padding: 0 1.8rem;
    border-radius: 10px;
    background: var(--eneva-red);
    color: #fff;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(15, 74, 55, 0.26);
}

.hero-btn:hover {
    color: #fff;
    background: var(--eneva-orange-dark);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    opacity: 1;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #fff;
    background-size: 42% 42%;
    box-shadow: 0 8px 18px rgba(15, 74, 55, 0.18);
    filter: none;
}

.hero-slider .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f4a37'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.hero-slider .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f4a37'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.hero-slider .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-slider .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--brand-yellow);
}

.trust-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.35rem;
    margin-bottom: 1.35rem;
    box-shadow: 0 8px 20px rgba(39, 43, 58, 0.08);
}

.trust-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #292a3d;
}

.trust-bar-item i {
    color: var(--eneva-red);
    font-size: 1.45rem;
}

.trust-bar-item strong,
.trust-bar-item span {
    display: block;
}

.trust-bar-item strong {
    font-size: 1rem;
    line-height: 1.1;
}

.trust-bar-item span {
    color: #8b8e9a;
    font-size: 0.85rem;
    font-weight: 700;
}

.trust-bar-divider {
    width: 1px;
    height: 38px;
    background: #e7e9ef;
}

.section-block {
    margin-bottom: 1.5rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--brand-blue-dark);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 900;
}

.section-link {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

/* Non-link counterpart of .section-link (e.g. "12 products" count) */
.section-count {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Align the empty-state Bootstrap button with the homepage button scale
   without touching the global .btn-primary */
.shop-product-list .btn-primary {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    font-weight: 800;
    min-height: 44px;
}

.category-scroller {
    display: grid;
    /* auto-fill instead of a fixed 10 columns so any category count fills
       the row without phantom empty tracks */
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 1rem;
}

.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-muted);
    text-decoration: none;
    min-width: 0;
    font-weight: 900;
    font-size: 0.86rem;
    text-align: center;
}

.cat-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff;
    color: var(--brand-blue);
    box-shadow: 0 8px 20px rgba(15, 74, 55, 0.10);
    font-size: 2rem;
    overflow: hidden;
}

/* Uploaded category icon image – fills the rounded tile in place of the font icon */
.cat-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.cat-tile:hover,
.cat-tile.active {
    color: var(--eneva-red);
}

.cat-tile:hover .cat-icon,
.cat-tile.active .cat-icon {
    color: var(--eneva-red);
    transform: translateY(-2px);
}

.hot-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    min-height: 32px;
    padding: 0 0.85rem;
    margin-left: 0.5rem;
    border-radius: 999px;
    background: #ffdfe2;
    color: var(--eneva-red);
    font-size: 0.78rem;
    vertical-align: middle;
}

.deal-countdown {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 900;
    color: #7c8190;
}

.cd-box {
    min-width: 42px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 1rem;
}

.cd-box-red {
    background: var(--eneva-red);
}

.shop-product-list .product-grid {
    align-items: stretch;
}

.shop-product-list .product-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 74, 55, 0.10);
    cursor: default;
}

.shop-product-list .product-card:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 74, 55, 0.14);
}

.shop-product-list .product-image {
    aspect-ratio: 1.2 / 1;
    background: var(--brand-blue-soft);
}

.shop-product-list .product-grid > div:nth-child(3n + 2) .product-image {
    background: #f6efdd;
}

.shop-product-list .product-grid > div:nth-child(3n) .product-image {
    background: var(--light-bg-warm);
}

.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--eneva-red);
    color: #fff;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 5px 12px rgba(21, 122, 91, 0.28);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--brand-blue);
    font-size: clamp(4rem, 10vw, 8rem);
}

.shop-product-list .product-card .card-body {
    padding: 1.05rem 1.05rem 0.8rem !important;
}

.shop-product-list .product-card .product-category {
    color: var(--brand-blue);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.shop-product-list .product-card .product-title {
    color: var(--text-primary);
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.35;
    min-height: 2.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.product-rating i {
    color: var(--brand-yellow-dark);
}

.rating-value {
    color: var(--text-muted);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}

.shop-product-list .product-card .product-price {
    color: var(--eneva-red);
    font-size: 1.35rem;
    line-height: 1;
    margin: 0;
}

.old-price {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 0.95rem;
    font-weight: 700;
}

.shop-product-list .product-card .product-card-actions {
    display: grid;
    gap: 0.55rem;
    padding: 0 1.05rem 1.05rem !important;
    border-top: 0;
}

.deal-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    border: 2px solid var(--eneva-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.deal-btn:hover {
    transform: translateY(-1px);
}

.deal-btn-order {
    background: var(--veridian-green);
    color: #ffffff;
    border-color: var(--veridian-green);
    box-shadow: 0 7px 14px rgba(21, 122, 91, 0.22);
}

.deal-btn-cart {
    background: #fff;
    color: var(--eneva-red);
    border-color: var(--eneva-red);
}

.deal-btn-order:hover {
    color: #ffffff;
    background: var(--veridian-green-dark);
    border-color: var(--veridian-green-dark);
}

.deal-btn-cart:hover {
    color: #fff;
    background: var(--eneva-red);
    border-color: var(--eneva-red);
}

/* ===== Value props (home body section) ===== */
.value-props {
    padding: 0.25rem 0 2rem;
}

.value-props-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.value-prop {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.value-prop-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--brand-orange-soft);
    /* Emerald icon — matches .feature-strip-icon so both 4-up rows read
       as the same component */
    color: var(--brand-blue);
    font-size: 1.35rem;
}

.value-prop-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.value-prop-text strong {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.98rem;
}

.value-prop-text span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

/* On the about page the value props become self-contained cards so the
   "Why choose us" grid reads as deliberate proof, not a loose icon list. */
.about-page .value-props {
    padding: 0 0 2rem;
}

.about-page .value-prop {
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 1.35rem 1.25rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.about-page .value-prop:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 74, 55, 0.12);
}

.about-page .value-prop-icon {
    width: 50px;
    height: 50px;
}

@media (min-width: 768px) {
    .value-props-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .about-page .value-props-grid {
        gap: 1.25rem;
    }
}

/* ===== Newsletter band (home body section) ===== */
.newsletter-section {
    padding: 0 0 2rem;
}

.newsletter-band {
    background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.newsletter-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.newsletter-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.4rem;
}

.newsletter-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.1;
}

.newsletter-sub {
    color: rgba(255, 255, 255, 0.82);
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
}

.newsletter-form {
    display: flex;
    gap: 0.6rem;
    width: 100%;
}

.newsletter-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 46px;
    padding: 0 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 3px rgba(203, 168, 94, 0.25);
}

.newsletter-btn {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 10px;
    background: var(--brand-yellow);
    color: var(--brand-blue-dark);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-btn:hover {
    background: var(--brand-yellow-dark);
}

@media (min-width: 992px) {
    .newsletter-band {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 2rem;
    }

    .newsletter-form {
        width: auto;
        flex: 0 0 420px;
        max-width: 420px;
    }
}

/* ===== Main footer (light) ===== */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1rem;
    color: var(--text-muted);
    /* Sticky footer (body is a flex column) */
    margin-top: auto;
    overflow-x: hidden;
}

.footer-col {
    padding: 0.5rem 0;
}

.footer .container {
    max-width: 1180px;
}

.footer-logo {
    width: 56px;
    max-width: 100%;
    max-height: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.footer-brand {
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--brand-blue-dark);
}

.footer-tagline {
    max-width: 300px;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-top: 0.85rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #ffffff;
    color: var(--brand-blue-dark);
    border: 1px solid var(--border-color);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
}

.footer .footer-heading {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--brand-blue);
}

.footer-contact li,
.footer-contact a {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    /* Long email/address must wrap instead of overflowing the column on
       narrow screens (was clipping past the viewport edge). */
    min-width: 0;
}

.footer-contact span,
.footer-contact a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-contact i {
    color: var(--brand-blue);
    font-size: 1.05rem;
    margin-top: 0.1rem;
    flex: 0 0 auto;
}

.footer-phone {
    color: var(--brand-blue-dark);
    font-weight: 700;
    font-size: 1.02rem;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer a:hover {
    color: var(--brand-blue);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1.75rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-bottom p {
    color: var(--text-muted);
}

.footer-credit {
    color: var(--text-muted);
}

.footer-credit a {
    color: var(--brand-blue);
    font-weight: 600;
}

.footer-credit a:hover {
    color: var(--brand-blue-dark);
}

.footer-payments {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.pay-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 0.65rem;
    border-radius: 5px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--brand-blue-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .newsletter-title {
        font-size: 1.25rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-payments {
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    .category-scroller {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scroll-snap-type: x mandatory;
    }

    .cat-tile {
        flex: 0 0 82px;
        scroll-snap-align: start;
    }

    .cat-icon {
        width: 66px;
        height: 66px;
        border-radius: 16px;
        font-size: 1.7rem;
    }
}

@media (max-width: 767.98px) {
    .site-header {
        padding: 0.7rem 0 0.85rem;
    }

    .site-header-top {
        margin-bottom: 0;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .site-header-top {
        flex-wrap: wrap;
        row-gap: 0.15rem;
    }

    /* Nav drops to its own full-width row below brand + cart on small screens;
       wraps as a safety net so no item ever clips at 320px */
    .header-nav {
        order: 3;
        flex-basis: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .header-nav-link {
        padding: 0 0.55rem;
        font-size: 0.92rem;
    }

    .header-dropdown {
        min-width: 100%;
    }

    .btn-cart {
        padding: 0 0.7rem;
        min-height: 44px;
        font-size: 1.15rem;
    }

    .btn-cart-label {
        font-size: 0.88rem;
    }

    .header-search {
        min-height: 48px;
        border-radius: 11px;
        gap: 0.3rem;
    }

    .header-search button {
        min-height: 44px;
        padding: 0 0.9rem;
    }

    .main-content {
        padding-top: 0.75rem;
    }

    .trust-bar {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 0.9rem 1rem;
    }

    .trust-bar-divider {
        width: 100%;
        height: 1px;
    }

    .section-head {
        align-items: flex-start;
        /* Wrap the deal countdown below the title on very narrow phones (≈320px)
           so it never forces horizontal scroll; stays inline where it fits. */
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .deal-countdown {
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .cd-box {
        min-width: 32px;
        height: 31px;
        border-radius: 7px;
        font-size: 0.85rem;
    }

    .shop-product-list .product-image {
        aspect-ratio: 1 / 1;
    }

    .shop-product-list .product-card .product-title {
        font-size: 0.84rem;
        min-height: 2.25rem;
    }

    .product-rating,
    .old-price {
        font-size: 0.74rem;
    }

    .shop-product-list .product-card .product-price {
        font-size: 1.05rem;
    }

    .discount-badge {
        top: 8px;
        left: 8px;
        font-size: 0.62rem;
        border-radius: 6px;
        padding: 0.28rem 0.42rem;
    }

    .deal-btn {
        min-height: 44px;
        font-size: 0.78rem;
    }

}

/* Final product action overrides: older button rules also target .add-to-cart-btn. */
.shop-product-list .product-card-actions .deal-btn-cart.add-to-cart-btn {
    background: #fff !important;
    color: var(--eneva-red) !important;
    border-color: var(--eneva-red) !important;
}

.shop-product-list .product-card-actions .deal-btn-cart.add-to-cart-btn i,
.shop-product-list .product-card-actions .deal-btn-cart.add-to-cart-btn span {
    color: inherit !important;
}

.shop-product-list .product-card-actions .deal-btn-cart.add-to-cart-btn:hover {
    background: var(--eneva-red) !important;
    color: #fff !important;
    border-color: var(--eneva-red) !important;
}

.shop-product-list .product-grid {
    overflow: visible;
}

/* ========== Privacy policy / static legal pages ========== */
.policy-page {
    padding: 1rem 0 2rem;
}

.policy-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
    max-width: 860px;
    margin: 0 auto;
    color: var(--text-primary);
    line-height: 1.7;
}

.policy-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.policy-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-blue-dark);
    margin: 1.75rem 0 0.75rem;
}

.policy-list {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.policy-list li {
    margin-bottom: 0.5rem;
}

.policy-card a {
    color: var(--brand-blue-dark);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .policy-card {
        padding: 2.5rem 3rem;
    }

    .policy-heading {
        font-size: 1.3rem;
    }
}

/* ===== About Us page ===== */
.about-page {
    padding: 1rem 0 2rem;
}

.about-page .section-title {
    margin-bottom: 1rem;
}

/* Hero — emerald field with the logo's gold-ring motif echoed as a soft
   radial glow behind the copy (the page's signature element). */
.about-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(120% 140% at 88% -10%, rgba(203, 168, 94, 0.28) 0%, rgba(203, 168, 94, 0) 42%),
        linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 100%);
    border-radius: 22px;
    padding: 2.5rem 1.6rem 2.75rem;
    margin-bottom: 1.75rem;
    color: #fff;
    text-align: center;
}

/* Concentric gold rings, off the top-right corner — the brand ring, abstracted */
.about-hero::before {
    content: "";
    position: absolute;
    top: -95px;
    right: -95px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(203, 168, 94, 0.45);
    box-shadow:
        0 0 0 22px rgba(203, 168, 94, 0.06),
        inset 0 0 0 14px rgba(203, 168, 94, 0.10);
    z-index: -1;
    pointer-events: none;
}

.about-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.about-hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--brand-yellow);
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    position: relative;
}

.about-hero-eyebrow::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-yellow);
}

.about-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin: 0 auto 1rem;
}

.about-hero-text {
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    max-width: 600px;
    margin: 0 auto;
}

/* Section eyebrow + title header used across the about page */
.about-section-head {
    margin-bottom: 1.1rem;
}

.about-section-head--center {
    text-align: center;
}

.about-section-head--center .section-title {
    justify-content: center;
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-yellow-dark);
    margin-bottom: 0.45rem;
}

.about-eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-yellow);
}

.about-section-head--center .about-eyebrow::before {
    display: none;
}

/* Reset the inner card header spacing so the eyebrow hugs its title */
.about-card .about-section-head {
    margin-bottom: 1rem;
}
.about-card .about-section-head .section-title {
    margin-bottom: 0;
}

/* Stats — one unified band with hairline dividers instead of four floating
   boxes, so the numbers read as a single proof-point statement. */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.about-stat {
    padding: 1.35rem 0.85rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* Two-up grid: only the left column keeps a right divider */
.about-stat:nth-child(2n) {
    border-right: 0;
}
.about-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.about-stat-number {
    font-size: clamp(1.65rem, 5vw, 2.15rem);
    font-weight: 800;
    color: var(--brand-blue-dark);
    line-height: 1;
    letter-spacing: -0.02em;
    padding-bottom: 0.5rem;
    position: relative;
}

/* Gold underscore — the ring/gold accent tying stats to the hero */
.about-stat-number::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand-yellow);
}

.about-stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.about-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.about-card p {
    margin-bottom: 1rem;
}

.about-card .section-title + p {
    margin-top: 0;
}

/* Vision & Mission two-card grid */
.about-mv {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-mv-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1.75rem 1.5rem;
    color: var(--text-primary);
}

/* Emerald hairline down the leading edge; the Mission card switches to gold */
.about-mv-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand-blue);
}

.about-mv-card--mission::before {
    background: var(--brand-yellow);
}

.about-mv-card p {
    margin: 0;
    line-height: 1.7;
}

.about-mv-icon,
.about-pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}

/* Mission card reads gold to pair with its accent edge */
.about-mv-card--mission .about-mv-icon {
    background: rgba(203, 168, 94, 0.16);
    color: var(--brand-yellow-dark);
}

.about-mv-icon .bi,
.about-pillar-icon .bi {
    display: block;
    line-height: 1;
}

.about-mv-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Core pillars three-card grid */
.about-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-pillar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--brand-yellow);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 1.5rem 1.25rem;
}

.about-pillar-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-blue-dark);
    margin-bottom: 0.4rem;
}

.about-pillar p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Product portfolio category pills */
.about-portfolio-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.about-portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    min-height: 44px;
    padding: 0 1.1rem;
    border-radius: 999px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.about-portfolio-link:hover,
.about-portfolio-link:focus {
    background: var(--brand-blue);
    color: #fff;
}

/* Tailored services numbered rows */
.about-service {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.about-service:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.about-service-num {
    flex: 0 0 auto;
    width: 2.9rem;
    height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(203, 168, 94, 0.12);
    box-shadow: inset 0 0 0 1.5px var(--brand-yellow);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-yellow-dark);
    line-height: 1;
}

.about-service-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-blue-dark);
    margin-bottom: 0.3rem;
}

.about-service p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Message from the CEO */
.ceo-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1.75rem 1.35rem 1.75rem;
    margin-bottom: 1.5rem;
}

.ceo-message-head {
    flex-shrink: 0;
}

.ceo-message-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.ceo-message-photo {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--brand-yellow), var(--shadow);
    background: var(--brand-blue-soft);
}

.ceo-message-caption {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ceo-message-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--brand-blue-dark);
    line-height: 1.2;
}

.ceo-message-role {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-yellow-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.ceo-message-body {
    position: relative;
    color: var(--text-primary);
    line-height: 1.75;
}

.ceo-message-eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--brand-yellow-dark);
    margin-bottom: 0.5rem;
}

.ceo-message-quote {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--brand-orange-soft);
    margin-bottom: 0.25rem;
}

.ceo-message-title {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 800;
    color: var(--brand-blue-dark);
    margin-bottom: 0.9rem;
}

.ceo-message-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.ceo-message-signoff {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.ceo-message-signoff-warm {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.ceo-message-signoff-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--brand-blue-dark);
}

.ceo-message-signoff-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-blue);
}

@media (min-width: 768px) {
    .about-hero {
        padding: 3rem 2.5rem;
    }

    .ceo-message {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 2.25rem;
        padding: 2.5rem 2.5rem;
    }

    .ceo-message-head {
        position: sticky;
        top: 1.5rem;
    }

    .ceo-message-photo {
        width: 190px;
        height: 190px;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    /* 4-up: every cell keeps its right divider except the last one */
    .about-stat {
        border-bottom: 0;
        padding: 1.75rem 1rem;
    }
    .about-stat:nth-child(2n) {
        border-right: 1px solid var(--border-color);
    }
    .about-stat:last-child {
        border-right: 0;
    }

    .about-card {
        padding: 2.25rem 2.5rem;
    }

    .about-mv {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .about-mv-card {
        padding: 2rem 1.75rem;
    }

    .about-pillars {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* ========== Momentum Veridian – homepage sections ========== */

/* Feature strip (delivery / payments / returns / support) */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    margin: 0 0 1.5rem;
    box-shadow: var(--shadow);
}

.feature-strip-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-primary);
    min-width: 0;
}

.feature-strip-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

/* Collapse the icon-font line box so the glyph itself is centred in the tile
   (an uncollapsed line box would flex-centre as a tall block, pushing the
   glyph to the top-left corner). */
.feature-strip-icon .bi {
    display: block;
    line-height: 1;
    font-size: 1.35rem;
    color: inherit;
}

.feature-strip-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.feature-strip-item strong {
    font-size: 0.98rem;
    line-height: 1.2;
}

.feature-strip-item span {
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.25;
}

/* Bulk orders banner */
.bulk-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    background: linear-gradient(120deg, var(--brand-blue-soft) 0%, #d4ebe0 100%);
    border-radius: 16px;
    padding: 1.6rem 1.9rem;
    margin: 0 0 1.5rem;
}

.bulk-banner-body {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.bulk-banner-icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue-dark);
    font-size: 2.1rem;
}

.bulk-banner-title {
    margin: 0 0 0.2rem;
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    font-weight: 800;
    color: var(--brand-blue-dark);
}

.bulk-banner-text {
    margin: 0;
    max-width: 460px;
    color: #3f5a50;
    font-weight: 600;
}

.bulk-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0 1.6rem;
    border-radius: 10px;
    background: var(--brand-blue-dark);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(15, 74, 55, 0.22);
}

.bulk-banner-btn:hover {
    color: #fff;
    background: var(--brand-blue);
}

/* Value proposition row */
@media (max-width: 767.98px) {
    .bulk-banner {
        padding: 1.4rem 1.25rem;
    }

    .bulk-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .feature-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ==========================================================================
   BEST BATTERY DESIGN SYSTEM
   Implements design/Balletry Energy Product UI Mockups.pdf.
   Mobile-first: base rules target small screens, min-width queries enhance.
   ========================================================================== */

body {
    background: var(--bb-cream);
    color: var(--bb-ink);
    font-family: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.bb-page .main-content {
    padding: 0 0 2rem;
}

.bb-container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 14px;
}

/* Reusable premium surface: rounded, hairline border, soft shadow. */
.bb-surface {
    background: var(--bb-card);
    border: 1px solid var(--bb-line);
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-card-shadow);
}

/* ------------------------------------------------- pinned top bar + header */
/* The green top strip and the main header pin together as one sticky block.
   Wrapping them (instead of sticking each one) avoids hard-coding the strip's
   height as the header's `top` offset — it wraps to two lines on narrow
   phones, which would leave a gap or an overlap between the two. */
.bb-topstack {
    position: sticky;
    top: 0;
    z-index: 1040;
}

/* --------------------------------------------------------------- top strip */
.bb-topbar {
    background: var(--bb-green-light);
    color: #fff;
    font-size: .78rem;
    border-bottom: 2px solid var(--bb-gold);
}

.bb-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .9rem;
    min-height: 40px;
    padding-block: .35rem;
}

.bb-topbar-nav {
    display: none;
    align-items: center;
    gap: 1.15rem;
}

.bb-topbar-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .04em;
    font-size: .74rem;
    padding: .2rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s var(--bb-ease), color .2s var(--bb-ease);
}

.bb-topbar-nav a:hover,
.bb-topbar-nav a.is-active {
    border-bottom-color: #fff;
}

.bb-topbar-phone {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

@media (min-width: 992px) {
    .bb-topbar-nav { display: flex; }
}

/* ------------------------------------------------------------- main header */
.bb-header {
    background: var(--bb-card);
    border-bottom: 1px solid var(--bb-line);
}

/* Phones: logo + actions on the first row, search full-width underneath —
   a search box squeezed between them ends up unusably narrow. */
.bb-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .6rem;
    padding-block: .6rem;
}

.bb-search { order: 3; flex: 1 0 100%; }
.bb-header-actions { margin-left: auto; }

.bb-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.bb-brand img {
    height: 42px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.bb-search {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--bb-cream-deep);
    border: 1px solid var(--bb-line);
    border-radius: var(--bb-radius-pill);
    padding: .35rem .5rem .35rem .9rem;
    min-width: 0;
    transition: box-shadow .25s var(--bb-ease), border-color .25s var(--bb-ease);
}

.bb-search:focus-within {
    border-color: rgba(0, 161, 79, .45);
    box-shadow: var(--bb-glow-green);
}

.bb-search i {
    color: var(--bb-muted);
    flex: 0 0 auto;
}

.bb-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: .9rem;
    color: var(--bb-ink);
    padding: .45rem 0;
}

.bb-search input::placeholder { color: #9aa79f; }

.bb-search button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--bb-green);
    font-weight: 700;
    font-size: .88rem;
    padding: .5rem .7rem;
    min-height: 44px;
    border-radius: var(--bb-radius-pill);
    cursor: pointer;
    transition: color .2s var(--bb-ease);
}

.bb-search button:hover { color: var(--bb-forest); }

.bb-header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
}

.bb-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--bb-line);
    background: var(--bb-cream-deep);
    color: var(--bb-forest);
    font-size: 1.05rem;
    text-decoration: none;
    position: relative;
    transition: transform .2s var(--bb-ease), box-shadow .25s var(--bb-ease), background .2s var(--bb-ease);
}

.bb-icon-btn:hover {
    background: #fff;
    color: var(--bb-green);
    transform: translateY(-1px);
    box-shadow: var(--bb-glow-green);
}

.bb-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--bb-radius-pill);
    background: #e5352a;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}

.bb-header-cta {
    display: none;
    align-items: center;
    gap: .4rem;
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    border-radius: var(--bb-radius-pill);
    padding: .7rem 1.15rem;
    min-height: 44px;
    text-decoration: none;
    box-shadow: var(--bb-glow-green);
    transition: transform .2s var(--bb-ease), box-shadow .25s var(--bb-ease);
}

.bb-header-cta:hover {
    color: #fff;
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--bb-glow-green-strong);
}

/* Current page: gold pill so the header CTA still reads as "you are here". */
.bb-header-cta.is-active {
    background: linear-gradient(135deg, var(--bb-gold) 0%, var(--bb-gold-dark) 100%);
    box-shadow: var(--bb-glow-gold);
}

.bb-header-cta.is-active:hover {
    box-shadow: var(--bb-glow-gold-strong);
}

.bb-burger {
    display: inline-flex;
}

@media (min-width: 768px) {
    .bb-header-inner { flex-wrap: nowrap; }
    .bb-search { order: 0; flex: 1 1 auto; }
}

@media (min-width: 992px) {
    .bb-header-inner { gap: 1rem; padding-block: .85rem; }
    .bb-brand img { height: 52px; max-width: 190px; }
    .bb-header-cta { display: inline-flex; }
    .bb-burger { display: none; }
}

/* Mobile drawer nav */
.bb-mobile-nav {
    border-top: 1px solid var(--bb-line);
    background: var(--bb-card);
}

.bb-mobile-nav a {
    display: block;
    padding: .85rem 0;
    color: var(--bb-forest);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--bb-line);
}

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

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

/* -------------------------------------------------------------- buttons */
.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 44px;
    padding: .6rem 1.1rem;
    border-radius: var(--bb-radius-sm);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .88rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: transform .18s var(--bb-ease), box-shadow .25s var(--bb-ease),
                background-color .25s var(--bb-ease), color .25s var(--bb-ease);
}

.bb-btn:active { transform: scale(.97); }

.bb-btn--primary {
    background: linear-gradient(135deg, var(--bb-green-light) 0%, var(--bb-green) 55%, var(--bb-green-dark) 100%);
    color: #fff;
    box-shadow: var(--bb-glow-green);
}

.bb-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--bb-glow-green-strong);
}

.bb-btn--gold {
    background: linear-gradient(135deg, var(--bb-gold) 0%, var(--bb-gold-dark) 100%);
    color: #2a1e05;
    box-shadow: var(--bb-glow-gold);
}

.bb-btn--gold:hover {
    color: #2a1e05;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--bb-glow-gold-strong);
}

/* Green→gold sweep for the highest-intent CTAs (Find My Battery, Free Guide). */
.bb-btn--hero {
    background: linear-gradient(120deg, var(--bb-green) 0%, var(--bb-green-light) 45%, var(--bb-gold) 130%);
    background-size: 180% 100%;
    background-position: 0% 50%;
    color: #fff;
    box-shadow: var(--bb-glow-green);
    transition: background-position .5s var(--bb-ease), transform .18s var(--bb-ease),
                box-shadow .25s var(--bb-ease);
}

.bb-btn--hero:hover {
    color: #fff;
    background-position: 100% 50%;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--bb-glow-gold-strong);
}

.bb-btn--ghost {
    background: var(--bb-card);
    color: var(--bb-forest);
    border-color: var(--bb-line);
}

.bb-btn--ghost:hover {
    color: var(--bb-green);
    border-color: rgba(0, 161, 79, .45);
    box-shadow: var(--bb-glow-green);
    transform: translateY(-2px);
}

.bb-btn--dark {
    background: var(--bb-forest);
    color: #fff;
}

.bb-btn--dark:hover {
    color: #fff;
    background: #0f5138;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -10px rgba(11, 61, 44, .7);
}

.bb-btn--sm { min-height: 40px; padding: .45rem .8rem; font-size: .8rem; }
.bb-btn--block { width: 100%; }

/* Respect reduced-motion: keep the colour change, drop the movement. */
@media (prefers-reduced-motion: reduce) {
    .bb-btn, .bb-icon-btn, .bb-header-cta, .bb-product-card, .bb-promo-card,
    .bb-circle, .bb-blog-card { transition-duration: .01ms !important; }
    .bb-btn:hover, .bb-icon-btn:hover, .bb-header-cta:hover,
    .bb-product-card:hover, .bb-promo-card:hover { transform: none !important; }
    /* Product-card hover choreography: keep the colour cues, drop every move. */
    .bb-product-card::before,
    .bb-product-card .bb-product-media img,
    .bb-product-card .bb-media-foot > *,
    .bb-product-card .bb-discount-badge,
    .bb-product-card .bb-badge { transition-duration: .01ms !important; }
    .bb-product-card:focus-within { transform: none !important; }
    .bb-product-card:hover .bb-product-media img,
    .bb-product-card:focus-within .bb-product-media img,
    .bb-product-card:hover .bb-media-foot > *,
    .bb-product-card:focus-within .bb-media-foot > *,
    .bb-product-card:hover .bb-discount-badge,
    .bb-product-card:focus-within .bb-discount-badge,
    .bb-product-card:hover .bb-badge,
    .bb-product-card:focus-within .bb-badge { transform: none !important; }
    .bb-product-card:hover .bb-product-media::after { animation: none !important; }
}

/* ------------------------------------------- popular categories (hero) */
/* Horizontal rail of portrait category cards that opens the home page.
   It scrolls natively (swipe on touch, arrows on desktop) so no JS is needed
   for the scrolling itself — only for the arrow buttons. */
.bb-cathero {
    padding: 12px 0 4px;
}

.bb-cathero-frame {
    position: relative;
}

.bb-cathero-track {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 10px;
    /* Native scrollbar is hidden — the arrows and swipe carry the affordance. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bb-cathero-track::-webkit-scrollbar { display: none; }

.bb-cathero-card {
    position: relative;
    flex: 0 0 auto;
    width: 62vw;
    max-width: 220px;
    aspect-ratio: 3 / 4.4;
    border-radius: var(--bb-radius);
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(160deg, var(--bb-forest) 0%, var(--bb-green-dark) 100%);
    box-shadow: var(--bb-card-shadow);
    transition: transform .25s var(--bb-ease), box-shadow .25s var(--bb-ease);
}

.bb-cathero-card:hover,
.bb-cathero-card:focus-visible {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--bb-glow-green-strong);
}

.bb-cathero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-cathero-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: rgba(255, 255, 255, .55);
}

.bb-cathero-body {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: 1.5rem .9rem .9rem;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 26, 18, .78) 55%, rgba(6, 26, 18, .92) 100%);
}

.bb-cathero-title {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
}

.bb-cathero-sub {
    font-size: .76rem;
    opacity: .85;
}

.bb-cathero-cta {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .35rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--bb-gold-light);
}

.bb-cathero-card:hover .bb-cathero-cta i { transform: translateX(3px); }
.bb-cathero-cta i { transition: transform .2s var(--bb-ease); }

.bb-cathero-arrow {
    /* Touch visitors swipe the rail; the arrows appear from tablet up. */
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .94);
    color: var(--bb-forest);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    transition: background .2s var(--bb-ease), transform .2s var(--bb-ease);
}

.bb-cathero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.bb-cathero-arrow[hidden] { display: none; }
.bb-cathero-arrow--prev { left: -8px; }
.bb-cathero-arrow--next { right: -8px; }

/* The trust strip tucks under the hero slider; the card rail needs air. */
.bb-cathero + section .bb-trust {
    margin-top: 0;
    border-radius: var(--bb-radius);
}

@media (min-width: 768px) {
    .bb-cathero-card { width: 210px; max-width: none; }
    .bb-cathero-arrow { display: inline-flex; }
}

@media (min-width: 1200px) {
    .bb-cathero-card { width: 240px; }
    .bb-cathero-title { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bb-cathero-track { scroll-behavior: auto; }
    .bb-cathero-card { transition-duration: .01ms !important; }
    .bb-cathero-card:hover { transform: none !important; }
    .bb-cathero-card:hover .bb-cathero-cta i { transform: none; }
}

/* ------------------------------------------------------------ hero slider */
.bb-hero {
    padding-top: 12px;
}

.bb-hero-frame {
    position: relative;
    border-radius: var(--bb-radius);
    overflow: hidden;
    box-shadow: var(--bb-card-shadow);
}

.bb-hero-track {
    display: flex;
    transition: transform .5s var(--bb-ease);
}

.bb-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
}

.bb-slide img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.bb-slide-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(90deg, rgba(6, 26, 18, .82) 0%, rgba(6, 26, 18, .35) 60%, transparent 100%);
    color: #fff;
}

.bb-slide--image-only .bb-slide-body { display: none; }

.bb-slide-badge {
    align-self: flex-start;
    background: var(--bb-gold);
    color: #2a1e05;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: .25rem .6rem;
    border-radius: var(--bb-radius-pill);
}

.bb-slide-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    max-width: 34ch;
}

.bb-slide-title .hero-highlight { color: var(--bb-gold-light); }

.bb-slide-sub {
    margin: 0;
    font-size: .85rem;
    opacity: .92;
    max-width: 42ch;
}

.bb-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: var(--bb-forest);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    transition: background .2s var(--bb-ease), transform .2s var(--bb-ease);
}

.bb-hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.bb-hero-arrow--prev { left: 10px; }
.bb-hero-arrow--next { right: 10px; }

.bb-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: .35rem;
    z-index: 2;
}

.bb-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
}

.bb-hero-dot.is-active {
    background: var(--bb-gold);
    width: 20px;
    border-radius: var(--bb-radius-pill);
}

@media (min-width: 768px) {
    .bb-slide img { height: 240px; }
    .bb-slide-title { font-size: 1.7rem; }
}

@media (min-width: 1200px) {
    .bb-slide img { height: 268px; }
    .bb-slide-title { font-size: 2rem; }
    .bb-hero-arrow { width: 44px; height: 44px; }
}

/* -------------------------------------------------------------- trust bar */
.bb-trust {
    background: linear-gradient(180deg, var(--bb-green-light) 0%, var(--bb-green) 100%);
    color: #fff;
    border-radius: 0 0 var(--bb-radius) var(--bb-radius);
    margin-top: -10px;
    padding: .9rem 1rem;
    position: relative;
    z-index: 1;
}

.bb-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem 1rem;
}

.bb-trust-item {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.bb-trust-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    color: var(--bb-gold-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.bb-trust-title {
    font-weight: 700;
    font-size: .82rem;
    line-height: 1.2;
    color: var(--bb-gold-light);
}

.bb-trust-sub {
    font-size: .72rem;
    opacity: .95;
}

@media (min-width: 992px) {
    .bb-trust-grid { grid-template-columns: repeat(4, 1fr); }
    .bb-trust { padding: 1rem 1.4rem; }
}

/* --------------------------------------------------------- section header */
.bb-section {
    padding-top: 2rem;
}

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

.bb-section-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .01em;
    color: var(--bb-forest);
}

.bb-section-title::before {
    content: "";
    width: 5px;
    height: 24px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--bb-gold) 0%, var(--bb-gold-dark) 100%);
    box-shadow: var(--bb-glow-gold);
}

.bb-section-title em {
    font-style: normal;
    color: var(--bb-green);
}

.bb-section-sub {
    margin: .35rem 0 0;
    font-size: .82rem;
    color: var(--bb-muted);
    flex-basis: 100%;
}

.bb-section-link {
    color: var(--bb-green);
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    white-space: nowrap;
}

.bb-section-link:hover { color: var(--bb-forest); }

@media (min-width: 768px) {
    .bb-section-title { font-size: 1.45rem; }
    .bb-section-sub { flex-basis: auto; order: 3; width: 100%; margin-top: -.25rem; }
}

/* ------------------------------------------------------- category tabs */
.bb-cat-panel {
    padding: 1rem;
}

.bb-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.bb-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
    padding: .5rem .95rem;
    border-radius: var(--bb-radius-pill);
    border: 1px solid var(--bb-green-line);
    background: var(--bb-green-soft);
    color: var(--bb-green-dark);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .02em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .18s var(--bb-ease), box-shadow .25s var(--bb-ease),
                background .25s var(--bb-ease), color .25s var(--bb-ease);
}

.bb-cat-pill-num {
    font-size: .7rem;
    font-weight: 700;
    color: var(--bb-green);
}

.bb-cat-pill:hover {
    background: #fff;
    border-color: var(--bb-green);
    color: var(--bb-green);
    transform: translateY(-1px);
    box-shadow: var(--bb-glow-green);
}

.bb-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.bb-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .45rem .9rem;
    border-radius: var(--bb-radius-pill);
    border: 1px solid var(--bb-green-line);
    background: var(--bb-green-soft);
    color: var(--bb-green-dark);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .18s var(--bb-ease), box-shadow .25s var(--bb-ease),
                background .25s var(--bb-ease), color .2s var(--bb-ease);
}

.bb-chip:hover,
.bb-chip.is-active {
    background: var(--bb-green);
    border-color: var(--bb-green);
    color: #fff;
    box-shadow: var(--bb-glow-green);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .bb-cat-pill, .bb-chip { transition-duration: .01ms !important; }
    .bb-cat-pill:hover, .bb-chip:hover { transform: none !important; }
}

/* ------------------------------------------------------------ promo cards */
.bb-promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

.bb-promo-card {
    position: relative;
    display: block;
    border-radius: var(--bb-radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--bb-card-shadow);
    transition: transform .25s var(--bb-ease), box-shadow .3s var(--bb-ease);
}

.bb-promo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bb-card-shadow-hover), var(--bb-glow-green);
}

.bb-promo-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.bb-promo-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 26, 18, .85) 70%);
    color: #fff;
}

.bb-promo-eyebrow {
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--bb-gold-light);
    text-transform: uppercase;
}

.bb-promo-title {
    margin: .3rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

@media (min-width: 768px) {
    .bb-promo-grid { grid-template-columns: 1fr 1fr; }
    .bb-promo-card img { height: 190px; }
    .bb-promo-title { font-size: 1.1rem; }
}

/* ---------------------------------------------------------- circle strip */
.bb-circles-panel {
    margin-top: 1.25rem;
    padding: 1.1rem .6rem .9rem;
}

.bb-circles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem .4rem;
}

.bb-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--bb-forest);
    transition: transform .22s var(--bb-ease);
}

.bb-circle:hover { transform: translateY(-3px); color: var(--bb-green); }

.bb-circle-img {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bb-cream);
    border: 1px solid var(--bb-line);
    transition: box-shadow .28s var(--bb-ease);
}

.bb-circle:hover .bb-circle-img { box-shadow: var(--bb-glow-green-strong); }

.bb-circle-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bb-green);
}

.bb-circle-label {
    font-size: .76rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}

@media (min-width: 576px) { .bb-circles { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 992px) { .bb-circles { grid-template-columns: repeat(9, 1fr); } }

/* --------------------------------------------------------- offer strip */
.bb-offers {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
    margin-top: 1.25rem;
}

.bb-offer-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .9rem 1rem;
    border-radius: var(--bb-radius);
    background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
    border: 1px solid rgba(196, 143, 22, .35);
    box-shadow: var(--bb-glow-gold);
}

.bb-offer-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bb-gold) 0%, var(--bb-gold-dark) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.bb-offer-code {
    display: inline-block;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--bb-forest);
    background: #fff;
    border: 1px dashed var(--bb-gold-dark);
    border-radius: 8px;
    padding: .15rem .5rem;
    font-size: .82rem;
}

.bb-offer-text {
    margin: .3rem 0 0;
    font-size: .8rem;
    color: var(--bb-muted);
}

@media (min-width: 768px) { .bb-offers { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------- product cards */
.bb-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
}

@media (min-width: 768px) { .bb-product-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1200px) { .bb-product-grid { grid-template-columns: repeat(4, 1fr); } }

.bb-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bb-card);
    border: 1px solid var(--bb-line);
    border-radius: var(--bb-radius);
    overflow: hidden;
    box-shadow: var(--bb-card-shadow);
    transition: transform .32s var(--bb-ease), box-shadow .32s var(--bb-ease),
                border-color .25s var(--bb-ease);
}

/* Accent rule that wipes across the top edge as the card wakes up. */
.bb-product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 3;
    height: 3px;
    background: linear-gradient(90deg, var(--bb-green) 0%, var(--bb-gold) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .45s var(--bb-ease);
}

.bb-product-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--bb-cream-deep);
}

.bb-product-media img {
    display: block;
    width: 100%;
    aspect-ratio: 215 / 158;
    object-fit: cover;
    transition: transform .6s var(--bb-ease), filter .4s var(--bb-ease);
}

/* Soft light band that sweeps over the photo once per hover. */
.bb-product-media::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -60%;
    z-index: 1;
    width: 38%;
    height: 140%;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, .30) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    opacity: 0;
}

.bb-product-card .bb-media-foot > *,
.bb-product-card .bb-discount-badge,
.bb-product-card .bb-badge {
    transition: transform .3s var(--bb-ease), box-shadow .3s var(--bb-ease);
}

/* Hover choreography is desktop-only: on touch the :hover state would stick
   after a tap and leave the card half-animated. Focus-within keeps keyboard
   users in sync with the mouse experience. */
@media (hover: hover) and (pointer: fine) {
    .bb-product-card:hover,
    .bb-product-card:focus-within {
        transform: translateY(-6px);
        border-color: rgba(0, 161, 79, .35);
        box-shadow: var(--bb-card-shadow-hover), var(--bb-glow-green);
    }

    .bb-product-card:hover::before,
    .bb-product-card:focus-within::before { transform: scaleX(1); }

    .bb-product-card:hover .bb-product-media img,
    .bb-product-card:focus-within .bb-product-media img {
        transform: scale(1.06);
        filter: saturate(1.06);
    }

    .bb-product-card:hover .bb-product-media::after {
        animation: bb-card-sheen .85s var(--bb-ease) .05s 1;
    }

    /* Pills lift in sequence so the eye travels photo → badges → CTA. */
    .bb-product-card:hover .bb-discount-badge,
    .bb-product-card:focus-within .bb-discount-badge {
        transform: translateY(-2px) scale(1.04);
    }

    .bb-product-card:hover .bb-badge,
    .bb-product-card:focus-within .bb-badge {
        transform: translateY(-2px) scale(1.04);
        transition-delay: .04s;
    }

    .bb-product-card:hover .bb-media-foot > *,
    .bb-product-card:focus-within .bb-media-foot > * {
        transform: translateY(-2px);
    }

    .bb-product-card:hover .bb-media-foot > *:nth-child(2),
    .bb-product-card:focus-within .bb-media-foot > *:nth-child(2) {
        transition-delay: .07s;
    }

    .bb-product-card:hover .bb-product-name a,
    .bb-product-card:focus-within .bb-product-name a { color: var(--bb-green); }

    /* The primary CTA picks up its glow from anywhere on the card, so the
       whole tile reads as one clickable object. */
    .bb-product-card:hover .bb-btn--primary,
    .bb-product-card:focus-within .bb-btn--primary {
        box-shadow: var(--bb-glow-green-strong);
    }
}

@keyframes bb-card-sheen {
    from { left: -60%; opacity: 0; }
    15%  { opacity: 1; }
    to   { left: 120%; opacity: 0; }
}

.bb-product-media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 215 / 158;
    color: #c3cdc6;
    font-size: 2rem;
}

.bb-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #fff;
    padding: .28rem .55rem;
    border-radius: 7px;
}

.bb-badge--dark  { background: var(--bb-forest); box-shadow: 0 4px 12px -4px rgba(11, 61, 44, .9); }
.bb-badge--green { background: var(--bb-green); box-shadow: var(--bb-glow-green); }
.bb-badge--gold  { background: var(--bb-gold-dark); box-shadow: var(--bb-glow-gold); }
.bb-badge--red   { background: #dc351f; box-shadow: 0 4px 12px -4px rgba(220, 53, 31, .8); }
.bb-badge--blue  { background: #1d4ed8; box-shadow: 0 4px 12px -4px rgba(29, 78, 216, .8); }

.bb-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: linear-gradient(135deg, var(--bb-magenta) 0%, var(--bb-magenta-dark) 100%);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding: .3rem .6rem;
    border-radius: var(--bb-radius-pill);
    box-shadow: 0 6px 18px -8px rgba(184, 21, 111, .85);
}

.bb-discount-badge i { font-size: .72rem; }

/* Pills that sit along the bottom edge of the product photo. */
.bb-media-foot {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem;
}

.bb-gift-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(255, 255, 255, .95);
    color: var(--bb-forest);
    font-size: .64rem;
    font-weight: 800;
    padding: .28rem .55rem;
    border-radius: var(--bb-radius-pill);
    box-shadow: var(--bb-glow-gold);
}

.bb-product-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: .35rem;
    padding: .75rem .8rem .85rem;
}

.bb-product-brand {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bb-green);
}

.bb-product-name {
    margin: 0;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bb-product-name a {
    color: var(--bb-ink);
    text-decoration: none;
}

.bb-product-name a:hover { color: var(--bb-green); }

.bb-product-spec {
    margin: 0;
    font-size: .74rem;
    color: var(--bb-muted);
    line-height: 1.4;
}

.bb-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-top: .1rem;
}

/* Card price row. The MRP always renders when the product carries one, so
   the strikethrough + savings pair reads the same on every card. */
.bb-price-block {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .15rem;
}

.bb-price-main {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.bb-price-save {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .05rem;
    text-align: right;
    white-space: nowrap;
}

.bb-save-label {
    font-size: .62rem;
    font-weight: 700;
    color: var(--bb-muted);
}

.bb-save-amount {
    font-size: .82rem;
    font-weight: 800;
    color: var(--bb-green);
}

.bb-price {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--bb-forest);
}

/* Cards lead with the selling price in brand green, per the mockup. */
.bb-product-card .bb-price { font-size: 1.15rem; color: var(--bb-green); }

/* The highlight ribbon sits in the card's flex column — keep it hugging its
   own text instead of stretching the full card width. */
.bb-product-card .bb-highlight { align-self: flex-start; margin-top: .1rem; }

.bb-price-old {
    font-size: .78rem;
    color: var(--bb-muted);
    text-decoration: line-through;
}

.bb-price-call {
    font-size: .85rem;
    font-weight: 700;
    color: var(--bb-forest);
}

.bb-highlight {
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .22rem .5rem;
    border-radius: var(--bb-radius-pill);
    background: linear-gradient(135deg, var(--bb-gold) 0%, var(--bb-gold-dark) 100%);
    color: #2a1e05;
    box-shadow: var(--bb-glow-gold);
}

.bb-highlight--popular { background: linear-gradient(135deg, var(--bb-green-light), var(--bb-green)); color: #fff; box-shadow: var(--bb-glow-green); }
.bb-highlight--premium { background: linear-gradient(135deg, #1f4f3c, var(--bb-forest)); color: var(--bb-gold-light); box-shadow: 0 6px 18px -8px rgba(11, 61, 44, .9); }

.bb-stock {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .68rem;
    font-weight: 700;
    color: var(--bb-green);
}

.bb-stock::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(0, 161, 79, .18);
}

.bb-stock--low { color: var(--bb-gold-dark); }
.bb-stock--out { color: #b0453c; }

.bb-stock--pill {
    gap: .25rem;
    padding: .28rem .6rem;
    border-radius: var(--bb-radius-pill);
    background: var(--bb-green);
    color: #fff;
    font-size: .64rem;
    box-shadow: var(--bb-glow-green);
}

.bb-stock--pill::before { display: none; }
.bb-stock--pill i { font-size: .72rem; }
.bb-stock--pill.bb-stock--low { background: var(--bb-gold-dark); color: #fff; box-shadow: var(--bb-glow-gold); }
.bb-stock--pill.bb-stock--out { background: #b0453c; color: #fff; box-shadow: 0 6px 18px -8px rgba(176, 69, 60, .85); }

.bb-product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .4rem;
    margin-top: auto;
    padding-top: .6rem;
}

@media (min-width: 400px) {
    .bb-product-actions { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------- free with purchase (detail) */
.bb-free-box {
    border-radius: var(--bb-radius);
    border: 1px solid rgba(196, 143, 22, .38);
    background: linear-gradient(135deg, #fffdf7 0%, #f4fbf6 100%);
    box-shadow: var(--bb-glow-gold);
    padding: 1rem 1.1rem;
    margin: 0;
}

.bb-free-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .7rem;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--bb-forest);
}

.bb-free-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 576px) { .bb-free-list { grid-template-columns: 1fr 1fr; } }

.bb-free-item {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .84rem;
    color: var(--bb-ink);
}

.bb-free-item i {
    color: var(--bb-green);
    font-size: 1rem;
    line-height: 1.35;
}

.bb-free-item small { display: block; color: var(--bb-muted); font-size: .72rem; }

/* --------------------------------------------------- knowledge center */
.bb-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) { .bb-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .bb-blog-grid { grid-template-columns: repeat(3, 1fr); } }

.bb-blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bb-card);
    border: 1px solid var(--bb-line);
    border-radius: var(--bb-radius);
    overflow: hidden;
    box-shadow: var(--bb-card-shadow);
    transition: transform .25s var(--bb-ease), box-shadow .3s var(--bb-ease);
}

.bb-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bb-card-shadow-hover), var(--bb-glow-green);
}

.bb-blog-cover {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: var(--bb-cream-deep);
}

.bb-blog-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background: linear-gradient(135deg, var(--bb-forest) 0%, var(--bb-green) 100%);
    color: var(--bb-gold-light);
    font-size: 2rem;
}

.bb-blog-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: .45rem;
    padding: .9rem 1rem 1rem;
}

.bb-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-size: .68rem;
    color: var(--bb-muted);
}

.bb-blog-cat {
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bb-green);
}

.bb-blog-title {
    margin: 0;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.35;
}

.bb-blog-title a { color: var(--bb-ink); text-decoration: none; }
.bb-blog-title a:hover { color: var(--bb-green); }

.bb-blog-excerpt {
    margin: 0;
    font-size: .82rem;
    color: var(--bb-muted);
    line-height: 1.55;
}

.bb-blog-cta { margin-top: auto; padding-top: .6rem; }

.bb-article {
    max-width: 760px;
    margin-inline: auto;
    padding: 1.5rem 0 2rem;
}

.bb-article h1 { font-size: 1.6rem; font-weight: 800; color: var(--bb-forest); line-height: 1.3; }
.bb-article h2 { font-size: 1.15rem; font-weight: 800; color: var(--bb-forest); margin-top: 1.8rem; }
.bb-article p { font-size: .95rem; line-height: 1.85; color: #33403a; }
.bb-article ul { padding-left: 1.15rem; }
.bb-article li { font-size: .95rem; line-height: 1.8; color: #33403a; margin-bottom: .35rem; }

.bb-article-cover {
    width: 100%;
    border-radius: var(--bb-radius);
    margin-bottom: 1.25rem;
    object-fit: cover;
    max-height: 380px;
}

/* --------------------------------------------------- free resources */
.bb-resource-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) { .bb-resource-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .bb-resource-grid { grid-template-columns: repeat(4, 1fr); } }

.bb-resource-card {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.1rem;
    border-radius: var(--bb-radius);
    background: linear-gradient(150deg, #ffffff 0%, #f3faf5 100%);
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-card-shadow);
    transition: transform .25s var(--bb-ease), box-shadow .3s var(--bb-ease);
}

.bb-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bb-card-shadow-hover), var(--bb-glow-green);
}

.bb-resource-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--bb-green-light), var(--bb-green));
    box-shadow: var(--bb-glow-green);
}

.bb-resource-title { margin: 0; font-size: .95rem; font-weight: 700; color: var(--bb-forest); }
.bb-resource-desc { margin: 0; font-size: .8rem; color: var(--bb-muted); line-height: 1.55; flex: 1 1 auto; }

.bb-lock-note {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .68rem;
    font-weight: 700;
    color: var(--bb-gold-dark);
}

/* --------------------------------------------------- lead / booking forms */
.bb-lead-panel {
    padding: 1.25rem;
    border-radius: var(--bb-radius);
    background: var(--bb-card);
    border: 1px solid rgba(0, 161, 79, .28);
    box-shadow: var(--bb-glow-green);
}

.bb-lead-panel .form-control,
.bb-lead-panel .form-select {
    border-radius: var(--bb-radius-sm);
    border-color: var(--bb-line);
    background: var(--bb-cream-deep);
    min-height: 44px;
    font-size: .9rem;
}

.bb-lead-panel .form-control:focus,
.bb-lead-panel .form-select:focus {
    border-color: rgba(0, 161, 79, .5);
    box-shadow: var(--bb-glow-green);
}

.bb-lead-panel label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--bb-forest);
    margin-bottom: .3rem;
}

.bb-checkup-hero {
    border-radius: var(--bb-radius);
    background: linear-gradient(135deg, var(--bb-forest) 0%, #0e6a49 55%, var(--bb-green) 100%);
    color: #fff;
    padding: 1.75rem 1.25rem;
    margin-top: 1.25rem;
    box-shadow: var(--bb-glow-green-strong);
}

.bb-checkup-hero h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .6rem;
    line-height: 1.3;
}

.bb-checkup-hero p { margin: 0; opacity: .93; font-size: .92rem; line-height: 1.7; }

.bb-checkup-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: .6rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.bb-checkup-points li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .86rem;
}

.bb-checkup-points i { color: var(--bb-gold-light); }

@media (min-width: 768px) {
    .bb-checkup-hero { padding: 2.25rem 2rem; }
    .bb-checkup-hero h1 { font-size: 2rem; }
    .bb-checkup-points { grid-template-columns: 1fr 1fr; }
}

.bb-area-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.bb-area-tag {
    font-size: .74rem;
    font-weight: 600;
    padding: .35rem .7rem;
    border-radius: var(--bb-radius-pill);
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
}

/* ------------------------------------------------------- mobile sticky CTA */
.bb-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    gap: .4rem;
    padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--bb-line);
    box-shadow: 0 -6px 22px -12px rgba(11, 61, 44, .5);
}

.bb-sticky-cta a {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    min-height: 48px;
    padding: .4rem .3rem;
    border-radius: var(--bb-radius-sm);
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.15;
    text-align: center;
    transition: transform .18s var(--bb-ease), box-shadow .25s var(--bb-ease);
}

.bb-sticky-cta a:active { transform: scale(.96); }
.bb-sticky-cta a i { font-size: 1.05rem; }

.bb-sticky-cta .bb-cta--green { background: linear-gradient(135deg, var(--bb-green-light), var(--bb-green)); color: #fff; box-shadow: var(--bb-glow-green); }
.bb-sticky-cta .bb-cta--gold  { background: linear-gradient(135deg, var(--bb-gold), var(--bb-gold-dark)); color: #2a1e05; box-shadow: var(--bb-glow-gold); }
.bb-sticky-cta .bb-cta--dark  { background: var(--bb-forest); color: #fff; }
.bb-sticky-cta .bb-cta--red   { background: #dc351f; color: #fff; }
.bb-sticky-cta .bb-cta--blue  { background: #1d4ed8; color: #fff; }

/* The bar overlays page content, so reserve room for it. */
.bb-page { padding-bottom: 72px; }

@media (min-width: 992px) {
    .bb-sticky-cta { display: none; }
    .bb-page { padding-bottom: 0; }
}

/* ------------------------------------------------------------------ footer */
.bb-footer {
    margin-top: 2.5rem;
    background: linear-gradient(180deg, var(--bb-green-light) 0%, var(--bb-green) 100%);
    color: #fff;
    border-radius: var(--bb-radius) var(--bb-radius) 0 0;
    padding: 1.75rem 0 1rem;
}

.bb-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) { .bb-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .bb-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; } }

.bb-footer-heading {
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 .9rem;
    color: #fff;
}

.bb-showrooms {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

@media (min-width: 480px) { .bb-showrooms { grid-template-columns: 1fr 1fr; } }

.bb-showroom {
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--bb-radius-sm);
    padding: .8rem .9rem;
}

.bb-showroom-name {
    font-weight: 800;
    font-size: .82rem;
    color: var(--bb-gold-light);
    margin-bottom: .3rem;
}

.bb-showroom-addr {
    font-size: .76rem;
    line-height: 1.55;
    opacity: .95;
    margin-bottom: .45rem;
}

.bb-showroom a {
    color: var(--bb-gold-light);
    font-weight: 800;
    font-size: .84rem;
    text-decoration: none;
}

.bb-showroom a:hover { text-decoration: underline; }

.bb-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}

.bb-footer-links a {
    color: rgba(255, 255, 255, .93);
    font-size: .8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: color .2s var(--bb-ease), padding-left .2s var(--bb-ease);
}

.bb-footer-links a:hover { color: var(--bb-gold-light); padding-left: 4px; }

.bb-footer-links--plain a { text-transform: none; letter-spacing: 0; font-size: .84rem; }

.bb-footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .22);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    font-size: .78rem;
}

.bb-social {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.bb-social a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 40px;
    padding: .45rem .85rem;
    border-radius: var(--bb-radius-sm);
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s var(--bb-ease), transform .18s var(--bb-ease);
}

.bb-social a:hover { background: rgba(255, 255, 255, .28); transform: translateY(-2px); color: #fff; }
.bb-social .bb-social--wa { background: #25d366; border-color: #25d366; }
.bb-social .bb-social--wa:hover { background: #1fb857; }

/* ------------------------------------------------------------ empty state */
.bb-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bb-muted);
}

.bb-empty i { font-size: 2.5rem; color: #c3cdc6; display: block; margin-bottom: .75rem; }

/* --------------------------------------------------------- quick CTA row */
.bb-quick-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    margin-top: 1.25rem;
}

.bb-quick-cta .bb-btn {
    flex-direction: column;
    gap: .25rem;
    min-height: 76px;
    padding: .8rem .6rem;
    font-size: .8rem;
    line-height: 1.25;
}

.bb-quick-cta .bb-btn i { font-size: 1.25rem; }

@media (min-width: 768px) {
    .bb-quick-cta { grid-template-columns: repeat(4, 1fr); }
    .bb-quick-cta .bb-btn { flex-direction: row; min-height: 60px; font-size: .88rem; }
}

/* Whole-slide link for artwork-only banners. */
.bb-slide-link { display: block; text-decoration: none; }

/* ---------------------------------------------------------- product detail */
.bb-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--bb-muted);
    margin-bottom: 1rem;
}

.bb-crumbs a { color: var(--bb-green); text-decoration: none; }
.bb-crumbs a:hover { text-decoration: underline; }

.bb-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    /* Gallery gets the wider column; the buy box stays narrow so the price,
       gift block and CTAs all sit inside one glance without scrolling. */
    .bb-detail {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        /* `auto 1fr` keeps the gallery row at its natural height: any extra
           height the taller buy box needs lands in the description row instead
           of being split between both, which would push the description away
           from the video cue. */
        grid-template-rows: auto 1fr;
        gap: 1.25rem 2rem;
        align-items: start;
    }

    /* Gallery then description stack down the left column; the buy box keeps
       the right column across both rows, which is also what gives its sticky
       position room to travel. */
    .bb-detail-gallery { grid-column: 1; grid-row: 1; }
    .bb-detail-info { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
    .bb-detail-desc { grid-column: 1; grid-row: 2; }
}

/* ---- gallery ---- */
.bb-detail-gallery { display: flex; flex-direction: column; gap: .6rem; }

.bb-detail-stage {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.bb-detail-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bb-cream-deep);
}

.bb-detail-frame > img {
    display: block;
    width: 100%;
    height: 100%;
    /* Product artwork is banner-style with baked-in text, so it must never be
       cropped — contain keeps the whole frame readable at every width. */
    object-fit: contain;
}

.bb-detail-frame > img[hidden] { display: none; }

.bb-detail-off {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 2;
    background: #e5352a;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    padding: .25rem .55rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px -10px rgba(229, 53, 42, .9);
}

.bb-detail-video {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.bb-detail-video[hidden] { display: none; }

/* The stage is 4/3 for product artwork but YouTube plays 16/9, so the player is
   letterboxed inside it rather than stretched — the controls stay the right
   size and nothing is cropped. */
.bb-detail-video iframe {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.bb-thumb-row {
    display: flex;
    gap: .5rem;
    padding: .6rem;
    overflow-x: auto;
}

.bb-thumb {
    position: relative;
    width: 72px;
    height: 56px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--bb-line);
    background: var(--bb-cream-deep);
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
    transition: box-shadow .25s var(--bb-ease), border-color .25s var(--bb-ease);
}

.bb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-thumb:hover { box-shadow: var(--bb-glow-green); }
.bb-thumb--active { border-color: var(--bb-green); box-shadow: var(--bb-glow-green); }

.bb-thumb--video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 61, 44, .48);
}

.bb-thumb--video i {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

/* Video nudge under the gallery — a demo video is a strong conversion asset,
   so it gets its own labelled entry point rather than only a small thumb. */
.bb-video-cue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    min-height: 44px;
    padding: .6rem 1rem;
    border-radius: var(--bb-radius-sm);
    border: 1px solid rgba(0, 161, 79, .35);
    background: var(--bb-cream-deep);
    color: var(--bb-forest);
    font-weight: 700;
    font-size: .84rem;
    cursor: pointer;
    transition: box-shadow .25s var(--bb-ease), transform .18s var(--bb-ease);
}

.bb-video-cue i { color: var(--bb-green); font-size: 1.15rem; }
.bb-video-cue:hover { box-shadow: var(--bb-glow-green); transform: translateY(-1px); }

/* ---- buy box ---- */
.bb-detail-info { display: flex; flex-direction: column; gap: .55rem; }

.bb-buybox {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1.1rem;
}

@media (min-width: 992px) {
    /* Keeps price + CTAs on screen while the buyer reads the long description. */
    .bb-buybox { position: sticky; top: 88px; }
}

.bb-detail-head { display: flex; flex-direction: column; gap: .35rem; }

.bb-detail-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--bb-forest);
}

@media (min-width: 768px) { .bb-detail-title { font-size: 1.75rem; } }

.bb-detail-spec { margin: 0; color: var(--bb-muted); font-size: .9rem; }

.bb-detail-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    color: var(--bb-muted);
}

.bb-detail-rating {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-weight: 800;
    color: var(--bb-gold-dark);
}

.bb-detail-sold { font-weight: 600; color: var(--bb-ink); }
.bb-detail-cat a { color: var(--bb-green); text-decoration: none; font-weight: 600; }
.bb-detail-cat a:hover { text-decoration: underline; }

.bb-buybox-price {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .85rem .95rem;
    border-radius: var(--bb-radius-sm);
    background: var(--bb-cream-deep);
    border: 1px solid var(--bb-line);
}

.bb-price--lg { font-size: 1.6rem; }

.bb-detail-save {
    margin: 0;
    font-size: .82rem;
    font-weight: 700;
    color: var(--bb-green-dark);
}

.bb-discount-inline {
    font-size: .72rem;
    font-weight: 800;
    color: #fff;
    background: #e5352a;
    padding: .2rem .45rem;
    border-radius: 6px;
}

.bb-buy-form { display: flex; flex-direction: column; gap: .7rem; }

.bb-qty-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--bb-forest);
}

.bb-qty-stepper {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.bb-qty-btn {
    width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bb-radius-sm);
    border: 1px solid var(--bb-line);
    background: var(--bb-cream-deep);
    color: var(--bb-forest);
    cursor: pointer;
    transition: box-shadow .25s var(--bb-ease), border-color .25s var(--bb-ease);
}

.bb-qty-btn:hover { border-color: rgba(0, 161, 79, .5); box-shadow: var(--bb-glow-green); }

.bb-qty {
    width: 66px;
    min-height: 44px;
    border-radius: var(--bb-radius-sm);
    border: 1px solid var(--bb-line);
    background: #fff;
    text-align: center;
    font-weight: 700;
    color: var(--bb-ink);
}

.bb-qty:focus { outline: none; border-color: rgba(0, 161, 79, .5); box-shadow: var(--bb-glow-green); }

.bb-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
}

@media (min-width: 480px) {
    /* auto-fit, not 1fr 1fr: call-for-price rows render a single contact button
       and it should still fill the row. */
    .bb-detail-actions--contact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

/* Order now — the single highest-intent action on the page, so it is the only
   gold button in the buy box and sits above "add to cart". */
.bb-btn--order {
    background: linear-gradient(135deg, var(--bb-gold) 0%, var(--bb-gold-dark) 100%);
    color: #2a1e05;
    font-size: .95rem;
    min-height: 52px;
    box-shadow: var(--bb-glow-gold);
}

.bb-btn--order:hover {
    color: #2a1e05;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--bb-glow-gold-strong);
}

/* Add-to-cart is deliberately quieter than "order now". */
.bb-btn--soft {
    background: #fff;
    color: var(--bb-green-dark);
    border-color: rgba(0, 161, 79, .45);
    box-shadow: none;
}

.bb-btn--soft:hover {
    background: var(--bb-cream-deep);
    color: var(--bb-green-dark);
    box-shadow: var(--bb-glow-green);
    transform: translateY(-1px);
}

.bb-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.bb-detail-assure {
    list-style: none;
    margin: 0;
    padding: .9rem 1rem;
    display: grid;
    gap: .5rem;
    border-radius: var(--bb-radius-sm);
    background: var(--bb-cream-deep);
    border: 1px solid var(--bb-line);
}

.bb-detail-assure li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: var(--bb-ink);
}

.bb-detail-assure i { color: var(--bb-green); font-size: 1rem; flex: 0 0 auto; }
.bb-detail-assure a { color: var(--bb-green); font-weight: 700; text-decoration: none; }
.bb-detail-assure a:hover { text-decoration: underline; }

/* ---- long description ---- */
.bb-detail-desc { padding: 1.15rem 1.2rem; }

/* Its own compact heading — the block sits inside the detail grid now, so the
   full-width section header would be too loud for the column it lives in. */
.bb-detail-desc-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 .9rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--bb-forest);
}

.bb-detail-desc-title::before {
    content: "";
    width: 4px;
    height: 20px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--bb-gold) 0%, var(--bb-gold-dark) 100%);
    box-shadow: var(--bb-glow-gold);
}

.bb-detail-desc-title em { font-style: normal; color: var(--bb-green); }

@media (min-width: 768px) { .bb-detail-desc-title { font-size: 1.15rem; } }

/* Rich text authored in the admin editor — the storefront supplies the
   typography so pasted copy always lands on-brand. */
.bb-richtext { font-size: .92rem; line-height: 1.85; color: #33403a; }
.bb-richtext > :first-child { margin-top: 0; }
.bb-richtext > :last-child { margin-bottom: 0; }
.bb-richtext p { margin: 0 0 .9rem; }

.bb-richtext h2,
.bb-richtext h3,
.bb-richtext h4 {
    color: var(--bb-forest);
    font-weight: 800;
    line-height: 1.35;
    margin: 1.5rem 0 .6rem;
}

.bb-richtext h2 { font-size: 1.15rem; }
.bb-richtext h3 { font-size: 1.02rem; }
.bb-richtext h4 { font-size: .95rem; }

.bb-richtext ul,
.bb-richtext ol { margin: 0 0 .9rem; padding-left: 1.25rem; }
.bb-richtext li { margin-bottom: .35rem; }

.bb-richtext a { color: var(--bb-green-dark); font-weight: 600; }

.bb-richtext strong { color: var(--bb-forest); }

.bb-richtext img,
.bb-richtext figure { max-width: 100%; height: auto; border-radius: var(--bb-radius-sm); }
.bb-richtext figure { margin: 1rem 0; }
.bb-richtext figcaption { font-size: .78rem; color: var(--bb-muted); margin-top: .35rem; }

.bb-richtext blockquote {
    margin: 1rem 0;
    padding: .7rem 1rem;
    border-left: 3px solid var(--bb-gold);
    background: var(--bb-cream-deep);
    border-radius: 0 var(--bb-radius-sm) var(--bb-radius-sm) 0;
}

/* Tables are the usual way a spec sheet gets pasted in — keep them scrollable
   rather than letting a wide one break the page on a phone. */
.bb-richtext .table,
.bb-richtext figure.table { overflow-x: auto; }

.bb-richtext table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.bb-richtext th,
.bb-richtext td {
    border: 1px solid var(--bb-line);
    padding: .5rem .65rem;
    text-align: left;
}

.bb-richtext th { background: var(--bb-cream-deep); color: var(--bb-forest); font-weight: 700; }

.bb-richtext iframe,
.bb-richtext .media { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
    .bb-video-cue:hover,
    .bb-btn--order:hover,
    .bb-btn--soft:hover { transform: none; }
}

/* ------------------------------------------------------ forms & thank-you */
.bb-form-error {
    font-size: .76rem;
    font-weight: 600;
    color: #b0453c;
    margin-top: .3rem;
}

.bb-form-note {
    font-size: .72rem;
    color: var(--bb-muted);
    margin: .5rem 0 0;
}

.bb-unlock-note {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--bb-green);
    margin-bottom: .6rem;
}

.bb-checkup-note {
    margin-top: 1rem;
    font-size: .82rem;
    opacity: .9;
}

.bb-thanks-panel {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--bb-radius);
    background: var(--bb-card);
    border: 1px solid rgba(0, 161, 79, .28);
    box-shadow: var(--bb-glow-green);
}

.bb-thanks-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--bb-green-light), var(--bb-green));
    box-shadow: var(--bb-glow-green-strong);
    margin-bottom: 1rem;
}

.bb-thanks-panel h1 { font-size: 1.5rem; font-weight: 800; color: var(--bb-forest); }
.bb-thanks-panel p { font-size: .92rem; line-height: 1.8; color: #33403a; }

.bb-thanks-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.25rem;
}

.bb-article-lead {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--bb-muted);
    font-weight: 500;
}

.bb-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: .82rem;
    color: var(--bb-muted);
}

/* -------------------------------------------------------------- voucher UI */
.bb-voucher-box {
    padding: .9rem 1rem;
    border-top: 1px solid var(--bb-line);
}

.bb-voucher-form {
    display: flex;
    gap: .4rem;
}

.bb-voucher-form input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 40px;
    padding: .45rem .7rem;
    border-radius: var(--bb-radius-sm);
    border: 1px dashed var(--bb-gold-dark);
    background: #fffdf7;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bb-forest);
}

.bb-voucher-form input:focus {
    outline: none;
    box-shadow: var(--bb-glow-gold);
}

.bb-voucher-applied {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .5rem;
    font-size: .82rem;
    color: var(--bb-green);
}

.bb-voucher-row { color: var(--bb-gold-dark); font-weight: 700; }

/* ---------------------------------------------------- admin panel extras */
.admin-nav-group {
    display: block;
    padding: .25rem 1rem .5rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .6;
}

.admin-filter-bar {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-bottom: 1rem;
    max-width: 520px;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--text-secondary);
}

.admin-form-check { padding-top: 2rem; }

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* ------------------------------------------------------------- about page */
.bb-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) { .bb-about-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .bb-about-grid { grid-template-columns: repeat(4, 1fr); } }

.bb-about-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1.25rem;
    border-radius: var(--bb-radius);
    background: var(--bb-card);
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-card-shadow);
    transition: transform .25s var(--bb-ease), box-shadow .3s var(--bb-ease);
}

.bb-about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bb-card-shadow-hover), var(--bb-glow-green);
}

.bb-about-card h3 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--bb-forest); }
.bb-about-card p { margin: 0; font-size: .85rem; line-height: 1.7; color: var(--bb-muted); flex: 1 1 auto; }
.bb-about-card .bb-btn { align-self: flex-start; }


/* ==========================================================================
   MOBILE POLISH LAYER
   Appended last so it wins over the component rules above without editing
   them. Four concerns, in order: platform hygiene, touch-target floors,
   focus visibility, and safe-area/edge handling.
   ========================================================================== */

/* --- 1. Platform hygiene -------------------------------------------------
   iOS/Android inflate text on rotate unless text-size-adjust is pinned, and
   mobile Safari flashes a grey box on every tap. Both read as "unpolished"
   on a phone even when the layout is correct. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    -webkit-tap-highlight-color: transparent;
}

/* The tap flash is the only touch affordance mobile Safari gives for free, so
   replacing it means supplying our own pressed state on the things people tap. */
.bb-btn:active,
.bb-icon-btn:active,
.bb-cat-pill:active,
.bb-chip:active,
.bb-circle:active,
.bb-product-card:active {
    opacity: .85;
}

/* Rails must not chain their scroll to the page — swiping a product carousel
   past its end should stop, not start scrolling the document behind it. */
.bb-cathero-rail,
.bb-chip-row,
.bb-circles,
.bb-rail,
.table-responsive {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

/* --- 2. Touch-target floors (44px, per the project standard) -------------
   Applied only on coarse pointers so desktop keeps its tighter density.
   Text links get the height via padding + inline-flex, which grows the hit
   box without moving the text off its baseline. */
@media (pointer: coarse) {
    .bb-topbar-phone,
    .bb-section-link,
    .bb-crumbs a,
    .breadcrumb-item a,
    .bb-topbar-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    /* Negative margin keeps the enlarged hit box from adding vertical rhythm
       the design never had — the target grows, the layout does not. */
    .bb-section-link,
    .bb-crumbs a,
    .breadcrumb-item a {
        margin-block: -.5rem;
    }

    .bb-btn--sm {
        min-height: 44px;
        padding-inline: .9rem;
    }

    .bb-cat-pill,
    .bb-chip,
    .bb-social a,
    .bb-social--wa {
        min-height: 44px;
    }

    /* Bootstrap ships 38px controls; the older cart/checkout/quote forms use
       them directly, so raise the floor rather than restyling each form. */
    .form-control,
    .form-select {
        min-height: 44px;
    }

    /* The search pill is already 57px tall, but the input inside it was only
       38px — the dead band above and below it did not focus the field. */
    .bb-search input {
        min-height: 44px;
    }

    .bb-brand {
        min-height: 44px;
    }
}

/* iOS Safari zooms the whole page when a focused input is under 16px. The
   header search and the legacy Bootstrap forms both tripped this. */
@media (max-width: 991.98px) {
    .bb-search input,
    .form-control,
    .form-select,
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px;
    }
}

/* --- 3. Focus visibility -------------------------------------------------
   Only two elements defined a focus ring, so keyboard users lost their place
   everywhere else. :focus-visible keeps the ring off mouse/touch clicks. */
.bb-btn:focus-visible,
.bb-icon-btn:focus-visible,
.bb-cat-pill:focus-visible,
.bb-chip:focus-visible,
.bb-circle:focus-visible,
.bb-section-link:focus-visible,
.bb-topbar-phone:focus-visible,
.bb-product-card a:focus-visible,
.bb-social a:focus-visible,
.admin-sidebar-link:focus-visible,
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--bb-green);
    outline-offset: 3px;
    border-radius: var(--bb-radius-sm);
}

.form-control:focus-visible,
.form-select:focus-visible,
.bb-search input:focus-visible {
    outline: 2px solid var(--bb-green);
    outline-offset: 1px;
}

/* --- 4. Safe area / edge handling ----------------------------------------
   The product-detail sticky CTA sat flush at bottom:0, so on notched iPhones
   the home indicator overlapped both buttons. */
.product-detail-sticky-cta {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

@media (max-width: 991.98px) {
    body.product-detail-page .main-content {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
    }
}

/* Landscape on a notched phone puts the rounded corner over the gutter. Widen
   only the two elements that own horizontal padding — `.bb-container` for page
   content (the header and top bar inherit their gutter from it) and the fixed
   CTA bar, which sits outside any container. Both keep their design value as
   the floor, so nothing shifts on a device without insets. */
.bb-container {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
}

.bb-sticky-cta {
    padding-left: max(.6rem, env(safe-area-inset-left));
    padding-right: max(.6rem, env(safe-area-inset-right));
}

/* --- 5. Reduced motion ---------------------------------------------------
   Guard everything this layer introduced, matching the existing policy. */
@media (prefers-reduced-motion: reduce) {
    .bb-btn:active,
    .bb-icon-btn:active,
    .bb-cat-pill:active,
    .bb-chip:active,
    .bb-circle:active,
    .bb-product-card:active {
        opacity: 1;
    }
}
