/* cakemenu.css - Complete Cake Menu Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fff8f0 0%, #f5f7fa 100%);
    color: #333;
    line-height: 1.6;
}

/* Navigation Styles */
.main-header {
    background: #000; /* Solid black header */
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo i {
    font-size: 2rem;
    color: #ffb74d;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #d4af37; /* gold menu links */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}


.nav-link:hover,
.nav-item.active .nav-link {
    background: rgba(255, 183, 77, 0.2);
    color: #ffb74d;
    transform: translateY(-2px);
}

.cart-icon {
    position: relative;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: rgba(255, 183, 77, 0.2);
    color: #ffb74d;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff5722;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Container */
.cake-menu-container {
    min-height: 100vh;
}

.cake-menu-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.menu-header {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #ffb74d, #d32f2f);
}

.menu-header h1 {
    font-size: 3rem;
    color: #d32f2f;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.menu-header h1 i {
    color: #ffb74d;
    margin-right: 1rem;
}

.subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.facility-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid #ffd54f;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Step Management */
.step {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h2 {
    font-size: 2.5rem;
    color: #d32f2f;
    margin-bottom: 1rem;
}

.step-header h2 i {
    color: #ffb74d;
    margin-right: 0.5rem;
}

/* Category Sections */
.category-section {
    margin-bottom: 4rem;
}

.category-section h3 {
    font-size: 2.2rem;
    color: #d32f2f;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-section h3 i {
    color: #ffb74d;
    font-size: 2rem;
}

.category-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #ffb74d);
    border-radius: 2px;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Enhanced Item Cards */
.item-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1), rgba(255, 183, 77, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.item-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.item-card:hover::before {
    opacity: 1;
}

.item-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-card:hover img {
    transform: scale(1.1);
}

.item-card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.item-card h4 {
    font-size: 1.5rem;
    color: #d32f2f;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.item-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.price-display {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 500;
}

.price-display .price {
    font-weight: bold;
    color: #ff5722;
    font-size: 1.3rem;
}

.price-note {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    margin-top: 0.5rem;
}

.customize-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.customize-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.customize-btn:hover::before {
    left: 100%;
}

.customize-btn:hover {
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
}

/* Dietary Information */
.dietary-info {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-top: 3rem;
    text-align: center;
}

.dietary-info h4 {
    color: #d32f2f;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dietary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
}

.badge:hover {
    transform: translateY(-2px) scale(1.05);
}

.badge.vegan { 
    background: #e8f5e8; 
    color: #2d5a2d; 
    border-color: #4caf50;
}

.badge.gluten-free { 
    background: #fff3cd; 
    color: #856404; 
    border-color: #ffc107;
}

.badge.eggless { 
    background: #e3f2fd; 
    color: #1565c0; 
    border-color: #2196f3;
}

.badge.nutfree { 
    background: #f3e5f5; 
    color: #7b1fa2; 
    border-color: #9c27b0;
}

/* Customization Options */
.customization-options {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.option-group h3 {
    color: #d32f2f;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sponge-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.option-card {
    background: #f8f9fa;
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.05), rgba(255, 183, 77, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-card:hover {
    border-color: #d32f2f;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.option-card:hover::before {
    opacity: 1;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-card input[type="radio"]:checked + .option-content {
    color: #d32f2f;
}

.option-card input[type="radio"]:checked + .option-content::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d32f2f;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.option-content {
    text-align: center;
    position: relative;
}

.option-content i {
    font-size: 2.5rem;
    color: #ffb74d;
    margin-bottom: 1rem;
}

.option-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.option-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.option-price {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Selected Item Display */
.selected-item-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.selected-item-display img {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.selected-item-display h3 {
    color: #d32f2f;
    font-size: 1.8rem;
}

/* Size Selection */
.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.size-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.size-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1), rgba(255, 183, 77, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.size-card:hover {
    border-color: #d32f2f;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.size-card:hover::before {
    opacity: 1;
}

.size-card.selected {
    border-color: #d32f2f;
    background: linear-gradient(135deg, #fff5f5, #fff8f0);
    transform: translateY(-5px);
}

.size-card.selected::before {
    opacity: 0.3;
}

.size-visual {
    font-size: 3rem;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.size-card h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.size-card p {
    color: #666;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.servings {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.price-range {
    font-weight: bold;
    color: #ff5722;
    font-size: 2rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

/* Flavor Display */
.flavor-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.flavor-display img {
    max-width: 250px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.flavor-details h3 {
    color: #d32f2f;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Instructions */
.instructions-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.instructions-container label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d32f2f;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#special-instructions {
    width: 100%;
    min-height: 150px;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

#special-instructions:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
    background: white;
}

/* Order Summary */
.summary-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

#summary-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 5px solid #ffb74d;
}

.total-price {
    text-align: center;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.total-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.total-price h3 {
    font-size: 3rem;
    margin: 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Buttons */
.next-btn, .add-cart-btn, .checkout-btn, .place-order-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.next-btn::before, .add-cart-btn::before, .checkout-btn::before, .place-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.next-btn:hover::before, .add-cart-btn:hover::before, .checkout-btn:hover::before, .place-order-btn:hover::before {
    left: 100%;
}

.next-btn:hover, .add-cart-btn:hover, .checkout-btn:hover, .place-order-btn:hover {
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

/* Cart Section */
.cart-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px dashed #e0e0e0;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: #f8f9fa;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cart-total {
    text-align: center;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 2px solid #ffd54f;
}

.cart-total h3 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: bold;
}

/* Checkout Form */
#customer-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d32f2f;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#customer-form input,
#customer-form textarea {
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

#customer-form input:focus,
#customer-form textarea:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
    background: white;
}

#customer-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Order Note */
.order-note {
    background: #fff3cd;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #ffd54f;
    margin-top: 2rem;
}

.order-note p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #856404;
}

.order-note p:last-child {
    margin-bottom: 0;
}

.order-note a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
}

.order-note a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cake-menu-main {
        padding: 1.5rem;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #d32f2f;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        padding: 1rem;
        border-radius: 10px;
        margin: 0 1rem;
    }
    
    .cake-menu-main {
        padding: 1rem;
    }

    .menu-header {
        padding: 2rem 1rem;
    }

    .menu-header h1 {
        font-size: 2rem;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .size-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .sponge-options {
        grid-template-columns: 1fr;
    }

    .flavor-display {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .selected-item-display {
        flex-direction: column;
        gap: 1rem;
    }

    .next-btn, .add-cart-btn, .checkout-btn, .place-order-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        max-width: none;
    }
    
    .dietary-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .menu-header h1 {
        font-size: 1.8rem;
    }
    
    .step-header h2 {
        font-size: 2rem;
    }

    .size-options {
        grid-template-columns: 1fr;
    }

    .category-section h3 {
        font-size: 1.8rem;
    }

    .facility-note {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    
    .total-price h3 {
        font-size: 2rem;
    }
    
    .cart-total h3 {
        font-size: 2rem;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #d32f2f;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.item-card:focus,
.size-card:focus,
.customize-btn:focus,
.next-btn:focus,
.add-cart-btn:focus,
.checkout-btn:focus,
.place-order-btn:focus {
    outline: 3px solid #ffb74d;
    outline-offset: 3px;
}
/* Success Modal Styles */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.success-modal {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.success-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.success-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.success-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.success-content {
    padding: 2rem;
}

.success-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.order-summary-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #4CAF50;
}

.order-summary-box h3 {
    margin-top: 0;
    color: #333;
}

.next-steps {
    margin-top: 1.5rem;
}

.next-steps h3 {
    color: #333;
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.next-steps li:last-child {
    border-bottom: none;
}

.success-actions {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.success-actions button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.primary-btn {
    background: #4CAF50;
    color: white;
}

.primary-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.secondary-btn {
    background: #6c757d;
    color: white;
}

.secondary-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .success-modal {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Add these footer styles to your existing cakemenu.css file */

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 3rem 0;
}

.footer-section h3,
.footer-section h4 {
    color: #ffb74d;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: #ffb74d;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffb74d;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 183, 77, 0.2);
    border-radius: 50%;
    color: #ffb74d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ffb74d;
    color: #2c3e50;
    transform: translateY(-2px);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.contact-info i {
    color: #ffb74d;
    width: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}


/* Dropdown container */
.nav-item.dropdown {
  position: relative;
}

/* Hidden by default */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #b71c1c;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 999;
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown links */
.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.dropdown-menu a:hover {
  background-color: #ffb74d;
  color: #b71c1c;
  border-radius: 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 999;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background-color: #ffb74d;
  color: #b71c1c;
}

/* Mobile toggle dropdown behavior */
@media (max-width: 768px) {
  .nav-item.dropdown .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background-color: #d32f2f;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav-item.dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
}
/* Improved cake menu grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 items per row – large screens */
  gap: 2.5rem;
  padding: 1.5rem 0;
}

/* Tablets: 2 per row */
@media (max-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Mobile: 1 per row */
@media (max-width: 650px) {
  .items-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}
.item-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(211, 47, 47, 0.11);
  overflow: hidden;
  transition: transform .17s cubic-bezier(.46,.03,.52,.96), box-shadow .2s;
  cursor: pointer;
  position: relative;
}
.item-card:hover {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 16px 40px rgba(211,47,47,0.17);
}
/* Card contents padding */
.item-card-content {
  padding: 1.4rem 1.6rem 1.2rem 1.6rem;
}



/* FOR FOOTER ONLY */

.main-footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
  margin-top: 4rem;
  width: 100%;
}
.footer-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  padding: 3.5rem 0 1.8rem 0;
}
.footer-section h4 {
  color: #ffb74d;
  margin-bottom: 1.1rem;
  font-size: 1.07rem;
  font-weight: 700;
}
.footer-logo {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
}
.footer-logo i {
  font-size: 2.1rem; color: #ffb74d;
}
.footer-section p, .footer-section a {
  color: #c1c1ca; font-size: 0.97rem; line-height: 1.65;
}
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section ul li { margin-bottom: 0.58rem; }
.footer-section a {
  text-decoration: none;
  transition: color .2s;
}
.footer-section a:hover { color: #ffb74d; }

.social-links {
  display: flex; gap: 1rem; margin-top: 1.3rem;
}
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 183, 77, 0.13);
  display: flex; align-items: center; justify-content: center;
  color: #ffb74d;
  font-size: 1.3rem;
  transition: background .2s, color .2s, transform .1s;
}
.social-links a:hover {
  background: #ffb74d; color: #2c3e50; transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 183, 77, .15);
  padding: 1.65rem 0;
}
.footer-bottom-content {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
  font-size: 0.96rem;
}
@media (max-width: 800px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center; gap: 2rem;
  }
  .footer-bottom-content { flex-direction: column; gap: 1rem; justify-content: center; text-align: center; }
  .social-links { justify-content: center; }
}

/* Increased max width for large screens */
.cake-menu-main,
.nav-container,
.footer-container {
  max-width: 1440px; /* or up to 1600px for extra-large screens */
  margin: 0 auto;
  /* leave padding as is for breathing space */
}

/* Tweak padding for extra-large screens */
@media (min-width: 1800px) {
  .cake-menu-main,
  .nav-container,
  .footer-container {
    max-width: 1700px;
    padding-left: 48px;
    padding-right: 48px;
  }
}


@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 2.2rem;
    text-align: center;
    padding: 2.2rem 0 0.8rem 0;
  }
  .footer-section {
    margin-bottom: 1.5rem;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid rgba(255,183,77,0.1);
  }
  .footer-section:last-child {
    border-bottom: none;
  }
  .footer-logo,
  .social-links {
    justify-content: center !important;
  }
}

@media (max-width: 430px) {
  .main-footer {
    font-size: 0.93rem;
  }
  .footer-content {
    gap: 1rem;
  }
  .footer-container {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
}

@media (max-width: 768px) {
  .main-footer {
    font-size: 0.97rem;
    padding: 0 0.3rem;
  }
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-items: center;
    padding: 2.2rem 0 0.8rem 0;
  }
  .footer-section {
    width: 100%;
    margin-bottom: 1.1rem;
    text-align: center;
    padding: 0.5rem 0;
    border: none;
  }
  .footer-section ul {
    padding-left: 0;
    margin-bottom: 0.5rem;
  }
  .footer-section ul li {
    margin-bottom: 0.45rem;
  }
  .footer-logo,
  .social-links {
    justify-content: center !important;
    margin-left: auto; margin-right: auto;
  }
  .footer-logo {
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 430px) {
  .footer-content { padding-left: 0.1rem; padding-right: 0.1rem; }
  .footer-section { font-size: 0.94rem; }
}

/* WhatsApp Rectangle Sticky Button - Optimized */
.whatsapp-rectangle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 12px 8px;
    border-radius: 8px 0 0 8px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    min-height: 100px;
    max-width: 45px; /* Controls the width */
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-rectangle:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
    transform: translateY(-50%) translateX(-5px);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px; /* Reduced gap */
}

.whatsapp-content i {
    font-size: 20px;
    margin-bottom: 3px; /* Icon positioned before text */
    order: 1; /* Ensures icon comes first */
}

.whatsapp-content span {
    font-size: 11px;
    font-weight: 600;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    order: 2; /* Text comes after icon */
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-rectangle {
        padding: 10px 6px;
        min-height: 90px;
        max-width: 40px;
    }
    
    .whatsapp-content i {
        font-size: 18px;
    }
    
    .whatsapp-content span {
        font-size: 10px;
    }
}


/* Enhanced Mobile Responsiveness - Add to your existing CSS */

/* Mobile-First Improvements */
@media (max-width: 768px) {
    /* Reduce overall container padding */
    .cake-menu-main {
        padding: 0.5rem;
    }
    
    /* Make menu header much smaller */
    .menu-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .menu-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .facility-note {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Step headers - much smaller */
    .step-header {
        margin-bottom: 1rem;
    }
    
    .step-header h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    /* Category section headers */
    .category-section h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    /* Items grid - single column with smaller cards */
    .items-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    /* Item cards - much more compact */
    .item-card {
        border-radius: 12px;
    }
    
    .item-card img {
        height: 180px;
    }
    
    .item-card-content {
        padding: 1rem;
    }
    
    .item-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .item-card p {
        font-size: 0.85rem;
        margin-bottom: 0.7rem;
    }
    
    .customize-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Sponge selection - more compact */
    .sponge-options {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .option-card {
        padding: 1rem;
    }
    
    .option-content i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .option-content h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .option-content p {
        font-size: 0.8rem;
        margin-bottom: 0.7rem;
    }
    
    /* Size selection - compact 2-column layout */
    .size-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin: 1rem 0;
    }
    
    .size-card {
        padding: 1rem;
    }
    
    .size-visual {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .size-card h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .size-card p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .servings {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .price-range {
        font-size: 1.3rem;
        margin-top: 0.5rem;
    }
    
    /* Flavor display - compact */
    .flavor-display {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .flavor-display img {
        max-width: 200px;
        border-radius: 12px;
    }
    
    .flavor-details h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Selected item display */
    .selected-item-display {
        padding: 1rem;
        margin-bottom: 1rem;
        gap: 1rem;
    }
    
    .selected-item-display img {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }
    
    .selected-item-display h3 {
        font-size: 1.3rem;
    }
    
    /* Instructions container */
    .instructions-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .instructions-container label {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }
    
    #special-instructions {
        min-height: 100px;
        padding: 1rem;
    }
    
    /* Summary container */
    .summary-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    #summary-details {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Total price display */
    .total-price {
        padding: 1.2rem;
        margin: 1rem 0;
    }
    
    .total-price h3 {
        font-size: 2rem;
    }
    
    /* Buttons - more compact */
    .next-btn, .add-cart-btn, .checkout-btn, .place-order-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        margin: 1rem auto;
        border-radius: 30px;
    }
    
    /* Cart section */
    .cart-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .cart-item {
        padding: 1rem;
        margin-bottom: 0.7rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cart-total {
        padding: 1.2rem;
        margin: 1rem 0;
    }
    
    .cart-total h3 {
        font-size: 1.8rem;
    }
    
    /* Customer form */
    #customer-form {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    #customer-form input,
    #customer-form textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    #customer-form textarea {
        min-height: 100px;
    }
    
    /* Order note */
    .order-note {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .order-note p {
        margin-bottom: 0.7rem;
        font-size: 0.85rem;
    }
    
    /* Dietary info */
    .dietary-info {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .dietary-info h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .dietary-badges {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .badge {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        text-align: center;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .cake-menu-main {
        padding: 0.3rem;
    }
    
    .menu-header {
        padding: 1rem 0.5rem;
    }
    
    .menu-header h1 {
        font-size: 1.5rem;
    }
    
    .step-header h2 {
        font-size: 1.4rem;
    }
    
    .category-section h3 {
        font-size: 1.2rem;
    }
    
    .item-card img {
        height: 160px;
    }
    
    .item-card-content {
        padding: 0.8rem;
    }
    
    .item-card h4 {
        font-size: 1.1rem;
    }
    
    .size-options {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .size-card {
        padding: 0.8rem;
    }
    
    .size-visual {
        font-size: 1.5rem;
    }
    
    .price-range {
        font-size: 1.1rem;
    }
    
    .flavor-display img {
        max-width: 150px;
    }
    
    .total-price h3 {
        font-size: 1.6rem;
    }
    
    .next-btn, .add-cart-btn, .checkout-btn, .place-order-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* New CSS to improve the cake menu grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 items per row – large screens */
  gap: 2.5rem;
  padding: 1.5rem 0;
}

/* Tablets: 2 per row */
@media (max-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Mobile: 1 per row */
@media (max-width: 650px) {
  .items-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}
.item-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(211, 47, 47, 0.11);
  overflow: hidden;
  transition: transform .17s cubic-bezier(.46,.03,.52,.96), box-shadow .2s;
  cursor: pointer;
  position: relative;
}
.item-card:hover {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 16px 40px rgba(211,47,47,0.17);
}
/* Card contents padding */
.item-card-content {
  padding: 1.4rem 1.6rem 1.2rem 1.6rem;
}


/* Compact Layout Improvements */

/* Make containers more compact */
@media (max-width: 1200px) {
    .cake-menu-main {
        padding: 1rem;
        max-width: 100%;
    }
}

/* Compact Step Headers */
.step-header {
    text-align: center;
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.step-header h2 {
    font-size: 2rem; /* Reduced from 2.5rem */
    color: #d32f2f;
    margin-bottom: 0.5rem; /* Reduced from 1rem */
}

/* Compact Selected Item Display */
.selected-item-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.selected-item-display img {
    width: 80px; /* Reduced from 100px */
    height: 80px; /* Reduced from 100px */
    border-radius: 12px; /* Reduced from 15px */
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.selected-item-display h3 {
    color: #d32f2f;
    font-size: 1.5rem; /* Reduced from 1.8rem */
}

/* Compact Customization Options */
.customization-options {
    background: white;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.option-group h3 {
    color: #d32f2f;
    font-size: 1.5rem; /* Reduced from 1.8rem */
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    text-align: center;
}

/* Compact Sponge Options Grid */
.sponge-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Reduced min-width from 250px */
    gap: 1rem; /* Reduced from 1.5rem */
}

.option-card {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px; /* Reduced from 15px */
    padding: 1rem; /* Reduced from 1.5rem */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-content {
    text-align: center;
    position: relative;
}

.option-content i {
    font-size: 2rem; /* Reduced from 2.5rem */
    color: #ffb74d;
    margin-bottom: 0.8rem; /* Reduced from 1rem */
}

.option-content h4 {
    font-size: 1.1rem; /* Reduced from 1.2rem */
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
    color: #333;
}

.option-content p {
    color: #666;
    font-size: 0.85rem; /* Reduced from 0.9rem */
    margin-bottom: 0.8rem; /* Reduced from 1rem */
}

.option-price {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 0.25rem 0.6rem; /* Reduced from 0.3rem 0.8rem */
    border-radius: 12px; /* Reduced from 15px */
    font-weight: bold;
    font-size: 0.85rem; /* Reduced from 0.9rem */
}

/* Compact Size Selection */
.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Reduced from 280px */
    gap: 1rem; /* Reduced from 1.5rem */
    margin: 1.5rem 0; /* Reduced from 2rem 0 */
}

.size-card {
    background: white;
    padding: 1.5rem 1rem; /* Reduced padding */
    border-radius: 15px; /* Reduced from 20px */
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.size-visual {
    font-size: 2.5rem; /* Reduced from 3rem */
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
    position: relative;
    z-index: 2;
}

.size-card h4 {
    font-size: 1.2rem; /* Reduced from 1.3rem */
    color: #333;
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
    position: relative;
    z-index: 2;
}

.size-card p {
    color: #666;
    margin-bottom: 0.8rem; /* Reduced from 1rem */
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

.servings {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.4rem 0.8rem; /* Reduced from 0.5rem 1rem */
    border-radius: 15px; /* Reduced from 20px */
    font-size: 0.85rem; /* Reduced from 0.9rem */
    font-weight: 600;
    margin-bottom: 0.8rem; /* Reduced from 1rem */
    display: inline-block;
    position: relative;
    z-index: 2;
}

.price-range {
    font-weight: bold;
    color: #ff5722;
    font-size: 1.8rem; /* Reduced from 2rem */
    margin-top: 0.8rem; /* Reduced from 1rem */
    position: relative;
    z-index: 2;
}

/* Pricing Disclaimer Styling */
.pricing-disclaimer {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffd54f;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.pricing-disclaimer p {
    margin: 0;
    color: #856404;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pricing-disclaimer i {
    color: #f57c00;
    font-size: 1.1rem;
}

/* Compact Flavor Display */
.flavor-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem; /* Reduced from 3rem */
    background: white;
    padding: 2rem 1.5rem; /* Reduced padding */
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.flavor-display img {
    max-width: 200px; /* Reduced from 250px */
    border-radius: 15px; /* Reduced from 20px */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.flavor-details h3 {
    color: #d32f2f;
    font-size: 2rem; /* Reduced from 2.5rem */
    margin-bottom: 0.8rem; /* Reduced from 1rem */
}

/* Compact Instructions Container */
.instructions-container {
    background: white;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.instructions-container label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d32f2f;
    font-size: 1.2rem; /* Reduced from 1.3rem */
    font-weight: 600;
    margin-bottom: 0.8rem; /* Reduced from 1rem */
}

#special-instructions {
    width: 100%;
    min-height: 120px; /* Reduced from 150px */
    padding: 1rem; /* Reduced from 1.5rem */
    border: 2px solid #e0e0e0;
    border-radius: 12px; /* Reduced from 15px */
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

/* Compact Summary Container */
.summary-container {
    background: white;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

#summary-details {
    background: #f8f9fa;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 12px; /* Reduced from 15px */
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    border-left: 5px solid #ffb74d;
}

/* Compact Total Price */
.total-price {
    text-align: center;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 20px;
    margin: 1.5rem 0; /* Reduced from 2rem 0 */
    position: relative;
    overflow: hidden;
}

.total-price h3 {
    font-size: 2.5rem; /* Reduced from 3rem */
    margin: 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .step-header h2 {
        font-size: 1.8rem;
    }
    
    .selected-item-display {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .selected-item-display img {
        width: 70px;
        height: 70px;
    }
    
    .selected-item-display h3 {
        font-size: 1.3rem;
    }
    
    .sponge-options {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .option-card {
        padding: 0.8rem;
    }
    
    .option-content i {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .option-content h4 {
        font-size: 1rem;
    }
    
    .option-content p {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .size-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .size-card {
        padding: 1rem 0.8rem;
    }
    
    .size-visual {
        font-size: 2rem;
    }
    
    .flavor-display {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .flavor-display img {
        max-width: 180px;
    }
    
    .flavor-details h3 {
        font-size: 1.8rem;
    }
    
    .pricing-disclaimer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .size-options {
        grid-template-columns: 1fr;
    }
    
    .size-card {
        padding: 0.8rem;
    }
    
    .size-visual {
        font-size: 1.8rem;
    }
    
    .total-price h3 {
        font-size: 2rem;
    }
    
    .pricing-disclaimer {
        padding: 0.8rem 1rem;
    }
    
    .pricing-disclaimer p {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.3rem;
    }
}


.flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.flavor-card {
  display: block;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: box-shadow .18s ease, border-color .18s ease;
  background: #fff;
}
.flavor-card input[type="radio"] { display: none; }
.flavor-card .flavor-content h4 { margin-bottom: 6px; color: var(--primary-color); }
.flavor-card.selected, .flavor-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.flavour-desc { font-size: 0.92rem; color:#666; margin-top:6px; }

/* Golden flavour titles */
.flavor-card .flavor-content h4 {
  color: #FFD700;            /* bright gold */
  font-weight: 700;          /* a bit bolder for emphasis */
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Slightly richer alternative (uncomment to use instead)
.flavor-card .flavor-content h4 {
  color: #DAA520;           /* goldenrod (warmer) */
}
*/

/* Optional: change on hover to a deeper shade and tiny scale */
.flavor-card:hover .flavor-content h4 {
  color: #c99a00;
  transform: translateY(-1px);
  transition: color 140ms ease, transform 140ms ease;
}

.flavor-card {
  border-radius: 8px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.flavor-card:hover {
  box-shadow: 0 8px 20px rgba(217,160,28,0.12);
  transform: translateY(-4px);
}
