/* =====================================================
   Chinese New Year 2026 - Year of the Horse
   Modern & Elegant Design
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Serif+SC:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* CNY Color Palette */
    --cny-red: #D4272D;
    --cny-red-dark: #B81D23;
    --cny-red-deep: #8B1419;
    --cny-red-light: #E8454B;
    --gold: #D4A847;
    --gold-light: #E8C06A;
    --gold-pale: #F5D88A;
    --gold-dark: #B8923D;
    --cream: #FFFBF5;
    --cream-dark: #F7F0E5;
    --charcoal: #1A1A1A;
    --charcoal-light: #333333;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-chinese: 'Noto Serif SC', serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 4px 20px rgba(212, 168, 71, 0.25);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better touch targets */
button, a, input, textarea, select {
    touch-action: manipulation;
}

/* Prevent text selection on buttons */
button {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== DECORATIVE ELEMENTS ===== */

/* Gold Clouds */
.cloud-decor {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

.cloud-1 {
    top: 18%;
    left: 4%;
    width: 130px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold) 100%);
    border-radius: 50px;
    opacity: 0.9;
    animation: floatCloud 10s ease-in-out infinite;
}

.cloud-1::before {
    content: '';
    position: absolute;
    top: -22px;
    left: 28px;
    width: 50px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold-pale), var(--gold));
    border-radius: 50%;
}

.cloud-1::after {
    content: '';
    position: absolute;
    top: -14px;
    right: 22px;
    width: 42px;
    height: 35px;
    background: linear-gradient(135deg, var(--gold-pale), var(--gold));
    border-radius: 50%;
}

.cloud-2 {
    top: 50%;
    left: 6%;
    width: 90px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 40px;
    opacity: 0.7;
    animation: floatCloud 12s ease-in-out infinite 3s;
}

.cloud-2::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 18px;
    width: 32px;
    height: 26px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 50%;
}

.cloud-3 {
    top: 22%;
    right: 6%;
    width: 110px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold-pale), var(--gold));
    border-radius: 45px;
    opacity: 0.85;
    animation: floatCloud 11s ease-in-out infinite 1.5s;
}

.cloud-3::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 22px;
    width: 42px;
    height: 35px;
    background: linear-gradient(135deg, var(--gold-pale), var(--gold));
    border-radius: 50%;
}

.cloud-3::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 26px;
    width: 35px;
    height: 28px;
    background: linear-gradient(135deg, var(--gold-pale), var(--gold));
    border-radius: 50%;
}

.cloud-4 {
    bottom: 28%;
    right: 4%;
    width: 80px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 35px;
    opacity: 0.65;
    animation: floatCloud 13s ease-in-out infinite 4s;
}

@keyframes floatCloud {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-12px) translateX(6px); }
    66% { transform: translateY(-6px) translateX(-4px); }
}

/* Horse Decorations */
.horse-left,
.horse-right {
    position: absolute;
    font-size: 10rem;
    color: var(--gold);
    opacity: 0.4;
    pointer-events: none;
    z-index: 3;
    text-shadow: 0 0 60px rgba(212, 168, 71, 0.5);
    filter: drop-shadow(0 0 25px rgba(212, 168, 71, 0.35));
}

.horse-left {
    bottom: 8%;
    left: 5%;
    transform: scaleX(-1);
    animation: horseGallopLeft 5s ease-in-out infinite;
}

.horse-right {
    top: 15%;
    right: 5%;
    animation: horseGallopRight 5s ease-in-out infinite 0.5s;
}

@keyframes horseGallopLeft {
    0%, 100% { transform: scaleX(-1) translateY(0); }
    50% { transform: scaleX(-1) translateY(-15px); }
}

@keyframes horseGallopRight {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: var(--space-md) var(--space-xl);
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-image {
    height: 48px;
    width: auto;
}

.logo-text h1 {
    font-family: var(--font-chinese);
    color: var(--cny-red);
    font-size: 1.4rem;
    font-weight: 600;
}

.logo-text p {
    color: var(--gold-dark);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

.cart-btn {
    background: var(--gold);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: var(--transition-fast);
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--charcoal);
}

.cart-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.cart-icon {
    font-size: 1.1rem;
}

.cart-count {
    background: var(--cny-red-deep);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--space-xl) var(--space-3xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--cny-red) 0%, var(--cny-red-dark) 50%, var(--cny-red-deep) 100%);
}

/* Subtle pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 168, 71, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(212, 168, 71, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 680px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-year-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--gold);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.hero-year-badge span {
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.hero-title {
    font-family: var(--font-chinese);
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    color: var(--gold-light);
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: white;
    margin-bottom: var(--space-xl);
    font-weight: 400;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-description {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 480px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.7s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 10;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    border: none;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--charcoal);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 168, 71, 0.4);
}

.btn-checkout {
    width: 100%;
    background: var(--cny-red);
    color: white;
    padding: var(--space-lg);
    border-radius: 12px;
}

.btn-checkout:hover {
    background: var(--cny-red-dark);
}

.btn-submit {
    width: 100%;
    background: var(--gold);
    color: var(--charcoal);
    padding: var(--space-lg);
    border-radius: 12px;
}

.btn-submit:hover {
    background: var(--gold-light);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    width: 100%;
    margin: var(--space-lg) 0;
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

.whatsapp-icon {
    font-size: 1.2rem;
}

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--cream-dark);
}

.btn-secondary:hover {
    background: var(--cream);
    border-color: var(--charcoal);
}

/* ===== CATEGORY NAVIGATION ===== */
/* ===== SEARCH BAR ===== */
.search-container {
    margin-bottom: var(--space-md);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--cream);
    border: 2px solid var(--cream-dark);
    border-radius: 50px;
    padding: var(--space-sm) var(--space-lg);
    transition: var(--transition-fast);
}

.search-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.search-icon {
    font-size: 1.1rem;
    margin-right: var(--space-sm);
    opacity: 0.6;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--charcoal);
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-clear {
    background: var(--cny-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.search-clear:hover {
    background: var(--cny-red-dark);
}

.search-results-info {
    text-align: center;
    padding: var(--space-md);
    color: #666;
    font-size: 0.9rem;
}

.search-highlight {
    background: rgba(212, 175, 55, 0.3);
    padding: 0 2px;
    border-radius: 2px;
}

.category-nav {
    background: white;
    padding: var(--space-md) 0;
    position: sticky;
    top: 76px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--cream-dark);
}

.category-tabs {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding: var(--space-xs) 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-lg);
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    min-width: 85px;
    font-family: var(--font-sans);
    color: var(--charcoal);
}

.category-tab:hover {
    background: var(--cream-dark);
    border-color: var(--gold);
}

.category-tab.active {
    background: var(--cny-red);
    color: white;
    border-color: var(--cny-red);
}

.tab-icon {
    font-size: 1.3rem;
}

.tab-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: var(--space-3xl) 0;
    min-height: 60vh;
    background: var(--cream);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-medium);
    animation: fadeInUp 0.5s ease-out backwards;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--cream);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--cny-red);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-info {
    padding: var(--space-lg);
}

.product-name {
    font-family: var(--font-chinese);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-name-en {
    font-size: 0.8rem;
    color: var(--cny-red);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.product-description {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: var(--space-md);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--cream-dark);
}

.product-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-line {
    display: flex;
    align-items: baseline;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cny-red);
    line-height: 1;
}

.product-uom {
    font-size: 0.85rem;
    color: var(--cny-red);
    font-weight: 600;
}

.product-packaging {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
    background: var(--cream);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

/* Keep for backwards compatibility */
.product-unit {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    background: var(--cream);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.add-to-cart {
    background: var(--gold);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart:hover {
    background: var(--gold-light);
    transform: scale(1.1);
    box-shadow: var(--shadow-gold);
}

/* ===== LOADING STATE ===== */
.loading {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--cny-red);
}

.loading-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid var(--cream-dark);
    border-top-color: var(--cny-red);
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1000;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    transform: translateX(100%);
    transition: var(--transition-medium);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: var(--cny-red);
    color: white;
}

.cart-header h3 {
    font-family: var(--font-chinese);
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.cart-close:hover {
    opacity: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--cream);
    border-radius: 12px;
    margin-bottom: var(--space-md);
}

.cart-item-image {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-family: var(--font-chinese);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.cart-item-price {
    color: var(--cny-red);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-unit {
    font-size: 0.65rem;
    color: #888;
    font-weight: 400;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--cream-dark);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-item {
    margin-left: auto;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
}

.remove-item:hover {
    color: var(--cny-red);
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
}

.empty-hint {
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

.cart-footer {
    padding: var(--space-lg);
    background: var(--cream);
    border-top: 1px solid var(--cream-dark);
}

.cart-totals {
    margin-bottom: var(--space-md);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: var(--space-xs);
}

.cart-total-final {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid #eee;
}

.total-amount {
    color: var(--cny-red);
    font-size: 1.2rem;
}

/* Minimum Order Warning */
.minimum-order-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    text-align: center;
    font-size: 0.9rem;
    color: #856404;
}

.minimum-order-warning .warning-icon {
    font-size: 1.2rem;
}

.minimum-order-warning .warning-remaining {
    color: var(--cny-red);
    font-weight: 500;
}

.btn-checkout.btn-disabled,
.btn-checkout:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-checkout.btn-disabled:hover,
.btn-checkout:disabled:hover {
    background: #ccc;
    transform: none;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 2000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: var(--transition-medium);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    z-index: 1;
    opacity: 0.8;
}

.modal-close:hover {
    opacity: 1;
}

.modal-header {
    background: var(--cny-red);
    color: white;
    padding: var(--space-xl);
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    font-family: var(--font-chinese);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.modal-header p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ===== CHECKOUT FORM ===== */
.checkout-form {
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--charcoal);
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--cream-dark);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 168, 71, 0.15);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: var(--space-xs);
    font-style: italic;
}

/* Checkbox styling */
.form-checkbox {
    margin-top: var(--space-lg);
}

.checkbox-label {
    display: flex;
    gap: var(--space-md);
    cursor: pointer;
    align-items: flex-start;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: var(--cny-red);
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
}

.order-summary {
    background: var(--cream);
    padding: var(--space-lg);
    border-radius: 12px;
    margin-bottom: var(--space-lg);
}

.order-summary h4 {
    font-family: var(--font-chinese);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--cream-dark);
    color: var(--cny-red);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 0.85rem;
}

.summary-subtotal {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 1px solid var(--cream-dark);
    font-size: 0.9rem;
    color: var(--charcoal);
}

.summary-gst {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 0.85rem;
    color: #666;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 2px dashed var(--cream-dark);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cny-red);
}

/* ===== SUCCESS MODAL ===== */
.modal-success {
    text-align: center;
    padding: var(--space-2xl);
}

.success-icon {
    font-size: 5rem;
    margin-bottom: var(--space-lg);
    animation: pop 0.5s ease-out;
}

@keyframes pop {
    0% { transform: scale(0); }
    80% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.success-content h2 {
    font-family: var(--font-chinese);
    color: var(--cny-red);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

.success-message {
    color: #666;
}

.order-id {
    background: var(--cream);
    padding: var(--space-md);
    border-radius: 10px;
    margin: var(--space-lg) 0;
    font-family: monospace;
    font-size: 0.85rem;
}

.success-details {
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
    color: #666;
}

.success-details p {
    margin-bottom: var(--space-sm);
}

.whatsapp-note {
    background: #FFF8E7;
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: var(--space-md);
    font-size: 0.85rem;
    color: #666;
    margin: var(--space-md) 0;
}

.whatsapp-note strong {
    color: var(--cny-red);
}

.chinese-blessing {
    font-family: var(--font-chinese);
    font-size: 1.3rem;
    color: var(--cny-red);
    margin-top: var(--space-md);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFECD2 100%);
    padding: var(--space-3xl) 0;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}

.faq-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--cny-red);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: white;
    padding: var(--space-lg);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gold);
}

.faq-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.faq-item p {
    color: var(--charcoal-light);
    line-height: 1.6;
    margin: 0;
}

.faq-item strong {
    color: var(--cny-red);
}

.faq-highlight {
    background: linear-gradient(135deg, var(--cny-red) 0%, var(--cny-red-dark) 100%);
    border-left-color: var(--gold);
}

.faq-highlight p {
    color: white;
    font-weight: 600;
}

.faq-highlight strong {
    color: var(--gold-light);
}

/* FAQ Floating Button */
.faq-float-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 168, 71, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: float-pulse 2s ease-in-out infinite;
}

.faq-float-btn span {
    font-size: 1.5rem;
}

.faq-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 168, 71, 0.5);
}

@keyframes float-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Hide FAQ button when at FAQ section */
.faq-float-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--cny-red) 0%, var(--cny-red-dark) 100%);
    color: white;
    padding: var(--space-2xl) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo {
    height: 45px;
    width: auto;
}

.footer-brand p {
    font-family: var(--font-chinese);
    font-size: 1.2rem;
    color: var(--gold-light);
}

.footer-blessing {
    text-align: right;
}

.footer-blessing p:first-child {
    font-family: var(--font-chinese);
    font-size: 1.1rem;
    color: var(--gold-light);
}

.footer-subtitle {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 4px;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 992px) {
    .hero {
        min-height: 85vh;
    }
    
    .horse-gold {
        font-size: 10rem;
        right: 2%;
    }
    
    .horse-gold-2 {
        font-size: 7rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header {
        padding: var(--space-sm) var(--space-md);
    }
    
    .logo-image {
        height: 38px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-text p {
        font-size: 0.55rem;
        letter-spacing: 0.08em;
    }
    
    .cart-btn {
        padding: var(--space-sm) var(--space-md);
    }
    
    .cart-icon {
        font-size: 1rem;
    }
    
    /* Hero mobile */
    .hero {
        min-height: auto;
        min-height: 100svh;
        padding: 90px var(--space-md) var(--space-xl);
    }
    
    .hero-logo {
        width: 90px;
        margin-bottom: var(--space-lg);
    }
    
    .hero-year-badge {
        padding: var(--space-xs) var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    .hero-year-badge span {
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--space-md);
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: var(--space-lg);
        padding: 0 var(--space-sm);
    }
    
    /* Mobile - hide clouds, show horses smaller */
    .cloud-decor {
        display: none;
    }
    
    .horse-left,
    .horse-right {
        font-size: 5rem;
        opacity: 0.25;
    }
    
    .horse-left {
        bottom: 5%;
        left: 2%;
    }
    
    .horse-right {
        top: 12%;
        right: 2%;
    }
    
    .scroll-indicator {
        bottom: 20px;
        font-size: 1.2rem;
    }
    
    /* Category nav mobile */
    .category-nav {
        top: 62px;
        padding: var(--space-sm) 0;
    }
    
    .search-container {
        padding: 0 var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .search-wrapper {
        padding: var(--space-xs) var(--space-md);
    }
    
    .search-input {
        font-size: 0.9rem;
    }
    
    .category-tabs {
        padding: 0 var(--space-sm);
        gap: 6px;
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }
    
    .category-tab {
        min-width: auto;
        padding: 8px 12px;
        border-radius: 20px;
        flex: 0 0 auto;
        flex-direction: row;
        gap: 4px;
    }
    
    .tab-icon {
        font-size: 1rem;
    }
    
    .tab-text {
        font-size: 0.6rem;
    }
    
    /* Main content mobile */
    .main-content {
        padding: var(--space-xl) 0;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Products grid mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .product-category {
        padding: 3px 10px;
        font-size: 0.55rem;
        top: var(--space-sm);
        left: var(--space-sm);
    }
    
    .product-info {
        padding: var(--space-md);
    }
    
    .product-name {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    .product-name-en {
        font-size: 0.7rem;
        margin-bottom: var(--space-xs);
    }
    
    .product-description {
        font-size: 0.7rem;
        margin-bottom: var(--space-sm);
        -webkit-line-clamp: 2;
    }
    
    .product-footer {
        padding-top: var(--space-sm);
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-uom {
        font-size: 0.7rem;
    }
    
    .product-packaging,
    .product-unit {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
    
    .add-to-cart {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    /* Cart sidebar mobile */
    .cart-sidebar {
        max-width: 100%;
    }
    
    .cart-header {
        padding: var(--space-md);
    }
    
    .cart-header h3 {
        font-size: 1rem;
    }
    
    /* Compact minimum order warning on mobile */
    .minimum-order-warning {
        flex-direction: row;
        padding: var(--space-sm);
        margin-bottom: var(--space-sm);
        font-size: 0.75rem;
        gap: var(--space-xs);
        border-radius: 8px;
    }
    
    .minimum-order-warning .warning-icon {
        font-size: 1rem;
    }
    
    .minimum-order-warning .warning-remaining {
        font-size: 0.75rem;
    }
    
    .cart-item {
        padding: var(--space-sm);
        gap: var(--space-sm);
    }
    
    .cart-item-image {
        width: 55px;
        height: 55px;
    }
    
    .cart-item-name {
        font-size: 0.85rem;
    }
    
    .cart-footer {
        padding: var(--space-md);
    }
    
    /* Modal mobile */
    .modal {
        margin: var(--space-sm);
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: var(--space-lg);
        border-radius: 16px 16px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .checkout-form {
        padding: var(--space-lg);
    }
    
    .form-group {
        margin-bottom: var(--space-md);
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
    
    /* Footer mobile */
    .footer {
        padding: var(--space-xl) 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-brand {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .footer-brand p {
        font-size: 1.1rem;
    }
    
    .footer-blessing {
        text-align: center;
    }
    
    .footer-blessing p:first-child {
        font-size: 1rem;
    }
    
    .footer-subtitle {
        font-size: 0.75rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .logo-text p {
        display: none;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .product-info {
        padding: var(--space-md);
    }
    
    .product-name {
        font-size: 0.85rem;
    }
    
    .product-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-uom {
        font-size: 0.6rem;
    }
    
    .product-packaging,
    .product-unit {
        font-size: 0.55rem;
        padding: 1px 4px;
    }
    
    .add-to-cart {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    .product-category {
        padding: 2px 6px;
        font-size: 0.5rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-year-badge span {
        font-size: 0.6rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .product-info {
        padding: var(--space-sm);
    }
    
    .product-name {
        font-size: 0.75rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .add-to-cart {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    
    .category-tab {
        min-width: auto;
        padding: 6px 10px;
        flex: 0 0 auto;
    }
    
    .tab-icon {
        font-size: 0.9rem;
    }
    
    .tab-text {
        font-size: 0.6rem;
    }
    
    .tab-text {
        font-size: 0.55rem;
    }
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: max(var(--space-sm), env(safe-area-inset-top));
    }
    
    .footer {
        padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
    }
}

/* Card Animation Delays */
.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; }
