/* ============================================
   PREMIUM DESIGN SYSTEM - NAITIK STORE
   ============================================ */

/* CSS Variables for Premium Color Palette */
:root {
    /* Primary Colors - Premium Deep Purple/Burgundy Gradient */
    --primary-color: #1a0f2e;
    --primary-dark: #0d0518;
    --primary-light: #2d1b3d;
    --primary-gradient: linear-gradient(135deg, #2d1b3d 0%, #1a0f2e 25%, #1a0d26 50%, #0d0518 75%, #0a0a0a 100%);
    --primary-gradient-subtle: linear-gradient(135deg, rgba(45,27,61,0.98) 0%, rgba(26,15,46,0.98) 100%);
    
    /* Accent Colors - Professional Modern Blue */
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    
    /* Theme Color - Vibrant Gold (for buttons, CTAs) */
    --theme-color: #FFB84D; /* Primary Accent Gold - Brighter */
    --theme-dark: #2F3133; /* Dark Grey for panels */
    --theme-secondary-dark: #545759; /* Secondary Dark Grey for inputs */
    --theme-muted: #BABABA; /* Muted Gold/Light Grey for subtitles */
    --theme-light-bg: #F2F2F2; /* Light Background */
    
    /* Checkout color variables (for consistency) */
    --checkout-primary-gold: #FFB84D;
    --checkout-dark-grey: #2F3133;
    --checkout-secondary-dark: #545759;
    --checkout-muted: #BABABA;
    --checkout-light-bg: #F2F2F2;
    --theme-hover: #FFC966;
    --theme-light: #fff4e0;
    --theme-gradient: linear-gradient(135deg, #FFB84D 0%, #FFC966 100%);
    
    /* Secondary Colors */
    --secondary-color: #f8f9fa;
    --secondary-dark: #e9ecef;
    
    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --text-muted: #adb5bd;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1a1a;
    
    /* Border & Shadow - Premium Enhanced */
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.18);
    --shadow-glow: 0 0 20px rgba(0,184,169,0.3);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   MOBILE-FIRST RESPONSIVE DESIGN
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ============================================
   DOWNLOAD APP BANNER - MODERN LIGHT PEACH
   ============================================ */
.download-app-banner {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8E0 50%, #FFF5F0 100%);
    color: var(--text-primary);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    z-index: 1001;
    width: 100%;
    display: none;
    border-bottom: 1px solid rgba(255,182,193,0.3);
    overflow: hidden;
}

.download-app-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        #FFB6C1 0%, 
        #FFA07A 50%, 
        #FFB6C1 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.download-app-banner.show {
    display: block;
    animation: slideDown var(--transition-base);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.banner-left i {
    font-size: 20px;
    color: #FF8C94;
    flex-shrink: 0;
    background: rgba(255,182,193,0.2);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255,182,193,0.3);
    animation: float 3s ease-in-out infinite;
    transition: all var(--transition-base);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-4px) scale(1.05) rotate(-2deg);
    }
    50% {
        transform: translateY(-6px) scale(1.08) rotate(0deg);
    }
    75% {
        transform: translateY(-4px) scale(1.05) rotate(2deg);
    }
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.banner-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    display: block;
    letter-spacing: -0.1px;
}

.banner-text span {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.2;
    display: block;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: #FF8C94;
    border: 2px solid #FF8C94;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: 0 2px 6px rgba(255,140,148,0.3);
    white-space: nowrap;
    height: 32px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.6s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    background: #FF7A82;
    border-color: #FF7A82;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(255,140,148,0.4);
}

.download-btn:active {
    background: #FF6B75;
    border-color: #FF6B75;
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(255,140,148,0.3);
}

.download-btn i {
    font-size: 12px;
}

.banner-close {
    background: rgba(255,140,148,0.15);
    border: 2px solid rgba(255,140,148,0.4);
    color: #FF6B73;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
    padding: 0;
    opacity: 1;
    box-shadow: 0 2px 6px rgba(255,140,148,0.2);
    box-sizing: border-box;
}

.banner-close i {
    font-size: 16px;
    font-weight: 700;
}

.banner-close:hover {
    background: rgba(255,140,148,0.25);
    border-color: rgba(255,140,148,0.6);
    color: #FF5252;
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(255,140,148,0.3);
}

.banner-close:active {
    background: rgba(255,140,148,0.3);
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(255,140,148,0.2);
}

/* ============================================
   HEADER - MOBILE-FIRST PREMIUM DESIGN
   ============================================ */
.main-header {
    background: var(--checkout-dark-grey, #2F3133);
    color: var(--text-light);
    padding: 8px 0 10px 0;
    box-shadow: 0 2px 10px rgba(47, 49, 51, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-radius: 0 0 20px 20px;
    overflow: visible; /* Allow rounded corners to show */
    margin-bottom: 0;
}

/* Removed gradient animation for cleaner look */

.main-header.with-banner {
    top: 0;
}

/* When download banner is visible, adjust categories position */
.download-app-banner.show ~ .main-header + .main-content .top-categories-container,
.download-app-banner.show + .main-header + .main-content .top-categories-container {
    top: calc(56px + var(--banner-height, 0px));
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

/* Hide desktop layout on mobile */
.desktop-header-row {
    display: none;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    flex: 0 0 auto;
}

.logo {
    flex: 0 0 auto;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-title {
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFB84D 0%, #FFC966 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(255, 184, 77, 0.3);
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
}

.logo-tagline {
    font-size: 8px; /* Increased by 1 point from 7px */
    font-weight: 700; /* Increased from 600 for better visibility */
    color: var(--checkout-muted, #BABABA); /* Muted gold/grey for tagline */
    background: rgba(186, 186, 186, 0.25); /* Slightly more opaque background */
    padding: 2px 5px; /* Slightly more padding */
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.2; /* Better line height */
    margin: 0;
    letter-spacing: 0.3px; /* Slightly more spacing */
    text-transform: lowercase;
    box-shadow: 0 1px 3px rgba(186, 186, 186, 0.4); /* Stronger shadow for better visibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Add text shadow for better readability */
}

/* Search Bar - Mobile Optimized */
.search-container {
    order: 0;
    width: 100%;
    display: flex;
    gap: 4px;
    position: relative;
    margin: 0;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 25px;
    font-size: 14px; /* Prevent zoom on iOS */
    outline: none;
    background: var(--checkout-secondary-dark, #545759);
    color: #ffffff;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-height: 40px; /* Touch target size */
    -webkit-appearance: none;
}

.search-input::placeholder {
    color: var(--checkout-muted, #BABABA);
}

.search-input:focus {
    background: var(--checkout-secondary-dark, #545759);
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.3);
    border: 1px solid var(--checkout-primary-gold, #E1B14D);
    transform: translateY(-1px);
}

.search-btn {
    padding: 0;
    background: var(--checkout-primary-gold, #E1B14D);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--checkout-dark-grey, #2F3133);
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(255, 184, 77, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.search-btn:hover {
    background: #FFC966;
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.5);
    transform: translateY(-2px) scale(1.05);
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.search-btn:active {
    transform: scale(0.95);
    box-shadow: var(--shadow-sm);
}

.search-btn:active::before {
    left: 100%;
}

/* Language Selector - Mobile Optimized */
.language-selector {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.language-select {
    padding: 4px 24px 4px 8px;
    background: rgba(255, 184, 77, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 184, 77, 0.3);
    border-radius: 16px;
    color: var(--checkout-primary-gold, #E1B14D);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 12 12'%3E%3Cpath fill='%23E1B14D' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    min-height: 28px; /* Reduced height */
    min-width: 60px; /* Reduced width */
}

.language-select:active {
    background: rgba(255, 184, 77, 0.3);
    transform: scale(0.98);
}

.language-select option {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 10px;
}

/* Header Wallet Balance - replaces language dropdown */
.header-wallet-wrapper {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.header-wallet-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 184, 77, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 184, 77, 0.3);
    border-radius: 16px;
    color: var(--checkout-primary-gold, #E1B14D);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    outline: none;
    font-family: inherit;
}

.header-wallet-link:hover {
    background: rgba(255, 184, 77, 0.3);
    color: var(--checkout-primary-gold, #E1B14D);
    transform: translateY(-1px);
}

.header-wallet-link:active {
    transform: scale(0.98);
}

.header-wallet-link i {
    font-size: 14px;
}

.header-wallet-amount {
    white-space: nowrap;
}

/* User Section - Mobile Optimized */
.cart-icon-wrapper {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.cart-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--checkout-primary-gold, #E1B14D);
    padding: 4px;
    border-radius: 16px;
    transition: all var(--transition-base);
    position: relative;
    background: rgba(255, 184, 77, 0.15);
    flex-shrink: 0;
}

.cart-icon-link:hover {
    background: rgba(255, 184, 77, 0.25);
    transform: translateY(-1px);
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.cart-icon i {
    font-size: 16px;
    color: var(--checkout-primary-gold, #E1B14D);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex; /* Always show badge */
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.9);
    line-height: 1;
    z-index: 10;
}

/* Cart text removed - only showing badge */

.user-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.desktop-user-section {
    display: none; /* Hide on mobile */
}

.mobile-user-section {
    display: flex; /* Show on mobile */
}

.user-info-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* Back Button in Header (for pages with back navigation) */
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--checkout-primary-gold, #E1B14D);
    text-decoration: none;
    border-radius: 50%;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.back-btn:hover {
    background: rgba(255, 184, 77, 0.2);
    transform: scale(1.1);
}

.back-btn i {
    font-size: 18px;
}

.page-title {
    flex: 1;
    text-align: center;
}

.page-title h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--checkout-primary-gold, #E1B14D);
    margin: 0;
    letter-spacing: -0.3px;
}

.header-spacer {
    width: 36px;
    flex-shrink: 0;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255, 184, 77, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 184, 77, 0.3);
    color: var(--checkout-primary-gold, #E1B14D);
    border: none;
    border-radius: 16px;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 28px; /* Reduced for compactness */
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-btn:hover {
    background: rgba(255, 184, 77, 0.3);
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.2);
    transform: translateY(-1px);
    border-color: var(--checkout-primary-gold, #E1B14D);
}

.login-btn:active {
    background: rgba(255, 184, 77, 0.3);
    transform: scale(0.95);
}

.user-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 184, 77, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 184, 77, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 36px; /* Touch target */
    color: var(--checkout-primary-gold, #E1B14D);
}

.user-info:active {
    background: rgba(255, 184, 77, 0.25);
    transform: scale(0.98);
}

.user-info i {
    font-size: 18px;
    color: var(--checkout-primary-gold, #E1B14D);
}

/* Header user name - only for header, not profile page */
.main-header .user-name,
.header-container .user-name {
    font-weight: 600;
    font-size: 13px;
    display: none; /* Hide on mobile, show icon only */
    color: var(--checkout-primary-gold, #E1B14D);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: var(--checkout-dark-grey, #2F3133);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    overflow: hidden;
    border: 1px solid rgba(255, 184, 77, 0.3);
}

.user-info:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: background var(--transition-fast);
    font-weight: 500;
}

.user-dropdown a:hover {
    background: rgba(255, 184, 77, 0.2);
    color: var(--checkout-primary-gold, #E1B14D);
}

/* Main Content - Mobile First */
.main-content {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    transition: margin-top var(--transition-base);
    background: var(--bg-secondary);
}

.container {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md), 0 1px 0 rgba(0,0,0,0.05) inset;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

/* ============================================
   TOP CATEGORIES TABS
   ============================================ */
.top-categories-container {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.top-categories-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 184, 77, 0.3) transparent;
}

.top-categories-scroll::-webkit-scrollbar {
    height: 4px;
}

.top-categories-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.top-categories-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 184, 77, 0.4);
    border-radius: 10px;
}

.top-categories-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 184, 77, 0.6);
}

.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    min-width: 75px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--category-color, var(--checkout-primary-gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.category-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 184, 77, 0.3);
}

.category-tab.active {
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.12) 0%, rgba(255, 201, 102, 0.08) 100%);
    border-color: var(--checkout-primary-gold, #FFB84D);
    box-shadow: 0 4px 16px rgba(255, 184, 77, 0.25);
    transform: translateY(-2px);
}

.category-tab.active::before {
    transform: scaleX(1);
}

.category-tab:active {
    transform: translateY(0) scale(0.98);
}

.category-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.category-tab.active .category-icon {
    transform: scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(255, 184, 77, 0.4));
}

.category-tab:not(.active) .category-icon {
    opacity: 0.65;
}

.category-tab:hover .category-icon {
    transform: scale(1.08);
    opacity: 0.9;
}

.category-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.category-tab.active .category-label {
    color: var(--checkout-primary-gold, #FFB84D);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 184, 77, 0.2);
}

.category-tab:hover .category-label {
    color: var(--text-primary);
}

/* ============================================
   ANIMATED PROMOTIONAL BANNER SLIDER (Category 0)
   ============================================ */
.animated-promo-banner-slider {
    width: calc(100% - 20px);
    margin: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: slideInDown 0.6s ease-out;
    min-height: 90px;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: translateX(20px);
    padding: 18px 20px;
}

.promo-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateX(0);
    animation: slideInFromRight 0.6s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Welcome Bonus Slide - Gold/Orange Theme */
.promo-slide[data-slide="0"] .promo-banner-content {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FFD700 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

/* Free Delivery Slide - Green Theme */
.promo-slide[data-slide="1"] .promo-banner-content {
    background: linear-gradient(135deg, #00C851 0%, #00E676 50%, #00D4AA 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 200, 81, 0.3);
}

/* Lowest Price Slide - Blue Theme */
.promo-slide[data-slide="2"] .promo-banner-content {
    background: linear-gradient(135deg, #0066FF 0%, #1E90FF 40%, #6A5ACD 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

/* Quick Service Slide - Purple/Pink Theme */
.promo-slide[data-slide="3"] .promo-banner-content {
    background: linear-gradient(135deg, #8E2DE2 0%, #FF5F6D 50%, #FFC371 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(142, 45, 226, 0.35);
}

.promo-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    min-height: 70px;
}

.promo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite, rotate 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.promo-icon i {
    font-size: 22px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.promo-text {
    flex: 1;
    min-width: 0;
}

.promo-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInLeft 0.8s ease-out;
    line-height: 1.3;
}

.promo-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    animation: fadeInLeft 1s ease-out;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    line-height: 1.4;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.promo-badge {
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: scaleIn 1s ease-out, pulseBadge 2s ease-in-out infinite;
    animation-delay: 0.4s, 1.5s;
    flex-shrink: 0;
}

/* Sign up now button (Welcome Bonus slide) - opens login modal */
.promo-signup-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.promo-signup-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.promo-signup-btn:active {
    transform: scale(0.98);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    }
}

.badge-text {
    color: #FF6B35;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.promo-slide[data-slide="1"] .badge-text {
    color: #00C851;
}

.promo-slide[data-slide="2"] .badge-text {
    color: #0066FF;
}

.promo-slide[data-slide="3"] .badge-text {
    color: #8E2DE2;
}

/* Slider Dots */
.promo-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
}

.promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .animated-promo-banner-slider {
        margin: 10px 5px;
        border-radius: 12px;
        min-height: 80px;
    }
    
    .promo-slide {
        padding: 14px 16px;
    }
    
    .promo-banner-content {
        gap: 10px;
        min-height: 60px;
    }
    
    .promo-icon {
        width: 42px;
        height: 42px;
    }
    
    .promo-icon i {
        font-size: 20px;
    }
    
    .promo-title {
        font-size: 15px;
    }
    
    .promo-subtitle {
        font-size: 12px;
    }
    
    .promo-badge {
        padding: 6px 12px;
    }
    
    .badge-text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .animated-promo-banner-slider {
        margin: 8px 4px;
        min-height: 75px;
    }
    
    .promo-slide {
        padding: 12px 14px;
    }
    
    .promo-banner-content {
        gap: 8px;
        min-height: 55px;
    }
    
    .promo-icon {
        width: 38px;
        height: 38px;
    }
    
    .promo-icon i {
        font-size: 18px;
    }
    
    .promo-title {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .promo-subtitle {
        font-size: 11px;
    }
    
    .promo-badge {
        padding: 5px 10px;
    }
    
    .badge-text {
        font-size: 9px;
        letter-spacing: 0.8px;
    }
    
    .promo-slider-dots {
        bottom: 8px;
        padding: 5px 10px;
    }
    
    .promo-dot {
        width: 6px;
        height: 6px;
    }
    
    .promo-dot.active {
        width: 20px;
    }
}

/* ============================================
   CATEGORY BANNER
   ============================================ */
.category-banner {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 10px 10px 0 10px;
    position: relative;
    border-radius: 5px;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 200px;
    border-radius: 5px;
}

@media (min-width: 768px) {
    .banner-image {
        max-height: 400px;
    }
}

/* ============================================
   CATEGORY BANNER SLIDER
   ============================================ */
.category-banner-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    max-height: 200px;
    padding: 10px 10px 0 10px;
    border-radius: 5px;
}

@media (min-width: 768px) {
    .category-banner-slider {
        max-height: 400px;
    }
}

.banner-slider-wrapper {
    display: flex;
    width: 100%;
    position: relative;
}

.banner-slide {
    min-width: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    visibility: hidden;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 200px;
    border-radius: 5px;
}

@media (min-width: 768px) {
    .banner-slide img {
        max-height: 400px;
    }
}

/* Slider Navigation Dots */
.banner-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.slider-dot.active {
    background: var(--accent-color);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 140, 148, 0.5);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    font-size: 16px;
}

.slider-arrow:hover {
    background: var(--accent-color);
    color: var(--text-light);
}

/* Naitik Points Banner for Category 127 (Below Image) */
.naitik-points-banner {
    width: calc(100% - 20px);
    max-width: 100%;
    background: linear-gradient(135deg, #1a1c1e 0%, #2F3133 50%, #1a1c1e 100%);
    padding: 20px 16px;
    margin: 12px 10px 0 10px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 184, 77, 0.15);
    position: relative;
    overflow: hidden;
}

.naitik-points-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFB84D 0%, #FFC966 50%, #FFB84D 100%);
}

.points-display,
.points-login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.points-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FFB84D 0%, #FFC966 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.5);
    margin-bottom: 4px;
}

.points-icon-wrapper i {
    font-size: 24px;
    color: #fff;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.points-text {
    font-size: 13px;
    opacity: 0.85;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.points-value-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0;
}

.points-value {
    font-size: 36px;
    font-weight: 800;
    color: #FFB84D;
    text-align: center;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(255, 184, 77, 0.4);
}

.points-label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.points-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #FFB84D;
    text-decoration: none;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 184, 77, 0.15);
    border: 1px solid rgba(255, 184, 77, 0.4);
    transition: all 0.3s ease;
    font-weight: 600;
}

.points-link:hover {
    background: rgba(255, 184, 77, 0.25);
    border-color: #FFB84D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.4);
}

.points-link i {
    font-size: 12px;
}

.points-login-prompt .points-text {
    font-size: 14px;
    opacity: 0.9;
    text-align: center;
    font-weight: 500;
}

.points-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFB84D 0%, #FFC966 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.points-login-btn:hover {
    background: linear-gradient(135deg, #FFC966 0%, #FFD180 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 184, 77, 0.6);
}

.points-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
}

.points-login-btn i {
    font-size: 14px;
}

@media (min-width: 768px) {
    .naitik-points-banner {
        padding: 28px 24px;
        margin: 16px 12px 0 12px;
        border-radius: 16px;
    }
    
    .points-icon-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .points-icon-wrapper i {
        font-size: 28px;
    }
    
    .points-text {
        font-size: 14px;
    }
    
    .points-value {
        font-size: 42px;
    }
    
    .points-label {
        font-size: 18px;
    }
    
    .points-link {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .points-login-prompt .points-text {
        font-size: 15px;
    }
    
    .points-login-btn {
        padding: 14px 32px;
        font-size: 15px;
    }
}
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 140, 148, 0.4);
}

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

.slider-arrow-prev {
    left: 12px;
}

.slider-arrow-next {
    right: 12px;
}

/* ============================================
   MIDDLE SECTIONS
   ============================================ */
.middle-sections {
    width: 100%;
    padding: 0;
}

.section {
    margin-bottom: 0;
    background: var(--bg-primary);
}

.section-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 16px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

/* ============================================
   CATEGORIES GRID SECTION
   ============================================ */
.categories-section {
    padding-bottom: 16px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
        padding: 20px;
    }
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(245, 245, 245, 0.2);
}

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

.category-item-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

@media (min-width: 768px) {
    .category-item-image {
        border-radius: var(--radius-sm);
    }
}

.category-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.category-item:hover .category-item-image img {
    transform: scale(1.05);
}

.category-item-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    padding: 8px 4px 0;
    line-height: 1.3;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .category-item-label {
        font-size: 12px;
        padding: 6px 4px 0;
        min-height: 28px;
    }
}

/* ============================================
   SLIDER SECTION
   ============================================ */
.slider-section {
    padding-bottom: 16px;
}

.slider-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
}

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

.slider-wrapper {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
}

.slider-item {
    flex-shrink: 0;
    width: 280px;
    height: 140px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-base);
    background: var(--bg-secondary);
}

.slider-item:active {
    transform: scale(0.98);
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   MODAL - PREMIUM DESIGN
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(47, 49, 51, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    animation: fadeIn var(--transition-base);
    padding: 20px;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 95%;
    max-width: 420px;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideUp var(--transition-base);
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
}

/* Close Button - Top Right */
.close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    opacity: 0.6;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    z-index: 10;
}

.close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}




.modal-body {
    padding: 0;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.login-step {
    animation: fadeIn var(--transition-base);
    padding: 40px 32px 32px;
}

/* Remove all default outlines from modal inputs */
.login-step input,
.login-step input:focus,
.login-step input:focus-visible,
.login-step input:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.modal-content input,
.modal-content input:focus,
.modal-content input:focus-visible,
.modal-content input:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.login-step-content {
    max-width: 100%;
    margin: 0 auto;
}

/* Modern Icon Container */
.step-icon-wrapper {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.modern-icon-container {
    display: inline-block;
    position: relative;
    width: 100px;
    height: 100px;
}

/* Padlock + Phone Icon (Mobile Step) */
.icon-padlock {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    background: var(--checkout-primary-gold, #E1B14D);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.3);
}

.icon-padlock i {
    font-size: 32px;
    color: var(--checkout-dark-grey, #2F3133);
}

.icon-phone {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: #4A90E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.icon-phone i {
    font-size: 20px;
    color: #ffffff;
}

/* Phone + Chat Bubble Icon (OTP Step) */
.icon-phone-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    background: var(--checkout-dark-grey, #2F3133);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(47, 49, 51, 0.3);
}

.icon-phone-large i {
    font-size: 32px;
    color: #ffffff;
}

.icon-chat-bubble {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    background: #4A90E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.bubble-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.bubble-dots span {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    display: block;
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.step-description {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin: 0 0 32px 0;
    line-height: 1.4;
    font-weight: 400;
}

/* Form Group */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: none;
}

/* Modern Phone Input (Pill-shaped) */
.modern-phone-input {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    padding: 4px;
    transition: all 0.3s ease;
    overflow: hidden;
    outline: none !important;
}

.modern-phone-input:focus-within {
    outline: none !important;
    border-color: var(--checkout-primary-gold, #E1B14D);
    box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.1);
}

.modern-phone-input:focus-visible {
    outline: none !important;
}

.phone-country-code {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    border: 1px solid #e0e0e0;
}

.phone-flag {
    font-size: 20px;
    line-height: 1;
}

.phone-code {
    font-weight: 600;
}

.phone-dropdown {
    font-size: 10px;
    color: #999;
    margin-left: 4px;
}

.phone-number-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 48px;
}

.phone-number-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.phone-number-input::placeholder {
    color: #999;
    font-weight: 400;
}

.phone-validation-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.phone-validation-icon i {
    color: #ffffff;
    font-size: 16px;
}

/* OTP Input - 6 Individual Boxes */
.otp-group {
    margin-bottom: 24px;
}

.otp-boxes-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.otp-box {
    width: 50px;
    height: 50px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-box:focus {
    outline: none !important;
    border-color: var(--checkout-primary-gold, #E1B14D);
    box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.1);
    background: #fffef5;
}

.otp-box:focus-visible {
    outline: none !important;
    border-color: var(--checkout-primary-gold, #E1B14D);
    box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.1);
}

.otp-box:not(:placeholder-shown) {
    border-color: var(--checkout-primary-gold, #E1B14D);
    background: #fffef5;
}

/* Secondary Link */
.secondary-link {
    display: block;
    text-align: center;
    color: #4A90E2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
    transition: color 0.2s ease;
}

.secondary-link:hover {
    color: #357ABD;
    text-decoration: underline;
}

/* OTP Timer */
.otp-timer-wrapper {
    text-align: center;
    margin-top: 20px;
}

.otp-timer {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin-bottom: 8px;
}

.otp-timer #timerCount {
    font-weight: 600;
    color: #333;
}

/* Button Styling */
.btn-login {
    width: 100%;
    padding: 14px 20px;
    background: var(--checkout-primary-gold, #E1B14D);
    color: var(--checkout-dark-grey, #2F3133);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(255, 184, 77, 0.3);
    letter-spacing: 0.3px;
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
    margin-top: 0;
}

.btn-login:hover {
    background: #FFC966;
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.4);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 184, 77, 0.3);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* Error Message */
.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    display: block;
    font-weight: 500;
    padding-left: 4px;
}

/* Form Input (General) */
.form-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--checkout-secondary-dark, #545759);
    border-radius: 12px;
    font-size: 16px;
    transition: all var(--transition-base);
    outline: none !important;
    background: var(--checkout-light-bg, #F2F2F2);
    color: var(--checkout-dark-grey, #2F3133);
    min-height: 56px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none !important;
    border-color: var(--theme-color, #E1B14D);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 184, 77, 0.1);
}

.form-input:focus-visible {
    outline: none !important;
}

.form-input::placeholder {
    color: var(--checkout-muted, #BABABA);
}

/* Toast Notification - Mobile Optimized */
.toast {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    padding: 16px 20px;
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 3000;
    display: none;
    animation: slideInUp var(--transition-base);
    font-weight: 500;
    max-width: 100%;
    border-left: 4px solid var(--accent-color);
}

.toast.show {
    display: block;
}

.toast.success {
    background: var(--bg-dark);
    border-left-color: #28a745;
}

.toast.error {
    background: var(--bg-dark);
    border-left-color: #dc3545;
}

.toast.info {
    background: var(--bg-dark);
    border-left-color: #17a2b8;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Download Banner - Desktop */
@media (min-width: 768px) {
    .download-app-banner {
        padding: 0;
    }
    
    .banner-content {
        padding: 20px 24px;
    }
    
    .banner-left i {
        font-size: 36px;
        width: 64px;
        height: 64px;
        border-radius: 16px;
        animation: float 3s ease-in-out infinite;
    }
    
    .banner-text strong {
        font-size: 18px;
    }
    
    .banner-text span {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .download-btn {
        padding: 12px 28px;
        font-size: 13px;
        height: 48px;
        border: 2px solid #FF8C94;
        box-sizing: border-box;
    }
    
    .download-btn:hover {
        transform: translateY(-3px);
        box-shadow: 
            0 10px 32px rgba(255,215,0,0.5),
            0 5px 14px rgba(255,215,0,0.4),
            inset 0 1px 0 rgba(255,255,255,0.5),
            0 0 35px rgba(255,215,0,0.4);
        background: linear-gradient(135deg, #FFA500 0%, #FFD700 50%, #FFA500 100%);
        border-color: #FFD700;
    }
    
    .banner-close {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        box-sizing: border-box;
    }
    
    .banner-close i {
        font-size: 18px;
    }
    
    .banner-close:hover {
        background: rgba(255,140,148,0.3);
        border-color: rgba(255,140,148,0.7);
        color: #FF5252;
        transform: scale(1.15);
    }
    
    .banner-content {
        flex-wrap: nowrap;
    }
    
    .banner-text {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }
    
    .banner-text strong::after {
        content: ' -';
        margin: 0 4px;
        opacity: 0.6;
    }
}

/* ============================================
   SLIDER SECTION
   ============================================ */
.slider-section {
    padding-bottom: 16px;
}

.slider-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
}

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

.slider-wrapper {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
}

.slider-item {
    flex-shrink: 0;
    width: 280px;
    height: 140px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-base);
    background: var(--bg-secondary);
}

.slider-item:active {
    transform: scale(0.98);
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   TABLET & DESKTOP ENHANCEMENTS
   ============================================ */
@media (min-width: 768px) {
    .main-header {
        padding: 16px 0;
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .header-container {
        max-width: 1400px;
        padding: 0 12px;
        gap: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        width: 100%;
    }
    
    /* Hide mobile layout on desktop */
    .mobile-header-row,
    .mobile-search {
        display: none;
    }
    
    /* Show desktop layout */
    .desktop-header-row {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        flex-wrap: nowrap;
    }
    
    .desktop-logo {
        flex: 0 0 auto;
        flex-shrink: 0;
    }
    
    .desktop-search {
        flex: 1;
        min-width: 200px;
        max-width: 500px;
        margin: 0 12px;
        display: flex;
        gap: 6px;
    }
    
    .desktop-language,
    .desktop-wallet {
        flex: 0 0 auto;
        flex-shrink: 0;
    }
    
    .desktop-cart {
        flex: 0 0 auto;
        flex-shrink: 0;
    }
    
    .desktop-user-section {
        display: flex;
        flex: 0 0 auto;
        flex-shrink: 0;
    }
    
    .mobile-user-section {
        display: none;
    }
    
    .logo-title {
        font-size: 20px;
        letter-spacing: 0.5px;
    }
    
    .logo-tagline {
        font-size: 10px; /* Increased by 1 point from 9px */
        padding: 2px 6px;
        font-weight: 700; /* Ensure bold on mobile too */
        color: #FFEB3B; /* Brighter yellow */
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Better readability */
    }
    
    .language-select {
        padding: 8px 28px 8px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .language-select:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-1px);
    }
    
    .desktop-wallet .header-wallet-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .desktop-wallet .header-wallet-link i {
        font-size: 16px;
    }
    
    .cart-icon-link {
        padding: 4px;
    }
    
    .cart-icon {
        width: 28px;
        height: 28px;
    }
    
    .cart-icon i {
        font-size: 18px;
    }
    
    .search-input {
        padding: 12px 18px;
        font-size: 14px;
        flex: 1;
        min-width: 0;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        flex-shrink: 0;
    }
    
    .search-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .login-btn {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .login-btn:hover {
        background: rgba(59, 130, 246, 0.3);
        border-color: rgba(59, 130, 246, 0.6);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    }
    
    .user-info {
        padding: 8px 14px;
        flex-shrink: 0;
    }
    
    .user-info:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-1px);
    }
    
    .user-info i {
        font-size: 22px;
    }
    
    /* Header user name on desktop */
    .main-header .user-name,
    .header-container .user-name {
        display: inline;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .search-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .language-select {
        padding: 10px 20px;
        padding-right: 42px;
    }
    
    .language-select:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-1px);
    }
    
    .desktop-wallet .header-wallet-link {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .desktop-wallet .header-wallet-link i {
        font-size: 18px;
    }
    
    .cart-icon-wrapper {
        order: 0;
    }
    
    .cart-icon-link {
        padding: 6px;
    }
    
    .cart-icon {
        width: 32px;
        height: 32px;
    }
    
    .cart-icon i {
        font-size: 20px;
    }
    
    /* Header user name on desktop */
    .main-header .user-name,
    .header-container .user-name {
        display: inline; /* Show name on larger screens */
    }
    
    .login-btn {
        padding: 12px 24px;
    }
    
    .login-btn:hover {
        background: rgba(59, 130, 246, 0.3);
        border-color: rgba(59, 130, 246, 0.6);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    }
    
    .user-info {
        padding: 10px 20px;
    }
    
    .user-info:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-1px);
    }
    
    .user-info i {
        font-size: 26px;
    }
    
    .back-btn {
        width: 44px;
        height: 44px;
    }
    
    .back-btn i {
        font-size: 20px;
    }
    
    .page-title h1 {
        font-size: 22px;
    }
    
    .header-spacer {
        width: 44px;
    }
    
    .modal-content {
        width: 90%;
        max-width: 480px;
    }
    
    .modal-banner {
        height: 160px;
    }
    
    .modal-header {
        padding: 24px 28px 20px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 36px 32px;
    }
    
    .step-icon {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }
    
    .step-title {
        font-size: 26px;
    }
    
    .step-description {
        font-size: 16px;
    }
    
    .mobile-input-wrapper {
        border-radius: 14px;
    }
    
    .otp-input {
        font-size: 36px;
        letter-spacing: 4px;
        min-height: 72px;
    }
    
    .otp-input::placeholder {
        letter-spacing: normal;
        font-weight: 400;
    }
    
    .btn-login {
        padding: 20px 28px;
        font-size: 18px;
        min-height: 60px;
    }
    
    .main-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0;
    }
    
    .container {
        padding: 40px;
        border-radius: var(--radius-lg);
    }
    
    .top-categories-scroll {
        padding: 14px 24px;
        gap: 10px;
    }
    
    .category-tab {
        min-width: 95px;
        padding: 12px 18px;
        border-radius: 14px;
    }
    
    .category-icon {
        width: 32px;
        height: 32px;
    }
    
    .category-label {
        font-size: 12px;
    }
    
    .category-tab.active {
        box-shadow: 0 6px 20px rgba(255, 184, 77, 0.3);
    }
    
    .banner-image {
        max-height: 400px;
    }
    
    .category-banner-slider {
        max-height: 400px;
    }
    
    .banner-slide img {
        max-height: 400px;
    }
    
    .slider-arrow {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .slider-arrow-prev {
        left: 20px;
    }
    
    .slider-arrow-next {
        right: 20px;
    }
    
    .banner-slider-dots {
        bottom: 16px;
        padding: 8px 16px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dot.active {
        width: 28px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
        padding: 20px;
    }
    
    .category-item-label {
        font-size: 12px;
        padding: 10px 4px 0;
    }
    
    .slider-item {
        width: 320px;
        height: 160px;
    }
    
    .section-heading {
        font-size: 20px;
        padding: 20px 24px;
    }
    
    .top-categories-scroll {
        padding: 12px 20px;
        gap: 8px;
    }
    
    .category-tab {
        min-width: 90px;
        padding: 10px 16px;
    }
    
    .category-icon {
        width: 20px;
        height: 20px;
    }
    
    .category-label {
        font-size: 12px;
    }
    
    .banner-image {
        max-height: 400px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
        padding: 20px;
    }
    
    .category-item-label {
        font-size: 12px;
        padding: 6px 4px 0;
        min-height: 28px;
    }
    
    .slider-item {
        width: 320px;
        height: 160px;
    }
    
    .section-heading {
        font-size: 20px;
        padding: 20px 24px;
    }
    
    .toast {
        bottom: 32px;
        right: 32px;
        left: auto;
        min-width: 320px;
        max-width: 400px;
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .form-input:focus {
        transform: translateY(-1px);
    }
}

/* ============================================
   PREMIUM ANIMATIONS & EFFECTS
   ============================================ */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--accent-color);
    color: var(--text-light);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: var(--checkout-primary-gold, #E1B14D);
    color: var(--checkout-dark-grey, #2F3133);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 184, 77, 0.4), 0 0 0 4px rgba(255, 184, 77, 0.1);
    z-index: 999;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    backdrop-filter: blur(10px);
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 184, 77, 0.6), 0 0 0 6px rgba(255, 184, 77, 0.15);
    background: #FFC966;
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 15px rgba(255, 184, 77, 0.4), 0 0 0 4px rgba(255, 184, 77, 0.1);
}

.scroll-to-top i {
    font-size: 20px;
    animation: bounceUp 2s ease-in-out infinite;
}

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.scroll-to-top:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
    }
    
    .scroll-to-top i {
        font-size: 16px;
    }
}

/* ============================================
   SIMPLE TOP LINE LOADER
   ============================================ */

.top-line-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.top-line-loader.show {
    opacity: 1;
    visibility: visible;
}

.top-loader-bar {
    height: 100%;
    width: 0%;
    background: var(--theme-gradient, linear-gradient(90deg, #FFB84D 0%, #FFC966 100%));
    box-shadow: 0 0 10px rgba(255, 184, 77, 0.6);
    position: relative;
    animation: topLoaderProgress 1.5s ease-in-out infinite;
}

.top-loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: topLoaderShine 1.2s ease-in-out infinite;
}

@keyframes topLoaderProgress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

@keyframes topLoaderShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


/* ============================================
   PRODUCT CARDS & LISTINGS
   ============================================ */

/* Product Listing Sections */
.product-listing-section {
    margin: 16px 0;
    padding: 0 8px;
}

.product-listing-section .section-heading {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 16px 20px 12px;
    letter-spacing: 0.5px;
}

/* Product Listing Grid (Vertical) */
.product-listing-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 0 8px;
}

/* Product Listing Horizontal (Scroll) */
.product-listing-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 0 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.product-listing-horizontal::-webkit-scrollbar {
    display: none;
}

.product-listing-horizontal {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Product Listing Inline (List) */
.product-listing-inline-section {
    margin: 16px 0;
    padding: 0 8px;
}

.product-listing-inline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Product Card (Grid Layout) */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    height: auto;
    min-height: 395px;
    display: flex;
    flex-direction: column;
}

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

.product-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    padding: 4px; /* Less padding for compact image */
}

.product-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px; /* Slight border radius for compact look */
}

.product-type-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    z-index: 2;
}

.product-type-indicator.veg i {
    color: var(--theme-color);
    font-size: 12px;
}

.product-type-indicator.non-veg i {
    color: #E42735;
    font-size: 10px;
}

.product-discount-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--theme-color);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

.product-card-info {
    padding: 6px 8px; /* Less padding */
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: space-between;
}

.product-card-name {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
}

.product-card-name:hover {
    color: var(--theme-color);
}

.product-card-subheading {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 3px;
    align-items: center;
}

.subheading-pill {
    display: inline-block;
    padding: 0 3px;
    background-color: rgba(0, 178, 87, 0.15);
    border-radius: 3px;
    font-size: 8px;
    color: #000;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subheading-color-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 0.5px solid #ddd;
    flex-shrink: 0;
}

.product-card-pricing {
    margin-top: 0;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.product-selling-price {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.product-original-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.product-points {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #ff9800;
    margin-top: 0;
}

.product-points i {
    font-size: 10px;
}

.product-card-action {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end; /* Position button at right */
    align-items: center; /* Vertically center buttons */
    min-height: 25px; /* Ensure consistent height */
}

.product-add-btn {
    width: auto; /* Less width - auto instead of 100% */
    min-width: 80px; /* Minimum width */
    max-width: 120px; /* Maximum width */
    height: 25px !important; /* Fixed height - force with !important */
    max-height: 25px !important; /* Maximum height limit */
    min-height: 25px !important; /* Minimum height to match */
    padding: 0 14px; /* Horizontal padding only */
    border: none;
    border-radius: 6px;
    background-color: var(--checkout-dark-grey, #2F3133) !important; /* Theme black/dark grey */
    color: var(--checkout-primary-gold, #E1B14D) !important; /* Theme gold text */
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex; /* Use inline-flex to prevent height issues */
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(47, 49, 51, 0.2);
    letter-spacing: 0.3px;
    margin-left: auto; /* Push to right */
    line-height: 1 !important; /* Prevent extra height from line-height */
    box-sizing: border-box; /* Include padding in height */
    overflow: hidden; /* Prevent content overflow */
    vertical-align: middle; /* Align with quantity control */
}

.product-add-btn span {
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.product-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(47, 49, 51, 0.3);
    background-color: var(--checkout-secondary-dark, #545759) !important;
    color: var(--checkout-primary-gold, #E1B14D) !important;
}

.product-add-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(47, 49, 51, 0.2);
}

.product-add-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.product-options-badge {
    background: rgba(255,255,255,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    margin-left: 4px;
}

.product-quantity-control {
    width: auto; /* Match add button width behavior */
    min-width: 80px;
    max-width: 120px;
    height: 25px !important; /* Match add button height - force with !important */
    max-height: 25px !important; /* Maximum height limit */
    min-height: 25px !important; /* Minimum height to match */
    border-radius: 6px;
    display: inline-flex; /* Use inline-flex to match add button */
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    background-color: #2F3133 !important; /* Theme dark grey - override inline style */
    margin-left: auto; /* Push to right like add button */
    box-sizing: border-box;
    line-height: 1 !important;
    overflow: hidden; /* Prevent content overflow */
    vertical-align: middle; /* Align with add button */
}

.qty-btn {
    width: 20px;
    height: 20px;
    max-height: 20px;
    border: none;
    background: transparent;
    color: var(--checkout-primary-gold, #E1B14D) !important; /* Theme gold color */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
}

.qty-btn:hover {
    background: rgba(255, 184, 77, 0.2); /* Gold hover */
    color: var(--checkout-primary-gold, #E1B14D) !important;
}

.qty-btn:active {
    background: rgba(255, 184, 77, 0.3);
}

.qty-btn i {
    font-size: 12px;
    color: inherit; /* Inherit gold color */
}

.qty-value {
    color: var(--checkout-primary-gold, #E1B14D) !important; /* Theme gold color */
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.product-notify-btn {
    width: 100%;
    height: 32px;
    border: 2px solid #E42735;
    border-radius: 8px;
    background: transparent;
    color: #E42735;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.product-notify-btn:hover {
    background: #E42735;
    color: #fff;
}

.product-notify-btn.notified {
    background: #E42735;
    color: #fff;
}

/* Product Card Inline (List Layout) */
.product-card-inline {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.product-card-inline:last-child {
    border-bottom: none;
}

.product-card-inline-image-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card-inline-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-inline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-inline-discount-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--theme-color);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    z-index: 2;
}

.product-card-inline-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card-inline-name {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-inline-name:hover {
    color: var(--theme-color);
}

.product-card-inline-subheading {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    align-items: center;
}

.subheading-pill-inline {
    display: inline-block;
    padding: 1px 4px;
    background-color: rgba(128, 128, 128, 0.15);
    border-radius: 4px;
    font-size: 11px;
    color: #000;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subheading-color-swatch-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.product-card-inline-pricing {
    margin-top: 4px;
}

.product-card-inline-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.product-add-btn-inline {
    min-width: 80px;
    height: 36px;
    border: none;
    border-radius: 24px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 14px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

.product-add-btn-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

.product-add-btn-inline:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.product-add-btn-inline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.product-options-badge-inline {
    background: rgba(255,255,255,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    margin-left: 4px;
}

.product-quantity-control-inline {
    min-width: 80px;
    height: 32px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.product-notify-btn-inline {
    min-width: 80px;
    height: 32px;
    border: 2px solid #E42735;
    border-radius: 24px;
    background: transparent;
    color: #E42735;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 12px;
    transition: all 0.2s;
}

.product-notify-btn-inline:hover {
    background: #E42735;
    color: #fff;
}

.product-notify-btn-inline.notified {
    background: #E42735;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-listing-section {
        padding: 0 4px;
    }
    
    .product-listing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 0 4px;
    }
    
    .product-card {
        height: auto;
        min-height: 280px;
        border-radius: 6px;
    }
    
    .product-card-image-wrapper {
        aspect-ratio: 1 / 1;
    }
    
    .product-card-info {
        padding: 6px;
        gap: 2px;
    }
    
    .product-card-subheading {
        margin-top: 2px;
        margin-bottom: 2px;
    }
    
    .product-card-pricing {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .product-price-row {
        margin-bottom: 0;
        gap: 6px;
    }
    
    .product-points {
        margin-top: 0;
    }
    
    .product-card-action {
        margin-top: 2px;
    }
    
    .product-listing-section .section-heading {
        font-size: 20px;
        margin: 12px 12px 8px;
    }
}

@media (max-width: 480px) {
    .product-listing-section {
        padding: 0 4px;
    }
    
    .product-listing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 0 4px;
    }
    
    .product-card {
        height: auto;
        min-height: 260px;
        border-radius: 6px;
    }
    
    .product-card-image-wrapper {
        aspect-ratio: 1 / 1;
    }
    
    .product-card-info {
        padding: 6px;
        gap: 2px;
    }
    
    .product-card-subheading {
        margin-top: 2px;
        margin-bottom: 2px;
    }
    
    .product-card-pricing {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .product-price-row {
        margin-bottom: 0;
        gap: 6px;
    }
    
    .product-points {
        margin-top: 0;
    }
    
    .product-card-action {
        margin-top: 2px;
    }
    
    .product-listing-section .section-heading {
        font-size: 18px;
        margin: 12px 12px 8px;
    }
    
    /* Login Modal Mobile Styles */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 16px;
        max-height: 95vh;
    }
    
    .login-step {
        padding: 32px 24px 24px;
    }
    
    .modern-icon-container {
        width: 80px;
        height: 80px;
    }
    
    .icon-padlock {
        width: 56px;
        height: 56px;
    }
    
    .icon-padlock i {
        font-size: 26px;
    }
    
    .icon-phone {
        width: 42px;
        height: 42px;
    }
    
    .icon-phone i {
        font-size: 18px;
    }
    
    .icon-phone-large {
        width: 56px;
        height: 56px;
    }
    
    .icon-phone-large i {
        font-size: 26px;
    }
    
    .icon-chat-bubble {
        width: 42px;
        height: 42px;
    }
    
    .step-title {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .step-description {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .modern-phone-input {
        border-radius: 50px;
    }
    
    .phone-country-code {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .phone-number-input {
        padding: 8px 14px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .otp-box {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .otp-boxes-container {
        gap: 6px;
    }
    
    .btn-login {
        padding: 12px 18px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .step-icon-wrapper {
        margin-bottom: 24px;
    }
}
