/* ===================================
   CAKE FOREVER - MOBILE-FIRST DESIGN
   Modern, Unique, Ultimate SEO-Ready
   =================================== */

/* ===================================
   CSS VARIABLES - NEW COLOR SCHEME
   =================================== */
:root {
    /* Primary Colors - Warm & Appetizing */
    --primary: #FF6B6B;
    --primary-dark: #E85D5D;
    --primary-light: #FF8E8E;

    /* Secondary Colors - Sweet & Delightful */
    --secondary: #FFE66D;
    --secondary-dark: #FFDB4D;
    --accent: #FF9A76;

    /* Neutral Colors */
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --gray-100: #F7F7F7;
    --gray-200: #E8E8E8;
    --gray-300: #D1D1D1;
    --gray-600: #757575;
    --gray-800: #424242;
    --dark: #2D2D2D;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B6B 0%, #FF9A76 100%);
    --gradient-secondary: linear-gradient(135deg, #FFE66D 0%, #FFDB4D 100%);
    --gradient-hero: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #FFF8F0 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(255, 107, 107, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 107, 107, 0.15);
    --shadow-lg: 0 8px 24px rgba(255, 107, 107, 0.2);
    --shadow-xl: 0 12px 40px rgba(255, 107, 107, 0.25);

    /* Spacing - Mobile First */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

ul, ol {
    list-style: none;
}

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

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

/* ===================================
   CONTAINER & LAYOUT
   =================================== */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   NAVIGATION - MOBILE FIRST
   =================================== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-image {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: var(--spacing-xs);
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--spacing-lg);
    transform: translateY(-120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 65px);
    overflow-y: auto;
}

.nav-menu.active {
    transform: translateY(0);
}

.nav-menu li {
    margin-bottom: var(--spacing-sm);
}

.nav-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateX(8px);
}

/* ===================================
   HERO SECTION - MOBILE OPTIMIZED
   =================================== */
.hero {
    background: linear-gradient(135deg, #FF5C8A 0%, #FF8AAD 50%, #FFC1D6 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.15"/></svg>');
    opacity: 0.4;
    animation: float 20s infinite linear;
}

.hero::after {
    content: '✨';
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    animation: sparkle 4s ease-in-out infinite;
    top: 20%;
    left: 10%;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.2; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.6; transform: scale(1.2) rotate(180deg); }
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(255, 255, 255, 0.3);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.hero-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-emoji {
    font-size: 1.2rem;
}

.hero-visual {
    margin-top: var(--spacing-lg);
}

.cake-emoji-large {
    font-size: 8rem;
    animation: bounce 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(255, 92, 138, 0.4));
}

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

/* ===================================
   BUTTONS - MOBILE OPTIMIZED
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: none;
    cursor: pointer;
    min-height: 48px;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

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

.btn-success {
    background: linear-gradient(135deg, #00C853, #00E676);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-hero {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
}

.btn-large {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* ===================================
   DELIVERY BANNER
   =================================== */
.delivery-banner {
    background: var(--primary);
    padding: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

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

.banner-icon {
    font-size: 1.2rem;
}

.banner-divider {
    opacity: 0.6;
}

/* ===================================
   SECTIONS - MOBILE FIRST
   =================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF5C8A 0%, #FF8AAD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: '✨';
    position: absolute;
    font-size: 1.5rem;
    margin-left: 0.5rem;
    opacity: 0.6;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-section {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 247, 242, 0.95) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(255, 92, 138, 0.12);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 193, 214, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 214, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 92, 138, 0.2);
    border-color: rgba(255, 92, 138, 0.5);
}

.feature-icon-wrapper {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.feature-icon {
    font-size: 3.5rem;
    display: inline-block;
    animation: floatIcon 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 15px rgba(255, 92, 138, 0.3));
}

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

.feature-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   PRODUCTS SECTION & GRID
   =================================== */
.popular-section,
.products-section {
    background: var(--cream);
}

/* Filter and Search Section */
.filter-search-container {
    margin-bottom: var(--spacing-xl);
}

.search-box {
    margin-bottom: var(--spacing-md);
}

.search-box input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 92, 138, 0.1);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.filter-btn {
    padding: 0.6rem 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--cream);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #FFE6E6 0%, #FFF8F0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}

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

.offer-badge {
    position: absolute;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.category-badge {
    position: absolute;
    top: var(--spacing-xs);
    left: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    border: 1px solid var(--primary);
}

.product-info {
    padding: 0.6rem;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.product-description {
    color: var(--gray-600);
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.price-original {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}

.price-discount {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-decoration: line-through;
}

.offer-timer {
    color: var(--primary);
    font-size: 0.6rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Add to Cart Button - Mobile Compact */
.product-card .btn-block {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    min-height: 36px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-height: 24px;
    min-width: 24px;
}

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

.qty-value {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 25px;
    text-align: center;
}

.no-products {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--gray-600);
}

.no-products-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
}

/* ===================================
   TRUST SECTION
   =================================== */
.trust-section {
    background: linear-gradient(135deg, rgba(255, 247, 242, 0.5) 0%, rgba(255, 193, 214, 0.2) 100%);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.trust-item,
.trust-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F0 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px rgba(255, 92, 138, 0.1);
    text-align: center;
    border: 2px solid rgba(255, 193, 214, 0.3);
    transition: all 0.3s ease;
}

.trust-item:hover,
.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 92, 138, 0.15);
    border-color: rgba(255, 92, 138, 0.4);
}

.trust-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF5C8A 0%, #FF8AAD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 10px rgba(255, 92, 138, 0.2);
}

.trust-label {
    color: var(--gray-600);
    font-weight: 600;
}

.trust-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.trust-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

.trust-card-text {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    background: linear-gradient(135deg, #FF5C8A 0%, #FF8AAD 50%, #FFC1D6 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '🎂';
    position: absolute;
    font-size: 15rem;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 30s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

/* ===================================
   PAGE HEADER
   =================================== */
.page-header {
    background: var(--gradient-hero);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    color: var(--white);
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-header-content h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.page-header-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: var(--spacing-md);
}

.page-header-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-header-emoji {
    font-size: 4rem;
    margin-top: var(--spacing-md);
}

/* ===================================
   STORY & VALUES SECTIONS
   =================================== */
.story-section {
    background: var(--white);
}

.story-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.story-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.story-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.story-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.story-text {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.stats-section {
    background: var(--gradient-primary);
    padding: var(--spacing-xl) var(--spacing-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1.05rem;
}

.values-section {
    background: var(--cream);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.value-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.value-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

.value-text {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===================================
   DELIVERY INFO
   =================================== */
.delivery-info-section {
    background: var(--white);
}

.delivery-info-card {
    background: var(--gradient-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary);
}

.delivery-info-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.delivery-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.delivery-detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 107, 107, 0.05);
    border-radius: var(--radius-md);
}

.detail-icon {
    font-size: 1.5rem;
}

/* ===================================
   FOOTER - MOBILE OPTIMIZED
   =================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-main {
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    color: var(--gray-300);
    font-size: 0.95rem;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-section a {
    color: var(--gray-300);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-300);
    font-size: 0.9rem;
}

/* ===================================
   MODALS - MOBILE OPTIMIZED
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    padding: var(--spacing-md);
    overflow-y: auto;
}

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

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s ease;
}

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

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

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
}

.close-modal {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
    min-width: 44px;
}

.close-modal:hover {
    background: var(--primary);
    color: var(--white);
}

.modal-body {
    padding: var(--spacing-md);
}

.modal-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
}

/* ===================================
   CART
   =================================== */
.cart-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--cream);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-name {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
    font-size: 1.05rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

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

.cart-item-actions button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
}

.cart-item-remove {
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.cart-summary {
    background: var(--cream);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.cart-summary-row.total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-top: 2px solid var(--primary);
}

.empty-cart {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--gray-600);
}

/* ===================================
   FORMS - MOBILE OPTIMIZED
   =================================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    min-height: 48px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.checkout-modal-content {
    max-width: 600px;
}

.checkout-section {
    background: var(--cream);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.section-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary);
}

.distance-display {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.btn-location {
    background: var(--secondary);
    color: var(--dark);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn-location:hover {
    background: var(--secondary-dark);
}

.checkout-summary {
    background: var(--white);
    border: 2px solid var(--primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.checkout-summary h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.payment-options {
    margin-top: var(--spacing-md);
}

.payment-divider {
    text-align: center;
    margin: var(--spacing-md) 0;
    position: relative;
}

.payment-divider::before,
.payment-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--gray-300);
}

.payment-divider::before {
    left: 0;
}

.payment-divider::after {
    right: 0;
}

.payment-divider span {
    background: var(--white);
    padding: 0 var(--spacing-md);
    color: var(--gray-600);
    font-weight: 600;
}

/* ===================================
   ORDER TRACKING
   =================================== */
.order-tracking-header {
    background: var(--gradient-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.order-id {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
}

.order-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.tracking-timeline {
    padding: var(--spacing-md) 0;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50px;
    width: 2px;
    height: calc(100% + var(--spacing-lg));
    background: var(--gray-200);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 3px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-item.active .timeline-icon {
    background: var(--gradient-primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
}

.timeline-content {
    flex: 1;
    background: var(--cream);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.timeline-item.active .timeline-content {
    background: var(--white);
    border: 2px solid var(--primary);
}

.timeline-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
    font-size: 1.05rem;
}

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

.timeline-time {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.order-details-section {
    background: var(--cream);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
}

.order-details-section h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-200);
}

.order-item:last-child {
    border-bottom: none;
}

.download-receipt-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 700;
    margin-top: var(--spacing-md);
    transition: all 0.3s ease;
}

.download-receipt-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   FLOATING BUTTONS - MOBILE OPTIMIZED
   =================================== */
.floating-cart-btn {
    position: fixed;
    bottom: 80px;
    right: var(--spacing-md);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.cart-icon {
    font-size: 1.8rem;
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white);
}

.floating-track-btn {
    position: fixed;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    transition: all 0.3s ease;
}

.floating-track-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.track-icon {
    font-size: 1.3rem;
}

.floating-console-btn {
    position: fixed;
    bottom: 80px;
    left: var(--spacing-md);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    box-shadow: var(--shadow-md);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.console-icon {
    font-size: 1.5rem;
}

/* ===================================
   CONSOLE MODAL
   =================================== */
.console-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2500;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.console-content {
    background: #1e1e1e;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.console-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: var(--white);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.console-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

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

.btn-console-clear {
    background: #e74c3c;
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

.close-console {
    background: transparent;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    min-height: 44px;
    min-width: 44px;
}

.console-body {
    background: #1e1e1e;
    color: #e0e0e0;
    padding: var(--spacing-md);
    overflow-y: auto;
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.console-log {
    padding: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    border-left: 3px solid transparent;
    word-wrap: break-word;
}

.console-log.welcome {
    color: #888;
    border-left-color: #888;
}

.console-log.info {
    color: #3498db;
    border-left-color: #3498db;
}

.console-log.success {
    color: #2ecc71;
    border-left-color: #2ecc71;
}

.console-log.warning {
    color: #f39c12;
    border-left-color: #f39c12;
}

.console-log.error {
    color: #e74c3c;
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* ===================================
   ADMIN STYLES (Keep existing functionality)
   =================================== */
.admin-body {
    background: var(--cream);
}

.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: var(--gradient-hero);
}

.admin-login-box {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
}

.admin-logo {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.admin-logo h1 {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-message {
    color: #e74c3c;
    background: #ffeaea;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: none;
}

.error-message.active {
    display: block;
}

.admin-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
}

.admin-nav h2 {
    font-size: 1.5rem;
    color: var(--primary);
}

.admin-container {
    padding: 0 var(--spacing-md) var(--spacing-lg);
}

.admin-section {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

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

.section-header h3 {
    font-size: 1.3rem;
    color: var(--dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--gradient-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.stat-icon {
    font-size: 3rem;
}

.stat-info h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 800;
}

.stat-info p {
    color: var(--gray-600);
    font-weight: 600;
}

.orders-table-container {
    overflow-x: auto;
    margin-top: var(--spacing-md);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.orders-table th,
.orders-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.orders-table th {
    background: var(--cream);
    font-weight: 700;
    color: var(--dark);
}

.orders-table tbody tr:hover {
    background: var(--cream);
}

.status-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.btn-danger {
    background: #e74c3c;
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
}

/* ===================================
   RESPONSIVE - TABLET & DESKTOP
   =================================== */
@media (min-width: 640px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    /* Larger cards for tablet and desktop */
    .product-image {
        height: 200px;
        font-size: 4rem;
    }

    .product-info {
        padding: var(--spacing-md);
    }

    .product-name {
        font-size: 1.1rem;
        -webkit-line-clamp: 2;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .price-original {
        font-size: 1.4rem;
    }

    .price-discount {
        font-size: 1rem;
    }

    .offer-timer {
        font-size: 0.85rem;
    }

    .product-card .btn-block {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        min-height: 48px;
    }

    .qty-btn {
        width: 36px;
        height: 36px;
        min-height: 36px;
        min-width: 36px;
        font-size: 1.1rem;
    }

    .qty-value {
        font-size: 1.1rem;
        min-width: 35px;
    }

    .features-grid,
    .trust-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .distance-display {
        flex-direction: row;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    html {
        font-size: 17px;
    }

    .nav-menu {
        position: static;
        transform: none;
        display: flex;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        gap: var(--spacing-sm);
        background: transparent;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .nav-menu li {
        margin-bottom: 0;
    }

    .nav-menu a:hover {
        transform: translateX(0) translateY(-2px);
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }

    /* Even larger cards for desktop */
    .product-image {
        height: 250px;
        font-size: 5rem;
    }

    .features-grid,
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ===================================
   AUTHENTICATION STYLES
   =================================== */

.nav-auth-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.btn-login,
.btn-signup,
.btn-logout {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.btn-login {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-login:hover {
    background: var(--primary);
    color: white;
}

.btn-signup {
    background: var(--gradient-primary);
    color: white;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-logout {
    background: #f5f5f5;
    color: var(--text-dark);
}

.btn-logout:hover {
    background: #e0e0e0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group small {
    color: #666;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ===================================
   MY ORDERS PAGE STYLES
   =================================== */

.orders-section {
    padding: 60px 20px;
    background: var(--cream);
    min-height: 60vh;
}

.guest-message {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.guest-message-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 24px;
}

.guest-message-content p {
    color: #666;
    margin: 10px 0;
}

.guest-message-content .btn {
    margin: 10px 5px;
}

.orders-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 10px 0;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.orders-container {
    display: grid;
    gap: 20px;
}

.order-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-id {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.order-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.order-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.order-items {
    margin-bottom: 20px;
}

.order-items h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.item-quantity {
    color: #666;
    margin: 0 15px;
}

.item-price {
    font-weight: 700;
    color: var(--primary);
}

.order-customer {
    background: var(--cream);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.order-customer h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.order-customer p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.order-summary {
    border-top: 2px solid #f0f0f0;
    padding-top: 15px;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.summary-row.total {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
    border-top: 2px solid var(--primary);
    padding-top: 15px;
    margin-top: 10px;
}

.order-payment {
    margin-bottom: 20px;
}

.payment-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.payment-badge.upi {
    background: #e3f2fd;
    color: #1976d2;
}

.payment-badge.cod {
    background: #fff3e0;
    color: #f57c00;
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 30px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

.error {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .orders-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .order-actions {
        flex-direction: column;
    }

    .btn-sm {
        width: 100%;
    }
}

/* ===================================
   CONSOLE LOG VIEWER
   =================================== */

.floating-console-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
}

.floating-console-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.5);
}

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

.console-modal-content {
    max-width: 900px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.console-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.console-output {
    flex: 1;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    max-height: calc(80vh - 150px);
}

.console-log-entry {
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    background: #2d2d2d;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    word-break: break-word;
}

.console-log-time {
    color: #888;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

.console-log-icon {
    flex-shrink: 0;
}

.console-log-message {
    color: #d4d4d4;
    white-space: pre-wrap;
    word-wrap: break-word;
    flex: 1;
}

.console-log-entry.console-log-error {
    background: #3a1f1f;
    border-left: 3px solid #f44336;
}

.console-log-entry.console-log-error .console-log-message {
    color: #ff6b6b;
}

.console-log-entry.console-log-warn {
    background: #3a331f;
    border-left: 3px solid #ff9800;
}

.console-log-entry.console-log-warn .console-log-message {
    color: #ffb74d;
}

.console-log-entry.console-log-info {
    background: #1f2a3a;
    border-left: 3px solid #2196f3;
}

.console-log-entry.console-log-info .console-log-message {
    color: #64b5f6;
}

.console-log-entry.console-log-log {
    background: #2d2d2d;
    border-left: 3px solid #4caf50;
}

/* Scrollbar for console output */
.console-output::-webkit-scrollbar {
    width: 10px;
}

.console-output::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 8px;
}

.console-output::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 8px;
}

.console-output::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-console-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }

    .console-modal-content {
        height: 90vh;
        max-width: 100%;
    }

    .console-output {
        font-size: 12px;
        max-height: calc(90vh - 140px);
    }

    .console-controls {
        flex-direction: column;
    }

    .console-controls .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
