html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

:root {
    --color-dark: #1C1813;
    --color-white: #FFFFFF;
    --color-grey: #666666;
    --color-light: #f9f9f9;
    --transition-standard: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --page-margin: 64px;
    --container-padding: 64px;
    --mobile-margin: 20px;
}

html[lang="th"] {
    --font-heading: 'Noto Sans Thai', 'Manrope', sans-serif;
    --font-body: 'Noto Sans Thai', 'Manrope', sans-serif;
}

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

img,
video {
    display: block;
    image-rendering: auto;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    letter-spacing: 0.03em;
    /* Brand standard tracking */
    overflow-x: clip;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    margin: 0;
}

button,
.btn,
.btn-pill,
.checkout-btn {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
}

/* Global Mobile Font Scaling */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 18px;
    }

    button,
    .btn,
    .btn-pill,
    .checkout-btn {
        font-size: 12px;
    }
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--page-margin);
    z-index: 1000;
    transition: var(--transition-standard);
    color: var(--color-white);
}

.navbar.scrolled {
    background-color: var(--color-white);
    color: var(--color-dark);
    box-shadow: none;
}

.navbar.nav-dark-text {
    background-color: var(--color-white) !important;
    position: fixed;
    box-shadow: none !important;
}

.navbar.nav-dark-text,
.navbar.nav-dark-text a,
.navbar.nav-dark-text span,
.navbar.nav-dark-text i,
.navbar.nav-dark-text .nav-link {
    color: var(--color-dark) !important;
}

.navbar.nav-dark-text .icon-svg-minimal {
    stroke: var(--color-dark) !important;
}

.navbar.nav-dark-text .logo-image {
    filter: none !important;
}

/* Standard navbar layout */
.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-body);
    font-weight: 500 !important;
    font-size: 24px !important;
    letter-spacing: 4px;
}

.nav-link {
    font-size: 12px;
    /* Removed Uppercase */
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
}

.menu-trigger,
.search-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-standard);
    padding: 5px 0;
    /* Increase hover area slightly */
}

/* Ensure the icon and text change color together when the parent is hovered */
.menu-trigger:hover .nav-trigger-text,
.search-trigger:hover .nav-trigger-text,
.menu-trigger:hover .icon-svg-minimal,
.search-trigger:hover .icon-svg-minimal,
#user-icon-link:hover .icon-svg-minimal,
#cart-icon:hover .icon-svg-minimal {
    color: #D9291C !important;
    stroke: #D9291C !important;
}

.nav-trigger-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
    line-height: 1;
    transition: color 0.3s ease;
}

.icon-svg-minimal {
    transition: stroke 0.3s ease;
}

/* Menu Drawer Styles */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    /* Dark translucent tint */
    backdrop-filter: blur(10px);
    /* Deep premium blur */
    -webkit-backdrop-filter: blur(10px);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 700px;
    height: 100vh;
    background: #FFFFFF;
    z-index: 1020;
    transform: translateX(-100%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    padding: 40px var(--page-margin);
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.03);
}

@media (max-width: 1440px) {
    .menu-drawer {
        width: 520px;
    }
}

@media (max-width: 1020px) {
    .menu-drawer {
        width: 480px;
    }
}

@media (max-width: 450px) {
    .menu-drawer {
        width: 100vw;
    }
}

.menu-drawer.active {
    transform: translateX(0);
}

/* Search Drawer Styles */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.search-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 40vh;
    background: #FFFFFF;
    /* Pure white background */
    z-index: 1020;
    transform: translateY(-100%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    padding: 100px var(--page-margin) 60px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.03);
}

.search-drawer.active {
    transform: translateY(0);
}

.search-header {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.search-input-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-inside {
    position: absolute;
    left: 0;
    color: #999;
}

.search-input {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid #E3DFD9;
    padding: 15px 0 15px 40px;
    font-size: 24px;
    font-family: var(--font-heading);
    color: #000;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #D9291C;
}

.close-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    padding: 10px;
    transition: transform 0.3s ease;
}

.close-search-btn:hover {
    transform: rotate(90deg);
    color: #D9291C;
}

.search-body {
    max-width: 1200px;
    margin: 40px auto 0;
    width: 100%;
}

.search-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 20px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.suggestion-tag {
    padding: 8px 20px;
    border: 1px solid #E3DFD9;
    border-radius: 100px;
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    border-color: #D9291C;
    color: #D9291C;
    background: #FFFFFF;
}

@media (max-width: 1024px) {
    .search-drawer {
        padding: 100px 40px 50px;
        min-height: 35vh;
    }

    .search-header {
        gap: 20px;
    }

    .search-input {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .search-drawer {
        padding: 80px 20px 40px;
        min-height: 30vh;
    }

    .search-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .search-input-container {
        width: calc(100% - 40px);
    }

    .search-input {
        font-size: 18px;
        padding: 10px 0 10px 35px;
    }

    .search-body {
        margin-top: 30px;
    }

    .suggestion-tags {
        gap: 8px;
    }

    .suggestion-tag {
        padding: 6px 15px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .search-drawer {
        padding-top: 70px;
    }

    .search-input {
        font-size: 16px;
    }

    .search-label {
        margin-bottom: 15px;
    }
}

/* Search Results Area */
.search-results-area {
    margin-top: 60px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    /* Added gap since borders are gone */
    border: none;
    /* No grid border */
}

.search-result-card {
    background: #FFFFFF;
    border: none;
    /* No card border */
    transition: background-color 0.3s ease;
}

.search-result-card .product-image {
    position: relative;
    padding: 0;
    margin-bottom: 20px;
    background-color: #FFFFFF;
}

.search-result-card .product-info {
    padding: 0 0 30px 0;
    /* Remove horizontal padding since no borders */
}

.search-result-card:hover {
    background-color: #FFFFFF;
}

.search-result-card:hover .product-image img {
    transform: none;
}

.search-result-card .product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: normal;
    transform: translate3d(0, 0, 0);
    transition:
        transform 0.68s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.68s cubic-bezier(0.65, 0, 0.35, 1);
}

.search-result-card .product-image-primary {
    opacity: 1;
    z-index: 1;
}

.search-result-card .product-image-secondary {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.08);
    z-index: 2;
}

.search-result-card:hover .has-sub-pic .product-image-primary {
    opacity: 0;
}

.search-result-card:hover .has-sub-pic .product-image-secondary {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.search-loading,
.search-empty {
    padding: 60px 0;
    text-align: center;
    font-size: 14px;
    color: #999;
    font-style: italic;
}

.search-loading {
    color: #D9291C;
}

#query-val {
    color: #000;
    font-weight: 600;
    font-style: normal;
}

@media (max-width: 1200px) {
    .search-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-result-card .product-image {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .search-results-area {
        margin-top: 40px;
    }
}

.menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.close-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #1C1813;
    padding: 10px;
    margin-right: -10px;
    transition: transform 0.3s ease;
}

.close-menu-btn:hover {
    transform: rotate(90deg);
    color: #D9291C;
}

.menu-body {
    flex: 1;
    overflow-y: auto;
}

.menu-section {
    margin-bottom: 35px;
}

.menu-section-title {
    font-size: 10px;
    /* Removed Uppercase */
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 15px;
    font-weight: 500;
}

.menu-list {
    list-style: none;
    padding: 0;
}

.menu-list li {
    margin-bottom: 12px;
}

.menu-link {
    font-size: 16px;
    color: #1C1813;
    font-weight: 400;
    transition: all 0.3s ease;
    display: block;
}

.menu-link:hover {
    color: #D9291C;
    transform: translateX(5px);
}

.menu-footer {
    padding-top: 30px;
    border-top: 1px solid #E3DFD9;
}

.menu-contact {
    font-size: 13px;
    color: #666666;
    margin-bottom: 10px;
}

.menu-signout {
    font-size: 12px;
    color: #D9291C;
    text-decoration: underline;
    font-weight: 500;
}

/* Hero */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #000;
    /* Fallback */
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    z-index: 1;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-title {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero-subtitle {
    /* Removed Uppercase */
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    height: 48px;
    padding: 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    transition: var(--transition-standard);
    cursor: pointer;
    border: 1px solid transparent;
}

.rainbow-text-animated {
    background: linear-gradient(to right,
            #D9291C, #ff4d4d, #8b0000, #D9291C);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-move 3s linear infinite;
    display: inline-block;
}

@keyframes rainbow-move {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light {
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-outline-dark {
    background-color: transparent;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
}

.btn-outline-dark:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn-retake:hover {
    background-color: transparent !important;
    border-color: #D9291C !important;
    color: #D9291C !important;
}

.write-review-btn:hover {
    background-color: #D9291C !important;
    border-color: #D9291C !important;
    color: #FFFFFF !important;
}

.btn-outline-dark {
    background-color: transparent;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
}

.btn-outline-dark:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.write-review-btn:hover {
    background-color: #D9291C !important;
    border-color: #D9291C !important;
    color: #FFFFFF !important;
}

.btn-outline-dark {
    background-color: transparent;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
}

.btn-outline-dark:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* Split Sections */
.split-section {
    display: flex;
    min-height: 80vh;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-image {
    flex: 1;
    overflow: hidden;
}

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

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

.split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px var(--page-margin);
    text-align: center;
}

.dark-theme {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.light-theme {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.overline {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    color: #999;
}

.overline.accent-red {
    color: #D9291C;
    opacity: 1;
}

.section-text {
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 32px;
    color: inherit;
    opacity: 0.8;
}

.link-underline {
    font-size: 12px;
    /* Removed Uppercase */
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.link-underline:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}

/* Carousel */
/* Community Section (Social Proof) */
.community-section {
    padding: 120px 0;
    /* Removed horizontal padding */
    background-color: #F6F6F6;
    overflow: hidden;
    position: relative;
}

.community-header {
    padding: 0 80px;
    /* Kept header text aligned with other sections while gallery stays full-width */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.community-title {
    font-size: 42px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.community-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.community-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #999;
}

.meta-value {
    color: #000;
}

.community-more-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #000;
    text-decoration: none;
    border: 1px solid #E3DFD9;
    padding: 12px 24px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.community-more-btn:hover {
    border-color: #E3DFD9;
    gap: 20px;
}

.community-gallery {
    margin: 0 calc(var(--container-padding) * -1);
    padding: 0 var(--container-padding);
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.community-gallery::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.community-track {
    display: flex;
    gap: 24px;
    padding-bottom: 20px;
}

.community-card {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-card:hover .card-visual img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.community-card:hover .play-overlay {
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-quote {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-weight: 400;
}

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

.influencer-name {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #888;
}

.used-product {
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #aaa;
    font-weight: 500;
}

.accent-red {
    color: #D9291C;
}

.carousel-section {
    padding: 100px 0 100px 0;
    background-color: var(--color-white);
    width: 100%;
    margin: 0;
}

.carousel-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 var(--page-margin);
}

.carousel-header h2 {
    font-family: var(--font-heading);
}

.carousel-container {
    width: 100%;
}

.creations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: background-color 0.3s ease;
}

.carousel-item:last-child {
    border-right: none;
}

.product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 0 0 40px 0;
    cursor: pointer;
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1.2;
    background-color: #FFFFFF;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    backface-visibility: hidden;
    transition: transform 0.8s ease;
}

.creations-grid .product-image {
    position: relative;
    padding: 0;
}

.creations-grid .product-image img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: normal;
    transform-origin: center;
    transition:
        transform 0.68s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.68s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.creations-grid .product-image-primary {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    z-index: 1;
}

.creations-grid .product-image-secondary {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.08);
    z-index: 2;
}

.creations-grid .has-sub-pic:hover .product-image-primary {
    opacity: 0;
    transform: translate3d(0, 0, 0);
}

.creations-grid .has-sub-pic:hover .product-image-secondary {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.carousel-item:hover .product-image img {
    transform: none;
}

.creations-grid .carousel-item:hover .has-sub-pic .product-image-primary {
    opacity: 0;
    transform: translate3d(0, 0, 0);
}

.creations-grid .carousel-item:hover .has-sub-pic .product-image-secondary {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 768px), (min-resolution: 2dppx) {
    .carousel-item:hover .product-image img,
    .product-link:hover .product-image img {
        transform: none;
    }

    .creations-grid .carousel-item:hover .has-sub-pic .product-image-primary,
    .creations-grid .product-link:hover .has-sub-pic .product-image-primary {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }

    .creations-grid .carousel-item:hover .has-sub-pic .product-image-secondary,
    .creations-grid .product-link:hover .has-sub-pic .product-image-secondary {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.image-debug-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    max-width: calc(100% - 16px);
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #FFFFFF;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    pointer-events: none;
}

@media (max-width: 768px) {
    .creations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

.product-info {
    text-align: left;
    padding: 0 40px;
}

.product-type {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #666666;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 13px;
    /* Slightly smaller for uppercase balance */
    font-weight: 500;
    margin-bottom: 6px;
    color: #1C1813;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-price-grid {
    display: block;
    font-size: 13px;
    color: #555;
    font-weight: 300;
}



/* --- Footer: Institutional Registry --- */
.footer {
    background-color: #FFFFFF;
    border-top: 1px solid #E3DFD9;
    padding: 120px var(--page-margin) 60px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 120px;
}

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

.footer-logo {
    display: block;
    margin-bottom: 12px;
    line-height: 0;
}

.footer-logo-image {
    height: 28px;
    width: auto;
    /* brightness(0) crushes the logo's natural color to solid black while
       preserving its alpha, same trick used for the navbar's white variant. */
    filter: brightness(0);
}

.footer-tagline {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
}

.footer-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 40px;
    font-weight: 500;
}

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

.footer-links a {
    font-size: 13px;
    color: #555;
    transition: all 0.4s ease;
}

.footer-links a:hover {
    color: #D9291C;
    transform: translateX(4px);
}

.manifesto-text {
    font-size: 13px;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 32px;
    max-width: 320px;
}

.footer-input-group {
    display: flex;
    border-bottom: 1px solid #E3DFD9;
    max-width: 320px;
}

.footer-input {
    background: none;
    border: none;
    padding: 12px 0;
    font-family: inherit;
    font-size: 12px;
    color: #1C1813;
    flex: 1;
    outline: none;
}

.footer-submit {
    background: none;
    border: none;
    padding: 12px 0;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    color: #1C1813;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-submit:hover {
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #E3DFD9;
    padding-top: 40px;
}

.footer-copyright {
    font-size: 9px;
    letter-spacing: 2px;
    color: #bbb;
}

.footer-institutional-links {
    display: flex;
    gap: 32px;
}

.footer-institutional-links a {
    font-size: 9px;
    letter-spacing: 2px;
    color: #bbb;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-institutional-links a:hover {
    color: #D9291C;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 80px 20px 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .split-section,
    .split-section.reverse {
        flex-direction: column;
    }

    .split-content {
        padding: 40px 20px;
    }
}

/* Minimal Grey Theme Overrides */
body.minimal-grey-theme {
    background-color: #FFFFFF;
    color: #1C1813;
}

.minimal-nav {
    background-color: transparent;
    color: #FFFFFF;
    box-shadow: none;
    padding-top: 0;
    border-bottom: none !important;
    align-items: center;
    transition: all 0.4s ease;
}

.minimal-nav.scrolled {
    background-color: #FFFFFF;
    color: #1C1813;
}

.minimal-nav .nav-link {
    color: #FFFFFF;
    font-size: 13px;
    text-transform: capitalize;
    font-weight: 500;
    transition: color 0.3s ease;
}

.minimal-nav.scrolled .nav-link {
    color: #1C1813;
}

.minimal-nav .nav-link:hover {
    color: #D9291C;
}

.icon-minimal {
    font-size: 18px;
    color: transparent;
    -webkit-text-stroke: 1px #FFFFFF;
    cursor: pointer;
    font-weight: 300;
    transition: all 0.3s ease;
}

.minimal-nav.scrolled .icon-minimal {
    -webkit-text-stroke: 1px #333;
}

.icon-minimal:hover {
    color: #D9291C;
    -webkit-text-stroke: 0px transparent !important;
}

.icon-svg-minimal {
    transition: all 0.3s ease;
    cursor: pointer;
    stroke: #FFFFFF;
}

.minimal-nav.scrolled .icon-svg-minimal {
    stroke: #333;
}

.icon-svg-minimal:hover {
    stroke: #D9291C !important;
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #FFFFFF;
    color: #1C1813;
    font-size: 9px;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

/* New: Centered badge inside the bag icon body */
.cart-badge.inside-bag {
    position: absolute;
    top: 55%;
    /* Centered in the main body part of the bag */
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    background: transparent !important;
    /* No circle background */
    font-size: 10px;
    font-weight: 600;
    width: auto;
    height: auto;
    color: #FFFFFF !important;
    /* Default for index */
}

.minimal-nav.scrolled .cart-badge.inside-bag,
.navbar.nav-dark-text .cart-badge.inside-bag {
    color: #1C1813 !important;
    /* For dark text nav */
}

.minimal-nav.scrolled .cart-badge:not(.inside-bag) {
    background-color: #1C1813;
    color: #FFFFFF;
}

.minimal-grey-theme .product-container.split-layout {
    display: flex;
    background-color: transparent;
}

.minimal-grey-theme .product-details-container {
    flex: 1;
    background-color: transparent;
    position: relative;
}

.minimal-grey-theme .product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 0px;
    align-items: stretch;
    justify-content: flex-start;
}

.minimal-grey-theme .product-details-sticky {
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--page-margin);
    overflow-y: auto;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.minimal-grey-theme .product-gallery img {
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
}

.btn-pill {
    border-radius: 50px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.add-to-cart-btn {
    width: 100% !important;
    height: 48px;
    border: 1px solid #E3DFD9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background-color: transparent !important;
    border-color: #D9291C !important;
    color: #D9291C !important;
}

.minimal-accordion .accordion-item {
    border-top: none;
    border-bottom: 1px solid #E3DFD9;
}

.minimal-accordion .accordion-header {
    text-transform: none;
    font-size: 12px;
    font-weight: 400;
    color: #000000;
}

.minimal-accordion .accordion-header i {
    font-size: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.minimal-accordion .accordion-item.active .accordion-header i {
    transform: rotate(90deg);
}

.brand-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
}

.minimal-nav.scrolled .logo-image {
    filter: none;
}

.minimal-accordion .accordion-content {
    display: grid !important;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 0 !important;
}

.minimal-accordion .accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
    padding-bottom: 20px !important;
}

.minimal-accordion .accordion-content>* {
    overflow: hidden;
}

.minimal-accordion .accordion-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #000000;
}

.minimal-grey-theme .breadcrumbs {
    color: #666666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.minimal-grey-theme .product-title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.minimal-grey-theme .product-price {
    font-size: 14px;
    color: #555;
    margin-bottom: 24px;
}

/* You May Like Section */
.you-may-like {
    padding: 80px var(--page-margin);
    text-align: left;
}

.you-may-like h2 {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 40px;
}

.related-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    text-align: center;
    cursor: pointer;
}

.related-img {
    background-color: #f5f5f5;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 15px;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: transform 0.5s ease;
}

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

.related-card h3 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.related-card p {
    font-size: 13px;
    color: #666666;
}

@media (max-width: 768px) {
    .related-products {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Additional Utility */
.w-100 {
    width: 100%;
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn-dark:hover {
    background-color: #FFFFFF !important;
    color: #D9291C !important;
    border-color: #D9291C !important;
}

/* Replaced by grid-specific product-link above */

.product-link:hover .product-image img {
    transform: none;
    /* re-apply hover if nested */
}

.creations-grid .product-link:hover .has-sub-pic .product-image-primary {
    opacity: 0;
    transform: translate3d(0, 0, 0);
}

.creations-grid .product-link:hover .has-sub-pic .product-image-secondary {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 768px), (min-resolution: 2dppx) {
    .product-link:hover .product-image img {
        transform: none;
    }

    .creations-grid .product-link:hover .has-sub-pic .product-image-primary {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }

    .creations-grid .product-link:hover .has-sub-pic .product-image-secondary {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* Review Drawer Attributes */
.review-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.review-tag {
    padding: 8px 16px;
    border: 1px solid #E3DFD9;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFFFFF;
    color: #666666;
}

.review-tag-group input[type="radio"]:checked+.review-tag {
    background: #111;
    color: #FFFFFF;
    border-color: #E3DFD9;
}

/* Review Display Attributes */
.review-attributes-display {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E3DFD9;
}

.attr-chip {
    font-size: 11px;
    color: #e63946;
    background: transparent;
    padding: 0;
    margin-right: 20px;
    letter-spacing: 0.02em;
}

.attr-chip strong {
    color: #444;
    font-weight: 500;
    margin-right: 4px;
}

/* Review Drawer */
.review-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.review-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 700px;
    height: 100vh;
    background: #fdfdfd;
    z-index: 1020;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1440px) {
    .review-drawer {
        width: 520px;
    }
}

@media (max-width: 1020px) {
    .review-drawer {
        width: 480px;
    }
}

@media (max-width: 450px) {
    .review-drawer {
        width: 100vw;
    }
}

.review-drawer.active {
    transform: translateX(0);
}

.review-header {
    padding: 30px var(--page-margin);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-title {
    font-size: 24px;
    font-weight: 400;
    color: #1C1813;
    margin: 0;
}

.close-review-btn {
    background: none;
    border: none;
    padding: 10px;
    margin-right: -10px;
    cursor: pointer;
    color: #1C1813;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-review-btn:hover {
    transform: rotate(90deg);
    color: #D9291C;
}

.review-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px var(--page-margin);
}

/* Form Styles */
.review-form .form-group {
    margin-bottom: 40px;
}

.review-form .form-label {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #666666;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    text-transform: none;
    /* Align with checkout */
}

.review-form .form-input,
.review-form .form-textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #E3DFD9;
    font-family: inherit;
    font-size: 14px;
    color: #1C1813;
    padding: 10px 0;
    background: transparent;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.review-form .form-input {
    height: 44px;
}

.review-form .form-input:focus,
.review-form .form-textarea:focus {
    outline: none;
    border-bottom-color: #E3DFD9;
    background: transparent;
}

.review-form .form-textarea {
    resize: none;
    min-height: 120px;
}

.review-footer {
    padding: 30px var(--page-margin);
    border-top: 1px solid #E3DFD9;
}

.review-disclaimer {
    font-size: 11px;
    color: #999;
    margin-bottom: 20px;
}

.submit-review-btn {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 500;
    background-color: #1C1813;
    color: #FFFFFF;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-review-btn:hover {
    background-color: transparent !important;
    border-color: #D9291C !important;
    color: #D9291C !important;
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    /* Dark translucent tint */
    backdrop-filter: blur(10px);
    /* Deep premium blur */
    -webkit-backdrop-filter: blur(10px);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

/* Cart Drawer - Premium Minimalist Redesign */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 700px;
    height: 100vh;
    background: #FFFFFF;
    z-index: 1020;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1440px) {
    .cart-drawer {
        width: 520px;
    }
}

@media (max-width: 1020px) {
    .cart-drawer {
        width: 480px;
    }
}

@media (max-width: 450px) {
    .cart-drawer {
        width: 100vw;
    }
}

.cart-drawer.active {
    transform: translateX(0);
}

/* Header Tabs */
.cart-header {
    padding: 30px var(--page-margin);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.cart-title {
    font-size: 24px;
    font-weight: 400;
    text-transform: none;
    /* Changed from uppercase for better fit with 24px */
    letter-spacing: 0.5px;
    color: #1C1813;
    margin: 0;
}

.close-cart-btn {
    background: none;
    border: none;
    padding: 10px;
    margin-right: -10px;
    /* Offset padding to align with edge */
    cursor: pointer;
    color: #1C1813;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-cart-btn:hover {
    transform: rotate(90deg);
    color: #D9291C;
}

/* Cart Items Area */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px var(--page-margin);
}

.cart-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
}

.cart-item-image {
    width: 120px;
    height: 150px;
    background: #FFFFFF;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-ref {
    font-size: 10px;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 2px;
}

.cart-item-title {
    margin-bottom: 8px;
    color: #1C1813;
}

.cart-item-size {
    font-size: 12px;
    color: #666666;
    margin-bottom: 12px;
}

/* Bottom Actions Row */
.cart-item-bottom {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 30px;
    flex-direction: column;
}

.cart-item-price {
    color: #1C1813;
}

.qty-boxed-selector {
    display: flex;
    align-items: center;
    border: 1px solid #E3DFD9;
    background: #FFFFFF;
    border-radius: 4px;
    padding: 2px;
    height: 32px;
}

.qty-calc {
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1C1813;
    transition: all 0.2s ease;
}

.qty-calc:hover {
    color: #D9291C;
}

.qty-number {
    padding: 0 12px;
    min-width: 34px;
    text-align: center;
}

/* Footer Section */
.cart-footer {
    padding: 30px;
    background: #FFFFFF;
    border-top: 1px solid #E3DFD9;
    margin-top: auto;
    /* Push to bottom */
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.total-label {
    font-size: 20px;
    /* Standardize to header size */
    /* Removed Uppercase */
    letter-spacing: 1px;
    color: #1C1813;
}

.total-amount-box {
    text-align: right;
}

.total-amount {
    font-size: 20px;
    /* Standardize to header size */
    color: #1C1813;
    line-height: 1;
}

.vat-note {
    font-size: 10px;
    color: #999;
    /* Removed Uppercase */
    letter-spacing: 0.5px;
    display: block;
    margin-top: 4px;
}

.checkout-btn {
    width: 100% !important;
    height: 48px;
    background: #000;
    color: #FFFFFF;
    border: 1px solid #E3DFD9;
    font-family: var(--font-body);
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
}

.checkout-btn:hover {
    background: transparent;
    color: #D9291C;
    border-color: #D9291C;
}



/* Product Page Layout */
.product-page .navbar {
    border-bottom: 1px solid #E3DFD9;
}

.product-container {
    display: flex;
    padding-top: 72px;
}

.product-gallery {
    flex: 1.5;
    display: flex;
    flex-direction: column;
}

.product-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-details-container {
    flex: 1;
    position: relative;
    background: var(--color-white);
}

.product-details-sticky {
    position: sticky;
    top: 72px;
    padding: 60px 80px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.breadcrumbs {
    font-size: 12px;
    /* Removed Uppercase */
    color: var(--color-grey);
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.product-title {
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.product-subtitle {
    color: var(--color-grey);
    margin-bottom: 24px;
}

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

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

.variant-label {
    font-size: 12px;
    /* Removed Uppercase */
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.variant-options {
    display: flex;
    gap: 16px;
}

.variant-btn {
    padding: 12px 24px;
    border: 1px solid #E3DFD9;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-standard);
}

.variant-btn.active,
.variant-btn:hover {
    border-color: var(--color-dark);
}

.add-to-cart-btn {
    padding: 18px 0;
    margin-bottom: 48px;
}

.product-description {
    line-height: 1.6;
    margin-bottom: 40px;
}

.accordion-item {
    border-top: 1px solid #E3DFD9;
    border-bottom: 1px solid #E3DFD9;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    background: transparent;
    border: none;
    font-family: inherit;
    /* Removed Uppercase */
    letter-spacing: 1px;
    cursor: pointer;
}

.accordion-content {
    display: none;
    padding: 0 0 24px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
}

.accordion-content ul {
    padding-left: 20px;
}

.accordion-item.active .accordion-content {
    display: block;
}

@media (max-width: 900px) {
    .product-container {
        flex-direction: column;
    }

    .product-details-sticky {
        position: sticky;
        bottom: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 32px 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
    }

    /* .minimal-grey-theme .product-details-sticky (line ~1530) is more
       specific than the bare selector above, so it wins regardless of media
       query order — match its specificity here to actually apply on mobile.
       Its height:calc(100vh-72px) + justify-content:center are meant for a
       full-height desktop column; on this compact bottom-docked mobile card
       they center the short content inside a ~740px box, leaving a big empty
       gap above (and below) it — so both are reset here to fit the content. */
    .minimal-grey-theme .product-details-sticky {
        padding: 32px 20px;
        top: auto;
        height: auto;
        max-height: calc(100vh - 72px);
        justify-content: flex-start;
    }

    .minimal-grey-theme .product-gallery {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
        -webkit-overflow-scrolling: touch;
        width: 100vw;
        max-width: 100vw;
    }

    .minimal-grey-theme .product-gallery::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for Chrome, Safari and Opera */
    }

    .minimal-grey-theme .product-gallery img {
        width: 100vw;
        flex: 0 0 100vw;
        height: auto;
        min-height: 50vh;
        object-fit: cover;
        scroll-snap-align: center;
        max-width: 100vw;
    }
}

/* Auth/Login Page Styles */
.auth-page {
    background-color: #FFFFFF;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    text-align: left;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-section {
    margin-bottom: 60px;
}

.auth-section h2 {
    font-size: 20px;
    font-weight: 500;
    /* Removed Uppercase */
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #1C1813;
}

.auth-form .form-group {
    margin-bottom: 24px;
    position: relative;
}

.auth-form label {
    display: block;
    font-size: 12px;
    color: #666666;
    margin-bottom: 8px;
    /* Removed Uppercase */
    letter-spacing: 0.5px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="date"],
.auth-form input[type="tel"]:not(.phone-number-input),
.auth-form select:not(.phone-prefix-select) {
    width: 100%;
    height: 44px;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #E3DFD9;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    outline: none;
    transition: border-color 0.3s ease;
    background: transparent;
    border-radius: 0;
    box-sizing: border-box;
    display: block;
}

.auth-form input:focus,
.auth-form select:focus {
    border-bottom-color: #E3DFD9;
}

/* Remove blue background on autofill (Chrome/Safari/Edge) */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    -webkit-text-fill-color: #1C1813 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Phone Box — minimalist underlined row for consistency */
.phone-box {
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid #E3DFD9;
    width: 100%;
    height: 44px;
    background: transparent;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    padding-bottom: 4px;
    /* Space for the underline */
}

.phone-box:focus-within {
    border-bottom-color: #E3DFD9;
}

.phone-box.input-error {
    border-bottom: 1px solid #D9291C !important;
}

.phone-prefix-select {
    flex: 0 0 25% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: inherit;
    font-size: 14px;
    color: #1C1813;
    cursor: pointer;
    padding: 0 10px 0 0 !important;
    margin: 0 !important;
}

.phone-number-input {
    flex: 0 0 75% !important;
    /* 3/4 of width */
    height: 100% !important;
    border: none !important;
    outline: none !important;
    font-family: inherit;
    font-size: 14px;
    color: #1C1813;
    background: transparent !important;
    padding: 0 0 0 14px !important;
    margin: 0 !important;
    border-left: 1px solid #E3DFD9 !important;
    box-sizing: border-box;
}

.phone-number-input::placeholder {
    color: #bbb;
}

/* Password Rules & Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-toggle-icon {
    position: absolute;
    right: 0;
    cursor: pointer;
    font-size: 14px;
    color: #666666;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.password-toggle-icon:hover {
    color: #000;
}

.password-rules {
    margin-top: 15px;
    list-style: none;
    padding-left: 0;
}

.password-rule-item {
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    letter-spacing: 0.5px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.password-rule-item.invalid {
    color: #D18E00;
}

.password-rule-item.valid {
    color: #006B44;
}

.rule-icon {
    color: #1C1813;
    font-weight: 300;
}

.password-rule-item.invalid .rule-icon {
    color: #D18E00;
}

.password-rule-item.valid .rule-icon {
    color: #006B44;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.auth-form input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 16px;
    height: 16px;
    border: 1px solid #E3DFD9 !important;
    border-radius: 2px !important;
    background: transparent !important;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    flex-shrink: 0;
    outline: none !important;
    transition: all 0.2s ease;
}

.auth-form input[type="checkbox"]:checked::after {
    content: "";
    /* Minimalist thin checkmark */
    position: absolute;
    left: 50%;
    top: 45%;
    width: 4px;
    height: 8px;
    border: solid #E3DFD9;
    border-width: 0 1.5px 1.5px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 16px;
    /* Increased space for luxury look */
    color: #1C1813;
    cursor: pointer;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    line-height: normal;
}

.remember-me input[type="checkbox"] {
    top: 1px;
    /* Precision nudge to align with 14px text baseline */
}

.forgot-password {
    /* Removed Uppercase */
    color: #1C1813;
    letter-spacing: 0.5px;
    text-decoration: underline;
}

.register-info {
    font-size: 13px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 30px;
}

.btn-auth-width {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-auth-width:hover {
    background-color: transparent !important;
    border-color: #D9291C !important;
    color: #D9291C !important;
}

/* Multi-column Form Styles */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
    align-items: flex-end;
}

.form-col-small {
    flex: 0 0 100px;
}

.form-col {
    flex: 1;
}

.form-col-medium {
    flex: 0 0 160px;
    /* Specific width for the phone prefix dropdown as per screenshot */
}

.auth-form select {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #E3DFD9;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: #1C1813;
    outline: none;
    cursor: pointer;
}

.auth-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-form .checkbox-group input {
    margin-top: 2px !important;
    /* Alignment for multi-line text blocks in Register page */
}

.auth-form .checkbox-label {
    font-size: 12px;
    line-height: 1.6;
    color: #1C1813;
    text-transform: none;
}

.auth-form .checkbox-label a {
    text-decoration: underline;
    color: #1C1813;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 24px;
    }
}

/* Inline Alert Styles */
.inline-alert {
    display: none;
    color: #D9291C;
    font-size: 13px;
    margin-top: 8px;
    text-align: left;
    align-items: center;
    gap: 8px;
}

.inline-alert.active {
    display: flex;
}

.input-error {
    border-bottom: 1px solid #D9291C !important;
    background-color: transparent;
}

.auth-form .form-group {
    position: relative;
    margin-bottom: 24px;
}

/* Account Page Styles */
.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px var(--page-margin) 80px;
}

.account-header {
    text-align: center;
    margin-bottom: 60px;
}

.account-header h1 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0;
    text-transform: none;
    /* Removed uppercase */
}

.account-grid {
    display: flex;
    gap: 100px;
}

.account-sidebar {
    flex: 1;
}

.account-main {
    flex: 1;
}

.account-section {
    margin-bottom: 50px;
}

.account-section h3,
.profile-section h3 {
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    color: #1C1813;
    /* Removed Uppercase */
}

/* Profile Section Layout */
.account-profile-grid {
    display: flex;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-left {
    flex: 1.5;
}

.profile-right {
    flex: 1;
}

.profile-section {
    margin-bottom: 80px;
}

/* Matching the minimalist underline brand style */
#account-info .auth-form input[type="text"],
#account-info .auth-form input[type="email"],
#account-info .auth-form input[type="password"],
#account-info .auth-form input[type="tel"]:not(.phone-number-input),
#account-info .auth-form select:not(.phone-prefix-select),
#account-info .phone-box {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #E3DFD9 !important;
    border-radius: 0;
    height: 44px;
    padding: 12px 0;
}

#account-info .phone-box {
    padding-bottom: 4px;
    /* Aligning with the established phone-box style */
    display: flex !important;
}

#account-info .phone-prefix-select,
#account-info .phone-number-input {
    border-bottom: none !important;
}

#account-info .auth-form input:focus,
#account-info .auth-form select:focus,
#account-info .phone-box:focus-within {
    border-bottom-color: #E3DFD9 !important;
}

#account-info .auth-form label {
    font-size: 12px;
    color: #666666;
    margin-bottom: 8px;
    display: block;
    /* Removed Uppercase */
    letter-spacing: 0.5px;
}

/* Sidebar Specifics */
.user-name {
    margin-bottom: 15px;
}

.user-info p {
    color: #666666;
    margin: 5px 0;
}

.logout-link {
    display: inline-block;
    font-size: 12px;
    text-decoration: underline;
    color: #000;
    margin: 15px 0 25px;
    letter-spacing: 0.8px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.logout-link:hover {
    color: #D9291C;
}

.btn-account-action {
    width: 100%;
    height: 44px;
    letter-spacing: 1px;
}

/* Order List Styles */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.order-card {
    background: #FFFFFF;
    border: 1px solid #E3DFD9;
    padding: 30px;
    transition: var(--transition-standard);
}

.order-card:hover {
    border-color: #E3DFD9;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E3DFD9;
}

.order-meta-left h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.order-date {
    font-size: 12px;
    color: #999;
}

.order-status-badge {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    color: #1C1813;
}

.order-items-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.order-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    background: #f9f9f9;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.order-item-details {
    font-size: 11px;
    color: #999;
}

/* Shipping Details within Order Card */
.order-shipping-details {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #E3DFD9;
}

.shipping-header {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 15px;
    font-weight: 600;
}

.shipping-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
    gap: 30px;
}

.shipping-label {
    display: block;
    font-size: 10px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.shipping-value {
    font-size: 12px;
    line-height: 1.6;
    color: #444;
}

.payment-method-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-method-display i {
    font-size: 14px;
    color: #999;
}

.payment-logo {
    filter: grayscale(1) opacity(0.8);
    transition: all 0.3s ease;
}

.order-card:hover .payment-logo {
    filter: grayscale(0) opacity(1);
}

/* --- Archival Order Tracker --- */
.order-tracker {
    padding: 32px 0;
    margin: 24px 0;
    border-top: 1px solid #E3DFD9;
    border-bottom: 1px solid #E3DFD9;
}

.tracker-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 12px;
}

.tracker-stepper::before {
    content: '';
    position: absolute;
    top: 4px;
    /* Adjusted for smaller dots */
    left: 0;
    width: 100%;
    height: 1px;
    background: #F0F0F0;
    z-index: 0;
}

.tracker-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-dot {
    width: 8px;
    height: 8px;
    background: #EAEAEA;
    border-radius: 50%;
    margin-bottom: 16px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.tracker-step.completed .step-dot,
.tracker-step.active .step-dot {
    background: #D9291C;
}

.tracker-step.active .step-dot {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(217, 41, 28, 0.3);
}

.tracker-step.active .step-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid rgba(217, 41, 28, 0.5);
    border-radius: 50%;
    animation: trackerPulse 2s infinite;
}

@keyframes trackerPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Success State: Delivered */
.is-delivered .tracker-step.completed .step-dot,
.is-delivered .tracker-step.active .step-dot {
    background: #2D8A57;
    /* Premium Success Green */
}

.is-delivered .tracker-step.active .step-dot {
    box-shadow: 0 0 15px rgba(45, 138, 87, 0.3);
}

.is-delivered .tracker-step.active .step-dot::after {
    border-color: rgba(45, 138, 87, 0.5);
}

.is-delivered .order-status-badge {
    color: #2D8A57;
}

.step-label {
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #BBB;
    font-weight: 500;
    transition: color 0.4s ease;
}

.tracker-step.active .step-label {
    color: #1C1813;
    font-weight: 600;
}

.tracker-step.completed .step-label {
    color: #666666;
}

.tracking-info {
    margin-top: 20px;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #666666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-number-link {
    color: #1C1813;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .step-label {
        font-size: 8px;
        letter-spacing: 1px;
    }
}

@media (max-width: 768px) {
    .shipping-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #E3DFD9;
}

.order-total-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-total-value {
    font-size: 16px;
    font-weight: 500;
}

.order-actions {
    display: flex;
    gap: 15px;
}

.btn-order-view {
    font-size: 11px;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-order-view:hover {
    color: #1C1813;
}

/* Orders / Wishlist */
.empty-msg {
    color: #999;
    margin: 30px 0;
}

.center {
    text-align: center;
}

/* Preferences */
.preference-desc {
    line-height: 1.6;
    color: #1C1813;
    margin-bottom: 20px;
}

.preference-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.preference-list li {
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #1C1813;
}

.unsubscribe-note {
    font-size: 12px;
    line-height: 1.5;
    color: #666666;
    margin-bottom: 25px;
}

.unsubscribe-note a {
    text-decoration: underline;
    color: inherit;
}

/* Recently Viewed Products */
.recent-products-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-item-row {
    display: flex;
    gap: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E3DFD9;
}

.product-item-row:last-child {
    border-bottom: none;
}

.product-thumb {
    flex: 0 0 120px;
    height: 150px;
    background-color: #f7f7f7;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.try-it-first {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 9px;
    letter-spacing: 0.5px;
    color: #999;
}

.product-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.product-meta .category {
    font-size: 10px;
    color: #999;
    display: block;
    margin-bottom: 5px;
}

.product-meta h4 {
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.product-meta .size {
    font-size: 12px;
    color: #666666;
    display: block;
    margin-bottom: 15px;
}

.add-to-cart-minimal {
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: none;
    /* Removed uppercase */
}

.product-price-wish {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.product-price-wish .price {
    font-weight: 500;
}

.wishlist-toggle {
    font-size: 16px;
    color: #ccc;
    cursor: pointer;
}

.discover-btn {
    width: 100%;
    height: 50px;
    margin-top: 40px;
}

/* Account Tabs Navigation */
.account-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    padding: 0 var(--page-margin);
}

.tab-link {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    text-decoration: none;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-link:hover,
.tab-link.active {
    color: #1C1813;
}

.tab-link.active {
    border-bottom-color: #D9291C;
}

.tab-pane {
    display: none;
}

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

.center-header {
    text-align: center;
    padding: 100px 0;
}

.center-header h3 {
    margin-bottom: 20px;
}

/* Floating Auth Status Bar */
#auth-status-floater {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-right: none;
    padding: 14px 10px;
    border-radius: 12px 0 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#auth-status-floater:hover {
    padding-right: 18px;
    background: rgba(255, 255, 255, 0.98);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D1D5DB;
    /* Premium light grey */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-dot.online {
    background: #10B981;
    /* Premium Emerald Green */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 8px;
    /* Removed Uppercase */
    letter-spacing: 2.5px;
    color: #444;
    font-weight: 600;
}

#auth-status-floater a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Subscription Toggles */
.pref-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

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

.pref-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d8d8d8;
    /* Light grey for inactive */
    transition: .3s;
    border-radius: 20px;
}

.pref-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #FFFFFF;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pref-toggle input:checked+.pref-slider {
    background-color: #D9291C;
    /* Red brand color for active */
}

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

/* --- Checkout Page Styles --- */
.checkout-page {
    background-color: #FFFFFF;
    color: #1C1813;
    min-height: 100vh;
}

.checkout-header {
    height: 90px;
    padding: 0 var(--page-margin);
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #E3DFD9;
    background-color: #FFFFFF;
}

.header-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Exact three-column split */
    align-items: center;
}

.checkout-page .brand-logo {
    justify-self: center;
    /* Middle column */
    display: block;
}

.checkout-page .logo-image {
    height: 26px;
    display: block;
    object-fit: contain;
    filter: none !important;
    /* Force original red color on checkout only */
    transition: none;
    /* Cancel animation on checkout only */
}

.checkout-actions.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: flex-end;
}

.header-action {
    display: flex;
    align-items: center;
    color: #1C1813;
    transition: color 0.3s ease;
}

.header-action:hover {
    color: #D9291C;
}

.back-link {
    justify-self: start;
    /* Left column */
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.back-link:hover {
    color: #1C1813;
}

.secure-checkout {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666666;
    padding-left: 24px;
    border-left: 1px solid #E3DFD9;
}

.secure-checkout i {
    font-size: 10px;
}

/* ─── CONTACT STEP AUTH STATES ─── */
#step-1.auth-logged-in #logged-in-info {
    display: block !important;
}

#step-1.auth-logged-in #guest-email-group {
    display: none !important;
}

#step-1.auth-logged-in #contact-intro-text {
    display: none !important;
}

#step-1.auth-guest #logged-in-info {
    display: none !important;
}

#step-1.auth-guest #guest-email-group {
    display: block !important;
}

#step-1.auth-guest #contact-intro-text {
    display: block !important;
}

#shipping-form.shipping-global #shipping-city-tag {
    display: block !important;
}

/* ─── STABLE SHIPPING LAYOUT (Wrapper-Border Technique) ─── */
.form-group-line {
    border-bottom: 1px solid #E3DFD9;
    margin-bottom: 25px;
    padding-bottom: 5px;
}

.form-group-line .form-label {
    margin-bottom: 5px;
    display: block;
}

/* Ensure City/Postcode inputs inside the line wrapper don't have their own duplicate border */
.form-group-line .form-input {
    border-bottom: none !important;
    padding: 10px 0 !important;
    height: auto !important;
    min-height: 38px !important;
}

/* Specific styling for the City Select dropdown to match Country select */
#shipping-city-select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 5px center !important;
    padding-right: 25px !important;
    background-size: 12px !important;
}

.checkout-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px var(--page-margin) 100px;
}

.checkout-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
}

/* ─── PROMO FIELD LOGIC REGISTRY (Cleaned Duplicates) ─── */
.promo-input-field.promo-sealed {
    background-color: #f9f9f9 !important;
}

.promo-input-field.promo-sealed input {
    color: #999 !important;
    cursor: default;
}

.promo-input-field.promo-error {
    border-color: #D9291C !important;
    animation: promoShake 0.4s ease-in-out;
}

@keyframes promoShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

.order-summary-section {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.checkout-steps {
    display: flex;
    flex-direction: column;
}

.step-section {
    padding-bottom: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #E3DFD9;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    position: relative;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.step-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #E3DFD9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-number {
    font-size: 12px;
    font-weight: 600;
    color: #1C1813;
}

.step-check-icon {
    display: none;
    font-size: 10px;
    color: #FFFFFF;
}

.step-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-bottom: 0px;
    color: #1C1813;
}

.step-edit {
    margin-left: auto;
    font-size: 10px;
    text-decoration: underline;
    color: #1C1813;
    background: none;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Completed State */
.step-section.completed .step-icon-wrapper {
    background-color: #000;
    border-color: #E3DFD9;
}

.step-section.completed .step-number {
    display: none;
}

.step-section.completed .step-check-icon {
    display: block;
}

.step-section.completed .step-edit {
    opacity: 1;
    pointer-events: auto;
}

.step-section.completed .step-header {
    cursor: pointer;
}

.step-section.completed .step-title {
    color: #1C1813;
    opacity: 1;
}

/* Non-active/Non-completed state */
.step-section:not(.active):not(.completed) .step-title {
    opacity: 0.4;
}

.step-section:not(.active):not(.completed) .step-icon-wrapper {
    opacity: 0.4;
}

.step-content {
    padding: 30px 0 30px 48px;
    /* Aligned with icon (28px) + gap (20px) */
    display: none;
}

.step-section.active .step-content {
    display: block;
}

.logged-in-info {
    font-size: 14px;
    line-height: 1.8;
}

.logged-in-info p {
    color: #666666;
    margin-bottom: 12px;
}

.logged-in-email {
    font-weight: 500;
    color: #1C1813;
    display: block;
    margin-bottom: 25px;
    text-transform: none;
    /* Keep email readable */
}

.guest-text {
    font-size: 14px;
    line-height: 1.6;
    color: #1C1813;
    margin-bottom: 40px;
    max-width: 500px;
}

.btn-auth-width {
    width: 100%;
}

/* Forms (auth consistent style) */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Gift Selection Section */
.gift-selection-container {
    max-width: 600px;
}

.gift-subtitle {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #1C1813;
    margin-bottom: 25px;
}

.gift-choice-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
    cursor: pointer;
    min-height: 120px;
}

.choice-input-cell {
    width: 30px;
    display: flex;
    justify-content: center;
}

.choice-img-cell {
    width: 140px;
    height: 140px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-img-cell img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.choice-text-cell {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.choice-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #1C1813;
    font-weight: 500;
}

.choice-price {
    font-size: 12px;
    color: #666666;
}

/* Custom inputs for minimalist look - Consistent with Auth Page */
.choice-radio,
.choice-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px;
    height: 18px;
    border: 1px solid #E3DFD9 !important;
    border-radius: 2px !important;
    background: transparent !important;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    outline: none !important;
    transition: all 0.2s ease;
}

.choice-radio {
    border-radius: 50% !important;
}

.choice-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 4px;
    height: 8px;
    border: solid #E3DFD9;
    border-width: 0 1.5px 1.5px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.choice-radio:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    background-color: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.gift-option-checkbox-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #1C1813;
    font-weight: 400;
}

.gift-message-textarea {
    width: 100%;
    height: 180px;
    border: 1px solid #E3DFD9;
    border-radius: 8px;
    padding: 30px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: #1C1813;
    text-align: center;
    resize: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-message-textarea::placeholder {
    color: #bbb;
    font-weight: 300;
}

.char-count {
    font-size: 12px;
    color: #666666;
    text-align: center;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

.form-label {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #666666;
    font-weight: 500;
}

.form-input {
    width: 100%;
    height: 44px;
    border: none;
    border-bottom: 1px solid #E3DFD9;
    font-family: inherit;
    font-size: 14px;
    color: #1C1813;
    padding: 5px 0;
    background: transparent;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.form-input:focus {
    outline: none;
    border-bottom-color: #E3DFD9;
}

/* Global Fix: Avoid double underlines when input is inside a bordered wrapper */
.card-input-wrapper .form-input,
.phone-box .form-input,
.promo-input-field input {
    border-bottom: none !important;
}

/* Smart Card Input Wrapper */
.card-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #E3DFD9;
    transition: border-color 0.3s ease;
    padding-bottom: 3px;
}

.card-input-wrapper:focus-within {
    border-bottom-color: #E3DFD9;
}

.card-input-wrapper .form-input {
    border-bottom: none !important;
    padding: 0;
    height: 40px;
}

.card-brand-icon {
    width: 38px;
    height: 24px;
    border: 1px solid #E3DFD9;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    font-size: 14px;
    color: #ccc;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.card-brand-icon i {
    transition: opacity 0.2s ease;
}

.card-brand-icon.active {
    border-color: #E3DFD9;
    color: #1C1813;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-row.three {
    grid-template-columns: 1fr 2fr 2fr;
}

.confirm-btn {
    display: none;
    /* Replaced by brand btn classes */
}

/* Order Summary (Right Column) - Refined Redesign */
.order-summary-section {
    position: sticky;
    top: 40px;
}

.summary-title {
    font-size: 15px;
    margin-bottom: 40px;
    font-weight: 400;
    /* Adjusted to 400 */
    color: #1C1813;
    letter-spacing: 1.5px;
    /* Removed uppercase */
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 50px;
}

.summary-item {
    display: flex;
    gap: 24px;
}

.summary-item-img {
    width: 140px;
    /* Larger image per screenshot */
    height: 140px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-item-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.summary-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.summary-item-info {
    flex: 1;
}

.summary-item-category {
    font-size: 10px;
    color: #999;
    margin-bottom: 6px;
    display: block;
    /* Removed uppercase */
}

.summary-item-title {
    font-size: 15px;
    font-weight: 400;
    /* Adjusted to 400 */
    margin-bottom: 12px;
    color: #1C1813;
}

.summary-item-meta-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-item-meta {
    font-size: 12px;
    color: #666666;
    font-weight: 400;
}

.summary-item-price {
    font-size: 14px;
    font-weight: 500;
    margin-left: 20px;
}

/* Promo Code in Summary - Redesigned (Natural Case) */
.summary-promo-container {
    background-color: #f8f8f8;
    padding: 30px;
    margin-bottom: 50px;
    border-radius: 12px;
    /* Rounded a little */
}

.promo-header {
    font-size: 12px;
    color: #1C1813;
    margin-bottom: 25px;
    font-weight: 400;
    /* Adjusted to 400 */
    /* Removed uppercase */
}

.promo-fields-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.promo-input-field {
    display: flex;
    background-color: #FFFFFF;
    border: 1px solid #E3DFD9;
    padding: 0 25px;
    /* Side padding for pill style */
    transition: all 0.3s ease;
    border-radius: 50px;
    height: 48px;
    /* Standardized height */
    align-items: center;
}

.promo-input-field:focus-within {
    border-color: #E3DFD9;
}

.promo-input-field input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    color: #1C1813;
    background: transparent;
}

.promo-input-field input:disabled {
    color: #999;
    cursor: default;
}

.promo-btn-arrow {
    background: none;
    border: none;
    font-size: 14px;
    color: #1C1813;
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    /* Only color change, no moving */
}

.promo-btn-arrow.active {
    color: #D9291C;
    /* Minimalist red for removal */
}

/* Pricing Breakdown (Natural Case) */
.summary-totals {
    border-top: 1px solid #E3DFD9;
    padding-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    color: #1C1813;
    /* Removed uppercase */
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 25px;
    border-top: 1px solid #E3DFD9;
    /* Stronger separation for total */
    color: #1C1813;
}

.total-label-group span {
    font-size: 20px;
    /* Header size */
}

.total-price-group {
    text-align: right;
}

.total-price-group span {
    font-size: 20px;
    /* Header size */
    display: block;
    margin-bottom: 4px;
}

.summary-vat {
    font-size: 12px;
    color: #999;
}

/* Summary Footer */
.summary-footer {
    margin-top: 60px;
    text-align: center;
}

.trust-text {
    font-size: 12px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.customer-care {
    font-size: 12px;
    color: #1C1813;
    font-weight: 500;
}

.customer-care a {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .checkout-layout-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .order-summary-section {
        position: static;
        order: -1;
    }
}

.btn-dark:disabled {
    background-color: #999;
    border-color: #E3DFD9;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- You May Also Like Redesign V2 (Pixel-Perfect) --- */
.you-may-like-split {
    display: flex;
    align-items: stretch;
    /* Ensures left column height matches grid exactly */
    border-top: 1px solid #E3DFD9;
    width: 100%;
    margin-top: 80px;
}

.you-may-like-left {
    flex: 0 0 40%;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
}

.you-may-like-left h2 {
    letter-spacing: 0.5px;
    color: #1C1813;
    text-align: center;
}

.you-may-like-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: #f0f0f0;
    /* The "gap" color (divider lines) */
    gap: 1px;
    padding-right: 0;
    /* Edge to edge */
}

/* Redefined Tile Style to match reference image */
.you-may-like-right .related-card {
    background-color: #FFFFFF;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: opacity 0.3s ease;
}

.you-may-like-right .related-card:hover {
    opacity: 0.85;
}

.you-may-like-right .related-img {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15%;
    /* Premium negative space */
    position: relative;
    background-color: #f7f7f7;
}

.you-may-like-right .related-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.you-may-like-right .related-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid #E3DFD9;
}

.you-may-like-right .related-info .category {
    font-size: 9px;
    /* Removed Uppercase */
    letter-spacing: 1.5px;
    color: #999;
    font-weight: 500;
}

.you-may-like-right .related-info h3 {
    font-size: 12px;
    /* Removed Uppercase */
    letter-spacing: 0.5px;
    color: #1C1813;
    font-weight: 500;
    margin: 4px 0;
}

.you-may-like-right .related-info p {
    font-size: 12px;
    color: #444;
    font-weight: 400;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .you-may-like-split {
        flex-direction: column;
    }

    .you-may-like-left {
        flex: 0 0 auto;
        padding: 80px 40px;
    }

    .you-may-like-right {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .you-may-like-right {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Omise Payment Styles
======================================== */

/* PromptPay QR */
.promptpay-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px;
    border: 1px solid #E3DFD9;
    border-radius: 8px;
    background: #fafafa;
}

/* Order Summary List (Short View) */
.order-summary-row {
    display: flex;
    align-items: center;
    padding: 24px 30px;
    border: 1px solid #E3DFD9;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFFFFF;
    gap: 20px;
}

.summary-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-col.ref {
    flex: 1.2;
}

.summary-col.date {
    flex: 1.5;
}

.summary-col.items {
    flex: 2;
}

.summary-col.price {
    flex: 1;
}

.summary-col.status {
    flex: 1.2;
}

.summary-col.action {
    flex: 0.2;
    text-align: right;
    color: #ccc;
    transition: color 0.3s ease;
}

.order-summary-row:hover {
    border-color: #D9291C;
    z-index: 1;
    /* Ensure the red border is fully visible when rows are touching */
}

.order-summary-row:hover .summary-col.action {
    color: #D9291C;
}

.summary-col .label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.summary-col .value {
    font-size: 13px;
    font-weight: 500;
    color: #1C1813;
}

.status-text-delivered {
    color: #2D8A57 !important;
}

.status-text-shipped {
    color: #D9291C !important;
}

.status-text-processing {
    color: #1C1813 !important;
}

.status-text-pending,
.status-text-paid {
    color: #1C1813 !important;
}

@media (max-width: 768px) {
    .order-summary-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
    }

    .summary-col {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }

    .summary-col.action {
        display: none;
    }
}

.order-card {
    border: 1px solid #E3DFD9;
    padding: 40px;
    background: #FFFFFF;
}

.promptpay-qr-container img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.promptpay-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666666;
    font-weight: 400;
}

.promptpay-timer.expiring {
    color: #D9291C;
}

.promptpay-timer.expiring svg {
    color: #D9291C;
}

/* Payment Processing Overlay */
.payment-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.payment-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.payment-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #E3DFD9;
    border-top-color: #E3DFD9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.payment-overlay-content p {
    font-size: 13px;
    color: #666666;
    font-weight: 400;
}

/* Payment Error */
.payment-error {
    font-size: 13px;
    color: #D9291C;
    padding: 12px 16px;
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    border-radius: 6px;
    margin-top: 15px;
}

/* ========================================
   Order Confirmation Page
======================================== */
.confirmation-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
}

.confirmation-container {
    max-width: 520px;
    width: 100%;
}

.confirmation-icon {
    width: 60px;
    height: 60px;
    border: 1.5px solid #E3DFD9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.confirmation-icon svg {
    color: #1C1813;
}

.confirmation-container h1 {
    font-size: 22px;
    font-weight: 500;
    color: #1C1813;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.confirmation-container .confirmation-subtitle {
    font-size: 14px;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 300;
}

.confirmation-details {
    text-align: left;
    border: 1px solid #E3DFD9;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.confirmation-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #E3DFD9;
}

.confirmation-details .detail-row:last-child {
    border-bottom: none;
    font-weight: 500;
    padding-top: 15px;
    margin-top: 5px;
    border-top: 1px solid #E3DFD9;
}

.confirmation-details .detail-row .label {
    color: #666666;
}

.confirmation-details .detail-row .value {
    color: #1C1813;
    font-weight: 400;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   DAY ONE CLUB SECTION 
═══════════════════════════════════════════════════════════ */
.club-section {
    position: relative;
    height: 50vh;
    min-height: 50vh;
    width: 100vw !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    /* Pure White Backdrop */
}

#club-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.club-content-refined {
    position: relative;
    z-index: 10;
    text-align: left;
    width: 100%;
    max-width: 600px;

    /* Liquid Glass panel — identical recipe/values to Product V2's
       .pv2-glass info card: heavy blur + saturation boost behind a
       translucent white gradient, hairline light border, top specular
       edge, soft drop. White vibrancy text stays legible over any
       backdrop (particles or video), the way iOS glass does. */
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.5) brightness(1.05);
    backdrop-filter: blur(18px) saturate(1.5) brightness(1.05);
    border-radius: 32px;
    box-shadow:
        inset 1.5px 1.5px 1px -1px rgba(255, 255, 255, 0.95),
        inset -1.5px -1.5px 1px -1px rgba(255, 255, 255, 0.55),
        inset 0 0 24px rgba(255, 255, 255, 0.12),
        0 16px 40px rgba(28, 24, 19, 0.25);
    padding: 36px 34px 30px;
    color: #FFFFFF;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Two-layer Liquid Glass panel (Day One Club video section). LiquidGlass
   requires its glassElement to be a DIRECT child of root, so there's no
   wrapper — both layers are direct children of .club-section-video,
   absolutely centered to sit exactly on top of one another:
   - #dayone-glass: empty shape-only surface, the only element passed to
     LiquidGlass. Must stay content-free — the library captures a glass
     panel's own children via an SVG <foreignObject> snapshot to show text
     "through" the glass, and browsers unconditionally treat any canvas draw
     of a foreignObject-based SVG image as tainted, regardless of CORS.
   - .dayone-glass-content: the real, visible text/button, plain DOM,
     never captured by the shader. */
#dayone-glass.club-content-refined,
.dayone-glass-content {
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
    /* Match the Product V2 Liquid Glass card dimensions exactly. */
    width: min(400px, calc(100vw - 40px));
    max-width: none;
    padding: 36px 34px 30px;
}

.dayone-glass-content {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Once the WebGL shader is active, the empty shape surface behind becomes the
   real glass (its injected canvas). The content layer must sit ABOVE that
   shape+canvas — the shape keeps the base z-index:10, so lift the content
   higher so the text/form reads on top of the glass. */
.dayone-lg-active .dayone-glass-content {
    z-index: 6;
}

#dayone-glass.club-content-refined {
    z-index: 5;
}

@media (max-width: 768px) {
    #dayone-glass.club-content-refined,
    .dayone-glass-content {
        left: 50%;
    }
}

.club-form-horizontal {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    width: 100%;
    margin-top: 40px;
    pointer-events: all;
}


.club-input-wrapper {
    flex: 1;
    /* Input now fills the remaining space in the 600px container */
    position: relative;
}

.club-input-underline {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    color: #1C1813;
    font-size: 14px;
    font-weight: 300;
    transition: border-color 0.4s ease;
}

.club-input-underline:focus {
    outline: none;
    border-bottom-color: #E3DFD9;
}

.club-input-underline::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.club-btn-refined {
    height: 48px;
    padding: 0 40px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    background-color: #1C1813;
    color: #FFFFFF;
    border: 1px solid #E3DFD9;
    border-radius: 24px;
    /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.club-btn-refined:hover {
    background-color: transparent !important;
    border-color: #D9291C !important;
    color: #D9291C !important;
}

@media (max-width: 650px) {
    .club-content-refined {
        padding: 26px 24px 22px;
        border-radius: 28px;
    }
}

@media (max-width: 650px) {
    .club-form-horizontal {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .club-btn-refined {
        width: 100%;
    }
}

/* Day One Club — mercury-fluid background + Liquid Glass variant */
.club-section-video {
    height: 80vh;
    min-height: 80vh;
    background-color: #FFFFFF;
}

/* LiquidGlass (WebGL) active: the shader canvas IS the material — strip
   the CSS fallback fills so they don't stack on top of it. Same pattern
   as Product V2's .pv2-lg-active. */
.dayone-lg-active .club-content-refined {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
}

.dayone-lg-active .club-content-refined > *:not(canvas) {
    position: relative;
    z-index: 1;
}

/* Dark ink keeps the Product V2 glass card legible on the white canvas. */
.club-section-video .dayone-glass-content {
    color: #1C1813;
    text-shadow: none;
}

.club-section-video .overline.accent-red {
    color: #D9291C;
}

.club-section-video .section-text {
    color: #1C1813;
    opacity: 0.75;
}

.club-section-video .club-input-underline {
    color: #1C1813;
    border-bottom-color: rgba(0, 0, 0, 0.2);
}

.club-section-video .club-input-underline::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.club-section-video .club-input-underline:focus {
    border-bottom-color: #1C1813;
}


/* Subscribe: solid black by default, brand red on hover (the base
   .club-btn-refined:hover rule uses !important, so match it to win). */
.club-section-video .club-btn-refined {
    background-color: #1C1813;
    color: #FFFFFF;
    border: 1px solid #1C1813;
}

.club-section-video .club-btn-refined:hover {
    background-color: #D9291C !important;
    border-color: #D9291C !important;
    color: #FFFFFF !important;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS SECTION 
   (Previous Version Reversion)
═══════════════════════════════════════════════════════════ */
.testimonials-section {
    padding: 120px var(--page-margin);
    background-color: #FFFFFF;
    color: #1C1813;
    border-top: 1px solid #E3DFD9;
}

.testimonials-container {
    max-width: 1100px;
    margin: 0 auto;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 25px;
}

.testimonials-title-group {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.testimonials-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
}

.testimonials-count {
    font-family: var(--font-body);
    font-size: 12px;
    color: #999;
}

.testimonial-list {
    display: flex;
    flex-direction: column;
}

.testimonial-item {
    padding: 40px 0;
    border-bottom: 1px solid #E3DFD9;
    display: flex;
    flex-direction: column;
}

.testimonial-item:last-child {
    border-bottom: none;
}

.testimonial-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.verified-badge {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #777;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.verified-badge i {
    font-size: 11px;
    color: #1C1813;
    opacity: 0.6;
}

.testimonial-date {
    font-family: var(--font-body);
    font-size: 11px;
    color: #bbb;
}

.testimonial-quote {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    color: #1C1813;
    margin: 0 0 25px 0;
    padding: 0;
}

.testimonial-author {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    letter-spacing: 0.01em;
}

@media (max-width: 1024px) {
    .testimonial-list {
        grid-template-columns: 1fr;
    }

    .testimonials-section {
        padding: 80px 20px;
    }
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding-bottom: 20px;
}

.pagination-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pagination-item:hover:not(.disabled):not(.active) {
    background-color: #f5f5f5;
}

.pagination-item.active {
    background-color: #000;
    color: #FFFFFF;
}

.pagination-item.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination-item i {
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL NOTIFICATION CARDS
   (Glassmorphism Style)
═══════════════════════════════════════════════════════════ */
.nubie-notification {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background-color: rgba(26, 26, 26, 0.7);
    /* Balanced transparency glass */
    backdrop-filter: blur(15px);
    /* Premium glass effect */
    -webkit-backdrop-filter: blur(15px);
    color: #FFFFFF;
    padding: 16px 30px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.02em;
    font-weight: 400;
    z-index: 1000000;
    border-radius: 4px;
    /* Subtle softening for a more structured look */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nubie-notification.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nubie-notification-email {
    font-weight: 500;
    color: #FFFFFF;
    /* Unified white text */
}

/* Legacy related-products definitions removed for archival synchronization */

/* ═══════════════════════════════════════════════════════════
   BRAND STORY PAGE (NUBIE NARRATIVE)
   ═══════════════════════════════════════════════════════════ */
.story-hero {
    padding: 160px var(--page-margin) 100px;
    background: #FFFFFF;
    text-align: left;
}

.story-overline {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
    margin-bottom: 40px;
    display: block;
}

.story-title {
    font-family: var(--font-heading);
    font-size: 24px;
    /* Enhanced narrative impact */
    line-height: 1.2;
    font-weight: 400;
    /* Original weight restored */
    max-width: 800px;
    margin-bottom: 40px;
}

.story-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #1C1813;
}

.story-image-full {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    /* Lock for parallax movement */
}

.story-image-full img {
    width: 100%;
    height: 120%;
    /* Extra height for parallax bleed */
    object-fit: cover;
    position: absolute;
    top: -10%;
    /* Initial offset */
    will-change: transform;
}

.story-image-label {
    position: absolute;
    bottom: 30px;
    right: var(--page-margin);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    opacity: 0.8;
}

.story-narrative-container {
    max-width: 1100px;
    margin: 100px auto;
    padding: 0 var(--page-margin);
}

.story-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding: 80px 0;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
}

.story-section:last-child {
    border-bottom: none;
}

.story-section-label {
    font-size: 10px;
    text-transform: none;
    letter-spacing: 0.15em;
    color: #999;
}

.story-section-content {
    font-size: 14px;
    /* Crisp body size */
    line-height: 1.8;
    color: #1C1813;
    font-weight: 400;
}

.story-section-content p {
    margin-bottom: 30px;
}

.story-section-content p:last-child {
    margin-bottom: 0;
}

.story-quote-block {
    padding: 120px 0;
    text-align: left;
}

.story-quote-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-style: italic;
    line-height: 1.3;
    color: #1C1813;
    max-width: 700px;
    opacity: 0.9;
}

.story-tagline {
    font-style: italic;
    opacity: 0.6;
    margin-top: 40px;
    display: block;
}

@media (max-width: 900px) {
    .story-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 50px 0;
    }

    .story-title {
        font-size: 24px;
        font-weight: 400;
    }
}

.craft-journal-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 64px;
}

/* ==========================================================================
   NUBIE ARCHIVAL JOURNAL SYSTEM - HIGH FIDELITY RESTORATION
   ========================================================================== */

.journal-chapter-wrapper {
    margin-top: 72px;
    padding: 0;
}

/* ==========================================================================
   STORY REGISTRY SYSTEM - NUMBERED CHAPTERS
   ========================================================================== */

.story-registry-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 72px 0 120px 0;
    margin-top: 0;
}

.registry-marker {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.registry-numeral {
    font-size: 84px;
    font-weight: 200;
    color: rgba(0, 0, 0, 0.1);
    line-height: 1;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.05em;
}

.registry-label {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.registry-label.accent-red {
    color: #D9291C;
    opacity: 1;
}

.registry-content {
    max-width: 800px;
}

.registry-header {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 48px;
    color: #1a1a1a;
}

.registry-header em {
    font-style: italic;
    color: #4a4a4a;
}

.registry-body {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 32px;
}

.registry-footer {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

/* ==========================================================================
   STORY BELIEF SYSTEM - SPLIT BLOCK
   ========================================================================== */

.story-belief-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 80px 0;
    min-height: 400px;
}

@keyframes liquidFlow {
    0% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.belief-dark-side {
    background: #FFFFFF;
    color: #1a1a1a;
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.belief-light-side {
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFFFF;
}

.belief-overline {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: block;
    opacity: 0.5;
}

.belief-overline.accent-red {
    color: #D9291C;
    opacity: 1;
}


.belief-quote-main {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    background:
        radial-gradient(circle at 20% 30%, rgba(217, 41, 28, 0.7) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 24, 17, 0.9) 0%, transparent 50%),
        linear-gradient(135deg, #050505 0%, #D9291C 40%, #0a0a0a 60%, #8b1811 100%);
    background-size: 300% 300%;
    animation: liquidFlow 8s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 500px;
}

.belief-quote-main em {
    font-style: italic;
}

.belief-body-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.7);
    max-width: 440px;
}

/* ==========================================================================
   STORY FINAL CTA
   ========================================================================== */

.story-final-cta {
    padding: 72px 0 120px;
    text-align: center;
}

.final-quote {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    color: #4a4a4a;
    margin-bottom: 64px;
}

.story-cta-link {
    font-size: 14px;
    letter-spacing: normal;
    text-transform: none;
    color: #D9291C;
    text-decoration: none;
    font-weight: 400;
    cursor: default;
}

/* ==========================================================================
   STORY MASONRY SECTION: DENSE ARCHIVAL GRID
   ========================================================================== */

.story-masonry-section {
    width: 100vw;
    background: #FFFFFF;
    padding: 72px 0 120px 0;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
}

.masonry-overline {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 500;
}

.masonry-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 80px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 400px;
    /* Fixed row height for flush horizontal edges */
    gap: 4px;
    /* Minimal archival gap */
    padding: 0 4px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

/* Central Focal Tile Styling */
.masonry-item.text-block {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    text-align: center;
}

.masonry-item.text-block .masonry-overline {
    margin-bottom: 16px;
    opacity: 0.6;
}

.masonry-item.text-block .masonry-overline.accent-red {
    color: #D9291C;
    opacity: 1;
}

.masonry-item.text-block .masonry-title {
    margin-bottom: 0;
    font-size: 22px;
    max-width: 440px;
    line-height: 1.4;
}

.masonry-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.masonry-item:hover::after {
    opacity: 1;
    /* Fade in the darkening overlay */
}

/* Exclude Text Block from Hover Interactivity */
.masonry-item.text-block:hover::after {
    opacity: 0;
}

/* Justified Gallery Asymmetric Layout (Centered Anchor Manifest) */
/* Row 1 */
.masonry-item:nth-child(1) {
    grid-column: span 3;
}

.masonry-item:nth-child(2) {
    grid-column: span 2;
}

.masonry-item:nth-child(3) {
    grid-column: span 4;
}

.masonry-item:nth-child(4) {
    grid-column: span 3;
}

/* Row 2: Central Anchor */
.masonry-item:nth-child(5) {
    grid-column: span 3;
}

.masonry-item:nth-child(6) {
    grid-column: span 6;
}

/* TEXT BLOCK */
.masonry-item:nth-child(7) {
    grid-column: span 3;
}

/* Row 3 */
.masonry-item:nth-child(8) {
    grid-column: span 3;
}

.masonry-item:nth-child(9) {
    grid-column: span 4;
}

.masonry-item:nth-child(10) {
    grid-column: span 3;
}

.masonry-item:nth-child(11) {
    grid-column: span 2;
}

/* Row 4 */
.masonry-item:nth-child(12) {
    grid-column: span 6;
}

.masonry-item:nth-child(13) {
    grid-column: span 6;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    text-align: center;
    width: 100%;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.masonry-item:hover .masonry-caption {
    opacity: 1;
    font-size: 24px;
}

/* Mobile Recalibration */
@media (max-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 350px;
    }

    .masonry-item:nth-child(n) {
        grid-column: span 1;
        order: 0;
    }

    .masonry-item.text-block {
        grid-column: span 2;
    }

    .masonry-item:nth-child(5) {
        order: 1;
        /* Move the original left image to the end */
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .masonry-item:nth-child(n) {
        grid-column: span 1;
        order: 0;
    }

    .masonry-item.text-block {
        grid-column: span 1;
    }
}

/* Full-Story Responsive Recalibration */
@media (max-width: 1024px) {
    .story-hero {
        padding: 120px 40px 60px;
    }

    .story-title {
        font-size: 28px;
    }

    .story-registry-grid {
        grid-template-columns: 1fr;
        padding: 60px 0;
        gap: 32px;
    }

    .registry-marker {
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 20px;
    }

    .registry-numeral {
        font-size: 64px;
    }

    .story-belief-split {
        grid-template-columns: 1fr;
        margin: 40px 0;
    }

    .belief-dark-side,
    .belief-light-side {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .story-hero {
        padding: 100px 20px 40px;
    }

    .story-title {
        font-size: 24px;
    }

    .registry-numeral {
        font-size: 48px;
    }

    .belief-quote-main {
        font-size: 20px;
    }
}

.journal-intro-block {
    padding: 72px 0 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFFFF;
}

.journal-overline {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 24px;
    display: block;
}

.journal-overline.accent-red {
    color: #D9291C;
    opacity: 1;
}

.journal-header-main {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.4;
    color: #1C1813;
    max-width: 900px;
    margin: 0 auto 24px;
    font-weight: 400;
}

.craft-journal-container .journal-header-main {
    font-size: 24px !important;
    font-weight: 400 !important;
}

.journal-body-text {
    font-size: 14px;
    line-height: 1.8;
    color: #1C1813;
    max-width: 680px;
    margin: 0 auto;
}

.journal-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 0 4px;
    background: #FFFFFF;
}

.journal-visual-grid.singular {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.journal-visual-grid.singular .visual-grid-item {
    height: 100%;
    width: 100%;
}

.journal-visual-grid.singular .visual-grid-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

.visual-grid-item {
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
    height: auto !important;
}

.visual-grid-item img {
    width: 100%;
    height: auto !important;
    display: block;
    mix-blend-mode: normal;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-grid-item:hover img {
    transform: scale(1.03);
}

.journal-visual-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    text-transform: uppercase;
    mix-blend-mode: difference;
}

.journal-chapter-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #FFFFFF;
    align-items: center;
    padding-bottom: 86px;
}

.journal-chapter-compact {
    padding-top: 72px;
    padding-bottom: 120px;
}

.chapter-split-image {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.chapter-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chapter-split-text {
    padding: 72px 15% 120px 15%;
}

.journal-commitment-section {
    padding-top: 72px !important;
    padding-bottom: 120px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: #111;
    color: #FFFFFF;
    text-align: center;
}

.craft-journal-container .journal-commitment-section {
    background: #FFFFFF;
    color: #1a1a1a;
    padding-top: 72px !important;
    padding-bottom: 120px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0;
}

.commitment-intro {
    max-width: 800px;
    margin: 0 auto 80px;
}

.commitment-main-title {
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 32px;
    font-weight: 400;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}

.commitment-card {
    padding: 40px;
    background: #FFFFFF;
    border: 1px solid #E3DFD9;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.commitment-card .value-number {
    font-size: 10px;
    letter-spacing: 2px;
    color: #999;
    display: block;
    margin-bottom: 32px;
}

.commitment-card h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #1C1813;
    letter-spacing: -0.01em;
}

.commitment-card p {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
    margin-top: 0;
}

/* --- Materials Ledger: Kinetic Re-Architecture --- */
.ledger-header-row {
    text-align: center;
    margin-bottom: 86px;
}

.materials-ledger-grid-triple {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    /* Center is dominant for the 2x4 grid */
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
    position: relative;
    padding: 86px 40px;
}

.desktop-only {
    display: grid;
}

.tablet-ingredient-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 32px;
}

.tablet-ingredient-grid img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(100%);
}

.ledger-bank {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    height: fit-content;
}

.ingredient-archive-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns */
    grid-auto-rows: min-content;
    gap: 20px;
    width: 100%;
}

.archive-row img {
    width: 100%;
    aspect-ratio: 4/5;
    /* Refined vertical archival ratio */
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.8s ease;
    display: block;
}

.archive-row:hover img {
    filter: grayscale(0%);
}

.philosophy-item {
    padding-top: 24px;
}

.philosophy-overline {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 12px;
    display: block;
}

.philosophy-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 24px;
    color: #1C1813;
}

.philosophy-desc {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .journal-header-main {
        font-size: 24px;
    }

    .journal-chapter-split {
        grid-template-columns: 1fr;
    }

    .chapter-split-text {
        padding: 80px 20px;
    }

    .materials-ledger-grid-triple {
        grid-template-columns: 1fr;
        gap: 80px;
        padding: 60px 20px;
    }

    .desktop-only {
        display: none !important;
    }

    .tablet-ingredient-grid {
        display: grid;
    }

    .ledger-bank {
        position: static;
        transform: none;
    }

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

@media (max-width: 768px) {
    .craft-journal-container {
        padding: 0 20px;
    }

    .journal-intro-block {
        padding: 72px 0 120px 0;
    }

    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .journal-commitment-section {
        padding-top: 80px !important;
        padding-bottom: 60px !important;
        padding-left: 20px;
        padding-right: 20px;
    }

    .ingredient-archive-stack {
        grid-template-columns: 1fr;
    }
}

/* Product Page Universal Responsiveness */
@media (max-width: 900px) {
    .testimonials-section {
        padding: 80px 20px;
    }

    .testimonial-list {
        grid-template-columns: 1fr;
    }

    .testimonials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

/* Legacy mobile definitions removed */
}

@media (max-width: 480px) {
    .testimonial-item {
        padding: 40px 20px;
    }

    .testimonial-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* --- Account Dashboard Enhancements --- */
.account-section {
    margin-bottom: 80px;
}

.account-section h3 {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 30px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
}

/* Tier Card: High-Fidelity Red Gradient System */
.tier-card {
    background: linear-gradient(-45deg, #D9291C, #ff3b30, #b8140a, #ff5e52);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    border: none;
    padding: 48px 32px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 16px;
    max-width: 540px;
    margin: 0 auto;
    /* 3D Tilt */
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
    transition: transform 0.1s linear;
}

/* Smooth Gradient Hover Overlay */
.tier-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(-45deg, #ff0f00, #ff3b30, #ff1c0a, #D9291C);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    pointer-events: none;
}

.tier-card:hover::after {
    opacity: 1;
}

.tier-card>* {
    position: relative;
    z-index: 1;
}

/* ─── Black Edge: Premium Dark Red Velvet Card ─── */
.tier-card.is-black-edge {
    background: linear-gradient(-45deg, #440a04, #170200, #310502, #0d0100);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.tier-card.is-black-edge::after {
    background: linear-gradient(-45deg, #800a00, #440a04, #991206, #170200);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.tier-card.is-black-edge::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.1) 100%);
    z-index: 0;
    pointer-events: none;
    animation: edgeShimmer 6s infinite alternate ease-in-out;
}

@keyframes edgeShimmer {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.tier-card.is-black-edge .tier-name {
    color: #FFFFFF !important;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.tier-card.is-black-edge .tier-desc {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ─── Red Circle: Clean Community Card ─── */
.tier-card.is-red-circle {
    background: linear-gradient(-45deg, #D9291C, #ff3b30, #b8140a, #ff5e52);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    border: none;
}

.tier-card.is-red-circle::after {
    background: linear-gradient(-45deg, #ff0f00, #ff3b30, #ff1c0a, #D9291C);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.tier-card.is-red-circle .tier-name {
    color: #FFFFFF !important;
}

.tier-card.is-red-circle .tier-desc {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ─── Starter: Clean Flat White Card ─── */
.tier-card.is-starter {
    background: #FFFFFF !important;
    border: 1px solid #E3DFD9 !important;
    animation: none !important;
    transform: none !important;
    cursor: default;
}

.tier-card.is-starter::after {
    display: none !important;
}

.tier-card.is-starter .tier-name {
    color: #111111 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em;
}

.tier-card.is-starter .tier-desc {
    color: #666666 !important;
}

/* ─── Shared Tier Card Elements ─── */
.tier-status-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
    margin-bottom: 16px;
    display: block;
    transition: var(--transition-standard);
}

.tier-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    color: #1C1813;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.tier-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    max-width: 340px;
    margin: 0 auto;
}

@keyframes meshBackground {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Subscription Preferences Enhancements --- */
.preferences-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.pref-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
    color: #1C1813;
}

.pref-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 48px;
}

.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 60px;
    margin-bottom: 60px;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.toggle-label {
    font-size: 14px;
    color: #1C1813;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.pref-unsubscribe-note {
    font-size: 12px;
    color: #999;
    margin-bottom: 40px;
    line-height: 1.6;
}

.save-pref-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    padding: 0 48px !important;
    height: 52px;
    font-size: 12px;
    text-transform: none;
    /* Keep natural editorial casing */
}

@media (max-width: 768px) {
    .subscriptions-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Fin. */

/* Navbar Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px !important;
        height: 64px;
    }

    .nav-trigger-text {
        display: none;
    }

    .nav-left,
    .nav-right {
        gap: 16px;
    }

    .brand-logo img {
        height: 20px;
        width: auto;
    }

    .menu-drawer {
        width: 100vw;
        padding: 40px 20px;
    }

    .menu-header {
        margin-bottom: 20px;
    }

    .menu-link {
        font-size: 20px;
        padding: 8px 0;
    }

    .menu-section {
        margin-bottom: 24px;
    }
}

/* --- Brand Belief Section (Editorial Layout) --- */
.brand-belief-section {
    padding: 180px var(--page-margin) 140px;
    background-color: #FFFFFF;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.belief-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.belief-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 80px;
}

.belief-accent-line {
    width: 80px;
    height: 1px;
    background-color: #D9291C;
    /* Signature NUBIE Red */
}

.belief-title {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0 0 60px;
    display: flex;
    flex-direction: column;
}

.title-line {
    font-family: var(--font-heading);
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
    min-height: 1.2em;
    /* Prevents container from collapsing when empty */
}

.title-line.indent {
    padding-left: 15%;
    /* Creates a staggered, dynamic rhythm */
}

/* Typing Animation Styles */
#type-line-1,
#type-line-1-v2 {
    color: #000;
}

#type-line-2,
#type-line-2-v2 {
    color: #D9291C;
}

.type-cursor {
    display: inline-block;
    width: 6px;
    /* Elegant, thick editorial cursor */
    height: 0.8em;
    background-color: #D9291C;
    margin-left: 8px;
    animation: blink 1s step-end infinite;
    vertical-align: baseline;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.belief-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    border-top: 1px solid #E3DFD9;
    padding-top: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.belief-content-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.belief-narrative {
    flex: 1;
    max-width: 500px;
}

.belief-narrative p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    font-weight: 300;
}

.belief-quote-box {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 160px;
    color: #F0F0F0;
    line-height: 1;
    position: absolute;
    top: -50px;
    left: -40px;
    z-index: -1;
}

.belief-quote {
    font-size: 24px;
    font-weight: 400;
    color: #000;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
    .belief-title {
        margin-bottom: 80px;
    }

    .title-line.indent {
        padding-left: 0;
    }

    .belief-content-wrapper {
        flex-direction: column;
        gap: 80px;
    }

    .quote-mark {
        left: -20px;
        top: -40px;
    }
}

/* --- Brand Belief Section V2 (Scroll-Linked Comparison) --- */
.brand-belief-section-v2 {
    padding: 0;
    overflow: visible;
}

.overline-tag {
    opacity: 0.5;
    text-transform: none;
    letter-spacing: normal;
}

.scroll-scrub-wrapper {
    position: relative;
    height: 250vh;
}

.scroll-scrub-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 var(--page-margin);
}

.scroll-scrub-sticky .belief-container {
    width: 100%;
}

#belief-content-wrapper-v2 {
    transition: opacity 0.05s linear, transform 0.05s linear;
}

@media (max-width: 1024px) {
    .scroll-scrub-wrapper {
        height: 200vh;
    }
}

/* --- Scent Quiz Interactive UI --- */
/* --- Scent Quiz Layout & Steps --- */
.quiz-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    padding-top: 72px;
    position: relative;
    z-index: 1;
}

.quiz-container {
    width: 100%;
    max-width: 1600px;
    /* Increased to 1600px */
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.quiz-step {
    width: 100%;
    height: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    /* Ensure children stretch to full width */
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-step.active {
    display: flex;
    opacity: 1;
}

.quiz-welcome-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.quiz-main-title {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 16px 0 24px;
    color: #000;
}

.quiz-intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
    max-width: 420px;
}

#quiz-question-container {
    flex-direction: column;
    justify-content: center;
    text-align: left;
    /* Align left */
    max-width: 1000px;
    /* Wider for left alignment */
    margin: 0 auto;
}

.quiz-progress-wrapper {
    width: 100%;
    max-width: 100%;
    /* Full width */
    margin-bottom: 40px;
}

.progress-bar-bg {
    height: 2px;
    background: #eee;
    width: 100%;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: #D9291C;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-counter {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

.quiz-question-text {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    color: #000;
    text-align: left;
    /* Align left */
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    /* Full width */
    margin-bottom: 60px;
    /* Space for nav */
}

.quiz-option-btn {
    background: #FFFFFF;
    border: 1px solid #E3DFD9;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 4px;
    text-align: left;
    width: 100%;
    /* Full width */
}

.quiz-option-btn.selected {
    border-color: #D9291C;
    background-color: #FFFFFF;
    /* Keep background white */
}

.quiz-option-btn:hover {
    border-color: #D9291C;
}

/* Quiz Navigation */
.quiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 40px;
}

#start-quiz-btn,
#prev-btn,
#next-btn {
    height: 48px;
    /* Standardized height */
    padding: 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Result Editorial Layout --- */
.result-reveal-wrapper.editorial-layout {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--page-margin);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.result-info-column {
    text-align: left;
    max-width: 600px;
    animation: revealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.result-match-details {
    margin: 40px 0;
}

.result-match-details .product-entry-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.result-match-details .product-entry-notes {
    font-size: 12px;
    color: #666;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-actions {
    display: flex;
    gap: 20px;
    margin-top: 64px;
}

.result-actions .btn {
    min-width: 200px;
    height: 52px;
}

/* --- Result Image Column --- */
.result-image-column {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    animation: revealUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.large-product-visual {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 0.85;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.large-product-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

#start-quiz-btn:hover,
#prev-btn:hover,
#next-btn:hover:not(:disabled) {
    background-color: #FFFFFF !important;
    border-color: #D9291C !important;
    color: #D9291C !important;
}

#prev-btn {
    visibility: hidden;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #FFFFFF;
    border: 1px solid #E3DFD9;
    color: var(--color-dark);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#next-btn {
    min-width: 160px;
    border-radius: 100px;
}

/* --- Quiz Result Reveal --- */
.quiz-result-container {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-result-container.active {
    display: flex;
    opacity: 1;
}

@keyframes revealUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
}

/* --- Ticker / Other Sections --- */

@media (max-width: 1024px) {
    .result-reveal-wrapper {
        grid-template-columns: 1fr;
        gap: 80px;
        text-align: center;
    }

    .result-text-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .result-title {
        font-size: 72px;
    }

    .result-product-card {
        padding: 60px 30px;
    }
}

/* --- NUBIE AI Orb (WebGL particle sphere, alive & interactive) --- */
.particle-orb-wrapper {
    position: relative;
    z-index: 10;
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.particle-orb-wrapper.active {
    opacity: 1;
}

.particle-orb-wrapper canvas {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 640px) {
    .particle-orb-wrapper {
        width: 150px !important;
        height: 150px !important;
    }
}

/* --- Scent Quiz CTA Section --- */
.quiz-cta-section {
    padding: 120px var(--page-margin);
    background-color: #FFFFFF;
    border-top: 1px solid #E3DFD9;
}

.quiz-cta-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.quiz-cta-visual {
    flex: 1.2;
    overflow: hidden;
    background-color: #f5f5f5;
}

.quiz-cta-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-cta-container:hover .quiz-cta-visual img {
    transform: scale(1.05);
}

.quiz-cta-content {
    flex: 0.8;
}

.quiz-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.quiz-accent-line {
    width: 60px;
    height: 1px;
    background-color: #D9291C;
}

.quiz-title {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.quiz-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 400px;
}

@media (max-width: 1024px) {
    .quiz-cta-container {
        flex-direction: column;
        gap: 60px;
    }

    .quiz-cta-section {
        padding: 80px var(--mobile-margin);
    }

    .quiz-cta-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .quiz-header {
        justify-content: center;
    }
}

/* --- Brand Values Ticker --- */
.values-ticker {
    padding: 24px 0;
    background-color: #FFFFFF;
    overflow: hidden;
    border-top: 1px solid #E3DFD9;
    border-bottom: 1px solid #E3DFD9;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerMoveLeft 120s linear infinite;
    will-change: transform;
}

.ticker-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-content span {
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 400;
    padding: 0 40px;
    color: #000;
    letter-spacing: 0.1em;
}

.ticker-dot {
    color: #D9291C;
    font-size: 0.8em;
}

@keyframes tickerMoveLeft {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 768px) {
    .values-ticker {
        padding: 24px 0;
    }

    .ticker-track {
        animation-duration: 60s;
    }
}

/* --- Community Archive Section --- */
.community-section {
    padding: 120px 0;
    /* Full width gallery */
    background-color: #FFFFFF;
}

.community-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    padding: 0 80px;
    /* Keep text aligned */
}

.community-title {
    font-size: 24px;
    font-weight: 400;
    max-width: 500px;
    line-height: 1.2;
    margin-top: 15px;
}

.community-carousel-wrapper {
    overflow-x: scroll;
    /* Force scrollability */
    padding-bottom: 20px;
    scrollbar-width: none;
    /* Hide for Firefox */
    -ms-overflow-style: none;
    /* Hide for IE/Edge */
    cursor: grab;
    user-select: none;
    scroll-behavior: auto;
}

.community-carousel-wrapper::-webkit-scrollbar {
    display: none;
    /* Hide for Chrome/Safari */
}

.community-carousel-wrapper.grabbing {
    cursor: grabbing;
}

.community-track {
    display: flex;
    gap: 40px;
    /* Increased for more white space */
}

.community-card {
    min-width: 280px;
    /* Decreased size */
    width: 280px;
    flex: 0 0 auto;
}

.community-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    background-color: #eee;
    border-radius: 0;
    /* Sharp architectural edges */
    overflow: hidden;
    margin-bottom: 20px;
}

.card-visual img,
.card-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-user-drag: none;
    /* Prevents ghosting in Chrome/Safari */
    user-select: none;
    pointer-events: none;
    /* Allows click events to pass through to the container */
}

.hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.community-card:hover .hover-video {
    opacity: 1;
}

.play-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    opacity: 1;
    transition: all 0.4s ease;
    z-index: 5;
}

.community-card:hover .play-indicator {
    opacity: 0;
    transform: scale(0.8);
}

.community-card:hover .card-visual img {
    transform: scale(1.05);
}

.card-quote {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    font-weight: 300;
}

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

.influencer-name {
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.influencer-name:hover {
    color: #D9291C;
}

.used-product {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #888;
}

.accent-red {
    color: #D9291C;
}

.btn-text-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.btn-text-link:hover svg {
    transform: translateX(5px);
}

.btn-text-link svg {
    transition: transform 0.3s ease;
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: 80vh;
    /* Fixed height for better IG scaling */
    z-index: 10;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(1.02);
    /* Slight scale to hide IG borders */
}

.modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.community-card {
    cursor: pointer;
}

@media (max-width: 1024px) {
    .community-section {
        padding: 80px 0;
    }

    .community-header {
        padding: 0 40px;
    }

    .community-title {
        font-size: 24px;
    }

    .community-card {
        min-width: 240px;
    }
}

/* Related products section styles are now self-contained in product.html */
