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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2C2C2C;
    background: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #FFFFFF;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 800;
    color: #6F4E37;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav a {
    text-decoration: none;
    color: #2C2C2C;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #FF6B00;
}

/* Desktop Navigation - Visible on desktop */
.desktop-nav {
    display: flex;
}

/* Hero Section */
.hero {
    background: #751E4F;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    background: #FFFFFF;
    color: #751E4F;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Mobile Category Navigation - Hidden on desktop */
.mobile-categories {
    padding: 80px 20px;
    background: #FFF8E7;
    display: none;
}

.mobile-categories h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid #FFE8D1;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 180px;
    background: #FFF4D9;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.category-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: #666;
}

/* Products Section */
.products {
    padding: 80px 20px;
    background: #FFFFFF;
}

.products h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 60px;
}

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

/* Product Card */
.product-card {
    background: #FFFBEA;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid #FFF;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.2);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #9C251A;
    color: white;
    padding: 8px 16px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.badge.new {
    background: #715E4F;
}

.product-image {
    width: 100%;
    height: 200px;
    background: #FFE8D1;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #FFD4A3;
}

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

.product-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 10px;
}

.product-card .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.price {
    font-size: 28px;
    font-weight: 800;
    color: #6F4E37;
    margin-bottom: 15px;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #9C251A;
    color: white;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.qty-btn:hover {
    background: #6F4E37;
    transform: scale(1.1);
}

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

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 3px solid #751E4F;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    background: white;
    color: #751E4F;
}

/* Sticky Checkout Button */
.checkout-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #751E4F;
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 184, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
    display: none;
}

.checkout-btn.active {
    display: block;
}

.checkout-btn.pop {
    animation: popOnce 0.3s ease-out;
}

@keyframes popOnce {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.checkout-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 184, 0, 0.5);
    background: #6F4E37;
}

#itemCount {
    display: inline-block;
    background: white;
    color: #FFB800;
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 10px;
    font-weight: 800;
}

/* About Section */
.about {
    padding: 80px 20px;
    background: #FFF4D9;
    text-align: center;
}

.about h2 {
    font-size: 42px;
    font-weight: 800;
    color: #751E4F;
    margin-bottom: 30px;
}

.about p {
    font-size: 18px;
    color: #2C2C2C;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #2C2C2C;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #FFB800;
}

.footer-section p {
    margin-bottom: 8px;
    color: #CCC;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    font-size: 28px;
    color: #2C2C2C;
    margin-bottom: 15px;
}

.disclaimer {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.branch-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.branch-btn {
    background: #751E4F;
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.branch-btn:hover {
    background: #6F4E37;
    transform: translateY(-2px) scale(1.05);
}

.close-btn {
    background: transparent;
    color: #999;
    border: 2px solid #DDD;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.close-btn:hover {
    border-color: #999;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Show mobile category navigation */
    .mobile-categories {
        display: block;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .mobile-categories h2 {
        font-size: 32px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .products h2,
    .about h2 {
        font-size: 32px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-btn {
        bottom: 20px;
        right: 20px;
        padding: 15px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .btn-primary {
        font-size: 18px;
        padding: 12px 30px;
    }
    
    .mobile-categories,
    .products,
    .about {
        padding: 50px 20px;
    }
    
    .category-image {
        height: 150px;
    }
}
/* Review Page Styles */

.review-section {
    padding: 60px 20px;
    background: #FFFFFF;
    min-height: 70vh;
}

.review-section h1 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 40px;
}

/* Cart Items */
.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    background: #FFFBEA;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #FFE8D1;
}

.item-details h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 5px;
}

.item-unit {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.item-price {
    font-size: 16px;
    font-weight: 600;
    color: #6F4E37;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-adjust-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #751E4F;
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.qty-adjust-btn:hover {
    background: #6F4E37;
    transform: scale(1.1);
}

.qty-display {
    font-size: 18px;
    font-weight: 700;
    color: #751E4F;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: #751E4F;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-left: 10px;
}

.remove-btn:hover {
    background: #751E4F;
}

.empty-cart {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 40px 20px;
}

.empty-cart a {
    color: #751E4F;
    text-decoration: none;
    font-weight: 600;
}

.empty-cart a:hover {
    text-decoration: underline;
}

/* Order Summary */
.order-summary {
    background: #FFF4D9;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.order-summary h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 10px;
    color: #2C2C2C;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: #6F4E37;
    border-top: 2px solid #FFD4A3;
    padding-top: 15px;
    margin-top: 15px;
}

/* Customer Details */
.customer-details {
    background: #FFFBEA;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.customer-details h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-container label {
    font-size: 16px;
    font-weight: 600;
    color: #2C2C2C;
    cursor: pointer;
}

.customer-form {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #FFD4A3;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B00;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.note {
    font-size: 13px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* Proceed Button */
.proceed-btn {
    width: 100%;
    background: #751E4F;
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.proceed-btn:hover {
    background: #6F4E37;
    transform: translateY(-2px);
}

.proceed-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Mobile Responsive for Review Page */
@media (max-width: 768px) {
    .review-section h1 {
        font-size: 28px;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .item-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .order-summary h3,
    .customer-details h3 {
        font-size: 20px;
    }
    
    .proceed-btn {
        font-size: 18px;
        padding: 15px 30px;
    }
}