/* Base Variables & Cross-Platform System Tokens */
:root {
    --primary-color: #FF7043;
    --primary-dark: #F4511E;
    --secondary-color: #8BC34A;
    --accent-color: #FFCA28;
    --text-dark: #2D3748;
    --text-light: #718096;
    --bg-color: #F7FAFC;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.45);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Device Safe-Area Insets for iOS & Android notch / gesture navigation */
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    height: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button, a, input, select {
    touch-action: manipulation;
}

/* Background Blobs for Visual Interest */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,112,67,1) 0%, rgba(255,112,67,0) 70%);
}

.blob-2 {
    bottom: -20%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139,195,74,1) 0%, rgba(139,195,74,0) 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
    100% { transform: translate(50px, -50px) scale(0.9); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Smart Responsive Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: clamp(1rem, 2.5vw, 2.5rem);
    padding: 1rem 0;
}




.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo .emoji { font-size: 2rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.orders-nav-btn {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    padding: 0.45rem 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-dark);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.orders-nav-btn:hover {
    background: #f0fdf4;
    border-color: #34A853;
    color: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(52, 168, 83, 0.15);
}

.orders-nav-btn svg {
    color: #34A853;
    flex-shrink: 0;
}

.orders-nav-text {
    font-size: 0.88rem;
    font-weight: 700;
}

.cart-btn {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-dark);
    transition: var(--transition);
}

.cart-btn:hover { 
    border-color: var(--primary-color);
    background: #fff7ed;
    color: var(--primary-color); 
    transform: translateY(-1px); 
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(139, 195, 74, 0.15);
    color: #558B2F;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 195, 74, 0.3);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 15px rgba(255, 112, 67, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(255, 112, 67, 0.4);
}

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

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    animation: floatImage 6s infinite ease-in-out;
    width: 450px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Products Section */
.products {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-header {
    text-align: center;
    margin-bottom: 4rem;
}

.products-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.products-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.product-image-wrapper {
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.08) rotate(5deg);
}

.product-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tag-green { background: var(--secondary-color); }

.product-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 45px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
}

.add-to-cart-btn {
    background: var(--text-dark);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 112, 67, 0.3);
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(-450px);
}

.cart-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
}

.cart-header h2 { font-size: 1.5rem; }

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover { color: var(--text-dark); transform: rotate(90deg); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #edf2f7;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--bg-color);
    padding: 0.5rem;
}

.item-details { flex: 1; }
.item-details h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.item-price { font-weight: 700; color: var(--primary-color); }

.item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: var(--transition);
}

.qty-btn:hover { background: var(--bg-color); }
.item-qty { font-weight: 600; width: 20px; text-align: center; }

.remove-btn {
    background: none;
    border: none;
    color: #F56565;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    margin-left: auto;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    margin-top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid #edf2f7;
    background: #fcfcfc;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Notification */
.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}

.notification.show { bottom: 30px; }

/* Responsive */
@media (max-width: 900px) {
    .hero-container { flex-direction: column; text-align: center; gap: 2rem; }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .glass-card { width: 100%; max-width: 400px; height: 400px; }
    .nav-links { display: none; } /* Could add hamburger menu for real app */
}

@media (max-width: 500px) {
    .cart-sidebar { right: -100%; max-width: 100%; transform: none; }
    .cart-sidebar.open { transform: translateX(-100%); }
}

/* Payment Modal */
.payment-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0; visibility: hidden;
    display: flex; justify-content: center; align-items: center;
    transition: var(--transition);
}
.payment-overlay.active {
    opacity: 1; visibility: visible;
}
.payment-modal {
    background: white; border-radius: var(--radius-lg);
    width: 90%; max-width: 480px; max-height: 90vh;
    box-shadow: var(--shadow-lg); overflow-y: auto;
    transform: translateY(20px); transition: var(--transition);
}
.payment-overlay.active .payment-modal {
    transform: translateY(0);
}
.payment-header {
    padding: 1.5rem 2rem; border-bottom: 1px solid #edf2f7;
    display: flex; justify-content: space-between; align-items: center;
}
.payment-header h2 { font-size: 1.4rem; color: var(--text-dark); }
.close-payment {
    background: none; border: none; font-size: 2rem; color: var(--text-light); cursor: pointer; transition: var(--transition);
}
.close-payment:hover { color: var(--text-dark); }
.payment-body { padding: 2rem; text-align: center; }
.payment-body p { color: var(--text-light); margin-bottom: 1.5rem; }
.upi-box {
    background: var(--bg-color); border: 2px dashed #cbd5e0;
    border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem;
}
.upi-box h3 { font-size: 1rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.upi-id {
    font-size: 1.6rem; font-weight: 800; color: var(--primary-color); letter-spacing: 1px; margin-bottom: 1rem;
}
.amount-to-pay { font-size: 1.1rem; color: var(--text-dark); }
.amount-to-pay strong { font-size: 1.3rem; color: var(--text-dark); }
.confirm-payment-btn {
    width: 100%; padding: 1rem; background: var(--secondary-color); color: white;
    border: none; border-radius: 30px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.confirm-payment-btn:hover { background: #7CB342; box-shadow: 0 4px 10px rgba(139, 195, 74, 0.4); }

/* Swiggy Delivery Location Styles */
.address-section { margin-bottom: 0.5rem; text-align: left; }
.section-label { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.swiggy-address-form { display: flex; flex-direction: column; gap: 0.6rem; }
.input-field {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid #cbd5e0;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 16px !important; /* Critical: Prevents iOS Safari auto-zoom bug */
    color: var(--text-dark);
    background: #FFFFFF;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: var(--transition);
}
.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 112, 67, 0.15);
}
.input-field.half { flex: 1; min-width: 0; }
.input-field[readonly] { background: #f7fafc; cursor: not-allowed; color: var(--text-light); }
.detect-btn { width: 100%; padding: 0.7rem; background: var(--bg-color); border: 2px solid var(--primary-color); border-radius: 20px; font-weight: 700; cursor: pointer; transition: var(--transition); color: var(--primary-color); font-family: var(--font-main); }
.detect-btn:hover { background: var(--primary-color); color: white; }
#location-status { display: block; margin-top: -0.2rem; font-size: 0.8rem; padding-left: 0.5rem;}
.payment-body p:not(.section-label):not(.amount-to-pay) { color: var(--text-light); font-size: 0.95rem; }

/* Order Tracking Widget (Small Window) */
.tracking-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 4000; opacity: 0; visibility: hidden; pointer-events: none;
    transition: var(--transition);
}
.tracking-overlay.active { opacity: 1; visibility: visible; }
.tracking-modal {
    pointer-events: all;
    background: white; border-radius: var(--radius-lg); width: 90%; max-width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); overflow: hidden;
    position: absolute; bottom: 20px; right: 20px;
    transform: translateY(100px); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tracking-overlay.active .tracking-modal { transform: translateY(0); opacity: 1; }
@media (max-width: 500px) {
    .tracking-modal { max-width: 100%; right: 0; bottom: 0; border-radius: 25px 25px 0 0; width: 100%; box-shadow: 0 -10px 30px rgba(0,0,0,0.1); }
}
.tracking-header { padding: 1rem 1.2rem; border-bottom: 1px solid #edf2f7; display: flex; justify-content: space-between; align-items: center; background: #fafafa; }
.tracking-header h2 { font-size: 1.1rem; color: var(--text-dark); }
.close-tracking { background: none; border: none; font-size: 1.5rem; color: var(--text-light); cursor: pointer; transition: var(--transition); display: block !important; }
.close-tracking:hover { color: var(--text-dark); }
.tracking-body { padding: 1.2rem; }
.order-id { font-weight: 700; color: var(--text-light); margin-bottom: 1rem; font-size: 0.9rem; letter-spacing: 1px; }

.tracking-stepper { display: flex; flex-direction: column; gap: 1rem; position: relative; margin-bottom: 1.5rem; }
.tracking-stepper::before {
    content: ''; position: absolute; left: 16px; top: 10px; bottom: 10px; width: 2px; background: #e2e8f0; z-index: 1;
}
.step { display: flex; gap: 0.8rem; align-items: flex-start; position: relative; z-index: 2; opacity: 0.5; transition: var(--transition); }
.step.active { opacity: 1; transform: scale(1.02); }
.step-icon { width: 34px; height: 34px; background: white; border: 2px solid #e2e8f0; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1rem; transition: var(--transition); }
.step.active .step-icon { border-color: var(--primary-color); background: #f0fdf4; box-shadow: 0 0 10px rgba(74, 222, 128, 0.3); }
.step-text h4 { font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.1rem; margin-top: 0.2rem;}
.step-text p { font-size: 0.75rem; color: var(--text-light); margin: 0; }

.tracking-map-mock {
    height: 100px; background: #e2e8f0; border-radius: var(--radius-md); position: relative; overflow: hidden;
    background-image: radial-gradient(#cbd5e0 1px, transparent 1px); background-size: 20px 20px;
}
.delivery-eta { position: absolute; top: 10px; right: 10px; background: white; padding: 5px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 700; box-shadow: var(--shadow-sm); z-index: 3; color: var(--primary-color); }
.rider-dot {
    width: 20px; height: 20px; background: var(--secondary-color); border: 3px solid white; border-radius: 50%;
    position: absolute; left: 10%; top: 50%; transform: translateY(-50%); box-shadow: var(--shadow-md);
    transition: left 2s ease-in-out;
}

/* My Orders Modal */
.orders-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
    z-index: 3000; opacity: 0; visibility: hidden;
    display: flex; justify-content: center; align-items: center; transition: var(--transition);
}
.orders-overlay.active { opacity: 1; visibility: visible; }
.orders-modal {
    background: white; border-radius: var(--radius-lg); width: 90%; max-width: 500px; max-height: 80vh;
    box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(20px); transition: var(--transition);
    display: flex; flex-direction: column;
}
.orders-overlay.active .orders-modal { transform: translateY(0); }
.orders-header { padding: 1.5rem 2rem; border-bottom: 1px solid #edf2f7; display: flex; justify-content: space-between; align-items: center; }
.orders-header h2 { font-size: 1.4rem; color: var(--text-dark); }
.close-orders { background: none; border: none; font-size: 2rem; color: var(--text-light); cursor: pointer; transition: var(--transition); }
.close-orders:hover { color: var(--text-dark); }
.orders-body { padding: 1.5rem 2rem; overflow-y: auto; flex: 1; }
.empty-orders { text-align: center; color: var(--text-light); padding: 2rem 0; font-size: 1.1rem; }
.order-card { 
    background: var(--bg-color); border: 1px solid #edf2f7; border-radius: var(--radius-md); 
    padding: 1.2rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.order-card-header { display: flex; justify-content: space-between; align-items: center; }
.order-id-txt { font-weight: 700; color: var(--text-dark); font-size: 1.1rem; }
.order-date-txt { font-size: 0.85rem; color: var(--text-light); }
.order-items-txt { font-size: 0.95rem; color: var(--text-light); margin: 0.5rem 0 0 0; line-height: 1.4; }
.order-progress-txt { font-size: 0.85rem; font-weight: 600; color: var(--primary-color); margin-bottom: 0.5rem; }
.order-progress-txt span { color: var(--text-dark); font-weight: 400; }
.track-order-btn { background: var(--primary-color); color: white; border: none; padding: 0.3rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.track-order-btn:hover { background: #34A853; }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; border-top: 1px dashed #cbd5e0; padding-top: 0.8rem; }
.order-status { font-weight: 700; font-size: 0.85rem; padding: 0.4rem 0.8rem; border-radius: 20px; }
.status-Active { background: #fff3cd; color: #856404; }
.status-Delivered { background: #d4edda; color: #155724; }
.order-total-txt { font-weight: 800; color: var(--text-dark); font-size: 1.1rem; }

.payment-methods { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.pm-option { 
    flex: 1; border: 2px solid #e2e8f0; border-radius: 12px; padding: 1rem 0; text-align: center; 
    cursor: pointer; transition: var(--transition); background: #f8fafc; font-weight: 600; font-size: 0.9rem;
    color: var(--text-dark);
}
.pm-option input { display: none; }
.pm-option.active { border-color: var(--primary-color); background: #f0fdf4; color: var(--primary-color); }
.tracking-contacts { margin-top: 1.2rem; border-top: 1px solid #edf2f7; padding-top: 1rem; display: flex; gap: 0.5rem; }
.contact-box { flex: 1; background: #f8fafc; padding: 0.8rem 0.2rem; border-radius: 12px; text-align: center; border: 1px solid #e2e8f0; }

/* Print Media Styles for Invoices */
@media print {
    body * { visibility: hidden; }
    #invoice-print-area, #invoice-print-area * { visibility: visible; }
    #invoice-print-area { position: absolute; left: 0; top: 0; width: 100vw; margin: 0; padding: 10px; box-shadow: none; border-radius: 0; }
    .no-print { display: none !important; }
}

/* Invoice Modal Styles */
.invoice-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 4000;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(4px);
}
.invoice-overlay.active { display: flex; }

.invoice-modal {
    background: white; width: 90%; max-width: 450px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    max-height: 90vh; overflow-y: auto; position: relative;
    padding: 2rem; color: var(--text-dark);
}

.invoice-header { text-align: center; border-bottom: 2px dashed #cbd5e0; padding-bottom: 1rem; margin-bottom: 1rem; }
.invoice-header h2 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 0.2rem; }
.invoice-header p { font-size: 0.8rem; color: var(--text-light); }
.invoice-meta { font-size: 0.85rem; margin-bottom: 1.5rem; line-height: 1.5; }
.invoice-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.invoice-table th, .invoice-table td { padding: 0.5rem 0; border-bottom: 1px solid #edf2f7; font-size: 0.9rem; }
.invoice-table th { text-align: left; color: var(--text-light); font-size: 0.8rem; text-transform: uppercase; }
.invoice-table .right { text-align: right; }
.invoice-total { font-size: 1.2rem; font-weight: 800; display: flex; justify-content: space-between; border-top: 2px solid var(--text-dark); padding-top: 0.8rem; margin-bottom: 2rem; }
.invoice-actions { display: flex; gap: 1rem; }
.invoice-btn { flex: 1; padding: 0.8rem; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }
.btn-print { background: var(--primary-color); color: white; }
.btn-close-inv { background: #e2e8f0; color: var(--text-dark); }
.contact-title { font-size: 0.7rem; color: var(--text-light); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.contact-number { font-size: 0.8rem; font-weight: 800; color: var(--primary-color); }

/* Footer Styles */
.footer {
    text-align: center;
    padding: 0.65rem 1rem max(0.65rem, env(safe-area-inset-bottom, 0px));
    background: transparent;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.footer h3 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.footer a:hover {
    text-decoration: underline !important;
}

/* Google Maps Style Blue Dot */
.custom-div-icon {
    background: transparent;
    border: none;
}

.gps-pulse-dot {
    width: 16px;
    height: 16px;
    background-color: #4285F4;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1000;
}

.gps-pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background-color: rgba(66, 133, 244, 0.25);
    border-radius: 50%;
    animation: gpsPulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

@keyframes gpsPulse {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* --- MOBILE OPTIMIZATION --- */

/* Mobile Bottom Navigation (App Style) */
.mobile-nav {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    background: white; border-top: 1px solid #edf2f7; z-index: 5000;
    padding: 0.7rem 1rem; justify-content: space-around; align-items: center;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05); padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
}

.mobile-nav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.3rem; color: var(--text-light); text-decoration: none; font-size: 0.7rem;
    font-weight: 700; cursor: pointer; transition: 0.2s; background: none; border: none;
    outline: none;
}

.mobile-nav-item span:first-child { font-size: 1.3rem; }
.mobile-nav-item.active { color: var(--primary-color); }

@media (max-width: 768px) {
    .navbar { display: block !important; padding: 0.4rem 0; position: sticky; top: 0; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); z-index: 1000; }
    .navbar-container { width: 94%; padding: 0.4rem 0; display: flex; justify-content: space-between; align-items: center; }
    .nav-links { display: none; }
    .nav-actions { gap: 0.45rem; }
    .orders-nav-btn { padding: 0.4rem 0.65rem; }
    .orders-nav-text { display: none; }
    .logo { font-size: 1.35rem; }
    .hero { height: auto; padding: 2rem 1rem; border-radius: 0 0 30px 30px; margin-top: 0; }
    .hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
    .hero p { font-size: 0.9rem; margin-bottom: 1.5rem; }
    
    .category-tabs { overflow-x: auto; justify-content: flex-start; padding: 0.5rem; -webkit-overflow-scrolling: touch; }
    .tab-btn { flex: 0 0 auto; min-width: 100px; padding: 0.6rem 1rem; }
    
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; padding: 0.5rem; }
    .product-card { padding: 0.8rem; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
    .product-details h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
    .product-desc { font-size: 0.7rem; line-height: 1.3; margin-bottom: 0.6rem; height: 32px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .price { font-size: 1rem; }
    .add-to-cart-btn { padding: 0.5rem !important; font-size: 0.75rem !important; margin-left: auto; width: auto !important; height: auto !important; }
    
    .checkout-modal, .orders-modal, .auth-modal { 
        width: 100%; height: 90vh; border-radius: 30px 30px 0 0; 
        padding: 1.5rem; padding-bottom: 6rem;
    }
    
    .cart-sidebar { width: 100%; border-radius: 30px 30px 0 0; }
    .cart-btn-floating { display: flex !important; }
}

/* Floating Cart FAB */
.cart-btn-floating {
    display: none; position: fixed; bottom: 85px; right: 20px;
    background: var(--primary-color); color: white; border: none;
    width: 60px; height: 60px; border-radius: 50%; z-index: 4500;
    justify-content: center; align-items: center; font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(52, 168, 83, 0.4); animation: floatPulse 2s infinite;
}

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

/* Auth / Login Modal Styles */
.auth-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 5000;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(8px);
}
.auth-overlay.active { display: flex; }

.auth-modal {
    background: white; width: 90%; max-width: 400px; border-radius: 20px;
    padding: 2.5rem; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

.auth-header h2 { font-size: 1.8rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.auth-header p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 2rem; }

.otp-container { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.otp-input {
    width: 45px; height: 50px; border: 2px solid #edf2f7; border-radius: 10px;
    text-align: center; font-size: 1.2rem; font-weight: 800; color: var(--primary-color);
    outline: none; transition: 0.3s;
}
.otp-input:focus { border-color: var(--primary-color); background: #f0fdf4; }

.auth-btn {
    width: 100%; padding: 1rem; background: var(--text-dark); color: white;
    border: none; border-radius: 12px; font-weight: 800; font-size: 1rem;
    cursor: pointer; transition: 0.3s; margin-top: 1rem;
}
.auth-btn:hover { background: var(--primary-color); transform: translateY(-2px); }

.resend-link { font-size: 0.85rem; color: var(--primary-color); cursor: pointer; font-weight: 600; margin-top: 1rem; display: block; }
.resend-link.disabled { color: var(--text-light); cursor: not-allowed; }

/* ========================================================
   Saft Trinken Premium Refresh: Categories, Badges & Model
   ======================================================== */
.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.hero-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.business-model-section {
    padding: 5rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.business-model-header {
    text-align: center;
    margin-bottom: 3rem;
}

.business-model-header .sub-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #FFF3E0;
    color: #E65100;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    border: 1px solid #FFE0B2;
}

.business-model-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.business-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 2rem;
}

.business-model-card {
    background: white;
    border-radius: 24px;
    padding: 2.2rem;
    border: 1.5px solid #edf2f7;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.business-model-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.08);
}

.bm-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.bm-phase-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    width: fit-content;
}

.bm-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.bm-card-desc {
    font-size: 0.94rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.bm-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
}

.bm-features-list li {
    font-size: 0.88rem;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.45;
}

.bm-features-list li span.check {
    color: #10b981;
    font-weight: 800;
}

/* Category Filter Tabs & Search Bar */
.menu-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.category-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.category-tab-btn {
    padding: 0.6rem 1.3rem;
    border-radius: 30px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.category-tab-btn:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #0f172a;
}

.category-tab-btn.active {
    background: linear-gradient(135deg, #FF7043, #F4511E);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(244, 81, 30, 0.3);
}

.search-box-wrapper {
    position: relative;
    min-width: 260px;
    flex: 1;
    max-width: 360px;
}

.menu-search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 30px;
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    outline: none;
    font-family: inherit;
    background: #f8fafc;
    color: #1e293b;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
}

.menu-search-input:focus {
    background: white;
    border-color: #FF7043;
    box-shadow: 0 0 0 3px rgba(255, 112, 67, 0.15);
}

.search-icon-svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* Enhanced Product Card */
.portion-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.65rem;
    border-radius: 12px;
    margin-bottom: 0.65rem;
}

.tag-orange { background: #FF7043; color: white; }
.tag-green { background: #10B981; color: white; }
.tag-red { background: #EF4444; color: white; }
.tag-purple { background: #8B5CF6; color: white; }
.tag-yellow { background: #F59E0B; color: white; }

.product-image-wrapper {
    height: 270px;
    background: radial-gradient(circle, #ffffff 50%, #f8fafc 100%);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
    transform: scale(1.06) translateY(-4px);
}
/* ========================================================
   Hero Luxury Showcase: Cold-Pressed Bottle & Fruit Bowl
   ======================================================== */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 7rem 2rem 4rem;
    max-width: 1240px;
    margin: 0 auto;
    background: transparent !important;
}

.hero-title {
    font-size: clamp(2.4rem, 4.8vw, 4.2rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin-bottom: 1.5rem !important;
    color: #0f172a !important;
    letter-spacing: -0.025em !important;
    text-shadow: none !important;
}

.highlight {
    color: #FF7043 !important;
    text-shadow: none !important;
}

.hero-showcase-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-bottle-card {
    position: relative;
    width: 320px;
    height: 450px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatBottle 6s infinite ease-in-out;
    z-index: 2;
}

.hero-bottle-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px;
    filter: drop-shadow(0 15px 25px rgba(255, 112, 67, 0.12));
}

.hero-bowl-card {
    position: absolute;
    bottom: -10px;
    right: -20px;
    width: 220px;
    height: 220px;
    background: white;
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: floatBowl 7s infinite ease-in-out reverse;
    z-index: 3;
}

.hero-bowl-img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 20px;
}

.hero-bowl-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0.5rem;
    letter-spacing: 0.3px;
}

.hero-floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    z-index: 4;
}

.badge-top-right {
    top: 25px;
    right: -25px;
}

.badge-bottom-left {
    bottom: 25px;
    left: -25px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes floatBottle {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

@keyframes floatBowl {
    0% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(1deg); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 900px) {
    .hero-showcase-container {
        max-width: 340px;
        height: 420px;
        margin-top: 2rem;
    }
    .hero-bottle-card {
        width: 250px;
        height: 360px;
    }
    .hero-bowl-card {
        width: 170px;
        height: 170px;
        bottom: -5px;
        right: -10px;
    }
    .hero-bowl-img {
        height: 115px;
    }
    .badge-top-right {
        right: -10px;
        top: 10px;
    }
    .badge-bottom-left {
        left: -10px;
        bottom: 15px;
    }
}

/* ========================================================
   UNIVERSAL CROSS-PLATFORM & MULTI-OS COMPATIBILITY ENGINE
   Supports: Android, iOS, Windows, macOS, Linux, ChromeOS
   Screens: Mobile (320px-480px), Tablets (768px-1024px),
            Laptops & 4K Desktops (1200px-2560px+)
   ======================================================== */

/* 1. Global Viewport, Layout & Text Protection */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img, svg, picture, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Form Controls & Touch Targets for iOS Safari & Android Chrome */
input, select, textarea {
    font-size: 16px !important; /* Eliminates the forced zoom-in bug on iOS Safari */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: var(--radius-md);
}

button, a, .pm-option, .category-tab-btn, .orders-nav-btn, .cart-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 3. Sleek Scrollbars across Windows, Linux, and Android/macOS */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.8);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 rgba(241, 245, 249, 0.8);
}

/* 4. Modal Overlays with Dynamic Viewport Height (100dvh) */
.payment-overlay,
.orders-overlay,
.cart-overlay,
.invoice-overlay {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    width: 100dvw;
    padding-top: calc(10px + var(--sat));
    padding-bottom: calc(10px + var(--sab));
    padding-left: calc(10px + var(--sal));
    padding-right: calc(10px + var(--sar));
    overscroll-behavior: contain;
}

.payment-modal,
.orders-modal,
.invoice-modal {
    max-height: calc(90dvh - var(--sat) - var(--sab));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.cart-sidebar {
    height: 100vh;
    height: 100dvh;
    padding-top: var(--sat);
    padding-bottom: var(--sab);
}

/* 5. Responsive Grid & Card Fine-Tuning across Mobile Screens */
@media (max-width: 480px) {
    .navbar {
        padding: calc(0.35rem + var(--sat)) 0 0.35rem 0;
    }
    .navbar-container {
        width: 95%;
        padding: 0.25rem 0;
    }
    .logo {
        font-size: 1.2rem;
        letter-spacing: -0.3px;
    }
    .nav-actions {
        gap: 0.35rem;
    }
    .orders-nav-btn {
        padding: 0.35rem 0.55rem;
        font-size: 0.75rem;
    }
    .cart-btn {
        padding: 0.35rem 0.55rem;
    }

    .hero {
        padding: calc(5rem + var(--sat)) 1rem 2.5rem;
    }
    .hero-title {
        font-size: 2.3rem !important;
        line-height: 1.15 !important;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-showcase-container {
        max-width: 290px;
        height: 360px;
        margin: 1.5rem auto 0;
    }
    .hero-bottle-card {
        width: 215px;
        height: 310px;
        padding: 1rem;
    }
    .hero-bowl-card {
        width: 145px;
        height: 145px;
        bottom: -5px;
        right: -8px;
        padding: 0.5rem;
    }
    .hero-bowl-img {
        height: 95px;
    }
    .hero-floating-badge {
        padding: 0.35rem 0.65rem;
        font-size: 0.72rem;
    }
    .badge-top-right {
        right: -5px;
        top: 8px;
    }
    .badge-bottom-left {
        left: -5px;
        bottom: 8px;
    }

    .products {
        padding: 3rem 1rem;
    }
    .products-header h2 {
        font-size: 2.1rem;
    }

    .menu-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 0.85rem;
    }
    .category-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
    }
    .category-tab-btn {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
    }
    .search-box-wrapper {
        min-width: 100%;
        max-width: 100%;
    }

    .business-model-section {
        padding: 3.5rem 1rem;
    }
    .business-model-card {
        padding: 1.5rem;
    }

    .payment-modal,
    .orders-modal {
        width: 95%;
        padding: 1.25rem;
        border-radius: 20px;
    }
}

/* Small Phone 1-column layout for ultra-compact displays <= 380px */
@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .product-image-wrapper {
        height: 200px;
    }
}

/* 6. Tablet Layout (iPad, Galaxy Tab, Windows Surfaces) */
@media (min-width: 769px) and (max-width: 1100px) {
    .hero-container {
        gap: 2rem;
    }
    .hero-title {
        font-size: 3.2rem !important;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .business-model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 7. Large Desktop Displays (Windows, macOS, Linux 1440p - 4K) */
@media (min-width: 1600px) {
    .container,
    .navbar-container,
    .hero,
    .products {
        max-width: 1440px;
    }
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================================
   Saft Trinken Product Quick-View Modal & Photo Consistency
   ======================================================== */
.product-card {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.product-image-wrapper {
    height: 250px !important;
    background: radial-gradient(circle, #ffffff 60%, #f8fafc 100%) !important;
    border-radius: 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 1.25rem !important;
    border: 1px solid #f1f5f9 !important;
}

.product-image {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.product-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.product-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.product-modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    padding: 2.25rem;
    overflow-y: auto;
}

.product-modal-visual {
    background: radial-gradient(circle, #ffffff 60%, #f8fafc 100%);
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 320px;
    position: relative;
}

.product-modal-visual img {
    max-height: 280px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #eff6ff;
    color: #2563eb;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.product-modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.product-modal-price-bar {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-modal-price {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ff7043;
}

.product-modal-tax-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.product-modal-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 1.25rem;
}

.product-modal-pillars {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.product-pillar-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
}

.product-pillar-icon {
    font-size: 0.95rem;
}

.product-modal-cta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.modal-qty-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.modal-qty-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.modal-qty-btn:hover {
    background: #f1f5f9;
}

.modal-qty-val {
    width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
}

.modal-add-cart-btn {
    flex: 1;
    padding: 0.85rem 1.5rem;
    background: #ff7043;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 112, 67, 0.35);
}

.modal-add-cart-btn:hover {
    background: #f4511e;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 112, 67, 0.45);
}

@media (max-width: 768px) {
    .product-modal-content-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.25rem;
    }
    .product-modal-visual {
        min-height: 220px;
        padding: 1rem;
    }
    .product-modal-visual img {
        max-height: 200px;
    }
    .product-modal-title {
        font-size: 1.3rem;
    }
    .product-modal-pillars {
        grid-template-columns: 1fr;
    }
}