/* =============================================
   RindMangoes — Main Stylesheet (v2 — Fixed)
   Fixes:
   1. Description now styled + visible in checkout
   2. Product card image blink fixed (min-height + bg)
   3. Full Bootstrap container wrapping for responsiveness
   4. Admin side complete card/table/color fixes
   5. All sections wrapped in .container for responsiveness
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary:       #e8820c;
    --primary-dark:  #c96a00;
    --primary-light: #ffd166;
    --accent:        #2d6a4f;
    --accent-light:  #52b788;
    --bg-dark:       #1a0a00;
    --bg-warm:       #fffaf5;
    --bg-card:       #ffffff;
    --text-main:     #1a1a1a;
    --text-muted:    #666666;
    --success:       #2d6a4f;
    --danger:        #c0392b;
    --border:        #e0d5c8;
    --shadow:        0 4px 20px rgba(232,130,12,0.12);
    --shadow-hover:  0 10px 35px rgba(232,130,12,0.22);
    --radius:        14px;
    --radius-sm:     8px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-warm);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.6;
}

/* ===== BOOTSTRAP CONTAINER ===== */
/* FIX #3: All main content now uses .container for proper responsive centering */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ===== HEADER ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 68px;
    background: linear-gradient(135deg, #1a0a00 0%, #3d1c00 100%);
    box-shadow: 0 2px 16px rgba(0,0,0,0.45);
    position: sticky;
    top: 0;
    z-index: 200;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    text-decoration: none;
    white-space: nowrap;
}
.nav ul { list-style: none; display: flex; gap: 6px; }
.nav ul li a {
    color: #f5deb3;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
    display: inline-block;
}
.nav ul li a:hover,
.nav ul li a.active {
    background: rgba(255,209,102,0.15);
    color: var(--primary-light);
}
.cart-icon a {
    color: var(--primary-light);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(255,209,102,0.1);
    transition: background 0.18s;
}
.cart-icon a:hover { background: rgba(255,209,102,0.2); }
.cart-count {
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    padding: 0 4px;
}

/* Mobile nav hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    transition: transform 0.2s;
}

/* ===== HERO ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 60px;
    background: linear-gradient(135deg, #1a0a00 0%, #3d1c00 50%, #5c2d00 100%);
    gap: 48px;
    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.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 560px;
}
.hero-text p {
    font-size: 16px;
    color: #f5deb3;
    margin-bottom: 32px;
    line-height: 1.75;
    max-width: 480px;
    opacity: 0.9;
}
.hero-image { position: relative; z-index: 1; }
.hero-image img {
    width: 420px;
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    object-fit: cover;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,130,12,0.45);
}
.btn-primary:disabled, .btn-primary[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 28px;
    background: var(--accent);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}
.btn-secondary:hover { transform: translateY(-2px); background: #1b4332; }
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: var(--danger);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-danger:hover { background: #922b21; }

/* ===== FEATURED / SHOP SECTION ===== */
.featured-section, .shop-section {
    padding: 64px 0;
}
.featured-section .container,
.shop-section .container {
    padding: 0 40px;
}
.featured-section h2, .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* FIX #5: Prevents image blink — forces stable height with background placeholder */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.22s, box-shadow 0.22s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* FIX #5: Stable image container prevents layout-shift / blink */
.product-card .card-img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-card:hover .card-img-wrap img {
    transform: scale(1.04);
}

.product-card .card-img-wrap img.lazy { opacity: 0; }
.product-card .card-img-wrap img.loaded,
.product-card .card-img-wrap img:not(.lazy) { opacity: 1; }

/* Product badge (sale / out-of-stock) */
.product-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.product-badge.sale    { background: var(--primary); color: #fff; }
.product-badge.out     { background: #888; color: #fff; }

.product-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    padding: 14px 16px 4px;
    line-height: 1.3;
}
/* Shop card description */
.product-card .product-description {
    font-size: 12.5px;
    color: #555;
    line-height: 1.7;
    margin: 4px 14px 10px;
    padding: 10px 12px;
    background: #fff8f0;
    border-radius: 8px;
    border: 1px solid rgba(232, 130, 12, 0.18);
    border-left: 3px solid var(--primary);
    font-style: italic;
}

.product-card .brand, .product-card .variety {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    padding: 0 16px 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.product-price {
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.original-price    { text-decoration: line-through; color: #aaa; font-size: 12px; }
.discounted-price,
.final-price       { color: var(--primary-dark); font-weight: 800; font-size: 17px; }
.discount-badge {
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}
.weight-badge {
    background: #e8f5e9;
    color: var(--accent);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
}
.cart-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 16px;
    margin-top: auto;
}
.cart-form input[type="number"] {
    width: 62px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-warm);
}
.cart-form .btn-primary { padding: 10px 16px; font-size: 13px; flex: 1; border-radius: 10px; }
.no-products { color: var(--text-muted); padding: 24px 0; font-size: 14px; }

/* ===== SHOP HERO ===== */
.shop-hero {
    background: linear-gradient(135deg, #1a0a00, #3d1c00, #5c2d00);
    padding: 56px 0;
    text-align: center;
}
.shop-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-light);
}
.shop-hero p { color: #f5deb3; margin-top: 12px; font-size: 16px; opacity: 0.9; }

/* ===== FILTERS ===== */
.filters {
    padding: 20px 0;
    background: #fff8f0;
    border-bottom: 1px solid var(--border);
}
.filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-form input[type="text"] {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: var(--text-main);
    font-family: 'DM Sans', sans-serif;
    flex: 1;
    min-width: 180px;
    transition: border-color 0.18s;
}
.filter-form input[type="text"]:focus { outline: none; border-color: var(--primary); }
.filter-select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: var(--text-main);
    font-family: 'DM Sans', sans-serif;
}
.filter-form label {
    font-size: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== CART PAGE ===== */
.cart-page-section { padding: 48px 0; }
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.cart-table th, .cart-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}
.cart-table th { background: #fff3e0; color: var(--primary-dark); font-weight: 700; }
.cart-table tbody tr:hover { background: #fffaf5; }
.cart-table tbody tr:last-child td { border-bottom: none; }
.cart-table .cart-total td { background: #fff8f0; font-size: 16px; }
.qty-input {
    width: 68px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

/* ===== CHECKOUT ===== */
/* FIX #1: Description visible in checkout — uses proper text styles */
.checkout-wrapper { padding: 48px 0; }
.checkout-wrapper h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 28px;
}
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.promo-row {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    background: #fff8f0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 4px;
}
.promo-row input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    background: #fff;
}
.promo-row input:focus { outline: none; border-color: var(--primary); }
#promo-msg { font-size: 13px; font-weight: 600; width: 100%; }

.order-summary,
.billing-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.order-summary h2, .billing-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table th {
    background: #fff3e0;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
.summary-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    vertical-align: middle;
}
.summary-table tbody tr:last-child td { border-bottom: none; }
.grand-total td {
    background: #fff8f0;
    font-size: 15px;
    font-weight: 700;
    border-bottom: none;
}

/* Checkout summary description */
.summary-table .product-desc {
    font-size: 12px;
    color: #555;
    display: block;
    margin-top: 6px;
    line-height: 1.65;
    font-style: italic;
    background: #fff8f0;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(232, 130, 12, 0.18);
    border-left: 3px solid var(--primary);
    white-space: normal;
    overflow: visible;
    max-width: 220px;
}
.billing-form { display: flex; flex-direction: column; gap: 14px; }
.billing-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}
.billing-form input,
.billing-form textarea {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    width: 100%;
    background: var(--bg-warm);
    transition: border-color 0.18s, box-shadow 0.18s;
}
.billing-form input:focus,
.billing-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232,130,12,0.12);
}

/* ===== MESSAGES & ALERTS ===== */
.success-message {
    background: #e8f5e9;
    border: 1px solid var(--accent-light);
    padding: 16px 20px;
    border-radius: 10px;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 14px;
}
.error-message {
    background: #ffeaea;
    border: 1px solid #f5c6cb;
    padding: 16px 20px;
    border-radius: 10px;
    color: var(--danger);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a0a00;
    color: #f5deb3;
    padding: 52px 0 24px;
    margin-top: auto;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-light);
    font-size: 20px;
    margin-bottom: 10px;
}
.footer-brand p { font-size: 13px; color: #c8956c; line-height: 1.75; }
.footer h4 { color: var(--primary-light); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-links ul, .footer-varieties ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links ul li a { color: #c8956c; font-size: 13px; text-decoration: none; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--primary-light); }
.footer-varieties ul li { color: #c8956c; font-size: 13px; }
.footer-contact p { font-size: 13px; color: #c8956c; margin-bottom: 8px; line-height: 1.6; }
.footer-bottom {
    border-top: 1px solid #3d1c00;
    padding-top: 18px;
    text-align: center;
    color: #a06040;
    font-size: 12px;
}

/* ===== MAIN CONTENT ===== */
.main-content { flex: 1; }

/* ===== POPUP ===== */
.cart-popup {
    position: fixed;
    top: 80px;
    right: 24px;
    background: var(--success);
    color: #fff;
    padding: 13px 24px;
    border-radius: 12px;
    display: none;
    z-index: 9999;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.22);
    max-width: 300px;
    animation: popIn 0.22s ease;
}
@keyframes popIn {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ===== WHY SECTION (homepage) ===== */
.why-section {
    padding: 64px 0;
    background: #fff8f0;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.why-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.why-card .icon { font-size: 36px; margin-bottom: 14px; display: block; }
.why-card h3 { font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; font-size: 15px; }
.why-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .checkout-container { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .about-cards { grid-template-columns: 1fr 1fr; }
    .hero { padding: 60px 40px; }
    .hero-text h1 { font-size: 36px; }
}

@media (max-width: 768px) {
    .header { padding: 0 16px; }
    .nav { display: none; }
    .nav.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: #1a0a00; padding: 12px 16px; border-top: 1px solid #3d1c00; z-index: 199; }
    .nav.open ul { flex-direction: column; gap: 4px; }
    .nav-toggle { display: flex; }
    .hero { flex-direction: column; padding: 40px 20px; text-align: center; }
    .hero-text h1 { font-size: 28px; }
    .hero-text p { max-width: 100%; }
    .hero-image img { width: 100%; max-width: 380px; margin: 0 auto; }
    .featured-section .container,
    .shop-section .container { padding: 0 16px; }
    .about-cards { grid-template-columns: 1fr; }
    .promo-row { flex-direction: column; }
    .checkout-wrapper h1 { font-size: 24px; }
}

@media (max-width: 600px) {
    /* Hide table headers — we label each row inline instead */
    .summary-table thead { display: none; }

    /* Each product row becomes its own card */
    .summary-table tbody tr[data-id] {
        display: block;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 14px;
        margin-bottom: 12px;
    }

    /* All cells become block rows */
    .summary-table tbody tr[data-id] td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 5px 0;
        border: none;
        font-size: 13px;
    }

    /* Product name + description cell: full width stacked */
    .summary-table tbody tr[data-id] td:first-child {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 6px;
    }

    /* Description box full width on mobile */
    .summary-table .product-desc {
        max-width: 100%;
        margin-top: 8px;
    }

    /* Add labels before price/qty/subtotal cells */
    .summary-table tbody tr[data-id] td:nth-child(2)::before {
        content: "Price";
        font-weight: 700;
        color: var(--text-muted);
        font-size: 12px;
        min-width: 70px;
    }
    .summary-table tbody tr[data-id] td:nth-child(3)::before {
        content: "Qty";
        font-weight: 700;
        color: var(--text-muted);
        font-size: 12px;
        min-width: 70px;
        align-self: center;
    }
    .summary-table tbody tr[data-id] td:nth-child(4)::before {
        content: "Subtotal";
        font-weight: 700;
        color: var(--text-muted);
        font-size: 12px;
        min-width: 70px;
    }

    /* Remove button cell: right-align */
    .summary-table tbody tr[data-id] td:nth-child(5) {
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid var(--border);
        margin-top: 4px;
    }

    /* Grand total and promo rows stay as normal cells */
    .summary-table tr.grand-total,
    .summary-table tr.grand-total td {
        display: table;
        width: 100%;
        border-collapse: collapse;
    }
    .summary-table tr.grand-total td {
        display: table-cell;
        padding: 12px;
        border-top: 2px solid var(--border);
    }

    /* Promo discount row */
    .summary-table tr:not([data-id]):not(.grand-total) td {
        display: table-cell;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .cart-table th, .cart-table td { padding: 10px 12px; }
    .footer-content { grid-template-columns: 1fr; }
}
/* ===== ABOUT PAGE — REWRITE ===== */

.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.section-header p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* About Hero */
.about-hero {
    background: linear-gradient(135deg, #1a0a00 0%, #3d1c00 55%, #5c2d00 100%);
    padding: 80px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    overflow: hidden;
}
.about-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
}
.about-hero-inner .section-eyebrow {
    color: var(--primary-light);
    opacity: 0.8;
}
.about-hero-inner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1.15;
    margin: 10px 0 18px;
}
.about-hero-inner h1 em {
    font-style: italic;
    color: #ffb347;
}
.about-hero-inner p {
    font-size: 15px;
    color: #f5deb3;
    line-height: 1.75;
    opacity: 0.9;
    margin-bottom: 24px;
}
.about-hero-visual {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}
.about-orchard-img {
    width: 380px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #5c2d00, #e8820c);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.about-orchard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-hero-stat {
    position: absolute;
    bottom: -16px;
    left: -20px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}
.about-hero-stat.stat-2 {
    left: auto;
    right: -20px;
    bottom: 60px;
}
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}
.stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
    text-align: center;
}

/* About Story */
.about-story {
    padding: 72px 0;
    background: var(--bg-warm);
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.story-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 10px 0 18px;
    line-height: 1.25;
}
.story-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 14px;
}
.story-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.story-feat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.story-feat:hover { transform: translateX(4px); }
.feat-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}
.story-feat strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
}
.story-feat p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* About Varieties */
.about-varieties {
    padding: 72px 0;
    background: #fff8f0;
}
.varieties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}
.variety-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.variety-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.variety-icon {
    font-size: 32px;
    margin-bottom: 10px;
}
.variety-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}
.variety-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* About Why */
.about-why {
    padding: 72px 0;
    background: var(--bg-warm);
}
.about-why .section-header { margin-bottom: 36px; }

/* About CTA */
.about-cta {
    background: linear-gradient(135deg, #1a0a00, #3d1c00, #5c2d00);
    padding: 64px 0;
}
.cta-inner {
    text-align: center;
}
.cta-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 12px;
}
.cta-inner p {
    font-size: 15px;
    color: #f5deb3;
    opacity: 0.9;
    margin-bottom: 28px;
}

/* ===== CONTACT PAGE — REWRITE ===== */

.contact-hero {
    background: linear-gradient(135deg, #1a0a00 0%, #3d1c00 55%, #5c2d00 100%);
    padding: 72px 0 64px;
    text-align: center;
}
.contact-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1.15;
    margin: 10px 0 16px;
}
.contact-hero p {
    font-size: 15px;
    color: #f5deb3;
    opacity: 0.9;
    max-width: 480px;
    margin: 0 auto;
}

.contact-section { padding: 56px 0 72px; }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 36px;
    align-items: start;
}

.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.contact-form-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}
.form-group input,
.form-group textarea {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-warm);
    transition: border-color 0.18s, box-shadow 0.18s;
    width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232,130,12,0.12);
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.info-card-accent {
    background: #fff8f0;
    border-color: rgba(232,130,12,0.2);
}
.info-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.info-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.info-item strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.info-item span {
    font-size: 14px;
    color: var(--text-main);
}

/* FAQ accordion */
.faq-items { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.faq-item summary {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
    padding: 0 14px 12px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ===== RESPONSIVE — About & Contact ===== */
@media (max-width: 992px) {
    .about-hero { padding: 60px 40px; gap: 32px; }
    .about-hero-inner h1 { font-size: 34px; }
    .about-orchard-img { width: 300px; height: 220px; }
    .story-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .about-hero { flex-direction: column; padding: 48px 20px; text-align: center; }
    .about-hero-inner h1 { font-size: 28px; }
    .about-hero-visual { display: none; }
    .contact-hero h1 { font-size: 28px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-card { padding: 24px; }
    .cta-inner h2 { font-size: 24px; }
}
/* ===== GIFT PAGE ===== */

.gift-hero {
    background: linear-gradient(135deg, #1a0a00 0%, #3d1c00 55%, #5c2d00 100%);
    padding: 72px 60px 64px;
    max-width: 100%;
}
.gift-hero-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.gift-hero-inner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1.15;
    margin: 10px 0 16px;
}
.gift-hero-inner h1 em { font-style: italic; color: #ffb347; }
.gift-hero-inner p { font-size: 15px; color: #f5deb3; opacity: 0.9; line-height: 1.75; margin-bottom: 24px; }
.gift-hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gift-badge {
    background: rgba(255,209,102,0.15);
    border: 1px solid rgba(255,209,102,0.3);
    color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Steps bar */
.gift-steps-bar {
    background: #fff8f0;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.gift-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.gift-step {
    display: flex;
    align-items: center;
    gap: 12px;
}
.step-num {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
}
.gift-step strong { display: block; font-size: 13px; font-weight: 700; color: var(--text-main); }
.gift-step p { font-size: 12px; color: var(--text-muted); margin: 0; }
.gift-step-arrow { font-size: 20px; color: var(--primary); opacity: 0.5; }

/* Main section */
.gift-section { padding: 48px 0 64px; }

.gift-form-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.gift-form-heading { margin-bottom: 24px; }
.gift-step-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.gift-form-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.gift-form-heading p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Catalogue */
.gift-catalogue { display: flex; flex-direction: column; gap: 16px; }

.gift-item {
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-warm);
}
.gift-item-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,130,12,0.1);
    background: #fff;
}

.gift-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
}
.gift-item-header input[type="checkbox"] { display: none; }

.gift-item-img-wrap {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5ece0;
    position: relative;
}
.gift-item-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.gift-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: #fff8f0;
}

.gift-item-info { flex: 1; }
.gift-item-info h3 { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 3px; }
.gift-item-info p { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 0; }

.gift-check-indicator {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.gift-item-selected .gift-check-indicator {
    background: var(--primary);
    border-color: var(--primary);
}
.check-icon { font-size: 13px; color: #fff; display: none; }
.gift-item-selected .check-icon { display: block; }

/* Options */
.gift-item-options {
    border-top: 1px solid var(--border);
    background: #fff;
}
.gift-options-inner {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    padding: 16px 18px;
}
.gift-option-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.gift-option-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-warm);
    color: var(--text-main);
}
.gift-option-group select:focus { outline: none; border-color: var(--primary); }

.gift-qty-wrap { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn {
    width: 36px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    color: var(--primary-dark);
    font-weight: 700;
    transition: background 0.15s;
    flex-shrink: 0;
}
.qty-btn:hover { background: #ffe8cc; }
.gift-qty-input {
    width: 52px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-main);
    font-weight: 700;
    -moz-appearance: textfield;
}
.gift-qty-input::-webkit-inner-spin-button,
.gift-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.gift-item-subtotal {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    white-space: nowrap;
}

/* Total bar */
.gift-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff3e0;
    border: 1px solid rgba(232,130,12,0.25);
    border-radius: 10px;
    padding: 14px 20px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}
.gift-total-bar strong { font-size: 22px; color: var(--primary-dark); font-weight: 800; }

/* Details grid */
.gift-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.gift-details-card {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
}
.gift-details-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-main); }
.form-group .req { color: var(--danger); }
.form-group input,
.form-group textarea {
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    background: #fff;
    width: 100%;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,130,12,0.12);
}

/* Summary + Submit */
.gift-submit-area { text-align: center; }

.gift-order-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: var(--shadow);
}
.gift-order-summary h3 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.gift-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid #f5f0eb;
    color: var(--text-main);
}
.gift-summary-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: right;
    margin-top: 12px;
}
.gift-submit-btn {
    padding: 16px 48px;
    font-size: 16px;
    border-radius: 30px;
}
.gift-submit-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}
.gift-success {
    font-size: 15px;
    padding: 20px 24px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Why section */
.gift-why {
    padding: 64px 0;
    background: #fff8f0;
}
.gift-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.gift-why-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gift-why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.gift-why-card span { font-size: 32px; display: block; margin-bottom: 12px; }
.gift-why-card h3 { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.gift-why-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* Responsive */
@media (max-width: 768px) {
    .gift-hero { padding: 56px 20px 48px; }
    .gift-hero-inner h1 { font-size: 30px; }
    .gift-options-inner { grid-template-columns: 1fr 1fr; }
    .gift-item-subtotal-wrap { grid-column: 1 / -1; }
    .gift-details-grid { grid-template-columns: 1fr; }
    .gift-step-arrow { display: none; }
}
@media (max-width: 480px) {
    .gift-form-section { padding: 20px 16px; }
    .gift-item-header { gap: 10px; padding: 12px 14px; }
    .gift-item-img-wrap { width: 56px; height: 56px; }
    .gift-options-inner { grid-template-columns: 1fr; }
}