/* =====================================================
   HotelHandoff v2 - HungerStation Inspired Design
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors */
    --color-white: #FFFFFF;
    --color-bg: #F5F5F7;
    --color-bg-section: #FAFAFA;
    --color-text: #1A1A2E;
    --color-text-light: #6B7280;
    --color-primary: #E94560;
    --color-primary-hover: #D63850;
    --color-accent: #FF6B35;
    --color-yellow: #FFD93D;
    --color-success: #10B981;
    --color-border: #E5E7EB;
    
    /* Category Pastel Colors */
    --cat-pink: #FFE4E6;
    --cat-green: #D1FAE5;
    --cat-blue: #DBEAFE;
    --cat-purple: #EDE9FE;
    --cat-orange: #FFEDD5;
    --cat-yellow: #FEF3C7;
    --cat-mint: #D1FAE5;
    --cat-rose: #FCE7F3;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 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);
    
    /* Container */
    --container-max: 1200px;
    --header-height: 70px;
    --bottom-nav-height: 70px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--spacing-xl);
}

.header-logo {
    display: flex;
    align-items: center;
    min-width: 140px;
}

.header-logo img {
    height: 36px;
    width: auto;
    transition: transform 0.2s ease;
}

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

.header-search {
    flex: 1;
    max-width: 600px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    background: var(--color-bg);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
    transform: scale(1.01);
}

.search-input::placeholder {
    color: var(--color-text-light);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.search-input:focus + .search-icon,
.search-input-wrapper:focus-within .search-icon {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.header-action-btn {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--color-text);
    transition: all 0.2s ease;
    background: transparent;
}

.header-action-btn:hover {
    background: var(--color-bg);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.header-action-btn i {
    font-size: 1.3rem;
}

.header-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Header Divider */
.header-actions::before {
    content: '';
    width: 1px;
    height: 24px;
    background: var(--color-border);
    margin-right: var(--spacing-sm);
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
    padding-bottom: calc(var(--bottom-nav-height) + var(--spacing-xl));
    min-height: 100vh;
}

/* Section */
.section {
    margin-bottom: var(--spacing-xl);
}

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

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
}

.section-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.section-link:hover {
    text-decoration: underline;
}

/* =====================================================
   HERO BANNER
   ===================================================== */
.hero-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.hero-slide {
    position: relative;
    display: none;
    min-height: 200px;
    background: linear-gradient(135deg, #FFE4E6 0%, #FECDD3 100%);
    padding: var(--spacing-xl);
}

.hero-slide.active {
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.25rem 0.75rem;
    background: var(--color-primary);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    background: var(--color-yellow);
    color: var(--color-text);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-image {
    position: absolute;
    right: var(--spacing-xl);
    bottom: 0;
    max-width: 40%;
    max-height: 90%;
    object-fit: contain;
}

.hero-dots {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-dot.active {
    background: var(--color-text);
    width: 24px;
}

/* =====================================================
   CATEGORIES
   ===================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:active {
    transform: translateY(-4px) scale(1);
}

/* Pastel backgrounds for categories */
.category-card[data-color="pink"] { background: linear-gradient(135deg, #FFE4E6 0%, #FECDD3 100%); }
.category-card[data-color="green"] { background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%); }
.category-card[data-color="blue"] { background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); }
.category-card[data-color="purple"] { background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%); }
.category-card[data-color="orange"] { background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 100%); }
.category-card[data-color="yellow"] { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); }
.category-card[data-color="mint"] { background: linear-gradient(135deg, #D1FAE5 0%, #6EE7B7 100%); }
.category-card[data-color="rose"] { background: linear-gradient(135deg, #FCE7F3 0%, #FBCFE8 100%); }

.category-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.category-card:hover .category-image {
    transform: scale(1.15) rotate(-3deg);
}

.category-badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    background: var(--color-yellow);
    color: var(--color-text);
    font-size: var(--font-size-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-xs);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    transition: color 0.2s ease;
}

.category-card:hover .category-name {
    color: var(--color-primary);
}

/* =====================================================
   PROMO BANNER
   ===================================================== */
.promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 2px solid #6EE7B7;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
    border-color: #10B981;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 1;
}

.promo-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

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

.promo-text h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.promo-text p {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.promo-action {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    background: var(--color-success);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    z-index: 1;
}

.promo-action:hover {
    background: #059669;
    transform: translateX(4px);
}

.promo-action i {
    transition: transform 0.2s ease;
}

.promo-action:hover i {
    transform: translateX(4px);
}

/* =====================================================
   DAILY OFFERS - Premium Overlay Design
   ===================================================== */
.offers-section {
    position: relative;
}

.offers-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.offers-scroll::-webkit-scrollbar {
    display: none;
}

/* Offer Card - Full Image with Overlay */
.offer-card {
    flex: 0 0 150px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    text-decoration: none;
}

.offer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    z-index: 1;
    transition: opacity 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.offer-card:hover::before {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.offer-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.offer-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
}

.offer-placeholder i {
    font-size: 2.5rem;
    color: white;
    opacity: 0.4;
}

/* Discount Badge - Top Right */
.offer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: var(--color-primary);
    color: white;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.4);
    letter-spacing: -0.5px;
}

/* Content Overlay */
.offer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    z-index: 2;
}

.offer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.offer-name {
    color: white;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.offer-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-current {
    font-size: 16px;
    font-weight: 800;
    color: #4ADE80;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.offer-old {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

/* Empty State */
.offer-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 32px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 16px;
    color: #B45309;
}

.offer-empty i {
    font-size: 1.25rem;
}

.offer-empty span {
    font-size: 14px;
    font-weight: 600;
}

/* Countdown Timer */
.countdown-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, #D63850 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.countdown-icon {
    font-size: 1.25rem;
    color: white;
    animation: shake 1s infinite;
}

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

.countdown-timer {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    min-width: 40px;
}

.countdown-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: white;
    line-height: 1;
}

.countdown-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
}

.countdown-separator {
    color: white;
    font-weight: 700;
    font-size: var(--font-size-lg);
}

/* =====================================================
   PRODUCTS SECTION
   ===================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    background: #FAFAFA;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Discount Badge - Minimal */
.product-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    background: var(--color-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: -0.3px;
}

/* Favorite Button - Minimal */
.product-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: #CBD5E1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.product-favorite-btn:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.product-favorite-btn.active {
    color: var(--color-primary);
    background: #FFF1F2;
}

.product-favorite-btn.active i {
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    50% { transform: scale(1.2); }
}

/* Product Info - Clean & Minimal */
.product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: -0.2px;
}

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

/* Price Section - Modern */
.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.product-price-current {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.product-price-old {
    font-size: 13px;
    color: #9CA3AF;
    text-decoration: line-through;
    font-weight: 400;
}

/* Action Buttons - Sleek & Modern */
.product-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    margin-top: 4px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.product-action-btn i {
    font-size: 13px;
}

/* Add to Cart Button */
.product-action-btn.add-btn {
    background: var(--color-primary);
    color: white;
}

.product-action-btn.add-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.product-action-btn.add-btn:active {
    transform: translateY(0) scale(0.98);
}

/* View Details Button */
.product-action-btn.view-btn {
    background: #F1F5F9;
    color: #475569;
}

.product-action-btn.view-btn:hover {
    background: #E2E8F0;
}

/* Out of Stock Button */
.product-action-btn.out-of-stock {
    background: #F9FAFB;
    color: #9CA3AF;
    cursor: not-allowed;
}

/* Quick Add Button (Icon Only - Alternative) */
.product-add-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.product-add-btn:hover {
    background: var(--color-primary-hover);
    transform: scale(1.05);
}

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

/* =====================================================
   BOTTOM NAVIGATION (Mobile)
   ===================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: var(--spacing-sm);
    color: var(--color-text-light);
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-item i {
    font-size: 1.25rem;
}

.nav-item span {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.nav-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--color-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   RESPONSIVE - MOBILE
   ===================================================== */
@media (max-width: 767px) {
    :root {
        --header-height: 60px;
    }
    
    .header-search {
        display: none;
    }
    
    .mobile-search {
        display: block;
        padding: var(--spacing-md);
        padding-top: 0;
    }
    
    .hero-slide {
        min-height: 180px;
        padding: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: var(--font-size-xl);
    }
    
    .hero-image {
        max-width: 45%;
        right: var(--spacing-md);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .category-card {
        padding: var(--spacing-md);
    }
    
    .category-image {
        width: 60px;
        height: 60px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .section-title {
        font-size: var(--font-size-lg);
    }
}

/* Desktop - Hide Bottom Nav */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
    
    .mobile-search {
        display: none;
    }
    
    .main-content {
        padding-bottom: var(--spacing-2xl);
    }
    
    .hero-slide {
        min-height: 280px;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
    border-radius: var(--radius-lg);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

/* Stagger Animation for Grid Items */
.stagger-item {
    opacity: 0;
    animation: staggerFadeIn 0.4s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.4s; }

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

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

/* Selection Color */
::selection {
    background: var(--color-primary);
    color: white;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Hover Lift */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Toast Notification Enhanced */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: toastIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.toast.success {
    background: var(--color-success);
}

.toast.error {
    background: var(--color-primary);
}

@keyframes toastIn {
    from { 
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to { 
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from { 
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to { 
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--color-border);
    margin-bottom: var(--spacing-lg);
}

.empty-state-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.empty-state-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}
