/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #064e3b;
    /* Deep Forest Green */
    --primary-light: #10b981;
    /* Bright Leaf Green */
    --primary-bg: #ecfdf5;
    /* Ultra Light green for highlights */
    --accent: #f59e0b;
    /* Warm Yellow/Orange Accent */
    --accent-hover: #d97706;
    --bg-gray: #f8fafc;
    /* Sleeker light slate-gray background */
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    /* Darker Slate for improved readability */
    --text-muted: #64748b;
    /* Elegant Cool Gray */
    --border-color: #f1f5f9;
    /* Lighter, softer border */
    --border-dark: #e2e8f0;

    --font-primary: 'Outfit', 'Hind Siliguri', sans-serif;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.06), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 16px 32px -8px rgba(15, 23, 42, 0.08), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
    --shadow-premium: 0 24px 48px -12px rgba(6, 78, 59, 0.08), 0 12px 24px -6px rgba(6, 78, 59, 0.04);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.15);

    --grad-primary: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    --grad-primary-light: linear-gradient(135deg, var(--primary-light) 0%, #059669 100%);
    --grad-accent: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 76px;
    --bottom-nav-height: 68px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.5;
    padding-bottom: var(--bottom-nav-height);
    /* spacing for bottom nav */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

@media(min-width: 768px) {
    body {
        padding-bottom: 0;
        /* no bottom nav spacing on desktop */
    }
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* --- UTILITIES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

.hidden {
    display: none !important;
}

/* --- HEADER / TOP BAR --- */
/* Ambient Background Glow Blobs with Premium Floating Animations */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(120px);
    pointer-events: none;
    z-index: -2;
    animation: ambient-float-left 25s infinite ease-in-out;
    will-change: transform;
}

body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(130px);
    pointer-events: none;
    z-index: -2;
    animation: ambient-float-right 30s infinite ease-in-out;
    will-change: transform;
}

@keyframes ambient-float-left {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(8%, 10%) scale(1.12);
    }
}

@keyframes ambient-float-right {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10%, -8%) scale(1.08);
    }
}

header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.03);
    border-bottom: 1px solid rgba(16, 185, 129, 0.08);
    transition: var(--transition);
}

.top-bar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

@media(min-width: 768px) {
    .header-logo-img {
        height: 54px;
    }
}

.header-logo-img:hover {
    transform: scale(1.04) rotate(-1deg);
}

.location-picker {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: rgba(16, 185, 129, 0.05);
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: var(--transition);
}

.location-picker:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.location-picker .time {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.location-picker .address {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.search-container {
    flex-grow: 1;
    position: relative;
    max-width: 480px;
}

.search-input {
    width: 100%;
    padding: 11px 16px 11px 44px;
    border: 1.5px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background-color: rgba(248, 250, 252, 0.8);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.search-input:focus {
    border-color: var(--primary-light);
    background-color: var(--bg-card);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.12), 0 0 0 3.5px rgba(16, 185, 129, 0.15);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.search-input:focus~.search-icon {
    color: var(--primary-light);
}

.cart-button-wrapper {
    position: relative;
}

.cart-header-btn {
    background: var(--grad-primary);
    color: var(--bg-card);
    border: none;
    border-radius: 14px;
    padding: 11px 22px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.12);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-header-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 24px rgba(6, 78, 59, 0.22);
}

.cart-header-btn:active {
    transform: translateY(0) scale(0.96);
}

.cart-badge {
    background: var(--grad-accent);
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 20px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
    border: 2px solid white;
}

/* Responsive header for tablet and mobile viewports (Tablet: 768px-991px, Mobile: <768px) */
@media(max-width: 991px) {
    .top-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
        gap: 12px;
    }
    .logo-section {
        order: 1;
        display: flex;
        align-items: center;
    }
    .location-picker .time {
        display: none !important; /* Hide "Delivery in 10 mins" text on smaller screens */
    }
    .cart-button-wrapper {
        order: 2;
        margin-left: auto;
    }
    .header-user-wrapper {
        order: 3;
    }
    .search-container {
        order: 4;
        width: 100%;
        max-width: 100%;
    }
    .search-input {
        padding: 10px 16px 10px 40px;
        font-size: 13.5px;
        border-radius: 12px;
    }
    .search-icon {
        left: 14px;
    }
}

@media(max-width: 767px) {
    .logo-section {
        width: auto;
        justify-content: flex-start;
    }
    .location-picker {
        display: none !important; /* Hide address section completely on mobile */
    }
    .header-user-wrapper {
        margin-left: auto !important;
    }
    .cart-header-btn {
        display: none;
    }
}

@media(max-width: 400px) {
    .header-logo-img {
        height: 40px;
    }
    .logo-section {
        gap: 8px;
    }
}

/* --- SEARCH AUTOCOMPLETE SUGGESTIONS DROPDOWN --- */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 14px;
    margin-top: 8px;
    max-height: 380px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-suggestions.hidden {
    display: none !important;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    transition: background-color 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: var(--primary-bg);
}

.suggestion-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-gray);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.suggestion-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.suggestion-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-category {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.suggestion-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-light);
    white-space: nowrap;
}

.suggestions-header,
.suggestions-footer {
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-gray);
    font-weight: 600;
}

.suggestions-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.suggestions-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.suggestions-footer:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.suggestion-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.suggestion-empty i {
    font-size: 24px;
    color: var(--primary-light);
    margin-bottom: 8px;
    display: block;
}

/* Matching Text Highlight */
.search-highlight {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    font-weight: 700;
    border-radius: 2px;
    padding: 0 2px;
}

/* --- HERO SLIDER --- */
.hero-slider {
    margin-top: 16px;
    position: relative;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

@media(min-width: 768px) {
    .hero-slider {
        height: 280px;
        margin-top: 24px;
    }
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

@media(min-width: 768px) {
    .slide {
        padding: 0 48px;
    }
}

.slide-content {
    color: white;
    z-index: 2;
    max-width: 85%;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.72) 0%, rgba(13, 148, 136, 0.58) 100%);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    padding: 16px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media(min-width: 768px) {
    .slide-content {
        max-width: 52%;
        padding: 28px 36px;
        border-radius: 26px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.3px;
}

.slide-content p {
    font-size: 11.5px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.95;
    line-height: 1.4;
}

@media(min-width: 768px) {
    .slide-content h2 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 15.5px;
        margin-bottom: 18px;
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(6, 78, 59, 0.85) 0%, rgba(16, 185, 129, 0.2) 100%);
    z-index: 1;
}

/* Slider navigation arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    opacity: 0; /* Fully transparent and visually hidden, but remains 100% functional and clickable */
}

@media(min-width: 768px) {
    .slider-arrow {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: white;
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow-left {
    left: 8px;
}

.slider-arrow-right {
    right: 8px;
}

@media(min-width: 768px) {
    .slider-arrow-left {
        left: 24px;
    }

    .slider-arrow-right {
        right: 24px;
    }
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-dark);
    font-weight: 800;
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: scale(1.03);
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--accent);
}

/* --- CATEGORIES GRID --- */
.categories-section {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.categories-section .section-title {
    text-align: center;
    justify-content: center;
    width: 100%;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

@media(max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        /* 5 in a row scrolling horizontally or tight */
        gap: 4px;
    }
}

.category-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    min-width: 82px;
    max-width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    cursor: pointer;
    border: none;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 4px;
}

@media(min-width: 768px) {
    .category-card {
        min-width: 104px;
        max-width: 112px;
        margin: 8px;
    }
}

.category-card:hover {
    background: transparent;
    box-shadow: none;
}

.category-card:active {
    transform: scale(0.95);
}

.category-img-box {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    background-color: var(--theme-bg, #f1f5f9);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media(min-width: 768px) {
    .category-img-box {
        width: 88px;
        height: 88px;
        border-radius: 24px;
        margin-bottom: 10px;
    }
}

.category-card:hover .category-img-box {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.category-card.active .category-img-box {
    transform: scale(1.02);
    border: 2px solid var(--theme-color, #10b981);
    box-shadow: 0 0 0 3px var(--theme-bg, #ecfdf5);
}

.category-product-img {
    width: 74%;
    height: 74%;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.category-card:hover .category-product-img {
    transform: scale(1.12);
}

.category-fallback-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@media(min-width: 768px) {
    .category-fallback-icon {
        font-size: 28px;
    }
}

.category-card:hover .category-fallback-icon i {
    transform: scale(1.1);
}

.category-card span {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    /* slate-600 */
    letter-spacing: -0.1px;
    line-height: 1.25;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    margin-top: 4px;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

@media(min-width: 768px) {
    .category-card span {
        font-size: 13px;
    }
}

.category-card:hover span {
    color: var(--theme-color, #10b981);
}

.category-card.active span {
    color: var(--theme-color, #10b981);
    font-weight: 700;
}

.category-card small {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* --- PRODUCT SLIDERS & SECTION --- */
.product-section {
    margin-top: 32px;
}

.slider-container {
    position: relative;
}

.product-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 12px 4px 20px 4px;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
}

.product-slider::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

@media(min-width: 1200px) {
    .product-slider {
        justify-content: flex-start;
    }
}

.product-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

@media(min-width: 768px) {
    .product-card {
        padding: 18px;
    }
}

/* Horizontal Slider Card Override (Keep them fixed width to prevent shrinking) */
.product-slider .product-card {
    min-width: 160px;
    max-width: 160px;
    flex-shrink: 0;
}

@media(min-width: 768px) {
    .product-slider .product-card {
        min-width: 198px;
        max-width: 198px;
    }
}

.product-card:hover {
    box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.22) !important;
}

.badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(6, 78, 59, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.12);
}

.product-card.deal-tag .badge-tag {
    background: rgba(234, 88, 12, 0.85);
    color: white;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}

.product-image-wrapper {
    height: 110px;
    width: 100%;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.6) 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.product-image-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image-wrapper img {
    transform: none;
}

.product-name-en {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.product-name-bn {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.weight-selector-dropdown {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    background-color: rgba(248, 250, 252, 0.85);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23064e3b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.weight-selector-dropdown:focus {
    border-color: var(--primary-light);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.price-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

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

.price-current {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.2px;
}

.price-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* --- ADD TO CART ANIMATED BUTTONS --- */
.action-btn-container {
    width: 78px;
    height: 34px;
    position: relative;
}

.add-btn {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    color: var(--primary);
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    border-radius: 24px;
    /* pill styling */
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.06);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.add-btn:hover {
    background: var(--grad-primary-light);
    color: white;
    border-color: var(--primary-light);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.22);
    transform: translateY(-2px) scale(1.04);
}

.add-btn:active {
    transform: translateY(0) scale(0.96);
}

.qty-btn-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    background: var(--grad-primary);
    border-radius: 24px;
    /* matching pill */
    color: white;
    padding: 0 6px;
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.18);
    transition: all 0.3s ease;
}

.qty-control {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 800;
    width: 24px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-control:active {
    transform: scale(0.8);
}

.qty-val {
    font-size: 12px;
    font-weight: 800;
}

/* --- SLIDE-OUT CART (BLINKIT DRAWER) --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    /* Glassmorphism backing with dynamic blur */
    background: rgba(254, 254, 254, 0.86);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border-left: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    background: transparent;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.cart-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.2px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--primary-light);
    transform: rotate(90deg);
}

.cart-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-cart-view {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
    margin: auto;
}

.empty-cart-view svg {
    margin-bottom: 16px;
    color: rgba(16, 185, 129, 0.2);
}

.empty-cart-view p {
    font-size: 14px;
    font-weight: 700;
}

.cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.08);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.cart-item-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid var(--border-dark);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-details h4 {
    font-size: 13px;
    font-weight: 750;
    color: var(--text-dark);
    line-height: 1.2;
}

.cart-item-details p {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.cart-item-details .price {
    font-size: 13px;
    font-weight: 850;
    color: var(--primary);
    margin-top: 4px;
}

.cart-bill-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 16px;
    margin-top: 10px;
    border: 1px dashed rgba(16, 185, 129, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.cart-bill-details h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    padding-bottom: 8px;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.bill-row.total {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    border-top: 1px dashed rgba(16, 185, 129, 0.2);
    padding-top: 10px;
    margin-top: 8px;
    margin-bottom: 0;
}

.bill-row.free-delivery {
    color: var(--primary-light);
    font-weight: 700;
}

.cart-footer {
    background: transparent;
    padding: 18px 20px;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.checkout-btn {
    width: 100%;
    /* Sleek gradient background */
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* --- CHECKOUT VIEW & FORMS --- */
.checkout-view,
.order-tracking-view {
    padding: 24px 0;
}

.checkout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.checkout-right-column {
    order: -1; /* Summary card shown first on mobile */
    position: static;
}

@media(min-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 30px;
        align-items: stretch;
    }
    .checkout-right-column {
        order: 0; /* Reset ordering for desktop columns */
    }
    .receipt-summary-container {
        position: sticky;
        top: calc(var(--header-height) + 24px);
        z-index: 10;
    }
}

.checkout-back-link-wrapper {
    margin-bottom: 18px;
}

.checkout-back-link {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    transition: var(--transition);
}

.checkout-page-title {
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 22px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.checkout-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid rgba(16, 185, 129, 0.08);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.checkout-card-header {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-dark);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
    background-color: #f8fafc;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-light);
    background-color: var(--bg-card);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.08), 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.payment-radio {
    display: none;
}

.payment-label {
    border: 1.5px solid var(--border-dark);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: #f8fafc;
    transition: var(--transition);
}

.payment-label:hover {
    border-color: var(--primary-light);
    background-color: var(--primary-bg);
}

.payment-radio:checked+.payment-label {
    border-color: var(--primary-light);
    background: var(--primary-bg);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}

.payment-icon {
    font-size: 24px;
}

.payment-name {
    font-weight: 800;
}

.submit-order-btn {
    padding: 16px !important;
    margin-top: 16px;
    justify-content: center !important;
    gap: 10px;
    border-radius: 16px !important;
}

/* Dynamic Checkout Items list */
.checkout-summary-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}

.checkout-item-row {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.4);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.05);
}

.checkout-item-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
}

.checkout-item-details {
    flex-grow: 1;
}

.checkout-item-name {
    font-weight: 750;
    margin: 0;
    line-height: 1.2;
    color: var(--text-dark);
}

.checkout-item-weight {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
}

.checkout-item-price {
    font-weight: 850;
    color: var(--primary);
}

.checkout-bill-breakdown {
    margin-top: 20px;
    border-top: 1.5px dashed rgba(16, 185, 129, 0.15) !important;
    padding-top: 16px !important;
}

.checkout-bill-total {
    font-size: 16px !important;
    color: var(--text-dark) !important;
    font-weight: 850 !important;
    border-top: 1px solid var(--border-color) !important;
    padding-top: 12px !important;
    margin-top: 10px !important;
}

/* --- ORDER TRACKING TIMELINE --- */
.timeline {
    position: relative;
    margin: 32px 0 16px 20px;
    padding-left: 24px;
    border-left: 2px solid var(--border-dark);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--border-dark);
    border: 3px solid var(--bg-card);
    transition: var(--transition);
}

.timeline-item.active::before {
    background-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-item.completed::before {
    background-color: var(--primary);
}

.timeline-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
}

.timeline-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.order-items-summary {
    border-top: 1px dashed var(--border-dark);
    margin-top: 16px;
    padding-top: 16px;
}

/* --- MOBILE BOTTOM FLOATING NAVIGATION CAPSULE --- */
.bottom-nav {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: var(--bottom-nav-height);
    background: rgba(235, 231, 231, 0.85);
    backdrop-filter: blur(20px) saturate(195%);
    -webkit-backdrop-filter: blur(20px) saturate(195%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid rgba(16, 185, 129, 0.15);
    z-index: 99;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);

    transition: var(--transition);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    flex-grow: 1;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.bottom-nav-item.active {
    color: var(--primary-light);
}

.bottom-nav-item::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-item.active::after {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.bottom-nav-item svg {
    margin-bottom: 4px;
    transition: var(--transition);
}

.bottom-nav-item:hover svg,
.bottom-nav-item.active svg {
    transform: translateY(-4px) scale(1.1);
    filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.3));
}

.bottom-nav-item .cart-badge {
    top: 4px;
    right: 24%;
    border: 1.5px solid white;
}

@media(min-width: 768px) {
    .bottom-nav {
        display: none;
        /* Hide bottom nav on desktop */
    }
}


/* Responsive Category Slider for Customer */
.category-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE/Edge */
    padding: 4px 8px 12px;      /* bottom pad for scroll breathing room */
    width: 100%;
    max-width: 100%;
    cursor: grab;
}

.category-container:active {
    cursor: grabbing;
}

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

.category-scroller {
    display: flex;
    gap: 12px;
    justify-content: flex-start; /* always left-start so overflow triggers */
    flex-wrap: nowrap;           /* force single row on all screen sizes */
    min-width: max-content;      /* ensure content never wraps to second row */
}

/* Scroll button helper on Desktop Sliders */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-dark);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

@media(min-width: 768px) {
    .scroll-btn {
        display: flex;
    }
}

.scroll-btn:hover {
    background-color: var(--primary-bg);
    border-color: var(--primary-light);
}

.scroll-left {
    left: -16px;
}

.scroll-right {
    right: -16px;
}

/* All Products Responsive Grid */
#all-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media(min-width: 576px) {
    #all-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(min-width: 768px) {
    #all-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 16px;
    }
}

/* --- PREMIUM BESTSELLER SECTION --- */
.bestseller-section-container {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.05) 0%, rgba(16, 185, 129, 0.07) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px 16px;
    border-radius: 24px;
    border: 1.5px solid rgba(16, 185, 129, 0.12);
    margin-top: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(6, 78, 59, 0.04);
}

/* Decorative background glow */
.bestseller-section-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 1;
}

.section-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

@media(min-width: 768px) {
    .section-header-premium {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
        margin-bottom: 28px;
    }
}

.section-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media(min-width: 768px) {
    .section-header-left {
        align-items: center;
    }
}

.section-badge-pill {
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
    margin-bottom: 6px;
}

.section-title-premium {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle-premium {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Glassmorphic Navigation Buttons */
.scroll-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    color: var(--primary) !important;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

@media(min-width: 768px) {
    .scroll-btn {
        display: flex;
    }
}

.scroll-btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.25) !important;
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.9) !important;
}

.scroll-left {
    left: -10px;
}

.scroll-right {
    right: -10px;
}

/* Bestseller Card specific styling */
.bestseller-slider {
    padding-top: 12px;
    padding-bottom: 20px;
    z-index: 2;
    position: relative;
}

.bestseller-card {
    border: 1px solid rgba(245, 158, 11, 0.22) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 30px -5px rgba(217, 119, 6, 0.06), 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden;
}

/* Floating ribbon badge */
.bestseller-badge-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
    /* Forest green to bright green */
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bestseller-badge-ribbon::after {
    display: none;
}

/* Glowing Discount Tag */
.bestseller-save-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff5e36 0%, #ff3b30 100%);
    /* Premium red-orange gradient */
    color: #ffffff;
    /* Clear white text */
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.2);
    transition: var(--transition);
}

.bestseller-card:hover .bestseller-save-badge,
.product-card:hover .bestseller-save-badge {
    background: linear-gradient(135deg, #ff3b30 0%, #e0241b 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 14px rgba(255, 59, 48, 0.35);
}

.bestseller-card:hover .bestseller-badge-ribbon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}

/* Rating system styles */
.rating-badge-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    background: rgba(245, 158, 11, 0.06);
    width: fit-content;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.rating-star {
    color: #f59e0b;
    font-size: 11px;
    line-height: 1;
}

.rating-value {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-dark);
}

.rating-count {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Styling of details */
.bestseller-info-wrap {
    margin-top: 6px;
    margin-bottom: 8px;
}

.bestseller-name {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--text-dark);
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bestseller-img-wrap {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0.5) 100%);
    border: 1px solid rgba(16, 185, 129, 0.06);
    height: 110px !important;
    padding: 8px;
}

/* Form controls in bestseller cards */
.bestseller-dropdown {
    border-color: rgba(16, 185, 129, 0.2);
    font-weight: 700;
    color: var(--primary);
}

.bestseller-dropdown:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.bestseller-add-btn {
    background-color: var(--primary-bg);
    color: var(--primary);
    border: 1.5px solid var(--primary-light);
}

.bestseller-add-btn:hover {
    background-color: var(--primary-light);
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.bestseller-qty-group {
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(6, 78, 59, 0.15);
}

/* Hover sheen swipe animation (shine sweep) */
.bestseller-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 5;
    pointer-events: none;
}

.bestseller-card:hover::after {
    animation: shine-sweep 1.2s ease-out;
}

@keyframes shine-sweep {
    100% {
        left: 200%;
    }
}

/* --- ROTATING PLACEHOLDER ANIMATION (FLIPKART STYLE) --- */
.search-placeholder-rotator {
    position: absolute;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 5;
}

/* Hide rotator when search input has focus or has a value */
.search-input:focus~.search-placeholder-rotator,
.search-input.has-value~.search-placeholder-rotator {
    opacity: 0;
    visibility: hidden;
}

.rotator-prefix {
    color: var(--text-muted);
}

.rotator-text-wrapper {
    position: relative;
    height: 20px;
    width: 250px;
    /* space for recommendations */
    overflow: hidden;
}

.rotator-text {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(100%);
    color: var(--primary-light);
    font-weight: 600;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

.rotator-text.active {
    opacity: 1;
    transform: translateY(0);
}

.rotator-text.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* --- SITE FOOTER --- */
.site-footer {
    background: linear-gradient(180deg, #052e24 0%, #01140f 100%);
    /* Premium deeper dark green glass gradient */
    color: rgba(255, 255, 255, 0.75);
    padding: 48px 0 32px 0;
    /* margin-top: 54px; */
    border-top: 4px solid var(--primary-light);
    font-size: 13px;
    font-weight: 500;
    position: relative;
    z-index: 10;
    /* box-shadow: 0 -12px 40px rgba(1, 20, 15, 0.25); */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 32px;
}

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.4fr 0.8fr 1fr;
        gap: 48px;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.brand-col .footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    transition: var(--transition);
}

.brand-col .footer-logo:hover {
    transform: scale(1.03);
}

.brand-col .footer-slogan {
    margin-top: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 800;
    color: white;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-contact-info {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 14px;
}

.site-footer .fssai-container {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
    padding: 8px 12px;
    border-radius: 10px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
}

@media(min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        gap: 0;
    }
}

.copyright-text {
    margin: 0;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.6);
}

.developer-text {
    margin: 0;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.6);
}

.developer-link {
    color: var(--accent);
    /* Warm Gold */
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.developer-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-light);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.developer-link:hover {
    color: white;
}

.developer-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media(max-width:991px) {
    .promo-banners-grid {
        display: none !important;
    }
}

/* Adjust page bottom offset padding on mobile to accommodate floating navigation bar and clean up mobile footer */
@media(max-width: 767px) {


    .brand-col .footer-logo {
        align-self: center !important;
    }

    .brand-col .footer-slogan {
        display: none !important;
        /* Hide description slogan */
    }

    .footer-socials {
        justify-content: center !important;
        margin-top: 10px !important;
    }

    .links-col {
        display: none !important;
        /* Hide Quick Links column */
    }

    .footer-contact-info {
        display: none !important;
        /* Hide address contact text */
    }

    .footer-grid {
        gap: 24px !important;
        text-align: center !important;
        padding-bottom: 24px !important;
    }

    .site-footer {
        padding: 32px 0 20px 0 !important;
        /* Compact spacing */
    }

    .site-footer .fssai-container {
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.03) !important;
        padding: 8px 16px !important;
    }
}

/* --- MOBILE & UX SMOOTHING OPTIMIZATIONS --- */
/* Enable iOS momentum scroll for smooth swipe physics */
.product-slider,
.category-container,
.category-scroller {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Hardware accelerate slide-in cart drawer overlay */
.cart-drawer {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(100%, 0, 0);
    /* use 3d transform for GPU acceleration */
}

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

/* Active tap feedback animations under touch fingers */
.add-btn:active,
.qty-control:active,
.checkout-btn:active,
.category-card:active,
.bottom-nav-item:active,
.cart-header-btn:active,
.btn-accent:active,
.scroll-btn:active {
    transform: scale(0.94) !important;
}

/* Smooth transition defaults for all interactive triggers */
.add-btn,
.qty-control,
.checkout-btn,
.category-card,
.bottom-nav-item,
.cart-header-btn,
.btn-accent,
.scroll-btn {
    transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, box-shadow 0.2s, border-color 0.2s !important;
}

/* Mobile-specific sizing & spacing adjustments for comfortable touch interactions */
@media(max-width: 767px) {
    .product-card {
        padding: 10px;
        /* compact padding to save screen space */
        border-radius: 12px;
    }

    .product-slider .product-card {
        min-width: 145px;
        /* slightly smaller cards to fit more on mobile screens */
        max-width: 145px;
    }

    .product-image-wrapper {
        height: 80px;
        /* scaled down image wrapper */
        margin-bottom: 6px;
    }

    .bestseller-img-wrap {
        height: 95px !important;
    }

    .bestseller-badge-ribbon {
        font-size: 8px;
        padding: 3px 10px 3px 12px;
    }

    .bestseller-save-badge {
        font-size: 8px;
        padding: 2px 6px;
    }

    .rating-badge-container {
        padding: 1px 4px;
        gap: 2px;
    }

    .rating-star {
        font-size: 10px;
    }

    .rating-value {
        font-size: 10px;
    }

    .rating-count {
        font-size: 9px;
    }

    .product-name-en {
        font-size: 12px;
    }

    .bestseller-name {
        font-size: 13px !important;
        min-height: 32px;
    }

    .weight-selector-dropdown {
        padding: 8px 10px;
        /* larger drop down tap area */
        font-size: 11px;
        border-radius: 6px;
        margin-bottom: 8px;
    }

    .product-card .add-btn,
    .product-card .qty-btn-group {
        height: 32px;
        /* perfect finger-tap size */
        font-size: 11px;
    }

    .bottom-nav-item {
        padding: 6px 0;
        /* spacing for thumb click */
    }

    .bottom-nav-item svg {
        width: 18px;
        height: 18px;
        margin-bottom: 1px;
    }

    .bottom-nav-item span {
        font-size: 9px;
    }
}

/* Prevent text highlighting when repeatedly tapping quantity buttons */
.qty-control,
.qty-val,
.add-btn,
.category-card,
.bottom-nav-item {
    user-select: none;
    -webkit-user-select: none;
}

/* --- RESPONSIVENESS FOR VERY SMALL SCREENS (DOWN TO 320PX) --- */
@media(max-width: 340px) {
    .container {
        padding: 0 8px;
        /* tighter gutters to save horizontal space */
    }

    .location-picker .address {
        max-width: 110px;
        /* prevent logo overlap */
        font-size: 11px;
    }

    .header-logo-img {
        height: 36px;
        /* slightly smaller logo */
    }

    .rotator-text-wrapper {
        width: 150px;
        /* prevent text wrapping/clipping */
    }

    .search-placeholder-rotator {
        left: 36px;
        font-size: 12px;
    }

    .search-input {
        font-size: 12px;
        padding-left: 34px;
    }

    /* Category Cards */
    .category-card {
        min-width: 60px;
        max-width: 72px;
        padding: 0;
        margin: 2px;
    }

    .category-card span {
        font-size: 9.5px;
        margin-top: 2px;
    }

    .category-img-box {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        margin-bottom: 4px;
    }

    /* Product Sliders */
    .product-slider {
        gap: 8px;
    }

    .product-slider .product-card {
        min-width: 135px;
        /* compact cards for easy swiping */
        max-width: 135px;
        padding: 8px;
    }

    /* Product Grid */
    #all-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #all-products-grid .product-card {
        padding: 8px;
    }

    /* Bestseller Card specifications */
    .bestseller-img-wrap {
        height: 80px !important;
    }

    .bestseller-name {
        font-size: 11px !important;
        min-height: 28px;
    }

    .product-name-en {
        font-size: 11px;
    }

    .weight-selector-dropdown {
        font-size: 10px;
        padding: 6px 8px;
        margin-bottom: 6px;
    }

    .price-current {
        font-size: 12px;
    }

    .price-old {
        font-size: 9px;
    }

    .product-card .add-btn,
    .product-card .qty-btn-group {
        height: 28px;
        font-size: 10px;
    }

    .action-btn-container {
        width: 60px;
    }

    /* Bestseller Badges */
    .bestseller-badge-ribbon {
        font-size: 7px;
        padding: 2px 6px 2px 8px;
        left: -4px;
        top: 8px;
    }

    .bestseller-badge-ribbon::after {
        border-top: 4px solid #043e2f;
        border-left: 4px solid transparent;
        bottom: -4px;
    }

    .bestseller-save-badge {
        font-size: 7px;
        padding: 1px 4px;
        top: 8px;
        right: 8px;
    }

    /* Checkout & Timelines */
    .timeline {
        margin: 20px 0 10px 10px;
        padding-left: 16px;
    }

    .timeline-item::before {
        left: -25px;
    }

    /* Visible Site Footer spacing */
    .site-footer {
        padding: 16px 0;
        font-size: 11px;
    }
}

/* --- MIDDLE PROMO BANNER SLIDER --- */
.promo-slider-section {
    margin-top: 36px;
    position: relative;
    z-index: 2;
}

.promo-slider {
    height: 135px;
    /* Premium larger height for mobile display */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

@media(min-width: 768px) {
    .promo-slider {
        height: 200px;
        /* Sleek height for desktop layouts */
    }
}

.promo-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

@media(min-width: 768px) {
    .promo-slide {
        padding: 0 40px;
    }
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Vignette shading on the left to preserve high readability, fading completely on the right to show product details */
    background: linear-gradient(90deg, rgba(4, 30, 23, 0.75) 0%, rgba(6, 78, 59, 0.4) 45%, rgba(0, 0, 0, 0) 90%);
    z-index: 1;
}

.promo-content {
    color: white;
    z-index: 2;
    max-width: 82%;
    background: rgba(6, 78, 59, 0.35);
    /* Tinted glass panel background */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media(min-width: 768px) {
    .promo-content {
        max-width: 480px;
        padding: 20px 24px;
        gap: 8px;
    }
}

.promo-tag {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.3);
}

.promo-content h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 2px 0 0 0;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.promo-content p {
    font-size: 10px;
    opacity: 0.95;
    line-height: 1.2;
    margin: 0;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.promo-btn {
    background: #ffffff;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    text-decoration: none;
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-btn .btn-arrow {
    transition: transform 0.3s ease;
}

.promo-btn:hover {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.promo-btn:hover .btn-arrow {
    transform: translateX(3px);
}

@media(min-width: 768px) {
    .promo-tag {
        font-size: 9px;
        padding: 4px 10px;
    }

    .promo-content h3 {
        font-size: 24px;
    }

    .promo-content p {
        font-size: 13px;
    }

    .promo-btn {
        font-size: 12px;
        padding: 8px 16px;
        margin-top: 6px;
    }
}

/* Staggered entrance animations for slide contents */
.promo-slide .promo-tag {
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

.promo-slide h3 {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

.promo-slide p {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
}

.promo-slide .promo-btn {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.4s;
}

/* Active slide trigger state */
.promo-slide.active .promo-tag,
.promo-slide.active h3,
.promo-slide.active p,
.promo-slide.active .promo-btn {
    opacity: 1;
    transform: translateY(0);
}

.promo-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-dot.active {
    width: 20px;
    border-radius: 4px;
    background-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* --- FSSAI CERTIFIED FOOTER HIGHLIGHT --- */
.fssai-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    transition: var(--transition);
}

.fssai-container:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.fssai-badge {
    display: flex;
    align-items: center;
}

.fssai-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    background-color: #ffffff;
    /* White background panel for logo contrast */
    padding: 3px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    display: block;
    transition: var(--transition);
}

.fssai-logo-img:hover {
    transform: scale(1.05);
}

.fssai-info {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.fssai-label {
    color: rgba(255, 255, 255, 0.9);
}

@media(max-width: 767px) {
    .fssai-container {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        text-align: center;
    }

    .fssai-info {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
    }

    .fssai-divider {
        display: none;
    }
}

/* --- THEMED CATEGORY CARD COLOR VARIABLES --- */
.category-card[data-category="All"] {
    --theme-color: #10b981;
    --theme-bg: #ecfdf5;
}

.category-card[data-category="Vegetables"] {
    --theme-color: #ea580c;
    --theme-bg: #fff7ed;
}

.category-card[data-category="Fruits"] {
    --theme-color: #dc2626;
    --theme-bg: #fef2f2;
}

.category-card[data-category="Leafy Greens"] {
    --theme-color: #16a34a;
    --theme-bg: #f0fdf4;
}

.category-card[data-category="Exotic"] {
    --theme-color: #ca8a04;
    --theme-bg: #fefce8;
}

.category-card[data-category="Combos"] {
    --theme-color: #d97706;
    --theme-bg: #fffbeb;
}

/* --- PRODUCT CARD GLOBAL SHEEN SWEEP (SHINE ANIMATION) --- */
.product-card {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(16, 185, 129, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 5;
    pointer-events: none;
}

.product-card:hover::after {
    animation: shine-sweep 1.2s ease-out;
}

/* --- INTERACTIVE WEIGHT TIER PILLS --- */
.weight-pill-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.weight-pill {
    background: #ffffff;
    border: 1.5px solid var(--border-dark);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.weight-pill:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
    color: var(--primary);
    transform: translateY(-1px);
}

.weight-pill.active {
    background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.weight-pill.active:hover {
    color: #ffffff;
    transform: none;
}

/* --- PRODUCT DETAILS PAGE LAYOUTS --- */
.details-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    border-radius: 28px;
    padding: 24px;
    position: relative;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.02) !important;
}

@media(min-width: 768px) {
    .details-container {
        grid-template-columns: 1fr 1.2fr !important;
        padding: 40px !important;
        gap: 48px !important;
    }
}

.details-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 24px;
    padding: 24px;
    overflow: hidden;
    min-height: 300px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02), var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.details-gallery:hover {
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02), var(--shadow-md);
    border-color: rgba(16, 185, 129, 0.25);
}

.details-image {
    width: 100%;
    max-width: 320px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.details-container:hover .details-image {
    transform: scale(1.05) translateY(-4px);
}

.details-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.details-category-badge {
    background-color: var(--primary-bg);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
    width: fit-content;
    text-transform: uppercase;
    margin-bottom: 14px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    letter-spacing: 0.5px;
}

.details-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.details-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-family: 'Hind Siliguri', sans-serif;
}

.details-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* Premium Details Rating Pill */
.details-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.07) 0%, rgba(245, 158, 11, 0.03) 100%);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.04);
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
}

.details-rating-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1), 0 0 0 3px rgba(245, 158, 11, 0.05);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.details-rating-pill .rating-star {
    color: #f59e0b;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: starPulse 2s infinite ease-in-out;
    transition: var(--transition);
}

.details-rating-pill:hover .rating-star {
    transform: scale(1.2) rotate(15deg);
    animation: none;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
}

.details-rating-pill .rating-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
}

.details-rating-pill .rating-sep {
    color: rgba(245, 158, 11, 0.3);
    font-size: 12px;
    font-weight: 300;
}

.details-rating-pill .details-reviews-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.details-rating-pill:hover .details-reviews-count {
    color: var(--text-dark);
}

/* Premium Details Organic Badge */
.details-organic-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.03) 100%);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.04);
    color: #059669; /* Sleeker, high-contrast forest green */
    font-weight: 700;
    font-size: 12px;
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
}

.details-organic-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1), 0 0 0 3px rgba(16, 185, 129, 0.05);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.06) 100%);
}

.details-organic-badge i {
    font-size: 13px;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.details-organic-badge:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* Keyframes for micro-animations */
@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(245, 158, 11, 0));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.4));
    }
}

.details-description-box {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.4);
    padding: 16px;
    border-radius: 14px;
    border: 1px dashed rgba(16, 185, 129, 0.15);
}

.details-section-heading {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.details-desc-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 500;
}

.details-action-box {
    border-top: 1.5px dashed rgba(16, 185, 129, 0.15);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-weight-selector-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.details-selection-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-price-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 18px 28px;
    border-radius: 22px;
    box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.details-price-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 16px 32px -10px rgba(16, 185, 129, 0.15);
}

.details-price-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.details-price-current {
    font-size: 26px !important;
    font-weight: 850 !important;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.details-price-old {
    font-size: 16px !important;
}

.details-action-btn-container {
    width: 112px !important;
    height: 42px !important;
}

.details-action-btn-container .add-btn,
.details-action-btn-container .qty-btn-group {
    border-radius: 28px !important;
    font-size: 13px !important;
}

.weight-pill.active:hover {
    color: #ffffff;
    transform: none;
}

/* --- PREMIUM INTERACTIVE STATUS TIMELINE --- */
.timeline {
    position: relative;
    margin: 28px 0 20px 32px;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-image: linear-gradient(to bottom, rgba(16, 185, 129, 0.25) 50%, transparent 50%);
    background-size: 2px 8px;
    background-repeat: repeat-y;
}

.timeline.animating::before {
    animation: timeline-dash-move 0.8s linear infinite;
}

@keyframes timeline-dash-move {
    to {
        background-position: 0 8px;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    min-height: 48px;
}

.timeline-item::before {
    display: none;
    /* Hide default timeline dot */
}

.timeline-icon-wrap {
    position: absolute;
    left: -54px;
    top: -2px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-gray);
    border: 3px solid var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    z-index: 5;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.timeline-item.active .timeline-icon-wrap {
    background-color: var(--primary-light);
    color: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    animation: pulse-glow 2s infinite;
}

.timeline-item.completed .timeline-icon-wrap {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 2px rgba(6, 78, 59, 0.1);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(16, 185, 129, 0);
    }
}

/* Active delivery scooter translation */
.timeline-item.active .scooter-icon {
    animation: scooter-drive 1s infinite ease-in-out;
}

@keyframes scooter-drive {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(1.5px, -0.5px);
    }

    50% {
        transform: translate(-0.5px, 0.5px);
    }

    75% {
        transform: translate(-1.5px, -0.2px);
    }
}

/* Packing box pulse */
.timeline-item.active .box-icon {
    animation: box-pack 1.2s infinite ease-in-out;
}

@keyframes box-pack {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Pending clock rotate */
.timeline-item.active .clock-icon {
    animation: clock-spin 6s infinite linear;
}

@keyframes clock-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Completed shield celebrate */
.timeline-item.active .shield-icon {
    animation: shield-bounce 0.8s infinite alternate ease-in-out;
}

@keyframes shield-bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-4px);
    }
}

/* --- ORDER TRACKING PAGE VIEW LAYOUTS --- */
.order-tracking-container {
    padding: 24px 20px;
}

.tracking-actions-bar {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-back-btn {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 10px;
}

.tracking-refresh-btn {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 10px;
    background-color: var(--primary-bg);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tracker-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.tracker-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 24px;
}

.tracker-details-header {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.tracker-details-item {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.tracker-details-item.name {
    margin-bottom: 6px;
}

.tracker-details-item.phone {
    margin-bottom: 12px;
}

.tracker-details-address {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
    background: rgba(15, 23, 42, 0.02);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.tracker-summary-header {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.tracker-summary-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 6px;
}

.tracker-item-row {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    background: rgba(15, 23, 42, 0.01);
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.tracker-item-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
}

.tracker-item-info {
    flex-grow: 1;
}

.tracker-item-name {
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--text-dark);
}

.tracker-item-weight {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
}

.tracker-item-price {
    font-weight: 800;
    color: var(--text-dark);
}

.tracker-bill-breakdown {
    margin-top: 20px;
    border-top: 1.5px dashed rgba(16, 185, 129, 0.15);
    padding-top: 14px;
}

.tracker-bill-total {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 850;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 8px;
}

.tracker-payment-badge {
    margin-top: 12px;
    font-size: 11px;
    font-weight: 800;
    background-color: var(--primary-bg);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

/* --- PREMIUM TICKET / Dashed receipt summary & safety badges --- */
.receipt-summary-container {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--border-dark);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding-bottom: 26px;
    /* spacing for zig-zag edge */
}

/* Elegant repeating zig-zag tear-off bottom edge */
.receipt-summary-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-image: linear-gradient(-45deg, var(--bg-gray) 4px, transparent 0),
        linear-gradient(45deg, var(--bg-gray) 4px, transparent 0);
    background-size: 8px 8px;
    background-repeat: repeat-x;
    z-index: 10;
}

.receipt-title {
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
}

.checkout-badge-pill {
    background-color: var(--primary-bg);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* --- PREMIUM SCROLL TO TOP PROGRESS CIRCLE --- */
.scroll-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.scroll-to-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
    background: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    color: var(--primary-light);
}

.scroll-to-top-btn .progress-ring {
    position: absolute;
    top: 6px;
    left: 6px;
    transform: rotate(-90deg);
    width: 36px;
    height: 36px;
}

.scroll-to-top-btn .progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear;
    stroke: var(--primary-light);
}

.scroll-to-top-btn .arrow-up {
    font-size: 12px;
    line-height: 1;
    margin-top: -1px;
    transition: transform 0.3s ease;
}

.scroll-to-top-btn:hover .arrow-up {
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .scroll-to-top-btn {
        bottom: 84px;
        /* Float safely above mobile sticky capsule bottom nav */
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .scroll-to-top-btn .progress-ring {
        top: 4px;
        left: 4px;
    }
}

/* --- TEXT GRADIENT SHIFT ANIMATION --- */
.section-title-premium {
    background: linear-gradient(to right, var(--primary) 0%, #0d9488 35%, #d97706 70%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text-move 6s linear infinite;
}

@keyframes gradient-text-move {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* --- QUANTITY CHANGE SCALE BOUNCE --- */
@keyframes val-bounce {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    50% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.qty-val {
    display: inline-block;
    animation: val-bounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --- BADGES & SAVINGS TAGS PULSES --- */
@keyframes badge-pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
        transform: scale(1.03);
    }
}

@keyframes save-pulse {

    0%,
    100% {
        box-shadow: 0 4px 10px rgba(255, 59, 48, 0.25);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 16px rgba(255, 59, 48, 0.5);
        transform: scale(1.04);
    }
}

.bestseller-badge-ribbon {
    animation: badge-pulse 3s infinite ease-in-out;
}

.badge-tag {
    animation: badge-pulse 2.5s infinite ease-in-out;
}

.bestseller-save-badge {
    animation: save-pulse 2s infinite ease-in-out;
}

/* --- CARD-SPECIFIC NEON GLOW HOVERS --- */
.product-card:hover {
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.14) !important;
    border-color: rgba(16, 185, 129, 0.24) !important;
}

.product-card.deal-tag:hover {
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

.bestseller-card:hover {
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.2) !important;
    border-color: rgba(6, 78, 59, 0.35) !important;
}

/* --- FLOATING WHATSAPP CHAT BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 84px;
    /* Sits cleanly above the desktop scroll-to-top button (bottom: 24px) */
    right: 24px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    z-index: 998;
    /* just below scroll-to-top (999) but above standard content */
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(32, 186, 90, 0.45);
    color: #ffffff;
}

.whatsapp-float-icon {
    font-size: 24px;
}

/* Pulse animation effect */
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: whatsapp-pulse-glow 2s infinite;
    opacity: 0;
    top: 0;
    left: 0;
    box-sizing: border-box;
}

@keyframes whatsapp-pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.4);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Mobile sticky nav layout alignment */
@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 140px;
        /* Float safely above both the mobile bottom nav bar (bottom: 0) and mobile scroll-to-top button (bottom: 84px) */
        right: 16px;
        width: 44px;
        height: 44px;
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
    }

    .whatsapp-float-icon {
        font-size: 22px;
    }
}

/* --- ATTRACTIVE PROMO BANNERS GRID --- */
.promo-banners-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 8px;
}

@media(min-width: 768px) {
    .promo-banners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.promo-banner-card {
    border-radius: 20px;
    padding: 24px;
    display: flex;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-banner-card:hover {
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
}

.promo-banner-card.card-veg {
    background: linear-gradient(135deg, #0d9488 0%, #115e59 100%);
}

.promo-banner-card.card-fruit {
    background: linear-gradient(135deg, #f59e0b 0%, #ca8a04 100%);
}

.promo-banner-card.card-combo {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.promo-banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    max-width: 60%;
    color: white;
}

.promo-banner-content h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    letter-spacing: -0.3px;
}

.promo-banner-content p {
    font-size: 11.5px;
    opacity: 0.92;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 12px;
}

.promo-banner-btn {
    width: fit-content;
    background: white;
    color: var(--text-dark) !important;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 18px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.promo-banner-btn:hover {
    transform: scale(1.06);
    background: #f8fafc;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.promo-banner-btn:active {
    transform: scale(0.96);
}

.promo-banner-img {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 135px;
    height: 135px;
    object-fit: contain;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

.promo-banner-card:hover .promo-banner-img {
    transform: scale(1.12) rotate(4deg) translateY(-4px);
    filter: drop-shadow(0 15px 22px rgba(0, 0, 0, 0.25));
}

/* --- MODERN PRODUCT DETAILS STYLES --- */
.details-main-container {
    padding: 24px 16px;
}

/* Breadcrumbs Styling */
.breadcrumbs-wrapper {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.breadcrumb-link {
    color: var(--primary-light);
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb-active {
    color: var(--text-dark);
}

/* Product Not Found page overrides */
.details-not-found-container {
    padding: 80px 20px;
    text-align: center;
    max-width: 500px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-md);
}

.details-not-found-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.details-not-found-text {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}

.details-not-found-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
}

.icon-mr-sm {
    margin-right: 6px;
}

/* Tab text overrides */
.details-tab-content .details-desc-text {
    font-size: 13px !important;
}

/* Select element hidden helper */
.hidden-dropdown {
    display: none !important;
}

/* Price block modern flex row layouts */
.details-price-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.details-price-value-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Related card fallback dropdown override */
.related-dropdown-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* RELATED GRID CARD SPACING OVERRIDES */
.related-grid .product-info-wrap {
    margin-top: 8px;
    margin-bottom: 10px;
}

.related-grid .product-name-en {
    margin-bottom: 6px;
}

/* --- KEY ATTRIBUTES PANEL (NUTRITION & SPECS) --- */
.details-attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
}

@media(min-width: 576px) {
    .details-attributes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.attribute-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.attribute-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.08);
}

.attribute-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    background: var(--primary-bg);
}

/* Category themed attribute colors */
.details-page-wrapper[data-cat-theme="Fruits"] .attribute-icon-box {
    background: #fef2f2;
    color: #dc2626;
}
.details-page-wrapper[data-cat-theme="Vegetables"] .attribute-icon-box {
    background: #fff7ed;
    color: #ea580c;
}
.details-page-wrapper[data-cat-theme="Leafy Greens"] .attribute-icon-box {
    background: #f0fdf4;
    color: #16a34a;
}
.details-page-wrapper[data-cat-theme="Exotic"] .attribute-icon-box {
    background: #fefce8;
    color: #ca8a04;
}

.attribute-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.attribute-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.attribute-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

/* --- SPECIFICATIONS TABLE --- */
.details-specs-container {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(16, 185, 129, 0.08);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.specs-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    border-bottom: 1px dashed rgba(16, 185, 129, 0.15);
    padding-bottom: 8px;
}

.specs-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.specs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.specs-row:nth-child(odd) {
    background: rgba(15, 23, 42, 0.02);
}

.specs-row:hover {
    background: rgba(16, 185, 129, 0.04);
}

.specs-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.specs-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Dynamic Category Colors on details badges */
.details-category-badge[data-category="Vegetables"],
.details-category-badge[data-category="Vegetable"] {
    background-color: #fff7ed;
    color: #ea580c;
    border-color: rgba(234, 88, 12, 0.2);
}

.details-category-badge[data-category="Fruits"],
.details-category-badge[data-category="Fruit"] {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

.details-category-badge[data-category="Leafy Greens"] {
    background-color: #f0fdf4;
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.2);
}

.details-category-badge[data-category="Exotic"] {
    background-color: #fefce8;
    color: #ca8a04;
    border-color: rgba(202, 138, 4, 0.2);
}

.details-category-badge[data-category="Combos"] {
    background-color: #fffbeb;
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.2);
}

/* Sticky Action Bar internal select/price hidden displays */
.sticky-action-bar .weight-selector-dropdown,
.sticky-action-bar .price-container {
    display: none !important;
}

/* --- GALLERY EXTRA INFORMATION WIDGETS --- */
.gallery-extra-widgets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    width: 100%;
}

.desktop-only-widgets {
    display: flex !important;
}

.mobile-only-widgets {
    display: none !important;
    margin-top: 24px;
    width: 100%;
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .desktop-only-widgets {
        display: none !important;
    }
    .mobile-only-widgets {
        display: flex !important;
    }
}

.extra-widget-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.01);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.extra-widget-card:hover {
    border-color: rgba(16, 185, 129, 0.15);
    box-shadow: 0 16px 30px -10px rgba(16, 185, 129, 0.1);
}

.widget-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed rgba(16, 185, 129, 0.12);
    padding-bottom: 8px;
}

/* Nutrition Grid */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.nutrition-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.nutrition-label {
    font-size: 10px;
    font-weight: 750;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Circular SVG Progress styling */
.nutrition-progress-circle {
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(15, 23, 42, 0.04);
    stroke-width: 3.2;
}

.circle-fg {
    fill: none;
    stroke: var(--theme-color);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--percent));
    transition: stroke-dashoffset 1s ease-in-out;
}

.circle-value {
    position: absolute;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-dark);
}

/* Journey Timeline */
.journey-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 8px;
}

.journey-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.08);
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-text strong {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-dark);
}

.step-text span {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
    font-weight: 550;
}

.details-page-wrapper {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 5% 15%, rgba(16, 185, 129, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 95% 85%, rgba(245, 158, 11, 0.05) 0%, transparent 35%);
}

.details-gallery {
    position: relative !important;
}

.gallery-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    z-index: 4;
}

.gallery-badge.delivery-badge {
    left: auto;
    right: 14px;
    color: var(--accent-hover);
}

.gallery-badge i {
    font-size: 12px;
}

.gallery-badge.delivery-badge i {
    animation: flash-pulse 1.5s infinite alternate ease-in-out;
}

@keyframes flash-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.details-image {
    filter: drop-shadow(0 15px 25px rgba(15, 23, 42, 0.12));
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.details-container:hover .details-image {
    transform: scale(1.06) translateY(-6px);
    filter: drop-shadow(0 20px 35px rgba(15, 23, 42, 0.18));
}

/* Tabbed interactive widget */
.details-tabs-header {
    display: flex;
    gap: 16px;
    border-bottom: 1.5px solid var(--border-dark);
    margin-bottom: 14px;
    padding-bottom: 2px;
}

.details-tab-btn {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 4px;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-primary);
}

.details-tab-btn:hover {
    color: var(--primary-light);
}

.details-tab-btn.active {
    color: var(--primary);
}

.details-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3.5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.details-tab-content {
    display: none;
    animation: fadeInTab 0.35s ease-out;
}

.details-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media(min-width: 576px) {
    .tab-bullets {
        grid-template-columns: 1fr 1fr;
    }
}

.tab-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.tab-bullets li i {
    color: var(--primary-light);
    margin-top: 3px;
    font-size: 12px;
}

/* Price & Discount Pill */
.savings-badge {
    background: #dc2626;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
    margin-left: 8px;
    display: inline-block;
    align-self: center;
    vertical-align: middle;
}

/* Trust and Safety Grid */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    border-top: 1px dashed rgba(16, 185, 129, 0.15);
    padding-top: 20px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.trust-icon-box {
    width: 42px;
    height: 42px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.08);
    transition: var(--transition);
}

.trust-item:hover .trust-icon-box {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.15);
}

.trust-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.25;
}

/* Sticky Action Bar */
.sticky-action-bar {
    position: fixed;
    bottom: -90px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-dark);
    box-shadow: 0 -10px 35px rgba(15, 23, 42, 0.1);
    padding: 12px 16px !important;
    display: none !important;
    /* Hide on desktop by default */
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 999;
    transition: bottom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-direction: row !important;
    border-radius: 0px !important;
    overflow: visible !important;
}

@media(max-width: 767px) {
    .sticky-action-bar {
        display: flex !important;
        /* Display only on mobile viewports */
    }

    .sticky-action-bar.visible {
        bottom: var(--bottom-nav-height) !important;
    }
}

.sticky-product-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-product-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.sticky-product-details {
    display: flex;
    flex-direction: column;
}

.sticky-product-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.sticky-product-price {
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 700;
    margin-top: 2px;
}

.sticky-action-btn-wrap {
    width: 100px;
}

.sticky-action-btn-wrap .add-btn,
.sticky-action-btn-wrap .qty-btn-group {
    border-radius: 20px !important;
    font-size: 12px !important;
    height: 36px !important;
}

/* Related Products */
.related-products-section {
    margin-top: 48px;
    border-top: 1px solid var(--border-dark);
    padding-top: 36px;
    margin-bottom: 24px;
}

.related-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.related-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media(min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(min-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- MULTIPLE IMAGES GALLERY STYLES --- */
.details-gallery-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.details-gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 24px;
    padding: 0 !important;
    /* Full bleed image */
    overflow: hidden;
    height: 380px;
    /* Fixed height for modern look */
    min-height: 380px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02), var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative !important;
}

/* Gradient shade overlay at top to make white/glass badges pop */
.details-gallery-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.12), transparent);
    z-index: 2;
    pointer-events: none;
}

.details-gallery-main:hover {
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02), var(--shadow-md);
    border-color: rgba(16, 185, 129, 0.25);
}

.details-gallery-main img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    /* Full crop zoom view */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.details-gallery-main:hover img {
    transform: scale(1.06);
}

.details-gallery-thumbs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: nowrap; /* Keep on one line */
}

.thumb-card {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    border: 2px solid rgba(15, 23, 42, 0.08); /* Soft slate border */
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
    position: relative;
}

.thumb-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.thumb-card.active {
    border-color: var(--primary);
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.25);
    transform: translateY(-4px) scale(1.08);
}

/* Glassy active indicator ring */
.thumb-card.active::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 2px solid #ffffff;
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
}

.thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.thumb-card:hover img {
    transform: scale(1.1);
}

/* Responsive adjustment for small screens */
@media(max-width: 576px) {
    .details-gallery-thumbs {
        gap: 8px;
        margin-top: 14px;
    }
    
    .thumb-card {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        border-width: 1.5px;
    }
    
    .thumb-card.active {
        box-shadow: 0 6px 14px rgba(16, 185, 129, 0.2);
        transform: translateY(-2px) scale(1.05);
    }
    
    .thumb-card.active::before {
        border-width: 1.5px;
        border-radius: 9px;
    }
}

/* --- FULL BLEED PRODUCT IMAGES & ZERO PADDING CARDS --- */
/* Target all cards except details-container and category-card */
.product-card:not(.details-container):not(.category-card) {
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 22px !important;
}

/* Make image wrapper stretch full top and sides */
.product-card:not(.details-container) .product-image-wrapper {
    margin: 0 !important;
    width: 100% !important;
    height: 130px !important;
    border-radius: 22px 22px 0 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

/* bestseller wrapper override */
.product-card:not(.details-container) .bestseller-img-wrap {
    height: 130px !important;
    padding: 0 !important;
}

/* Ensure images fill wrapper completely with cover */
.product-card:not(.details-container) .product-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

/* Apply padding to direct child content wrapper divs of product cards */
.product-card:not(.details-container)>div:not(.product-image-wrapper):not(.bestseller-badge-ribbon):not(.bestseller-save-badge):not(.badge-tag) {
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin-top: 10px !important;
}

.product-card:not(.details-container)>div:last-child {
    padding-bottom: 14px !important;
}

/* Ribbon badge corrections for full bleed layout */
.product-card:not(.details-container) .bestseller-badge-ribbon {
    top: 10px;
    left: 0;
    z-index: 3;
}

.product-card:not(.details-container) .bestseller-save-badge {
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 3;
}

.product-card:not(.details-container) .badge-tag {
    top: 10px;
    left: 10px;
    right: auto;
    z-index: 3;
}

/* Mobile responsive full-bleed card updates */
@media(max-width: 767px) {
    .product-card:not(.details-container):not(.category-card) {
        border-radius: 12px !important;
    }

    .product-card:not(.details-container) .product-image-wrapper,
    .product-card:not(.details-container) .bestseller-img-wrap {
        height: 95px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .product-card:not(.details-container)>div:not(.product-image-wrapper):not(.bestseller-badge-ribbon):not(.bestseller-save-badge):not(.badge-tag) {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-top: 8px !important;
    }

    .product-card:not(.details-container)>div:last-child {
        padding-bottom: 10px !important;
    }
}

/* --- SIMPLE INLINE LABELS & FLEX RE-ORDERING FOR CARDS --- */
/* Enable flex ordering on product cards */
.product-card:not(.details-container) {
    display: flex !important;
    flex-direction: column !important;
}

/* Image wrapper goes first */
.product-card:not(.details-container) .product-image-wrapper {
    order: 1 !important;
}

/* Ensure the link inside the image wrapper fills it completely to enable full bleed */
.product-image-wrapper a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* Bestseller ribbon / Deal tags go second */
.product-card:not(.details-container) .bestseller-badge-ribbon,
.product-card:not(.details-container) .badge-tag {
    order: 2 !important;
    position: static !important;
    /* Remove absolute positioning */
    display: inline-flex !important;
    align-items: center;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 8px 14px 0 14px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    width: fit-content !important;
}

.product-card:not(.details-container) .bestseller-badge-ribbon {
    color: var(--primary-light) !important;
}

.product-card:not(.details-container) .badge-tag {
    color: #ea580c !important;
    /* Orange for Deal tag */
}

/* Hide floating save badge */
.product-card:not(.details-container) .bestseller-save-badge {
    display: none !important;
}

/* Dynamic discount percent label styling */
.price-discount-percent {
    color: #10b981; /* Premium Leaf Green for savings */
    font-weight: 700;
    font-size: 11px;
    margin-left: 6px;
}

/* Premium discount badge pill */
.price-discount-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

/* Details Price layout overrides to look gorgeous and centered */
.details-price-header-row {
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Product Info wrapper goes third */
.product-card:not(.details-container) .product-info-wrap,
.product-card:not(.details-container) .bestseller-info-wrap {
    order: 3 !important;
}

/* Product Action wrapper goes fourth */
.product-card:not(.details-container) .product-action-wrap,
.product-card:not(.details-container) .bestseller-action-wrap {
    order: 4 !important;
}

/* Fallback for any other root child content */
.product-card:not(.details-container)>*:not(.product-image-wrapper):not(.bestseller-badge-ribbon):not(.bestseller-save-badge):not(.badge-tag):not(.product-info-wrap):not(.bestseller-info-wrap):not(.product-action-wrap):not(.bestseller-action-wrap) {
    order: 5 !important;
}

/* Mobile responsive inline card updates */
@media(max-width: 767px) {

    .product-card:not(.details-container) .bestseller-badge-ribbon,
    .product-card:not(.details-container) .badge-tag {
        margin: 6px 10px 0 10px !important;
        font-size: 9px !important;
    }
}

/* --- HIGHLIGHTED ADD TO CART & BUY NOW BUTTONS FOR DETAILS VIEW --- */
.details-price-card {
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 20px 24px !important;
    border-radius: 22px;
    box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    gap: 16px !important;
}

.details-price-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 16px 32px -10px rgba(16, 185, 129, 0.15);
}

.details-buttons-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.details-action-btn-container {
    flex: 1;
    width: auto !important;
    /* Override fixed width */
    height: 48px !important;
    /* Thicker button */
}

/* Add to Cart button override on Details page */
.details-action-btn-container .add-btn {
    background: #ffffff !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    font-size: 0 !important;
    /* Hide original "Add" text */
    height: 100% !important;
    border-radius: 28px !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.details-action-btn-container .add-btn::before {
    content: "ADD TO CART";
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
}

.details-action-btn-container .add-btn:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Quantity controller styling on Details page */
.details-action-btn-container .qty-btn-group {
    height: 100% !important;
    border: 2px solid var(--primary) !important;
    background: #ffffff !important;
    border-radius: 28px !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08) !important;
}

.details-action-btn-container .qty-control {
    background: none !important;
    color: var(--primary) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.details-action-btn-container .qty-val {
    color: var(--text-dark) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

/* Buy Now button styling */
.buy-now-btn {
    flex: 1;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 28px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.buy-now-btn:active {
    transform: translateY(0) scale(0.98);
}

/* --- MOBILE STICKY BAR ACTIONS --- */
.sticky-buttons-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sticky-action-btn-wrap {
    width: 90px !important;
    /* Slightly smaller to fit both buttons */
}

/* Add to Cart button override on mobile sticky bar */
.sticky-action-btn-wrap .add-btn {
    background: #ffffff !important;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
    font-size: 0 !important;
    /* Hide original "Add" text */
    height: 36px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.05) !important;
    transition: all 0.3s ease !important;
}

.sticky-action-btn-wrap .add-btn::before {
    content: "ADD";
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
}

.sticky-action-btn-wrap .add-btn:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.sticky-action-btn-wrap .qty-btn-group {
    height: 36px !important;
    border-radius: 20px !important;
    border: 1.5px solid var(--primary) !important;
    background: #ffffff !important;
}

.sticky-buy-now-btn {
    height: 36px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2) !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-buy-now-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3) !important;
}

/* --- PREMIUM CARD Refinement: Static Weight Label Clean-up --- */
.product-card:not(.details-container) .weight-selector-dropdown {
    width: auto !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    font-size: 12px !important;
    font-weight: 550 !important;
    color: var(--text-muted) !important; /* Elegant slate-500 muted text */
    margin-bottom: 8px !important;
    cursor: default !important;
    box-shadow: none !important;
    text-align: left !important;
    display: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
}

@media(max-width: 767px) {
    .product-card:not(.details-container) .weight-selector-dropdown {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }
}

/* --- PREMIUM DYNAMIC COLLAPSE TRANSITIONS --- */
.hero-slider, .promo-banners-grid {
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-out, margin 0.4s ease-out, padding 0.4s ease-out;
}
.hero-slider.hidden, .promo-banners-grid.hidden {
    display: block !important; /* Force override display block for smooth height collapse */
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
    pointer-events: none;
}

/* --- PREMIUM GLOBAL PRELOADER --- */
.global-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s;
    opacity: 1;
    visibility: visible;
}
.global-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.brand-logo-glow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}
.preloader-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    z-index: 2;
    animation: preloader-bounce 2s infinite ease-in-out;
}
.pulse-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    z-index: 1;
    animation: preloader-pulse 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
.loading-bar-wrapper {
    width: 160px;
    height: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}
.loading-bar {
    width: 0;
    height: 100%;
    background: var(--grad-primary-light);
    border-radius: 10px;
    animation: preloader-bar 1.8s infinite ease-in-out;
}
.preloader-text {
    font-size: 12px;
    font-weight: 750;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: preloader-text-fade 1.5s infinite alternate ease-in-out;
}

@keyframes preloader-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}
@keyframes preloader-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
@keyframes preloader-bar {
    0% { width: 0; margin-left: 0; }
    50% { width: 100%; margin-left: 0; }
    100% { width: 0; margin-left: 100%; }
}
@keyframes preloader-text-fade {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- PREMIUM SKELETON SCREEN SHIMMER SHADING --- */
.skeleton-card {
    pointer-events: none !important;
    border: 1.5px solid var(--border-color) !important;
    background: var(--bg-card) !important;
    box-shadow: var(--shadow-sm) !important;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.skeleton-card .skeleton-badge {
    order: 2 !important;
    position: static !important;
    display: inline-flex !important;
    width: 60px !important;
    height: 14px !important;
    border-radius: 20px !important;
    margin: 8px 14px 0 14px !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
@media(max-width: 767px) {
    .skeleton-card .skeleton-badge {
        margin: 6px 10px 0 10px !important;
        width: 50px !important;
        height: 12px !important;
    }
}
.skeleton-card .skeleton-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
.skeleton-card .skeleton-rating {
    width: 50px !important;
    height: 10px !important;
    border-radius: 3px !important;
    margin-bottom: 0 !important;
}
.skeleton-card .skeleton-title {
    width: 80% !important;
    height: 14px !important;
    border-radius: 4px !important;
    margin-bottom: 0 !important;
}
.skeleton-card .skeleton-dropdown {
    width: 35px !important;
    height: 10px !important;
    border-radius: 3px !important;
    margin-bottom: 0 !important;
}
.skeleton-card .skeleton-price-current {
    width: 75px !important;
    height: 14px !important;
    border-radius: 3px !important;
    margin-bottom: 4px !important;
}
.skeleton-card .skeleton-price-old {
    width: 35px !important;
    height: 10px !important;
    border-radius: 3px !important;
    margin-bottom: 0 !important;
}
.skeleton-card .skeleton-btn {
    width: 100% !important;
    height: 100% !important;
    border-radius: 24px !important;
}
.pulse-anim {
    background: linear-gradient(110deg, 
        rgba(226, 232, 240, 0.4) 30%, 
        rgba(255, 255, 255, 0.85) 50%, 
        rgba(226, 232, 240, 0.4) 70%
    ) !important;
    background-size: 200% 100% !important;
    animation: skeleton-shimmer 1.3s infinite linear !important;
}
@keyframes skeleton-shimmer {
    0% { background-position: 150% 0; }
    100% { background-position: -50% 0; }
}

/* --- USER ACCOUNT DROPDOWN IN HEADER --- */
.header-user-wrapper {
    position: relative;
    display: inline-block;
}
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 78, 59, 0.05);
    border: 1px solid rgba(6, 78, 59, 0.15);
    padding: 8px 14px;
    border-radius: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.user-menu-btn:hover {
    background: rgba(6, 78, 59, 0.1);
    border-color: rgba(6, 78, 59, 0.25);
    color: var(--primary-light);
}
.user-menu-btn i {
    font-size: 16px;
    color: inherit;
}
.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(16, 185, 129, 0.1);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 12px;
}
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown-info {
    padding: 4px 8px 8px 8px;
}
.user-dropdown-info strong {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 800;
}
.user-dropdown-info span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 2px;
}
.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}
.dropdown-item:hover {
    background-color: var(--primary-bg);
    color: var(--primary-light);
}
.dropdown-item.text-danger {
    color: #ef4444;
}
.dropdown-item.text-danger:hover {
    background-color: #fee2e2;
    color: #ef4444;
}
/* â”€â”€ Upgraded Login Button â”€â”€ */
.header-login-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(34,197,94,0.35);
    overflow: hidden;
    white-space: nowrap;
}
.header-login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #15803d, #16a34a);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: inherit;
}
.header-login-btn:hover::before { opacity: 1; }
.header-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(34,197,94,0.45);
}
.header-login-btn:active { transform: scale(0.97); }
.login-btn-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.login-btn-text {
    position: relative;
    z-index: 1;
}

/* â”€â”€ GLOBAL AUTH MODAL â€“ Dark Glassmorphism â”€â”€ */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 14, 8, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.auth-modal-card {
    background: rgba(14,28,17,0.96);
    border: 1px solid rgba(74,222,128,0.14);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    padding: 36px 32px;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(74,222,128,0.06) inset;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
    opacity: 0;
}
.auth-modal-overlay.active .auth-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}
/* close button */
.auth-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: rgba(255,255,255,0.06);
    border: none;
    border-radius: 50%;
    color: #6b9e7e;
    font-size: 20px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.auth-modal-close:hover { background: rgba(255,255,255,0.12); color: #f1fdf3; }

/* brand */
.auth-modal-brand {
    text-align: center;
    margin-bottom: 20px;
}
.auth-modal-logo { height: 44px; width: auto; }
.auth-modal-brand-badge {
    display: inline-block;
    margin-top: 8px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 3px 10px;
    border-radius: 20px;
}
/* header */
.auth-modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.auth-modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #f1fdf3;
    margin: 0 0 4px;
}
.auth-modal-header p {
    font-size: 13px;
    color: #8ab89b;
    margin: 0;
}

/* â”€â”€ field groups â”€â”€ */
.auth-field-group { margin-bottom: 14px; }
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #4ade80;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}
.auth-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 13px 42px 13px 42px;
    font-size: 14px;
    font-weight: 500;
    color: #f1fdf3;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}
.auth-input::placeholder { color: #567a67; }
.auth-input:focus {
    border-color: #4ade80;
    background: rgba(74,222,128,0.06);
    box-shadow: 0 0 0 3px rgba(74,222,128,0.12);
}
/* eye toggle */
.auth-eye-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #567a67;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
    z-index: 2;
}
.auth-eye-toggle:hover { color: #4ade80; }

/* error */
.auth-error-msg {
    color: #f87171;
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 8px;
    display: none;
    line-height: 1.5;
}

/* submit button */
.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    border-radius: 13px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 14px;
    cursor: pointer;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(34,197,94,0.28);
    margin-top: 4px;
}
.auth-submit-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(34,197,94,0.4); }
.auth-submit-btn:active { transform: scale(0.98); }
.auth-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* spinner */
.auth-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.65s linear infinite;
    display: inline-block;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

/* divider */
.auth-divider {
    text-align: center;
    margin: 20px 0 16px;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,0.07);
}
.auth-divider span {
    position: relative;
    background: rgba(14,28,17,0.96);
    padding: 0 12px;
    font-size: 12px;
    color: #567a67;
    font-weight: 500;
}

/* register link */
.auth-register-link {
    display: block;
    text-align: center;
    background: rgba(74,222,128,0.08);
    border: 1.5px solid rgba(74,222,128,0.2);
    border-radius: 13px;
    color: #4ade80;
    font-size: 13px;
    font-weight: 700;
    padding: 12px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    letter-spacing: 0.01em;
}
.auth-register-link:hover {
    background: rgba(74,222,128,0.15);
    border-color: rgba(74,222,128,0.4);
    color: #4ade80;
}

/* responsive */
@media (max-width: 480px) {
    .auth-modal-card { padding: 28px 20px; border-radius: 18px; }
}

/* --- STEP-BASED CHECKOUT UI --- */
.checkout-step {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.08);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    transition: var(--transition);
    overflow: hidden;
}
.checkout-step.disabled {
    opacity: 0.55;
    pointer-events: none;
}
.checkout-step-header {
    padding: 20px 24px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(16, 185, 129, 0.04);
}
.checkout-step-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.checkout-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.15);
}
.checkout-step.active .checkout-step-number {
    background: var(--grad-primary-light);
    color: #ffffff;
    border: none;
}
.checkout-step.completed .checkout-step-number {
    background: #10b981;
    color: #ffffff;
    border: none;
}
.checkout-step-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
}
.checkout-step-status {
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}
.checkout-step-body {
    padding: 24px;
}

/* Inline login card style */
.checkout-inline-login-box {
    text-align: center;
    padding: 12px 0;
}
.checkout-inline-login-box p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Address Cards Grid */
.address-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
@media(min-width: 576px) {
    .address-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.address-card {
    border: 1.5px solid var(--border-dark);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    background: #f8fafc;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.address-card:hover {
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}
.address-card.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: var(--shadow-md);
}
.address-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.address-card-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--border-dark);
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.address-card.active .address-card-label {
    background: var(--primary);
    color: #ffffff;
}
.address-card-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}
.address-card-delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}
.address-card-details {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 8px;
}
.address-card-text {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}
.address-card-select-btn {
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--border-dark);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}
.address-card.active .address-card-select-btn {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #ffffff;
}

/* Location picker & Autocomplete */
.add-address-trigger-btn {
    background: #ffffff;
    border: 1.5px dashed var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    padding: 24px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.add-address-trigger-btn:hover {
    background: var(--primary-bg);
}
.location-selector-box {
    border: 1.5px solid var(--border-dark);
    border-radius: 16px;
    padding: 20px;
    background: #ffffff;
    margin-top: 12px;
    animation: fadeIn 0.3s ease;
}
.location-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
@media(min-width: 576px) {
    .location-action-buttons {
        flex-direction: row;
    }
}
.locate-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-bg);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--primary);
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.locate-btn:hover {
    background: var(--primary-light);
    color: #ffffff;
}
.manual-search-wrapper {
    position: relative;
    flex: 1.5;
}
.manual-search-input {
    padding-left: 36px !important;
}
.search-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}
.location-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-md);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}
.location-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: left;
}
.location-suggestion-item:last-child {
    border-bottom: none;
}
.location-suggestion-item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}
.resolved-address-badge {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-light);
    text-align: left;
}
.label-pills {
    display: flex;
    gap: 10px;
}
.label-pill {
    padding: 8px 16px;
    border: 1.5px solid var(--border-dark);
    border-radius: 10px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.label-pill:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}
.label-pill.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

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

/* ==========================================================================
   CUSTOMER ACCOUNT DASHBOARD STYLES (Zepto/Blinkit Style)
   ========================================================================== */
.account-dashboard-wrapper {
    background-color: #f8fafc;
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
    padding: 40px 0 80px;
}

@media(min-width: 768px) {
    .account-dashboard-wrapper {
        min-height: calc(100vh - var(--header-height));
        padding: 48px 0;
    }
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media(min-width: 992px) {
    .dashboard-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* --- SIDEBAR NAVIGATION --- */
.dashboard-sidebar {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

@media(min-width: 992px) {
    .dashboard-sidebar {
        width: 280px;
        flex-shrink: 0;
        position: sticky;
        top: calc(var(--header-height) + 24px);
    }
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.user-avatar-initial {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(6, 78, 59, 0.2);
}

.user-details-summary h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.user-details-summary p {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.dashboard-nav .nav-item i {
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
}

.dashboard-nav .nav-item:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.dashboard-nav .nav-item:hover i {
    color: var(--primary-light);
}

.dashboard-nav .nav-item.active {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.15);
}

.dashboard-nav .nav-item.active i {
    color: var(--primary-light);
}

.nav-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 12px 0;
}

.logout-link {
    color: #ef4444 !important;
}

.logout-link i {
    color: #ef4444 !important;
}

.logout-link:hover {
    background: #fee2e2 !important;
}

/* Mobile responsive sidebar */
@media(max-width: 991px) {
    .user-profile-summary {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    .dashboard-sidebar {
        padding: 16px;
    }
    .dashboard-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .dashboard-nav::-webkit-scrollbar {
        display: none;
    }
    .dashboard-nav .nav-item {
        padding: 10px 18px;
        background: var(--bg-gray);
        border: 1px solid var(--border-dark);
        border-radius: 20px;
    }
    .dashboard-nav .nav-item.active {
        background: var(--primary-bg);
        border-color: var(--primary-light);
    }
    .nav-divider, .logout-link {
        display: none !important;
    }
}

/* --- CONTENT PANELS --- */
.dashboard-content-panel {
    flex-grow: 1;
    width: 100%;
}

.dashboard-pane {
    display: none;
}

.dashboard-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-out forwards;
}

.pane-header {
    margin-bottom: 24px;
}

.pane-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
}

.pane-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.pane-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

@media(max-width: 576px) {
    .pane-card {
        padding: 16px;
    }
}

/* --- PROFILE FORM --- */
.form-feedback-msg {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.form-feedback-msg.success {
    background-color: var(--primary-bg);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback-msg.error {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group label .required {
    color: #ef4444;
}

.form-group label .optional-tag {
    color: var(--text-muted);
    font-weight: 500;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.dashboard-input {
    width: 100%;
    background: var(--bg-gray);
    border: 1.5px solid var(--border-dark);
    border-radius: 12px;
    padding: 12px 16px 12px 42px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.dashboard-input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.password-eye-btn {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

.form-section-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 20px;
}

.form-section-separator::before,
.form-section-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-dark);
}

.form-section-separator span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

.dashboard-submit-btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-spinner {
    font-size: 16px;
}

/* --- ADDRESSES GRID --- */
.addresses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 576px) {
    .addresses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.addresses-loading, .orders-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

.addresses-loading i, .orders-loading i {
    margin-right: 8px;
    color: var(--primary-light);
}

.addresses-error-state, .orders-error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #fef2f2;
    border: 1px dashed #fca5a5;
    border-radius: 16px;
    color: #dc2626;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.addresses-error-state:hover, .orders-error-state:hover {
    background: #fee2e2;
}

.address-card {
    background: #ffffff;
    border: 1.5px solid var(--border-dark);
    border-radius: 16px;
    padding: 18px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.address-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.address-card-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.address-card-actions {
    display: flex;
    gap: 8px;
}

.address-card-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: var(--transition);
}

.address-card-actions .edit-addr-btn:hover {
    color: var(--primary-light);
}

.address-card-actions .delete-addr-btn:hover {
    color: #ef4444;
}

.address-card-body {
    flex-grow: 1;
}

.address-house-number {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}

.address-landmark {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    margin-top: 4px;
}

.address-resolved {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 8px;
    line-height: 1.4;
}

.empty-state-card {
    grid-column: 1 / -1;
    text-align: center;
    background: #ffffff;
    border: 1.5px dashed var(--border-dark);
    border-radius: 20px;
    padding: 40px 24px;
}

.empty-icon {
    font-size: 40px;
    color: rgba(16, 185, 129, 0.2);
    margin-bottom: 14px;
}

.empty-state-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.empty-state-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

.margin-top-12 {
    margin-top: 12px;
}

/* --- ADD/EDIT ADDRESS MODAL --- */
.dashboard-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.dashboard-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dashboard-modal-card {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(16, 185, 129, 0.1);
    transform: translateY(20px);
    transition: var(--transition);
    overflow: hidden;
}

.dashboard-modal-overlay.active .dashboard-modal-card {
    transform: translateY(0);
}

.modal-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-card-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: #ef4444;
}

.modal-card-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.no-margin-bottom {
    margin-bottom: 0 !important;
}

.margin-top-12 {
    margin-top: 12px;
}

.gps-locate-btn {
    position: absolute;
    right: 6px;
    height: calc(100% - 12px);
    background: var(--primary-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    cursor: pointer;
    transition: var(--transition);
}

.gps-locate-btn:hover {
    background: rgba(16, 185, 129, 0.15);
}

/* Autocomplete search list fallback */
.nominatim-autocomplete-list {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 1200;
    max-height: 180px;
    overflow-y: auto;
}

.nominatim-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.nominatim-item:last-child {
    border-bottom: none;
}

.nominatim-item:hover {
    background-color: var(--primary-bg);
}

.nominatim-item i {
    color: var(--primary-light);
    font-size: 13px;
    margin-top: 2px;
}

.nominatim-text-wrap {
    display: flex;
    flex-direction: column;
}

.nominatim-main {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.nominatim-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 1px;
}

/* Modal Interactive Map */
.modal-map-preview {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--border-dark);
    display: none;
}

.modal-map-preview.visible {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.modal-map-canvas {
    width: 100%;
    height: 100%;
}

.modal-map-pin-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
    z-index: 10;
}

.modal-map-pin-overlay i {
    font-size: 32px;
    color: #ef4444;
    text-shadow: 0 2px 5px rgba(0,0,0,0.35);
    animation: bouncePin 1.5s infinite ease-in-out;
}

@keyframes bouncePin {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.resolved-address-banner {
    background: var(--bg-gray);
    border-left: 4px solid var(--primary-light);
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.resolved-address-banner i {
    color: var(--primary-light);
    font-size: 14px;
    margin-top: 1px;
}

.modal-error-msg {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

/* Pills label picker */
.address-label-pills {
    display: flex;
    gap: 8px;
}

.address-label-pills .label-pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 1.5px solid var(--border-dark);
    background: #ffffff;
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.address-label-pills .label-pill:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.address-label-pills .label-pill.selected {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.custom-label-input-wrap {
    margin-top: 8px;
    animation: fadeIn 0.25s ease-out;
}

.submit-btn-spinner {
    font-size: 14px;
}

/* --- ORDERS LIST TAB --- */
.orders-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-dashboard-card {
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.order-dashboard-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-md);
}

.order-card-summary {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

@media(max-width: 576px) {
    .order-card-summary {
        padding: 14px 16px;
    }
}

.order-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-id-label {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-dark);
}

.order-date-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.order-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-amount-label {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

/* Status badges */
.status-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-badge.status-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.status-badge.status-processing {
    background-color: #e0f2fe;
    color: #0284c7;
}

.status-badge.status-out {
    background-color: #fef2f2;
    color: #ea580c;
}

.status-badge.status-delivered {
    background-color: var(--primary-bg);
    color: var(--primary);
}

.toggle-order-details-btn {
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Collapsed detailed panel */
.order-card-details {
    border-top: 1px solid var(--border-color);
    background-color: #fafbfc;
    animation: fadeIn 0.35s ease;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media(min-width: 768px) {
    .details-grid {
        grid-template-columns: 1.1fr 1fr;
    }
}

.details-tracking-column {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

@media(min-width: 768px) {
    .details-tracking-column {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }
}

.details-items-column {
    padding: 20px;
}

.details-tracking-column h3,
.details-items-column h3 {
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    margin-bottom: 18px;
}

/* Visual timeline tracker */
.visual-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 28px;
    margin-bottom: 24px;
}

.visual-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--border-dark);
}

.timeline-step {
    position: relative;
}

.timeline-step .step-icon {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--text-muted);
    z-index: 2;
    transition: var(--transition);
}

.timeline-step.active .step-icon {
    border-color: var(--primary-light);
    background-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-step.completed .step-icon {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #ffffff;
}

/* Connect lines dynamically */
.timeline-step.completed + .timeline-step::before {
    background-color: var(--primary);
}

.timeline-step .step-content h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
}

.timeline-step.active .step-content h4,
.timeline-step.completed .step-content h4 {
    color: var(--text-dark);
}

.timeline-step .step-content p {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* Timeline Pulse Animation */
.timeline-anim .timeline-step.active .step-icon {
    animation: timelinePulse 2s infinite;
}

@keyframes timelinePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tracking-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-primary-outline {
    background: transparent;
    border: 1.5px solid var(--primary-light);
    color: var(--primary-light);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary-outline:hover {
    background: var(--primary-bg);
}

.btn-wa-green {
    background: #25d366;
    border: 1.5px solid #25d366;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-wa-green:hover {
    background: #20ba59;
    border-color: #20ba59;
}

.btn-sm {
    padding: 6px 12px;
    border-radius: 8px;
}

/* Ordered Items column */
.ordered-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    padding: 14px;
    margin-bottom: 16px;
}

.ordered-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ordered-item-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.ordered-item-details {
    flex-grow: 1;
}

.ordered-item-details h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.ordered-item-details p {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 1px;
}

.ordered-item-qty-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ordered-item-qty-price span {
    font-size: 11px;
    color: var(--text-muted);
}

.ordered-item-qty-price strong {
    font-size: 13.5px;
    color: var(--text-dark);
    font-weight: 800;
}

/* Bill Breakdown styling */
.order-payment-details {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    padding: 14px;
    margin-bottom: 16px;
}

.bill-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.bill-breakdown-row.total-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-dark);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0;
}

.payment-method-row {
    margin-top: 8px;
    font-size: 10.5px;
    color: var(--text-muted);
}

/* Delivery destination summary card */
.delivery-destination-details {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    padding: 14px;
}

.delivery-destination-details h4 {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.delivery-destination-details p {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.delivery-destination-details .destination-address {
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
}

/* Card specific compact weight pills styling */
.product-card .weight-pill-selector {
    gap: 6px;
    margin-bottom: 12px;
    justify-content: flex-start;
}

.product-card .weight-pill {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 16px;
    box-shadow: none;
}

/* Floating Cart Button for Desktop */
.desktop-cart-float {
    position: fixed;
    bottom: 144px;
    right: 24px;
    background: var(--grad-primary);
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.25);
    z-index: 998;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desktop-cart-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.45);
}

.desktop-cart-float-icon {
    font-size: 20px;
}

/* Hide floating cart and header cart button wrapper on mobile/small screen */
@media (max-width: 767px) {
    .desktop-cart-float {
        display: none !important;
    }
    .cart-button-wrapper {
        display: none !important;
    }
}
/* -- FORGOT PASSWORD – Link Button -- */
.auth-forgot-link {
    background: none;
    border: none;
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    font-family: inherit;
    opacity: 0.85;
}
.auth-forgot-link:hover { color: #86efac; opacity: 1; text-decoration: underline; }

/* -- FORGOT PASSWORD MODAL – Icon Circle -- */
.fp-icon-wrap { text-align: center; margin-bottom: 16px; }
.fp-icon-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(74,222,128,0.1);
    border: 2px solid rgba(74,222,128,0.25);
    color: #4ade80;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: fpIconPop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes fpIconPop {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Email tips block */
.fp-email-tips {
    background: rgba(244,160,34,0.08);
    border: 1px solid rgba(244,160,34,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 12px;
    color: #f4c97a;
    line-height: 1.5;
}
.fp-email-tips i { margin-right: 6px; }
.forgot-pw-card { max-width: 420px !important; }

/* ==========================================================================
   REDESIGNED CHECKOUT STYLES (MODERN, CLEAN, PREMIUM)
   ========================================================================== */

/* Split Columns */
.checkout-grid {
    align-items: start;
}

/* Status badge */
.status-verified-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Active Delivery Card */
.active-delivery-card {
    background: linear-gradient(to bottom, #ffffff 0%, #fafdfb 100%);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.delivery-card-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.delivery-user-info .user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delivery-user-info .user-phone {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.select-address-action-btn {
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.select-address-action-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.delivery-divider {
    border: none;
    border-top: 1px solid rgba(16, 185, 129, 0.08);
    margin: 14px 0;
}

.delivery-address-info {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dark);
}

.delivery-address-info .address-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--primary-light);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    display: inline-block;
}

.delivery-address-info .house {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.delivery-address-info .resolved {
    color: var(--text-muted);
}

.delivery-address-info .landmark {
    font-size: 12px;
    color: var(--primary);
    margin-top: 2px;
    font-weight: 600;
}

.address-placeholder {
    color: #ef4444;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.05);
    padding: 10px 14px;
    border-radius: 10px;
}

/* Quantity Control in Checkout */
.checkout-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

.checkout-item-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.checkout-item-details {
    flex: 1;
}

.checkout-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #10b981;
    background: #f0fdf4;
    border-radius: 20px;
    overflow: hidden;
    height: 28px;
}

.checkout-qty-btn {
    border: none;
    background: transparent;
    color: #10b981;
    font-weight: 800;
    width: 26px;
    height: 100%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.checkout-qty-btn:hover {
    background: rgba(16, 185, 129, 0.08);
}

.checkout-qty-value {
    width: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #10b981;
}

.checkout-item-price-wrapper {
    text-align: right;
    min-width: 65px;
}
.checkout-item-price-wrapper .item-row-total {
    font-weight: 800;
    font-size: 13px;
    color: var(--text-dark);
}
.checkout-item-price-wrapper .item-row-unit-desc {
    font-size: 10px;
    color: var(--text-muted);
}

/* Forgot something & Suggestions */
.forgot-something-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-bg);
    border: 1px dashed rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    margin: 16px 0;
    font-size: 12px;
    font-weight: 600;
}
.forgot-something-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.forgot-something-link a:hover {
    color: var(--primary-light);
}

.checkout-suggestions-section {
    background: #fafafb;
    border-radius: 16px;
    padding: 14px;
    margin: 16px 0;
    border: 1px solid rgba(0,0,0,0.02);
}

.checkout-suggestions-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.02);
}

.suggest-item-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-dark);
}

.suggest-item-details {
    flex: 1;
}

.suggest-item-name {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.suggest-item-price {
    font-size: 10px;
    color: var(--text-muted);
    margin: 2px 0 0;
    font-weight: 600;
}
.suggest-item-price .unit {
    font-weight: 500;
}

.suggest-add-to-cart-btn {
    border: 1px solid #10b981;
    background: white;
    color: #10b981;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.suggest-add-to-cart-btn:hover {
    background: #10b981;
    color: white;
}

/* Modal Overlay & Cards */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 16px;
}

.checkout-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.checkout-modal-card {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.checkout-modal-overlay.active .checkout-modal-card {
    transform: scale(1);
}

.modal-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.modal-close-btn {
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.15s ease;
}
.modal-close-btn:hover {
    color: #ef4444;
}

#modal-address-list-view,
.modal-form-body {
    padding: 24px;
}

/* Modal Address list styles */
.address-cards-grid-modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.address-cards-grid-modal .address-card {
    border: 1.5px solid var(--border-dark);
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.address-cards-grid-modal .address-card:hover {
    border-color: var(--primary-light);
    background: #ffffff;
}
.address-cards-grid-modal .address-card.active {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.add-address-trigger-btn-modal {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border: 2px dashed #10b981;
    background: #f0fdf4;
    color: #10b981;
    font-size: 13px;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.add-address-trigger-btn-modal:hover {
    background: #dcfce7;
}

.btn-secondary-back {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 16px 24px 0;
    transition: color 0.15s ease;
}
.btn-secondary-back:hover {
    color: var(--primary);
}

/* Address label pills in modal */
.address-label-pills-modal {
    display: flex;
    gap: 10px;
}

.label-pill-modal {
    flex: 1;
    border: 1.5px solid var(--border-dark);
    background: #f8fafc;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.label-pill-modal:hover {
    border-color: var(--primary-light);
}
.label-pill-modal.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
}

/* Location manual search in modal */
.location-search-row {
    display: flex;
    gap: 8px;
}

.search-input-wrapper-modal {
    position: relative;
    flex: 1;
}

.search-input-wrapper-modal .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
}

.search-input-wrapper-modal input {
    padding-left: 32px !important;
}

/* Responsive styles */
@media (max-width: 768px) {

    .checkout-modal-card {
        max-height: 85vh;
        border-radius: 24px 24px 0 0;
        margin-top: auto;
        transform: translateY(100px);
    }
    .checkout-modal-overlay.active .checkout-modal-card {
        transform: translateY(0);
    }
}

/* Fixes for checkout modal search input & GPS locate button positioning */
.location-search-row {
    position: relative;
    display: flex !important;
    gap: 8px !important;
    align-items: center;
}

.location-search-row .search-input-wrapper-modal {
    flex: 1;
    position: relative;
}

.location-search-row .gps-locate-btn {
    position: static !important;
    height: 46px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Global utility classes for flexbox layouts */
.flex {
    display: flex !important;
}
.flex-column {
    display: flex !important;
    flex-direction: column !important;
}
.gap-12 {
    gap: 12px !important;
}
.gap-8 {
    gap: 8px !important;
}

/* Fix modal internal scrolling, clipping suggestions dropdown, and background scroll blocking */
body.modal-open {
    overflow: hidden !important;
}

.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px 16px;
    overflow-y: auto !important; /* Enables scroll on overlay wrapper */
}

.checkout-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.checkout-modal-card {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: visible !important; /* Prevent dropdown suggestions clipping */
    max-height: none !important; /* Allow the content to define the card height without internal scrolling */
    margin: auto; /* Centering helper within scrolling container */
}

.checkout-modal-overlay.active .checkout-modal-card {
    transform: translateY(0) scale(1);
}

.location-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #ffffff !important;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
    z-index: 9999 !important; /* Stand on top of inputs below */
    max-height: 220px;
    overflow-y: auto;
}

/* Ensure suggestions inside modal are explicitly positioned on top */
.location-search-row .search-input-wrapper-modal {
    position: relative !important;
    overflow: visible !important;
}

@media (max-width: 768px) {
    .checkout-modal-overlay {
        align-items: flex-end; /* Mobile bottom sheet alignment */
        padding: 0;
    }
    .checkout-modal-card {
        max-height: none !important; /* Mobile autoheight */
        border-radius: 24px 24px 0 0;
        margin-top: auto;
        transform: translateY(100%);
        overflow: visible !important;
    }
    .checkout-modal-overlay.active .checkout-modal-card {
        transform: translateY(0);
    }
}


/* Sticky Order Summary for Desktop viewports (Overriding global styles) */
@media (min-width: 992px) {
    .checkout-grid {
        align-items: stretch !important;
    }
    .checkout-right-column {
        align-self: stretch !important;
    }
    .receipt-summary-container {
        position: sticky !important;
        top: calc(var(--header-height) + 24px) !important;
        z-index: 10 !important;
    }
}


/* ==========================================================================
   CHECKOUT PAGE - MOBILE-FIRST RESPONSIVE OVERHAUL
   Designed for 320px-768px. Everything is pixel-perfect on small screens.
   ========================================================================== */

/* ---- Base page container: tighten gutters on mobile ---- */
@media (max-width: 767px) {

    main.container {
        padding: 16px 12px !important;
    }

    /* ---- Page title & back link ---- */
    .checkout-back-link-wrapper {
        margin-bottom: 12px;
    }

    .checkout-page-title {
        font-size: 20px !important;
        margin-bottom: 16px !important;
    }

    /* ---- Two-column grid: single-column stacked on mobile ---- */
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Right column (cart summary) floats to TOP on mobile */
    .checkout-right-column {
        order: -1 !important;
    }

    /* ---- Receipt / Cart Summary Container ---- */
    .receipt-summary-container {
        padding: 16px 14px 24px !important;
        border-radius: 18px !important;
    }

    .receipt-title {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }

    /* ---- Cart Item Rows: fix clipping on narrow screens ---- */
    .checkout-summary-items-list {
        max-height: none !important;   /* Remove fixed height that causes items to clip */
        overflow-y: visible !important;
        padding-right: 0 !important;
        gap: 10px !important;
    }

    .checkout-item-row {
        display: grid !important;
        grid-template-columns: 44px 1fr auto auto !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 10px !important;
        border-radius: 12px !important;
        overflow: visible !important;
        min-width: 0 !important;
    }

    .checkout-item-img {
        width: 44px !important;
        height: 44px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    .checkout-item-details {
        min-width: 0 !important;
        flex: 1 !important;
    }

    .checkout-item-name,
    .checkout-item-details h5,
    .checkout-item-details .checkout-item-name {
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .checkout-item-weight,
    .checkout-item-details .checkout-item-weight {
        font-size: 10px !important;
    }

    /* Quantity stepper — keep it tight */
    .checkout-qty-control {
        height: 26px !important;
        border-radius: 20px !important;
        flex-shrink: 0 !important;
    }

    .checkout-qty-btn {
        width: 24px !important;
        font-size: 13px !important;
    }

    .checkout-qty-value {
        width: 20px !important;
        font-size: 11px !important;
    }

    /* Price column — never clip */
    .checkout-item-price-wrapper {
        min-width: 52px !important;
        text-align: right !important;
        flex-shrink: 0 !important;
    }

    .checkout-item-price-wrapper .item-row-total {
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .checkout-item-price-wrapper .item-row-unit-desc {
        font-size: 9px !important;
        white-space: nowrap !important;
    }

    /* ---- "Forgot something?" bar ---- */
    .forgot-something-link {
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 9px 12px !important;
        font-size: 11px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .forgot-something-link span {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .forgot-something-link a {
        white-space: nowrap !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
    }

    /* ---- "People also added" suggestions ---- */
    .checkout-suggestions-section {
        padding: 12px !important;
        margin: 12px 0 !important;
    }

    .checkout-suggestions-title {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }

    .checkout-suggest-item {
        gap: 8px !important;
        padding: 7px 8px !important;
        border-radius: 10px !important;
    }

    .suggest-item-img {
        width: 34px !important;
        height: 34px !important;
    }

    .suggest-item-name {
        font-size: 11px !important;
    }

    .suggest-item-price {
        font-size: 10px !important;
    }

    .suggest-add-to-cart-btn {
        font-size: 10px !important;
        padding: 5px 10px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* ---- Bill breakdown ---- */
    .checkout-bill-breakdown {
        padding: 12px 0 0 !important;
        margin-top: 10px !important;
    }

    .bill-row {
        font-size: 12px !important;
        margin-bottom: 7px !important;
    }

    .bill-row.total {
        font-size: 14px !important;
        padding-top: 9px !important;
    }

    /* ---- Checkout Steps (Delivery + Payment) ---- */
    .checkout-step {
        border-radius: 16px !important;
        margin-bottom: 14px !important;
    }

    .checkout-step-header {
        padding: 14px 16px !important;
    }

    .checkout-step-title {
        font-size: 14px !important;
    }

    .checkout-step-body {
        padding: 14px 16px !important;
    }

    /* ---- Delivery Card ---- */
    .active-delivery-card {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .delivery-card-main {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .delivery-user-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .delivery-user-info .user-name {
        font-size: 13px !important;
    }

    .delivery-user-info .user-phone {
        font-size: 11px !important;
    }

    .select-address-action-btn {
        font-size: 11px !important;
        padding: 7px 12px !important;
        border-radius: 9px !important;
        flex-shrink: 0 !important;
    }

    .delivery-address-info {
        font-size: 12px !important;
    }

    .address-placeholder {
        font-size: 11px !important;
        padding: 9px 12px !important;
        border-radius: 9px !important;
    }

    .delivery-divider {
        margin: 10px 0 !important;
    }

    /* ---- Payment options ---- */
    .payment-options {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .payment-label {
        padding: 12px 8px !important;
        border-radius: 12px !important;
        font-size: 11px !important;
        gap: 6px !important;
    }

    .payment-icon {
        font-size: 20px !important;
    }

    .payment-name {
        font-size: 11px !important;
    }

    /* ---- Place Order Button ---- */
    .submit-order-btn,
    #place-order-submit-btn {
        padding: 14px 16px !important;
        border-radius: 14px !important;
        font-size: 14px !important;
        margin-top: 16px !important;
    }

    /* ---- Address modal: full-screen bottom sheet on mobile ---- */
    .checkout-modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .checkout-modal-card {
        border-radius: 24px 24px 0 0 !important;
        max-height: 92vh !important;
        overflow-y: auto !important;
        transform: translateY(100%) !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .checkout-modal-overlay.active .checkout-modal-card {
        transform: translateY(0) !important;
    }

    .modal-card-header {
        padding: 16px 18px !important;
    }

    .modal-card-header h3 {
        font-size: 14px !important;
    }

    #modal-address-list-view,
    .modal-form-body {
        padding: 16px !important;
    }

    /* GPS button — compact on small screens */
    .location-search-row .gps-locate-btn {
        padding: 0 10px !important;
        height: 42px !important;
        font-size: 11px !important;
    }

    /* Address label pills */
    .address-label-pills-modal {
        gap: 7px !important;
    }

    .label-pill-modal {
        font-size: 11px !important;
        padding: 8px 6px !important;
    }

    /* Address cards in modal list */
    .address-cards-grid-modal {
        max-height: 45vh !important;
    }

    /* Add address button */
    .add-address-trigger-btn-modal {
        font-size: 12px !important;
        padding: 12px !important;
    }

    /* Save & deliver / Cancel button row */
    .flex.gap-12 {
        gap: 8px !important;
    }

    /* Ensure no horizontal scroll on page */
    .checkout-view {
        overflow-x: hidden !important;
    }
}

/* ---- Extra-small screens (=360px): tighten further ---- */
@media (max-width: 360px) {
    main.container {
        padding: 12px 8px !important;
    }

    .checkout-item-row {
        grid-template-columns: 38px 1fr auto auto !important;
        gap: 6px !important;
        padding: 8px 8px !important;
    }

    .checkout-item-img {
        width: 38px !important;
        height: 38px !important;
    }

    .checkout-qty-btn {
        width: 22px !important;
    }

    .checkout-qty-value {
        width: 18px !important;
    }

    .checkout-item-price-wrapper {
        min-width: 44px !important;
    }

    .payment-label {
        padding: 10px 4px !important;
        font-size: 10px !important;
    }

    .payment-icon {
        font-size: 18px !important;
    }

    .checkout-step-body {
        padding: 12px !important;
    }

    .checkout-page-title {
        font-size: 18px !important;
    }
}

/* ---- Tablet: 768px – 991px (single column, more comfortable spacing) ---- */
@media (min-width: 768px) and (max-width: 991px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 600px !important;
        margin: 0 auto !important;
    }

    .checkout-right-column {
        order: -1 !important;
    }

    .checkout-summary-items-list {
        max-height: none !important;
        overflow-y: visible !important;
    }

    .payment-options {
        grid-template-columns: 1fr 1fr !important;
    }
}


/* checkout-main: desktop padding (mobile handled above in @media) */
.checkout-main {
    padding: 24px 20px;
}
@media (max-width: 767px) {
    .checkout-main {
        padding: 16px 12px !important;
    }
}
@media (max-width: 360px) {
    .checkout-main {
        padding: 12px 8px !important;
    }
}
