/* ============================================
   IRINA KRECHETOVA — GILDED IMPRESSIONISM
   Gallery & Shop
   ============================================ */

:root {
    /* Palette */
    --turquoise:    #7EC8C8;
    --turquoise-lt: #B8E0D2;
    --turquoise-dk: #5EA8A8;
    --gold:         #C9A96E;
    --gold-lt:      #D4A574;
    --gold-dk:      #A8884E;
    --cream:        #F5F0E8;
    --white:        #FAFAF8;
    --rose:         #E8C4C4;
    --rose-dk:      #D4A0A0;
    --gray-lt:      #E8E4E0;
    --gray:         #B0A89E;
    --gray-dk:      #6E665E;
    --charcoal:     #3A352E;
    --black:        #1E1B16;

    /* Frame gold */
    --frame-outer:  #8B7332;
    --frame-mid:    #C9A96E;
    --frame-inner:  #E8D5A8;
    --frame-shadow: rgba(30, 27, 22, 0.3);

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
    --font-body:    'Raleway', 'Noto Serif SC', sans-serif;

    /* Spacing */
    --header-h: 72px;
    --section-pad: clamp(60px, 8vw, 120px);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--charcoal);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }
input, textarea { font-family: inherit; }

/* Grain overlay */
.grain-overlay {
    position: fixed; inset: 0; z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 36px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gold);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--gold-dk);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.35);
}
.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold-dk);
    background: transparent;
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-1px);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header.scrolled {
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--gray-lt);
}
.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 48px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.logo-mark {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gold-dk);
    letter-spacing: 0.05em;
}
.logo-text { display: flex; flex-direction: column; }
.logo-text > span:first-child {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.2;
}
.logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    line-height: 1.3;
}

/* Nav */
.main-nav { display: flex; gap: 32px; }
.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--gold-dk); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 16px; }

/* Lang switcher */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: all 0.3s;
    color: var(--gray);
}
.lang-btn.active {
    background: var(--gold);
    color: var(--white);
}
.lang-btn:hover:not(.active) { color: var(--charcoal); }

/* Icon buttons */
.icon-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    position: relative;
    color: var(--charcoal);
}
.icon-btn:hover { background: var(--cream); }
.cart-count {
    position: absolute; top: 2px; right: 2px;
    width: 18px; height: 18px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0);
    transition: all 0.3s var(--ease-out);
}
.cart-count.visible { opacity: 1; transform: scale(1); }

/* Burger */
.burger-btn {
    width: 40px; height: 40px;
    display: none;
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px;
}
.burger-btn span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--charcoal);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}
.burger-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav-overlay {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s var(--ease-out);
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}
.mobile-nav-link:hover { color: var(--gold); }

/* ============================================
   HERO
   ============================================ */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    opacity: 0.2;
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        var(--white) 0%,
        transparent 30%,
        transparent 70%,
        var(--white) 100%
    );
}
.hero-painting { width: 100%; height: 100%; }

/* Impressionist gradient placeholders */
.painting-placeholder {
    background:
        radial-gradient(ellipse at 20% 50%, var(--g1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, var(--g2) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, var(--g3) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 60%, var(--g4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 30%, var(--g5) 0%, transparent 60%),
        var(--cream);
    background-size: 100% 100%;
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 0 20px;
    animation: heroFadeIn 1.2s var(--ease-out) both;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-dk);
    margin-bottom: 20px;
    animation: heroFadeIn 1.2s var(--ease-out) 0.2s both;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--charcoal);
    margin-bottom: 20px;
    animation: heroFadeIn 1.2s var(--ease-out) 0.3s both;
}
.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--gray-dk);
    margin-bottom: 40px;
    animation: heroFadeIn 1.2s var(--ease-out) 0.5s both;
}
.hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    animation: heroFadeIn 1.2s var(--ease-out) 0.7s both;
}
.hero-scroll-hint {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    animation: scrollBounce 2s ease-in-out infinite 2s;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-pad) clamp(20px, 3vw, 48px);
    max-width: 1440px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--charcoal);
    margin-bottom: 12px;
}
.section-desc {
    font-size: 0.95rem;
    color: var(--gray-dk);
    max-width: 500px;
    margin: 0 auto 12px;
    font-weight: 300;
}
.section-line {
    width: 60px; height: 1px;
    background: var(--gold);
    margin: 16px auto 0;
}
.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* ============================================
   FEATURED GRID
   ============================================ */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: cardReveal 0.6s var(--ease-out) forwards;
}
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.5s; }

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

.card-image-wrap {
    position: relative;
    overflow: hidden;
    background: var(--cream);
    aspect-ratio: 1;
    cursor: pointer;
}
/* Paintings use real proportions */
.product-card.is-painting .card-image-wrap {
    aspect-ratio: var(--card-ratio, 1);
}
.card-image-wrap img,
.card-image-wrap .painting-placeholder {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
    cursor: zoom-in;
}
.product-card:not(.is-painting):hover .card-image-wrap img,
.product-card:not(.is-painting):hover .card-image-wrap .painting-placeholder {
    transform: scale(1.03);
}

/* ===== GOLDEN FRAME HOVER EFFECT ===== */
.card-frame-effect {
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}
.product-card.is-painting:hover .card-frame-effect {
    opacity: 1;
}

/* Outer frame border */
.card-frame-effect::before {
    content: '';
    position: absolute; inset: 8px;
    border: 6px solid var(--frame-outer);
    box-shadow:
        inset 0 0 0 2px var(--frame-inner),
        inset 0 0 8px var(--frame-shadow),
        0 0 0 1px var(--frame-shadow),
        0 4px 20px var(--frame-shadow);
    transition: inset 0.5s var(--ease-out);
}
.product-card.is-painting:hover .card-frame-effect::before {
    inset: 12px;
}

/* Inner gold mat */
.card-frame-effect::after {
    content: '';
    position: absolute; inset: 18px;
    border: 2px solid var(--frame-mid);
    box-shadow: inset 0 0 0 1px var(--frame-inner);
    transition: inset 0.5s var(--ease-out);
}
.product-card.is-painting:hover .card-frame-effect::after {
    inset: 22px;
}

/* Corner ornaments */
.frame-corner {
    position: absolute;
    width: 20px; height: 20px;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out) 0.1s;
}
.product-card.is-painting:hover .frame-corner { opacity: 1; }
.frame-corner::before, .frame-corner::after {
    content: '';
    position: absolute;
    background: var(--gold);
}
.frame-corner--tl { top: 14px; left: 14px; }
.frame-corner--tl::before { top: 0; left: 0; width: 12px; height: 1px; }
.frame-corner--tl::after  { top: 0; left: 0; width: 1px; height: 12px; }
.frame-corner--tr { top: 14px; right: 14px; }
.frame-corner--tr::before { top: 0; right: 0; width: 12px; height: 1px; }
.frame-corner--tr::after  { top: 0; right: 0; width: 1px; height: 12px; }
.frame-corner--bl { bottom: 14px; left: 14px; }
.frame-corner--bl::before { bottom: 0; left: 0; width: 12px; height: 1px; }
.frame-corner--bl::after  { bottom: 0; left: 0; width: 1px; height: 12px; }
.frame-corner--br { bottom: 14px; right: 14px; }
.frame-corner--br::before { bottom: 0; right: 0; width: 12px; height: 1px; }
.frame-corner--br::after  { bottom: 0; right: 0; width: 1px; height: 12px; }

/* Sold badge */
.card-sold-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--rose-dk);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 1px;
    z-index: 3;
}

/* Card info */
.card-info {
    padding: 16px 4px 8px;
}
.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}
.card-size {
    font-size: 0.78rem;
    color: var(--gray);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--charcoal);
}
.card-btn {
    padding: 8px 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--gold);
    color: var(--gold-dk);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}
.card-btn:hover {
    background: var(--gold);
    color: var(--white);
}
.card-btn.sold-btn {
    border-color: var(--rose-dk);
    color: var(--rose-dk);
}
.card-btn.sold-btn:hover {
    background: var(--rose-dk);
    color: var(--white);
}

/* ============================================
   LAMPWORK SHOWCASE (Home)
   ============================================ */
.lampwork-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ============================================
   CATALOG PAGE
   ============================================ */
.page { display: none; }
.page.active { display: block; }

.catalog-hero {
    text-align: center;
    padding: calc(var(--header-h) + 60px) 20px 40px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
.catalog-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}
.catalog-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    letter-spacing: 0.12em;
}
.catalog-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px clamp(20px, 3vw, 48px) var(--section-pad);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
}
.catalog-filters { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.filter-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-btn {
    text-align: left;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 400;
    border-radius: 3px;
    transition: all 0.3s;
    color: var(--gray-dk);
}
.filter-btn:hover { color: var(--charcoal); background: var(--cream); }
.filter-btn.active {
    color: var(--gold-dk);
    background: rgba(201, 169, 110, 0.1);
    font-weight: 500;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    align-content: start;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-about {
    padding-top: calc(var(--header-h) + 40px);
}
.about-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px clamp(20px, 3vw, 48px) var(--section-pad);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}
.about-image {
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
}
.about-portrait { width: 100%; height: 100%; }
.about-content .section-label { display: block; margin-bottom: 8px; }
.about-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 24px;
}
.about-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-dk);
    margin-bottom: 16px;
}
.about-stats {
    display: flex; gap: 40px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-lt);
}
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--gold);
}
.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
}

/* ============================================
   CONTACTS PAGE
   ============================================ */
.page-contacts { padding-top: calc(var(--header-h) + 40px); }
.contacts-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px clamp(20px, 3vw, 48px) 60px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}
.contacts-info .section-label { display: block; margin-bottom: 8px; }
.contacts-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 32px;
}
.contact-item {
    display: flex; align-items: flex-start; gap: 16px;
    margin-bottom: 24px;
}
.contact-icon { color: var(--gold); margin-top: 2px; }
.contact-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); display: block; }
.contact-value { font-size: 0.95rem; color: var(--charcoal); }
.contact-value:hover { color: var(--gold); }
.contact-socials { display: flex; gap: 16px; margin-top: 32px; }
.social-link {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--gray-lt);
    border-radius: 50%;
    color: var(--gray-dk);
    transition: all 0.3s;
}
.social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* Contact form */
.form-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 24px;
}
.form-group {
    position: relative;
    margin-bottom: 20px;
}
.form-input {
    width: 100%;
    padding: 14px 16px 6px;
    font-size: 0.9rem;
    border: 1px solid var(--gray-lt);
    border-radius: 3px;
    background: var(--white);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    color: var(--charcoal);
}
.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}
.form-label {
    position: absolute;
    top: 50%; left: 16px;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--gray);
    pointer-events: none;
    transition: all 0.2s;
}
.form-textarea ~ .form-label {
    top: 16px;
    transform: none;
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: 6px;
    transform: none;
    font-size: 0.65rem;
    color: var(--gold);
}
.form-textarea { resize: vertical; min-height: 100px; padding-top: 20px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Delivery section */
.delivery-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px clamp(20px, 3vw, 48px) var(--section-pad);
}
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}
.delivery-card {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid var(--gray-lt);
    border-radius: 4px;
    transition: box-shadow 0.3s, transform 0.3s;
}
.delivery-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}
.delivery-icon {
    color: var(--gold);
    margin-bottom: 16px;
}
.delivery-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.delivery-card p {
    font-size: 0.85rem;
    color: var(--gray-dk);
    line-height: 1.6;
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(30, 27, 22, 0.4);
    opacity: 0; visibility: hidden;
    transition: all 0.4s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(420px, 90vw);
    z-index: 201;
    background: var(--white);
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    display: flex; flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--gray-lt);
}
.cart-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
}
.cart-close { color: var(--gray); transition: color 0.3s; }
.cart-close:hover { color: var(--charcoal); }

.cart-items {
    flex: 1; overflow-y: auto;
    padding: 20px 28px;
}
.cart-empty {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    padding: 60px 0;
}
.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-lt);
    animation: cartItemIn 0.3s var(--ease-out);
}
@keyframes cartItemIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.cart-item-img {
    width: 70px; height: 70px;
    border-radius: 3px;
    overflow: hidden;
}
.cart-item-img img,
.cart-item-img .painting-placeholder {
    width: 100%; height: 100%;
    object-fit: cover;
}
.cart-item-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2px;
}
.cart-item-size {
    font-size: 0.72rem;
    color: var(--gray);
}
.cart-item-price {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}
.cart-item-remove {
    font-size: 0.7rem;
    color: var(--rose-dk);
    cursor: pointer;
    margin-top: 4px;
    transition: color 0.3s;
}
.cart-item-remove:hover { color: var(--charcoal); }

.cart-footer {
    padding: 24px 28px;
    border-top: 1px solid var(--gray-lt);
    background: var(--cream);
}
.cart-total {
    display: flex; justify-content: space-between;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.cart-delivery-note {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 16px;
}
.cart-checkout-btn { width: 100%; }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(30, 27, 22, 0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
    padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
    background: var(--white);
    border-radius: 6px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-out);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
    position: absolute; top: 16px; right: 16px;
    color: var(--gray); transition: color 0.3s;
}
.modal-close:hover { color: var(--charcoal); }

.modal h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 24px;
}
.checkout-modal { max-width: 560px; }
.checkout-summary {
    padding: 16px;
    background: var(--cream);
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

/* Auth */
.auth-tabs { display: flex; gap: 24px; margin-bottom: 28px; }
.auth-tab {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--gray);
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.auth-tab.active {
    color: var(--charcoal);
    border-bottom-color: var(--gold);
}

/* Copy modal */
.copy-desc {
    font-size: 0.9rem;
    color: var(--gray-dk);
    margin-bottom: 12px;
    line-height: 1.6;
}
.copy-painting-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-lt);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    opacity: 1; visibility: visible;
}
.lightbox-img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    cursor: default;
}
.lightbox-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none;
    color: #fff; cursor: pointer;
    opacity: 0.7; transition: opacity 0.2s;
    z-index: 10001;
}
.lightbox-close:hover { opacity: 1; }

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--charcoal);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 0.85rem;
    z-index: 400;
    transition: transform 0.4s var(--ease-out);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   CLICKABLE SUBTITLE
   ============================================ */
.logo-subtitle-link {
    cursor: pointer;
    transition: color 0.3s;
}
.logo-subtitle-link:hover {
    color: var(--gold-dk);
}

/* ============================================
   BLOG
   ============================================ */
.blog-section {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--section-pad) clamp(20px, 3vw, 48px);
}
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.blog-post {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-lt);
}
.blog-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.blog-post-date {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.blog-post-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.3;
}
.blog-post-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-dk);
    margin-bottom: 16px;
}
.blog-post-images {
    display: grid;
    gap: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.blog-images-1 {
    grid-template-columns: 1fr;
}
.blog-images-2 {
    grid-template-columns: 1fr 1fr;
}
.blog-images-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.blog-post-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out);
}
.blog-post-images img:hover {
    transform: scale(1.02);
}

@media (max-width: 480px) {
    .blog-images-3 {
        grid-template-columns: 1fr;
    }
    .blog-images-2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   INTERIOR HOVER ON CARDS
   ============================================ */
.card-img-interior {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    z-index: 2;
}
.product-card:hover .card-img-interior {
    opacity: 1;
}

/* Multi-image indicator */
.card-multi-indicator {
    position: absolute;
    bottom: 10px; right: 10px;
    display: flex; align-items: center; gap: 4px;
    background: rgba(30, 27, 22, 0.65);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 5;
    pointer-events: none;
}
.card-multi-indicator svg {
    opacity: 0.8;
}

/* Clickable card title */
.card-title-link {
    cursor: pointer;
    transition: color 0.3s;
}
.card-title-link:hover {
    color: var(--gold-dk);
}

/* ============================================
   DETAIL PAGE
   ============================================ */
.page-detail {
    padding-top: calc(var(--header-h) + 20px);
}
.detail-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px clamp(20px, 3vw, 48px) var(--section-pad);
}
.detail-back {
    margin-bottom: 32px;
}
.btn-back {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-dk);
    transition: color 0.3s;
    letter-spacing: 0.03em;
}
.btn-back:hover {
    color: var(--gold-dk);
}
.detail-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}

/* Gallery */
.detail-gallery {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}
.detail-main-image {
    background: var(--cream);
    border-radius: 4px;
    overflow: hidden;
    cursor: zoom-in;
    margin-bottom: 16px;
}
.detail-main-image img {
    width: 100%;
    display: block;
}
.detail-main-image .detail-placeholder {
    width: 100%;
    aspect-ratio: 1;
}
.detail-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.detail-thumb {
    width: 72px; height: 72px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, opacity 0.3s;
    position: relative;
    opacity: 0.7;
}
.detail-thumb:hover {
    opacity: 1;
}
.detail-thumb.active {
    border-color: var(--gold);
    opacity: 1;
}
.detail-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.thumb-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(30, 27, 22, 0.7);
    color: #fff;
    font-size: 0.55rem;
    text-align: center;
    padding: 2px 0;
    letter-spacing: 0.04em;
}

/* Detail info */
.detail-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    line-height: 1.2;
}
.detail-meta {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-lt);
}
.detail-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.detail-meta-row:last-child {
    border-bottom: none;
}
.detail-meta-label {
    color: var(--gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.detail-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 20px;
}
.detail-sold-badge {
    display: inline-block;
    background: var(--rose-dk);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 2px;
    margin-bottom: 16px;
}
.detail-action-btn {
    width: 100%;
    margin-top: 4px;
}

/* Story block */
.detail-story {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-lt);
    max-width: 720px;
}
.detail-story-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    color: var(--charcoal);
}
.detail-story-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-dk);
    margin-bottom: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--cream);
    border-top: 1px solid var(--gray-lt);
}
.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px clamp(20px, 3vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-brand {
    display: flex; align-items: center; gap: 16px;
}
.footer-brand p {
    font-size: 0.8rem;
    color: var(--gray);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    font-size: 0.8rem;
    color: var(--gray-dk);
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-socials {
    display: flex; gap: 12px;
}
.footer-socials a {
    color: var(--gray);
    transition: color 0.3s;
}
.footer-socials a:hover { color: var(--gold); }

/* ============================================
   LAMPWORK PREVIEW
   ============================================ */
.lampwork-preview-section {
    background: var(--cream);
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}
.lampwork-preview-section .section-header,
.lampwork-preview-section .section-footer,
.lampwork-preview-section .lampwork-showcase {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 3vw, 48px);
    padding-right: clamp(20px, 3vw, 48px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .catalog-filters {
        position: static;
    }
    .filter-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .filter-btn {
        padding: 6px 14px;
        border: 1px solid var(--gray-lt);
        border-radius: 20px;
        font-size: 0.78rem;
    }
    .filter-btn.active {
        border-color: var(--gold);
    }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }

    .main-nav { display: none; }
    .burger-btn { display: flex; }

    .detail-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .detail-gallery {
        position: static;
    }
    .about-layout,
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-image { max-height: 400px; }

    .delivery-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hero-actions { flex-direction: column; align-items: center; }
    .featured-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .catalog-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .card-title { font-size: 0.95rem; }
    .card-price { font-size: 1rem; }
    .card-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .card-btn { width: 100%; text-align: center; }
    .logo-text > span:first-child { font-size: 1rem; }
    .lang-switcher { gap: 2px; }
    .lang-btn { padding: 3px 6px; font-size: 0.65rem; }
}

/* ============================================
   CHINESE TYPOGRAPHY ADJUSTMENTS
   ============================================ */
[data-lang="cn"] .hero-title,
[data-lang="cn"] .section-title,
[data-lang="cn"] .catalog-title,
[data-lang="cn"] .about-title,
[data-lang="cn"] .contacts-title {
    font-family: 'Noto Serif SC', serif;
}
[data-lang="cn"] .hero-subtitle,
[data-lang="cn"] .catalog-subtitle {
    letter-spacing: 0.3em;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gray-lt); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }
