/* CSS Design System for WeeklyPrep */

/* Color Palette & Custom Properties */
:root {
    --bg-color: #FAF9F6;          /* Organic Creamy White */
    --surface-color: #FFFFFF;     /* Pure White Card Background */
    --primary-color: #1E3F20;     /* Rich Forest Green */
    --primary-hover: #152C16;     
    --primary-light: #EBF2EC;     /* Light tint for badges/accents */
    --accent-color: #E06A3B;      /* Warm Carrot Orange */
    --accent-hover: #C55327;
    --accent-light: #FCECE6;
    --text-color: #1A1A1A;        /* Off-Black Charcoal */
    --text-muted: #666666;
    --border-color: #E5E5E2;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(30, 63, 32, 0.04);
    --shadow-md: 0 8px 24px rgba(30, 63, 32, 0.08);
    --shadow-lg: 0 16px 40px rgba(30, 63, 32, 0.12);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

/* Utility Elements */
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--surface-color);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

button:disabled, .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Header Area */
.app-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h1 {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
}
.logo-text h1 span {
    color: var(--accent-color);
}
.logo-text .tagline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Search Box */
.search-bar-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 16px;
}
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}
.search-bar-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}
.search-bar-wrapper input:focus {
    border-color: var(--primary-color);
    background-color: var(--surface-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Header Actions */
.cart-trigger-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}
.cart-trigger-btn:hover {
    background-color: var(--primary-light);
}
.cart-icon-wrapper {
    position: relative;
    color: var(--primary-color);
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.cart-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--primary-color);
}

/* Developer Settings Gear styling */
.config-toggle-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    border: none;
    z-index: 99;
    display: none; /* Hidden by default in production */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}
.config-toggle-btn:hover {
    transform: rotate(45deg) scale(1.1);
    background-color: var(--accent-color);
}

.config-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}
.config-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.config-modal {
    background-color: var(--surface-color);
    width: 100%;
    max-width: 460px;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}
.config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.config-body .input-group {
    margin-bottom: 16px;
}
.config-body label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}
.config-body input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
}
.config-body small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Sleek Carousel Banner (Fades slides for premium feel) */
.promo-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow-md);
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.promo-text {
    max-width: 65%;
    z-index: 2;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--bg-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.promo-text h2 {
    color: white;
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.promo-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: var(--font-body);
}

.promo-illustration {
    width: 140px;
    height: 140px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(6deg);
    border: 4px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    flex-shrink: 0;
}

.promo-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Background elements for depth */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    z-index: 1;
}

/* Carousel arrows controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 16px;
    z-index: 10;
    pointer-events: none;
}

.carousel-arrow {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

/* Carousel dots navigation */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dots .dot.active {
    background-color: white;
    width: 20px;
    border-radius: 4px;
}

/* Compact Card Layout for Spices & Raw Ingredients */
.product-card.compact-card {
    border-radius: var(--border-radius-md);
}

.product-card.compact-card .product-card-img {
    height: 130px;
}

.product-card.compact-card .product-card-body {
    padding: 14px;
}

.product-card.compact-card h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.product-card.compact-card p {
    display: none; /* Hide description */
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.section-title {
    margin-bottom: 40px;
}
.section-title .sub {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 8px;
}
.section-title h3 {
    font-size: 32px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.step-card {
    background-color: var(--bg-color);
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}
.step-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}
.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}
.step-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
}
.step-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Menu Grid */
.menu-section {
    padding: 80px 0;
}
.menu-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}
.menu-filters {
    display: flex;
    gap: 8px;
    background-color: var(--surface-color);
    padding: 6px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}
.filter-btn {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.filter-btn:hover {
    color: var(--primary-color);
}
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* Loading & Empty State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 16px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product Card */
.product-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 63, 32, 0.15);
}
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 1;
    border: 1px solid var(--border-color);
}
.product-card-img {
    height: 200px;
    overflow: hidden;
    background-color: #f1ebd9;
    position: relative;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.product-card:hover .product-card-img img {
    transform: scale(1.05);
}
.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card-body h4 {
    font-size: 18px;
    margin-bottom: 8px;
}
.product-card-body p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.product-price-info {
    display: flex;
    flex-direction: column;
}
.product-price-info .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}
.product-price-info .unit {
    font-size: 11px;
    color: var(--text-muted);
}
.add-btn {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.add-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Modals Overlay Base */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Recipe Customizer Content */
.recipe-modal-content {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition-smooth);
}
.modal-overlay.active .recipe-modal-content {
    transform: translateY(0);
}
.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background-color: var(--surface-color);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}
.recipe-modal-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    min-height: 480px;
}
.recipe-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recipe-modal-info {
    padding: 36px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow-y: auto;
}
.modal-category {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}
.recipe-modal-info h3 {
    font-size: 28px;
    margin-bottom: 12px;
}
.recipe-modal-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.serving-selector {
    background-color: var(--bg-color);
    padding: 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.selector-label strong {
    display: block;
    font-size: 14px;
}
.selector-label span {
    font-size: 11px;
    color: var(--text-muted);
}
.quantity-controller {
    display: flex;
    align-items: center;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 4px;
}
.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
}
.qty-btn:hover {
    background-color: var(--primary-light);
}
.qty-display {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

.ingredients-customizer-box {
    margin-bottom: 24px;
    flex-grow: 1;
}
.customizer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.customizer-header strong {
    font-size: 14px;
}
.customizer-header span {
    font-size: 11px;
    color: var(--text-muted);
}
.ingredients-list {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    max-height: 180px;
    overflow-y: auto;
}
.ingredient-customizer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.ingredient-customizer-item:last-child {
    border-bottom: none;
}
.ingredient-chk-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    cursor: pointer;
}
.ingredient-chk-label input {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}
.ingredient-qty-unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.modal-footer-price {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.price-breakdown {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}
.price-breakdown .price-label {
    font-size: 11px;
    color: var(--text-muted);
}
.price-breakdown .total-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* Sliding Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 800;
    display: none;
}
.cart-drawer-overlay.active {
    display: block;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background-color: var(--surface-color);
    z-index: 900;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.cart-drawer.active {
    transform: translateX(0);
}
.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.close-drawer-btn {
    font-size: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-color);
}
.cart-drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Empty Cart State */
.empty-cart-state {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}
.empty-cart-state i {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--border-color);
}
.empty-cart-state p {
    font-size: 14px;
    margin-bottom: 24px;
}

/* Cart Item Cards */
.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.cart-item-core {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.cart-item-details h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}
.cart-item-details .meta {
    font-size: 11px;
    color: var(--accent-color);
    font-weight: 600;
}
.cart-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-item-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 2px;
}
.cart-item-qty-selector button {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.cart-item-qty-selector button:hover {
    background-color: var(--primary-light);
}
.cart-item-qty-selector span {
    width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}
.remove-item-btn {
    background: transparent;
    border: none;
    color: #b33939;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.remove-item-btn:hover {
    text-decoration: underline;
}

/* Cart Item Ingredients Breakdown */
.cart-item-ingredients {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
}
.cart-item-ingredients ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

/* Cart Drawer Footer */
.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}
.cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.cart-subtotal span {
    font-size: 14px;
}
.cart-subtotal strong {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary-color);
}

/* Checkout Wizard Overlay */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 20px;
}
.checkout-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.checkout-modal-content {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 540px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Wizard Steps Indicators */
.checkout-wizard-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.wizard-step .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.wizard-step .step-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.wizard-step.active .step-num {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}
.wizard-step.active .step-name {
    color: var(--primary-color);
    font-weight: 700;
}
.wizard-step.completed .step-num {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}
.wizard-step-line {
    height: 2px;
    background-color: var(--border-color);
    flex-grow: 1;
    margin-top: -20px;
}
.wizard-step-line.completed {
    background-color: var(--accent-color);
}

/* Form groups */
.wizard-panel {
    display: none;
}
.wizard-panel.active {
    display: block;
}
.wizard-panel h4 {
    font-size: 20px;
    margin-bottom: 24px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 20px;
    width: 100%;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--surface-color);
    overflow: hidden;
}
.phone-prefix {
    padding: 12px 14px;
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
}
.phone-input-wrapper input {
    border: none;
    border-radius: 0;
}
.phone-input-wrapper input:focus {
    box-shadow: none;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 700;
    width: 100%;
}

.checkout-summary-box {
    background-color: var(--bg-color);
    padding: 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

/* OTP Screen layout */
.verification-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.otp-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 24px 0;
}
.otp-digit {
    width: 50px;
    height: 56px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-heading);
    outline: none;
    transition: var(--transition-smooth);
}
.otp-digit:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.demo-otp-hint {
    background-color: var(--accent-light);
    color: var(--accent-color);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}
.form-actions-row {
    display: flex;
    gap: 16px;
}
.form-actions-row button {
    flex: 1;
}

/* Step 3: Success styling */
.success-animation-wrapper {
    margin: 20px 0;
}
.success-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
.success-circle i {
    width: 36px;
    height: 36px;
}
.success-message {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.success-details-card {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}
.success-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}
.success-row:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}
.whatsapp-trigger-box {
    background-color: var(--primary-light);
    padding: 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: 24px;
    text-align: left;
}
.whatsapp-trigger-box p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Toast Alerts system */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast {
    background-color: var(--surface-color);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideInLeft {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Footer Section */
.app-footer {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-logo h2 {
    color: white;
    font-size: 20px;
}
.footer-logo h2 span {
    color: var(--accent-color);
}
.app-footer p {
    font-size: 12px;
    opacity: 0.6;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 900px) {
    .promo-carousel {
        height: 180px;
        margin-bottom: 32px;
    }
    .carousel-slide {
        padding: 20px 24px;
        gap: 20px;
    }
    .promo-text {
        max-width: 100%;
        text-align: center;
    }
    .promo-text h2 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    .promo-text p {
        font-size: 12px;
    }
    .promo-illustration {
        display: none;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .menu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .menu-filters {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    .recipe-modal-grid {
        grid-template-columns: 1fr;
    }
    .recipe-modal-image {
        height: 200px;
    }
    .recipe-modal-info {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .search-bar-wrapper {
        display: none; /* Hide main search bar on extremely small mobile headers, rely on categories */
    }
    .logo-text h1 {
        font-size: 18px;
    }
    .logo-text .tagline {
        font-size: 9px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .otp-digit {
        width: 44px;
        height: 48px;
        font-size: 20px;
    }
    /* Mobile cart panel optimization */
    .cart-drawer-header, .cart-drawer-body, .cart-drawer-footer {
        padding: 16px;
    }
    .cart-item-ingredients ul {
        grid-template-columns: 1fr;
    }
    .cart-item-core {
        gap: 12px;
    }
    .cart-item-details {
        max-width: 70%;
    }
    /* Mobile checkout modal optimization */
    .checkout-modal-content {
        padding: 20px;
        border-radius: var(--border-radius-md);
    }
    /* Mobile recipe customizer full-sheet experience */
    .recipe-modal-content {
        border-radius: 0;
        height: 100%;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    .recipe-modal-grid {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }
    .recipe-modal-image {
        height: 160px;
        flex-shrink: 0;
    }
    .recipe-modal-info {
        padding: 16px;
        flex-grow: 1;
        overflow-y: auto;
        max-height: calc(100vh - 160px);
    }
    .modal-footer-price {
        position: sticky;
        bottom: 0;
        background-color: var(--surface-color);
        padding: 12px 0;
        margin-top: 16px;
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.05);
    }
}
