/* ══════════════════════════════════════════════════════════
   MingCha 茗茶 – Design System v2
   1:1 layout clone of theteaspot.com structure
   ══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --color-primary: #1A1A1A;
    --color-primary-light: #333333;
    --color-accent: #6C8E74;
    --color-accent-light: #F0F4F1;
    --color-bg: #FFFFFF;
    --color-surface: #F7F6F4;
    --color-surface-dark: #222222;
    --color-text: #2A2A2A;
    --color-text-secondary: #666666;
    --color-border: #E8E8E8;
    --color-success: #2E7D32;
    --color-danger: #D32F2F;

    --font-serif: 'Playfair Display', 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;
    --space-2xl: 100px;
    --space-3xl: 140px;

    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

input,
select,
textarea {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

input::placeholder,
textarea::placeholder {
    color: #A0A0A0;
    font-weight: 300;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-sm {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: var(--space-2xl) 0;
}

/* ═══════ Typography ═══════ */
h1,
h2,
h3,
h4,
.text-serif {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1.25;
}

h1 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 20px;
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: 18px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

/* ═══════ Utilities ═══════ */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-secondary);
}

.text-danger {
    color: var(--color-danger);
}

.mt-sm {
    margin-top: 8px;
}

.mt-md {
    margin-top: 16px;
}

.mt-lg {
    margin-top: 32px;
}

.mb-sm {
    margin-bottom: 8px;
}

.mb-md {
    margin-bottom: 16px;
}

.mb-lg {
    margin-bottom: 32px;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

/* ═══════ Buttons ═══════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.btn-secondary {
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    background: #fff;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: var(--color-surface);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--color-accent);
    color: #fff;
}

.btn-accent:hover {
    background: #57765D;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: #fff;
    color: var(--color-primary);
}

.btn-white:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    border: none;
    background: transparent;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 8px 16px;
}

.btn-ghost:hover {
    color: var(--color-accent);
}

.btn-wide {
    width: 100%;
}

.btn-text {
    font-weight: 500;
    color: var(--color-text-secondary);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-text:hover {
    color: var(--color-primary);
}

/* ═══════ Announcement Bar ═══════ */
.announcement-bar {
    background: var(--color-accent);
    color: #fff;
    text-align: center;
    font-size: 12px;
    padding: 10px 24px;
    letter-spacing: 0.08em;
    font-weight: 500;
    text-transform: uppercase;
}

/* ═══════ Navbar – CENTERED LOGO + NAV BELOW (Tea Spot Style) ═══════ */
.navbar {
    background: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0 0;
}

.nav-top-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    margin-bottom: 12px;
}

.nav-brand {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-brand span {
    font-weight: 400;
    font-family: var(--font-sans);
    font-size: 16px;
    margin-left: 8px;
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 36px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 14px;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
    color: var(--color-text);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s;
}

.nav-icon-btn:hover {
    color: var(--color-accent);
}

.cart-badge {
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-brand {
        position: static;
        transform: none;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 24px;
        color: var(--color-primary);
    }
}

@media (min-width: 901px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ═══════ Hero Full-Width (Tea Spot Style) ═══════ */
.hero-fullwidth {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.hero-fullwidth-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-fullwidth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 60%);
    display: flex;
    align-items: center;
}

.hero-fullwidth-content {
    max-width: 600px;
    padding: 0 60px;
    color: #fff;
}

.hero-fullwidth-content h1 {
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-fullwidth-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.7;
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-fullwidth {
        height: 60vh;
        min-height: 400px;
    }

    .hero-fullwidth-overlay {
        background: rgba(0, 0, 0, 0.45);
        align-items: flex-end;
        padding-bottom: 40px;
    }

    .hero-fullwidth-content {
        padding: 0 24px;
        text-align: center;
        max-width: 100%;
    }
}

/* ═══════ Featured Collection Banner ═══════ */
.featured-banner {
    padding: var(--space-2xl) 0;
}

.featured-banner-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-banner-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.featured-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-banner-inner:hover .featured-banner-img img {
    transform: scale(1.03);
}

.featured-banner-text p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .featured-banner-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ═══════ Category Grid (Row – Tea Spot) ═══════ */
.category-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 32px;
    padding-bottom: 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
}

.category-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1200px) {
    .category-grid {
        justify-content: center;
    }
}

.category-card {
    flex: 0 0 auto;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    background: transparent;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--color-surface);
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: transform 0.8s ease, opacity 0.3s ease;
}

.category-card:hover .category-card-img {
    box-shadow: var(--shadow-md);
}

.category-card:hover .category-card-img img {
    opacity: 1;
    transform: scale(1.08);
}

.category-card-name {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text);
    text-transform: uppercase;
}

/* ═══════ Product Scroll (Horizontal – Tea Spot Trending) ═══════ */
.scroll-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-size: 18px;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.product-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.product-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.product-scroll::-webkit-scrollbar {
    display: none;
}

.product-card-scroll {
    flex: 0 0 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-card-scroll-img {
    aspect-ratio: 1 / 1;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    transition: all 0.4s ease;
}

.product-card-scroll-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-scroll:hover .product-card-scroll-img {
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

.product-card-scroll-info {
    padding: 0 4px;
}

/* Standard product grid (for shop page) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-card-img {
    aspect-ratio: 1 / 1;
    background: var(--color-surface);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card:hover .product-card-img {
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

.product-card-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    transition: color 0.3s;
}

.product-card-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.product-card:hover .product-card-title {
    color: var(--color-accent);
}

.product-card-price {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
}

/* ═══════ Brand Trust Split ═══════ */
.brand-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.brand-split-img {
    overflow: hidden;
}

.brand-split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.brand-split:hover .brand-split-img img {
    transform: scale(1.03);
}

.brand-split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    background: var(--color-surface);
}

.brand-split-text p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .brand-split {
        grid-template-columns: 1fr;
    }

    .brand-split-text {
        padding: 40px 24px;
    }
}

/* ═══════ Testimonials Carousel ═══════ */
.testimonial-carousel {
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 16px 0;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 380px;
    scroll-snap-align: center;
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: left;
}

.testimonial-stars {
    color: var(--color-accent);
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════ Give Back Section ═══════ */
.giveback-section {
    background: var(--color-accent);
    color: #fff;
    padding: var(--space-2xl) 0;
}

.giveback-section h2 {
    color: #fff;
    margin-bottom: 20px;
}

.giveback-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.8;
    font-weight: 300;
}

/* ═══════ Story Split ═══════ */
.story-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 550px;
}

.story-image-panel {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.story-text-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    background: var(--color-surface-dark);
    color: #fff;
}

.story-text-panel h2 {
    color: #fff;
}

.story-text-panel p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .story-split {
        grid-template-columns: 1fr;
    }

    .story-text-panel {
        padding: 40px 24px;
    }
}

/* ═══════ Newsletter ═══════ */
.newsletter-section {
    padding: var(--space-2xl) 0;
    text-align: center;
    background: var(--color-surface);
}

.newsletter-section h2 {
    margin-bottom: 12px;
}

.newsletter-section p {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
    font-weight: 300;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    border-radius: var(--radius-sm);
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* ═══════ Reviews Grid (homepage) ═══════ */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--color-surface);
    padding: 36px;
    border-radius: var(--radius-md);
}

.review-stars {
    color: var(--color-accent);
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 24px;
}

.review-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

/* ═══════ Footer ═══════ */
.footer {
    background: var(--color-surface-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 28px;
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand span {
    font-family: var(--font-sans);
    font-size: 14px;
    margin-left: 8px;
    opacity: 0.5;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════ Forms ═══════ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

/* ═══════ Qty Control ═══════ */
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--color-surface);
    transition: background 0.2s;
    color: var(--color-text);
}

.qty-btn:hover {
    background: var(--color-border);
}

.qty-val {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-radius: 0;
    padding: 10px;
    font-weight: 600;
}

.qty-val:focus {
    box-shadow: none;
}

/* ═══════ Toast ═══════ */
#toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════ Breadcrumb ═══════ */
.breadcrumb {
    font-size: 13px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb span {
    opacity: 0.4;
}

/* ═══════ PDP – Product Detail Page ═══════ */
.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 768px) {
    .pdp-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.pdp-gallery {
    position: sticky;
    top: 100px;
}

.pdp-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-info {
    padding-top: 8px;
}

.pdp-category-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.pdp-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--color-text);
}

.pdp-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pdp-stars {
    color: var(--color-accent);
    font-size: 16px;
    letter-spacing: 2px;
}

.pdp-rating-text {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.pdp-price {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.pdp-variants {
    margin-bottom: 24px;
}

.pdp-variants-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
    color: var(--color-text-secondary);
}

.pdp-variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pdp-pill {
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--color-text);
}

.pdp-pill:hover {
    border-color: var(--color-text);
}

.pdp-pill.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pdp-actions {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 20px;
}

.btn-add-cart {
    flex: 1;
    font-size: 14px;
    letter-spacing: 0.15em;
    font-weight: 600;
    padding: 16px 32px;
}

.pdp-shipping-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-secondary);
    background: var(--color-surface);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 32px;
}

.pdp-accordions {
    border-top: 1px solid var(--color-border);
}

.pdp-accordion {
    border-bottom: 1px solid var(--color-border);
}

.pdp-accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    transition: color 0.2s;
}

.pdp-accordion-btn:hover {
    color: var(--color-accent);
}

.pdp-accordion-icon {
    font-size: 18px;
    font-weight: 300;
    width: 24px;
    text-align: center;
}

.pdp-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.pdp-accordion-content.open {
    max-height: 600px;
    padding: 0 0 24px 0;
}

.pdp-accordion-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.pdp-accordion-content ul {
    list-style: none;
    padding: 0;
}

.pdp-accordion-content ul li {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.pdp-accordion-content ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 10px;
    top: 4px;
}

.pdp-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.pdp-review-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.pdp-review-stars {
    color: var(--color-accent);
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.pdp-review-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    font-style: italic;
}

.pdp-review-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.pdp-review-form {
    max-width: 600px;
    margin: 32px auto 0;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.pdp-review-form h3 {
    font-family: var(--font-serif);
    margin-bottom: 20px;
}

.star-selector {
    display: flex;
    gap: 8px;
    font-size: 28px;
    cursor: pointer;
}

.star-selector span {
    transition: color 0.2s;
}

.star-selector span:hover {
    transform: scale(1.2);
}

/* ═══════ Login Page ═══════ */
.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.login-image {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 60px;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form {
    max-width: 400px;
    width: 100%;
}

.login-form h1 {
    margin-bottom: 8px;
}

.login-form .subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .login-split {
        grid-template-columns: 1fr;
    }

    .login-image {
        min-height: 200px;
    }
}

/* ═══════ Checkout ═══════ */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.order-summary {
    background: var(--color-surface);
    padding: 32px;
    border-radius: var(--radius-md);
    position: sticky;
    top: 100px;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════ Shop Page ═══════ */
.shop-hero {
    background: var(--color-surface);
    padding: 64px 0 48px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.shop-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    margin-bottom: 12px;
}

.shop-hero p {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sidebar */
.shop-sidebar {
    position: sticky;
    top: 100px;
}

.shop-sidebar-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.shop-cat-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.shop-cat-item:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.shop-cat-item.active {
    background: var(--color-primary);
    color: #fff;
}

.shop-cat-name {}

.shop-cat-count {
    font-size: 12px;
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.shop-cat-item.active .shop-cat-count {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.shop-sidebar-divider {
    height: 1px;
    background: var(--color-border);
    margin: 24px 0;
}

.shop-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--color-bg);
    transition: border-color 0.2s;
}

.shop-search input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Topbar */
.shop-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.shop-result-count {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.shop-sort-select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--color-bg);
    cursor: pointer;
}

.shop-sort-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
    }

    .shop-cat-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .shop-cat-item {
        padding: 8px 14px;
    }

    .shop-cat-count {
        display: none;
    }
}

/* ═══════ PDP – Tea Spot 1:1 Clone ═══════ */

/* Review link under title */
.pdp-review-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pdp-stars-inline {
    color: var(--color-accent);
    font-size: 16px;
    letter-spacing: 2px;
}

.pdp-review-count {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pdp-review-count:hover {
    color: var(--color-primary);
}

/* Price Block */
.pdp-price-block {
    margin-bottom: 8px;
}

.pdp-price-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.pdp-price-value {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-text);
}

/* Shipping calc */
.pdp-shipping-calc {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
}

.pdp-shipping-calc a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Size Selector */
.pdp-size-selector {
    margin-bottom: 24px;
}

.pdp-size-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.pdp-size-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pdp-size-pill {
    padding: 12px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--color-text);
    font-family: var(--font-sans);
}

.pdp-size-pill:hover {
    border-color: var(--color-text);
}

.pdp-size-pill.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Qty + ATC Row */
.pdp-qty-row {
    margin-bottom: 32px;
}

.pdp-qty-atc {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.pdp-qty-atc .qty-control {
    flex-shrink: 0;
}

.pdp-qty-atc .btn-add-cart {
    flex: 1;
}

/* ─── Review Ticker ─── */
.pdp-ticker-section {
    background: var(--color-surface);
    padding: 32px 0;
    overflow: hidden;
}

.pdp-ticker-track {
    display: flex;
    gap: 32px;
    animation: ticker-scroll 40s linear infinite;
    width: max-content;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.pdp-ticker-item {
    flex-shrink: 0;
    min-width: 260px;
    max-width: 360px;
    padding: 24px 32px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.pdp-ticker-stars {
    color: var(--color-accent);
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.pdp-ticker-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.pdp-ticker-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-style: italic;
    line-height: 1.5;
}

/* ─── Trust Badges ─── */
.pdp-badges-section {
    padding: 48px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.pdp-badges {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.pdp-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pdp-badge-icon {
    font-size: 32px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-radius: 50%;
}

.pdp-badge-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 1.4;
}

/* ─── Product Details Grid ─── */
.pdp-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 768px) {
    .pdp-details-grid {
        grid-template-columns: 1fr;
    }
}

.pdp-details-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

.pdp-details-features {
    list-style: none;
    padding: 0;
}

.pdp-details-features li {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 2;
    padding-left: 24px;
    position: relative;
}

.pdp-details-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 10px;
    top: 5px;
}



.pdp-details-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.pdp-details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Reviews Section (Full - Tea Spot style) ─── */
.pdp-review-summary {
    text-align: center;
    margin-bottom: 32px;
}

.pdp-rating-overview {
    max-width: 400px;
    margin: 0 auto;
}

.pdp-rating-big {
    margin-bottom: 4px;
}

.pdp-rating-number {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 400;
    color: var(--color-text);
}

.pdp-rating-outof {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-left: 8px;
}

.pdp-rating-text-sub {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.pdp-rating-bars {
    text-align: left;
}

.pdp-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pdp-bar-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    width: 36px;
    flex-shrink: 0;
    text-align: right;
}

.pdp-bar-track {
    flex: 1;
    height: 10px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.pdp-bar-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.pdp-bar-count {
    font-size: 13px;
    color: var(--color-text-secondary);
    width: 28px;
    flex-shrink: 0;
}

.pdp-review-controls {
    margin-bottom: 32px;
}

.pdp-review-sort {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}

/* Individual Review Items (Tea Spot style) */


.pdp-review-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--color-border);
}

.pdp-review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.pdp-review-item-date {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 2px;
}

.pdp-review-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.pdp-review-item-stars {
    color: var(--color-accent);
    font-size: 16px;
    letter-spacing: 2px;
}

.pdp-review-item-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 12px;
}

.pdp-review-item-text {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ═══════ Auth Pages (Login / Register) ═══════ */
.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 120px);
}

.auth-image {
    background: url('https://images.pexels.com/photos/5946636/pexels-photo-5946636.jpeg?auto=compress&cs=tinysrgb&w=1200') center / cover no-repeat;
    position: relative;
}

.auth-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 142, 116, 0.3), rgba(26, 26, 26, 0.4));
}

.auth-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--color-text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-toggle {
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: center;
}

.form-toggle a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-toggle a:hover {
    color: var(--color-primary);
}

.notice-box {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}

.notice-box.error {
    background: #FEF2F2;
    color: var(--color-danger);
    border: 1px solid #FECACA;
}

.hidden {
    display: none !important;
}

.flex-col {
    flex-direction: column;
}

@media (max-width: 768px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-image {
        display: none;
    }

    .auth-content {
        padding: var(--space-lg) var(--space-md);
    }
}