/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll; /* Forces scrollbar to appear to prevent layout shift */
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

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

/* Header */
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 100;
}

.left-nav {
    justify-self: start;
}

.nav-link {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.right-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-self: end;
}

/* Login Tooltip */
.login-btn {
    position: relative;
}

.login-btn::after {
    content: "save $100 off your first order";
    position: absolute;
    top: 100%;
    right: 0;
    width: max-content;
    background-color: #000;
    color: #fff;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 500;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover::after {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

/* Hamburger Menu */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 10px;
    padding: 0;
}

.hamburger-menu .line {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #000;
    transition: all 0.3s ease;
}

.hamburger-menu.active .line:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
}

.hamburger-menu.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .line:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
}

/* Hide header elements when menu is open */
body.nav-open .logo,
body.nav-open .nav-link {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile */
    background-color: #fff;
    z-index: 90;
    padding-top: 80px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 100px; /* Extra padding for scrolling */
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    overscroll-behavior: contain; /* Prevent body scroll chaining */
    touch-action: pan-y;
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.menu-link, .menu-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: block;
    letter-spacing: -1px;
}

.menu-item-group {
    display: flex;
    flex-direction: column;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none; /* Override previous if any */
    padding-bottom: 0;
}

.dropdown-toggle {
    background: none;
    border: none;
    font-size: 32px; /* Match menu link size roughly */
    cursor: pointer;
    padding: 0 10px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.dropdown-toggle.active {
    transform: rotate(180deg);
}

.submenu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.submenu.active {
    grid-template-rows: 1fr;
}

.submenu-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 5px;
    opacity: 0;
    transition: opacity 0.3s ease, margin 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.submenu.active .submenu-inner {
    opacity: 1;
    margin-top: 20px;
    margin-bottom: 20px;
}

.submenu a {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px; /* Smaller than main links */
    text-transform: uppercase;
    letter-spacing: 0px;
    color: #555;
    transition: color 0.2s;
    text-decoration: none;
}

.submenu a:hover {
    color: #000;
}

/* Nested Submenu Styles */
.nested-submenu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 20px;
    margin-top: -5px;
    margin-bottom: 5px;
}

.nested-submenu a {
    font-size: 16px;
    color: #888;
    font-weight: 500;
}

.nested-submenu a:hover {
    color: #000;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 80px;
}

.hero-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(40px, 11vw, 140px);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.hero-title .text-wrapper {
    opacity: 0;
}

.hero-title .reveal-block {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #000;
    z-index: 2;
}

.shop-links {
    display: flex;
    justify-content: center;
    gap: 15vw;
    flex-wrap: wrap;
}

.shop-links a {
    font-size: clamp(16px, 2.5vw, 32px);
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Marquee Section */
.marquee-section {
    padding: 20px 0 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0; /* Add padding to container to prevent clipping */
}

.marquee-track {
    display: inline-flex;
    gap: 20px;
    will-change: transform;
    padding: 0 10px; /* Add horizontal padding */
    cursor: grab;
}

.marquee-track:active {
    cursor: grabbing;
}

/* Animation for Left Scrolling */
.marquee-container.left .marquee-track {
    /* Animation handled by JS */
    display: inline-flex;
}

/* Animation for Right Scrolling */
.marquee-container.right .marquee-track {
    /* Animation handled by JS */
    display: inline-flex;
}

.marquee-item {
    position: relative;
    width: 300px; /* Fixed width for consistency */
    flex-shrink: 0;
    aspect-ratio: 0.8;
    background-color: #f0f0f0;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.marquee-item:hover {
    transform: scale(1.05);
    z-index: 20;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

.card-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
}

.product-name {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
}

.product-price {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
}

.hot-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff0000;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marquee-item {
        width: 200px;
    }
    
    .shop-links {
        gap: 20px;
        flex-direction: row;
    }
    
    header {
        padding: 15px;
        display: flex;
        justify-content: space-between;
    }

    /* Mobile Header: Remove Home button, move Logo to left */
    .left-nav {
        display: none;
    }

    .logo {
        position: static;
        transform: none;
        left: auto;
    }
    
    .hero {
        padding-bottom: 40px;
    }
    
    .hero-title {
        margin-bottom: 40px;
    }
}

/* Lenis Recommended CSS */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Catalogue Page Styles */
.catalogue-main {
    padding: 20px 30px;
}

.catalogue-container {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

/* Sidebars */
.sidebar-left, .sidebar-right {
    display: block;
    position: sticky;
    top: 100px;
    height: fit-content;
    font-size: 11px;
    z-index: 10;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 5px;
}

.filter-list a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}

.filter-list a:hover {
    color: #666;
}

.scrollable-list {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar for list */
.scrollable-list::-webkit-scrollbar {
    width: 4px;
}

.scrollable-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scrollable-list::-webkit-scrollbar-thumb {
    background: #ccc;
}

.scrollable-list::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.nested-filter-list {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.nested-filter-list li {
    margin-bottom: 3px;
}

.nested-filter-list a {
    font-size: 10px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.nested-filter-list a:hover,
.nested-filter-list a.active {
    color: #000;
    font-weight: 700;
}

.filter-link.active {
    font-weight: 700;
    text-decoration: underline;
}

/* Checkbox Style */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 11px;
    user-select: none;
    text-transform: uppercase;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 14px;
    width: 14px;
    border: 1px solid #000;
    background-color: #fff;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #000;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 4px;
    top: 1px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 40px 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}

.product-image {
    width: 100%;
    aspect-ratio: 0.75; /* 3:4 aspect ratio */
    background-color: #f0f0f0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-brand {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-desc {
    font-size: 11px;
    color: #555;
    line-height: 1.4;
}

.product-price {
    font-size: 11px;
    margin-top: 4px;
}

/* Responsive Catalogue */
@media (max-width: 1024px) {
    .catalogue-container {
        grid-template-columns: 180px 1fr 180px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .catalogue-container {
        display: block;
    }
    .sidebar-left, .sidebar-right {
        display: none; /* Hidden by default on mobile, toggled via JS/CSS class */
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }
}

/* Footer Styles */
footer {
    background-color: #fff;
    color: #000;
    padding: 80px 8vw 40px;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.footer-top {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-bottom: 80px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-transform: uppercase;
    max-width: 400px;
}

.footer-heading {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.social-links a {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #000;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(60px, 15vw, 200px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.8;
    letter-spacing: -0.04em;
}

.copyright {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-top {
        margin-bottom: 30px;
    }

    .footer-content {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        margin-bottom: 40px;
    }
    
    .footer-column {
        flex: 1;
        padding: 0 15px;
    }

    .footer-column:first-child {
        border-right: 1px solid #000;
        text-align: left;
        padding-left: 0;
        display: flex;
        align-items: flex-start;
    }

    .footer-column:last-child {
        text-align: right;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
    }
    
    .legal-text {
        max-width: 100%;
        text-align: left;
        font-size: 9px;
        line-height: 1.4;
    }

    .footer-heading {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .social-links a {
        font-size: 11px;
    }
    
    .copyright {
        text-align: center;
    }
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.intro-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(40px, 10vw, 120px);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 40px;
    opacity: 0;
}

.intro-card {
    background-color: #fff;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
}

.intro-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.intro-btn {
    padding: 12px 24px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.intro-btn.signup {
    background-color: #000;
    color: #fff;
}

.intro-btn.signup:hover {
    background-color: #333;
}

.intro-btn.continue {
    background-color: transparent;
    border: 1px solid #000;
    color: #000;
}

.intro-btn.continue:hover {
    background-color: #000;
    color: #fff;
}

#main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

#main-content.visible {
    opacity: 1;
}

/* FAQ Page Styles */
.faq-section {
    padding: 60px 30px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: -1px;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s ease;
    color: #000;
}

.faq-question:hover {
    color: #555;
}

.faq-toggle-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: '';
    position: absolute;
    background-color: #000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.faq-toggle-icon::before {
    width: 100%;
    height: 2px;
}

.faq-toggle-icon::after {
    width: 2px;
    height: 100%;
}

.faq-question.active .faq-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.faq-answer p {
    padding-bottom: 25px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.faq-question.active + .faq-answer {
    max-height: 500px; /* Adjust as needed */
}

/* Brand Grid Styles */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.brand-card {
    background-color: #f9f9f9;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.brand-card:hover {
    background-color: #f0f0f0;
    transform: scale(1.02);
}

.brand-name {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Page Transition Overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 99999;
    pointer-events: none;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}