/* Base Variables & Reset */
:root {
    --primary: #0058bc;
    --primary-container: #0070eb;
    --on-primary: #ffffff;
    --surface: #f9f9fb;
    --surface-container: #eeeef0;
    --surface-container-low: #f3f3f5;
    --surface-container-lowest: #ffffff;
    --surface-variant: #e2e2e4;
    --on-surface: #1a1c1d;
    --on-surface-variant: #414755;
    --background: #f9f9fb;
    --on-background: #1a1c1d;
    --outline-variant: #c1c6d7;
    --error: #ba1a1a;
    --error-container: #ffdad6;
    --radius-default: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
    --max-width: 1536px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    /* Root level containment */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--surface);
    color: var(--on-surface);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    overflow-x: clip;
    /* Prevents horizontal scroll without breaking sticky */
}

/* Making the navbar sticky to the top of the viewport */
.nav-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1001 !important;
    /* Above page content */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
.text-editorial-lg {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.section-padding {
    padding: 2rem 0;
}


/* Namespaced Slider Headers */
.slider-header-container {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
    text-align: left !important;
    margin-left: 20px;
}

.slider-title-group {
    display: block !important;
    margin-bottom: 0.1rem !important;
}

.slider-label-modern {
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #88bb76 !important;
    margin: 0 !important;
    text-align: left !important;
}

.slider-title-modern {
    display: block !important;
    font-family: 'Figtree', sans-serif !important;
    font-size: clamp(2rem, 5vw, 2.75rem) !important;
    font-weight: 800 !important;
    color: #000 !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    margin: 0 !important;
    text-align: left !important;
}

.slider-header-container .bestseller-viewall {
    display: inline-flex !important;
    margin-top: 2px !important;
}

@media (max-width: 768px) {
    .slider-title-modern {
        font-size: 2.75rem !important;
    }
}

.section-label {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    /* Neutral gray */
    letter-spacing: 0.01em;
}

.section-main-title {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: #000;
    /* Pure black */
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .section-main-title {
        font-size: 1.75rem;
    }
}

.bestseller-header-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0;
    margin-bottom: 1rem;
}

.bestseller-header-flex .bestseller-viewall {
    margin-top: -0.25rem !important;
}

@media (max-width: 768px) {
    .bestseller-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}