/* MAIN STYLESHEET */

@import url('variables.css');

/* Components */
@import url('components/navbar.css');
@import url('components/buttons.css');
@import url('components/cards.css');
@import url('components/forms.css');
@import url('components/accordion.css');
@import url('components/marquee.css');
@import url('components/filters.css');

/* Pages */
@import url('pages/hero.css');

/* Base Styles */
html {
    background-color: var(--nobe-black);
}

body {
    background-color: transparent;
    color: var(--nobe-cream);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -4%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.2;
}

h1 {
    font-size: 96px;
    font-weight: 700;
    letter-spacing: -6%;
}

h2 {
    font-size: 75px;
    font-weight: 700;
    letter-spacing: -6%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Global Grid Container */
.container {
    width: 100%;
    max-width: 360px; /* Mobile width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 11px;
    padding-right: 11px;
    box-sizing: border-box;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .container {
        max-width: 1314px;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Base Sections Layout */
.nobe-section {
    padding: var(--space-xl) 0;
    position: relative;
    box-sizing: border-box;
    background-color: #8D5E2F;
}

.nobe-section-header {
    max-width: 1000px;
}

/* Brand Section headings */
.nobe-section-title {
    font-family: var(--font-primary);
    font-size: 40px; /* Mobile */
    font-weight: 700;
    letter-spacing: -6%;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

@media (min-width: 1024px) {
    .nobe-section-title {
        font-size: 75px;
    }
}

.nobe-section-lead {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -4%;
    margin-bottom: var(--space-md);
}

/* Light Background Switch */
.nobe-bg-light {
    background-color: var(--nobe-cream);
    color: var(--nobe-black);
}

/* Mini Cart Sliding Drawer Overlay */
.nobe-cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--nobe-black);
    color: var(--nobe-cream);
    z-index: 99999;
    transition: right var(--transition-base);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
}

.nobe-cart-drawer.active {
    right: 0;
}

.nobe-cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--nobe-dark-gray);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.nobe-cart-drawer-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

.nobe-cart-drawer-close {
    background: none;
    border: none;
    color: var(--nobe-white);
    font-size: 24px;
    cursor: pointer;
}

.nobe-cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
}

.nobe-cart-drawer-footer {
    border-top: 1px solid var(--nobe-dark-gray);
    padding-top: var(--space-sm);
}

.nobe-cart-drawer-overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.nobe-cart-drawer-overlay-bg.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Home Page Overrides (Section Backgrounds, Slider, Product Grids)
   ========================================================================== */

.home .nobe-section {
    background-color: #BD8E4A;
}

/* Fix for body background to eliminate layout clipping / strip artifacts */
body.home {
    background-color: #BD8E4A;
}

/* Retain light background for the trending categories section */
.home .nobe-section.nobe-bg-light {
    background-color: var(--nobe-cream);
}

.home .nobe-mega-slider-wrap,
.home .nobe-mega-slider-content {
    background-color: #BD8E4A;
}

/* Home Page Product Grid (Mobile swipeable carousel) */
.home .nobe-products-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 10px var(--space-md);
    margin-left: 0;
    margin-right: 0;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
}

.home .nobe-products-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.home .nobe-products-grid .nobe-product-card {
    flex: 0 0 312px;
    scroll-snap-align: center;
    box-sizing: border-box;
}

/* Desktop Grid Override (4-up layout) */
@media (min-width: 1024px) {
    .home .nobe-products-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
        justify-content: center;
        max-width: 1314px;
        margin: 0 auto;
        padding: 0;
        overflow-x: visible;
        scroll-snap-type: none;
    }
    
    .home .nobe-products-grid .nobe-product-card {
        flex: none;
        width: 100%;
        max-width: 312px;
    }
    
    .home .nobe-products-grid .nobe-card-image-wrap {
        width: 100%;
    }
}

/* Home Page Mobile-Only Layout Adjustments */
@media (max-width: 1023px) {
    /* About Section */
    .home .nobe-about-grid .nobe-section-lead {
        max-width: 400px !important;
        margin: 0 !important;
    }
    
    .home .nobe-about-grid .nobe-cta-mobile-icon-white {
        align-self: flex-end !important;
    }

    /* Our Latest Collection Section */
    .home .nobe-section-header {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .home .nobe-section-header .nobe-cta-mobile-icon-black {
        align-self: flex-end !important;
        margin-top: 16px;
    }

    /* Our Trending Categories Section */
    .home .nobe-trending-explore-wrap {
        align-self: flex-end !important;
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }
    
    .home .nobe-trending-explore-wrap .nobe-explore-arrow-btn {
        border-radius: 4px !important;
    }
}

/* Fix for .nobe-products-grid to prevent overflow */
.nobe-products-grid {
  margin-left: 0;
  margin-right: 0;
  width: auto;
  max-width: 100%;
  overflow-x: auto; /* Maintains internal scroll if needed */
}

