/* --- Custom Fonts --- */
@font-face {
    font-family: 'Microgramma';
    src: url('fonts/Microgramma D Extended Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* --- Base Resets & Variables --- */
:root {
    --color-bg: #Faf9f6;
    --color-text: #000000;
    --color-text-muted: rgba(0, 0, 0, 0.5);
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

button, input, textarea, select {
    font-family: inherit;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* --- Success Overlay --- */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    color: var(--color-text);
    z-index: 140;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.success-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 5px;
}

.success-order-id {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 20px 0 40px;
    color: var(--color-text);
}

.success-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: opacity 0.3s ease;
}

.success-btn:hover {
    opacity: 0.8;
}

body {
    background-color: #000;
    color: var(--color-text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease;
    scrollbar-gutter: stable; /* Prevent layout shift when scrollbar disappears */
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 9999; pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pulse 1.5s infinite;
    color: var(--color-text);
}

.preloader-content .location {
    color: var(--color-text-muted);
}



@keyframes pulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

/* --- Campaign Hero Section --- */
.campaign-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    min-height: 100vh;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.catalog-active .campaign-hero {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Background Image & Overlay --- */
.hero-background {
    display: none !important;
}

.hero-video-desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

.hero-video-overlay-desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-video-mobile {
    display: none;
}

.hero-video-overlay-mobile {
    display: none;
}

/* --- Header Logo --- */
.header-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
}

/* --- Content Layout --- */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 3rem 4rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 3vh;
}

.hero-typography {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* --- Typography Styling --- */
.hero-line {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-line:nth-child(1) { animation-delay: 0s; }
.hero-line:nth-child(2) { animation-delay: 0.1s; }
.hero-line:nth-child(3) { animation-delay: 0.2s; }

.hero-link {
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 4px;
    transition: border-color 0.3s ease;
}

.hero-link:hover {
    border-color: #ffffff;
}

/* --- Keyframes --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Adjustments --- */


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 40px;
    z-index: 200;
    pointer-events: none;
    font-family: var(--font-heading);
    color: #ffffff;
    transition: background 0.5s ease;
    box-sizing: border-box;
}

.header.scrolled,
.cart-header-wrapper.scrolled {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.header.scrolled .menu a,
.cart-header-wrapper.scrolled .menu a {
    color: var(--color-text);
}

.header.scrolled .clock-label {
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .header.scrolled {
        /* inherited from .header */
    }
}

body.catalog-active .header,
body.pdp-active .header,
body.policy-active .header,
body.path-active .header,
body.docs-active .header,
body.size-guide-active .header {
    color: var(--color-text);
}

body.catalog-active,
body.pdp-active,
body.policy-active,
body.path-active,
body.docs-active {
    background-color: var(--color-bg);
}

.header-left {
    display: flex;
    flex-direction: row;
    gap: 20px;
    pointer-events: auto;
}

.hamburger-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.hamburger-btn:hover {
    opacity: 0.7;
}

/* --- Navigation Overlay --- */
body.nav-open {
    overflow: hidden;
    overscroll-behavior-y: none;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: 150; /* below the header so hamburger is still clickable */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.nav-close {
    display: none; /* Hide close button, use hamburger to toggle */
}

.nav-slider {
    display: flex;
    width: 300%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-slider.show-info {
    transform: translateX(-33.333%);
}

.nav-slider.show-docs {
    transform: translateX(-66.666%);
}

.nav-pane {
    width: 33.333%;
    height: 100%;
    position: relative;
}

.nav-back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    transition: color 0.3s;
    margin-bottom: 20px;
    padding: 0;
    text-align: left;
}



.nav-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 15px;
    padding: 40px;
    padding-bottom: 60px;
    align-items: flex-start;
    height: 100%;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 18px; /* Even smaller */
    font-weight: 800;
    color: #ffffff; /* White to show on photo */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s, opacity 0.3s;
}



.nav-link:hover {
    color: #999999;
}

.menu {
    flex: 1;
}

.menu {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 25px;
    pointer-events: auto;
}

.menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-family: Microgramma, sans-serif;
}

body.catalog-active .menu a,
body.pdp-active .menu a,
body.policy-active .menu a,
body.size-guide-active .menu a {
    color: var(--color-text);
}

.brand-container {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    position: relative;
    height: 60px;
}

.logo {
    display: grid;
    place-items: center;
    cursor: pointer;
}

.logo-text, .logo-img {
    grid-area: 1 / 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
}

.logo-img {
    height: 60px;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
}

.header.scrolled .logo-text,
.cart-header-wrapper.scrolled .logo-text {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
}

.header.scrolled .logo-img,
.cart-header-wrapper.scrolled .logo-img {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.header.scrolled.footer-visible .logo-text,
.cart-header-wrapper.scrolled.footer-visible .logo-text {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.header.scrolled.footer-visible .logo-img,
.cart-header-wrapper.scrolled.footer-visible .logo-img {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
}


body.catalog-active .logo,
body.size-guide-active .logo {
    cursor: pointer;
}

.location {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: opacity 0.3s ease, visibility 0.3s ease, height 0.3s ease, margin 0.3s ease;
}

.header.scrolled .location,
.cart-header-wrapper.scrolled .location {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin-top: 0;
    overflow: hidden;
}

.header.scrolled.footer-visible .location,
.cart-header-wrapper.scrolled.footer-visible .location {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
}


body.catalog-active .location,
body.pdp-active .location,
body.policy-active .location,
body.path-overlay .location,
body.size-guide-active .location {
    color: var(--color-text-muted);
}

.clock-label {
    width: 32px;
    color: rgba(255, 255, 255, 0.7);
}

body.catalog-active .clock-label,
body.pdp-active .clock-label,
body.policy-active .clock-label,
body.size-guide-active .clock-label {
    color: var(--color-text-muted);
}

/* --- Path Mind Map Overlay --- */
.path-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100lvh;
    background-color: var(--color-bg);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body.path-active {
    overflow: hidden !important;
}

.path-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.path-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
    z-index: 20;
}

.path-header {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.path-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    color: var(--color-text);
}

.path-tabs {
    display: flex;
    gap: 30px;
}

.path-tab {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    cursor: pointer;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.path-tab.active {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

.path-tab.active.no-underline {
    border-bottom-color: transparent !important;
}

.path-tab:hover {
    color: var(--color-text);
}

.path-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100lvh;
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.path-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.path-center {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 24px;
    line-height: 120px;
    text-align: center;
    color: var(--color-text);
    z-index: 2;
    background: var(--color-bg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
    width: 120px;
    height: 120px;
    border-style: solid;
    border-color: var(--color-text);
    border-width: 2px 1px 3px 2px;
    border-radius: 45% 55% 42% 58% / 54% 43% 57% 46%;
    filter: url(#chalk);
}

.path-node {
    position: absolute;
    max-width: 250px;
    background: var(--color-bg);
    padding: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#nodeDrop1 {
    top: 25%;
    left: 10%;
}

#nodeDrop2 {
    top: 25%;
    right: 10%;
}

#nodeDrop3 {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.node-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    filter: url(#chalk);
}

.node-subtitle {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.05em;
    filter: url(#chalk);
}

.node-desc {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-top: 5px;
}

.node-date {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 5px;
}

/* --- Stops Overlay --- */
.stops-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-color: #Faf9f6;
    z-index: 9;
    padding-top: 250px; /* Reduced from 300px to raise content a bit */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.stops-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.stops-close {
    display: none; /* Hide since hamburger covers it in z-index 9 */
}

.stops-container {
    display: flex;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px 40px;
    min-height: 100%;
    align-items: flex-start;
}

.stops-header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 110px 40px 20px; /* Reduced from 160px to raise 2026 up a bit */
    z-index: 10;
    background: #Faf9f6;
}

.blurred-products .product-card .product-image img {
    filter: blur(12px);
    transition: filter 0.3s ease;
}
.blurred-products .product-card .product-title,
.blurred-products .product-card .product-price {
    filter: blur(6px);
    transition: filter 0.3s ease;
}
.blurred-products .product-card {
    pointer-events: none; /* Prevent clicking blurred items */
}

/* We will reuse catalog-sidebar and catalog-products inside stops-container */

/* --- Catalog Overlay --- */
.catalog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-color: #Faf9f6;
    /* Vanilla background */
    z-index: 9;
    /* Just below header */
    display: none;
    /* Hidden by default */
    padding-top: 100px;
    /* Space for header */
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.catalog-overlay.active {
    display: block;
    opacity: 1;
}

.catalog-content {
    display: flex;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 40px;
    min-height: 100%;
    align-items: flex-start;
    /* Align to bottom like in screenshot */
    padding-bottom: 5rem;
}

.catalog-sidebar {
    display: none;
    /* Temporarily hidden per user request */
    flex-direction: column;
    gap: 12px;
    width: 250px;
    flex-shrink: 0;
}

.catalog-sidebar a {
    color: #000000;
    text-decoration: none;
    font-family: var(--font-heading);
    /* Microgramma */
    font-size: 20px;
    opacity: 0.6;
    transition: opacity 0.2s;
    text-transform: uppercase;
}

.catalog-sidebar a:hover,
.catalog-sidebar a.active {
    opacity: 1;
}

.catalog-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6rem;
    flex-grow: 1;
    align-items: end;
}



.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    justify-content: flex-start;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.product-image img.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .product-image img.main-image {
    opacity: 0;
}

.product-card:hover .product-image img.hover-image {
    opacity: 1;
}

.product-title {
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.product-price {
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 700;
}

/* --- Clocks --- */
.clocks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clock {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* .clock-label styling moved near other header color transitions */

.clock-time {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* --- Footer --- */
.site-footer {
    background-color: #Faf9f6;
    padding: 1.5rem 40px 1rem 40px;
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    width: 100%;
    margin-bottom: 0px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-logo {
    justify-content: flex-start;
}

.footer-logo {
    width: 250px;
    height: auto;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-list li a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-list li a:hover {
    color: var(--color-text-muted);
}

.footer-meta-text {
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.4;
    font-family: var(--font-body);
}

.footer-meta-text.small {
    font-size: 8px;
    margin-top: 5px;
}

.footer-legal-list {
    margin-top: 0;
}

.footer-license {
    margin-top: 20px;
}

.footer-ip {
    margin-top: 15px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 20px 1.5rem 20px;
    }
    
    .footer-top {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
        row-gap: 30px;
    }
    
    /* Logo at bottom */
    .footer-top > div:nth-child(1) {
        grid-column: 1 / -1;
        order: 5;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    
    /* ПОКУПАТЕЛЯМ */
    .footer-top > div:nth-child(2) {
        grid-column: 1 / 2;
        order: 1;
    }
    
    /* СОЦ. СЕТИ */
    .footer-top > div:nth-child(3) {
        grid-column: 2 / 3;
        order: 2;
    }
    
    /* ДОКУМЕНТЫ */
    .footer-top > div:nth-child(4) {
        grid-column: 1 / -1;
        order: 3;
    }
    
    /* ДЛЯ СВЯЗИ */
    .footer-top > div:nth-child(5) {
        grid-column: 1 / -1;
        order: 4;
    }
    
    .footer-col-logo {
        margin-bottom: 20px;
    }
    
    .footer-logo {
        width: 150px;
    }
    
    }

/* --- Product Details Page Overlay --- */
.pdp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #Faf9f6;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
    padding: 100px 40px;
}

.pdp-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.pdp-active .stops-overlay {
    visibility: hidden;
}

.bag-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -14px;
    background: #888;
    color: #fff;
    font-size: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pdp-bag {
    position: fixed;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 201;
}

.pdp-close-inline {
    background: none;
    border: none;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
    margin-bottom: 20px;
    padding: 0;
}

.pdp-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    gap: 80px;
}

.pdp-image-col {
    flex: 0 0 650px;
    width: 650px;
    min-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 150px;
    align-items: flex-end;
    padding-right: 20px;
}

@keyframes pdp-skeleton-pulse {
    0% { background-color: #f2f2f2; }
    50% { background-color: #e5e5e5; }
    100% { background-color: #f2f2f2; }
}

.pdp-image-col img {
    width: 100%;
    max-width: 650px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #f2f2f2;
    animation: pdp-skeleton-pulse 1.4s ease-in-out infinite;
    border-radius: 2px;
}

.pdp-image-col img.loaded {
    animation: none;
    background-color: transparent;
}

.pdp-nav-arrow {
    display: none; /* Hidden on desktop */
}

.pdp-thumbnails-col {
    flex: 0 0 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 40px;
    height: fit-content;
}

.pdp-thumbnails-col img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    background-color: #f2f2f2;
    animation: pdp-skeleton-pulse 1.4s ease-in-out infinite;
    border-radius: 2px;
}

.pdp-thumbnails-col img.loaded {
    animation: none;
    background-color: transparent;
}

.pdp-thumbnails-col img:hover {
    opacity: 1;
}

.pdp-details-col {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: sticky;
    top: 40px;
    height: fit-content;
}

.pdp-title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pdp-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
}

.pdp-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.pdp-size-section {
    margin-bottom: 40px;
}

.pdp-size-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pdp-size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.size-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover {
    border-color: rgba(0, 0, 0, 0.5);
}

.size-btn.active {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
    font-weight: 600;
}

.size-btn.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
    border-color: rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.5);
    background: transparent;
}

.size-btn.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: rgba(0,0,0,0.6);
    transform: rotate(45deg);
}

.size-btn.out-of-stock::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: rgba(0,0,0,0.6);
    transform: rotate(-45deg);
}

.color-swatch {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    transform: scale(0.9);
    transition: transform 0.2s ease, border 0.2s ease, outline 0.2s ease;
    outline: 1px solid transparent;
}

.color-swatch.active {
    transform: scale(1.2);
    border: 2px solid #fff;
    outline: 1px solid #000;
}

.pdp-size-guide {
    font-size: 12px;
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pdp-add-to-cart:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.preorder-info {
    margin-top: -15px; /* Pull it slightly closer to the button */
    margin-bottom: 25px;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text);
    border-left: 3px solid #000;
}

.pdp-add-to-cart {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 18px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
    transition: background 0.3s ease, color 0.3s ease;
    width: 100%;
}

.pdp-add-to-cart:hover {
    background: #333333;
}

.pdp-accordions {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 12px;
    padding: 20px 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.accordion-icon {
    font-size: 16px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-muted);
    padding-bottom: 20px;
    margin: 0;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}



.separator {
    opacity: 0.5;
}

/* --- Cart Split Layout --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 300; /* Above header */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

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

.cart-split-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.cart-left-pane {
    flex: 0 0 45%;
    padding: 100px 5% 50px 5%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.cart-left-pane::after {
    content: '';
    position: absolute;
    right: 0;
    top: 100px;
    bottom: 0;
    width: 1px;
    background-color: #e6e6e6;
}

.cart-left-pane.is-empty::after {
    display: none;
}

.cart-left-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
}

.cart-left-header h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.05em;
}

.cart-clear-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    text-transform: lowercase;
}

.cart-clear-btn:hover {
    color: #000;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    overflow-y: auto;
    min-height: 0;
    max-height: 55vh;
}

.cart-item {
    display: flex;
    gap: 20px;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.03);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cart-item-price {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
}

.cart-item-variant {
    font-family: var(--font-body);
    font-size: 11px;
    color: #666666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #dddddd;
    padding: 4px 10px;
    gap: 15px;
}

.quantity-selector button {
    background: none;
    border: none;
    font-size: 14px;
    color: #999999;
    cursor: pointer;
}

.qty-input {
    font-size: 12px;
    font-weight: 600;
    width: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    padding: 0;
    margin: 0;
    color: #000;
}

.qty-input:focus {
    outline: none;
}

/* Hide spin buttons for number input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input[type=number] {
  -moz-appearance: textfield;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #000;
}

.cart-promo-section {
    margin-bottom: 30px;
}

/* Hide promo when order is complete */
body.cart-success-mode #cartPromoSection {
    display: none !important;
}

.promo-label {
    font-family: var(--font-body);
    font-size: 15px;
    color: #999;
    margin-bottom: 15px;
}

.promo-divider {
    border: none;
    border-top: 1px solid #e6e6e6;
    margin: 0;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    opacity: 1;
}


.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 15px;
    color: #000;
    width: 100%;
}

.cart-summary-value {
    font-weight: 700;
    font-family: var(--font-heading);
}

.cart-summary-row.totals {
    margin-top: 10px;
}

.cart-totals-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 15px;
    color: #000;
    width: 100%;
}

#drawerCartSubtotal,
#drawerCartTotal {
    font-weight: 700 !important;
}

.cart-total-row.grand-total {
    margin-top: 10px;
}

/* Right Pane */
.cart-right-pane {
    flex: 1;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
}

.cart-right-pane.checkout-active {
    position: relative;
    height: auto;
    min-height: 100vh;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    padding-bottom: 30px;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    color: #000;
}

.cart-header-wrapper {
    position: sticky;
    top: 0;
    margin-bottom: -80px;
    width: 100%;
    height: 80px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 40px;
    z-index: 400;
    pointer-events: none;
    box-sizing: border-box;
}

.cart-checkout-wrapper {
    width: 100%;
    max-width: 400px;
}

.cart-checkout-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
}

.cart-checkout-btn:hover {
    background-color: #333;
}

/* Inline Checkout Form */
.inline-checkout-form {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    margin: 0 auto;
}

.inline-checkout-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 50px 0;
    text-transform: uppercase;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
    padding-top: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e6e6e6;
}

.checkout-step {
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1;
    color: #999;
    padding-bottom: 23px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
    text-align: left;
    cursor: pointer;
}

.checkout-step.has-error::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ff3b30;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.checkout-step.active {
    color: #000;
    font-weight: 600;
}

.checkout-step.active::after,
.checkout-step.completed::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

.checkout-step.completed {
    color: #000;
}

/* Ensure step 2 with error keeps its color if needed, but the user screenshot shows it grey. Let's make .has-error override color */
.checkout-step.has-error {
    color: #999;
}

.checkout-delivery-options {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    border: 1px solid #e6e6e6;
    padding: 0 20px;
    border-radius: 8px;
    overflow: hidden;
}

.delivery-option {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #e6e6e6;
    cursor: pointer;
    position: relative;
}

.delivery-option.has-nested {
    border-bottom: none;
    padding-bottom: 5px;
}

.delivery-option:last-child {
    border-bottom: none;
}

.delivery-option input[type="radio"] {
    display: none;
}

.delivery-radio-custom {
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 50%;
    margin-right: 15px;
    margin-top: 2px;
    position: relative;
}

.delivery-option input[type="radio"]:checked + .delivery-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #000;
    border-radius: 50%;
}

.delivery-option input[type="radio"]:checked + .delivery-radio-custom {
    border-color: #000;
}

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

.delivery-method-name {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.delivery-method-desc {
    font-family: var(--font-body);
    font-size: 11px;
    color: #999;
}

.delivery-nested-content {
    padding: 0 0 20px 31px;
    border-bottom: 1px solid #e6e6e6;
}

.btn-add-address {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 8px;
}

.btn-add-address:hover {
    background-color: #333;
}

.saved-address-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.saved-address-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: #000;
}

.saved-address-name {
    font-family: var(--font-body);
    font-size: 13px;
    color: #999;
}

.saved-address-edit {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.saved-address-edit:hover {
    color: #000;
}

.inline-continue-btn {
    width: 100%;
    padding: 14px;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 8px;
    transition: background-color 0.2s;
    border: none;
}

.inline-continue-btn:disabled {
    background-color: #cccccc;
    color: #ffffff;
    cursor: not-allowed;
}

.inline-continue-btn:not(:disabled) {
    background-color: #000000;
    color: #ffffff;
    cursor: pointer;
}

.cart-footer {
    padding: 30px 40px;
    border-top: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cart-disclaimer {
    font-family: var(--font-body);
    font-size: 10px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkout-btn {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 18px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #333333;
}

/* Cart Side Drawer (Mini Cart) */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 401;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
}

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

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid #e6e6e6;
}

.cart-drawer-header h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.05em;
    margin: 0;
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    color: #000;
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cart-drawer-footer {
    padding: 30px 40px;
    border-top: 1px solid #e6e6e6;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drawer-checkout-btn {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
    margin-top: 10px;
    border-radius: 8px;
}

.drawer-checkout-btn:hover {
    background-color: #333333;
}

/* Policy Page */
.policy-container {
    padding: 120px 40px 80px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text);
    font-family: var(--font-body);
}

.policy-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
    text-align: center;
}

.policy-content h2 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.policy-content h3 {
    font-size: 13px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.policy-content h4 {
    font-size: 13px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
}

.policy-content p,
.policy-content li {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333333;
}

/* Address Drawer */
.address-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.address-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.address-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 501;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
}

.address-drawer.active {
    right: 0;
}

.address-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid #e6e6e6;
}

.address-drawer-header h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.05em;
    margin: 0;
}

.address-drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    color: #000;
}

.address-drawer-content {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.address-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-label {
    font-family: var(--font-body);
    font-size: 13px;
    color: #999;
}

.shopify-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px; /* 16px prevents iOS zoom */
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.shopify-input:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 1px #000;
}

.shopify-input.error {
    border-color: red;
    box-shadow: 0 0 0 1px red;
}

.address-input {
    font-family: var(--font-body);
    font-size: 15px;
    color: #000;
    border: none;
    border-bottom: 1px solid #e6e6e6;
    padding: 10px 0;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
}

.address-input:focus {
    border-bottom-color: #000;
}

.address-input::placeholder {
    color: #000;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e6e6e6;
    transition: border-color 0.3s;
}

.phone-input-wrapper:focus-within {
    border-bottom-color: #000;
}

.phone-flag {
    font-family: var(--font-body);
    font-size: 15px;
    color: #000;
    margin-right: 10px;
    padding: 10px 0;
}

.phone-input-wrapper .address-input {
    border-bottom: none;
    flex: 1;
}

.address-suggestions {
    position: relative;
    margin-top: 5px;
    width: 100%;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    z-index: 10;
}

.address-suggestions li {
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.address-suggestions li:hover {
    background-color: #f5f5f5;
}

.address-drawer-footer {
    padding: 30px 40px;
    border-top: 1px solid #e6e6e6;
}

.address-save-btn {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.address-save-btn:hover {
    background-color: #333333;
}

/* Floating Labels for Address Drawer */
.floating-group {
    position: relative;
    padding-top: 15px; /* Space for the label to float into */
    gap: 0;
}

.floating-input {
    border-bottom: 1px solid #e6e6e6;
    padding: 10px 0;
    margin: 0;
}

.floating-label {
    position: absolute;
    top: 25px;
    left: 0;
    font-size: 15px;
    color: #999;
    pointer-events: none;
    transition: all 0.2s ease;
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    font-size: 11px;
    color: #999;
}

.address-input.error {
    border-bottom-color: #ff3b30 !important;
}

.address-input.error ~ .floating-label {
    color: #ff3b30 !important;
}

.address-input.error::placeholder {
    color: #ff3b30;
}

.phone-floating-label {
    left: 45px;
}

.floating-input:focus ~ .phone-floating-label,
.floating-input:not(:placeholder-shown) ~ .phone-floating-label {
    left: 0;
}

/* Docs Layout */
.docs-page-container {
    padding: 120px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--color-text);
    font-family: var(--font-body);
}

.docs-page-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

.docs-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.docs-sidebar {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
}

.doc-tab-btn {
    background: none;
    border: none;
    text-align: left;
    padding: 15px 20px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    cursor: pointer;
    transition: background-color 0.3s ease;
    line-height: 1.4;
}

.doc-tab-btn:hover {
    background-color: #f5f5f5;
}

.doc-tab-btn.active {
    background-color: #f0f0f0;
    font-weight: 500;
}

.docs-content-area {
    flex: 1;
}

.doc-pane {
    display: none;
}

.doc-pane.active {
    display: block;
}

.doc-internal-link {
    color: #333;
    text-decoration: underline;
    font-size: 13px;
    transition: color 0.3s ease;
}

.doc-internal-link:hover {
    color: #000;
}

@media (max-width: 768px) {
    /* Docs Layout */
    .docs-layout {
        flex-direction: column;
    }
    .docs-sidebar {
        flex: none;
        width: 100%;
    }
    .docs-page-container {
        padding: 100px 20px 60px;
    }

    /* Global Typography & Layout */
    .campaign-hero {
        height: 100vh;
        height: 100lvh;
        min-height: 100vh;
        background-color: #000;
    }

    .hero-background,
    .hero-video-desktop,
    .hero-video-overlay-desktop {
        display: none !important;
        background-image: none !important;
    }

    .hero-video-mobile {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .hero-video-overlay-mobile {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0) 75%);
        z-index: 2;
        pointer-events: none;
    }

    .hero-content {
        padding-bottom: calc(115px + env(safe-area-inset-bottom)); /* Safely raise title and buttons above iOS Safari bottom bar */
        position: relative;
        z-index: 10;
    }
    h1, h2, h3 {
        font-size: 80%;
    }
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        line-height: 1.1;
    }
    .section-title {
        font-size: 2rem;
    }

    /* Header */
    .header {
        height: 85px;
        padding: 25px 20px 0 20px;
        align-items: center;
    }
    
    .hamburger-btn svg {
        width: 32px;
        height: 32px;
    }
    
    body.nav-open {
        background-color: #000; /* Forces Safari iOS to tint the bottom toolbar dark on mobile */
    }
    .clocks, #productsToggle {
        display: none;
    }
    .menu {
        gap: 10px;
    }
    .menu a {
        font-size: 12px;
        white-space: nowrap;
    }
    
    #mainBagBtn .bag-text, #pdpBag .bag-text {
        display: none;
    }
    #mainBagBtn .bag-icon, #pdpBag .bag-icon {
        display: block !important;
    }
    #mainBagBtn, #pdpBag {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .logo {
        font-size: 1.2rem;
    }
    .nav-links {
        gap: 15px;
    }

    .catalog-content {
        padding: 0 0 4rem 0;
    }
    .stops-header-container {
        padding: 100px 15px 10px 15px;
    }
    .stops-overlay {
        padding-top: 210px;
    }
    .stops-container {
        padding: 0 5px 40px 5px;
    }

    /* Catalog Grid */
    .catalog-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 8px;
    }
    .product-image {
        margin-bottom: 12px;
    }
    .product-title {
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.05em;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    .product-price {
        font-size: 12px;
        font-weight: 800;
    }

    /* PDP Overlay */
    .pdp-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .pdp-overlay {
        padding: 100px 15px 30px;
    }
    .pdp-image-wrapper {
        position: relative;
        width: 100vw;
        margin-left: -15px; /* Pull out of padding */
    }
    .pdp-nav-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
        z-index: 10;
        cursor: pointer;
        opacity: 0.9;
        transition: opacity 0.3s;
    }
    .pdp-nav-arrow.hidden {
        opacity: 0;
        pointer-events: none;
    }
    .pdp-arrow-left {
        left: 10px;
    }
    .pdp-arrow-right {
        right: 10px;
    }
    .pdp-image-col {
        flex: none;
        width: 100vw;
        min-width: 0;
        margin-left: 0; /* Wrapper handles the margin now */
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .pdp-image-col::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    .pdp-image-col img {
        width: 100vw;
        aspect-ratio: 3 / 4;
        flex-shrink: 0;
        scroll-snap-align: center;
        object-fit: contain;
    }
    .pdp-thumbnails-col {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        position: static;
        margin-top: 5px;
        flex: none;
        height: auto;
    }
    .pdp-thumbnails-col div {
        display: none !important;
    }
    .pdp-thumbnails-col img {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: var(--color-text-muted);
        opacity: 0.3;
        padding: 0;
        margin: 0;
        content: url('data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=');
        pointer-events: none;
    }
    .pdp-thumbnails-col img.active-dot {
        opacity: 1;
        background-color: var(--color-text);
    }
    .pdp-details-col {
        flex: none;
        width: 100%;
        padding: 0 5px;
        position: static;
    }
    .pdp-title {
        font-size: 1.5rem;
    }
    .pdp-close {
        top: 15px;
        right: 15px;
    }
    .pdp-bag {
        top: 15px;
        right: 15px;
    }

    /* Cart & Checkout */
    .cart-header-wrapper {
        height: 85px;
        padding: 25px 20px 0 20px;
        align-items: center;
        margin-bottom: -85px;
    }
    .cart-split-container {
        flex-direction: column;
        gap: 10px;
        padding-top: 90px;
    }
    .cart-left-pane, .cart-right-pane {
        width: 100%;
        padding: 0 15px;
        border-right: none;
    }
    .cart-right-pane.checkout-active {
        padding-top: 10px;
        min-height: auto;
    }
    .cart-item {
        padding: 15px 0;
    }
    .cart-item-img {
        width: 60px;
        height: 60px;
    }

    /* Inline Checkout */
    .checkout-cols {
        flex-direction: column;
        gap: 30px;
    }
    .checkout-col-left, .checkout-col-right {
        width: 100%;
    }
    .inline-checkout-title {
        margin-bottom: 10px;
        font-size: 18px;
    }
    .checkout-steps {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        padding-top: 5px;
        margin-bottom: 15px;
    }

    /* Cart Drawer */
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    .cart-drawer.active {
        right: 0;
    }
    .cart-drawer-header, .drawer-cart-items, .drawer-cart-footer {
        padding: 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}


@media (max-width: 768px) {
    .path-node {
        max-width: 45%;
        padding: 8px;
    }
    #nodeDrop1 {
        left: 2%;
        top: 22%;
    }
    #nodeDrop2 {
        right: 2%;
        top: 22%;
    }
    #nodeDrop3 {
        bottom: 10%;
        left: 50%;
        transform: translateX(-50%);
    }
    .node-title {
        font-size: 12px;
    }
    .node-desc {
        font-size: 10px;
    }
    .node-date {
        font-size: 9px;
    }
    .path-close {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .path-header {
        top: 0px;
        left: 50%;
        width: 100%;
    }
}

/* --- About Page Footer Block --- */
.about-footer-block {
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 40px;
}
.about-footer-text {
    margin-bottom: 40px;
}
.about-footer-logo {
    width: 250px;
    height: auto;
    transform: translateY(40px);
}

@media (max-width: 768px) {
    .about-footer-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .about-footer-text {
        margin-bottom: 20px;
        width: 100%;
    }
    .about-footer-logo {
        transform: translateY(0);
        margin: 0 auto;
        display: block;
    }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-text, #000);
    color: var(--color-bg, #fff);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 14px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

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

.cookie-banner-text {
    flex: 1;
    margin-right: 20px;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--color-bg, #fff);
    text-decoration: underline;
    opacity: 0.8;
}

.cookie-banner-text a:hover {
    opacity: 1;
}

.cookie-banner-btn {
    background: transparent;
    color: var(--color-bg, #fff);
    border: 1px solid var(--color-bg, #fff);
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-heading, 'Manrope', sans-serif);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

.cookie-banner-btn:hover {
    background: var(--color-bg, #fff);
    color: var(--color-text, #000);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .cookie-banner-text {
        margin-right: 0;
        margin-bottom: 15px;
        font-size: 12px;
    }
    .cookie-banner-btn {
        width: 100%;
        text-align: center;
    }
}

img {
}

.sold-out-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(128, 128, 128, 0.7);
    color: #fff;
    padding: 12px 0;
    width: 80%;
    border-radius: 8px;
    text-align: center;
    font-family: var(--font-heading, 'Manrope', sans-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 768px) {
    .sold-out-overlay {
        font-size: 11px;
        width: 90%;
        padding: 10px 0;
    }
}

/* --- Size Guide Overlay --- */
.size-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    overflow-y: auto;
    display: block;
    padding-top: 80px;
    padding-bottom: 40px;
}

.size-guide-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.size-guide-close {
    position: absolute;
    top: 100px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 24px;
    cursor: pointer;
    z-index: 201;
}

.sg-container {
    width: 100%;
    max-width: 100%;
    padding: 40px 20px;
    text-align: center;
}

.sg-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.sg-products-slider {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    height: auto;
    overflow-x: auto;
    padding: 10px 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.sg-products-slider::-webkit-scrollbar {
    display: none;
}

.sg-product {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    width: auto;
    min-width: max-content;
    height: auto;
    border: 1px solid transparent;
    border-radius: 30px;
    padding: 12px 24px;
    background: rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.sg-product:hover {
    opacity: 0.8;
}
.sg-product.active {
    opacity: 1;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sg-product-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.sg-product-img {
    width: 100%;
    max-height: 80%;
    object-fit: contain;
}

.sg-table-wrapper {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

.sg-table {
    width: 100%;
    max-width: 800px; /* Limit table width */
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 14px;
    table-layout: fixed; /* Make columns static */
}

.sg-table th:first-child, .sg-table td:first-child {
    text-align: left;
    font-weight: 600;
    width: 40%; /* Fixed width for the label column */
}
.sg-table th:not(:first-child), .sg-table td:not(:first-child) {
    text-align: center;
    width: 15%; /* Equal static width for size columns */
}

.sg-table th, .sg-table td {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.sg-table th {
    font-weight: 700;
}
.sg-table th:first-child, .sg-table td:first-child {
    text-align: left;
    font-weight: 600;
}
.sg-table th:not(:first-child), .sg-table td:not(:first-child) {
    text-align: center;
}
