@import url(https://fonts.googleapis.com/css2?family=Mukta:wght@100;200;300;400;500;600;800&display=swap);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Mukta', sans-serif;
}

:root {
    --bg: #fdfbf7;
    --accent: #ff6b35;
    --accent-hover: #e85d2a;
    --muted: #6b6b6b;
    --card: #ffffff;
    --green: #2ecc71;
    --dark: #1a1a1a;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    margin: 0;
    color: var(--dark);
    background-color: var(--bg);
    font-family: 'Mukta', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

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

/* Header */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.brand .logo {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand .logo span {
    color: var(--dark);
}

.brand .tag {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    font-weight: 500;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav a:hover {
    color: var(--accent);
    background: rgba(255, 107, 53, 0.08);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cart-btn {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.cart-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.burger-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.burger-btn::before,
.burger-btn::after,
.burger-btn span {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* We need a span for the middle line if we want 3 lines, or just before/after for 2. 
   The HTML is empty, so we'll use a background image or rely on pseudo-elements.
   Let's use a simple SVG background for reliability if HTML is empty.
*/
.burger-btn {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 28px;
}
.burger-btn::before, .burger-btn::after { display: none; } /* Reset pseudo if using bg */


/* Hero Section */
.hero {
    padding: 60px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    color: var(--dark);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--muted);
    margin: 0;
    max-width: 500px;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Features */
.features {
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-inner {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-card:hover .feature-inner {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

/* Menu Grid */
.menu {
    padding: 60px 0;
}

.menu h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 12px;
    text-align: center;
}

.menu .lead {
    text-align: center;
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 40px;
}

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

.card {
    background: var(--card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-media {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-media img {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--dark);
}

.price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.desc {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
}

.add-btn {
    width: 100%;
    padding: 12px;
    background: var(--dark);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    background: var(--accent);
}

/* Pizza Size Select */
.size-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    font-size: 0.9rem;
    background-color: #f9f9f9;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.modal-panel {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

/* Cart List */
.cart-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Reviews */
.reviews-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.review-item {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.review-meta {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

.review-form {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.review-form textarea, .review-form input, .review-form select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
}

/* Auth Forms */
.auth-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.auth-tabs .btn {
    flex: 1;
    background: #f0f0f0;
}

.auth-tabs .btn.active {
    background: var(--accent);
    color: #fff;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 80px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav[aria-hidden="false"] {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 16px;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Mobile Responsive Improvements */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        align-items: center;
    }
    
    .hero-img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding: 8px 0;
    }
    
    .nav {
        display: none;
    }
    
    .burger-btn {
        display: flex;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Better mobile buttons */
    .btn, .add-btn, .cart-btn {
        min-height: 48px; /* Touch target size */
    }
    
    .modal-panel {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}
