@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
    --primary: #f6c947; /* A vibrant grocery green */
    --primary-light: #E5F7ED;
    --primary-gradient: linear-gradient(135deg, #f6c947 0%, #c1eb2c 100%);
    --secondary: #FF6B6B; /* For badges/discounts */
    --bg-color: #eff4fa;
    --card-bg: #e3eef7;
    --text-dark: #1A1D20;
    --text-muted: #8A92A6;
    --border-color: #EAEDF3;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 24px rgba(0, 178, 89, 0.15);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(12px);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #E2E8F0; /* Desktop background */
    display: flex;
    justify-content: center;
    color: var(--text-dark);
    min-height: 100vh;
}

/* Mobile Constraint */
.mobile-wrapper {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-color);
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
    overflow-x: clip;
    padding-bottom: 135px;
    min-height: 100vh;
}

/* Typography & Bootstrap Margin Resets */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin: 0;
    padding: 0;
}
p, ul, ol {
    margin: 0;
    padding: 0;
}
a { text-decoration: none; color: inherit; }

/* Utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 16px;
}
.section-title h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: "Bebas Neue", sans-serif;
    text-transform: uppercase;
}
.section-title a {
    font-size: 18px;
    color: var(--primary);
    font-weight: 500;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: var(--primary); /* background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
#loader img {
    width: 350px; /* adjust size */
}
#loader.exit {
    opacity: 0;
    transform: translateX(-50%) scale(1.3);
    pointer-events: none;
}
#content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#content.show {
    opacity: 1;
    transform: none;
}

/* Sticky Header Container */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-color);
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 10px;
    background: var(--bg-color);
}
.location-box .delivery-to {
    font-size: 23px;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.location-box .location-name {
    font-size: 15px;
    font-weight: 600;
    margin-top: 2px;
}
.profile-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50% !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--white);
    display: block;
    flex-shrink: 0;
}
.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Search */
.search-section {
    padding: 10px 20px 0px;
    background: linear-gradient(to bottom, var(--bg-color) 80%, transparent);
}
.search-bar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.search-bar i {
    color: var(--text-muted);
    font-size: 20px;
}
.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    outline: none;
}
.search-bar input::placeholder {
    color: var(--text-muted);
}
.voice-search {
    background: var(--primary-light);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Banner Slider */
.banner-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 20px;
    scrollbar-width: none;
}
.banner-slider::-webkit-scrollbar { display: none; }
.banner-card {
    min-width: 100%;
    scroll-snap-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 160px;
    box-shadow: var(--shadow-md);
}
.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-content {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    padding: 24px;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.banner-content span {
    background: var(--secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 8px;
}
.banner-content h2 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 4px;
}
.banner-content p {
    font-size: 13px;
    opacity: 0.9;
}

/* Categories */
.category-header {
    padding: 0 16px 10px;
}
.category-header h5 {
    font-size: 18px;
    letter-spacing: 0.2px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0 12px;
}
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}
.cat-icon-wrapper {
    width: 100%;
    /* height: 150px; */
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cat-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.2px;
    color: var(--text-dark);
}

/* Horizontal Products */
.product-trending {
    background: linear-gradient(120deg, #a2d5ffd3 50%, #aef1e6 100%);
    padding: 25px 0;
    position: relative;
    overflow: hidden;
    margin: 10px 0;
    /* Wave curves at top and bottom */
    clip-path: polygon(
        0 2.5%, 
        1% 2%, 2% 1.5%, 3% 1.2%, 4% 1%, 5% 0.8%, 6% 0.8%, 7% 1%, 8% 1.2%, 9% 1.5%, 10% 2%,
        15% 3%, 20% 3.2%, 25% 3%, 30% 2.5%, 35% 2%, 40% 1.8%, 45% 2%, 50% 2.5%, 55% 3%, 60% 3.2%, 65% 3%, 70% 2.5%, 75% 2%, 80% 1.8%, 85% 2%, 90% 2.5%, 95% 3%, 100% 2.5%,
        100% 97.5%,
        99% 98%, 98% 98.5%, 97% 98.8%, 96% 99%, 95% 99.2%, 94% 99.2%, 93% 99%, 92% 98.8%, 91% 98.5%, 90% 98%,
        85% 97%, 80% 96.8%, 75% 97%, 70% 97.5%, 65% 98%, 60% 98.2%, 55% 98%, 50% 97.5%, 45% 97%, 40% 96.8%, 35% 97%, 30% 97.5%, 25% 98%, 20% 98.2%, 15% 98%, 10% 97.5%, 5% 97%, 0% 97.5%
    );
}

.product-deals{
    background: linear-gradient(60deg, #FCB846 0%, #FFC967 100%);
    padding: 25px 0;
    position: relative;
    overflow: hidden;
    margin: 10px 0;
    /* Wave curves at top and bottom */
    clip-path: polygon(
        0 2.5%, 
        1% 2%, 2% 1.5%, 3% 1.2%, 4% 1%, 5% 0.8%, 6% 0.8%, 7% 1%, 8% 1.2%, 9% 1.5%, 10% 2%,
        15% 3%, 20% 3.2%, 25% 3%, 30% 2.5%, 35% 2%, 40% 1.8%, 45% 2%, 50% 2.5%, 55% 3%, 60% 3.2%, 65% 3%, 70% 2.5%, 75% 2%, 80% 1.8%, 85% 2%, 90% 2.5%, 95% 3%, 100% 2.5%,
        100% 97.5%,
        99% 98%, 98% 98.5%, 97% 98.8%, 96% 99%, 95% 99.2%, 94% 99.2%, 93% 99%, 92% 98.8%, 91% 98.5%, 90% 98%,
        85% 97%, 80% 96.8%, 75% 97%, 70% 97.5%, 65% 98%, 60% 98.2%, 55% 98%, 50% 97.5%, 45% 97%, 40% 96.8%, 35% 97%, 30% 97.5%, 25% 98%, 20% 98.2%, 15% 98%, 10% 97.5%, 5% 97%, 0% 97.5%
    );
}

.product-section { margin-top: 10px; }
/* Ensure consistent gutters inside the product grid */
.product-section .row {
    margin-left: -10px;
    margin-right: -6px;
}
.product-section .row > [class*="col-"] {
    padding-left: 5px;
    padding-right: 6px;
}
.product-section .product-card {
    margin-bottom: 12px;
}
.product-slider {
    margin-left: 3px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 13px;
    padding: 0 20px 0px;
    scrollbar-width: none;
}
.product-slider::-webkit-scrollbar { display: none; }
.product-card {
    min-width: 124px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.discount-badge {
    position: absolute;
    top: 3%; 
    left: 5px;
    background: #FF5722;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 5px;
    border-radius: 3px;
    z-index: 10;
    letter-spacing: 0.2px;
}
.product-img {
    width: 100%;
    height: 100px;
    position: relative;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.product-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.product-info { 
    flex: 1; 
    display: flex; 
    flex-direction: column;
    padding: 5px 12px;
}
.product-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-dark);
    line-height: 1.3;
}
.product-weight {
    font-size: 11px;
    color: #878787;
    margin-bottom: 2px;
}
.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    gap: 6px;
}
.price-box {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}
.price-box .current {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}
.price-box .mrp {
    font-size: 10px;
    color: #878787;
    text-decoration: line-through;
}
.add-btn {
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    flex-shrink: 0;
}
.add-btn:hover {
    background: var(--primary-light);
}
.add-btn:active {
    background: var(--primary);
    color: white;
}

/* Bottom Navigation - Floating Round Circle */
.bottom-nav {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    background: rgba(161, 161, 161, 0.12);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    z-index: 1000;
    border-radius: 50px;
    overflow: hidden;
}
.bottom-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.05)
    );
    pointer-events: none;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-dark);
    transition: all 0.3s;
    text-decoration: none;
    flex: 1;
}
.nav-item i {
    font-size: 24px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-item span {
    font-size: 11px;
    font-weight: 500;
}
.nav-item.active {
    color: #FF5722 ;
    font-weight: 800;

    /* border-top: 2px solid black; */
}
.nav-item.active i {
    transform: scale(1.1);
    font-weight: bold;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up {
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Segmented Control / Tabs - Custom Styled with Overflowing Illustrations */
.segmented-control {
    display: flex;
    gap: 14px;
    padding: 10px 0 6px 0; /* Add top/bottom padding to give the overflowing image space */
    background: transparent;
}
.tab-btn {
    border: none;
    outline: none;
    background: #ffffff; /* Clean white background for inactive state */
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-full); /* pill-shaped */
    height: 52px; /* Fixed height for clean layout */
    flex: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible; /* CRITICAL: allow image to hang out */
    border: 2px solid #E2E8F0; /* subtle gray border for inactive */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding-left: 22px; /* Offset text to make room for image */
    padding-right: 0px;
}
.tab-btn::before {
    display: none;
}
.tab-icon-img {
    position: absolute;
    left: -2px; /* Pull image slightly outside the pill border */
    bottom: -4px; /* Align near bottom to overflow top/bottom */
    height: 62px; /* Larger than button height (52px) */
    width: auto;
    object-fit: contain;
    z-index: 5;
    pointer-events: none;
    mix-blend-mode: multiply; /* blended transparency on white bg */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s, left 0.3s, bottom 0.3s;
}
.tab-btn:hover .tab-icon-img {
    transform: scale(1.08); /* Cute hover micro-animation */
}
.tab-btn.active {
    background: linear-gradient(130deg, rgba(228, 227, 171, 0.4) 0%, rgba(188, 195, 248, 0.5) 100%);
    color: #3b3a62 !important;
    border-color: #888fc6;
    box-shadow: 0 6px 15px rgba(136, 143, 198, 0.25);
}

/* Food View Container & Layouts */
.food-banner-card {
    background: linear-gradient(135deg, #FFF5D6 0%, #FFFDF5 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 0 20px 24px;
    border: 1px dashed rgba(246, 201, 71, 0.6);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}
.food-banner-content h4 {
    font-size: 18px;
    font-weight: 800;
    color: #8A6D1C;
    margin-bottom: 4px;
}
.food-banner-content p {
    font-size: 12px;
    color: #A38C4A;
}

.food-categories {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.food-categories::-webkit-scrollbar { display: none; }
.food-cat-chip {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.food-cat-chip.active {
    background: #FFF9E6;
    border-color: var(--primary);
    color: #8A6D1C;
}

.food-grid-container {
    padding: 0 20px 24px;
}
.food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.food-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FFF9E6;
    color: #8A6D1C;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(246, 201, 71, 0.4);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3px;
}
.food-badge i {
    font-size: 11px;
}
.cafe-card {
    border: 1px solid rgba(246, 201, 71, 0.2) !important;
}

/* Deals of the Day (₹1 Deal) Purple/Violet Gradient Styling */
.deals-section {
    background: linear-gradient(180deg,rgb(141, 115, 235) 0%, rgb(189, 181, 214)  100%);
    margin: 12px 7px 5px;
    padding: 10px 12px 12px 13px !important;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(122, 38, 246, 0.12);
}
.deal-header-main {
    display: flex;
    align-items: center;
    gap: 6px;
}
.deal-badge-yellow {
    background: #ffe11b;
    color: #212121;
    font-style: italic;
    font-weight: 900;
    font-size: 14px;
    border-radius: 4px;
    padding: 2px 6px;
    transform: skewX(-12deg);
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.deal-tagline-white {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}
.deal-timer-flipkart {
    color: #ffe11b;
    font-weight: 700;
    font-size: 10px;
}
.deals-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 2px 0 6px 0;
    scrollbar-width: none;
}
.deals-scroll-container::-webkit-scrollbar {
    display: none;
}
.deal-card-horizontal {
    min-width: 210px;
    max-width: 210px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    position: relative;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.deal-card-horizontal:active {
    transform: scale(0.98);
}
.deal-card-horizontal.selected-deal {
    border-color: #28a745;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.1);
}
.deal-card-banner {
    background: #b90050; /* Crimson red */
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: background 0.3s ease;
}
.deal-card-banner.unlocked {
    background: #28a745; /* Green when unlocked */
}
.deal-card-body {
    display: flex;
    padding: 8px;
    height: 80px;
    align-items: center;
}
.deal-card-img-sec {
    position: relative;
    width: 60px;
    height: 65px;
    min-width: 70px;
    background: #fcfcfc;
    border-radius: 6px;
}
.deal-card-img-sec img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.deal-img-tag {
    position: absolute;
    top: -2px;
    left: -2px;
    background: #b90050;
    color: #ffffff;
    font-size: 6px;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 2px;
    text-transform: uppercase;
    z-index: 2;
}
.deal-action-btn-container {
    position: absolute;
    bottom: -6px;
    right: -6px;
    z-index: 10;
}
.deal-action-btn {
    background: #ffffff !important;
    border: 1.5px solid #dcdcdc !important;
    border-radius: 6px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
}
.deal-action-btn.locked {
    cursor: not-allowed;
    border-color: #c2185b;
}
.deal-action-btn.locked i {
    color: #c2185b;
    font-size: 11px;
}
.deal-action-btn.unlocked-btn {
    /* border-color: #00b259 !important;
    color: #00b259 !important; */
    font-weight: 800 !important;
    font-size: 9px !important;
}
.deal-card-info-sec {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 8px;
    height: 100%;
    flex-grow: 1;
}
.deal-weight-pill {
    background: #e0e0e0;
    color: #212121;
    font-weight: 700;
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 3px;
    width: fit-content;
    display: inline-block;
}
.deal-name-bold {
    font-size: 12px;
    font-weight: 600;
    color: #212121;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.deal-price-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.deal-price-badge {
    background: #ffe11b;
    color: #212121;
    font-weight: 900;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 3px;
}
.deal-original-price {
    font-size: 11px;
    color: #888888;
    text-decoration: line-through;
}
.deal-threshold-alert {
    background: #FFF5F5;
    border: 1px solid #FFC9C9;
    color: #C1272D;
    font-size: 12px;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin: 15px 0 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.deal-threshold-alert.threshold-success {
    background: #F4FBF7;
    border: 1px solid #C3EED8;
    color: #155724;
}
.deal-progress-bar-bg {
    background: #EAEAEA;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
    width: 100%;
}
.deal-progress-bar {
    background: #28a745;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}
.deal-progress-bar.bar-failed {
    background: #dc3545;
}

/* Sticky Stacking & Reveal Effects */
.search-section {
    position: sticky;
    top: 0;
    z-index: 120;
    background: var(--bg-color);
    padding: 2px 18px 4px !important; /* height: 10 + 44 + 8 = 62px */
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}
.search-section.sticky-active {
    background: rgba(247, 249, 252, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.tabs-section {
    position: sticky;
    top: 62px; /* Sticky below search-section */
    z-index: 110;
    background: var(--bg-color);
    padding: 10px 20px 0px !important; /* normal state */
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s, padding 0.3s;
    border-bottom: 1px solid transparent;
}
.tabs-section.sticky-active {
    background: rgba(247, 249, 252, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    padding: 4px 20px !important; /* breathing room */
}
.tabs-section.sticky-active .segmented-control {
    padding: 2px 0 !important;
}
.tabs-section.sticky-active .tab-btn {
    height: 38px !important;
    padding-left: 36px !important;
    padding-right: 8px !important;
    font-size: 12px !important;
}
.tabs-section.sticky-active .tab-btn .tab-icon-img {
    height: 48px !important;
    left: -8px !important;
    bottom: -3px !important;
}

/* Cafe Food Subcategories Chips Sticky Active */
.food-categories {
    z-index: 100;
    background: transparent;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}
.food-categories.sticky-active {
    position: sticky;
    top: 108px; /* Sticks right below sticky tabs (62px + 46px) */
    background: rgba(247, 249, 252, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Category Grid Collapse to Pill Row styling */
.category-section {
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    background: transparent;
}
.category-section.collapsed {
    position: sticky;
    top: 108px; /* Sticks right below sticky tabs (62px + 46px) */
    background: rgba(247, 249, 252, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 8px 0 !important;
    margin-top: 0 !important;
}

/* Hide title and see all button when collapsed */
.category-section.collapsed .section-title {
    display: none !important;
}

/* Transition from grid to horizontal flex list */
.category-section.collapsed .category-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 0 20px;
    scrollbar-width: none;
    transition: all 0.3s ease;
}
.category-section.collapsed .category-grid::-webkit-scrollbar {
    display: none;
}

/* Pill design for category item when collapsed */
.category-section.collapsed .category-item {
    flex-direction: row;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 6px 12px;
    gap: 6px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.category-section.collapsed .cat-icon-wrapper {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: none;
    background: transparent;
    transition: all 0.3s ease;
}

.category-section.collapsed .cat-icon-wrapper img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.category-section.collapsed .category-item span {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-dark);
}

/* Steal Deals styling */
.steal-deals-section {
    background: #e8e6fc;
    margin: 12px 6px 1px;
    padding: 12px 12px 12px 10px !important;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(74, 59, 255, 0.06);
}
.steal-header-main {
    display: flex;
    align-items: center;
    gap: 6px;
}
.steal-badge-violet {
    background: #4A3AFF;
    color: #ffffff;
    font-style: italic;
    font-weight: 900;
    font-size: 14px;
    border-radius: 4px;
    padding: 2px 8px;
    transform: skewX(-12deg);
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.steal-tagline-dark {
    color: #212121;
    font-weight: 700;
    font-size: 14px;
}
.steal-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 2px 8px 2px;
    scrollbar-width: none;
}
.steal-scroll-container::-webkit-scrollbar {
    display: none;
}
.steal-card-horizontal {
    min-width: 140px;
    max-width: 140px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    /* border: 1px solid rgba(0, 0, 0, 0.05); */
    transition: transform 0.2s ease, border-color 0.2s ease;
    padding: 0 0 2px 0;
}
.steal-card-horizontal:active {
    transform: scale(0.98);
}
.steal-card-horizontal.selected-steal-deal {
    border-color: #c2185b;
    box-shadow: 0 4px 12px rgba(194, 24, 91, 0.12);
}
.steal-card-banner {
    background: #b90050; /* Crimson red */
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    transition: background 0.3s ease;
}
.steal-card-banner.unlocked {
    background: #28a745; /* Green when unlocked */
}
.steal-card-body {
    display: flex;
    flex-direction: column;
    padding: 4px;
    flex-grow: 1;
}
.steal-card-img-sec {
    position: relative;
    width: 100%;
    height: 102px;
    background: #f4f5f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 6px; */
}
.steal-card-img-sec img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
.steal-img-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #b90050;
    color: #ffffff;
    font-size: 6px;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}
.steal-action-btn-container {
    position: absolute;
    bottom: 6px;
    right: 6px;
    z-index: 10;
}
.steal-action-btn {
    background: #ffffff !important;
    border: 1.5px solid #c2185b !important;
    border-radius: 8px !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
}
.steal-action-btn.locked {
    cursor: not-allowed;
}
.steal-card-info-sec {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 8px;
    flex-grow: 1;
    gap: 4px;
}
.steal-weight-pill {
    background: #e9ecef;
    color: #495057;
    font-weight: 600;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    display: inline-block;
}
.steal-name-bold {
    font-size: 12px;
    font-weight: 700;
    color: #212121;
    margin: 4px 0 2px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    height: 32px; /* Fixed height for 2 lines alignment */
}
.steal-price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: auto;
}
.steal-price-badge {
    background: #ffe11b;
    color: #212121;
    font-weight: 900;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.steal-original-price {
    font-size: 10px;
    color: #888888;
}

/* Floating View Cart Bar - Glassmorphism */
.floating-cart-bar {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    min-width: 200px;
    gap: 24px;
    padding: 2px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0a6f1a;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 999;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.floating-cart-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.05)
    );
    pointer-events: none;
}
.floating-cart-bar:active {
    transform: translateX(-50%) scale(0.97);
}
.cart-preview-group {
    display: flex;
    align-items: center;
    padding-left: 8px; /* Offset the first avatar overlap padding */
}
.cart-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 225, 27, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}
.cart-avatar img {
    width: 90%;
    height: 80%;
    object-fit: contain;
}
.cart-chevron-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.floating-cart-bar:hover .cart-chevron-circle {
    background: rgba(255, 255, 255, 0.25);
}
.floating-cart-bar * {
    color: #ffffff;
}

/* Sidebar Layout for Listing Page */
.listing-wrapper {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.category-sidebar {
    width: 85px;
    background-color: #ffffff;
    border-right: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    flex-shrink: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
}
.category-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 12px 4px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.sidebar-item:active {
    background-color: #f5f5f5;
}

.sidebar-item.active {
    background-color: #ffffff;
}

.sidebar-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 4px;
    background-color: transparent;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    transition: background-color 0.2s ease;
}

.sidebar-item.active::after {
    background-color: #1e7e34; /* Green indicator bar */
}

.sidebar-img-container {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-item.active .sidebar-img-container {
    background-color: #e8f5e9; /* Light green background when active */
    border-color: #c8e6c9;
}

.sidebar-img-container img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 500;
    color: #555555;
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 75px;
}

.sidebar-item.active .sidebar-label {
    font-weight: 700;
    color: #000000;
}

/* Product list container */
.product-list-container {
    flex-grow: 1;
    background-color: #f8f9fa;
    overflow-y: auto;
    padding: 10px 10px 140px 10px; /* Padding bottom to account for bottom navigation / cart bar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
}
.product-list-container::-webkit-scrollbar {
    display: none;
}

/* Product Card Redesign (v2) */
.product-card-v2 {
    background: #ffffff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 12px 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fff0f0;
    color: #d32f2f;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 5;
    text-transform: capitalize;
}

.wishlist-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #b0b0b0;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    transition: color 0.2s ease;
}

.wishlist-heart:hover {
    color: #e53935;
}

.product-img-v2 {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 10px;
}

.product-img-v2 img {
    max-height: 100%;
    max-width: 90%;
    object-fit: contain;
}

.veg-icon-container {
    position: absolute;
    bottom: -5px;
    right: 5px;
    z-index: 4;
}

.veg-icon {
    width: 14px;
    height: 14px;
    border: 1.5px solid #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    background-color: #ffffff;
}

.veg-dot {
    width: 6px;
    height: 6px;
    background-color: #28a745;
    border-radius: 50%;
}

.carousel-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 6px;
    margin-bottom: 2px;
}

.carousel-dots .dot {
    width: 5px;
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 50%;
}

.carousel-dots .dot.active {
    background-color: #424242;
}

.weight-add-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 6px;
}

.weight-pill-v2 {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #212121;
    background-color: #ffffff;
    flex-grow: 1;
    text-align: center;
    max-width: 65px;
    white-space: nowrap;
}

.add-btn-v2 {
    border: 1.5px solid #1e7e34 !important; /* green border */
    color: #1e7e34 !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    padding: 3px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn-v2:hover {
    background-color: #e8f5e9 !important;
}

.unit-price-v2 {
    font-size: 11px;
    color: #757575;
    margin-top: 6px;
    font-weight: 500;
}

.price-row-v2 {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}

.current-price-v2 {
    font-size: 18px;
    font-weight: 800;
    color: #212121;
}

.mrp-price-v2 {
    font-size: 12px;
    color: #9e9e9e;
    text-decoration: line-through;
    font-weight: 500;
}

.discount-text-v2 {
    color: #0b57d0; /* Blue discount text */
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
}

.title-v2 {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    margin-top: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
}

.rating-row-v2 {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 10px;
    color: #757575;
}

.stars-v2 {
    color: #ffb300;
    display: flex;
    gap: 1px;
    font-size: 9px;
}

.delivery-time-v2 {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 11px;
    color: #616161;
    font-weight: 600;
}

.delivery-time-v2 i {
    font-size: 13px;
    color: #757575;
}

/* Authentication Pages (Login & OTP) */
.login-wrapper { background-color: #fff; height: 100vh; overflow: hidden; position: relative; width: 100%; }
.lang-btn { position: absolute; top: 20px; left: 20px; background: #1c35b3; color: #fff; border-radius: 30px; padding: 10px 20px; font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 8px; z-index: 10; border: none; box-shadow: 0 4px 10px rgba(28, 53, 179, 0.2); }
.bg-pattern-container { position: absolute; top: 4%; left: -20%; width: 142%; height: 75%; transform: rotate(-16deg); z-index: 0; display: flex; justify-content: center; align-items: center; }
@keyframes panBackground {
    0% { transform: translateY(0); }
    50% { transform: translateY(-150px); }
    100% { transform: translateY(0); }
}
.bg-pattern { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; padding: 20px; animation: panBackground 20s ease-in-out infinite; }
.pattern-item { width: 100px; height: 100px; background: #eef1fe; border-radius: 20px; display: flex; justify-content: center; align-items: center; padding: 15px; box-sizing: border-box; }
.pattern-item img { max-width: 100%; max-height: 100%; object-fit: contain; transform: rotate(20deg); }
.sheet-fade { position: absolute; top: 47%; left: 0; width: 100%; height: 20%; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); z-index: 5; pointer-events: none; }
.bottom-sheet { position: absolute; top: 59%; left: 0; width: 100%; height: 31%; background: #fff; z-index: 10; padding: 0 15px 20px 16px; box-sizing: border-box; display: flex; flex-direction: column; }
.auth-title { font-size: 22px; font-weight: 700; color: #000; margin-bottom: 8px; margin-top: 0; }
.auth-subtitle { font-size: 15px; color: #888; margin-bottom: 30px; line-height: 1.4; }
.mobile-input-container { display: flex; align-items: center; border-bottom: 2px solid #ddd; margin-bottom: 15px; padding-bottom: 5px; }
.mobile-input-container:focus-within { border-bottom: 2px solid #1c35b3; }
.prefix { font-size: 18px; font-weight: 600; color: #000; margin-right: 10px; }
.mobile-input { flex: 1; border: none; font-size: 18px; color: #000; outline: none; background: transparent; }
.mobile-input::placeholder { color: #ccc; }
.otp-container { display: flex; gap: 12px; margin-bottom: 15px; }
.otp-input { width: 100%; height: 40px; border: none; border-bottom: 2px solid #ddd; font-size: 24px; text-align: center; color: #000; outline: none; background: transparent; padding: 0; border-radius: 0; }
.otp-input:focus, .otp-input.active { border-bottom: 2px solid #1c35b3; }
.resend-text { font-size: 14px; color: #a0a0a0; margin-bottom: auto; }
.continue-btn { width: 100%; background: #97a3d8; color: #fff; border: none; border-radius: 12px; padding: 16px; font-size: 16px; font-weight: 600; text-decoration: none; text-align: center; display: block; margin-top: 12px; }

/* Create Profile Page */
.profile-input-group { position: relative; margin-bottom: 30px; }
.profile-input { width: 100%; border: none; border-bottom: 2px solid #eaedf3; padding: 10px 0; font-size: 18px; color: #1a1d20; outline: none; background: transparent; transition: border-color 0.3s; }
.profile-input:focus { border-bottom-color: #1c35b3; }
.profile-label { position: absolute; top: 12px; left: 0; font-size: 16px; color: #8a92a6; transition: all 0.3s ease; pointer-events: none; }
.profile-input:focus ~ .profile-label, .profile-input:not(:placeholder-shown) ~ .profile-label { top: -12px; font-size: 12px; font-weight: 600; color: #1c35b3; }

/* Blinkit Style Profile */
.blinkit-header { padding: 30px 20px 20px; background: #fff; display: flex; justify-content: space-between; align-items: flex-start; }
.blinkit-name { font-size: 24px; font-weight: 800; color: #000; margin-bottom: 4px; }
.blinkit-phone { font-size: 15px; color: #666; font-weight: 500; }
.blinkit-edit { color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: none; }
.blinkit-card { background: #fff; margin-top: 10px; padding: 0; }
.blinkit-list-item { display: flex; align-items: center; padding: 18px 20px; text-decoration: none; border-bottom: 1px solid #f0f0f0; transition: background 0.2s; }
.blinkit-list-item:hover { background: #fcfcfc; }
.blinkit-list-item:last-child { border-bottom: none; }
.blinkit-icon { width: 36px; height: 36px; background: #f8f8f8; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 16px; color: #444; font-size: 18px; }
.blinkit-text { font-size: 16px; font-weight: 600; color: #111; flex-grow: 1; }
.blinkit-arrow { color: #ccc; font-size: 20px; }
.blinkit-logout { margin-top: 10px; background: #fff; padding: 18px 20px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #e02a2a; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background 0.2s; }
.blinkit-logout:hover { background: #fff0f0; }

/* Product Details Redesign */
.product-hero-section {
    background: radial-gradient(circle at 50% 50%, #2f4370 0%, #152243 100%);
    position: relative;
    padding-top: 15px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-hero-bg-effect {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-conic-gradient(from 0deg, transparent 0deg 10deg, rgba(255,255,255,0.03) 10deg 20deg);
    pointer-events: none;
}

.hero-header-icons {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-btn-circle {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-btn-circle.right-btn {
    background: rgba(180, 200, 255, 0.7);
}

.hero-header-right {
    display: flex;
    gap: 12px;
}

.product-hero-img {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
    z-index: 5;
    margin-top: 10px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.product-highlights-container {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    margin-top: -20px;
    position: relative;
    z-index: 10;
    overflow-x: auto;
    scrollbar-width: none;
}
.product-highlights-container::-webkit-scrollbar { display: none; }

.highlight-pill {
    background: #fff;
    border-radius: 12px;
    padding: 10px 15px;
    min-width: 110px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.highlight-pill .label { font-size: 11px; color: #666; margin-bottom: 2px; }
.highlight-pill .value { font-size: 13px; font-weight: 700; color: #000; }

.view-details-btn {
    background: #e6f5eb;
    color: #1a7b36;
    border: 1px solid #c2e3cb;
    border-radius: 12px;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    text-align: center;
    cursor: pointer;
}

.product-info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    margin-top: -15px;
    position: relative;
    z-index: 5;
}

.delivery-time-badge {
    background: transparent;
    color: #444;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.rating-badge {
    color: #f5b027;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 15px;
}
.rating-text { color: #666; font-size: 11px; margin-left: 4px; }

.product-detail-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin-bottom: 15px;
}

.select-unit-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.unit-selector-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.unit-box {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px 15px;
    background: #fff;
    cursor: pointer;
    min-width: 90px;
    transition: all 0.2s;
}
.unit-box .weight { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 4px; }
.unit-box .price { font-size: 15px; font-weight: 800; color: #111; }

.unit-box.active {
    background: #ebfcf0;
    border-color: #2e8b4b;
}

.brand-explore-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.brand-logo-box {
    width: 40px; height: 40px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px;
    overflow: hidden;
}
.brand-logo-box img { max-width: 100%; max-height: 100%; }
.brand-info { flex-grow: 1; }
.brand-info .title { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 2px; }
.brand-info .subtitle { font-size: 12px; color: #666; }

.policy-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.policy-card i { font-size: 20px; color: #444; margin-right: 12px; }
.policy-card .text { font-size: 13px; font-weight: 600; color: #111; flex-grow: 1; }

.product-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    padding: 5px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.bottom-price-info .weight { font-size: 13px; font-weight: 600; color: #111; }
.bottom-price-info .price { font-size: 18px; font-weight: 800; color: #111; margin-top: 2px; margin-bottom: 2px; }
.bottom-price-info .tax-info { font-size: 11px; color: #888; }
.bottom-add-btn {
    background: #2e8b4b;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    min-width: 140px;
}
