/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: #E53E3E;
    font-weight: bold;
}

.logo-text p {
    font-size: 0.875rem;
    color: #666;
}

.cart-btn {
    background-color: #E53E3E;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cart-btn:hover {
    background-color: #C53030;
}

.cart-count {
    background-color: white;
    color: #E53E3E;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.admin-btn {
    background-color: #4A5568;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-right: 1rem;
}

.admin-btn:hover {
    background-color: #2D3748;
}

.admin-text {
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #F7FAFC 0%, #E2E8F0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 2rem;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: #E53E3E;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: #E53E3E;
    font-weight: bold;
}

.cta-btn {
    background-color: #E53E3E;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.cta-btn:hover {
    background-color: #C53030;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

/* Search and Filters */
.search-section {
    padding: 2rem 0;
    background-color: #F7FAFC;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input {
    padding: 0.75rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #E53E3E;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background-color: white;
    border: 2px solid #E2E8F0;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #E53E3E;
    color: white;
    border-color: #E53E3E;
}

/* Products */
.products-section {
    padding: 2rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card.unavailable {
    opacity: 0.6;
    position: relative;
}

.product-card.unavailable:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.unavailable-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FED7D7;
    color: #E53E3E;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.875rem;
}

.product-image::before {
    content: "🍕";
    font-size: 3rem;
    display: block;
}

.product-image[src*="picsum"] {
    background: none;
}

.product-image[src*="picsum"]::before {
    display: none;
}

.product-content {
    padding: 1rem;
}

.product-category {
    background-color: #FED7D7;
    color: #E53E3E;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.product-price {
    font-size: 1.125rem;
    font-weight: bold;
    color: #E53E3E;
    margin-bottom: 1rem;
}

.product-options {
    margin-bottom: 1rem;
}

.option-group {
    margin-bottom: 0.75rem;
}

.option-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #333;
}

.option-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    background-color: white;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quantity-btn {
    background-color: #E2E8F0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #CBD5E0;
}

.quantity-display {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.add-to-cart-btn {
    background-color: #E53E3E;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #C53030;
}

.add-to-cart-btn:disabled {
    background-color: #A0AEC0;
    cursor: not-allowed;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.cart-header h3 {
    color: #E53E3E;
    font-size: 1.25rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #F7FAFC;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    font-size: 0.875rem;
    color: #666;
}

.cart-item-price {
    font-weight: bold;
    color: #E53E3E;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #A0AEC0;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s;
    margin-left: 0.5rem;
}

.remove-item-btn:hover {
    background-color: #FED7D7;
    color: #E53E3E;
}

.cart-total {
    padding: 1rem;
    border-top: 1px solid #E2E8F0;
    background-color: #F7FAFC;
}

.cart-total p {
    font-size: 1.125rem;
    font-weight: bold;
    color: #E53E3E;
    text-align: center;
}

.delivery-selection {
    padding: 1rem;
    border-top: 1px solid #E2E8F0;
    background-color: #F7FAFC;
}

.delivery-selection h4 {
    margin-bottom: 1rem;
    color: #E53E3E;
    font-size: 1.125rem;
}

.customer-form {
    padding: 1rem;
    border-top: 1px solid #E2E8F0;
}

#address-field {
    transition: all 0.3s ease;
    overflow: hidden;
}

#address-field.hidden {
    max-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

#address-field:not(.hidden) {
    max-height: 200px;
}

.customer-form h4 {
    margin-bottom: 1rem;
    color: #333;
}

.customer-form input,
.customer-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 1rem;
}

.customer-form textarea {
    resize: vertical;
    min-height: 80px;
}

.location-btn {
    background-color: #22C55E;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s;
}

.location-btn:hover {
    background-color: #16A34A;
}

.delivery-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.delivery-option {
    flex: 1;
}

.delivery-option input[type="radio"] {
    display: none;
}

.delivery-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: white;
    text-align: center;
    justify-content: center;
}

.delivery-label:hover {
    border-color: #E53E3E;
    background-color: #FED7D7;
}

.delivery-option input[type="radio"]:checked + .delivery-label {
    border-color: #E53E3E;
    background-color: #E53E3E;
    color: white;
}

.delivery-icon {
    font-size: 1.25rem;
}

.delivery-text {
    font-weight: 500;
}

.whatsapp-btn {
    background-color: #22C55E;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.whatsapp-btn:hover:not(:disabled) {
    background-color: #16A34A;
}

.whatsapp-btn:disabled {
    background-color: #A0AEC0;
    cursor: not-allowed;
}

/* FAQ */
.faq-section {
    padding: 4rem 0;
    background-color: #F7FAFC;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    color: #E53E3E;
    margin-bottom: 2rem;
    font-weight: bold;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #FED7D7;
}

.faq-question h3 {
    font-size: 1.125rem;
    color: #333;
    transition: color 0.3s;
}

.faq-question:hover h3 {
    color: #E53E3E;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #E53E3E;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 1.5rem;
    color: #666;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.open {
    max-height: 200px;
    padding-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #333333;
    color: white;
    padding: 3rem 0 1rem;
    border-top: 4px solid #E53E3E;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #E53E3E;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: #D1D5DB;
    margin-bottom: 1rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #D1D5DB;
}

.icon {
    font-size: 1.25rem;
}

.hours p {
    color: #D1D5DB;
    margin-bottom: 0.25rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.social-btn {
    background-color: #E53E3E;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.social-btn:hover {
    background-color: white;
    color: #E53E3E;
}

.footer-link {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #E53E3E;
}

.footer-bottom {
    border-top: 1px solid #4A5568;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .search-container {
        flex-direction: row;
        align-items: center;
    }

    .search-input {
        flex: 1;
        margin-right: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 2fr 1fr;
    }

    .social-links {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cart-sidebar {
        width: 450px;
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #E2E8F0;
}

.modal-header h3 {
    color: #E53E3E;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Cart Modal */
.cart-modal-content {
    max-width: 600px;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #F7FAFC;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    font-size: 0.875rem;
    color: #666;
}

.cart-item-price {
    font-weight: bold;
    color: #E53E3E;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #A0AEC0;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s;
    margin-left: 0.5rem;
}

.remove-item-btn:hover {
    background-color: #FED7D7;
    color: #E53E3E;
}

.cart-total {
    padding: 1rem;
    border-top: 1px solid #E2E8F0;
    background-color: #F7FAFC;
}

.cart-total p {
    font-size: 1.125rem;
    font-weight: bold;
    color: #E53E3E;
    text-align: center;
}

.customer-form {
    padding: 1rem;
    border-top: 1px solid #E2E8F0;
}

/* Product Modal */
.product-modal-content {
    max-width: 500px;
}

/* Terms Modal */
.terms-modal-content {
    max-width: 600px;
    max-height: 80vh;
}

#terms-modal-body {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

#terms-modal-body h4 {
    color: #E53E3E;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

#terms-modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Notification Modal */
.notification-modal-content {
    max-width: 400px;
    text-align: center;
}

#notification-modal-body {
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: center;
}

.notification-btn {
    background-color: #E53E3E;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.notification-btn:hover {
    background-color: #C53030;
}

.product-modal-details {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.product-modal-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.product-modal-info {
    flex: 1;
}

.product-modal-info .product-description {
    margin-bottom: 0.5rem;
}

.product-modal-info .product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #E53E3E;
}

.product-options {
    padding: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.subtotal-display {
    text-align: center;
    padding: 0.5rem 1rem;
    background-color: #F7FAFC;
    border-radius: 8px;
    margin: 0.5rem 1rem;
}

.subtotal-display p {
    margin: 0;
    font-weight: bold;
    color: #E53E3E;
    font-size: 1.125rem;
}

.add-to-cart-btn {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
}

/* FAQ closed by default */
.faq-answer {
    overflow: hidden;
}

/* Checkbox Options */
.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    background-color: white;
    transition: all 0.3s;
}

.checkbox-option:hover {
    border-color: #E53E3E;
    background-color: #FED7D7;
}

.checkbox-option input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #E53E3E;
}

.checkbox-option label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.option-name {
    flex: 1;
    margin-right: 0.5rem;
}

.checkbox-option label::after {
    content: attr(data-price);
    font-weight: bold;
    color: #E53E3E;
    white-space: nowrap;
}

/* Mobile specific */
@media (max-width: 767px) {
    .location-btn {
        display: block;
    }

    .product-modal-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cart-item-price {
        white-space: nowrap;
    }

    .delivery-options {
        flex-direction: column;
        gap: 0.5rem;
    }

    .delivery-text {
        white-space: nowrap;
        font-size: 0.9rem;
    }
}

/* Lazy Loading Styles */
.lazy {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.5rem;
}

.lazy::before {
    content: "🍕";
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}