/* ==========================================================================
   Yun Shan Tea — Main Stylesheet
   Premium, elegant, mobile-first. Pure display, no e-commerce chrome.
   ========================================================================== */

:root {
    --bg: #f7f4ef;
    --surface: #ffffff;
    --ink: #2a2a28;
    --ink-soft: #6f6a60;
    --line: #e6dfd3;
    --green: #34433a;
    --green-dark: #232e27;
    --gold: #b0894a;
    --gold-soft: #c9a86a;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(40, 35, 25, 0.07);
    --shadow-hover: 0 20px 50px rgba(40, 35, 25, 0.15);
    --serif: Georgia, 'Times New Roman', 'Songti SC', 'STSong', 'SimSun', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ------------------------------------------------------------- typography */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--green-dark); }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
em { font-style: italic; color: var(--gold); }

.section-title { text-align: center; }
.section-subtitle { text-align: center; color: var(--ink-soft); font-size: 1.05rem; margin-top: .4rem; }

.section-divider {
    width: 54px; height: 2px; background: var(--gold);
    margin: 1.2rem auto;
}
.section-divider.left { margin-left: 0; }

/* ---------------------------------------------------------------- header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247, 244, 239, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: var(--serif);
    font-size: 1.6rem; font-weight: 700;
    color: var(--green-dark); letter-spacing: .02em;
}
.logo span { color: var(--gold); font-weight: 500; }

.nav-menu { display: flex; gap: 2.2rem; }
.nav-menu a {
    font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-soft); position: relative; padding: .3rem 0;
    transition: color .25s;
}
.nav-menu a::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 1.5px; background: var(--gold);
    transition: width .3s;
}
.nav-menu a:hover { color: var(--green-dark); }
.nav-menu a:hover::after { width: 100%; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; z-index: 101; position: relative; }
.mobile-menu-toggle span {
    width: 26px; height: 2px; background: var(--green-dark);
    transition: .3s;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 98; opacity: 0; transition: opacity .3s;
}
.nav-backdrop.show { display: block; opacity: 1; }

/* ------------------------------------------------------------------- hero */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background-color: #2d3a2e;
    background-image:
        linear-gradient(rgba(20, 30, 24, 0.55), rgba(20, 30, 24, 0.7)),
        url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}
.hero-content { max-width: 760px; padding: 6rem 1.5rem; }
.hero-content h1 { color: #fff; letter-spacing: .01em; }
.hero-content h1 em { color: var(--gold-soft); }
.hero-content p {
    color: rgba(255,255,255,.85);
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    margin-top: 1.2rem; font-weight: 300;
}
.hero-btn {
    display: inline-block; margin-top: 2rem;
    padding: .95rem 2.6rem;
    border: 1.5px solid rgba(255,255,255,.6);
    color: #fff; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
    transition: all .3s;
}
.hero-btn:hover { background: var(--gold); border-color: var(--gold); }
.scroll-indicator {
    position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.6); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
    animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------------------------------------------------------------- about */
.about-section { padding: 6rem 1.5rem; background: var(--surface); }
.about-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.about-inner h2 { text-align: center; }
.about-inner p { color: var(--ink-soft); margin-top: 1.4rem; font-size: 1.08rem; }
.about-inner p:first-of-type { margin-top: 1.8rem; }

.about-features {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; margin-top: 3rem;
}
.feature-item { text-align: center; }
.feature-icon {
    font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--gold);
    margin-bottom: .4rem;
}
.feature-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ----------------------------------------------------------- products */
.products-section { padding: 6rem 1.5rem; background: var(--bg); }
.product-grid {
    max-width: 1240px; margin: 3rem auto 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--surface); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.product-card-image {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-dark);
}
.product-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-card-badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: rgba(35, 46, 39, 0.85); color: #fff;
    padding: .35rem .85rem; border-radius: 30px;
    font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.price-badge {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: var(--gold); color: #fff;
    font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
    padding: .3rem .8rem; border-radius: 30px;
}

/* image placeholder when no photo uploaded */
.image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--green-dark), #3d4f44);
    color: rgba(255,255,255,.35); font-family: var(--serif); font-size: 2.6rem;
}

.product-card-info { padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.product-card-category { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.product-card-name { margin-top: .5rem; font-size: 1.35rem; }
.product-card-desc {
    color: var(--ink-soft); font-size: .92rem; margin-top: .6rem; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-price {
    margin-top: 1rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--green-dark);
}
.product-card-link {
    display: inline-block; margin-top: 1rem;
    font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
    border-bottom: 1px solid transparent; transition: border-color .3s;
}
.product-card:hover .product-card-link { border-color: var(--gold); }

/* ------------------------------------------------------ product detail */
.product-breadcrumb {
    max-width: 1240px; margin: 0 auto; padding: 1.6rem 1.5rem .4rem;
    font-size: .85rem; color: var(--ink-soft);
}
.product-breadcrumb a:hover { color: var(--gold); }
.product-breadcrumb span { margin: 0 .5rem; color: var(--line); }

.product-detail { background: var(--surface); padding: 2rem 1.5rem 4rem; }
.product-detail-main {
    max-width: 1240px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start;
}

/* gallery */
.product-gallery { position: sticky; top: 90px; }
.gallery-carousel {
    position: relative; overflow: hidden; border-radius: var(--radius);
    aspect-ratio: 1 / 1; background: var(--green-dark);
}
.gallery-track {
    display: flex; height: 100%;
    transition: transform .45s ease;
}
.gallery-slide { min-width: 100%; height: 100%; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,.85); color: var(--green-dark);
    font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
    transition: background .25s; z-index: 3;
}
.gallery-arrow:hover { background: #fff; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-dots { display: flex; gap: 8px; justify-content: center; margin-top: 1rem; }
.gallery-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: .25s; }
.gallery-dot.active { background: var(--gold); width: 24px; border-radius: 5px; }
.gallery-counter {
    text-align: center; margin-top: .5rem; color: var(--ink-soft); font-size: .85rem;
}
.gallery-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--green-dark), #3d4f44);
    color: rgba(255,255,255,.3); font-family: var(--serif); font-size: 3rem;
}

/* info */
.product-info-category { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.product-info h1 { margin: .6rem 0 .8rem; }
.product-info-tagline { color: var(--ink-soft); font-size: 1.15rem; font-style: italic; }
.product-info-description { color: var(--ink); margin-top: 1.4rem; font-size: 1.02rem; }

.product-specs { margin-top: 2.2rem; }
.product-specs h3 { font-size: 1.3rem; margin-bottom: .8rem; }
.spec-row {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.spec-label { color: var(--ink-soft); font-size: .92rem; flex-shrink: 0; }
.spec-value { text-align: right; font-size: .95rem; }

.product-price-display {
    margin-top: 2rem; padding: 1.2rem 1.4rem;
    background: var(--bg); border-radius: var(--radius);
    font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--green-dark);
}
.product-price-display .price-note {
    display: block; font-family: var(--sans); font-size: .75rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 300; margin-bottom: .2rem;
}

.product-buttons { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.buy-button, .live-chat-button {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .85rem 1.5rem; border-radius: 8px;
    font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
    transition: all .3s;
}
.live-chat-button {
    background: transparent; color: var(--green-dark);
    border: 1px solid var(--line);
}
.live-chat-button:hover { border-color: var(--green-dark); background: var(--bg); }
.live-chat-button svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* fullwidth image */
.fullwidth-image { width: 100%; overflow: hidden; }
.fullwidth-image img { width: 100%; height: 60vh; object-fit: cover; }
.fullwidth-image .fullwidth-placeholder {
    width: 100%; height: 40vh;
    background: linear-gradient(135deg, var(--green-dark), #3d4f44);
}

/* story */
.product-story { padding: 5rem 1.5rem; background: var(--bg); }
.product-story h2 { text-align: center; }
.story-block { max-width: 760px; margin: 2.5rem auto 0; }
.story-block h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.story-block p { color: var(--ink-soft); margin-top: .9rem; font-size: 1.05rem; }

/* brewing */
.brewing-guide { background: var(--green-dark); color: #fff; padding: 5rem 1.5rem; }
.brewing-inner { max-width: 1100px; margin: 0 auto; }
.brewing-guide h2 { color: #fff; text-align: center; }
.brewing-guide .section-divider { background: var(--gold-soft); }
.brewing-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.5rem; }
.brewing-step { text-align: center; }
.brewing-step-icon {
    font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold-soft);
    margin-bottom: .6rem;
}
.brewing-step h4 { color: #fff; font-size: 1.2rem; margin-bottom: .4rem; }
.brewing-step p { color: rgba(255,255,255,.7); font-size: .92rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.8); padding: 4rem 1.5rem 1.5rem; }
.footer-inner {
    max-width: 1240px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand h3 { color: #fff; margin-bottom: .8rem; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.6); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { font-size: .9rem; color: rgba(255,255,255,.65); transition: color .25s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
    max-width: 1240px; margin: 2.5rem auto 0; padding-top: 1.6rem;
    border-top: 1px solid rgba(255,255,255,.12); text-align: center;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: .3rem; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 860px) {
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--surface);
        padding: 0; margin: 0;
        max-height: 0; overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,.12);
        transition: max-height .35s ease;
        z-index: 99;
    }
    .nav-menu.open { max-height: 320px; }
    .nav-menu li { width: 100%; border-bottom: 1px solid var(--line); }
    .nav-menu li:last-child { border-bottom: none; }
    .nav-menu a {
        display: block; padding: 1.2rem 1.5rem;
        font-size: 1.05rem; text-transform: none; letter-spacing: .02em;
        color: var(--ink);
    }
    .nav-menu a::after { display: none; }
    .nav-menu a:active { background: var(--bg); color: var(--green-dark); }
    .mobile-menu-toggle { display: flex; }

    .product-detail-main { grid-template-columns: 1fr; gap: 2rem; }
    .product-gallery { position: static; }

    .about-features { grid-template-columns: repeat(2, 1fr); }
    .brewing-steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-arrow { width: 42px; height: 42px; }
    .product-buttons { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero { min-height: 70vh; }
    .about-section, .products-section, .product-story, .brewing-guide { padding: 4rem 1.2rem; }
    .product-detail { padding: 1rem 1.2rem 3rem; }
    .gallery-arrow { width: 38px; height: 38px; font-size: .95rem; }
    .product-specs .spec-row { flex-direction: column; gap: .2rem; }
    .product-specs .spec-value { text-align: left; }
}
