/* ============================================
   DÖNER RESTAURANT - COMPLETE CSS
   Matching the React/Tailwind UI Design exactly
   ============================================ */

/* CSS Variables - Design Tokens */
:root {
    --primary: #C41E3A;
    --primary-foreground: #ffffff;
    --foreground: #1a1a1a;
    --background: #ffffff;
    --secondary: #f5f5f5;
    --secondary-foreground: #1a1a1a;
    --muted-foreground: #6b6b6b;
    --accent: #FEF5F6;
    --accent-foreground: #1a1a1a;
    --border: rgba(0, 0, 0, 0.08);
    --input: rgba(0, 0, 0, 0.1);
    --input-bg: #f9f9f9;
    --radius: 0.5rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--foreground);
    background: var(--background);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--muted-foreground) !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

@media (min-width: 768px) {
    .header-inner {
        height: 5rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    color: var(--foreground);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--foreground);
}

.cart-btn:hover {
    background: var(--secondary);
}

.cart-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: flex;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--foreground);
}

.mobile-toggle:hover {
    background: var(--secondary);
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.mobile-nav.open {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav .nav-link {
    padding: 0.5rem 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: var(--accent);
    overflow: hidden;
    position: relative;
}

.hero-inner {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: 3rem 0;
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 5rem 0;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(196, 30, 58, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 36rem;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: #a8182f;
}

.btn-outline {
    background: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--secondary);
}

.btn-sm {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
}

.hero-stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-container {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

@media (min-width: 1024px) {
    .hero-image-container {
        aspect-ratio: 4 / 5;
    }
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-floating-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-floating-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(196, 30, 58, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-floating-name {
    font-weight: 700;
    color: var(--foreground);
}

.hero-floating-sub {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.hero-floating-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-deco-1,
.hero-deco-2 {
    position: absolute;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    z-index: -1;
    filter: blur(3rem);
}

.hero-deco-1 {
    top: 2.5rem;
    right: 2.5rem;
    background: rgba(196, 30, 58, 0.2);
}

.hero-deco-2 {
    bottom: 2.5rem;
    left: 2.5rem;
    background: rgba(196, 30, 58, 0.1);
}

/* ============================================
   SECTIONS - COMMON
   ============================================ */
.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.products-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1280px) {
    .products-grid.menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.products-grid.menu-grid {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .products-grid.menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid.menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .products-grid.menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
}

.product-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--secondary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9375rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.btn-add {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-add:hover {
    background: #a8182f;
}

.btn-add svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* View Full Menu Button */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    background: var(--accent);
}

.features-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(196, 30, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-icon .emoji {
    font-size: 1.875rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: var(--muted-foreground);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .contact-title {
        font-size: 2.25rem;
    }
}

.contact-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(196, 30, 58, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-item-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-item-title {
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.contact-item-text {
    color: var(--muted-foreground);
}

.contact-image {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   MENU PAGE
   ============================================ */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3rem;
    }
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    background: var(--secondary);
    color: var(--foreground);
}

.category-btn:hover {
    background: #e8e8e8;
}

.category-btn.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

.empty-state {
    text-align: center;
    padding: 4rem 0;
}

.empty-state .emoji {
    font-size: 3.75rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--muted-foreground);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.cart-item-image {
    width: 6rem;
    height: 6rem;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--secondary);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.cart-item-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: var(--radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

.qty-btn:hover {
    background: #e8e8e8;
}

.qty-btn svg {
    width: 1rem;
    height: 1rem;
}

.qty-value {
    width: 2rem;
    text-align: center;
    font-weight: 500;
    color: var(--foreground);
}

.cart-item-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
}

.cart-item-remove {
    color: var(--primary);
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
}

.cart-item-remove:hover {
    opacity: 0.8;
}

.cart-item-remove svg {
    width: 1.25rem;
    height: 1.25rem;
}

.price-remove {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Order Summary Sidebar */
.order-summary {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.summary-card {
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    color: var(--foreground);
}

.summary-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.75rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
}

.summary-btn {
    width: 100%;
    margin-top: 1rem;
}

.summary-continue {
    display: block;
    text-align: center;
    color: var(--primary);
    margin-top: 1rem;
    transition: var(--transition);
}

.summary-continue:hover {
    opacity: 0.8;
}

/* Empty Cart State */
.empty-cart {
    min-height: calc(100vh - 5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.empty-cart-inner {
    text-align: center;
    max-width: 24rem;
}

.empty-cart-icon {
    width: 6rem;
    height: 6rem;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--muted-foreground);
}

.empty-cart-icon svg {
    width: 3rem;
    height: 3rem;
}

.empty-cart h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.empty-cart p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

/* Cart Layout (populated) */
.cart-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.cart-item-image {
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--secondary);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-name {
    font-weight: 700;
    color: var(--foreground);
}

.cart-item-desc {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.25rem;
}

.qty-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--foreground);
}

.qty-btn:hover {
    background: var(--secondary);
}

.qty-value {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--foreground);
}

.price-remove {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
}

.cart-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--muted-foreground);
}

.cart-item-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.checkout-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkout-section {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.checkout-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkout-section-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(196, 30, 58, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.checkout-section-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.checkout-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--input);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--foreground);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.2);
}

.form-input-icon-wrapper {
    position: relative;
}

.form-input-icon-wrapper svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--muted-foreground);
}

.form-input-icon-wrapper .form-input {
    padding-left: 2.5rem;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* Order Type Toggle */
.order-type-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-type-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.order-type-btn.active {
    border-color: var(--primary);
    background: var(--accent);
    color: var(--primary);
}

.delivery-fields {
    display: none;
}

.delivery-fields.visible {
    display: block;
}

/* Summary items list */
.summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.summary-item-name {
    color: var(--foreground);
}

.summary-item-price {
    color: var(--foreground);
    font-weight: 500;
}

.secure-text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 1rem;
}

/* Disabled button state */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-page {
    min-height: calc(100vh - 5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.success-inner {
    text-align: center;
    max-width: 32rem;
}

.success-checkmark {
    width: 6rem;
    height: 6rem;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease;
}

.success-checkmark svg {
    width: 3rem;
    height: 3rem;
    color: #16a34a;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-inner h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .success-inner h1 {
        font-size: 3rem;
    }
}

.success-inner>p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.success-card {
    background: var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.success-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.success-order-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.success-time {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.success-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .success-buttons {
        flex-direction: row;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--foreground);
    color: #fff;
    padding: 3rem 0 0;
}

@media (min-width: 768px) {
    .footer {
        padding: 4rem 0 0;
    }
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-hours,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #fff;
}

.social-icon:hover {
    background: var(--primary);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--foreground);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    max-width: 20rem;
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: var(--primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ============================================
   ANIMATIONS (CSS-only equivalents of Framer Motion)
   ============================================ */
.animate-fade-up {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-1.875rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(1.875rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}