/* CSS Variables - Ink & Gold Palette */
:root {
    --color-ink: #1a1a1a;
    --color-ink-light: #333333;
    --color-gold: #BE9A60;
    /* Premium Gold */
    --color-gold-hover: #D4B67F;
    --color-red: #8B3A3A;
    /* Cinnabar */
    --color-paper: #F9F7F2;
    /* Rice Paper White */
    --color-paper-dark: #EFECE6;

    --font-serif: 'Noto Serif SC', 'Songti SC', serif;
    --font-calligraphy: 'Ma Shan Zheng', cursive;
    --font-sans: 'Inter', system-ui, sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-serif);
    overflow-x: hidden;
    opacity: 0;
    /* Hidden initially for preloader */
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* Let clicks pass through when fading */
}

.seal-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: sealStamp 1.2s var(--ease-out-expo) forwards;
}

.seal-img {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.seal-text {
    position: absolute;
    color: #fff;
    font-family: var(--font-calligraphy);
    font-size: 32px;
    writing-mode: vertical-rl;
    animation: textFadeIn 1s 0.5s ease forwards;
    opacity: 0;
}

.ink-spread {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--color-paper);
    /* Reveal the site bg */
    z-index: -1;
}

.preloader.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease 1s;
    /* Delay to let seal finish */
}

@keyframes sealStamp {
    0% {
        transform: scale(3);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes textFadeIn {
    to {
        opacity: 1;
    }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    /* Makes text visible on any bg */
    color: #fff;
    /* Inverted by mix-blend-mode becomes dark on light */
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.menu {
    display: flex;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: inherit;
    margin-left: 40px;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    font-family: var(--font-sans);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease-out-expo);
}

.menu a:hover::after {
    width: 100%;
}

/* Inner Page Navigation (Light Background) */
.navbar.inner-nav {
    mix-blend-mode: normal;
    background: rgba(244, 241, 234, 0.95);
    color: var(--color-ink);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.inner-nav .menu a.active,
.navbar.inner-nav .menu a:hover {
    color: #4A7C59;
    /* Jade Green */
}

.navbar.inner-nav .menu a.active::after,
.navbar.inner-nav .menu a:hover::after {
    background: #4A7C59;
}

/* --- Mega Menu (Works) - Mall Style --- */
.menu-item-works {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #fff;
    /* Paper white */
    padding: 30px 40px;
    display: flex;
    gap: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 3px solid var(--color-gold);
    border-radius: 0 0 6px 6px;
    z-index: 200;
}

/* Show on hover */
.menu-item-works:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Triangle indicator (optional, but adds nice detail) */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-gold);
}

.mega-column {
    min-width: 140px;
    text-align: left;
}

.mega-column h4 {
    font-size: 16px;
    color: var(--color-ink);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-family: var(--font-calligraphy);
    white-space: nowrap;
    position: relative;
}

.mega-column h4::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-gold);
}

.mega-column ul {
    list-style: none;
    padding: 0;
}

.mega-column li {
    margin-bottom: 12px;
}

.mega-column a {
    text-decoration: none;
    color: var(--color-ink-light);
    font-size: 14px;
    margin-left: 0 !important;
    /* Override navbar a margin */
    display: flex;
    align-items: center;
    transition: all 0.2s;
    font-family: var(--font-serif);
    opacity: 0.8;
}

.mega-column a:hover {
    color: var(--color-gold);
    opacity: 1;
    padding-left: 5px;
}

.mega-column a::after {
    display: none !important;
    /* Remove nav underline */
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    /* Align text to right */
    align-items: center;
    padding-right: 15%;
    /* Space for vertical text */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.9) sepia(0.1);
    transform: scale(1.1);
    /* Initial zoom for parallax */
    transition: transform 0.1s linear;
    /* Smooth parallax */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Grainy texture helper can be added here */
    background: radial-gradient(circle at center, transparent 0%, rgba(249, 247, 242, 0.4) 100%);
}

.hero-content {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: flex-start;
    /* Because of vertical mode, this aligns top */
    gap: 40px;
    height: 60vh;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1.5s var(--ease-out-expo) 1.5s forwards;
}

.main-title,
.sub-title {
    font-weight: 400;
    letter-spacing: 1em;
    /* Vertical spacing */
    line-height: 1.5;
}

.main-title {
    font-size: 64px;
    color: var(--color-ink-light);
}

.sub-title {
    font-size: 32px;
    color: var(--color-gold);
    margin-top: 60px;
    /* Offset for visual balance */
}

/* Span Animations stagger */
.main-title span,
.sub-title span {
    display: inline-block;
    /* Required for transform */
}

.seal-signature {
    margin-top: auto;
    /* Push to bottom of flex col (which is left in vertical mode) */
    width: 60px;
    opacity: 0.8;
    filter: drop-shadow(0 4px 10px rgba(139, 58, 58, 0.3));
}

.mini-seal {
    width: 100%;
}

/* --- Scroll Hint --- */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.scroll-hint .text {
    font-size: 12px;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    margin-bottom: 5px;
}

.scroll-hint .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-ink), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* --- Philosophy Section (Horizontal Scroll) --- */
.philosophy-section {
    position: relative;
    height: 500vh;
    /* Increased scroll distance */
    background: var(--color-paper);
}

.scroll-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.scroll-content {
    display: flex;
    height: 100%;
    width: 500vw;
    /* 5 Items wide */
    align-items: center;
    will-change: transform;
}

.philo-item {
    flex: 1;
    height: 100%;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    /* For parallax layers */
}

/* Common Text Styles */
.philo-item .vertical-text {
    z-index: 2;
    position: relative;
}

.philo-item .vertical-text h2 {
    font-size: 56px;
    margin-left: 30px;
    writing-mode: vertical-rl;
    letter-spacing: 0.6em;
    font-weight: 400;
}

.philo-item .vertical-text p {
    font-size: 22px;
    color: var(--color-ink-light);
    font-family: var(--font-calligraphy);
    margin-top: 40px;
    writing-mode: vertical-rl;
    opacity: 0.8;
}

/* Stage 1: Origin (Mountain Parallax) */
.stage-origin .bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../app/assets/images/home-bg-ink.jpg');
    background-size: cover;
    opacity: 0.2;
    transform: scale(1.2);
}

/* Stage 2: Material (Floating Gem) */
.stage-material .material-showcase {
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent 70%);
}

.floating-gem {
    width: 180px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    animation: floatGem 6s ease-in-out infinite;
}

/* Stage 3: Craft (Textured) */
.stage-craft {
    background: url('../app/assets/images/bg-xuan.png');
    background-size: cover;
}

.ink-splash {
    position: absolute;
    right: 10%;
    width: 500px;
    opacity: 0.1;
    mix-blend-mode: multiply;
}

/* Stage 4: Soul (Framed) */
.stage-soul .craft-frame {
    width: 400px;
    height: 550px;
    overflow: hidden;
    position: relative;
    box-shadow: 30px 30px 0 rgba(190, 154, 96, 0.15);
    border: 1px solid rgba(190, 154, 96, 0.5);
}

.craft-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

@keyframes floatGem {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- Story Side Bar --- */
.story-side {
    position: relative;
    /* Changed from absolute to relative/static flow */
    margin-left: 80px;
    top: 120px;
    /* Spacing from the poem/text */

    /* Removed absolute positioning coordinates */
    /* top, left, transform are removed to let Flexbox handle alignment */

    width: clamp(360px, 35vw, 600px);
    opacity: 0;
    animation: fadeInRight 1s ease forwards 0.5s;
    /* Delay entrance */
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 10;
}

/* Stage 5 overrides */
.story-side.simple {
    width: auto;
    /* Text length determines width */
    writing-mode: vertical-rl;
    /* Vertical font */
    margin-left: 60px;
    /* Slightly closer for text-to-text balance */
    justify-content: center;
}

.video-card {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--color-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    /* Added depth */
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.video-card:hover::before {
    background: rgba(0, 0, 0, 0.1);
    /* Lighten on hover */
}

.play-icon {
    font-size: 24px;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover .play-icon {
    transform: scale(1.2);
    background: var(--color-gold);
    color: #000;
}

.video-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    font-size: 12px;
    font-family: var(--font-sans);
    letter-spacing: 1px;
    opacity: 0.8;
}

.story-text h3 {
    font-size: 20px;
    color: var(--color-ink);
    margin-bottom: 10px;
    font-weight: 400;
}

.story-text p {
    font-size: 14px;
    color: var(--color-ink-light);
    line-height: 1.8;
    text-align: justify;
}

.story-text.vertical p {
    font-size: 16px;
    margin-left: 10px;
    letter-spacing: 0.2em;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate(30px, -50%);
    }

    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

/* --- Wishlist & Navbar Extras --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 30px;
}

.nav-icon-btn {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.nav-icon-btn:hover {
    transform: scale(1.1);
    color: var(--color-gold);
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--color-red);
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 1px solid #fff;
}

/* Wishlist Heart on Product Card */
.btn-wishlist-card {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s;
    border: none;
    opacity: 0;
    /* Hidden by default, show on hover */
    transform: translateY(-5px);
}

.product-card:hover .btn-wishlist-card {
    opacity: 1;
    transform: translateY(0);
}

.btn-wishlist-card:hover {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-wishlist-card svg {
    fill: none;
    stroke: #333;
    stroke-width: 1.5;
    transition: all 0.2s;
}

.btn-wishlist-card.active svg {
    fill: var(--color-red);
    stroke: var(--color-red);
}

/* For Product Detail Page */
.btn-wishlist-detail {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-wishlist-detail.active svg {
    fill: var(--color-red);
    stroke: var(--color-red);
}

/* Wishlist Page Styles */
.wishlist-empty {
    text-align: center;
    padding: 80px 0;
}

.wishlist-empty h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-family: var(--font-serif);
}

.wishlist-empty p {
    color: #666;
    margin-bottom: 30px;
}

/* Stage 5: End (Seal) */
.stage-end .end-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.stage-end .seal-mark {
    width: 120px;
    opacity: 0.9;
    transform: rotate(-5deg);
}

/* --- Footer Section --- */
.site-footer {
    background: var(--color-ink);
    color: var(--color-paper);
    padding: 100px 5vw 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
}

.footer-brand .logo-large {
    font-size: 80px;
    font-family: var(--font-calligraphy);
    color: var(--color-gold);
}

.footer-brand .slogan {
    font-size: 14px;
    letter-spacing: 4px;
    opacity: 0.6;
}

.footer-qr {
    display: flex;
    gap: 40px;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-box {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    /* Placeholder */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-image: url('../app/assets/images/symbol-taichi.png');
    /* Temporary */
    background-size: cover;
    opacity: 0.5;
}

.qr-item span {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.4;
    font-family: var(--font-sans);
}

/* --- Mall Page Layout --- */
.mall-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: 120px 50px;
    gap: 60px;
}

.mall-sidebar {
    width: 250px;
    flex-shrink: 0;
    padding-top: 40px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 50px;
}

.filter-title {
    font-size: 18px;
    color: var(--color-ink);
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
    font-family: var(--font-calligraphy);
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-list li {
    margin-bottom: 15px;
}

.filter-list a {
    text-decoration: none;
    color: var(--color-ink-light);
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.filter-list a:hover,
.filter-list a.active {
    color: var(--color-ink);
    font-weight: bold;
    padding-left: 10px;
}

.filter-list a.active::before {
    content: '•';
    color: var(--color-gold);
    margin-right: 8px;
}

/* Vertical filter style for "Chinese" feel */
.filter-list.vertical {
    display: flex;
    flex-direction: row;
    /* Actually keep them horizontal for readability, but styled as tags or just standard list */
    flex-wrap: wrap;
    gap: 10px;
}

.filter-list.vertical li {
    width: 45%;
}

.mall-grid {
    flex: 1;
}

.mall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
}

.mall-header h1 {
    font-size: 24px;
    color: var(--color-ink);
    font-weight: 400;
}

.sort-options {
    font-size: 14px;
    color: var(--color-ink-light);
}

.sort-options select {
    border: none;
    background: transparent;
    font-family: inherit;
    color: var(--color-ink);
    cursor: pointer;
    font-weight: bold;
}

.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.page-num {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-serif);
}

.page-num.active {
    border-color: var(--color-ink);
    background: var(--color-ink);
    color: #fff;
}

.page-next {
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

/* --- Mega Menu (Works Dropdown) --- */
/* Parent container in nav needs position:relative */
.menu-item-works {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 600px;
    /* Wide dropdown */
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    padding: 30px;
    display: flex;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 2px solid var(--color-gold);
    cursor: default;
}

.menu-item-works:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-column h4 {
    font-size: 14px;
    color: var(--color-gold);
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: bold;
}

.mega-column ul {
    list-style: none;
    padding: 0;
}

.mega-column li {
    margin-bottom: 10px;
}

.mega-column a {
    text-decoration: none;
    color: var(--color-ink);
    font-size: 15px;
    transition: padding-left 0.2s;
    display: block;
}

.mega-column a:hover {
    padding-left: 5px;
    color: var(--color-gold);
}

.mega-featured {
    flex: 1;
    background: var(--color-paper);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mega-featured img {
    width: 80px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.mega-featured:hover img {
    transform: rotate(15deg);
}

.hero-visual {
    flex: 1;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img {
    width: 60%;
    max-width: 500px;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s;
}

.hero-img:hover {
    transform: scale(1.05);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
}

.product-header {
    display: flex;
    flex-direction: row-reverse;
    /* For vertical text layout right-to-left feel */
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
    height: 400px;
    /* specific height for vertical text flow */
}

.product-header .series {
    writing-mode: vertical-rl;
    font-size: 14px;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    border-left: 1px solid var(--color-gold);
    padding-left: 10px;
}

.product-header .title {
    writing-mode: vertical-rl;
    font-size: 64px;
    color: var(--color-ink);
    letter-spacing: 0.2em;
    font-weight: 400;
}

.product-header .poem {
    writing-mode: vertical-rl;
    font-family: var(--font-calligraphy);
    font-size: 20px;
    color: var(--color-ink-light);
    line-height: 2;
    margin-right: 20px;
}

.product-meta {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 40px;
}

.price-block {
    display: flex;
    flex-direction: column;
}

.price-block .label {
    font-size: 12px;
    color: var(--color-ink-light);
    margin-bottom: 5px;
}

.price-block .price {
    font-size: 28px;
    font-family: var(--font-serif);
    color: var(--color-ink);
}

.btn-primary {
    background: var(--color-ink);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--color-gold);
}

/* Story Section */
.product-story {
    padding: 100px 5vw;
    background: #fff;
}

.story-block {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.story-block.reverse {
    flex-direction: row-reverse;
}

.block-text {
    flex: 1;
}

.block-text h3 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--color-ink);
    font-weight: 400;
}

.block-text p {
    font-size: 16px;
    line-height: 2;
    color: var(--color-ink-light);
}

.block-visual {
    flex: 1.2;
}

/* Specs Section */
.product-specs {
    background: var(--color-paper);
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.specs-card {
    border: 1px solid var(--color-ink-light);
    padding: 60px;
    width: 400px;
    margin-bottom: 60px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.spec-row .label {
    color: var(--color-ink-light);
}

.spec-row .value {
    color: var(--color-ink);
    font-family: var(--font-serif);
}

.seal-mark-large img {
    width: 150px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .product-hero {
        flex-direction: column;
        height: auto;
    }

    .hero-content {
        padding: 60px 20px;
    }

    .product-header {
        height: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-header .title,
    .product-header .poem,
    .product-header .series {
        writing-mode: horizontal-tb;
        border: none;
        margin: 10px 0;
    }

    .story-block,
    .story-block.reverse {
        flex-direction: column;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header .eng {
    display: block;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 20px;
    font-family: var(--font-sans);
}

.section-header .chn {
    font-size: 48px;
    font-weight: 400;
    color: var(--color-ink);
    margin-bottom: 20px;
}

.section-header .desc {
    font-family: var(--font-calligraphy);
    color: var(--color-ink-light);
    font-size: 18px;
    opacity: 0.6;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    /* Square images */
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}

.product-card:hover .img-hover {
    opacity: 1;
}

.product-card:hover .img-main {
    opacity: 0;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
    /* Subtle zoom for both */
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .card-overlay {
    opacity: 1;
}

.btn-view {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 30px;
    font-size: 14px;
    letter-spacing: 2px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.product-card:hover .btn-view {
    transform: translateY(0);
}

.card-info {
    text-align: center;
}

.card-info h4 {
    font-size: 18px;
    color: var(--color-ink);
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: 1px;
}

.card-info .sub {
    font-size: 12px;
    color: var(--color-ink-light);
    opacity: 0.6;
    font-family: var(--font-sans);
}

@media (max-width: 1024px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }
}

.stage-end .small {
    font-size: 16px;
    opacity: 0.6;
    letter-spacing: 0.5em;
    writing-mode: vertical-rl;
}

@keyframes floatGem {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.craft-frame .caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    writing-mode: vertical-rl;
    color: #fff;
    font-size: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5em;
}

@keyframes pulseInk {
    from {
        transform: scale(1);
        opacity: 0.7;
    }

    to {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* --- Collection Preview --- */
.collection-intro {
    padding: 100px 60px;
    min-height: 50vh;
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

.section-header .eng {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.section-header .chn {
    font-size: 36px;
    font-weight: 400;
}

/* --- Cart Drawer --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 10002;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 20px;
    font-family: var(--font-serif);
    font-weight: 400;
}

.btn-close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: #666;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Empty State Recommendation */
.cart-empty-state {
    text-align: center;
    padding-top: 40px;
}

.cart-empty-state h4 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
}

.cart-empty-state p {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Mini Product Cards for Recs */
.cart-rec-title {
    text-align: left;
    font-family: var(--font-serif);
    font-size: 18px;
    margin-bottom: 20px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.cart-rec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.mini-card {
    border: 1px solid #f9f9f9;
    transition: all 0.2s;
}

.mini-card:hover {
    border-color: #eee;
}

.mini-card-img {
    height: 150px;
    background: #fdfbf5;
    position: relative;
    overflow: hidden;
}

.mini-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-card-info {
    padding: 10px;
    text-align: center;
}

.mini-card-title {
    font-size: 13px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-card-price {
    font-size: 12px;
    color: var(--color-gold);
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* --- Generic Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.modal-overlay.open .custom-modal {
    transform: translateY(0);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-family: var(--font-serif);
    margin: 0;
    font-weight: 400;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 60px 30px;
    text-align: center;
    color: #666;
}

.modal-icon {
    font-size: 48px;
    color: var(--color-gold);
    /* Or themed color */
    margin-bottom: 20px;
    display: block;
}

.modal-empty-text {
    font-size: 16px;
    color: var(--color-ink);
    margin-bottom: 10px;
}