/* 
    LAKSHMI FARM - MASTER STYLESHEET 41.0
    Final Production Baseline | High-Density Mobile | Consolidated logic
*/

/* ==========================================
   1. CORE VARIABLES & BASE RESET
   ========================================== */
/* UI Change 5th Apr - Add */ 
:root {
    /* Brand Colors */
    --farm-red: #c62f50;
    --farm-red-dark: #a71222;
    --leaf-green: #2e7d32;
    --mango-gold: #ffb400;
    
    /* UI Surface Colors */
    --text-dark: #2d2d2d;
    --bg-body: #f2f2f2;  /* CHANGE: Darkened background slightly for better mobile contrast for white cards */
    
    /* Elevation & Animation */
    --soft-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Removed below for UI Changes 5th Apr 
:root {
    --farm-red: #c62f50;
    --farm-red-dark: #a71222;
    --leaf-green: #2e7d32;
    --mango-gold: #ffb400;
    --text-dark: #2d2d2d;
    --bg-body: #fdfcfb;
    --soft-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
UI Change 5th Apr */ 

* { margin: 0; padding: 0; box-sizing: border-box !important; }

html, body { 
    width: 100%; 
    overflow-x: hidden; 
    /* This variable will now point to color value  #f7f7f7 soft Grey  in your :root */
    background-color: var(--bg-body) !important; /* Forces the theme color */
    /* Commented UI 5th Apr background-color 
    background-color: var(--bg-body);  */
    font-family: 'Roboto', sans-serif; 
    color: var(--text-dark); 
    line-height: 1.6; 
}

/* Force Roboto for all Data and Input fields */
body, input, textarea, select, button, .price-tag, .item-subtotal, .qty-picker input, .summary-text .value { 
    font-family: 'Roboto', sans-serif !important; 
    font-variant-numeric: tabular-nums;
}

/* Premium Playfair for Headings only */
h1, h2, h3, .mobile-header-title { 
    font-family: 'Playfair Display', serif !important; 
    letter-spacing: 0.5px;
}

.rupee { font-family: 'Roboto', sans-serif !important; font-weight: 400; margin-right: 2px; }   /* font weight Keeps it from looking too thick */
   

/* ==========================================
   2. NAVIGATION (STRICT VISIBILITY)
   ========================================== */
.desktop-nav, .mobile-header, #footer-menu { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); z-index: 9999 !important; }

@media (min-width: 992px) {
    .mobile-header, #footer-menu, .back-btn { display: none !important; }
    .desktop-nav { display: flex !important; position: fixed; top: 0; left: 0; width: 100%; height: 75px; align-items: center; justify-content: space-between; padding: 0 8%; border-bottom: 1px solid #eee; }
    .desktop-nav .nav-links { display: flex !important; gap: 30px; align-items: center; }
    .desktop-nav a { text-decoration: none; color: #333; font-weight: 500; font-size: 15px; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: 0.3s; }
    .desktop-nav a.active-link { color: var(--farm-red) !important; font-weight: 700; border-bottom: 2px solid var(--farm-red); }
}

@media (max-width: 991px) {
    .desktop-nav { display: none !important; }
    .mobile-header { position: fixed; top: 0; left: 0; width: 100%; height: 70px !important; display: flex !important; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid #eee; }
    .mobile-logo-img { height: 55px !important; width: auto; } /* Larger Mobile Logo */
    
    #footer-menu { 
        display: flex !important; flex-direction: row !important; position: fixed !important; bottom: 0 !important; left: 0 !important; width: 100% !important; 
        height: 65px !important; background-color: #ffffff !important; justify-content: space-around !important; align-items: center !important; 
        border-top: 1px solid #eee !important; box-shadow: 0 -2px 10px rgba(0,0,0,0.05) !important;
    }
    #footer-menu a { text-decoration: none !important; color: #888 !important; text-align: center !important; font-size: 10px !important; flex: 1 !important; display: flex !important; flex-direction: column !important; align-items: center !important; }
    #footer-menu a i { display: block !important; font-size: 1.3rem !important; margin-bottom: 2px !important; }
    #footer-menu a.active-nav { color: var(--farm-red) !important; font-weight: 700 !important; }
}

/* ==========================================
   3. GLOBAL PAGE ELEMENTS
   ========================================== */
.page-content { padding: 20px 5% 100px 5%; max-width: 1240px; margin: 0 auto !important; clear: both; }
.content-boxed { background: #fff; border-radius: 20px; padding: 40px; box-shadow: var(--soft-shadow); margin-bottom: 30px; width: 100%; }

/* Hero Header spacing for Desktop */
/*Added this for 5th Apr UI changes */  
.hero-header {text-align: center; padding: 70px 20px 5px 20px !important; background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, var(--bg-body) 100%); width: 100%; }

/* Commented below 
.hero-header { text-align: center; padding: 85px 20px 10px 20px !important; background: linear-gradient(to bottom, #fff 0%, var(--bg-body) 100%); width: 100%; } */ 

 /* UI Chnage added margin-bottom - 5px to the below*/ 
.hero-header h1 { font-size: 2.2rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dark); margin-bottom: 0px; }  /* Removes gap below title */

 /* UI Chnage added margin reduced from 15 to 10 to the below*/ 
 /* Content : ""  Only used by ::after, but safe for both */
.hero-header .divider { content: ""; display: block; width: 60px; height: 3px; background: var(--farm-red); margin: 10px auto; border-radius: 2px; }
/* nss removed gallery-title::after in the above */ 

/* UI Chnage margin-top reduced from 10 to 5px */ 
.hero-header p { 
    font-size: 1.1rem;  color: #666; font-style: italic; 
    margin-top: 5px !important;    /* Pulls tagline close to title */
    margin-bottom: 0px !important; /* Prevents gap before the line */
}


/* Added 5th Apr UI Chnage The Red Divider "Whoo Factor" */
.hero-header::after { content: ""; display: block; width: 60px; height: 3px; background: var(--farm-red); margin: 15px auto 0 auto;  border-radius: 2px; 
}

.gallery-title { text-align: center; font-size: 1.5rem; margin: 10px 0 10px 0 !important; color: var(--leaf-green); position: relative; width: 100%; border-bottom: none !important; }
.no-dot::after { display: none !important; content: none !important; height: 0 !important; }


/* ==========================================
   4. CARDS & GRIDS (REVISED FOR FLEXBOX)
   ========================================== */
/* Shared Visual Styles - Keep these together */
.practice-card { 
    background: #fff; 
    border-radius: 20px; 
    box-shadow: var(--soft-shadow); 
    border: 1px solid #f0f0f0; 
    transition: 0.3s; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
}


.farm-card { 
    /* flex: Grow | Shrink | Basis */
    flex: 1 1 380px !important; /* Allows cards to grow and fill height equally */
    min-width: 320px !important; /* Ensures cards never get too small to read */
    max-width: 420px !important; /* Prevents cards from getting too wide on huge screens */
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
    border: 1px solid #f0f0f0;
    padding: 40px 30px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.3s;
}

.farm-card:hover, .practice-card:hover { 
    transform: translateY(-10px); 
}

/* Force Flexbox and Centering for the "Why Us" items */
.feature-grid { 
    display: flex !important; 
    flex-wrap: wrap !important; 
    justify-content: center !important; 
    align-items: stretch !important; /* KEY: This forces all cards in a row to the same height */
    gap: 25px !important; 
    padding: 20px 0 !important; 
    width: 100% !important;
}


.farm-card img { width: 120px; height: 120px; object-fit: contain; margin-bottom: 25px; }
.farm-card h3 { 
    min-height: 3em; /* Ensures titles take up same space even if 1 vs 2 lines */
    display: flex;
    align-items: center;
    color: var(--text-dark); 
    margin-bottom: 15px; 
    font-size: 1.3rem; 
}

.farm-card ul { text-align: left; list-style: none; width: fit-content; margin: 0 auto; }
.farm-card ul li { margin-bottom: 10px; position: relative; padding-left: 25px; font-size: 0.95rem; }
.farm-card ul li::before { content: '✔'; position: absolute; left: 0; color: var(--leaf-green); font-weight: bold; }

/* Best Practices Grid */
.practices-grid { 
    display: grid !important; 
    grid-template-columns: 1fr 1fr !important; 
    gap: 30px; 
}


.practice-card img { width: 100%; height: 300px; object-fit: cover; }
.practice-card .p-text { padding: 25px; }
.practice-card h3 { color: var(--leaf-green) !important; margin-bottom: 12px; font-size: 1.4rem; font-weight: 700; }

@media (min-width: 992px) {
    .info-flex { display: flex !important; flex-direction: row !important; align-items: center; gap: 60px; }
    .variety-card { display: flex !important; flex-direction: row !important; align-items: center; padding: 40px; gap: 40px; border-radius: 20px; box-shadow: var(--soft-shadow); width: 100%; }
    .variety-card.reverse { flex-direction: row-reverse !important; background: #fff9ed; }
}
.rounded-img, .v-img img { width: 100%; border-radius: 15px; display: block; }


/* ==========================================
   5. HERO & GALLERY SPECIFICS
   ========================================== */
#hero-slider { margin-top: 75px; width: 100%; background-color: #000; overflow: hidden; }
.splide__slide img { width: 100% !important; height: 80vh; object-fit: cover; display: block; }
.video-hero-container { position: relative !important; width: 100%; height: 70vh; overflow: hidden; background: #000; margin-bottom: 40px; clear: both; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.video-sound-btn { position: absolute !important; bottom: 30px; right: 30px; z-index: 100; width: 50px; height: 50px; border-radius: 50%; border: 2px solid #fff; background: var(--farm-red); display: flex !important; align-items: center; justify-content: center; cursor: pointer; }

#gallery-page .page-content { padding-top: 0 !important; }
#gallery-page .gallery-container { padding-left: 2% !important; padding-right: 2% !important; max-width: 1300px; margin: 0 auto !important; clear: both; }
#gallery-page .gallery-square { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 25px !important; width: 100%; justify-content: center; }

#gallery-page .gallery-square a {
    display: block !important;
    aspect-ratio: 1 / 1 !important; /* Forces a perfect square */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    background-color: #f0f0f0; /* Placeholder color while loading */
}
#gallery-page img { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform 0.5s ease; }

#gallery-page .gallery-square img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* This prevents the thumbnails from stretching */
}

#gallery-page .gallery-square a:hover img {
    transform: scale(1.1); /* Nice zoom effect on hover */
}

/* Safety net for the PhotoSwipe full-screen view */
.pswp__img {
    object-fit: contain !important; /* Forces the image to keep its shape inside the box */
}


/* ==========================================
   6. ORDER PAGE (PREMIUM CHECKOUT UI)
   ========================================== */

/* Main wrapper for the checkout actions */
.order-action-row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-top: 2px solid #f9f9f9;
}

.order-total-display { text-align: left; }

.total-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: -2px;
}

.total-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--leaf-green);
}

#order-page .order-header-box { text-align: center; margin: 10px 0 25px 0; }
#order-page .order-header-box h2 { font-size: 2.6rem; color: var(--leaf-green); font-weight: 700; margin-bottom: 5px; }
#order-page .order-header-box p { font-style: italic; color: #666; font-size: 1rem; }

/* Main Container - Pinned with a Green Top Accent */
#order-page .content-boxed { 
    padding: 30px 40px !important; 
    border-top: 6px solid var(--leaf-green); 
    background: #ffffff;
}

/* 6a. Product Grid & Cards */
#order-page .order-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 20px; margin-bottom: 30px !important; }

.product-card-horizontal { 
    display: flex !important; 
    align-items: center; 
    padding: 15px; 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 15px; 
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.product-card-horizontal:hover { 
    border-color: var(--mango-gold); 
    box-shadow: var(--soft-shadow);
    transform: translateY(-2px);
}

.product-img-box-small { width: 110px; height: 110px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.product-img-box-small img { width: 100%; height: 100%; object-fit: cover; }

.product-info-compact { flex: 1; padding-left: 15px; }
.product-title-row { 
    font-family: 'Roboto', sans-serif !important; 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--text-dark); 
    margin-bottom: 5px;
}

/* Price & Quantity UI */
.qty-picker { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qty-btn { 
    width: 32px; height: 32px; border-radius: 50%; 
    border: 1.5px solid var(--leaf-green); 
    background: #fff; color: var(--leaf-green); 
    font-size: 18px; font-weight: 800; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; 
    transition: 0.2s;
}
.qty-btn:hover { background: var(--leaf-green); color: #fff; }

.qty-picker input { width: 40px !important; text-align: center; border: none; font-size: 1.2rem; font-weight: 700; background: transparent; }
.item-subtotal { font-size: 16px; color: #888; margin-top: 5px; font-weight: 500; }

/* 6b. Delivery Form */
#order-page .delivery-compact-grid { 
    display: grid !important; 
    grid-template-columns: 1fr 1fr !important; 
    gap: 25px; 
    background: #fcfaf5; /* Subtle parchment background to separate from products */
    padding: 25px !important; 
    border-radius: 15px; 
    border: 1px solid #f0e6d2; 
}

.form-group label { font-size: 13px; font-weight: 800; color: var(--leaf-green); text-transform: uppercase; margin-bottom: 6px; display: block; letter-spacing: 0.5px; }
.custom-input { 
    width: 100%; padding: 12px; border: 1.5px solid #e0e0e0; border-radius: 8px; 
    font-size: 15px; background: #fff; transition: 0.3s;
}
.custom-input:focus { border-color: var(--leaf-green); outline: none; box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); }

/* 6c. Summary Bar (The Hero of the page) */
.compact-summary-bar { 
    display: flex !important; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--leaf-green); 
    padding: 15px 35px !important; 
    border-radius: 50px; 
    color: #fff; 
    width: 80% !important; 
    margin: 30px auto 0 auto !important; 
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.25); 
}

.summary-text { font-size: 1.2rem; font-weight: 500; }
.summary-text .value { font-size: 1.8rem; font-weight: 800; color: var(--mango-gold); margin-left: 10px; }

.confirm-order-btn { 
    background: var(--mango-gold) !important; 
    color: #1b331d !important;
    padding: 14px 35px !important;
    border-radius: 12px !important;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 180, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.confirm-order-btn:hover {
    background: var(--leaf-green) !important;
    color: #fff !important;
    transform: scale(1.03);
}


/* Hide floating WhatsApp specifically on this structured page */
#order-page ~ .whatsapp-float { display: none !important;}

/* 6c. Summary Bar (The "Floating Pill" Look) */
.compact-summary-bar { 
    display: flex !important; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--leaf-green); 
    padding: 12px 35px !important; /* Balanced padding */
    border-radius: 50px;           /* Full "Pill" shape looks more modern than 20px */
    color: #fff; 
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.25); 
    width: 85% !important;         /* Slightly wider to prevent text wrapping */
    max-width: 700px;              /* Keeps it centered on wide monitors */
    margin: 30px auto 0 auto !important; 
    border: 2px solid rgba(255,255,255,0.1); /* Subtle inner highlight */
}

/* The Label (Total:) stays elegant */
.summary-text { font-size: 1.1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* The Price (₹ 500) gets the attention */
.summary-text .value { 
    font-size: 1.8rem;              /* Large, but fits the bar height */
    font-weight: 800; 
    color: var(--mango-gold); 
    margin-left: 10px;
    font-family: 'Roboto', sans-serif !important;
}

/* The Button - High Contrast for Clicks */
.confirm-order-btn { 
    background: var(--mango-gold); 
    color: #1b331d;                /* Deep forest green text is easier to read on gold than grey */
    border: none; 
    padding: 12px 30px; 
    border-radius: 50px; 
    font-weight: 900; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.confirm-order-btn:hover { 
    background: #ffffff; 
    transform: scale(1.05) translateY(-2px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ==========================================
   ORDER SUCCESS - THE "LAYERED" DESIGN (V6)
   ========================================== */


#order-success-page { background: var(--bg-body); min-height: 90vh; }

.success-wrapper { 
    /* 75px Clearance + 20px Gap = 95px */
    padding: 95px 20px 60px 20px !important; 
}

.success-card {
    max-width: 1000px !important;
    margin: 0 auto !important;
    background: #fff;
    border-radius: 20px;
    overflow: hidden; 
    position: relative; /* Anchor for the image */
    box-shadow: 0 25px 60px rgba(27, 51, 29, 0.1);
    padding-bottom: 200px;
}

/* 1. Header */
.success-header-premium {
    background: linear-gradient(135deg, #1b331d 0%, #2e7d32 100%);
    padding: 18px 20px !important;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 10; /* Stays on very top */
}



/* 2. The Dashboard (Top Layer) */
/* Ensure both containers start at the same vertical point */
.success-dashboard {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    padding: 40px 50px;
    align-items: flex-start; /* Pins both columns to the top */
}



/* 3. The Mango Basket (Bottom Layer) */
.basket-background-layer {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 420px; /* Large size */
    opacity: 0.95;
    z-index: 0; /* Sits behind the text */
    pointer-events: none; /* Clicking "through" the image to the table */
}

/* Fix for concatenated labels */
.detail-label { 
    font-size: 0.75rem; 
    font-weight: 800;
    flex: 0 0 100px !important; /* Fixed width for the label column  Forces label to take exactly 100px width */
    color: var(--text-dark) !important; /* Changed from Gold to Green for better contrast */
    text-transform: uppercase; 
    margin-right: 10px; /* Forces a gap before the name/address starts */
}


.dash-section-title {
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--leaf-green); /* Using brand green for titles */
    font-weight: 800;
    display: flex;
    align-items: center;
    margin-top: 0 !important;    /* Forces both titles to start at the exact same top line */
    margin-bottom: 20px !important; 
    height: 24px;                /* Forces a consistent height for the title area */
}

/* Ensure the table fills the width properly */
.receipt-table-premium {
    width: 100% !important;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed; /* CRITICAL: This forces headers and cells to align to percentages */
}


.receipt-table-premium th { 
    font-size: 0.85rem; 
    color: #333 !important; /* Darker than the current gray */
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0; /* Thicker line for header separation */
    font-weight: 800 !important; /* Bold as requested */
    text-align: left; /* Default alignment */
}

/* --- 4. SPACING & LAYOUT --- */
/* Increase table row height to balance the height of the left column */
/* Ensure data cells match header alignment exactly */
.receipt-table-premium td {
    padding: 22px 0 !important;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.95rem;
    font-weight: 400 !important;
}

.detail-row {
    display: flex !important;
    align-items: flex-start; /* Keeps "Address" label at the top of a long address */
    margin-bottom: 10px;
    gap: 10px;
}

/* Receipt Side adjustment for readability over image */

.receipt-side-over {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 0 15px 15px 15px !important; /* Set top padding to 0 */
    z-index: 5;
}


/* Ensure Total Row feels like a solid completion bar */
.total-row-highlight td { 
    background: rgba(46, 125, 50, 0.08) !important; /* Slightly stronger tint */
    padding: 20px 15px !important; /* Horizontal padding ensures the color spans the width */
    font-weight: 800;
    color: #1b331d;
    border: none !important;
}


/* Ensure the button block has correct margins on Desktop */
/* --- 5. Action Stack Tightening (Mobile) --- */
.action-stack {
    /* Top: 0 | Right: 15px | Bottom: 10px | Left: 15px */
    padding: 0 15px 10px 15px !important; 
    /* Pulls button up toward the table */
    margin-top: -8px !important; 
    /* Centers button and text */
    text-align: center !important; 
    /* Small buffer at the very bottom of the card */
    margin-bottom: 5px !important; 
    /* Ensures button is clickable over any stray layers */
    position: relative;
    z-index: 10;
}

.btn-premium-home {
    background: var(--leaf-green);
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 800;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(27, 51, 29, 0.2);
}

/* Make the contact footer readable */
.queries-text-inside { 
    color: #555 !important; /* Darker gray */
    font-size: 0.95rem !important; /* Slightly larger */
    margin-top: 5px !important; 
}



/* Forces the Tick and Title into one centered row */
.header-flex-centered {
    display: flex !important;
    flex-direction: row !important; /* Ensures side-by-side layout */
    align-items: center !important;  /* Perfectly centers icon and text vertically */
    justify-content: center !important; /* Centers the whole group in the green bar */
    gap: 12px; /* This is the space between the gold tick and the words */
    margin-bottom: 5px; /* Space between this row and the subtitle below it */
}

/* Remove default margin from h2 so it doesn't push the line height up */
.success-title {
    margin: 0 !important;
    display: inline-block !important; /* Ensures it doesn't force a new line */
    font-size: 1.6rem !important; /* Bumped up from the previous suggestion */
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* To have gold color tick mark on the header. otherwise, this inherits success-header-premium properties */ 
#order-success-page .success-gold-check { font-size: 2.2rem !important;  margin-right: 5px; color: var(--mango-gold) !important; }

/* Make the Order ID stand out in Gold */
.order-id-highlight {
    color: var(--mango-gold) !important;
    font-weight: 900;
    margin: 0 4px; /* Gives the number a tiny bit of breathing room */
}

/* Improve the subtitle readability on the green background */
.success-subtitle {
    font-size: 1rem !important;
    opacity: 0.9;
    margin-top: 8px !important;
    font-style: italic;
    font-weight: 300;
}

/* Add these specific alignment rules */
.receipt-table-premium th:nth-child(2), 
.receipt-table-premium td:nth-child(2) { 
    text-align: center; /* Center Qty */
    }

.receipt-table-premium th:nth-child(3),     
.receipt-table-premium td:nth-child(3),
.receipt-table-premium th:nth-child(4), 
.receipt-table-premium td:nth-child(4) { 
    text-align: right; /* Right align Rate and Amount */
    }

/* Ensure the total value stays aligned to the right */
.total-row-highlight td:last-child {
    text-align: right;
    font-weight: 800;
    }


/* ==========================================
   8. FOOTER (REIMAGINED)
   ========================================== */
    .farm-footer { 
        background: #1b331d; 
        color: #e8ede9; 
        /* Very small vertical padding to reduce height */
        padding: 25px 5% !important; 
        display: flex !important; 
        flex-wrap: wrap; 
        /* This centers the group of items on the screen */
        justify-content: center; 
        align-items: center; 
        border-top: 3px solid var(--mango-gold); 
        /* Gap between text and map */
        gap: 40px; 
    }

    .footer-col {
        /* Prevents the text from taking up too much width */
        flex: 0 1 auto; 
        text-align: center; /* Centering the text as requested */
    }

    .footer-col h3 { 
        color: var(--mango-gold); 
        font-family: 'Playfair Display', serif; 
        margin-bottom: 8px; 
        font-size: 1.3rem; /* Smaller heading */
    }

    .footer-col p { 
        line-height: 1.4; 
        font-size: 0.95rem; /* Smaller body text */
        opacity: 0.85; 
        margin-bottom: 4px;
    }

    .footer-map-container { 
        flex: 0 1 350px; /* Limits the width of the map */
    }

    .footer-map-container img { 
        width: 100%; 
        /* Significantly reduced height */
        height: 160px !important; 
        object-fit: cover; 
        border-radius: 10px; 
        border: 1px solid rgba(255,255,255,0.1); 
        filter: grayscale(0.2) contrast(1.1);
    }


/* ==========================================
   7. MOBILE OVERRIDES (CLEAN & CONSOLIDATED)
   ========================================== */
@media (max-width: 991px) {

    /* 1. GLOBAL LAYOUT & GUTTERS */
    .page-content { 
        display: block !important; 
        width: 100% !important; 
        /* SHORTHAND: top | right | bottom | left */ 
        /* Top Padding is set to 0 so that hero header title can move the content below to logo line */
        padding: 0px 14px 100px 14px !important;  
        background-color: var(--bg-body) !important;
    }

    /* 2. UNIVERSAL RESET (Stacks everything vertically) */
    .feature-grid, .practices-grid, .info-flex, .variety-card, 
    #order-page .order-grid { 
        display: flex !important; 
        flex-direction: column !important; 
        padding: 0 !important; 
        margin: 0 !important; 
        width: auto !important; 
        text-align: center;  
        gap: 12px !important; /* Unified tight gap for all pages */
    }

    /* 3. CARD BASICS (Universal Visuals) */
   .content-boxed, .farm-card, .practice-card, .variety-card { 
        width: 100% !important; 
        min-width: 0 !important;
        margin: 0 !important;       /* FIXED: Removed margin-bottom to stop double spacing */
        padding: 15px !important;
        border-radius: 20px !important; 
        background-color: #ffffff !important; 
        box-shadow: var(--soft-shadow) !important;
        display: flex !important; 
        flex-direction: column !important; 
    }

    /* 4. FARM-CARD INTERNAL TIGHTENING */
    .farm-card { height: auto !important; min-height: 0 !important; flex: 0 0 auto !important; padding-bottom: 20px !important; }
    .farm-card img { width: 85px !important; height: 85px !important; margin-bottom: 8px !important; }
    .farm-card h3 { min-height: 0 !important; margin-top: 5px !important; font-size: 1.1rem !important; margin-bottom: 5px !important; }
    .farm-card ul li { margin-top: 3px !important; margin-bottom: 3px !important; font-size: 0.9rem !important; }

    /* 5. PRACTICE CARD & HERO HEADER */
    .practice-card h3 { margin: 5px; }  
    .practice-card .p-text { padding: 0px 5px 0px 15px; text-align: left; line-height: 1.2; }  
    /* SHORTHAND: top | right | bottom | left */ 
    /*for changing hero header for best practices, Whyus and Gallery*/ 
    .hero-header { padding: 75x 15px 5px 15px !important; letter-spacing: 1px; margin-bottom: 0 !important; }
    .hero-header h1 { font-size: 1.1rem !important; letter-spacing: 1px; margin-bottom: 0 !important; }
    .hero-header p { font-size: 0.85rem !important; margin-top: 2px !important; }
    .hero-header::after { margin: 8px auto 0 auto !important; width: 40px !important; }
    .hero-header .divider { margin: 5px auto !important; }

    /* 6. ORDER PAGE SPECIFICS (CONSOLIDATED) */
    #order-page .page-content { padding-top: 72px !important; } /* Perfect clearance for 70px header */
    #order-page .order-header-box { margin-bottom: 2px !important; padding: 0 !important; }
    #order-page .order-header-box h2 { font-size: 1rem !important; margin: 0 !important; }
    #order-page .order-header-box p { display: none !important; } /* Tagline hidden for space */
   /* Product Grid Gaps */
    #order-page .order-grid { 
        gap: 2px !important; 
        margin-bottom: 5px !important; /* FIXED: Reduced gap before Delivery Form */
    }
    #order-page .content-boxed { padding: 8px 10px !important; border-top-width: 3px !important; }
    /* High-Density Horizontal Product Cards */
    .product-card-horizontal {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 2px !important;
        margin-bottom: 0px !important;
        background: #fff;
        border-radius: 12px;
        border: 1px solid #eee;
    }

    .product-img-box-small { width: 65px !important; height: 65px !important; border-radius: 8px !important; flex-shrink: 0; }
    .product-info-compact { padding-left: 8px !important; display: flex; flex-direction: column; flex: 1; text-align: left !important; }
    .product-info-compact h3 { font-size: 0.95rem !important; margin-bottom: 0px !important; }
    .item-subtotal { font-size: 14px !important; margin-top: 0px !important; }
    .qty-picker { margin-top: 5px !important; gap: 8px !important; }
    .qty-btn { width: 25px !important; height: 25px !important; font-size: 12px !important; }
    .qty-picker input { width: 25px !important; font-size: 0.9rem !important; }

    /* Delivery Form (Specific Stacking & Tightening) */
    #order-page .delivery-compact-grid {
        display: flex !important;
        flex-direction: column !important;
        background: #fcfaf5 !important;
        border: 1px solid #f0e6d2 !important;
        border-radius: 15px !important;
        padding: 2px !important; 
        gap: 2px !important; 
        margin-top: 2px !important;
    }
    .form-group { margin-bottom: 5px !important; }
    .form-group label { font-size: 11px !important; margin-bottom: 3px !important; }
    .custom-input { padding: 8px 10px !important; font-size: 14px !important; }
    #order-page textarea.custom-input { height: 75px !important; }

    /* App-Style Floating Action Bar */
    .order-action-row {
        position: fixed !important;
        bottom: 65px; 
        left: 0;
        width: 100% !important;
        background: #1b331d !important;
        padding: 0px 15px !important;
        height: 40px !important; /* Forced height to ensure it stays thin */
        z-index: 9999;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    }

    .order-total-display { display: flex !important; align-items: baseline !important; gap: 6px !important; }
    .total-label { color: rgba(255,255,255,0.7); font-size: 0.65rem !important; margin: 0 !important; font-weight: 700; }
    .total-amount { color: var(--mango-gold) !important; font-size: 1.2rem !important; margin: 0 !important; }
    .confirm-order-btn { padding: 6px 15px !important; font-size: 0.8rem !important; height: 32px !important; border-radius: 6px !important; background: var(--mango-gold) !important; color: #1b331d !important; }

    /* 7. GALLERY PAGE SPECIFICS */
    #gallery-page .gallery-container { padding: 0 6px !important; }
    #gallery-page .gallery-square { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    #gallery-page .gallery-container h2 { font-size: 1rem; color: var(--leaf-green); font-weight: 700; margin: 0; }

    /* 8. SUCCESS PAGE SPECIFICS */
    /* --- 1. Success Bar Tightening (Mobile) --- */
    /* Reduce padding of the green header box */
    .success-header-premium {
        padding: 10px 10px !important; /* Thinner bar */
        min-height: auto !important;
    }
    /* Shrink the "Order #270 Confirmed" text */
    .success-title {
        font-size: 0.95rem !important; /* Smaller, cleaner title */
        font-weight: 800 !important;
    }
    /* Shrink the checkmark icon */
    #order-success-page .success-gold-check {
        font-size: 1.2rem !important;
        margin-right: 0px;
    }
    /* Shrink the subtitle 
    .success-subtitle {
        font-size: 0.8rem !important;
        margin-top: 2px !important;
        line-height: 1.2;
    } */ 

    /* Completely hide the tagline to save space */
    .success-subtitle { 
     display: none !important; 
    }
    /* Reduce spacing between the icon/title group and subtitle */
    .header-flex-centered {
        display: flex !important;
        flex-direction: row !important;
        white-space: nowrap !important; /* Forces one line */
        gap: 6px !important;
        margin-bottom: 0 !important;
    }
    /* Reduce the width of the label column so the Name/Address have more room */
    .detail-label {
        flex: 0 0 70px !important;    /* Shrink from 100px to 80px */
        font-size: 0.65rem !important; /* Smaller label text */
        letter-spacing: 0.5px;
        margin-right: 8px !important;
    }

    /* Shrink the font of the actual data */
    .detail-value {
        font-size: 0.85rem !important; /* Slightly smaller for mobile */
        line-height: 1.3 !important;   /* Tighter lines */
        font-weight: 500 !important;
    }

    /* Reduce the vertical gap between lines (Recipient -> Whatsapp -> Address) */
    .detail-row {
        margin-bottom: 5px !important; /* Tighter vertical stacking */
    }

    /* Specific fix for long address strings */
    .address-text {
        word-break: break-word;        /* Prevents horizontal scrolling if address is one long word */
    }

    /* Section title adjustment */
    .dash-section-title {
        font-size: 0.85rem !important; /* Smaller "DELIVERY DETAILS" heading */
        margin-bottom: 5px !important;
    }
    .success-wrapper { padding: 80px 20px 60px 20px !important; } /*Chnage this to adjust the gap below logo line */ 
    /* Reduce the overall padding of the white card's content area */
    /* Shrunk from default padding */ 
     /* Ensure no extra margin is pushing it down */
    .success-dashboard { grid-template-columns: 1fr; padding: 5px 10px 0px 10px  !important; margin-top: 0 !important; gap: 2px !important; }

    /* Remove any extra top margin from the "ORDER SUMMARY" header */
    .receipt-side-over .dash-section-title {
        margin-top: 0 !important;
        margin-bottom: 5px !important; /* Tighten the space before the table starts */
    }

/* --- 3. Order Summary Table (Mobile Only) --- */
/* Reduce the overall padding of the summary card */
    .receipt-side-over {
        padding: 10px !important;
        background: #fff !important; /* Cleaner white background for mobile */
    }

    /* Force specific column widths for mobile to prevent "QTYRATEAMOUNT" overlap */
    .receipt-table-premium {
        table-layout: fixed !important; /* Ensures columns respect percentages */
        width: 100% !important;

    }

/* Re-balance column widths to separate RATE and AMOUNT */
/* ITEM (38%) | QTY (12%) | RATE (25%) | AMOUNT (25%) */
    .receipt-table-premium th:nth-child(1), 
    .receipt-table-premium td:nth-child(1) { 
        width: 38% !important; 
    }
    .receipt-table-premium th:nth-child(2), 
    .receipt-table-premium td:nth-child(2) { 
        width: 12% !important; 
    }
    .receipt-table-premium th:nth-child(3), 
    .receipt-table-premium td:nth-child(3) { 
        width: 25% !important; 
        padding-right: 10px !important; /* This forces the gap from AMOUNT */
    }
    .receipt-table-premium th:nth-child(4), 
    .receipt-table-premium td:nth-child(4) { 
        width: 25% !important; 
    }

    /* Shrink header text to fit */
    .receipt-table-premium th {
        font-size: 0.6rem !important; /* Smaller, sharper headers */
        padding-bottom: 4px !important; /* Reduced gap between header and first row */
        letter-spacing: 0.5px !important;
        color: #888 !important;
        white-space: nowrap !important;
    }

    /* Shrink data row padding and font */
    .receipt-table-premium td {
        padding: 3px 0 !important; /* REDUCED from 22px to keep it compact */
        font-size: 0.8rem !important;  /* Readable but small */
        line-height: 1 !important;
    }

    /* Ensure the Item Name wraps neatly if it's long */
    .item-name {
        padding-right: 5px !important;
        Padding-top:4px !important;
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        word-break: normal !important; /* Better for natural wrapping */
    }

    /* Total Row tightening */
    .total-row-highlight td {
        padding: 5px 8px !important;
        font-size: 0.85rem !important;
    }

    /* Ensure the Rupee symbol and text don't touch */
    .receipt-table-premium td:nth-child(3), 
    .receipt-table-premium td:nth-child(4) {
        padding-left: 2px !important; 
    }
    .basket-background-layer {
        position: absolute;
        bottom: -15px;
        right: 40px !important; /* Changed from -10px to 40px to push it leftward */
        width: 380px; 
        opacity: 0.9;
        z-index: 1; 
        pointer-events: none;
    }
    /* Hide the large mango image on mobile to save space */
    .basket-background-layer {
        display: none !important;
    } 

    .receipt-side-over { background: none; 
        padding-bottom: 0px !important; /* Reduce space after the Total row */}
    
    .action-stack {
        padding-top: 0px !important; /* Mobile padding */
        text-align: center !important; /* Centers button on mobile */
        margin-top: -5px !important;
        /* Ensure it sits above the background mangoes image */
        margin-bottom: 10px; 
        padding-bottom:10px;
    }
    .btn-premium-home {
        display: inline-block !important;
        width: 100% !important; /* Full width button looks better on phones */
        max-width: 280px;
    }
    /* Reduce the bottom padding of the card now that the image is gone */
    .success-card {
        padding-bottom: 15px !important;
    }

    /* 9. SLIDER & FOOTER */
    .splide__slide img { height: 50vh !important; object-fit: contain !important; }
    .farm-footer { 
        padding: 15px 10px 75px 10px !important; 
        flex-direction: column !important;
        gap: 5px !important; 
        align-items: center !important;
    }
    .footer-col { flex: none !important; width: 100% !important; text-align: center !important; margin-bottom: 5px !important; }
    .footer-col h3 { font-size: 1.1rem !important; margin-bottom: 2px !important; }
    .footer-col p { font-size: 0.85rem !important; line-height: 1.2 !important; margin-bottom: 0 !important; }
    .footer-map-container { flex: none !important; width: 100% !important; max-width: 280px !important; height: auto !important; margin: 0 !important; }
    .footer-map-container img { height: 110px !important; width: 100% !important; object-fit: cover !important; border-radius: 8px; }
}

/* ==========================================
   DESKTOP & LAPTOP OVERRIDES (992px and up)
   ========================================== */
@media (min-width: 992px) {

    /* 1. GLOBAL PAGE WIDTH */
    .page-content {
        max-width: 1400px !important; 
        padding-left: 5% !important;
        padding-right: 5% !important;
        margin: 0 auto;
    }

    /* 2. ORDER PAGE SPECIFIC: Make this much narrower than other pages */
     #order-page .page-content {
    max-width: 1050px !important; /* Increased width for better balance */
    padding-top: 25px !important;  /* Pulls the container up close to the header */
    }

    #order-page .order-header-box {
    margin-bottom: 15px !important; /* Reduces gap between tagline and the card */
    }
    
    #order-page .order-header-box h2 {
        font-size: 1.5rem !important; /* Smaller header for Order page */
    }

    #order-page .content-boxed {
        padding: 30px 40px !important; /* Slightly more internal breathing room */
    }

    .order-action-row {
        padding: 20px 0 !important;
        background: transparent !important;
        border-top: 1px solid #eee;
    }
    #order-page .delivery-compact-grid {
       align-items: stretch !important; /* Forces columns to be equal height */
        gap: 25px !important;
    }
    /* Forces the address box to match the two input fields on the left */
    /* Makes the textarea grow to fill the container */
    #order-page textarea.custom-input {
        flex: 1 !important; /* This is the key line for alignment */
        min-height: 120px;
        resize: none !important;
    }
    /* Standardize left-side input height for a cleaner look */
    #order-page input.custom-input {
        height: 45px;
    }
    #order-page .form-group {
        margin-bottom: 0; /* Let the grid gap handle the spacing */
    }
    #order-page .form-col {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between; /* Evenly spaces elements on the left */
    }
    /* Forces the form-group on the right (Address) to fill the full height */
    #order-page .form-col:last-child .form-group {
        height: 100% !important;
        display: flex !important;
        flex-direction: column;
        margin-bottom: 0 !important;
    }

    /* 3. INDEX PAGE: Keep grid balanced */
    #index-page .feature-grid {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* 4. BEST PRACTICES: Constrain cards */
    .practices-grid {
        max-width: 1100px;
        margin: 0 auto;
    }
    
    /* 5. GALLERY: High-end proportions */
    #gallery-page .gallery-square {
        max-width: 1200px;
        margin: 0 auto;
        gap: 20px !important;
    }
    /* Order success confirmation */ 
    .success-wrapper { padding: 80px 14px 40px 14px; }
    .receipt-content { padding: 20px; }
    .success-banner-top h2 { font-size: 1.2rem; }
    .receipt-table td { font-size: 0.9rem; }
    .total-row td { font-size: 1.1rem; }
}


/* ==========================================
   9.  WHATSAPP
   ========================================== */
 /* No Floating whatsapp icon for the time being   
.whatsapp-float { position: fixed !important; bottom: 85px; right: 20px; z-index: 1500; background: #25d366; color: #fff; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); text-decoration: none; }
*/
