/* =======================================================================
   TARUSHA FARMS — FRESH PRODUCE & WHATSAPP COMMERCE STYLESHEET
   Brand Identity: Earthy Modern (#1e3b22, #a8c6a1, #f4f1ea, Outfit, Inter)
   ======================================================================= */

/* --- HERO & STORE HEADER --- */
.produce-hero {
    background: linear-gradient(135deg, rgba(30, 59, 34, 0.95), rgba(44, 94, 59, 0.9)), url('assets/farm.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 120px 0 60px;
    position: relative;
    text-align: center;
}

.produce-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 30px;
    background: #f4f1ea;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.produce-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 198, 161, 0.25);
    border: 1px solid rgba(168, 198, 161, 0.45);
    color: #a8c6a1;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.produce-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
}

.produce-hero-lead {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.produce-usp-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.produce-usp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- 10 KM DELIVERY RADIUS CHECKER --- */
.sector-check-section {
    padding: 30px 0 10px;
    background: #f4f1ea;
}

.sector-check-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 30px;
    box-shadow: 0 10px 30px rgba(30, 59, 34, 0.08);
    border: 1px solid rgba(30, 59, 34, 0.1);
    max-width: 860px;
    margin: 0 auto;
}

.sector-check-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.sector-check-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3b22;
}

.sector-check-badge {
    background: #eaf1e7;
    color: #1e3b22;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(30, 59, 34, 0.15);
}

.sector-search-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sector-input-wrapper {
    position: relative;
    flex: 1;
}

.sector-search-input {
    width: 100%;
    padding: 14px 18px 14px 44px;
    border: 1.5px solid #dcd7ce;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    background: #faf8f5;
}

.sector-search-input:focus {
    border-color: #1e3b22;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 59, 34, 0.12);
}

.sector-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a8277;
    pointer-events: none;
}

.sector-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    align-items: center;
}

.sector-quick-chips span {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.sector-chip {
    background: #f4f1ea;
    border: 1px solid #dcd7ce;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1e3b22;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sector-chip:hover {
    background: #1e3b22;
    color: #ffffff;
    border-color: #1e3b22;
}

.sector-result-banner {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.sector-result-banner.success {
    display: flex;
    background: #edf7ee;
    border: 1.5px solid #a3d9a5;
    color: #1b5e20;
}

.sector-result-banner.warning {
    display: flex;
    background: #fff8e1;
    border: 1.5px solid #ffe082;
    color: #795548;
}

/* --- HARVEST DAYS ANNOUNCEMENT BANNER --- */
.harvest-schedule-strip {
    background: #ffffff;
    border-top: 1px solid rgba(30, 59, 34, 0.08);
    border-bottom: 1px solid rgba(30, 59, 34, 0.08);
    padding: 14px 0;
    margin-top: 24px;
}

.harvest-schedule-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #333;
}

.harvest-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eaf1e7;
    color: #1e3b22;
    padding: 5px 14px;
    border-radius: 30px;
    font-weight: 600;
}

.porter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fdf5e6;
    color: #b7791f;
    padding: 5px 14px;
    border-radius: 30px;
    font-weight: 600;
}

/* --- CATEGORY FILTER TABS --- */
.produce-filters-section {
    padding: 24px 0 10px;
    background: #f4f1ea;
}

.produce-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.produce-filter-btn {
    padding: 10px 22px;
    border-radius: 50px;
    border: 1.5px solid #dcd7ce;
    background: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3b22;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.produce-filter-btn:hover {
    border-color: #1e3b22;
    color: #1e3b22;
    background: #edf2eb;
}

.produce-filter-btn.active {
    background: #1e3b22;
    color: #ffffff;
    border-color: #1e3b22;
    box-shadow: 0 4px 12px rgba(30, 59, 34, 0.25);
}

/* --- PRODUCE PRODUCT GRID --- */
.produce-store-section {
    padding: 20px 0 80px;
    background: #f4f1ea;
}

.produce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 26px;
}

.produce-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(30, 59, 34, 0.06);
    border: 1px solid rgba(30, 59, 34, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.produce-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(30, 59, 34, 0.12);
}

.produce-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #edf2eb;
}

.produce-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.produce-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1e3b22;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.produce-card-schedule {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    color: #1e3b22;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(30, 59, 34, 0.15);
}

.produce-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.produce-category-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #55833d;
    margin-bottom: 6px;
}

.produce-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3b22;
    margin-bottom: 6px;
    line-height: 1.3;
}

.produce-unit {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.produce-desc {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 18px;
    flex-grow: 1;
}

.produce-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.produce-price-block {
    display: flex;
    flex-direction: column;
}

.produce-price-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.produce-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e3b22;
}

/* Add to Cart / Quantity Stepper */
.btn-add-cart {
    background: #1e3b22;
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background: #2c5e3b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 59, 34, 0.25);
}

.produce-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: #edf2eb;
    border-radius: 8px;
    padding: 3px;
    border: 1px solid #c5d8c3;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #c5d8c3;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3b22;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.qty-btn:hover {
    background: #1e3b22;
    color: #ffffff;
}

.qty-count {
    min-width: 34px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1e3b22;
}

/* --- FLOATING CART TRIGGER PILL --- */
.floating-cart-pill {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e3b22;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 998;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.25s ease, background 0.2s ease;
    border: 2px solid #a8c6a1;
}

.floating-cart-pill.visible {
    display: flex;
    animation: cartBounce 0.4s ease;
}

.floating-cart-pill:hover {
    background: #152918;
    transform: translateY(-3px) scale(1.02);
}

.cart-pill-count {
    background: #a8c6a1;
    color: #1e3b22;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.85rem;
    font-weight: 800;
}

@keyframes cartBounce {
    0% { transform: scale(0.8) translateY(20px); opacity: 0; }
    60% { transform: scale(1.06) translateY(-4px); opacity: 1; }
    100% { transform: scale(1) translateY(0); }
}

/* --- SLIDE-OUT CART DRAWER --- */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: #ffffff;
    z-index: 1001;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer-overlay.active .cart-drawer {
    transform: translateX(0);
}

.cart-header {
    padding: 20px 24px;
    background: #1e3b22;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

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

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

.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* Cart Item List */
.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #edf2eb;
}

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

.cart-item-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e3b22;
    margin-bottom: 2px;
}

.cart-item-unit {
    font-size: 0.78rem;
    color: #777;
    margin-bottom: 6px;
}

.cart-item-price {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e3b22;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-stepper {
    display: flex;
    align-items: center;
    background: #f4f1ea;
    border-radius: 6px;
    padding: 2px;
}

.cart-stepper-btn {
    width: 26px;
    height: 26px;
    background: #ffffff;
    border: 1px solid #dcd7ce;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-stepper-qty {
    padding: 0 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Cart Section Callouts inside Drawer */
.cart-slot-box, .cart-delivery-box, .cart-details-box {
    background: #faf8f5;
    border: 1px solid #e8e3d8;
    border-radius: 12px;
    padding: 16px;
    margin-top: 18px;
}

.cart-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3b22;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-slot-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1.5px solid #dcd7ce;
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.cart-slot-option input[type="radio"] {
    accent-color: #1e3b22;
}

.cart-slot-option:has(input[type="radio"]:checked) {
    border-color: #1e3b22;
    background: #edf2eb;
}

.porter-disclaimer-box {
    background: #fff9e6;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.82rem;
    color: #664d03;
    line-height: 1.45;
    margin-top: 10px;
}

.cart-input-field {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dcd7ce;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 10px;
    outline: none;
    box-sizing: border-box;
}

.cart-input-field:focus {
    border-color: #1e3b22;
    box-shadow: 0 0 0 2px rgba(30, 59, 34, 0.1);
}

/* Cart Footer & Checkout */
.cart-footer {
    padding: 20px 24px;
    background: #faf8f5;
    border-top: 1px solid #e8e3d8;
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
}

.cart-totals-row.grand-total {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e3b22;
    border-top: 1px solid #dcd7ce;
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 16px;
}

.btn-whatsapp-checkout {
    width: 100%;
    background: #25D366;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-checkout:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-checkout:disabled {
    background: #a8d5b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cart-secure-note {
    text-align: center;
    font-size: 0.78rem;
    color: #777;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .produce-hero {
        padding: 100px 0 40px;
    }
    .sector-check-card {
        padding: 18px;
    }
    .sector-search-row {
        flex-direction: column;
    }
    .produce-grid {
        grid-template-columns: 1fr;
    }
    .cart-drawer {
        max-width: 100%;
    }
    .floating-cart-pill {
        left: 16px;
        right: 16px;
        bottom: 16px;
        justify-content: space-between;
    }
}
