/* AgroFresh Market — Organic Earth-Tone Design */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --green-deep: #1a4a2e;
    --green-mid: #2d7a4f;
    --green-light: #4caf7d;
    --green-pale: #e8f5ee;
    --earth: #8b6240;
    --earth-light: #f5ede3;
    --cream: #faf7f2;
    --gold: #d4a853;
    --gold-light: #fdf3dc;
    --text-dark: #1c1c1c;
    --text-mid: #4a4a4a;
    --text-light: #888;
    --white: #ffffff;
    --shadow-sm: 0 2px 12px rgba(26,74,46,0.08);
    --shadow-md: 0 8px 32px rgba(26,74,46,0.12);
    --shadow-lg: 0 20px 60px rgba(26,74,46,0.18);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

/* ===== HEADER ===== */
.site-header {
    background: var(--green-deep);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-top {
    background: var(--green-mid);
    text-align: center;
    padding: 8px;
    font-size: 13px;
    color: var(--green-pale);
    letter-spacing: 0.5px;
}

.header-top span { color: var(--gold); font-weight: 600; }

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--green-light), var(--green-mid));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--white);
    font-weight: 700;
}

.logo-tagline {
    font-size: 11px;
    color: var(--green-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 48px 12px 20px;
    border-radius: 50px;
    border: 2px solid transparent;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    transition: var(--transition);
    outline: none;
}

.search-bar input::placeholder { color: rgba(255,255,255,0.5); }

.search-bar input:focus {
    background: rgba(255,255,255,0.18);
    border-color: var(--green-light);
}

.search-bar button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--green-light);
    border: none;
    border-radius: 50px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.search-bar button:hover { background: var(--gold); }

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

.header-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.header-btn:hover { background: rgba(255,255,255,0.1); }

.cart-btn {
    background: var(--green-light);
    border-radius: 50px;
    padding: 10px 18px;
}

.cart-btn:hover { background: var(--gold); }

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold);
    color: var(--green-deep);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.cart-count.visible { display: flex; }

/* ===== NAVIGATION ===== */
.category-nav {
    background: var(--green-deep);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0 40px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.category-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    padding: 0;
    white-space: nowrap;
}

.category-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.category-nav a:hover,
.category-nav a.active {
    color: var(--white);
    border-bottom-color: var(--gold);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 60%, var(--green-light) 100%);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--green-pale);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h1 em {
    color: var(--gold);
    font-style: normal;
}

.hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--green-deep);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--gold);
}

.hero-stat span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.hero-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-4px); }

.hero-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
}

.hero-card-name {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hero-card-price {
    color: var(--gold);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

/* ===== MAIN LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-top: 60px;
}

.section-title { font-size: clamp(24px, 3vw, 36px); color: var(--green-deep); }
.section-title em { color: var(--green-mid); font-style: normal; }
.section-subtitle { font-size: 15px; color: var(--text-mid); margin-top: 8px; }

.view-all {
    color: var(--green-mid);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.view-all:hover { color: var(--green-deep); gap: 8px; }

/* ===== FILTER BAR ===== */
.filter-bar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.chip {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1.5px solid #e0e0e0;
    background: var(--white);
    color: var(--text-mid);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'DM Sans', sans-serif;
}

.chip:hover { border-color: var(--green-light); color: var(--green-mid); }
.chip.active { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }

.sort-select {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1.5px solid #e0e0e0;
    background: var(--white);
    color: var(--text-dark);
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    outline: none;
    margin-left: auto;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--green-pale);
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-organic { background: var(--green-light); color: var(--white); }
.badge-sale { background: #e53935; color: var(--white); }
.badge-popular { background: var(--gold); color: var(--green-deep); }
.badge-premium { background: var(--green-deep); color: var(--gold); }
.badge-fresh { background: #00acc1; color: var(--white); }
.badge-best { background: #6d4c41; color: var(--white); }

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(12px);
    transition: var(--transition);
}

.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }

.action-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.action-btn:hover { background: var(--green-light); color: var(--white); transform: scale(1.1); }

.product-info { padding: 20px; }

.product-category {
    font-size: 11px;
    color: var(--green-mid);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.stars { color: var(--gold); font-size: 13px; }

.rating-count { font-size: 12px; color: var(--text-light); }

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price-current {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--green-deep);
    font-weight: 700;
    line-height: 1;
}

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

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

.add-to-cart-btn {
    background: var(--green-deep);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
}

.add-to-cart-btn:hover {
    background: var(--green-light);
    transform: scale(1.05);
}

.add-to-cart-btn.loading { opacity: 0.7; pointer-events: none; }

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.skeleton-img { height: 220px; }
.skeleton-text { height: 14px; margin: 8px 20px; }
.skeleton-text.w80 { width: 80%; }
.skeleton-text.w60 { width: 60%; }
.skeleton-btn { height: 36px; width: 100px; margin: 12px 20px 20px; border-radius: 50px; }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    background: var(--white);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
    padding: 24px;
    background: var(--green-deep);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-cart:hover { background: rgba(255,255,255,0.3); }

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-mid);
}

.cart-empty-icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty h4 { font-family: 'Playfair Display', serif; font-size: 20px; margin-bottom: 8px; }

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--green-pale);
    flex-shrink: 0;
}

.cart-item-details { flex: 1; }

.cart-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cart-item-price { color: var(--green-mid); font-weight: 600; font-size: 15px; }

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: var(--white);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
    font-weight: 600;
    color: var(--text-dark);
}

.qty-btn:hover { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); }

.qty-value { font-weight: 600; min-width: 20px; text-align: center; }

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 18px;
    padding: 4px;
    transition: var(--transition);
    line-height: 1;
}

.cart-item-remove:hover { color: #e53935; }

/* Shipping Banner in Cart */
.shipping-banner {
    background: var(--gold-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--earth);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shipping-banner .bar {
    height: 4px;
    background: #e0d4b0;
    border-radius: 2px;
    margin-top: 8px;
    flex: 1;
}

.shipping-banner .bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Cart Footer */
.cart-footer {
    padding: 20px;
    background: var(--cream);
    border-top: 1px solid #e8e8e8;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-mid);
}

.cart-summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    margin-top: 8px;
}

.free-shipping { color: var(--green-mid); font-size: 12px; font-weight: 600; }

.checkout-btn {
    width: 100%;
    background: var(--green-deep);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: var(--transition);
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-btn:hover { background: var(--green-mid); transform: translateY(-2px); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
    background: var(--white);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

/* Checkout Modal */
.checkout-modal {
    max-width: 640px;
}

.modal-header {
    padding: 28px 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 24px;
    color: var(--green-deep);
}

.modal-close {
    background: var(--cream);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover { background: #e0e0e0; }

.modal-body { padding: 24px 32px 32px; }

/* Form Styles */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green-light);
    box-shadow: 0 0 0 3px rgba(76,175,125,0.1);
}

.form-group textarea { resize: vertical; min-height: 80px; }

/* Payment Options */
.payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }

.payment-option {
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.payment-option:hover { border-color: var(--green-light); }
.payment-option.selected { border-color: var(--green-deep); background: var(--green-pale); }
.payment-option-icon { font-size: 24px; }
.payment-option-label { font-size: 12px; font-weight: 600; color: var(--text-mid); }

/* Success State */
.order-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.order-success h3 {
    font-size: 28px;
    color: var(--green-deep);
    margin-bottom: 12px;
}

.order-id-badge {
    display: inline-block;
    background: var(--gold-light);
    border: 1px solid var(--gold);
    color: var(--earth);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    margin: 16px 0;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--green-deep);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    animation: slideUp 0.3s ease;
    border-left: 4px solid var(--gold);
}

.toast.error { background: #c62828; border-left-color: #ef9a9a; }
.toast.success { border-left-color: var(--green-light); }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.toast-icon { font-size: 18px; }

/* ===== BENEFITS SECTION ===== */
.benefits {
    background: var(--green-deep);
    padding: 48px 40px;
    margin: 60px 0;
}

.benefits-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 15px;
    margin-bottom: 4px;
}

.benefit-text p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: var(--white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
}

.page-btn:hover, .page-btn.active {
    background: var(--green-deep);
    border-color: var(--green-deep);
    color: var(--white);
}

/* ===== FOOTER ===== */
.site-footer {
    background: #111;
    padding: 60px 40px 24px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover { background: var(--green-light); }

.footer-col h5 {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--green-light); }

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

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--green-pale);
    border-top-color: var(--green-mid);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PRODUCT QUICK VIEW ===== */
.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px;
}

.product-modal-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.product-modal-info h2 {
    font-size: 28px;
    color: var(--green-deep);
    margin-bottom: 12px;
}

.product-modal-desc {
    color: var(--text-mid);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-modal-price {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--green-deep);
    margin-bottom: 24px;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.qty-selector label { font-size: 14px; font-weight: 600; color: var(--text-mid); }

.qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--cream);
    border-radius: 50px;
    padding: 6px 16px;
}

.qty-control button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--green-deep);
    font-weight: 700;
    line-height: 1;
}

.qty-control span { font-size: 16px; font-weight: 700; min-width: 24px; text-align: center; }

.add-to-cart-modal {
    width: 100%;
    background: var(--green-deep);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-modal:hover { background: var(--green-light); }

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-mid);
}

.meta-row span:first-child { width: 80px; font-weight: 600; color: var(--text-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-main { padding: 12px 20px; gap: 12px; }
    .logo-tagline { display: none; }
    .search-bar { display: none; }
    .hero { padding: 48px 20px; }
    .category-nav { padding: 0 20px; }
    .container { padding: 0 20px; }
    .benefits { padding: 32px 20px; }
    .benefits-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .cart-sidebar { width: 100%; }
    .product-modal-body { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .payment-options { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
    .hero-cta { flex-direction: column; }
}
