/*
* QUICKBAZAAR INDIA - MAIN STYLESHEET
* 🇮🇳 Premium Grocery Delivery Platform
* ⚡ 10-Minute Delivery | Made in India
*/

/* --------------------------------------------- */
/* ROOT VARIABLES - TRICOLOR THEME               */
/* --------------------------------------------- */

:root {
    /* Primary Colors - Indian Flag */
    --saffron: #FF9933;
    --saffron-dark: #E68A00;
    --saffron-light: #FFF4E6;
    --green: #138808;
    --green-dark: #0E6B00;
    --green-light: #E8F5E9;
    --white: #FFFFFF;
    --blue: #000080;
    
    /* Secondary Colors */
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    
    /* Neutral Colors */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 32px;
    
    /* Typography */
    --font-xs: 10px;
    --font-sm: 12px;
    --font-md: 14px;
    --font-lg: 16px;
    --font-xl: 18px;
    --font-2xl: 20px;
    --font-3xl: 24px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Layout */
    --header-height: 70px;
    --bottom-nav-height: 70px;
    --container-max-width: 480px;
}

/* --------------------------------------------- */
/* RESET & BASE STYLES                          */
/* --------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.app-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    position: relative;
    box-shadow: var(--shadow-xl);
}

/* --------------------------------------------- */
/* LOADING SCREEN                               */
/* --------------------------------------------- */

.loading-screen {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-max-width);
    height: 100%;
    background: linear-gradient(145deg, var(--saffron-light), var(--white));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    padding: var(--space-2xl);
}

.loading-logo {
    margin-bottom: var(--space-2xl);
}

.loading-logo h2 {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--gray-800);
}

.loading-logo span {
    color: var(--green);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--saffron-light);
    border-top: 4px solid var(--saffron);
    border-right: 4px solid var(--green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: var(--space-2xl) auto;
}

.loading-tagline {
    color: var(--green);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.loading-location {
    color: var(--gray-500);
    font-size: var(--font-sm);
}

/* --------------------------------------------- */
/* DEMO BANNER                                  */
/* --------------------------------------------- */

.demo-banner {
    background: linear-gradient(90deg, var(--saffron), var(--green));
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 101;
    animation: gradientShift 3s infinite alternate;
}

.demo-banner i {
    cursor: pointer;
}

/* --------------------------------------------- */
/* LOCATION HEADER                               */
/* --------------------------------------------- */

.location-header {
    background: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 40px;
    z-index: 100;
}

.location-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-left {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex: 1;
}

.location-left i {
    color: var(--saffron);
    font-size: var(--font-lg);
}

.location-details {
    flex: 1;
}

.delivery-label {
    font-size: var(--font-xs);
    color: var(--gray-500);
    display: block;
}

.delivery-time {
    color: var(--green);
    font-weight: 600;
}

.address-selector {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 500;
}

.address-selector span {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.address-selector i {
    font-size: var(--font-xs);
    color: var(--gray-400);
}

.pincode-badge {
    background: var(--gray-100);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 10px;
    color: var(--gray-600);
    display: inline-block;
    margin-top: 2px;
}

.location-right {
    display: flex;
    gap: var(--space-md);
}

.icon-btn {
    background: none;
    border: none;
    font-size: var(--font-lg);
    color: var(--gray-600);
    position: relative;
    cursor: pointer;
    padding: var(--space-xs);
    transition: color 0.2s;
}

.icon-btn:hover {
    color: var(--saffron);
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--saffron);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}

/* --------------------------------------------- */
/* SEARCH BAR                                    */
/* --------------------------------------------- */

.search-section {
    background: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 110px;
    z-index: 99;
}

.search-container {
    display: flex;
    gap: var(--space-sm);
}

.search-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 0 var(--space-md);
    transition: all 0.2s;
}

.search-wrapper:focus-within {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--saffron);
}

.search-wrapper i {
    color: var(--gray-400);
}

.search-wrapper input {
    flex: 1;
    padding: var(--space-md) var(--space-sm);
    border: none;
    background: transparent;
    font-size: var(--font-sm);
    outline: none;
}

.search-wrapper input::placeholder {
    color: var(--gray-400);
}

.voice-search {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: var(--space-sm);
    transition: color 0.2s;
}

.voice-search:hover {
    color: var(--saffron);
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0 var(--space-lg);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--gray-100);
    border-color: var(--saffron);
}

/* --------------------------------------------- */
/* HERO BANNER                                  */
/* --------------------------------------------- */

.hero-banner {
    background: linear-gradient(135deg, var(--saffron-light), var(--green-light));
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.hero-banner img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transform: rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.banner-content h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.banner-content p {
    color: var(--gray-600);
    font-size: var(--font-sm);
    margin-bottom: var(--space-md);
}

.banner-btn {
    background: var(--saffron);
    color: var(--white);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-sm);
    cursor: pointer;
    transition: transform 0.2s;
}

.banner-btn:hover {
    transform: scale(1.05);
}

/* --------------------------------------------- */
/* CATEGORIES SECTION                            */
/* --------------------------------------------- */

.categories-section {
    margin-bottom: var(--space-2xl);
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.categories-header h3 {
    font-size: var(--font-lg);
    font-weight: 600;
}

.categories-header a {
    color: var(--saffron);
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: 500;
}

.categories-slider {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-xs);
    -webkit-overflow-scrolling: touch;
}

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

.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    cursor: pointer;
    transition: transform 0.2s;
}

.category-pill:hover {
    transform: translateY(-2px);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xs);
    transition: all 0.2s;
}

.category-pill span {
    font-size: var(--font-xs);
    font-weight: 500;
    text-align: center;
    color: var(--gray-700);
}

.category-pill small {
    font-size: 9px;
    color: var(--gray-500);
}

/* --------------------------------------------- */
/* FLASH SALE                                    */
/* --------------------------------------------- */

.flash-sale {
    background: linear-gradient(145deg, #FFF5E6, #FFE4D6);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
    border: 1px solid rgba(255, 153, 51, 0.2);
    animation: pulse 2s infinite;
}

.flash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.flash-title {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.flash-title h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--danger);
}

.timer-container {
    background: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.timer {
    background: var(--gray-900);
    color: var(--white);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.flash-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

/* --------------------------------------------- */
/* BRAND STORE                                   */
/* --------------------------------------------- */

.brand-store {
    margin-bottom: var(--space-2xl);
}

.brand-store h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.brand-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.brand-card:hover {
    border-color: var(--saffron);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.brand-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-xs);
}

.brand-card span {
    font-size: var(--font-xs);
    font-weight: 600;
    display: block;
}

.brand-card small {
    font-size: 9px;
    color: var(--green);
    font-weight: 500;
}

/* --------------------------------------------- */
/* PRODUCT SECTIONS                              */
/* --------------------------------------------- */

.product-section {
    margin-bottom: var(--space-2xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.section-header h3 {
    font-size: var(--font-lg);
    font-weight: 600;
}

.section-subtitle {
    font-size: var(--font-xs);
    color: var(--gray-500);
}

.section-header a {
    color: var(--saffron);
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

/* Product Card */
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: var(--saffron);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    margin-bottom: var(--space-sm);
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.2s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    background: var(--danger);
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    padding: 2px var(--space-sm);
    border-radius: var(--radius-full);
}

.product-wishlist {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    background: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    z-index: 2;
}

.product-wishlist:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.product-wishlist.active {
    color: var(--danger);
}

.product-info {
    margin-bottom: var(--space-sm);
}

.product-brand {
    font-size: 10px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-weight {
    font-size: 10px;
    color: var(--gray-500);
    margin-bottom: var(--space-xs);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.rating-stars {
    color: #FFC107;
    font-size: 10px;
}

.rating-count {
    font-size: 10px;
    color: var(--gray-500);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.current-price {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--gray-900);
}

.original-price {
    font-size: var(--font-xs);
    color: var(--gray-400);
    text-decoration: line-through;
}

.discount {
    font-size: 10px;
    color: var(--green);
    font-weight: 600;
}

.product-add-btn {
    width: 100%;
    background: var(--green-light);
    border: 1px solid var(--green);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    color: var(--green);
    font-weight: 600;
    font-size: var(--font-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    cursor: pointer;
    transition: all 0.2s;
}

.product-add-btn:hover {
    background: var(--green);
    color: var(--white);
}

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

/* --------------------------------------------- */
/* BOTTOM NAVIGATION                             */
/* --------------------------------------------- */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-max-width);
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    padding: var(--space-xs) var(--space-sm);
    transition: color 0.2s;
}

.nav-item i {
    font-size: var(--font-lg);
    color: var(--gray-500);
    transition: color 0.2s;
}

.nav-item span {
    font-size: 10px;
    color: var(--gray-500);
    transition: color 0.2s;
}

.nav-item.active i,
.nav-item.active span {
    color: var(--saffron);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: 4px;
    background: var(--saffron);
    color: var(--white);
    font-size: 9px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------- */
/* CART DRAWER                                   */
/* --------------------------------------------- */

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: var(--container-max-width);
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
    box-shadow: var(--shadow-xl);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.cart-header h2 {
    font-size: var(--font-xl);
    font-weight: 600;
}

.cart-header i {
    font-size: var(--font-lg);
    cursor: pointer;
    color: var(--gray-500);
    padding: var(--space-sm);
    border-radius: 50%;
    transition: all 0.2s;
}

.cart-header i:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.empty-cart {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.empty-cart i {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
}

.empty-cart h3 {
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.empty-cart p {
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    animation: fadeIn 0.3s ease;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

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

.cart-item-brand {
    font-size: 10px;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.cart-item-name {
    font-size: var(--font-sm);
    font-weight: 500;
    margin-bottom: 2px;
}

.cart-item-weight {
    font-size: 10px;
    color: var(--gray-500);
    margin-bottom: var(--space-xs);
}

.cart-item-price {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: var(--gray-100);
    border-color: var(--saffron);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-value {
    font-size: var(--font-sm);
    font-weight: 500;
    min-width: 30px;
    text-align: center;
}

.cart-bill {
    padding: var(--space-lg);
    border-top: 1px solid var(--gray-200);
}

.bill-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: var(--font-sm);
    color: var(--gray-600);
}

.bill-row.total {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--gray-900);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px dashed var(--gray-300);
}

.btn-checkout {
    background: var(--saffron);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
    font-size: var(--font-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-checkout:hover {
    background: var(--saffron-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------- */
/* MODAL STYLES                                 */
/* --------------------------------------------- */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-max-width);
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 400px;
    border-radius: var(--radius-xl);
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.modal-header h2 {
    font-size: var(--font-lg);
    font-weight: 600;
}

.modal-header i {
    font-size: var(--font-lg);
    color: var(--gray-500);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-header i:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: var(--space-lg);
}

/* Login Modal */
.login-illustration {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    font-size: var(--font-sm);
}

.phone-input {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    transition: all 0.2s;
}

.phone-input:focus-within {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.country-code {
    padding-right: var(--space-sm);
    border-right: 1px solid var(--gray-300);
    font-weight: 500;
    color: var(--gray-600);
}

.phone-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--font-md);
}

.btn-primary {
    width: 100%;
    background: var(--saffron);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    font-size: var(--font-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--saffron-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    width: 100%;
    background: var(--white);
    color: var(--saffron);
    border: 1px solid var(--saffron);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    font-size: var(--font-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--saffron-light);
}

.terms-text {
    font-size: var(--font-xs);
    color: var(--gray-500);
    text-align: center;
    margin-top: var(--space-lg);
}

/* OTP Input */
.otp-inputs {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin: var(--space-xl) 0;
}

.otp-box {
    width: 45px;
    height: 55px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-2xl);
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: all 0.2s;
}

.otp-box:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.btn-link {
    background: none;
    border: none;
    color: var(--saffron);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link:disabled {
    color: var(--gray-400);
    cursor: not-allowed;
    text-decoration: none;
}

/* Address Card */
.address-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.address-card:hover {
    border-color: var(--saffron);
    background: var(--saffron-light);
}

.address-card i {
    font-size: var(--font-lg);
    color: var(--gray-500);
}

/* Checkout */
.checkout-section {
    margin-bottom: var(--space-xl);
}

.checkout-section h4 {
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.order-summary-items {
    margin-bottom: var(--space-md);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: var(--saffron);
    background: var(--saffron-light);
}

.payment-option input[type="radio"] {
    accent-color: var(--saffron);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.payment-option i {
    font-size: var(--font-md);
    color: var(--gray-600);
    width: 24px;
}

.payment-option span {
    flex: 1;
    font-size: var(--font-sm);
}

.payment-badge {
    font-size: 10px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-full);
}

.coupon-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--gray-100);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    margin-right: var(--space-xs);
    margin-bottom: var(--space-xs);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.coupon-chip:hover {
    background: var(--saffron-light);
    border-color: var(--saffron);
}

.btn-place-order {
    width: 100%;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    font-size: var(--font-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: var(--space-lg);
}

.btn-place-order:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Order Confirmation */
.confirmation-content {
    text-align: center;
    padding: var(--space-2xl);
}

.confirmation-icon i {
    font-size: 80px;
    color: var(--success);
    margin-bottom: var(--space-lg);
    animation: scaleIn 0.5s ease;
}

.order-details {
    background: var(--gray-100);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
    text-align: left;
}

.order-details p {
    margin-bottom: var(--space-sm);
    font-size: var(--font-sm);
}

.delivery-partner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--gray-100);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.delivery-partner img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--saffron);
}

.partner-stats {
    display: flex;
    gap: var(--space-md);
    margin-top: 4px;
}

.partner-stats span {
    font-size: var(--font-xs);
    color: var(--gray-600);
}

.btn-call {
    margin-left: auto;
    background: var(--green);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-call:hover {
    transform: scale(1.1);
    background: var(--green-dark);
}

.btn-track {
    width: 100%;
    background: var(--saffron);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-continue {
    width: 100%;
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-continue:hover {
    background: var(--gray-100);
}

/* Tracking */
.tracking-status {
    margin-bottom: var(--space-xl);
}

.status-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
}

.status-item:not(:last-child):before {
    content: '';
    position: absolute;
    left: 8px;
    top: 24px;
    width: 2px;
    height: calc(100% + 8px);
    background: var(--gray-300);
}

.status-item.completed:before {
    background: var(--success);
}

.status-item i {
    width: 18px;
    height: 18px;
    font-size: 18px;
    z-index: 1;
    background: var(--white);
}

.status-item.completed i {
    color: var(--success);
}

.status-item.active i {
    color: var(--saffron);
}

.status-item.pending i {
    color: var(--gray-400);
}

.status-item div p {
    font-size: var(--font-sm);
    font-weight: 500;
    margin-bottom: 2px;
}

.status-item div span {
    font-size: var(--font-xs);
    color: var(--gray-500);
}

.delivery-map img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.delivery-partner-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

/* Floating Coupon */
.coupon-float {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: var(--white);
    border: 2px solid var(--saffron);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    animation: slideInUp 0.5s ease;
}

.coupon-float i:first-child {
    color: var(--saffron);
    font-size: var(--font-md);
}

.coupon-float span {
    flex: 1;
    font-size: var(--font-xs);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coupon-float button {
    background: var(--saffron);
    color: var(--white);
    border: none;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.coupon-float button:hover {
    background: var(--saffron-dark);
}

.close-coupon {
    color: var(--gray-400);
    cursor: pointer;
    padding: var(--space-xs);
}

.close-coupon:hover {
    color: var(--gray-600);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}
