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

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #2F0601; /* Black Bean */
    background: #F2DFD7; /* Champagne Pink */
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

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

/* Header Styles */
header {
    background: #212D40; /* Prussian Blue */
    color: #F2DFD7; /* Champagne Pink */
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(47, 6, 1, 0.1);
    border-bottom: 1px solid #9D5C63; /* Rose Taupe */
}

header h1 {
    font-family: 'Poiret One', cursive;
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    color: #ffffff; /* White */
    font-weight: 400;
}

header p {
    font-size: 1rem;
    color: #F2DFD7; /* Champagne Pink */
    font-weight: 300;
}

/* Hero Section */
.hero {
    background: #9D5C63; /* Rose Taupe */
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    color: #F2DFD7; /* Champagne Pink */
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    color: #F2DFD7; /* Champagne Pink */
    margin-bottom: 2rem;
    font-weight: 300;
}

.inventory-badge {
    background: #2F0601; /* Black Bean */
    color: #F2DFD7; /* Champagne Pink */
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(47, 6, 1, 0.2);
    margin-bottom: 1rem;
}

.pickup-notice {
    color: #ffffff !important; /* White */
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    opacity: 0.9;
}

/* Ordering Status */
.ordering-status {
    text-align: center;
    margin: 2rem 0;
}

.status-message {
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-closed {
    background: #92817A; /* Cinereous */
    color: #FFFBFF; /* Snow */
    border: 1px solid #362417; /* Bistre */
}

.status-coming-soon {
    background: #F1DABF; /* Almond */
    color: #362417; /* Bistre */
    border: 1px solid #92817A; /* Cinereous */
}

/* Products Section */
.products-section {
    margin: 4rem 0;
}

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

.section-header h2 {
    font-size: 2.2rem;
    color: #2F0601; /* Black Bean */
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #2F0601; /* Black Bean */
    font-weight: 300;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

/* Loading Message */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #718096;
    font-size: 1.1rem;
}

.loading-message p {
    margin: 0;
}

.product-card {
    background: #ffffff; /* White */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(47, 6, 1, 0.1);
    border: 1px solid #9D5C63; /* Rose Taupe */
}

.product-card:hover {
    box-shadow: 0 12px 35px rgba(47, 6, 1, 0.2);
}

.product-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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


.product-placeholder {
    width: 100%;
    height: 100%;
    background: #9D5C63; /* Rose Taupe */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F2DFD7; /* Champagne Pink */
    font-size: 3rem;
    font-weight: 300;
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    font-size: 1.8rem;
    color: #2F0601; /* Black Bean */
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-description {
    color: #2F0601; /* Black Bean */
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

.product-options {
    margin-bottom: 2rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-label {
    display: block;
    font-weight: 600;
    color: #2F0601; /* Black Bean */
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.option-buttons {
    display: flex;
    gap: 0.75rem;
}

.option-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #9D5C63; /* Rose Taupe */
    background: #F2DFD7; /* Champagne Pink */
    color: #2F0601; /* Black Bean */
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.option-btn:hover {
    border-color: #2F0601; /* Black Bean */
    background: #9D5C63; /* Rose Taupe */
    color: #F2DFD7; /* Champagne Pink */
}

.option-btn.active {
    background: #2F0601 !important; /* Black Bean */
    color: #F2DFD7 !important; /* Champagne Pink */
    border-color: #2F0601 !important; /* Black Bean */
}

.option-btn .price {
    display: block;
    font-weight: 700;
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

.option-btn .upcharge {
    display: block;
    font-weight: 600;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #EF6F6C; /* Light Coral */
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.current-price {
    flex: 1;
}

.price-display {
    font-size: 2rem;
    font-weight: 700;
    color: #2F0601; /* Black Bean */
}

.add-to-cart-btn {
    background: #9D5C63; /* Rose Taupe */
    color: #F2DFD7; /* Champagne Pink */
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: #2F0601; /* Black Bean */
    color: #F2DFD7; /* Champagne Pink */
    box-shadow: 0 4px 12px rgba(47, 6, 1, 0.3);
}

.add-to-cart-btn:disabled {
    background: #9D5C63; /* Rose Taupe */
    color: #F2DFD7; /* Champagne Pink */
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Cart Section */
.cart-section {
    background: #F2DFD7; /* Champagne Pink */
    border-radius: 16px;
    padding: 2rem;
    margin: 4rem 0;
    box-shadow: 0 8px 25px rgba(47, 6, 1, 0.1);
}

.cart-header {
    margin-bottom: 2rem;
}

.cart-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title h3 {
    font-size: 1.8rem;
    color: #2F0601; /* Black Bean */
    font-weight: 700;
}

.cart-count {
    background: #2F0601; /* Black Bean */
    color: #F2DFD7; /* Champagne Pink */
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-content {
    background: #ffffff; /* White */
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(47, 6, 1, 0.05);
}

.cart-items {
    margin-bottom: 1.5rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #2F0601; /* Black Bean */
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-cart p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-cart small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.cart-footer {
    border-top: 1px solid #9D5C63; /* Rose Taupe */
    padding-top: 1.5rem;
}

.cart-total {
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2F0601; /* Black Bean */
}

.total-label {
    color: #2F0601; /* Black Bean */
}

.total-amount {
    color: #2F0601; /* Black Bean */
}

.checkout-btn {
    width: 100%;
    background: #2F0601; /* Black Bean */
    color: #F2DFD7; /* Champagne Pink */
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn:hover {
    background: #9D5C63; /* Rose Taupe */
    box-shadow: 0 4px 12px rgba(47, 6, 1, 0.3);
}

.checkout-btn:disabled {
    background: #9D5C63; /* Rose Taupe */
    color: #F2DFD7; /* Champagne Pink */
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.checkout-arrow {
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: #212D40; /* Prussian Blue */
    color: #F2DFD7; /* Champagne Pink */
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .product-image-container {
        height: 250px;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .option-buttons {
        flex-direction: column;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .cart-section {
        padding: 1.5rem;
    }
}