/* ==========================================================================
   BageBoxe — Stitch Design System ("East African Premier Marketplace")
   Asset ID: assets/a51d5b1d1bc84837866c361a1d956746
   Palette: Vibrant Emerald (#006948 / #059669), Deep Slate (#0b1c30 / #0F172A),
            Warm Amber (#8d4b00 / #D97706), Crisp Studio Surfaces (#f8f9ff / #ffffff)
   Typography: Plus Jakarta Sans + Material Symbols Outlined
   ========================================================================== */

:root {
    --bb-bg-body: #f8f9ff;
    --bb-bg-surface: #ffffff;
    --bb-bg-subtle: #eff4ff;
    --bb-bg-container: #e5eeff;
    --bb-border-subtle: #bccac0;
    --bb-border-card: #d8e2dc;
    --bb-text-primary: #0b1c30;
    --bb-text-secondary: #3d4a42;
    --bb-text-muted: #6d7a72;
    --bb-primary: #006948;
    --bb-primary-container: #00855d;
    --bb-primary-fixed: #85f8c4;
    --bb-on-primary-fixed: #002114;
    --bb-inverse-surface: #213145;
    --bb-inverse-on-surface: #eaf1ff;
    --bb-tertiary: #8d4b00;
    --bb-error: #ba1a1a;
}

/* 1. Global Viewport & Typography (Defer to Chewy Design Tokens in app.blade.php) */
html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 2. Stitch Typography Scale Utilities */
.text-display-hero {
    font-size: 2.5rem !important;
    line-height: 3rem !important;
    letter-spacing: -0.02em !important;
    font-weight: 800 !important;
}

.text-display-hero-mobile {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
    letter-spacing: -0.015em !important;
    font-weight: 800 !important;
}

.text-headline-lg {
    font-size: 2rem !important;
    line-height: 2.5rem !important;
    letter-spacing: -0.02em !important;
    font-weight: 700 !important;
}

.text-headline-md {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
    letter-spacing: -0.01em !important;
    font-weight: 700 !important;
}

.text-headline-sm {
    font-size: 1.125rem !important;
    line-height: 1.625rem !important;
    letter-spacing: -0.005em !important;
    font-weight: 600 !important;
}

.text-price-display-lg {
    font-size: 1.375rem !important;
    line-height: 1.75rem !important;
    letter-spacing: -0.01em !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums !important;
}

.text-price-display-sm {
    font-size: 1rem !important;
    line-height: 1.375rem !important;
    letter-spacing: -0.005em !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
}

.text-label-md {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    font-weight: 600 !important;
}

.text-label-sm {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
    font-weight: 600 !important;
}

.text-badge-xs {
    font-size: 0.6875rem !important;
    line-height: 0.875rem !important;
    letter-spacing: 0.02em !important;
    font-weight: 700 !important;
}

.text-body-lg {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

.text-body-md {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

.text-body-sm {
    font-size: 0.75rem !important;
    line-height: 1.125rem !important;
}

/* 3. Stitch Color Tokens */
.bg-background,
.bg-surface {
    background-color: #f8f9ff !important;
}

.bg-surface-container-lowest {
    background-color: #ffffff !important;
}

.bg-surface-container-low {
    background-color: #eff4ff !important;
}

.bg-surface-container {
    background-color: #e5eeff !important;
}

.bg-surface-container-high {
    background-color: #dce9ff !important;
}

.bg-surface-container-highest {
    background-color: #d3e4fe !important;
}

.bg-inverse-surface {
    background-color: #213145 !important;
}

.text-inverse-on-surface {
    color: #eaf1ff !important;
}

.bg-primary,
.bg-lush-green {
    background-color: #006948 !important;
    color: #ffffff !important;
}

.bg-primary:hover,
.bg-primary-container,
.hover\:bg-primary-container:hover,
.bg-lush-green:hover {
    background-color: #00855d !important;
}

.bg-primary-fixed {
    background-color: #85f8c4 !important;
}

.text-on-primary-fixed {
    color: #002114 !important;
}

.text-primary-fixed {
    color: #85f8c4 !important;
}

.text-on-primary {
    color: #ffffff !important;
}

.text-primary,
.text-lush-green {
    color: #006948 !important;
}

.text-tertiary {
    color: #8d4b00 !important;
}

.bg-tertiary {
    background-color: #8d4b00 !important;
}

.text-on-background,
.text-on-surface {
    color: #0b1c30 !important;
}

.text-on-surface-variant {
    color: #3d4a42 !important;
}

.text-outline {
    color: #6d7a72 !important;
}

.border-outline-variant,
.border-outline-variant\/30,
.border-outline-variant\/20,
.border-outline-variant\/40 {
    border-color: #d8e2dc !important;
}

.border-primary {
    border-color: #006948 !important;
}

.bg-citrus-yellow {
    background-color: #006948 !important;
    color: #ffffff !important;
}

.bg-citrus-yellow:hover {
    background-color: #00855d !important;
}

.text-citrus-yellow {
    color: #f59e0b !important;
}

.bg-error {
    background-color: #ba1a1a !important;
    color: #ffffff !important;
}

.text-error {
    color: #ba1a1a !important;
}

/* 4. Top Announcement Trust Strip */
.bb-trust-strip {
    background: linear-gradient(90deg, #002114 0%, #006948 50%, #002114 100%) !important;
    color: #ffffff !important;
    letter-spacing: 0.01em;
}

/* 5. Header & Sticky Nav */
header.sticky {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #d8e2dc !important;
}

/* 6. Stitch Product Cards */
.bb-product-card {
    background: #ffffff !important;
    border: 1px solid #d8e2dc !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.bb-product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 24px -6px rgba(11, 28, 48, 0.1), 0 4px 8px -2px rgba(11, 28, 48, 0.05) !important;
    border-color: #006948 !important;
}

/* 7. Hero Banner Overhaul */
.bb-hero {
    background: linear-gradient(135deg, #0b1c30 0%, #162a45 52%, #005137 100%) !important;
    border: 1px solid rgba(133, 248, 196, 0.18) !important;
    box-shadow: 0 20px 25px -5px rgba(11, 28, 48, 0.18) !important;
}

/* 8. Circular Categories Layout (Studio Cutouts) */
.bb-circle-cat {
    width: 5.75rem !important;
    height: 5.75rem !important;
    border-radius: 9999px !important;
    background-color: #eff4ff !important;
    border: 1px solid #d8e2dc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    padding: 0.45rem !important;
    transition: all 0.25s ease !important;
}

@media (min-width: 640px) {
    .bb-circle-cat {
        width: 6.75rem !important;
        height: 6.75rem !important;
        padding: 0.5rem !important;
    }
}

@media (min-width: 1024px) {
    .bb-circle-cat {
        width: 7.5rem !important;
        height: 7.5rem !important;
        padding: 0.6rem !important;
    }
}

.bb-circle-cat:hover,
.group:hover .bb-circle-cat {
    transform: scale(1.05) !important;
    background-color: #ECFDF5 !important;
    border-color: #006948 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 105, 72, 0.12), 0 4px 6px -2px rgba(0, 105, 72, 0.06) !important;
}

.bb-circle-cat img {
    width: 86% !important;
    height: 86% !important;
    object-fit: contain !important;
    transition: transform 0.25s ease !important;
}

.bb-circle-cat:hover img,
.group:hover .bb-circle-cat img {
    transform: scale(1.12) !important;
}

/* 9. Forms & Inputs */
.bb-input-modern {
    background-color: #ffffff !important;
    border: 1px solid #bccac0 !important;
    border-radius: 0.75rem !important;
    padding: 0.625rem 0.875rem !important;
    font-size: 0.875rem !important;
    color: #0b1c30 !important;
    transition: all 0.2s ease !important;
}

.bb-input-modern:focus {
    border-color: #006948 !important;
    box-shadow: 0 0 0 3px rgba(0, 105, 72, 0.15) !important;
    outline: none !important;
}

/* 10. Quantity Stepper Component */
.bb-qty-stepper {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #bccac0 !important;
    border-radius: 0.5rem !important;
    background: #ffffff !important;
    overflow: hidden !important;
    height: 36px !important;
}

.bb-qty-stepper button {
    width: 34px !important;
    height: 100% !important;
    color: #3d4a42 !important;
    font-weight: 700 !important;
    background: #eff4ff !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s ease !important;
}

.bb-qty-stepper button:hover {
    background: #dce9ff !important;
    color: #0b1c30 !important;
}

.bb-qty-stepper input {
    width: 2.75rem !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    color: #0b1c30 !important;
    border: none !important;
    border-left: 1px solid #bccac0 !important;
    border-right: 1px solid #bccac0 !important;
    background: #ffffff !important;
    height: 100% !important;
    padding: 0 !important;
}

/* 11. Footer Styling (Defer to Chewy Design Tokens in footer.blade.php) */
