/* ==================== CSS RESET & ROOT VARIABLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2e7d32;
    --primary-green-light: #4caf50;
    --primary-green-dark: #1b5e20;
    --secondary-orange: #ff9800;
    --secondary-orange-light: #ffb74d;
    --secondary-yellow: #ffc107;
    --accent-red: #e53935;
    --accent-blue: #1976d2;
    --white: #ffffff;
    --off-white: #f5f5f5;
    --light-gray: #e0e0e0;
    --medium-gray: #9e9e9e;
    --dark-gray: #424242;
    --black: #212121;
    --gradient-primary: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
    --gradient-secondary: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    --gradient-hero: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #43a047 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== BODY ==================== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--off-white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c8e6c9; border-radius: 3px; }

/* ==================== UTILITY ==================== */
.hidden { display: none !important; }

/* ==================== NAVBAR ==================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 25px;
    background: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    gap: 12px;
    flex-wrap: wrap;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--white);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.site-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

/* ==================== LOCATION SELECTOR ==================== */
.location-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.25);
    max-width: 220px;
    min-width: 0;
    flex-shrink: 1;
}

.location-selector:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
}

.location-icon-wrapper {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-pin {
    font-size: 0.8rem;
    color: var(--secondary-yellow);
    animation: locationPulse 2s ease-in-out infinite;
}

@keyframes locationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.location-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.deliver-to {
    font-size: 0.6rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.location-name {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-arrow {
    font-size: 0.6rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.location-selector:hover .location-arrow {
    transform: rotate(180deg);
}

/* ==================== SEARCH BAR ==================== */
.nav-center {
    flex: 1;
    max-width: 580px;
    min-width: 0;
    position: relative;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== SCROLLING TEXT - COMPLETELY REMOVED ===== */
.search-suggestions {
    display: none !important;
}

.scrolling-text {
    display: none !important;
}

.search-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: none;
    outline: none;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--black);
}

.search-input::placeholder { color: var(--medium-gray); }

.voice-btn {
    padding: 10px 8px;
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.voice-btn:hover { color: var(--primary-green-dark); transform: scale(1.1); }

.translate-btn {
    padding: 10px 8px;
    background: none;
    border: none;
    color: var(--secondary-orange);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.translate-btn:hover { color: var(--secondary-orange-light); transform: scale(1.1); }

.search-btn {
    padding: 11px 16px;
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.search-btn:hover { opacity: 0.9; }

.language-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 50px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    display: none;
    z-index: 100;
    overflow: hidden;
    min-width: 140px;
}

.language-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.language-option {
    padding: 10px 18px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.88rem;
    white-space: nowrap;
}

.language-option:hover { background: var(--off-white); color: var(--primary-green); }

/* ==================== NAV RIGHT ==================== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.auth-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }
.auth-btn.hidden { display: none !important; }

.profile-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-btn:not(.hidden) { display: flex !important; }
.profile-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    min-height: 44px;            /* ensures proper height */
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 0.95rem;          /* larger text */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
}


.cart-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255,152,0,0.3); }
.cart-btn:active { transform: scale(0.97); }

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--accent-red);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== MODALS ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.show { display: flex; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    border-radius: 14px;
    padding: 25px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: none;
    background: var(--off-white);
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
}

.modal-close:hover { background: var(--accent-red); color: var(--white); }

/* ==================== LOCATION MODAL ==================== */
.location-modal-content {
    width: 520px;
    max-width: 95vw;
    max-height: 88vh;
    overflow-y: auto;
    padding: 0;
    border-radius: 14px;
}

.location-modal-content::-webkit-scrollbar { width: 4px; }
.location-modal-content::-webkit-scrollbar-track { background: transparent; }
.location-modal-content::-webkit-scrollbar-thumb { background: #c8e6c9; border-radius: 2px; }

.location-modal-header {
    padding: 24px 24px 14px;
    position: relative;
}

.location-modal-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    margin-bottom: 4px;
    font-size: 1.15rem;
    padding-right: 40px;
}

.location-subtitle {
    color: var(--medium-gray);
    font-size: 0.8rem;
}

/* ==================== LOCATION METHOD SELECTOR ==================== */
.location-method-selector {
    display: flex;
    gap: 10px;
    padding: 0 24px;
    margin-bottom: 18px;
}

.location-method-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

.location-method-btn:hover { border-color: var(--primary-green); background: #f0f9f0; }

.location-method-btn.active {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    box-shadow: 0 2px 8px rgba(46,125,50,0.15);
}

.location-method-btn .method-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.location-method-btn:not(.active) .method-icon { background: #bdbdbd; }
.location-method-btn .method-icon i { color: white; font-size: 0.95rem; }

.location-method-btn .method-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.location-method-btn .method-title {
    font-weight: 600;
    font-size: 0.83rem;
    color: var(--black);
    white-space: nowrap;
}

.location-method-btn .method-desc {
    font-size: 0.68rem;
    color: var(--medium-gray);
    margin-top: 2px;
}

/* ==================== MAP DETECTION SECTION ==================== */
.map-detection-section { padding: 0 24px; }

.detect-location-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border: 2px dashed var(--primary-green);
    border-radius: 12px;
    color: var(--primary-green);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 14px;
}

.detect-location-btn:hover {
    background: linear-gradient(135deg, #c8e6c9, #dcedc8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46,125,50,0.2);
}

.detect-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detect-icon i { color: white; font-size: 0.95rem; }

.detect-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.detect-title { font-weight: 700; font-size: 0.85rem; color: var(--primary-green-dark); }
.detect-desc { font-size: 0.7rem; color: var(--medium-gray); margin-top: 2px; }
.detect-arrow { color: var(--primary-green); font-size: 0.78rem; flex-shrink: 0; }

/* ==================== MAP CONTAINER ==================== */
.map-container {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 2px solid #e0e0e0;
    background: #f0f0f0;
}

.location-map { width: 100%; height: 100%; z-index: 1; }

.map-center-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 1000;
    pointer-events: none;
    font-size: 2.5rem;
    color: var(--accent-red);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: markerBounce 1s ease-in-out infinite;
}

@keyframes markerBounce {
    0%, 100% { transform: translate(-50%, -100%); }
    50% { transform: translate(-50%, -112%); }
}

.map-loading-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    gap: 12px;
}

.map-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
.map-loading-overlay span { font-size: 0.85rem; color: var(--medium-gray); font-weight: 500; }

/* ==================== DETECTED ADDRESS BOX ==================== */
.detected-address-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    background: #f8fdf8;
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    margin-bottom: 14px;
}

.detected-address-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detected-address-icon i { color: white; font-size: 0.88rem; }

.detected-address-info { flex: 1; min-width: 0; }
.detected-label { font-size: 0.68rem; color: var(--medium-gray); text-transform: uppercase; letter-spacing: 0.5px; }
.detected-address-text { font-size: 0.83rem; color: var(--black); line-height: 1.4; margin-top: 3px; }

.change-location-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
    flex-shrink: 0;
    white-space: nowrap;
}

.change-location-btn:hover { background: #e8f5e9; }

/* ==================== SERVICE UNAVAILABLE BOX ==================== */
.service-unavailable-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 12px;
    margin-bottom: 14px;
}

.unavailable-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: #ff9800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.unavailable-icon i { color: white; font-size: 1.1rem; }
.unavailable-text h4 { font-size: 0.92rem; color: #e65100; margin-bottom: 4px; }
.unavailable-text p { font-size: 0.78rem; color: #795548; line-height: 1.4; }
.unavailable-text strong { color: var(--primary-green); }

/* ==================== CONFIRM MAP LOCATION BUTTON ==================== */
.confirm-map-location-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(46,125,50,0.2);
}

.confirm-map-location-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(46,125,50,0.3); }
.confirm-map-location-btn:active { transform: scale(0.97); }

/* ==================== MANUAL ENTRY SECTION ==================== */
.manual-entry-section { padding: 0 24px; }

.location-search-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.location-search-container:focus-within {
    border-color: var(--primary-green);
    background: white;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.location-search-icon { color: var(--medium-gray); font-size: 0.85rem; flex-shrink: 0; }

.location-search-input {
    flex: 1;
    padding: 11px 10px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--black);
    min-width: 0;
}

.location-search-input::placeholder { color: #aaa; }

.location-search-clear {
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-search-clear:hover { background: #e0e0e0; color: var(--black); }

.location-search-results {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 12px;
}

.location-search-results.hidden { display: none; }

.location-result-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.location-result-item:last-child { border-bottom: none; }
.location-result-item:hover { background: #f8fdf8; }
.location-result-item i { color: var(--primary-green); margin-top: 3px; flex-shrink: 0; font-size: 0.85rem; }

.location-result-info { flex: 1; min-width: 0; }
.location-result-title { font-weight: 600; font-size: 0.83rem; color: var(--black); margin-bottom: 2px; }
.location-result-desc { font-size: 0.7rem; color: var(--medium-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 14px 0;
    padding: 0 24px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-gray);
}

.divider span {
    padding: 0 12px;
    color: var(--medium-gray);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Manual Address Form */
.manual-address-form .form-group { margin-bottom: 12px; }

.manual-address-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.8rem;
}

.manual-address-form label i { color: var(--primary-green); font-size: 0.78rem; }

.manual-address-form input,
.manual-address-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.83rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: none;
    background: #fafafa;
    color: var(--black);
}

.manual-address-form input:focus,
.manual-address-form textarea:focus {
    border-color: var(--primary-green);
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.83rem;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: inherit;
    transition: var(--transition-fast);
    color: var(--black);
}

.form-group input:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Address Type Selector */
.address-type-selector { margin-bottom: 14px; }

.type-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.8rem;
}

.address-type-options { display: flex; gap: 8px; }

.address-type-btn {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.address-type-btn:hover { border-color: var(--primary-green); color: var(--primary-green); }
.address-type-btn.active { border-color: var(--primary-green); background: #e8f5e9; color: var(--primary-green); }
.address-type-btn i { font-size: 0.8rem; }

/* ==================== SERVICE AREA NOTICE ==================== */
.service-area-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    background: #e3f2fd;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 0.76rem;
    color: #1565c0;
}

.service-area-notice i { font-size: 0.95rem; flex-shrink: 0; margin-top: 2px; }
.service-area-notice strong { color: var(--primary-green); }

/* Save Location Button */
.save-location-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(46,125,50,0.2);
}

.save-location-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(46,125,50,0.3); }
.save-location-btn:active { transform: scale(0.97); }
.save-location-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Saved Addresses */
.saved-addresses-list {
    padding: 0 24px;
    max-height: 200px;
    overflow-y: auto;
}

.saved-address-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.saved-address-card:hover { background: #f0f9f0; border-color: var(--primary-green); transform: translateX(3px); }
.saved-address-card.selected { background: #e8f5e9; border-color: var(--primary-green); }

.saved-address-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.88rem;
}

.saved-address-icon.home { background: #e3f2fd; color: #1976d2; }
.saved-address-icon.work { background: #fff3e0; color: #f57c00; }
.saved-address-icon.other { background: #f3e5f5; color: #7b1fa2; }

.saved-address-info { flex: 1; min-width: 0; }
.saved-address-type { font-weight: 700; font-size: 0.8rem; color: var(--black); text-transform: capitalize; margin-bottom: 2px; }
.saved-address-text { font-size: 0.73rem; color: var(--medium-gray); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.saved-address-actions { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }

.saved-address-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: #999;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.saved-address-actions button:hover { background: #e0e0e0; color: var(--black); }
.saved-address-actions .delete-btn:hover { background: #ffebee; color: #e53935; }

.no-saved-address { text-align: center; padding: 22px 18px; color: var(--medium-gray); }
.no-saved-address i { font-size: 1.8rem; margin-bottom: 8px; color: #ddd; display: block; }
.no-saved-address p { margin-bottom: 10px; font-size: 0.83rem; }

.add-new-address-link {
    background: none;
    border: 2px dashed var(--primary-green);
    color: var(--primary-green);
    padding: 9px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.add-new-address-link:hover { background: #e8f5e9; }

/* Modal Footer */
.location-modal-footer { padding: 12px 24px 20px; text-align: center; }

.manage-addresses-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.manage-addresses-btn:hover { background: #e8f5e9; }

/* ==================== LOCATION PROMPT OVERLAY ==================== */
.location-prompt-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.location-prompt-card {
    background: white;
    border-radius: 14px;
    padding: 35px 28px;
    max-width: 420px;
    width: 92%;
    text-align: center;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.location-prompt-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.location-prompt-icon i { font-size: 1.8rem; color: var(--primary-green); }
.location-prompt-card h2 { color: var(--black); margin-bottom: 8px; font-size: 1.2rem; }
.location-prompt-card p { color: var(--medium-gray); margin-bottom: 22px; font-size: 0.85rem; line-height: 1.5; }
.location-prompt-actions { display: flex; flex-direction: column; gap: 10px; }

.prompt-detect-btn {
    width: 100%;
    padding: 13px 16px;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(46,125,50,0.2);
}

.prompt-detect-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(46,125,50,0.3); }
.prompt-detect-btn:active { transform: scale(0.97); }

.prompt-manual-btn {
    width: 100%;
    padding: 13px 16px;
    background: white;
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    color: var(--primary-green);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.prompt-manual-btn:hover { background: #e8f5e9; transform: translateY(-2px); }
.prompt-manual-btn:active { transform: scale(0.97); }

.prompt-skip-btn {
    background: none;
    border: none;
    color: var(--medium-gray);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 8px;
    font-family: inherit;
    transition: color 0.2s ease;
}

.prompt-skip-btn:hover { color: var(--black); }

/* Primary Button */
.primary-btn {
    width: 100%;
    padding: 13px 16px;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46,125,50,0.2);
}

.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(46,125,50,0.3); }
.primary-btn:active { transform: scale(0.97); }
.primary-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Voice Modal */
.voice-modal-content { width: 320px; text-align: center; padding: 40px 25px; }
.voice-animation { display: flex; justify-content: center; gap: 8px; margin-bottom: 25px; }

.voice-circle {
    width: 18px;
    height: 18px;
    background: var(--primary-green);
    border-radius: var(--radius-full);
    animation: voicePulse 1s ease-in-out infinite;
}

.voice-circle:nth-child(2) { animation-delay: 0.2s; }
.voice-circle:nth-child(3) { animation-delay: 0.4s; }

@keyframes voicePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.voice-result { margin-top: 16px; font-size: 1.1rem; font-weight: 600; color: var(--primary-green); }

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047);
    padding: 50px 30px 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text { color: var(--white); }
.hero-text h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 18px; }
.hero-text h1 .highlight { color: var(--secondary-yellow); }
.hero-text p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 25px; max-width: 500px; }
.hero-features { display: flex; gap: 20px; margin-bottom: 35px; flex-wrap: wrap; }

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.feature i { font-size: 1.1rem; color: var(--secondary-yellow); }
.feature span { font-weight: 500; font-size: 0.88rem; }

.hero-cta {
    padding: 13px 22px;
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(255,152,0,0.2);
}

.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,152,0,0.3); }
.hero-cta:active { transform: scale(0.97); }

.hero-image { position: relative; }
.hero-image img { width: 100%; max-width: 500px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
}

.floating-card i { font-size: 1.2rem; color: var(--primary-green); }
.floating-card span { font-weight: 600; color: var(--dark-gray); font-size: 0.85rem; }
.card-1 { top: 20px; right: -20px; animation-delay: 0s; }
.card-2 { bottom: 80px; left: -30px; animation-delay: 1s; }
.card-3 { bottom: 20px; right: 50px; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; }
.hero-wave svg { display: block; width: 100%; height: auto; }

/* ==================== SECTION HEADERS ==================== */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.2rem; color: var(--black); margin-bottom: 8px; }
.section-header p { color: var(--medium-gray); font-size: 1rem; }

/* ==================== CATEGORIES ==================== */
/* ==================== CATEGORIES — SWIGGY INSTAMART STYLE ==================== */
.categories-section {
    padding: 30px 20px 20px;
    background: var(--white);
}

.categories-section .section-header {
    margin-bottom: 20px;
}

.categories-section .section-header h2 {
    font-size: 1.5rem;
}

.categories-section .section-header p {
    font-size: 0.85rem;
}

/* Horizontal scroll container */
.categories-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 4px 12px;
    margin: 0 -4px;
}

.categories-grid::-webkit-scrollbar {
    display: none;
}

.category-link {
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.category-card {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.category-card:active {
    transform: scale(0.95);
}

/* Circular image wrapper */
.category-img-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9f0, #e8f5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.category-card:hover .category-img-wrapper {
    border-color: var(--primary-green-light);
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.15);
    transform: scale(1.05);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.category-name {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dark-gray);
    line-height: 1.2;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0;
}

/* Skeleton loading for categories */
.category-skeleton {
    flex-shrink: 0;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.category-skeleton .skel-img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
}

.category-skeleton .skel-text {
    width: 60px;
    height: 12px;
    border-radius: 4px;
}

/* ===== CATEGORY RESPONSIVE ===== */

/* Desktop: bigger items, still scrollable */
@media (min-width: 1025px) {
    .categories-section {
        padding: 40px 30px 25px;
    }

    .categories-grid {
        gap: 20px;
        padding: 4px 4px 16px;
        /* On large screens, allow wrapping instead of scroll */
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }

    .category-card {
        width: 105px;
    }

    .category-img-wrapper {
        width: 85px;
        height: 85px;
        border-radius: 20px;
    }

    .category-name {
        font-size: 0.78rem;
        max-width: 105px;
    }

    .category-skeleton {
        width: 105px;
    }

    .category-skeleton .skel-img {
        width: 85px;
        height: 85px;
        border-radius: 20px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .categories-section {
        padding: 20px 14px 16px;
    }

    .categories-section .section-header {
        margin-bottom: 14px;
        text-align: left;
    }

    .categories-section .section-header h2 {
        font-size: 1.2rem;
    }

    .categories-section .section-header p {
        font-size: 0.78rem;
    }

    .categories-grid {
        gap: 12px;
    }

    .category-card {
        width: 78px;
    }

    .category-img-wrapper {
        width: 62px;
        height: 62px;
        border-radius: 16px;
    }

    .category-name {
        font-size: 0.68rem;
        max-width: 78px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .categories-section {
        padding: 16px 12px 12px;
    }

    .categories-grid {
        gap: 10px;
    }

    .category-card {
        width: 72px;
    }

    .category-img-wrapper {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        margin-bottom: 6px;
    }

    .category-name {
        font-size: 0.65rem;
        max-width: 72px;
    }
}

/* Tiny mobile */
@media (max-width: 360px) {
    .categories-grid {
        gap: 8px;
    }

    .category-card {
        width: 65px;
    }

    .category-img-wrapper {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        margin-bottom: 5px;
    }

    .category-name {
        font-size: 0.6rem;
        max-width: 65px;
    }
}

/* ==================== PRODUCTS ==================== */
.products-section { padding: 60px 30px; background: var(--off-white); }

.products-section .products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.product-card:hover { transform: translateY(-4px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--accent-red);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50px;
    z-index: 5;
    pointer-events: none;
    letter-spacing: 0.3px;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    z-index: 20;
}

.wishlist-btn:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.wishlist-btn i { font-size: 1rem; color: #888; transition: all 0.3s ease; }
.wishlist-btn:hover i { color: #e91e63; }
.wishlist-btn.active { background: #fff0f3 !important; }
.wishlist-btn.active i { color: #e91e63 !important; font-weight: 900; animation: heartBeat 0.6s ease; }

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.product-info { padding: 14px; }

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-weight { display: block; font-size: 0.78rem; color: var(--medium-gray); margin-bottom: 12px; }

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.current-price { font-size: 1.15rem; font-weight: 700; color: var(--primary-green); }
.original-price { font-size: 0.85rem; color: var(--medium-gray); text-decoration: line-through; }

.add-to-cart-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.add-to-cart-btn:hover { background: linear-gradient(135deg, #1b5e20, #2e7d32); transform: scale(1.03); }
.add-to-cart-btn:active { transform: scale(0.97); }

.product-price-row .quantity-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.product-price-row .quantity-controls .quantity-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: var(--primary-green);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
    line-height: 1;
}

.product-price-row .quantity-controls .quantity-btn:hover { background: var(--primary-green-dark); }
.product-price-row .quantity-controls .quantity { font-weight: 700; font-size: 0.88rem; min-width: 18px; text-align: center; color: var(--black); }

/* ==================== OFFERS ==================== */
.offers-section { padding: 60px 30px; background: var(--white); }

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.offer-card {
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 25px;
    position: relative;
    min-height: 180px;
}

.offer-1 { background: linear-gradient(135deg, #ff6b6b, #ff8e8e); }
.offer-2 { background: linear-gradient(135deg, #51cf66, #69db7c); }
.offer-3 { background: linear-gradient(135deg, #ffd43b, #ffe066); }

.offer-content { color: var(--white); z-index: 1; }

.offer-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.82rem;
}

.offer-content h3 { font-size: 1.5rem; margin-bottom: 4px; }
.offer-content p { opacity: 0.9; margin-bottom: 16px; font-size: 0.88rem; }

.offer-btn {
    padding: 10px 20px;
    background: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.offer-1 .offer-btn { color: #ff6b6b; }
.offer-2 .offer-btn { color: #51cf66; }
.offer-3 .offer-btn { color: #ffd43b; }
.offer-btn:hover { transform: scale(1.03); }
.offer-btn:active { transform: scale(0.97); }

.offer-card img {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-full);
    opacity: 0.3;
}

/* ==================== WHY US ==================== */
.why-us-section {
    padding: 60px 30px;
    background: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047);
}

.why-us-section .section-header h2,
.why-us-section .section-header p { color: var(--white); }

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.why-us-card:hover { transform: translateY(-8px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.why-us-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.why-us-icon i { font-size: 1.8rem; color: var(--white); }
.why-us-card h3 { color: var(--primary-green); margin-bottom: 8px; font-size: 1.05rem; }
.why-us-card p { color: var(--medium-gray); font-size: 0.88rem; }

/* ==================== FOOTER ==================== */
.footer { background: var(--black); color: var(--white); padding: 50px 30px 18px; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 30px;
}

.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.footer-logo i { color: var(--primary-green-light); }
.footer-section p { color: var(--medium-gray); margin-bottom: 16px; font-size: 0.85rem; }

.social-links { display: flex; gap: 10px; }

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--dark-gray);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
}

.social-links a:hover { background: var(--primary-green); transform: translateY(-2px); }
.footer-section h4 { margin-bottom: 16px; color: var(--white); font-size: 0.95rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 8px; }
.footer-section ul a { color: var(--medium-gray); text-decoration: none; transition: var(--transition-fast); font-size: 0.85rem; }
.footer-section ul a:hover { color: var(--primary-green-light); }
.contact-info p { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.85rem; }
.contact-info i { color: var(--primary-green-light); font-size: 0.85rem; }
.footer-bottom { text-align: center; padding-top: 16px; border-top: 1px solid var(--dark-gray); color: var(--medium-gray); font-size: 0.78rem; }

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--white);
    color: var(--dark-gray);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
    max-width: 420px;
    width: 90%;
    border-left: 4px solid var(--primary-green);
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-left-color: var(--primary-green); }
.toast.error { border-left-color: var(--accent-red); }
.toast.info { border-left-color: var(--accent-blue); }
.toast.warning { border-left-color: var(--secondary-orange); }

.toast-content { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.toast-content i { font-size: 1.1rem; flex-shrink: 0; }
.toast.success .toast-content i { color: var(--primary-green); }
.toast.error .toast-content i { color: var(--accent-red); }
.toast.info .toast-content i { color: var(--accent-blue); }
.toast.warning .toast-content i { color: var(--secondary-orange); }
.toast-content span { font-size: 0.85rem; font-weight: 500; }

/* ====================
   RESPONSIVE STYLES
   ==================== */

/* Large Desktop */
@media (max-width: 1200px) {
    .products-section .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text { order: 1; }
    .hero-image { order: 0; display: flex; justify-content: center; }
    .hero-text p { margin: 0 auto 25px; }
    .hero-features { justify-content: center; }
    .floating-card { display: none; }

    .products-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .location-method-selector { flex-direction: column; }
}

/* ================================================================
   TABLET PORTRAIT — 768px  (Swiggy/Zomato style)
   ================================================================ */
@media (max-width: 768px) {

    /* ── NAVBAR: 2 rows, comfortable spacing ── */
    .navbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        gap: 10px;
    }

    /* ── ROW 1 LEFT: Logo + Location ── */
    .nav-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 1;
        flex-grow: 0;
        min-width: 0;
    }

    .logo { gap: 6px; }
    .logo-icon { font-size: 1.5rem; }
    .site-name { font-size: 1.15rem; }

    .location-selector {
        max-width: 160px;
        padding: 6px 10px;
        gap: 5px;
        border-radius: 8px;
    }

    .location-icon-wrapper {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    .location-pin { font-size: 0.72rem; }
    .deliver-to { display: none; }
    .location-name { font-size: 0.78rem; }
    .location-arrow { font-size: 0.55rem; }

    /* ── ROW 1 RIGHT: Auth + Cart (big, tappable) ── */
    .nav-right {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    /* Auth — 40px circle, big icon */
    .auth-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        border-radius: 50%;
        background: rgba(255,255,255,0.15);
        border: 1.5px solid rgba(255,255,255,0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        aspect-ratio: 1 / 1; /* Ensures perfect circle */
    }

    .auth-btn i {
        font-size: 1.2rem;
        line-height: 1;
    }

    .auth-btn span {
        display: none !important;
    }

    .auth-btn:hover {
        background: rgba(255,255,255,0.28);
        transform: scale(1.05);
    }

    /* Profile — same 40px circle */
    .profile-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
        border-width: 2px;
        border-radius: 50%;
        aspect-ratio: 1 / 1;
    }

    /* ✅ FIXED: Cart — Perfect 40px circle (not egg shape) */
    .cart-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        max-width: 40px;
        min-height: 40px;
        max-height: 40px;
        padding: 0;
        border-radius: 50% !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        box-shadow: 0 2px 10px rgba(255,152,0,0.35);
        aspect-ratio: 1 / 1; /* Forces perfect circle */
        flex-shrink: 0;
    }

    .cart-btn i {
        font-size: 1.1rem;
        line-height: 1;
    }

    .cart-btn span {
        display: none !important;
    }

    .cart-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 4px 16px rgba(255,152,0,0.45);
    }

    .cart-count {
        top: -5px;
        right: -5px;
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        border: 2px solid var(--primary-green);
        font-weight: 800;
        border-radius: 50%;
    }

    /* ── ROW 2: Search bar full width ── */
    .nav-center {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        max-width: none;
        margin: 2px 0 0;
    }

    .search-container { border-radius: 10px; }

    .search-input {
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    .voice-btn, .translate-btn { padding: 10px 8px; }
    .search-btn { padding: 12px 16px; }

    /* ── HERO ── */
    .hero-section { padding: 35px 18px 90px; }
    .hero-text h1 { font-size: 2rem; }
    .hero-text p { font-size: 0.95rem; }

    /* ✅ FIXED: CATEGORIES — Square Cards */
    .categories-section { padding: 40px 14px; }
    
    .categories-grid { 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 12px; 
    }
    
    .category-card {
        aspect-ratio: 1 / 1; /* ✅ Forces square shape */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    
    .category-img-container {
        width: 100%;
        aspect-ratio: 1 / 1; /* Square image container */
        overflow: hidden;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .category-img { 
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }
    
    .category-name {
        font-size: 0.8rem;
        margin-top: 8px;
        text-align: center;
    }

    /* ── PRODUCTS ── */
    .products-section { padding: 40px 14px; }
    .products-section .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 0;
    }

    .product-image { height: auto; aspect-ratio: 1/1; }
    .product-info { padding: 10px; }
    .product-name { font-size: 0.85rem; }
    .product-weight { font-size: 0.72rem; margin-bottom: 8px; }
    .current-price { font-size: 1rem; }
    .original-price { font-size: 0.75rem; }
    .add-to-cart-btn { padding: 7px 12px; font-size: 0.78rem; }
    .product-badge { top: 8px; left: 8px; padding: 3px 8px; font-size: 0.65rem; }
    .wishlist-btn { width: 30px; height: 30px; min-width: 30px; top: 8px; right: 8px; }
    .wishlist-btn i { font-size: 0.85rem; }
    .product-price-row .quantity-controls .quantity-btn { width: 26px; height: 26px; font-size: 0.8rem; }

    .section-header { margin-bottom: 25px; }
    .section-header h2 { font-size: 1.6rem; }
    .section-header p { font-size: 0.88rem; }

    .offers-section { padding: 40px 14px; }
    .offers-grid { grid-template-columns: 1fr; }
    .why-us-section { padding: 40px 14px; }
    .modal-content { margin: 15px; width: calc(100% - 30px); }

    .location-modal-content {
        width: 100%; max-width: 100%;
        height: 100vh; max-height: 100vh;
        border-radius: 0; margin: 0;
    }

    .location-modal-header { padding: 18px 16px 12px; }
    .location-modal-header h2 { font-size: 1.05rem; }
    .location-method-selector { padding: 0 16px; flex-direction: column; gap: 8px; margin-bottom: 14px; }
    .map-detection-section { padding: 0 16px; }
    .map-container { height: 200px; }
    .manual-entry-section { padding: 0 16px; }
    .divider { padding: 0 16px; }
    .form-row { grid-template-columns: 1fr; }
    .address-type-options { flex-direction: column; }
    .saved-addresses-list { padding: 0 16px; }

    .footer { padding: 35px 16px 16px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 20px; }
    .toast { width: 94%; }
}

/* ================================================================
   SMALL MOBILE — 480px
   ================================================================ */
@media (max-width: 480px) {

    .navbar {
        padding: 8px 12px;
        gap: 8px;
    }

    .nav-left { gap: 8px; }

    .logo { gap: 5px; }
    .logo-icon { font-size: 1.4rem; }
    .site-name { font-size: 1.05rem; }

    .location-selector {
        max-width: 135px;
        padding: 5px 8px;
        gap: 4px;
    }

    .location-icon-wrapper {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .location-pin { font-size: 0.65rem; }
    .location-name { font-size: 0.72rem; }
    .location-arrow { font-size: 0.5rem; }

    .nav-right { gap: 8px; }

    /* Auth Button — Perfect Circle 38px */
    .auth-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        max-width: 38px;
        min-height: 38px;
        max-height: 38px;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1;
    }

    .auth-btn i { font-size: 1.15rem; }

    /* Profile Button — Perfect Circle 38px */
    .profile-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        max-width: 38px;
        min-height: 38px;
        max-height: 38px;
        font-size: 1.15rem;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1;
    }

    /* ✅ FIXED: Cart Button — Perfect Circle 38px */
    .cart-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        max-width: 38px;
        min-height: 38px;
        max-height: 38px;
        padding: 0;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
    }

    .cart-btn i { font-size: 1.15rem; }

    .cart-count {
        top: -4px;
        right: -4px;
        width: 17px;
        height: 17px;
        font-size: 0.58rem;
        border-radius: 50%;
    }

    .search-input { padding: 11px 12px; font-size: 0.85rem; }
    .voice-btn, .translate-btn { padding: 9px 6px; }
    .search-btn { padding: 11px 14px; }

    .hero-section { padding: 25px 12px 70px; }
    .hero-text h1 { font-size: 1.7rem; }
    .hero-features { flex-direction: column; gap: 8px; }
    .feature { justify-content: center; }
    .hero-cta { padding: 12px 18px; font-size: 0.9rem; }

    /* ✅ FIXED: CATEGORIES — Square Cards for 480px */
    .categories-section { padding: 30px 10px; }
    
    .categories-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px; 
    }
    
    .category-card { 
        padding: 8px; 
        border-radius: 10px;
        aspect-ratio: 1 / 1; /* ✅ Forces square shape */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .category-img-container {
        width: 100%;
        flex: 1;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .category-img { 
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px; 
    }
    
    .category-name { 
        font-size: 0.78rem; 
        margin-top: 6px;
        text-align: center;
    }

    .products-section { padding: 30px 10px; }
    .products-section .products-grid { gap: 10px; }
    .product-info { padding: 8px; }
    .product-name { font-size: 0.82rem; }
    .product-weight { font-size: 0.7rem; margin-bottom: 6px; }
    .current-price { font-size: 0.95rem; }
    .original-price { font-size: 0.72rem; }
    .add-to-cart-btn { padding: 6px 10px; font-size: 0.75rem; }
    .product-badge { top: 6px; left: 6px; padding: 2px 7px; font-size: 0.6rem; }
    .wishlist-btn { width: 28px; height: 28px; min-width: 28px; top: 6px; right: 6px; }
    .wishlist-btn i { font-size: 0.8rem; }
    .product-price-row .quantity-controls .quantity-btn { width: 24px; height: 24px; font-size: 0.75rem; }

    .section-header h2 { font-size: 1.35rem; }
    .section-header p { font-size: 0.82rem; }

    .offers-section { padding: 30px 12px; }
    .offer-card { padding: 18px; min-height: 150px; }
    .offer-content h3 { font-size: 1.3rem; }
    .offer-btn { padding: 8px 16px; font-size: 0.8rem; }

    .why-us-section { padding: 30px 12px; }
    .why-us-card { padding: 22px 16px; }
    .why-us-icon { width: 55px; height: 55px; }
    .why-us-icon i { font-size: 1.4rem; }

    .location-modal-header { padding: 16px 14px 10px; }
    .location-modal-header h2 { font-size: 0.98rem; }
    .location-method-selector { padding: 0 14px; gap: 6px; margin-bottom: 12px; }
    .location-method-btn { padding: 10px 12px; gap: 8px; }
    .location-method-btn .method-icon { width: 32px; height: 32px; min-width: 32px; }
    .location-method-btn .method-title { font-size: 0.78rem; }
    .map-detection-section { padding: 0 14px; }
    .detect-location-btn { padding: 10px 12px; gap: 8px; margin-bottom: 12px; }
    .detect-icon { width: 32px; height: 32px; min-width: 32px; }
    .map-container { height: 180px; border-radius: 10px; }
    .manual-entry-section { padding: 0 14px; }
    .divider { padding: 0 14px; }
    .save-location-btn { padding: 11px 12px; font-size: 0.8rem; border-radius: 10px; }
    .saved-addresses-list { padding: 0 14px; }
    .confirm-map-location-btn { padding: 11px 12px; font-size: 0.8rem; border-radius: 10px; }

    .location-prompt-card { padding: 26px 20px; }
    .location-prompt-icon { width: 60px; height: 60px; }
    .location-prompt-card h2 { font-size: 1.1rem; }
    .location-prompt-card p { font-size: 0.82rem; }
    .prompt-detect-btn, .prompt-manual-btn { padding: 12px 14px; font-size: 0.82rem; }

    .footer { padding: 30px 12px 14px; }
    .footer-content { grid-template-columns: 1fr; gap: 18px; text-align: center; }
    .social-links { justify-content: center; }
    .footer-section ul { text-align: center; }
    .contact-info p { justify-content: center; }
    .footer-logo { justify-content: center; }

    .toast { width: 94%; padding: 10px 14px; }
    .toast-content span { font-size: 0.82rem; }
}

/* ================================================================
   TINY MOBILE — 360px
   ================================================================ */
@media (max-width: 360px) {

    .navbar {
        padding: 7px 10px;
        gap: 7px;
    }

    .nav-left { gap: 6px; }

    .logo { gap: 4px; }
    .logo-icon { font-size: 1.25rem; }
    .site-name { font-size: 0.9rem; }

    .location-selector {
        display: flex !important;
        max-width: 105px;
        padding: 4px 6px;
        gap: 3px;
        border-radius: 6px;
    }

    .location-icon-wrapper {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .location-pin { font-size: 0.6rem; }
    .location-name { font-size: 0.65rem; max-width: 55px; }
    .location-arrow { font-size: 0.45rem; }

    .nav-right { gap: 7px; }

    /* Auth Button — Perfect Circle 36px */
    .auth-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        min-height: 36px;
        max-height: 36px;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1;
    }

    .auth-btn i { font-size: 1.05rem; }

    /* Profile Button — Perfect Circle 36px */
    .profile-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        min-height: 36px;
        max-height: 36px;
        font-size: 1.05rem;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1;
    }

    /* ✅ FIXED: Cart Button — Perfect Circle 36px */
    .cart-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        min-height: 36px;
        max-height: 36px;
        padding: 0;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
    }

    .cart-btn i { font-size: 1.05rem; }

    .cart-count {
        top: -4px;
        right: -4px;
        width: 16px;
        height: 16px;
        font-size: 0.55rem;
        border-width: 1.5px;
        border-radius: 50%;
    }

    .search-input { padding: 10px 10px; font-size: 0.82rem; }
    .voice-btn, .translate-btn { padding: 8px 5px; }
    .search-btn { padding: 10px 12px; }

    .hero-text h1 { font-size: 1.45rem; }
    .hero-cta { padding: 11px 16px; font-size: 0.85rem; }

    /* ✅ FIXED: CATEGORIES — Square Cards for 360px */
    .categories-grid { 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px; 
    }
    
    .category-card { 
        padding: 6px;
        aspect-ratio: 1 / 1; /* ✅ Forces square shape */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .category-img-container {
        width: 100%;
        flex: 1;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 8px;
    }
    
    .category-img { 
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .category-name { 
        font-size: 0.7rem;
        margin-top: 5px;
    }

    .products-section .products-grid { gap: 8px; }
    .product-info { padding: 6px; }
    .product-name { font-size: 0.78rem; }
    .current-price { font-size: 0.88rem; }
    .add-to-cart-btn { padding: 5px 8px; font-size: 0.72rem; }
    .wishlist-btn { width: 26px; height: 26px; min-width: 26px; }
    .wishlist-btn i { font-size: 0.72rem; }
    .product-badge { padding: 2px 5px; font-size: 0.55rem; }
    .product-price-row .quantity-controls .quantity-btn { width: 22px; height: 22px; font-size: 0.7rem; }

    .section-header h2 { font-size: 1.2rem; }

    .location-modal-header { padding: 14px 12px 8px; }
    .location-modal-header h2 { font-size: 0.9rem; }
    .location-method-selector { padding: 0 12px; }
    .location-method-btn { padding: 8px 10px; }
    .location-method-btn .method-icon { width: 28px; height: 28px; min-width: 28px; }
    .map-detection-section { padding: 0 12px; }
    .map-container { height: 160px; }
    .manual-entry-section { padding: 0 12px; }
    .divider { padding: 0 12px; }
    .save-location-btn { padding: 10px; font-size: 0.78rem; }
    .saved-addresses-list { padding: 0 12px; }
    .confirm-map-location-btn { padding: 10px; font-size: 0.78rem; }

    .location-prompt-card { padding: 20px 14px; margin: 10px; }
    .location-prompt-icon { width: 50px; height: 50px; }
    .location-prompt-card h2 { font-size: 0.95rem; }
    .location-prompt-card p { font-size: 0.78rem; }
    .prompt-detect-btn, .prompt-manual-btn { padding: 11px 12px; font-size: 0.78rem; }

    .offer-card { padding: 14px; min-height: 130px; }
    .offer-content h3 { font-size: 1.1rem; }
    .offer-btn { padding: 8px 14px; font-size: 0.78rem; }

    .why-us-card { padding: 18px 14px; }
    .why-us-icon { width: 50px; height: 50px; }
    .why-us-icon i { font-size: 1.2rem; }

    .footer { padding: 22px 10px 12px; }
    .footer-logo { font-size: 0.9rem; }
    .footer-section h4 { font-size: 0.85rem; }
    .footer-section p, .footer-section ul a, .contact-info p { font-size: 0.78rem; }
    .footer-bottom { font-size: 0.68rem; }
    .social-links a { width: 32px; height: 32px; }

    .toast { width: 92%; padding: 8px 12px; }
    .toast-content span { font-size: 0.78rem; }
}
/* ==================== PRINT ==================== */
@media print {
    .navbar, .footer, .toast, .modal,
    .hero-section, .location-prompt-overlay, .offers-section {
        display: none !important;
    }
    body { background: var(--white); }
}

/* ==================== VARIANT PILLS — HOME PAGE (SWIGGY STYLE) ==================== */
.products-section .variant-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    width: 100%;
}

.products-section .variant-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 0;
    flex: 0 0 auto;
    position: relative;
}

.products-section .variant-pill:hover {
    border-color: var(--primary-green-light);
    background: #f0f9f0;
}

.products-section .variant-pill.active {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    box-shadow: 0 1px 4px rgba(46, 125, 50, 0.15);
}

.products-section .variant-pill.out-of-stock {
    opacity: 0.45;
    cursor: not-allowed;
    position: relative;
}

.products-section .variant-pill.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 1.5px;
    background: var(--accent-red);
    transform: rotate(-12deg);
}

.products-section .variant-pill .pill-weight {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1.2;
    white-space: nowrap;
}

.products-section .variant-pill.active .pill-weight {
    color: var(--primary-green-dark);
}

.products-section .variant-pill .pill-price {
    font-size: 0.64rem;
    font-weight: 600;
    color: var(--primary-green);
    line-height: 1.2;
    white-space: nowrap;
}

.products-section .variant-pill .pill-mrp {
    font-size: 0.56rem;
    color: var(--medium-gray);
    text-decoration: line-through;
    line-height: 1;
}

.products-section .variant-pill.active .pill-price {
    color: var(--primary-green-dark);
}

.products-section .single-variant-label {
    font-size: 0.78rem;
    color: var(--medium-gray);
    margin-bottom: 10px;
    display: block;
}

/* Weight selector container */
.products-section .weight-selector {
    margin-bottom: 8px;
    width: 100%;
}

/* Price update animation */
.products-section .product-price.updating {
    animation: priceUpdate 0.3s ease;
}

@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: var(--primary-green); }
    100% { transform: scale(1); }
}

/* ===== HOME PAGE VARIANT PILLS RESPONSIVE ===== */
@media (max-width: 768px) {
    .products-section .variant-pills {
        gap: 4px;
        margin-bottom: 8px;
    }

    .products-section .variant-pill {
        padding: 4px 8px;
        border-radius: 6px;
    }

    .products-section .variant-pill .pill-weight {
        font-size: 0.65rem;
    }

    .products-section .variant-pill .pill-price {
        font-size: 0.6rem;
    }

    .products-section .variant-pill .pill-mrp {
        font-size: 0.52rem;
    }

    .products-section .single-variant-label {
        font-size: 0.72rem;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .products-section .variant-pills {
        gap: 3px;
        margin-bottom: 6px;
    }

    .products-section .variant-pill {
        padding: 3px 6px;
        border-radius: 5px;
    }

    .products-section .variant-pill .pill-weight {
        font-size: 0.6rem;
    }

    .products-section .variant-pill .pill-price {
        font-size: 0.56rem;
    }

    .products-section .variant-pill .pill-mrp {
        font-size: 0.48rem;
    }
}

@media (max-width: 360px) {
    .products-section .variant-pill {
        padding: 2px 5px;
    }

    .products-section .variant-pill .pill-weight {
        font-size: 0.56rem;
    }

    .products-section .variant-pill .pill-price {
        font-size: 0.52rem;
    }
}


/* ==================== MOBILE SPLASH SCREEN ==================== */

/* ❌ Hidden on Desktop */
.mobile-splash-screen {
    display: none !important;
}

/* ✅ Show ONLY on Mobile (768px and below) */
@media (max-width: 768px) {
    .mobile-splash-screen {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(145deg, #1b5e20 0%, #2e7d32 35%, #43a047 70%, #66bb6a 100%);
        z-index: 99999;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        animation: splashFadeIn 0.4s ease;
    }

    .mobile-splash-screen.splash-exit {
        animation: splashFadeOut 0.5s ease forwards;
        pointer-events: none;
    }

    .mobile-splash-screen.splash-hidden {
        display: none !important;
    }

    @keyframes splashFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes splashFadeOut {
        0% { opacity: 1; transform: scale(1); }
        100% { opacity: 0; transform: scale(1.08); }
    }

    /* ── Background Circles ── */
    .splash-bg-circles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        pointer-events: none;
    }

    .splash-circle {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
    }

    .splash-circle-1 {
        width: 300px;
        height: 300px;
        top: -80px;
        right: -60px;
        animation: splashFloat 6s ease-in-out infinite;
    }

    .splash-circle-2 {
        width: 200px;
        height: 200px;
        bottom: 10%;
        left: -50px;
        background: rgba(255, 255, 255, 0.04);
        animation: splashFloat 8s ease-in-out infinite reverse;
    }

    .splash-circle-3 {
        width: 150px;
        height: 150px;
        top: 40%;
        right: -30px;
        background: rgba(255, 193, 7, 0.08);
        animation: splashFloat 7s ease-in-out infinite 1s;
    }

    @keyframes splashFloat {
        0%, 100% { transform: translate(0, 0) scale(1); }
        50% { transform: translate(-15px, -20px) scale(1.05); }
    }

    /* ── Content ── */
    .splash-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 24px;
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 400px;
    }

    /* ── Logo ── */
    .splash-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-bottom: 40px;
        animation: splashSlideIn 0.8s ease 0.2s both;
    }

    .splash-logo-icon {
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.15);
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-radius: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: splashIconPulse 2s ease-in-out infinite;
        backdrop-filter: blur(10px);
    }

    .splash-logo-icon i {
        font-size: 2.2rem;
        color: #ffc107;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

    @keyframes splashIconPulse {
        0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
        50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    }

    .splash-brand {
        font-size: 2.4rem;
        font-weight: 800;
        color: #ffffff;
        letter-spacing: 1px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        font-family: 'Poppins', sans-serif;
    }

    /* ── Tagline ── */
    .splash-tagline {
        margin-bottom: 35px;
        animation: splashSlideIn 0.8s ease 0.5s both;
    }

    .splash-text-line {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.85);
        font-weight: 400;
        line-height: 1.6;
        font-family: 'Poppins', sans-serif;
    }

    .splash-text-highlight {
        font-size: 1.8rem;
        font-weight: 700;
        color: #ffc107;
        line-height: 1.3;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        margin: 4px 0;
        font-family: 'Poppins', sans-serif;
    }

    .splash-brand-inline {
        color: #ffc107;
        font-weight: 700;
    }

    /* ── Features ── */
    .splash-features {
        display: flex;
        gap: 16px;
        margin-bottom: 40px;
        animation: splashSlideIn 0.8s ease 0.7s both;
    }

    .splash-feature {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 14px;
        backdrop-filter: blur(5px);
        min-width: 85px;
    }

    .splash-feature i {
        font-size: 1.2rem;
        color: #ffc107;
    }

    .splash-feature span {
        font-size: 0.68rem;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        white-space: nowrap;
        font-family: 'Poppins', sans-serif;
    }

    /* ── Order Button ── */
    .splash-cta-btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 28px;
        background: linear-gradient(135deg, #ff9800, #ffb74d);
        border: none;
        border-radius: 16px;
        color: #ffffff;
        font-size: 1.05rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-family: 'Poppins', sans-serif;
        box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4);
        animation: splashSlideIn 0.8s ease 0.9s both, splashBtnGlow 2s ease-in-out infinite 1.7s;
    }

    .splash-cta-btn:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 6px 25px rgba(255, 152, 0, 0.5);
    }

    .splash-cta-btn:active {
        transform: scale(0.95);
    }

    .splash-cta-btn i {
        font-size: 1rem;
    }

    @keyframes splashSlideIn {
        from {
            opacity: 0;
            transform: translateY(25px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes splashBtnGlow {
        0%, 100% { box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4); }
        50% { box-shadow: 0 6px 30px rgba(255, 152, 0, 0.6), 0 0 40px rgba(255, 152, 0, 0.2); }
    }
}

/* ── 480px ── */
@media (max-width: 480px) {
    .splash-logo-icon {
        width: 70px;
        height: 70px;
        border-radius: 20px;
    }

    .splash-logo-icon i {
        font-size: 1.9rem;
    }

    .splash-brand {
        font-size: 2rem;
    }

    .splash-text-line {
        font-size: 1rem;
    }

    .splash-text-highlight {
        font-size: 1.5rem;
    }

    .splash-features {
        gap: 10px;
        margin-bottom: 35px;
    }

    .splash-feature {
        padding: 10px 12px;
        min-width: 78px;
        border-radius: 12px;
    }

    .splash-feature i {
        font-size: 1rem;
    }

    .splash-feature span {
        font-size: 0.62rem;
    }

    .splash-cta-btn {
        padding: 14px 22px;
        font-size: 0.95rem;
        border-radius: 14px;
    }
}

/* ── 360px ── */
@media (max-width: 360px) {
    .splash-content {
        padding: 30px 18px;
    }

    .splash-logo {
        margin-bottom: 30px;
        gap: 10px;
    }

    .splash-logo-icon {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .splash-logo-icon i {
        font-size: 1.6rem;
    }

    .splash-brand {
        font-size: 1.7rem;
    }

    .splash-tagline {
        margin-bottom: 25px;
    }

    .splash-text-line {
        font-size: 0.9rem;
    }

    .splash-text-highlight {
        font-size: 1.3rem;
    }

    .splash-features {
        gap: 8px;
        margin-bottom: 30px;
    }

    .splash-feature {
        padding: 8px 10px;
        min-width: 72px;
    }

    .splash-feature i {
        font-size: 0.9rem;
    }

    .splash-feature span {
        font-size: 0.58rem;
    }

    .splash-cta-btn {
        padding: 13px 18px;
        font-size: 0.88rem;
        max-width: 240px;
    }
}