:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-product-bg: #f5f5f5;
    --font-main: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    --header-height: 60px;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:not(:has(img)) {
    text-decoration: none !important;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 100% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

a:not(:has(img)):hover, a.active-link:not(:has(img)) {
    background-position: 0% 100%;
    background-size: 100% 1px;
}

ul {
    list-style: none;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
    background-color: transparent;
    border-color: transparent;
}

.header__left, .header__right {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.header__right {
    justify-content: flex-end;
}

.header__center {
    flex: 0 0 auto;
}

.header__center img {
    height: 24px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* Main content spacing */
main {
    margin-top: var(--header-height);
}

/* Editorial Grid */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: calc(100vh - var(--header-height));
    margin-bottom: 2px;
}

.editorial-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.editorial-item img, .editorial-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.editorial-item:hover .editorial-text {
    opacity: 1;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    margin-bottom: 2px;
    gap: 2px;
    padding: 0 2px;
}

.product-item {
    background-color: var(--color-product-bg);
    cursor: pointer;
    position: relative;
    padding-bottom: 100%; /* square aspect ratio fallback */
    overflow: hidden;
}

.product-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fits 100% of the square */
}

.product-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.product-overlay span {
    color: #000000;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

/* Modal / Lightbox (Product Details) */
.modal {
    visibility: hidden;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.8s;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    overflow: hidden;
}

.modal.active {
    visibility: visible;
    opacity: 1;
    filter: blur(0);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.product-modal-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 30%; /* Center of the left 60% images pane */
    transform: translateX(-50%);
    color: #000;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: bounceIndicator 2s infinite;
}

.scroll-text {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.scroll-arrow {
    font-size: 28px;
    font-weight: 100;
    line-height: 1;
}

.scroll-indicator.visible {
    opacity: 1;
}

@keyframes bounceIndicator {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

.product-modal-images {
    width: 60%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
}

.product-modal-images::-webkit-scrollbar {
    display: none;
}

.product-modal-images img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 2px;
}

.product-modal-info {
    width: 40%;
    padding: 100px 50px 50px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-arrow {
    position: absolute;
    top: 32.5%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.modal-arrow-left {
    left: 5px;
}
.modal-arrow-left::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    transform: rotate(-45deg);
}

.modal-arrow-right {
    right: 5px;
}
.modal-arrow-right::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border-top: 1px solid #000;
    border-right: 1px solid #000;
    transform: rotate(45deg);
}

@media (min-width: 768px) {
    .modal-arrow {
        top: 50%;
        padding: 20px;
    }
    .modal-arrow-left {
        left: 20px;
    }
    .modal-arrow-right {
        right: 20px;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #000;
    font-size: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    font-weight: 100;
}

@media (min-width: 768px) {
    .close-modal {
        top: 30px;
        right: 40px;
        font-size: 24px;
        background: transparent;
    }
}

.product-modal-info h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: 0.05em;
}

.product-category {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 30px;
}

.product-color {
    margin-bottom: 30px;
    font-size: 0.8rem;
}

.color-swatch {
    width: 20px;
    height: 20px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

.product-sizes {
    margin-bottom: 40px;
}

.size-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.size-guide {
    color: #666;
    text-decoration: underline;
}

.size-options {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
}

.size-options span {
    cursor: pointer;
}

.add-to-cart {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 50px;
    letter-spacing: 0.05em;
}

.add-to-cart:hover {
    background: #000;
    color: #fff;
}

.product-accordion {
    border-top: 1px solid #eee;
    margin-top: auto;
}

.accordion-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .product-modal-container {
        flex-direction: column;
    }
    .product-modal-images, .product-modal-info {
        width: 100%;
    }
    .product-modal-images {
        height: 65vh;
    }
    .product-modal-info {
        height: 35vh;
        padding: 30px 20px;
    }
    .scroll-indicator {
        left: 50%;
        bottom: 38vh; /* Places it slightly above the info pane */
    }
}

/* About Us Split Layout */
.about-main {
    margin-top: var(--header-height);
}

.about-row {
    display: flex;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
}

.about-row.reverse {
    flex-direction: row-reverse;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
}

.about-text {
    max-width: 500px;
    padding: 4rem 2rem;
    text-align: left;
}

.about-text h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 3rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.about-text h3 {
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #333;
    text-transform: none;
}

.about-text p {
    font-size: 0.85rem;
    line-height: 2;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-align: justify;
}

.about-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.about-text li {
    font-size: 0.85rem;
    line-height: 2;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 400;
    text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
    .editorial-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .editorial-item {
        height: 60vh;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-row, .about-row.reverse {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
        height: 60vh;
        flex: none;
    }
    
    .about-text-wrapper {
        width: 100%;
        padding: 4rem 1rem;
        flex: none;
    }
}

/* Complex Footer (Jacquemus style) */
.footer-complex {
    border-top: 1px solid #e0e0e0;
    width: 100%;
    background-color: #fff;
    color: #000;
    font-size: 0.85rem;
}

.footer-tier {
    border-bottom: 1px solid #e0e0e0;
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
}

.footer-tier h3 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.footer-tier p {
    color: #777;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Tier 1: Features */
.tier-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 2rem;
}

.feature-col h3 {
    font-size: 1.1rem;
}

/* Tier 2: Newsletter & Contact */
.tier-newsletter-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
}

.newsletter-col, .contact-col {
    padding: 3rem 2rem;
}

.newsletter-col {
    border-right: 1px solid #e0e0e0;
}

.contact-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.contact-links a, .social-links a, .nav-sub a {
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Tier 3: Nav & Social */
.tier-nav-social {
    align-items: center;
}

.nav-col {
    display: flex;
    gap: 3rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-item span {
    font-size: 1rem;
    cursor: pointer;
}

.social-col h3, .email-col h3 {
    display: inline-block;
    margin-right: 1.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-links {
    display: inline-flex;
    gap: 1.5rem;
}

.email-col a {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    font-weight: 400;
    color: #000;
    text-decoration: none;
}

/* Tier 4: Bottom */
.tier-bottom {
    align-items: center;
    padding: 2rem;
    border-bottom: none;
    font-size: 0.75rem;
    color: #555;
}

.bottom-center img {
    height: 18px;
}

@media (max-width: 768px) {
    .tier-features, .tier-newsletter-contact {
        grid-template-columns: 1fr;
    }
    .newsletter-col {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    .tier-nav-social {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }
    .nav-col {
        flex-direction: column;
        gap: 1rem;
    }
    .social-col, .email-col {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    .social-col h3, .email-col h3 {
        margin-bottom: 0.5rem;
    }
    .social-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    .tier-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #f6f6f6;
    border: 1px solid #000;
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 800px;
    margin: 0 auto;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-content p {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
    color: #555;
    flex: 1;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 150px;
}

.btn-solid {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
}

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

/* Cookie Settings Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-box {
    background: #f6f6f6;
    border: 1px solid #000;
    width: 90%;
    max-width: 500px;
    margin: auto;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow-y: auto;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

.cookie-options {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cookie-option-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cookie-option-info p {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.4;
    max-width: 90%;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #000;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-switch input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    .cookie-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .cookie-content p {
        text-align: center;
    }
    .cookie-actions {
        width: 100%;
    }
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1002;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #000;
    transition: 0.3s ease;
}

/* Fullscreen Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f6f6f6;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 75px; 
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}

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

.mobile-main-links, .mobile-secondary-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-main-links {
    border-top: 1px solid #000;
}

.mobile-main-links li {
    border-bottom: 1px solid #000;
}

.mobile-main-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    letter-spacing: 1px;
}

.mobile-secondary-links {
    padding: 30px 20px;
}

.mobile-secondary-links li {
    margin-bottom: 20px;
}

.mobile-secondary-links a {
    font-size: 15px;
    color: #000;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 500;
}

.mobile-menu a.active-link,
.mobile-menu a:hover {
    background-image: none !important;
}

@media (max-width: 768px) {
    .header__left, .header__right {
        display: none !important;
    }
    .hamburger {
        display: flex;
        position: absolute;
        left: 2rem;
    }
    .header__center {
        margin: 0 auto;
        position: relative;
        z-index: 1002;
    }
    .header {
        justify-content: center;
    }
}

/* Text-Only Page Layout (About, Sustainability, Social Causes) */
.text-page-main {
    padding: 180px 20px 100px;
    display: flex;
    justify-content: center;
    background-color: var(--color-bg);
}

.text-page-container {
    max-width: 700px;
    width: 100%;
    text-align: left;
}

.text-page-container h2 {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3.5rem;
    color: #000;
}

.text-page-container h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    color: #222;
}

.text-page-container p {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    color: #444;
}

.text-page-container ul {
    margin-bottom: 2.5rem;
}

.text-page-container li {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: #444;
}

@media (max-width: 768px) {
    .text-page-main {
        padding: 120px 20px 80px;
    }
    .text-page-container h2 {
        font-size: 1.3rem;
        margin-bottom: 2.5rem;
    }
}

/* New Footer Structure */
.footer-main-new {
    display: flex;
    justify-content: space-between;
    padding: 6rem 2rem 4rem 2rem;
    border-bottom: 1px solid #000;
}

.footer-left-new {
    display: flex;
    gap: 6rem;
}

.footer-col-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-heading-new {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
}

.footer-links-new {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-links-new a, .open-legal, .footer-cookie-settings {
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}

.footer-links-new a:hover, .open-legal:hover, .footer-cookie-settings:hover {
    color: #000;
}

.footer-right-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
}

.footer-social-inline {
    display: flex;
    gap: 1.5rem;
}

.footer-social-inline a {
    font-size: 0.85rem;
    color: #555;
}

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

@media (max-width: 768px) {
    .footer-main-new {
        flex-direction: column;
        padding: 4rem 2rem;
        gap: 3rem;
    }
    .footer-left-new {
        flex-direction: column;
        gap: 2.5rem;
    }
    .footer-right-new {
        align-items: flex-start;
    }
    .footer-social-inline {
        flex-wrap: wrap;
    }
}
