/* Modern Landing Page Styles - NexFood Modern Mobile & Web Redesign */

:root {
    --bg-mint: #DCEFDC;
    --bg-mint-light: #EBF7EB;
    --bg-blue: #DBEAFE;
    --bg-blue-light: #EFF6FF;
    --bg-warm: #FEF3C7;
    --bg-cream: #F8F9FA;
    --dark-primary: #121212;
    --text-primary: #18181B;
    --text-secondary: #71717A;
    --accent-orange: #F97316;
    --accent-gold: #F59E0B;
}

/* Base resets & utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide legacy mobile bottom bar globally */
.siddhi-menu-fotter {
    display: none !important;
}

/* Hide legacy cashback floating image & old popup */
#cashback-button,
#cashback-offer-popup {
    display: none !important;
}

/* Modern Cashback Pull Drawer Handle & Offcanvas */
.cashback-drawer-handle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cashback-drawer-handle:hover {
    transform: translateY(-50%) translateX(-2px);
}
.cashback-handle-pill {
    background: #18181b;
    color: #ffffff;
    padding: 9px 12px;
    border-radius: 20px 0 0 20px;
    box-shadow: -4px 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cashback-handle-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    letter-spacing: 0.5px;
    transition: max-width 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-left: 0;
    display: inline-block;
}
.cashback-handle-pill.expanded .cashback-handle-text,
.cashback-drawer-handle:hover .cashback-handle-text {
    max-width: 80px;
    opacity: 1;
    margin-left: 6px;
}
.cashback-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.cashback-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cashback-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}
.cashback-drawer.active {
    transform: translateX(0);
}
.cashback-drawer-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}
.cashback-drawer-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cashback-drawer-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.cashback-drawer-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}
.cashback-card-item {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    list-style: none;
    transition: all 0.2s ease;
}
.cashback-card-item:hover {
    background: #f0fdf4;
    border-color: #10b981;
}

/* Floating Bottom Dock */
.modern-floating-dock {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #121212;
    border-radius: 9999px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-floating-dock .dock-pill-active {
    background: #FFFFFF;
    color: #121212 !important;
    padding: 8px 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.modern-floating-dock .dock-pill-active:hover {
    transform: scale(1.03);
}

.modern-floating-dock .dock-btn {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    text-decoration: none !important;
    position: relative;
    transition: all 0.2s ease;
}

.modern-floating-dock .dock-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.modern-floating-dock .dock-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #121212;
}

/* Category Chips */
.category-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #F3F4F6;
    color: #4B5563;
    border: 1px solid transparent;
}

.category-chip.active,
.category-chip:hover {
    background: #E8F5E9;
    color: #15803D;
    border-color: #BBF7D0;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.12);
}

.category-chip img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Promo Banner Card */
.modern-promo-card {
    background: linear-gradient(135deg, #E2F2D9 0%, #FAF1D6 100%);
    border-radius: 28px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.modern-promo-card .promo-wave {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
}

/* Modern Food Card */
.modern-food-card {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 24px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.modern-food-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    border-color: #FED7AA;
}

.modern-food-card .card-food-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: #F8FAFC;
    margin-bottom: 10px;
}

.modern-food-card .card-food-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-food-card:hover .card-food-image {
    transform: scale(1.06);
}

.modern-food-card .quick-add-btn {
    width: 38px;
    height: 38px;
    background: #121212;
    color: #FFFFFF;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.modern-food-card .quick-add-btn:hover {
    background: #27272A;
    transform: scale(1.1);
}

/* Product Detail Slide-Up Modal */
.product-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.product-modal-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: 36px 36px 0 0;
    overflow-y: auto;
    z-index: 2001;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-backdrop.active .product-modal-sheet {
    transform: translate(-50%, 0);
}

/* Micro Animations */
@keyframes floatSoft {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float-soft {
    animation: floatSoft 3.5s ease-in-out infinite;
}

/* Quantity stepper */
.qty-stepper-btn {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #18181B;
    border: none;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.qty-stepper-btn:hover {
    background: #F4F4F5;
    transform: scale(1.05);
}
