/* ===================================
   Global Styles & Reset
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C40000;
    --dark-red: #900000;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow: rgba(196, 0, 0, 0.1);
    --shadow-hover: rgba(196, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Preloader
   =================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 300px;
    max-width: 80vw;
    height: auto;
    margin-bottom: 30px;
    animation: logoFade 1.5s ease-in-out infinite;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--primary-red);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.preloader-text {
    font-size: 18px;
    color: var(--primary-red);
    font-weight: 600;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes logoFade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.cart-icon {
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-red);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay & Sidebar */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    transition: right 0.3s ease;
    padding: 80px 30px 30px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light-gray);
    color: var(--primary-red);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1003;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-close:hover {
    background: var(--primary-red);
    color: var(--white);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--light-gray);
    color: var(--primary-red);
}

.btn-mobile-menu {
    margin-top: 30px;
    width: 100%;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    text-align: center;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
}

.btn-hero {
    padding: 15px 40px;
    font-size: 18px;
    animation: fadeInUp 1s ease 0.8s both;
}

.btn-add-cart,
.btn-delivery {
    width: 100%;
}

.btn-place-order {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    margin-top: 20px;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(196, 0, 0, 0.2), rgba(196, 0, 0, 0.1)),
                url('woman-working-as-professional-chef.jpg') center/cover;
    margin-top: 80px;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 0, 0, 0.2), rgba(144, 0, 0, 0.1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.5s both;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   About Section
   =================================== */

.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.section-title.center {
    text-align: center;
}

.about-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
}

.feature-icon {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 24px;
}

/* ===================================
   Store Section
   =================================== */

.store {
    padding: 100px 0;
    background: var(--light-gray);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.product-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
}

/* ===================================
   Delivery Section
   =================================== */

.delivery {
    padding: 80px 0;
    background: var(--primary-red);
    color: var(--white);
}

.delivery-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.delivery-icon {
    font-size: 80px;
    margin-bottom: 30px;
}

.delivery-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.delivery-text {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.btn-delivery {
    background: var(--white);
    color: var(--primary-red);
}

.btn-delivery:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

/* ===================================
   Contact Section
   =================================== */

.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-form-wrapper,
.checkout-form-wrapper {
    background: var(--white);
}

.contact-form,
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px var(--shadow);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    font-size: 32px;
}

.info-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-text p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--white);
    border-top: 3px solid var(--primary-red);
    padding: 30px 0;
}

.footer-text {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* ===================================
   Cart Page
   =================================== */

.cart-section,
.checkout-section {
    padding: 150px 0 80px;
    min-height: 80vh;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 40px;
    text-align: center;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 100px;
    margin-bottom: 30px;
    opacity: 0.3;
}

.cart-empty h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cart-empty p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.cart-content {
    max-width: 1000px;
    margin: 0 auto;
}

.cart-table-wrapper {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    overflow-x: auto;
    margin-bottom: 40px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background: var(--light-gray);
}

.cart-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-table td {
    padding: 25px 20px;
    border-bottom: 1px solid #E0E0E0;
}

.cart-item-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
}

.cart-item-qty {
    width: 80px;
    padding: 10px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    text-align: center;
}

.btn-remove {
    padding: 8px 20px;
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: var(--primary-red);
    color: var(--white);
}

.cart-summary {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #E0E0E0;
    font-size: 18px;
}

.summary-row.total-row {
    border-bottom: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    margin-top: 10px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* ===================================
   Checkout Page
   =================================== */

.checkout-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.checkout-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
}

.order-summary {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.summary-items {
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #E0E0E0;
}

.summary-item-name {
    font-weight: 500;
    color: var(--text-dark);
}

.summary-item-qty {
    font-size: 14px;
    color: var(--text-light);
}

.summary-item-price {
    font-weight: 600;
    color: var(--primary-red);
}

.summary-totals {
    margin-top: 30px;
}

.secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.secure-icon {
    font-size: 18px;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 968px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-overlay {
        display: block;
    }
    
    .btn-desktop {
        display: none;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 100%;
    }

    .product-card {
        min-width: 0;
    }

    .product-image {
        height: 200px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
    
    .cart-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 15px 0;
    }

    .logo-img {
        height: 35px;
    }

    .hero {
        height: 70vh;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about,
    .store,
    .contact {
        padding: 60px 0;
    }

    .cart-section,
    .checkout-section {
        padding: 120px 0 60px;
    }
    
    .delivery-icon {
        font-size: 60px;
    }
    
    .delivery-title {
        font-size: 32px;
    }
    
    .delivery-text {
        font-size: 16px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .cart-table-wrapper {
        overflow-x: scroll;
    }
    
    .cart-table {
        min-width: 600px;
    }
    
    .checkout-form-wrapper {
        padding: 25px;
    }
    
    .order-summary {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 32px;
    }

    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .btn-hero {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 18px;
    }

    .product-price {
        font-size: 22px;
    }

    .product-image {
        height: 180px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .delivery-title {
        font-size: 24px;
    }

    .mobile-menu {
        width: 85%;
        max-width: 320px;
    }

    .page-title {
        font-size: 32px;
    }

    .cart-table {
        font-size: 14px;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

