/* Local fonts (downloaded from Google Fonts) */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
}

:root {
    --color-primary: #3D2817;
    --color-secondary: #6B4F3A;
    --color-accent: #8B6914;
    --color-cream: #F7F2EA;
    --color-bg: #FBF8F3;
    --color-text: #2C1810;
    --color-text-light: #8B7D6B;
    --color-border: #E5DDD0;
    --color-white: #FFFFFF;
    --color-tea-green: #5C6B4F;
    --font-serif: 'Cormorant Garamond', 'Noto Serif SC', serif;
    --font-sans: 'Inter', 'Noto Serif SC', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(61, 40, 23, 0.06);
    --shadow-md: 0 4px 20px rgba(61, 40, 23, 0.1);
    --shadow-lg: 0 8px 40px rgba(61, 40, 23, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(251, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: var(--transition);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

/* ========== Hero Section ========== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2C1810 0%, #3D2817 50%, #4A3020 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.hero-content h1 em {
    font-style: italic;
    font-weight: 500;
    color: #D4A856;
}

.hero-content p {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
    background: transparent;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== Section Common ========== */
.section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 60px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--color-accent);
    margin: 20px auto 40px;
}

/* ========== About Section ========== */
.about-section {
    background: var(--color-cream);
    padding: 100px 40px;
}

.about-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-inner h2 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.about-inner p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: 300;
}

.about-features {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
}

.feature-item .feature-icon {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.feature-item .feature-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
}

/* ========== Product Grid ========== */
.products-section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.product-card {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    background: var(--color-cream);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(61, 40, 23, 0.85);
    color: var(--color-white);
    padding: 4px 12px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
}

.price-badge {
    position: absolute;
    background: rgba(61, 40, 23, 0.85);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.product-card-image .price-badge {
    top: 50px;
    left: 16px;
}

.product-gallery .price-badge {
    top: 12px;
    left: 12px;
}

.product-card-info {
    padding: 24px;
    text-align: center;
}

.product-card-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.product-card-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card-desc {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.product-card-price .price-current {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-accent);
}

.product-card-price .price-original {
    font-size: 14px;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.product-card-price .price-unit {
    font-size: 13px;
    color: var(--color-text-light);
}

.product-card-link {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 2px;
    display: inline-block;
}

.product-card:hover .product-card-link {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ========== Product Detail Page ========== */
.product-detail {
    padding-top: 72px;
}

.product-breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px 0;
    font-size: 13px;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
}

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

.product-breadcrumb span {
    margin: 0 8px;
}

.product-detail-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Gallery — Swipeable Carousel */
.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.gallery-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    aspect-ratio: 1;
    border-radius: 4px;
    background: var(--color-cream);
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

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

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-primary);
    z-index: 2;
    transition: background 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.gallery-dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
}

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(61, 40, 23, 0.65);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    z-index: 2;
    pointer-events: none;
}

/* Product Info */
.product-info {
    padding: 20px 0;
}

.product-info-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.product-info h1 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-info-tagline {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-info-description {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-secondary);
    margin-bottom: 30px;
}

.product-specs {
    background: var(--color-cream);
    padding: 24px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.product-specs h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.spec-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

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

.spec-label {
    flex: 0 0 140px;
    color: var(--color-text-light);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    padding-top: 2px;
}

.spec-value {
    flex: 1;
    color: var(--color-text);
}

.product-price-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 8px;
}

.product-price-display .price-current {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
}

.product-price-display .price-original {
    font-size: 18px;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.product-price-display .price-unit {
    font-size: 14px;
    color: var(--color-text-light);
}

.buy-button {
    display: inline-block;
    padding: 16px 48px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.buy-button:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Story Section */
.product-story {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
}

.product-story h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 30px;
    text-align: center;
}

.story-block {
    margin-bottom: 40px;
}

.story-block h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.story-block p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-secondary);
    margin-bottom: 14px;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.process-step {
    text-align: center;
    padding: 24px;
    background: var(--color-cream);
    border-radius: 4px;
}

.process-step-number {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.process-step h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Brewing Guide */
.brewing-guide {
    background: var(--color-cream);
    padding: 80px 40px;
    margin: 0;
}

.brewing-inner {
    max-width: 900px;
    margin: 0 auto;
}

.brewing-inner h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 40px;
    text-align: center;
}

.brewing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.brewing-step {
    background: var(--color-white);
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.brewing-step-icon {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.brewing-step h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.brewing-step p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Full-width image section */
.fullwidth-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.fullwidth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 60px 40px 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col ul a:hover {
    color: var(--color-white);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
        height: 64px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .section {
        padding: 60px 20px;
    }

    .products-section {
        padding: 60px 20px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .product-detail-main {
        padding: 20px;
    }

    .about-features {
        gap: 30px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .product-story,
    .brewing-guide {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {
    .product-specs {
        padding: 16px;
    }

    .spec-row {
        flex-direction: column;
        gap: 4px;
    }

    .spec-label {
        flex: none;
    }
}
