/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e74c3c;
    --secondary-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #27ae60;
    --danger-color: #c0392b;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

.cart-link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}

.cart-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.95), rgba(255, 110, 127, 0.95)),
                url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1920') center/cover;
    color: white;
    padding: 5rem 0;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.85), rgba(255, 110, 127, 0.85));
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-search {
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.search-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.5rem 1rem;
}

.search-icon {
    font-size: 1.2rem;
}

.search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.hero-btn {
    background: linear-gradient(135deg, #FFB800, #FF6E7F);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 110, 127, 0.4);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

/* Menu Section */
.menu-section {
    padding: 3rem 0;
}

.menu-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

/* Product Categories */
.product-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card > div:first-child {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFB800, #FF6E7F);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--danger-color);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 1.6rem auto;
    padding: 1.6rem;
    border-radius: var(--border-radius);
    max-width: 480px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-color);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.modal-content .product-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.modal-content .product-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Compact Checkout Form */
.compact-checkout-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.compact-checkout-form .form-group {
    margin-bottom: 1rem;
}

.compact-checkout-form label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.compact-checkout-form input,
.compact-checkout-form textarea {
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.delivery-option {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-option:hover {
    border-color: var(--primary-color);
    background: #fef4e6;
}

.delivery-option input[type="radio"] {
    display: none;
}

.delivery-option input[type="radio"]:checked + .option-content {
    color: var(--primary-color);
}

.delivery-option input[type="radio"]:checked ~ .option-content svg {
    transform: scale(1.1);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.delivery-option input[type="radio"]:checked {
    & + .option-content {
        color: var(--primary-color);
    }
}

.delivery-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.1), rgba(255, 110, 127, 0.1));
}

@media (max-width: 600px) {
    .compact-checkout-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .delivery-options {
        grid-template-columns: 1fr;
    }
}

/* Total Price */
.total-price {
    font-size: 1.5rem;
    text-align: right;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.total-price span {
    color: #e74c3c;
    font-weight: bold;
}

.cart-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: white;
    border-radius: 8px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.cart-item-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0.2rem 0;
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cart-item-actions button {
    background: white;
    border: 2px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.cart-item-actions button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cart-item-quantity {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.remove-cart-item {
    background: var(--danger-color) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    width: auto !important;
    height: auto !important;
    border-radius: 5px !important;
    font-size: 0.85rem;
}

.remove-cart-item:hover {
    background: var(--danger-color) !important;
    opacity: 0.8;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background: linear-gradient(180deg, #fff 0%, #fef4e6 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.step-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.step-card:nth-child(1) .step-icon { animation-delay: 0s; }
.step-card:nth-child(2) .step-icon { animation-delay: 0.2s; }
.step-card:nth-child(3) .step-icon { animation-delay: 0.4s; }
.step-card:nth-child(4) .step-icon { animation-delay: 0.6s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.step-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

/* About & Contact Sections */
.about-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #fff 0%, #fef4e6 100%);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.about-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.about-card p {
    color: #666;
    line-height: 1.6;
}

.about-story {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-text {
    text-align: left;
}

.story-text h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.story-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.story-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFB800, #FF6E7F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.5rem;
    font-weight: 600;
}

.contact-section {
    padding: 3rem 0;
    background-color: white;
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-section p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .about-story {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-text {
        text-align: center;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 4rem 0 1rem;
    margin-top: 3rem;
    position: relative;
    background-size: cover;
    background-position: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.7);
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #FFB800;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #FFB800;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 25px;
    outline: none;
}

.newsletter-form button {
    background: linear-gradient(135deg, #FFB800, #FF6E7F);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.newsletter-form button:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    margin-top: 2rem;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 300px;
    }

    .nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }

    .nav li {
        padding: 0.75rem 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 20px;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-image img {
        max-width: 100%;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-categories {
        justify-content: stretch;
    }

    .category-btn {
        flex: 1;
        min-width: 120px;
    }

    .modal-content {
        margin: 0.5rem;
        padding: 1rem;
        max-width: 95% !important;
    }

    .modal-content .product-info {
        flex-direction: column;
        text-align: center;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    #siteLogo img {
        height: 30px !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 0.25rem;
        padding: 0.8rem;
        max-width: 98% !important;
    }
}

/* Product Details Modal Responsive */
@media (max-width: 768px) {
    #productDetailsModal .modal-content {
        grid-template-columns: 1fr !important;
        max-width: 95% !important;
        padding: 1rem !important;
    }
    
    #productDetailsModal .modal-content > div > div {
        grid-template-columns: 1fr !important;
    }
    
    #productDetailsModal h2 {
        font-size: 1.2rem !important;
    }
    
    #productDetailsModal h3 {
        font-size: 0.9rem !important;
    }
    
    #detailToppings {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    #productDetailsModal .modal-content {
        margin: 0.25rem !important;
        padding: 0.8rem !important;
        max-width: 98% !important;
    }
    
    #productDetailsModal h2 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    #productDetailsModal p {
        font-size: 0.85rem !important;
    }
    
    #detailCurrentPrice {
        font-size: 1.1rem !important;
    }
    
    #detailOldPrice {
        font-size: 0.85rem !important;
    }
}
