/*
Theme Name: Yunbuyao Theme
Theme URI: https://yunbuyao.space
Author: Yunbuyao Platform
Description: Custom built high-end e-commerce theme for Yunbuyao Cultural Heritage
Version: 1.0.1
Text Domain: yunbuyao
*/

/* 基础变量库与高端配色 */
:root {
    /* 核心色彩 - 深邃的中国色 (Dark Moody Theme) */
    --color-indigo: #0A0A0C;
    /* 极深炭黑，近乎纯黑的底色 */
    --color-gold: #c6a87c;
    /* 织锦暗金，保持高奢辅色 */
    --color-bg-light: #111111;
    /* 纯净的深邃暗灰，无青色偏色 */
    --color-bg-dark: #000000;
    /* 纯黑，用于最深沉的沉浸感部分 */
    --color-text-main: #E5E5E5;
    /* 文本主色反转为雅白色，保证暗底可读 */
    --color-text-muted: #888888;
    /* 柔和暗色文本 */
    --color-text-light: #A0A0A0;
    /* 辅助性灰白 */
    /* 字体族 */
    --font-heading: 'Noto Serif SC', serif;
    --font-en: 'Bodoni Moda', serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* 间距与缓动 */
    --transition-smooth: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius-sm: 4px;
    --border-color: rgba(255, 255, 255, 0.15);
    /* 边框通用色，暗底上的淡白色边框 */
}

/* 重置与基准设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* 导航栏 Navbar - 玻璃拟态/透明效果 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 5%;
    display: flex;
    justify-content: center;
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 5%;
}

.navbar.scrolled .logo-cn,
.navbar.scrolled .logo-en,
.navbar.scrolled .nav-links a {
    color: var(--color-indigo);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-cn {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-light);
    /* 默认白色，在深色hero上 */
    letter-spacing: 2px;
}

.logo-en {
    font-family: var(--font-en);
    font-size: 20px;
    letter-spacing: 4px;
    color: var(--color-text-light);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    /* removed static background image in favor of video, adding fallback color */
    background-color: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    /* Slight dimming for the video */
    filter: grayscale(20%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 21, 28, 0.4), rgba(27, 38, 59, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 12px;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 6px;
    font-weight: 300;
    margin-bottom: 50px;
    color: var(--color-gold);
}

.btn {
    display: inline-block;
    padding: 16px 48px;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: var(--border-radius-sm);
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-bg-dark) !important;
    font-weight: 500;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: #d8be97;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 布局与通用模块 */
section {
    padding: 120px 0;
}

/* 定制询价表单样式 */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.wpcf7-form p {
    margin-bottom: 0 !important;
}
.wpcf7-form label {
    color: var(--color-text-muted) !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-family: var(--body-font) !important;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select {
    width: 100% !important;
    padding: 15px !important;
    border: 1px solid var(--border-color) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    font-family: var(--body-font) !important;
    font-size: 15px !important;
    border-radius: var(--border-radius-sm) !important;
    transition: all 0.3s ease !important;
}
.wpcf7-form input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form select:focus {
    outline: none !important;
    border-color: var(--color-gold) !important;
    box-shadow: 0 0 0 2px rgba(198, 168, 124, 0.1) !important;
}
.wpcf7-form select {
    appearance: none !important;
    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='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}
.wpcf7-form input[type="submit"] {
    background-color: var(--color-gold) !important;
    color: var(--color-bg-dark) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    padding: 16px 48px !important;
    border: none !important;
    border-radius: var(--border-radius-sm) !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
    width: fit-content !important;
}
.wpcf7-form input[type="submit"]:hover {
    background-color: #d8be97 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
/* 隐藏CF7默认加载动画 */
.wpcf7-spinner {
    display: none !important;
}

.wpcf7-form input[type="submit"].wpcf7-submit:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}
/* 表单加载状态 */
.wpcf7-form.submitting::after {
    content: "Sending your inquiry... Please wait a moment.";
    display: block;
    margin-top: 15px;
    padding: 12px;
    background: rgba(198, 168, 124, 0.1);
    border: 1px solid var(--color-gold);
    border-radius: var(--border-radius-sm);
    color: var(--color-gold);
    font-size: 14px;
    text-align: center;
}
/* 表单提示样式 */
.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 15px 20px !important;
    border-radius: var(--border-radius-sm) !important;
    font-size: 14px !important;
    font-family: var(--body-font) !important;
}
.wpcf7-mail-sent-ok {
    border: 1px solid var(--color-gold) !important;
    background: rgba(198, 168, 124, 0.05) !important;
    color: var(--color-gold) !important;
}
.wpcf7-not-valid-tip {
    color: #ff6b6b !important;
    font-size: 12px !important;
    margin-top: 5px !important;
}
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid {
    border-color: #ff6b6b !important;
}

.layout-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-tag {
    font-size: 15px;
    letter-spacing: 4px;
    color: var(--color-gold);
    margin-bottom: 24px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: var(--color-gold);
}

.section-title {
    font-size: 3.2rem;
    line-height: 1.4;
    margin-bottom: 32px;
    color: var(--color-text-main);
}

.section-desc {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-center .section-tag::before {
    display: none;
}

.text-center .section-tag::after {
    display: none;
}

.text-center .section-tag {
    justify-content: center;
}

h2.light,
.section-tag.light {
    color: var(--color-text-light);
}

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

/* 品牌溯源 About */
.about-text .signature {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-top: 40px;
}

.about-image {
    position: relative;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 120%;
    /* 比例框 */
    border-radius: var(--border-radius-sm);
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.about-image:hover .img-wrapper img {
    transform: scale(1.05);
    /* 悬浮缓慢放大呈现高级感 */
}

/* 臻品系列 Collections Grid */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.collection-card {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-10px);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 130%;
    /* 竖版高级感比例 */
    margin-bottom: 24px;
    background-color: #2a2d36;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.5s ease, transform 0.8s ease;
}

.collection-card:hover .card-img-wrapper img {
    opacity: 1;
    transform: scale(1.03);
}

.card-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(18, 21, 28, 0.7);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(198, 168, 124, 0.3);
}

.card-price {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-gold);
}

/* ---- Shop Page Grid Items ---- */
.product-card {
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* square ratio */
    overflow: hidden;
    background: #111;
    border-radius: var(--border-radius-sm);
}

.product-img,
.grid-img,
.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, opacity 0.4s ease;
}

.product-card:hover .grid-img,
.product-card:hover .product-img,
.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding-top: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-gold);
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(198, 168, 124, 0.3);
}

.card-price {
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 1px;
}

.card-info h3 {
    color: var(--color-text-light);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.card-info .materials {
    font-size: 12px;
    color: var(--color-gold);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.card-info .desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-btn {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-size: 14px;
    border-bottom: 1px solid var(--color-gold);
    padding-bottom: 4px;
}

.link-btn:hover {
    color: var(--color-gold);
}

/* 工艺细节 Craft Banner */
.craft-section {
    padding: 0;
}

.craft-banner {
    background-color: var(--color-indigo);
    padding: 100px 5%;
    text-align: center;
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.craft-title {
    font-size: 3rem;
    margin-bottom: 80px;
    letter-spacing: 8px;
}

.craft-points {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 1200px;
    gap: 40px;
}

.point {
    position: relative;
    padding: 40px 20px;
    flex: 1;
}

.point::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 30px;
    background-color: var(--color-gold);
}

.point-num {
    font-family: var(--font-en);
    font-size: 40px;
    font-weight: 300;
    color: rgba(198, 168, 124, 0.3);
    display: block;
    margin-bottom: 16px;
}

.point h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.point p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 页脚 Footer */
.footer {
    background-color: #0b0d12;
    padding: 80px 0 20px;
    color: var(--color-text-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h2 {
    font-size: 2rem;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

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

.link-group h4 {
    color: var(--color-gold);
    margin-bottom: 24px;
    letter-spacing: 2px;
    font-size: 14px;
}

.link-group ul li {
    margin-bottom: 12px;
}

.link-group ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.link-group ul li a:hover {
    color: var(--color-text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* 动画类 Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-0 {
    transition-delay: 0s;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Scroll Reveal 状态初始值 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==== Product Detail Page (PDP) Styles ==== */
.pdp-body {
    background-color: var(--color-bg-light);
    padding-top: 100px;
    /* Offset for navbar */
}

.pdp-container {
    max-width: 1200px;
    margin: 40px auto 100px;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.pdp-image-col {
    position: sticky;
    top: 120px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.pdp-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.pdp-info-col {
    padding-top: 20px;
}

.breadcrumb {
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.breadcrumb a:hover {
    color: var(--color-indigo);
}

.pdp-title {
    font-size: 2.5rem;
    color: var(--color-indigo);
    margin-bottom: 16px;
    line-height: 1.2;
}

.pdp-price {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--color-gold);
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.pdp-materials {
    font-size: 0.9rem;
    color: var(--color-text-main);
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.pdp-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.pdp-description p {
    margin-bottom: 16px;
}

.pdp-action-area {
    margin-bottom: 40px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 20px;
}

.pdp-details-list details {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pdp-details-list summary {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 20px 0;
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdp-details-list summary::-webkit-details-marker {
    display: none;
}

.pdp-details-list summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-gold);
}

.pdp-details-list details[open] summary::after {
    content: '−';
}

.details-content {
    padding-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .layout-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 6px;
    }

    .nav-links {
        display: none;
    }

    /* 移动端暂略menu，需要可补充汉堡按钮 */
    .craft-points {
        flex-direction: column;
        gap: 20px;
    }

    .point::before {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 1px;
    }

    .pdp-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pdp-image-col {
        position: relative;
        top: 0;
    }
}

/* ==== Collection Page Styles ==== */
.collection-hero {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
}

.collection-hero .hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 8px;
    position: relative;
    z-index: 2;
}

.collection-hero .hero-subtitle {
    font-family: var(--font-en);
    position: relative;
    z-index: 2;
}

.collection-story-section {
    padding: 80px 0;
}

.products-section {
    padding: 60px 0 120px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.product-item {
    background: #fff;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease;
}

.product-item:hover {
    transform: translateY(-8px);
}

.product-item .product-img {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f8f8;
}

.product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.product-details {
    padding: 30px;
    text-align: center;
}

.product-name {
    font-size: 1.4rem;
    color: var(--color-indigo);
    margin-bottom: 10px;
}

.product-material {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.product-price {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 25px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-indigo);
    color: var(--color-indigo);
    padding: 12px 30px;
    width: 100%;
}

.btn-outline:hover {
    background: var(--color-indigo);
    color: var(--color-text-light);
}

/* ==== Shopping Cart Sidebar ==== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--color-bg-light);
    z-index: 1001;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth);
}

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

.cart-header {
    padding: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
    color: var(--color-indigo);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 50px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1rem;
    color: var(--color-indigo);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--color-gold);
    font-family: var(--font-body);
}

.remove-item {
    background: none;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 0;
    text-decoration: underline;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-indigo);
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
}
/* --- INJECTED INLINE STYLES --- */

/* From wiki.html */
.wiki-header {
            padding-top: 150px;
            padding-bottom: 80px;
            text-align: center;
        }

        .wiki-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
            margin-bottom: 100px;
        }

        .wiki-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border-color);
            padding: 40px;
            transition: 0.3s;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .wiki-card:hover {
            border-color: var(--color-gold);
            background: rgba(198, 168, 124, 0.05);
            transform: translateY(-5px);
        }

        .wiki-card i {
            font-size: 32px;
            color: var(--color-gold);
        }

        .wiki-card h3 {
            font-family: var(--brand-font);
            font-size: 24px;
            color: var(--color-gold);
        }

        .wiki-card p {
            font-size: 14px;
            color: var(--color-text-muted);
            line-height: 1.8;
            flex-grow: 1;
        }

        .wiki-card .btn-outline {
            display: inline-block;
            padding: 10px 20px;
            border: 1px solid var(--color-gold);
            color: var(--color-gold);
            text-decoration: none;
            font-size: 12px;
            letter-spacing: 1px;
            text-align: center;
        }

        /* NEW: Exhibition Section Styles */
        .exhibit-section {
            margin-bottom: 80px;
            padding: 20px 0;
        }

        .exhibit-title {
            font-family: var(--brand-font);
            font-size: 2.5rem;
            color: var(--color-text-main);
            margin-bottom: 15px;
        }

        .exhibit-desc {
            font-size: 15px;
            color: var(--color-text-muted);
            line-height: 1.8;
            margin-bottom: 30px;
        }

        .outline-box {
            padding: 40px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
        }

        .map-pin {
            display: flex;
            align-items: center;
            gap: 10px;
            transform: translate(-50%, -50%);
            transition: 0.3s;
        }
        .map-pin:hover {
            transform: translate(-50%, -50%) scale(1.1);
            z-index: 10;
        }
        .pin-dot {
            width: 14px;
            height: 14px;
            background: var(--color-gold);
            border-radius: 50%;
            box-shadow: 0 0 0 4px rgba(198, 168, 124, 0.3), 0 0 15px rgba(198, 168, 124, 0.8);
            animation: pulse 2s infinite;
        }
        .pin-label {
            background: rgba(10, 10, 12, 0.8);
            backdrop-filter: blur(4px);
            border: 1px solid var(--color-gold);
            color: var(--color-gold);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 11px;
            letter-spacing: 1px;
            white-space: nowrap;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(198, 168, 124, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(198, 168, 124, 0); }
            100% { box-shadow: 0 0 0 0 rgba(198, 168, 124, 0); }
        }

        .data-list {
            list-style: none;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 12px;
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 20px;
        }
        .data-list li {
            font-size: 14px;
            color: var(--color-text-muted);
        }
        .data-list li strong {
            color: var(--color-gold);
            margin-right: 10px;
            font-weight: 400;
        }

/* From journal.html */
.journal-hero {
            height: 60vh;
            background: linear-gradient(rgba(11, 13, 18, 0.6), #0b0d12), url('assets/hero-bg.jpg') center/cover;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding-top: 80px;
        }

        /* The Journey Timeline Layout */
        .timeline-journey {
            position: relative;
            max-width: 1200px;
            margin: 60px auto 140px;
            padding: 0 40px;
        }

        .timeline-journey::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            width: 1px;
            background: linear-gradient(180deg, transparent, rgba(198, 168, 124, 0.4), rgba(198, 168, 124, 0.4), transparent);
            transform: translateX(-50%);
        }

        .journey-node {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 120px;
            position: relative;
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 1s ease, transform 1s ease;
        }

        .journey-node.active {
            opacity: 1;
            transform: translateY(0);
        }

        .journey-node:nth-child(even) {
            flex-direction: row-reverse;
        }

        .journey-node::after {
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--color-bg-dark);
            border: 2px solid var(--color-gold);
            transform: translate(-50%, -50%);
            box-shadow: 0 0 0 6px var(--color-bg-dark);
            transition: background 0.4s ease;
            z-index: 2;
        }

        .journey-node:hover::after {
            background: var(--color-gold);
        }

        .node-img {
            width: 42%;
            position: relative;
        }

        .node-img img {
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 2px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            transition: transform 0.8s ease;
        }

        .journey-node:hover .node-img img {
            transform: scale(1.02);
        }

        .node-content {
            width: 42%;
            padding: 20px 0;
        }

        .geo-tag {
            font-family: var(--font-en);
            font-size: 11px;
            letter-spacing: 3px;
            color: var(--color-gold);
            text-transform: uppercase;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .geo-tag::before {
            content: '';
            display: inline-block;
            width: 30px;
            height: 1px;
            background: var(--color-gold);
        }

        .node-title {
            font-size: 42px;
            margin-bottom: 20px;
            color: var(--color-gold);
            line-height: 1.4;
            font-weight: 400;
        }

        .node-desc {
            font-size: 16px;
            color: var(--color-text-muted);
            line-height: 1.8;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .read-more {
            color: var(--color-gold);
            font-size: 13px;
            font-weight: 500;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-decoration: none;
            border-bottom: 1px solid var(--color-gold);
            padding-bottom: 5px;
            transition: 0.3s;
        }

        .read-more:hover {
            color: #fff;
            border-color: #fff;
        }

        @media (max-width: 768px) {
            .timeline-journey::before {
                left: 20px;
            }

            .journey-node,
            .journey-node:nth-child(even) {
                flex-direction: column !important;
                align-items: flex-start;
                margin-bottom: 80px;
            }

            .journey-node::after {
                left: 20px;
                top: 0;
                transform: translate(-50%, 0);
            }

            .node-img,
            .node-content {
                width: 100%;
            }

            .node-img {
                margin-bottom: 30px;
                padding-left: 50px;
            }

            .node-content {
                padding: 0 0 0 50px;
            }

            .geo-tag::before {
                display: none;
            }
        }

        /* Modal Overlay Sub-system */
        .archive-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(11, 13, 18, 0.95);
            backdrop-filter: blur(15px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease;
        }

        .archive-modal.open {
            opacity: 1;
            pointer-events: all;
        }

        .modal-content-wrapper {
            width: 85%;
            max-width: 1400px;
            height: 80vh;
            display: flex;
            background: #000;
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            transform: translateY(20px);
            transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .archive-modal.open .modal-content-wrapper {
            transform: translateY(0);
        }

        .modal-img-col {
            width: 55%;
            height: 100%;
            border-right: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .interactive-img-container {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .modal-img-col img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.85;
            display: block;
        }

        /* Hotspots */
        .hotspot {
            position: absolute;
            width: 24px;
            height: 24px;
            background: rgba(198, 168, 124, 0.2);
            border: 1.5px solid var(--color-gold);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .hotspot::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 8px;
            height: 8px;
            background: var(--color-gold);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.3s ease;
        }

        .hotspot::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 50%;
            border: 1px solid var(--color-gold);
            animation: hotPulse 2.5s infinite;
        }

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

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

        .hotspot:hover,
        .hotspot.active {
            background: rgba(198, 168, 124, 0.8);
            transform: translate(-50%, -50%) scale(1.1);
        }

        .hotspot:hover::before,
        .hotspot.active::before {
            background: #000;
        }

        .modal-text-col {
            width: 45%;
            padding: 60px;
            overflow-y: auto;
            background: linear-gradient(135deg, #111, #0a0a0a);
        }

        .fade-block {
            transition: opacity 0.5s ease;
            opacity: 1;
        }

        .fade-block.faded {
            opacity: 0;
        }

        .hs-indicator {
            display: inline-block;
            width: 12px;
            height: 12px;
            border: 2px solid var(--color-gold);
            background: transparent;
            border-radius: 50%;
            margin-right: 12px;
        }

        .modal-close-btn {
            position: absolute;
            top: 25px;
            right: 25px;
            background: none;
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-family: var(--font-en);
            font-size: 10px;
            letter-spacing: 2px;
            color: var(--color-text-muted);
            padding: 8px 15px;
            cursor: pointer;
            transition: 0.3s;
            z-index: 50;
        }

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

/* From journal.html */
.materials-scroll::-webkit-scrollbar {
                    display: none;
                }

                .material-card {
                    flex: 0 0 400px;
                    height: 550px;
                    position: relative;
                    border-radius: 2px;
                    overflow: hidden;
                    cursor: pointer;
                }

                .material-card img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transition: transform 1.2s ease, filter 0.5s ease;
                    filter: brightness(0.7) contrast(1.1);
                }

                .material-card:hover img {
                    transform: scale(1.05);
                    filter: brightness(0.9) contrast(1.1);
                }

                .material-overlay {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    padding: 40px 30px;
                    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
                }

                .material-overlay h3 {
                    font-family: var(--font-en);
                    font-size: 24px;
                    color: var(--color-gold);
                    margin-bottom: 10px;
                    font-weight: 400;
                    letter-spacing: 2px;
                }

                .material-overlay p {
                    font-size: 13px;
                    color: rgba(255, 255, 255, 0.7);
                    letter-spacing: 1px;
                    line-height: 1.6;
                }

/* From shop.html */
/* Editoral Lookbook Grid Override */
            .collection-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr) !important;
                grid-auto-flow: dense;
                gap: 120px 40px !important;
                /* massive vertical whitespace for luxury feel */
            }

            @media (max-width: 1024px) {
                .collection-grid {
                    grid-template-columns: repeat(2, 1fr) !important;
                }
            }

            @media (max-width: 600px) {
                .collection-grid {
                    grid-template-columns: 1fr !important;
                    gap: 80px 0 !important;
                }
            }

            .product-tag {
                top: 15px;
                left: 15px;
                background: rgba(0, 0, 0, 0.4);
                backdrop-filter: blur(5px);
                border: 1px solid rgba(255, 255, 255, 0.2);
                padding: 4px 12px;
                font-size: 10px;
                letter-spacing: 2px;
            }

            .luxury-buy-btn:hover {
                color: var(--color-gold) !important;
            }

            .advanced-filter-panel {
                display: none;
                grid-template-columns: 1fr 1fr;
                gap: 40px;
                padding: 30px;
                background: #111;
                border: 1px solid rgba(255, 255, 255, 0.05);
                margin-bottom: 40px;
            }

            .advanced-filter-panel.active {
                display: grid;
            }

            .filter-col h4 {
                font-family: var(--font-en);
                font-weight: 300;
                letter-spacing: 2px;
                margin-bottom: 20px;
                font-size: 14px;
                color: var(--color-gold);
            }

            .filter-col {
                display: flex;
                flex-wrap: wrap;
                align-content: flex-start;
            }

            .filter-col h4 {
                width: 100%;
            }

            .filter-pill input {
                display: none;
            }

            .filter-pill span {
                display: inline-block;
                padding: 6px 18px;
                border: 1px solid rgba(255, 255, 255, 0.15);
                border-radius: 20px;
                font-size: 11px;
                letter-spacing: 2px;
                color: var(--color-text-muted);
                transition: all 0.3s ease;
                text-transform: uppercase;
                margin-bottom: 10px;
                margin-right: 10px;
                cursor: pointer;
            }

            .filter-pill input:checked + span {
                background: var(--color-gold);
                color: #000;
                border-color: var(--color-gold);
            }

            .filter-pill:hover span {
                border-color: rgba(255, 255, 255, 0.5);
                color: var(--color-text-light);
            }

            .product-card:hover .img-hover-overlay {
                opacity: 1 !important;
            }

/* From product-atlas-laptop-bag.html */
body.pdp-body {
            background-color: #0b0d12;
            color: rgba(255,255,255,0.85);
            font-family: 'Inter', 'Noto Serif SC', serif;
            margin: 0;
            padding-top: 80px;
        }

        .navbar { background: rgba(11, 13, 18, 0.95); border-bottom: 1px solid rgba(198,168,124,0.1); }
        
        /* New E-commerce Layout */
        .ecommerce-container {
            max-width: 1400px;
            margin: 40px auto;
            padding: 0 40px;
            display: flex;
            align-items: flex-start;
            gap: 60px;
        }

        /* Left: Vertical Image Gallery */
        .product-gallery {
            flex: 6;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .product-gallery img {
            width: 100%;
            border-radius: 4px;
            background: #111;
            /* Placeholder styling if images are different sizes */
            object-fit: cover;
        }

        /* Right: Sticky Product Info */
        .product-info {
            flex: 4;
            position: sticky;
            top: 100px;
            padding-bottom: 50px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
        }

        /* Show subtle scrollbar for product info */
        .product-info::-webkit-scrollbar { width: 4px; }
        .product-info::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
        .product-info::-webkit-scrollbar-thumb { background: rgba(198,168,124,0.3); border-radius: 4px; }
        .product-info::-webkit-scrollbar-thumb:hover { background: rgba(198,168,124,0.6); }

        .p-sku { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.4); text-transform: uppercase; margin-bottom: 10px; }
        .p-title { font-family: 'Noto Serif SC', serif; font-size: 28px; margin: 0 0 15px 0; color: #fff; line-height: 1.4; }
        .p-price { font-family: 'Bodoni Moda', serif; font-size: 24px; color: var(--color-gold); margin-bottom: 30px; display: flex; align-items:center; gap:15px; }
        .p-price span { font-size: 14px; text-decoration: line-through; color: rgba(255,255,255,0.3); }

        /* Variants / Quick Info */
        .p-variants { margin-bottom: 30px; font-size: 13px; }
        .p-variants strong { color: rgba(255,255,255,0.7); font-weight: normal; margin-right: 10px; }

        /* Add to Cart */
        .btn-add {
            width: 100%;
            background: var(--color-gold);
            color: #000;
            border: none;
            padding: 16px;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            cursor: pointer;
            transition: 0.3s;
            margin-bottom: 20px;
        }
        .btn-add:hover { background: #fff; }

        /* Trust Badges / Payment */
        .trust-badges {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
            border-bottom: 1px solid rgba(198,168,124,0.15);
            padding-bottom: 30px;
        }
        .trust-badges i { font-size: 24px; color: rgba(255,255,255,0.5); }

        .guarantees {
            display: flex;
            justify-content: space-between;
            text-align: center;
            margin-bottom: 30px;
        }
        .guarantee-item i { font-size: 20px; color: var(--color-gold); margin-bottom: 8px; }
        .guarantee-item div { font-size: 10px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }

        /* Accordion */
        .accordion {
            border-top: 1px solid rgba(198,168,124,0.15);
        }
        .accordion-item {
            border-bottom: 1px solid rgba(198,168,124,0.15);
        }
        .accordion-header {
            width: 100%;
            background: none;
            border: none;
            color: #fff;
            padding: 20px 0;
            text-align: left;
            font-size: 15px;
            font-family: 'Noto Serif SC', serif;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .accordion-content {
            padding: 0 0 20px 0;
            font-size: 13px;
            line-height: 1.8;
            color: rgba(255,255,255,0.6);
            display: none; /* JS toggles this */
        }
        
        .accordion-content.open { display: block; }
        .accordion-content ul { padding-left: 20px; margin: 10px 0; }
        
        /* Highlight tags in description */
        .hl-tag { color: var(--color-gold); font-weight: 500; }

        @media (max-width: 992px) {
            .ecommerce-container { flex-direction: column; }
            .product-info { position: static; max-height: none; }
        }

/* From product-atlas-laptop-bag.html */
.color-selector { display: flex; gap: 12px; margin-top: 10px; margin-bottom: 20px; }
                    .color-swatch { 
                        position: relative;
                        width: 32px; height: 32px; 
                        border-radius: 50%; 
                        cursor: pointer; 
                        border: 2px solid transparent; 
                        transition: 0.2s; 
                    }
                    .color-swatch.active { border-color: var(--color-gold); transform: scale(1.1); }
                    .color-swatch.sold-out { opacity: 0.3; cursor: not-allowed; }
                    .color-swatch.sold-out::after {
                        content: '';
                        position: absolute;
                        top: 50%; left: -2px; right: -2px;
                        height: 2px;
                        background: #fff;
                        transform: translateY(-50%) rotate(45deg);
                    }

/* From bespoke.html */
body {
            background-color: var(--color-bg-dark);
            color: var(--color-text-light);
        }

        .bespoke-container {
            padding-top: 150px;
            padding-bottom: 100px;
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 60px;
            align-items: flex-start;
        }

        @media (max-width: 900px) {
            .bespoke-container {
                grid-template-columns: 1fr;
            }
        }

        .step-container {
            margin-bottom: 50px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 40px;
        }

        .step-title {
            color: var(--color-gold);
            font-family: var(--brand-font);
            font-size: 24px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .step-num {
            font-size: 14px;
            opacity: 0.5;
            font-family: var(--body-font);
        }

        .step-desc {
            color: var(--color-text-muted);
            font-size: 14px;
            margin-bottom: 30px;
        }

        .choice-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .choice-card {
            border: 1px solid var(--border-color);
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: 0.3s;
            background: rgba(255, 255, 255, 0.02);
        }

        .choice-card:hover {
            border-color: rgba(198, 168, 124, 0.5);
        }

        .choice-card.active {
            border: 2px solid var(--color-gold);
            background: rgba(198, 168, 124, 0.08);
            transform: scale(1.02);
            box-shadow: 0 5px 15px rgba(198, 168, 124, 0.15);
        }

        .choice-img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            margin-bottom: 15px;
            border-radius: 4px;
        }

        .choice-name {
            font-size: 15px;
            font-weight: 500;
            margin-bottom: 5px;
        }

        .choice-price {
            font-size: 13px;
            color: var(--color-gold);
            font-family: var(--font-en);
        }

        /* Summary Panel */
        .summary-panel {
            background: #0b0d12;
            border: 1px solid var(--border-color);
            padding: 40px;
            position: sticky;
            top: 120px;
        }

        .summary-title {
            font-family: var(--brand-font);
            font-size: 24px;
            color: var(--color-gold);
            margin-bottom: 30px;
            letter-spacing: 1px;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-size: 14px;
            color: var(--color-text-muted);
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .summary-row.total {
            font-size: 20px;
            color: var(--color-gold);
            border-bottom: none;
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
            margin-top: 20px;
            margin-bottom: 30px;
            align-items: center;
            font-family: var(--font-en);
        }

        .summary-val {
            color: var(--color-text-light);
            text-align: right;
            max-width: 60%;
        }

        .btn-reserve {
            width: 100%;
            padding: 18px;
            font-size: 14px;
            letter-spacing: 2px;
            text-transform: uppercase;
            background: var(--color-gold);
            color: #000;
            border: none;
            cursor: pointer;
            font-family: var(--body-font);
            transition: 0.3s;
            font-weight: 600;
        }

        .btn-reserve:hover {
            background: #dcc099;
        }

        /* Mode Selection Header */
        .mode-selector {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 60px;
        }

        .mode-card {
            border: 1px solid var(--border-color);
            padding: 30px 20px;
            text-align: center;
            cursor: pointer;
            transition: 0.3s;
            background: rgba(255, 255, 255, 0.02);
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 100%;
        }

        .mode-card:hover {
            border-color: var(--color-gold);
            background: rgba(198, 168, 124, 0.05);
        }

        .mode-card.active {
            border: 2px solid var(--color-gold);
            background: rgba(198, 168, 124, 0.1);
        }

        .mode-icon {
            font-size: 24px;
            color: var(--color-gold);
            margin-bottom: 15px;
        }

        .mode-title {
            font-family: var(--brand-font);
            font-size: 18px;
            margin-bottom: 10px;
        }

        .mode-desc {
            font-size: 12px;
            color: var(--color-text-muted);
            line-height: 1.5;
        }

        .configurator-section {
            display: none;
        }

        .configurator-section.active {
            display: block;
        }

        #mode-c-details {
            text-align: center;
            padding: 80px 40px;
            border: 1px dashed var(--border-color);
            margin-top: 40px;
        }

/* From product-detail.html */
/* Configurator Styles */
        .configurator-box {
            background-color: #fff;
            padding: 24px;
            border-radius: var(--border-radius-sm);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
            margin-bottom: 30px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .config-title {
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--color-indigo);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .config-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(0, 0, 0, 0.1);
        }

        .config-option-group {
            margin-bottom: 20px;
        }

        .config-label {
            font-size: 13px;
            color: var(--color-text-muted);
            margin-bottom: 10px;
            display: block;
        }

        .config-choices {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .config-choice {
            padding: 8px 16px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--color-text-main);
        }

        .config-choice.active {
            border-color: var(--color-gold);
            color: var(--color-gold);
            background: rgba(198, 168, 124, 0.05);
        }

        .price-update {
            font-family: var(--font-en);
            font-size: 24px;
            color: var(--color-gold);
            margin-top: 10px;
            display: inline-block;
        }

        #pdp-img-container {
            position: relative;
        }

        #pdp-config-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            mix-blend-mode: multiply;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .loader {
            display: none;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(0, 0, 0, 0.1);
            border-top: 2px solid var(--color-gold);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 10px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Thumbnail Gallery */
        .pdp-thumb-strip {
            display: flex;
            gap: 10px;
            margin-top: 16px;
            overflow-x: auto;
            padding-bottom: 6px;
        }

        .pdp-thumb-strip::-webkit-scrollbar {
            height: 3px;
        }

        .pdp-thumb-strip::-webkit-scrollbar-thumb {
            background: var(--color-gold);
            border-radius: 2px;
        }

        .pdp-thumb {
            width: 72px;
            height: 72px;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid transparent;
            opacity: 0.6;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .pdp-thumb:hover,
        .pdp-thumb.active {
            opacity: 1;
            border-color: var(--color-gold);
        }

        /* Specs & Dimensions */
        .pdp-specs-box {
            padding: 28px 32px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(198, 168, 124, 0.15);
            border-radius: 6px;
        }

        .pdp-specs-title {
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--color-gold);
            margin-bottom: 22px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .pdp-specs-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(198, 168, 124, 0.2);
        }

        .pdp-specs-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 20px 30px;
        }

        .pdp-spec-item {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .pdp-spec-label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: rgba(255, 255, 255, 0.4);
        }

        .pdp-spec-value {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.85);
            font-weight: 500;
        }

        /* Capacity / What Fits */
        .pdp-capacity-box {
            padding: 28px 32px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(198, 168, 124, 0.15);
            border-radius: 6px;
        }

        .pdp-capacity-title {
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--color-gold);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pdp-capacity-icons {
            display: flex;
            gap: 28px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }

        .pdp-cap-icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            min-width: 65px;
        }

        .pdp-cap-icon i {
            font-size: 26px;
            color: var(--color-gold);
            opacity: 0.8;
        }

        .pdp-cap-icon span {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.5);
            letter-spacing: 0.5px;
            text-align: center;
        }

        .pdp-capacity-desc {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.5);
            line-height: 1.6;
        }

        /* Full-width detail strip below the main grid */
        .pdp-detail-strip {
            max-width: 1100px;
            margin: 50px auto 0;
            padding: 0 40px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        .pdp-detail-strip .full-width {
            grid-column: 1 / -1;
        }

        /* Configurator in the strip */
        .configurator-box {
            background: rgba(255, 255, 255, 0.03);
            padding: 28px 32px;
            border-radius: 6px;
            border: 1px solid rgba(198, 168, 124, 0.15);
        }

        .config-title {
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--color-gold);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .config-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(198, 168, 124, 0.2);
        }

        /* Traceability in the strip */
        .pdp-trace-card {
            padding: 28px 32px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(198, 168, 124, 0.15);
            border-radius: 6px;
        }

        /* Sticky image column */
        .pdp-image-col {
            position: sticky;
            top: 90px;
            align-self: start;
        }

        @media (max-width: 768px) {
            .pdp-detail-strip {
                grid-template-columns: 1fr;
                padding: 0 20px;
            }

            .pdp-specs-grid {
                grid-template-columns: 1fr 1fr;
            }

            .pdp-image-col {
                position: static;
            }
        }

/* ==================================================================== */
/* WooCommerce UI Overrides - Custom High-End Styling                   */
/* ==================================================================== */

/* --- 修复相关产品卡片底部对齐问题 --- */
.woocommerce ul.products,
.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    float: none !important;
}

.woocommerce ul.products li.product,
.related.products ul.products li.product {
    float: none !important; /* 清除WooCommerce默认浮动，让flex生效 */
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important;
}

/* 产品内容区域自动撑开，把按钮推到最底部 */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 统一产品图片容器高度 */
.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* 产品名称固定最小高度，避免长短不一导致高度差（足够容纳4行标题） */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    flex-grow: 1 !important;
    margin-bottom: 15px !important;
    min-height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 10px !important;
}

/* 价格区域固定最小高度 */
.woocommerce ul.products li.product .price {
    margin: 15px 0 20px !important;
    min-height: 40px;
    justify-content: center;
}

/* 按钮固定在卡片最底部 */
.woocommerce ul.products li.product .button {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    align-self: center !important;
    flex-shrink: 0 !important;
}

/* --- 1. Add to Cart Buttons --- */
.woocommerce button.button, 
.woocommerce button.button.alt,
.woocommerce a.button, 
.woocommerce a.button.alt,
.woocommerce input.button, 
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.add_to_cart_button,
.woocommerce a.button.product_type_simple {
    background-color: transparent !important;
    color: var(--color-gold) !important;
    font-family: var(--font-en), "Bodoni Moda", serif !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    padding: 12px 25px !important;
    border-radius: 0 !important; /* Sharp Classical Geometry */
    border: 1px solid rgba(198, 168, 124, 0.4) !important;
    
    text-transform: uppercase !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
    position: relative;
    /* Optional glow effect removal */
}

/* Add custom hover effect for the geometric frame: slightly fill background */
.woocommerce button.button:hover, 
.woocommerce button.button.alt:hover,
.woocommerce a.button:hover, 
.woocommerce a.button.alt:hover,
.woocommerce input.button:hover, 
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
    background-color: rgba(198, 168, 124, 0.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    color: var(--color-gold) !important;
}

/* --- 1.1 Buy Now Button --- */
/* --- 1.1 Buy Now Button --- */
.buy-now-btn {
    background-color: var(--color-gold) !important;
    color: #0d0d0d !important;
    font-family: var(--font-en), "Bodoni Moda", serif !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    text-transform: uppercase !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 52px !important;
    line-height: normal !important;
    margin-top: 15px !important;
    margin-bottom: 40px !important;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 5px 15px rgba(198, 168, 124, 0.1) !important;
}
.buy-now-btn:hover {
    background-color: #d8be97 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(198, 168, 124, 0.3) !important;
}
        
/* WooCommerce Variations Table Structure */
.woocommerce div.product table.variations {
    border: none !important;
    margin-bottom: 30px !important;
    width: 100% !important;
}
.woocommerce div.product table.variations tr {
    border: none !important;
    display: flex !important;
    align-items: center;
    margin-bottom: 15px !important;
}
.woocommerce div.product table.variations td.label {
    width: 80px !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6) !important;
    line-height: normal !important;
    text-align: left !important;
    border: none !important;
    background: transparent !important;
}
.woocommerce div.product table.variations td.label label {
    margin: 0 !important;
    color: inherit !important;
}
.woocommerce div.product table.variations td.value {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
.woocommerce div.product .custom-swatches {
    margin-top: 0 !important;
}

/* Ensure single product page add to cart button stretches nicely and looks distinct */
/* Ensure single product page add to cart button stretches nicely and looks distinct */
.woocommerce div.product form.cart {
    margin-top: 30px;
    margin-bottom: 25px;
}
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart .variations_button {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 15px !important;
    width: 100% !important;
}
.woocommerce div.product form.cart .button {
    padding: 0 !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    flex: 1 1 auto !important;
    height: 52px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.woocommerce div.product form.cart .quantity {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(198,168,124,0.4) !important;
    border-radius: 0 !important; /* Sharp Rectangle */
    padding: 0 !important;
    height: 52px !important;
    margin: 0 !important;
    flex: 0 0 130px !important;
    background: transparent !important;
}

/* --- 2. Price Styling --- */
.woocommerce-Price-amount {
    font-family: var(--font-en), "Bodoni Moda", serif !important;
}

.woocommerce .price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px;
    font-family: var(--font-en), "Bodoni Moda", serif !important;
    color: var(--color-gold) !important;
    text-decoration: none !important; 
    margin-top: 35px !important;
    margin-bottom: 35px !important;
}
.woocommerce ul.products li.product .price {
    align-items: center !important; /* Center on archive pages */
    flex-direction: row !important; /* Force side-by-side for range in catalog */
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

/* Force vertical stacking */
.woocommerce .price del, 
.woocommerce .price ins,
.woocommerce p.price del,
.woocommerce p.price ins {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    line-height: 1.2 !important;
}

/* Regular Price (Strikethrough) - Brighter so it's visible */
.woocommerce .price del,
.woocommerce .price del span.amount,
.woocommerce p.price del * {
    opacity: 1 !important;
    font-size: 16px !important;
    text-decoration: line-through !important;
    text-decoration-color: rgba(255, 255, 255, 0.6) !important; /* 划掉线更明显 */
    color: #e0e0e0 !important; /* 亮银色，比原来亮40%，对比度提升 */
    font-weight: 400 !important; /* 稍微加粗，更易读 */
}

/* Sale Price (No Strikethrough) - Keep Gold and clear */
.woocommerce .price ins,
.woocommerce .price ins span.amount,
.woocommerce .price > span.amount,
.woocommerce p.price ins * {
    text-decoration: none !important;
    color: var(--color-gold) !important;
    font-weight: 500 !important;
    font-size: 22px !important;
}

/* Specific left alignment on single product page */
.woocommerce div.product p.price {
    margin-bottom: 24px;
    text-decoration: none !important;
}

/* --- 3. Quantity Input Styling --- */
.woocommerce div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

/* Elegant Quantity Selector */
.woocommerce div.product form.cart div.quantity { 
    display: inline-flex !important;
    align-items: center;
    border: 1px solid rgba(198, 168, 124, 0.4);
    border-radius: 50px;
    padding: 2px 5px;
    background: transparent;
}

.woocommerce .quantity .qty {
    background: transparent !important;
    color: var(--color-gold) !important;
    border: none !important;
    width: 45px !important;
    text-align: center;
    font-size: 15px !important;
    font-family: var(--font-en), "Bodoni Moda", serif !important;
    -moz-appearance: textfield;
}

.woocommerce .quantity .qty::-webkit-inner-spin-button, 
.woocommerce .quantity .qty::-webkit-outer-spin-button { 
    opacity: 1; /* Make native arrows visible but elegant */
    height: 30px;
}

.woocommerce .quantity label {
    display: none !important;
}


/* --- 4. Product Variations (Color, Size) Styling --- */
/* HIDE the confusing global price range for variable products. The exact variant price will show at the bottom! */
.woocommerce div.product.product-type-variable > p.price {
    display: none !important;
}

.woocommerce div.product form.cart .variations {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0 15px; /* Adds vertical space between 'Color' and 'Size' rows */
}

.woocommerce div.product form.cart .variations td {
    padding-bottom: 15px;
}

.woocommerce div.product form.cart .variations td.label {
    padding-right: 25px;
    color: var(--color-gold);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    vertical-align: middle;
    width: 60px; /* Force it to be small so swatches move left */
}

.woocommerce div.product form.cart .variations td.value {
    vertical-align: middle;
}

/* Style the native Variation Select Dropdowns */
.woocommerce div.product form.cart .variations select {
    width: 100%;
    background-color: transparent !important;
    border: 1px solid rgba(198, 168, 124, 0.4) !important;
    color: var(--color-light, #E5E5E5) !important;
    padding: 12px 15px !important;
    border-radius: 4px !important;
    font-family: var(--font-body), sans-serif !important;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    /* Custom Gold Chevron for Dropdown */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6A87C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.woocommerce div.product form.cart .variations select:focus {
    outline: none !important;
    border-color: var(--color-gold) !important;
    background-color: rgba(0,0,0,0.5) !important;
}

/* Option tags styling in dropdowns */
.woocommerce div.product form.cart .variations select option {
    background-color: var(--color-indigo, #0A0A0C);
    color: #fff;
    padding: 10px;
}

/* Reset Variations Button */
.woocommerce div.product form.cart .reset_variations,
a.reset_variations {
    display: none !important; /* Hide the ugly 'Clear' button */
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.woocommerce div.product .woocommerce-variation-price {
    margin-bottom: 20px;
}

/* ==================================================================== */
/* WooCommerce Notices (Added to Cart, Errors, Info)                    */
/* ==================================================================== */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
    position: relative;
    background-color: rgba(10, 10, 12, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(198,168,124,0.3) !important;
    border-left: 4px solid var(--color-gold) !important;
    border-top: 1px solid rgba(198,168,124,0.3) !important; /* aggressively overwrite native blue */
    color: #E5E5E5 !important;
    font-family: var(--font-body), sans-serif !important;
    border-radius: 4px !important;
    padding: 15px 40px 15px 45px !important; /* room for the icon and close button */
    font-size: 13px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    outline: none !important;
}

/* KILL THE BLUE GLOW WHEN WOOCOMMERCE AUTOFOCUSES THE NOTICE VIA JS */
.woocommerce-message:focus, .woocommerce-error:focus, .woocommerce-info:focus,
.woocommerce-message:focus-visible, .woocommerce-error:focus-visible, .woocommerce-info:focus-visible {
    outline: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    border-color: rgba(198,168,124,0.3) !important;
    border-left-color: var(--color-gold) !important;
}

/* Close Notice Button X */
.close-notice {
    position: absolute;
    top: 5px;
    right: 10px;
    color: rgba(255,255,255,0.4);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 100;
}
.close-notice:hover {
    color: var(--color-gold);
}

/* Fix Notice Buttons (View Cart) */
.woocommerce-message .button, .woocommerce-error .button, .woocommerce-info .button {
    background-color: transparent !important;
    border: 1px solid var(--color-gold) !important;
    color: var(--color-gold) !important;
    float: right;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
    margin-top: -5px !important;
    margin-right: 15px !important; /* Push it away from X */
    text-transform: uppercase !important;
    font-family: var(--font-en), "Bodoni Moda", serif !important;
}
.woocommerce-message .button:hover, .woocommerce-error .button:hover, .woocommerce-info .button:hover {
    background-color: var(--color-gold) !important;
    color: #0d0d0d !important;
}

/* Notification Icons / Text Overrides */
.woocommerce-message::before, .woocommerce-error::before, .woocommerce-info::before {
    color: var(--color-gold) !important;
}
.woocommerce-error li {
    list-style: none !important;
    margin-left: 0 !important;
}

/* ================================================================
   V9 Product Detail Modules — Responsive Styles
   ================================================================ */

/* V9 Masonry Gallery */
.v9-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.v9-gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.v9-gallery-grid img:hover {
    transform: scale(1.02);
}

/* V9 Material & Heritage */
.v9-material-heritage {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 40px;
    background: #0e0e0e;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
}

.v9-material-heritage .v9-material-text h4 {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(198, 168, 124, 0.3);
    padding-bottom: 8px;
}

.v9-material-heritage .v9-material-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.8;
    font-weight: 300;
}

.v9-material-heritage .v9-material-media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.v9-material-heritage .v9-material-media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.v9-material-heritage .v9-material-media video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    grid-column: 1 / -1;
    margin-bottom: 15px;
}

/* V9 Behind the Stitches */
.v9-behind-stitches {
    width: 100%;
    max-width: 1100px;
    margin: 80px auto 40px;
    padding: 0 4%;
    clear: both;
}

.v9-behind-stitches h2 {
    font-size: 28px;
    color: #bca07e;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Bodoni Moda', serif;
    letter-spacing: 2px;
    text-align: center;
}

.v9-behind-stitches p {
    font-size: 16px;
    color: #999;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
}

/* V9 Customization Module */
.v9-customization-module {
    margin: 25px 0 35px 0;
    padding: 20px;
    border: 1px solid rgba(198, 168, 124, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

/* 修复产品网格第一行只有2个的问题 */
.woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-flow: row !important; /* 禁用dense密集布局，按正常顺序排列 */
}

.collection-grid {
    grid-auto-flow: row !important; /* 禁用dense密集布局，避免排列混乱 */
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .v9-material-heritage {
        padding: 40px 30px;
    }

    .v9-material-heritage > div > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .v9-material-heritage .v9-material-media {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .v9-material-heritage {
        padding: 30px 20px;
        margin: 40px 15px;
    }

    .v9-material-heritage .v9-material-media {
        grid-template-columns: 1fr;
    }

    .v9-material-heritage .v9-material-media video {
        grid-column: auto;
    }

    .v9-behind-stitches {
        margin: 40px 15px;
    }

    .v9-behind-stitches h2 {
        font-size: 22px;
    }

    .v9-gallery-grid {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* 修复产品网格第一行只有2个的问题 - 绝杀版！不管什么情况都强制3列 */
html body.woocommerce-shop ul.products,
html body.woocommerce-shop .woocommerce ul.products,
html body.post-type-archive-product ul.products,
html body.archive ul.products,
html body.woocommerce-shop .products,
html body.post-type-archive-product .products,
.woocommerce ul.products,
.woocommerce .products,
.woocommerce-page ul.products,
.woocommerce-shop ul.products,
.products[class*="columns-"], /* 不管columns-2/3/4，全部强制3列 */
.products.columns-3,
.products.columns-4,
.products.columns-2,
.collection-grid {
    grid-auto-flow: row !important; /* 禁用dense密集布局 */
    grid-template-columns: repeat(3, 1fr) !important; /* 强制固定3列，优先级比天高 */
    grid-template-rows: auto !important; /* 自动行高 */
    gap: 30px !important; /* 固定间距 */
    width: 100% !important; /* 占满宽度 */
    max-width: 1400px !important; /* 最大宽度和内联设置一致 */
    margin: 0 auto !important; /* 居中 */
}

/* 彻底干掉2列布局的所有可能 */
@media (min-width: 769px) {
    html body.woocommerce-shop ul.products,
    html body.post-type-archive-product ul.products,
    .woocommerce ul.products,
    .products[class*="columns-"] {
        grid-template-columns: repeat(3, 1fr) !important; /* 桌面端强制3列 */
    }
}

/* 强制产品卡片宽度必须是列宽，绝对不允许跨列 */
html body.woocommerce-shop ul.products li.product,
html body.post-type-archive-product ul.products li.product,
.woocommerce ul.products li.product,
ul.products li.product {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    height: auto !important;
    float: none !important; /* 彻底干掉WooCommerce默认的浮动 */
    grid-column: auto !important; /* 强制不跨列！这就是问题根源！ */
    grid-row: auto !important; /* 强制不跨行 */
}

/* 强制清除 WooCommerce .first 和 .last 类的行为 */
html body.woocommerce-shop ul.products li.first,
html body.woocommerce-shop ul.products li.last,
html body.post-type-archive-product ul.products li.first,
html body.post-type-archive-product ul.products li.last,
.woocommerce ul.products li.first,
.woocommerce ul.products li.last,
ul.products li.first,
ul.products li.last {
    clear: none !important; /* 关键修复：覆盖 WooCommerce 的 clear: both */
    margin-right: 0 !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Contact Form 7 Styles - Custom Theme Adaptation */
.wpcf7-form label {
    color: var(--white-90);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    background: var(--black-light);
    border: 1px solid var(--white-20);
    color: var(--white-90);
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    font-family: inherit;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.wpcf7-form input[type="submit"] {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.8rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--gold);
    color: var(--black);
}

/* Field validation error tips */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/* Global submission status messages - Force display override */
html body .wpcf7 form .wpcf7-response-output,
html body div.wpcf7-response-output,
html body .wpcf7-mail-sent-ok,
html body .wpcf7-validation-errors,
html body .wpcf7-mail-sent-ng,
html body .wpcf7-spam-blocked,
html body .wpcf7-aborted {
    margin: 2rem 0 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 2px !important;
    font-size: 0.95rem !important;
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 99999 !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Hide empty response output */
html body .wpcf7 form .wpcf7-response-output:empty,
html body div.wpcf7-response-output:empty {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Success message (green) */
.wpcf7 form .wpcf7-response-output.wpcf7-mail-sent-ok,
div.wpcf7-mail-sent-ok {
    background-color: rgba(46, 204, 113, 0.15) !important;
    border-left: 4px solid #2ecc71 !important;
}

/* Validation error / send failure message (red) */
.wpcf7 form .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 form .wpcf7-response-output.wpcf7-mail-sent-ng,
div.wpcf7-validation-errors,
div.wpcf7-mail-sent-ng {
    background-color: rgba(231, 76, 60, 0.15) !important;
    border-left: 4px solid #e74c3c !important;
}

/* Submission loading spinner */
.wpcf7 form .wpcf7-spinner {
    margin-left: 1rem;
    filter: brightness(0) saturate(100%) invert(78%) sepia(31%) saturate(680%) hue-rotate(359deg) brightness(94%) contrast(88%);
}

/* Force hide all default CF7 notifications and processing states */
html body .wpcf7-response-output,
html body .wpcf7-form .wpcf7-response-output,
html body div.wpcf7-mail-sent-ok,
html body div.wpcf7-validation-errors,
html body .wpcf7-submit-processing,
html body .wpcf7-form .ajax-loader,
html body .wpcf7-status-message,
html body .screen-reader-response {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* Force show our custom notification (highest priority) */
html body .custom-cf7-notification,
html body div.custom-cf7-notification {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    z-index: 999999 !important;
}

/* Fixed navigation bar - always stays at top */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: #f3eee8 !important; /* 米白色背景，和现有导航一致 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    overflow: visible !important; /* 允许下划线超出容器 */
    padding-bottom: 5px !important; /* 给下划线留出空间 */
}

/* Add padding to body so content isn't hidden under fixed nav */
body {
    padding-top: 80px !important; /* 导航高度，根据实际调整 */
}

/* Navigation active menu underline */
.nav-links li {
    position: relative !important;
    padding-bottom: 3px !important;
    overflow: visible !important;
}

.nav-links li a {
    transition: all 0.3s ease !important;
}

/* Current active page menu underline - 适配所有可能的WordPress菜单类名 */
.nav-links li.current-menu-item a,
.nav-links li.current_page_item a,
.nav-links li.current_page_ancestor a,
.nav-links li.current_page_parent a,
.nav-links li.active a {
    color: var(--color-gold) !important;
}

.nav-links li.current-menu-item::after,
.nav-links li.current_page_item::after,
.nav-links li.current_page_ancestor::after,
.nav-links li.current_page_parent::after,
.nav-links li.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    background-color: var(--color-gold) !important;
    animation: slideInWidth 0.3s ease forwards !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hover underline effect */
.nav-links li:hover::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    background-color: var(--color-gold) !important;
    opacity: 0.7 !important;
    display: block !important;
    visibility: visible !important;
}

@keyframes slideInWidth {
    from { width: 0; }
    to { width: 100%; }
}
