:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #1d3557;
    --accent: #f4a261;
    --success: #2a9d8f;
    --warning: #e9c46a;
    --danger: #e76f51;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--dark); line-height: 1.6; background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}
.logo-icon { font-size: 1.75rem; flex-shrink: 0; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.badge-count {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50px;
    position: absolute;
    top: -5px;
    right: -8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #457b9d 50%, var(--primary) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }

/* Banner slider */
.banner-slider { margin: 40px 0; }
.banner-slide {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    padding: 40px;
    color: #fff;
    min-height: 200px;
    display: flex;
    align-items: center;
}
.banner-slide h3 { font-size: 1.8rem; margin-bottom: 10px; }

/* Sections */
.section { padding: 60px 0; }
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 { font-size: 2rem; color: var(--secondary); margin-bottom: 10px; }
.section-title p { color: var(--gray); }

/* Pizza cards */
.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.pizza-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.pizza-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.pizza-card-img {
    height: 200px;
    background: linear-gradient(135deg, #ffe5d9, #ffcad4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}
.pizza-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pizza-card-body { padding: 20px; }
.pizza-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--secondary); }
.pizza-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 50px;
    background: #e9ecef;
    color: var(--gray);
}
.tag.veg { background: #d4edda; color: #155724; }
.tag.nonveg { background: #f8d7da; color: #721c24; }
.price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.price-old { text-decoration: line-through; color: var(--gray); font-size: 0.9rem; }

/* Category pills */
.category-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.category-pill {
    padding: 8px 20px;
    border-radius: 50px;
    background: #fff;
    border: 2px solid #dee2e6;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.category-pill:hover, .category-pill.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--secondary); }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-info { background: #cce5ff; color: #004085; }

/* Footer */
.site-footer {
    background: var(--secondary);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 { margin-bottom: 15px; color: var(--accent); }
.footer-grid a { color: rgba(255,255,255,0.8); display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); opacity: 0.8; }

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--secondary), #457b9d);
    color: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
}
.page-header h1 { font-size: 2rem; }

/* Cart & tables */
.cart-table, .data-table { width: 100%; border-collapse: collapse; }
.cart-table th, .data-table th {
    background: var(--secondary);
    color: #fff;
    padding: 12px;
    text-align: left;
}
.cart-table td, .data-table td { padding: 12px; border-bottom: 1px solid #eee; }
.cart-summary {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius);
    max-width: 400px;
    margin-left: auto;
}
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-summary .total { font-size: 1.3rem; font-weight: 700; color: var(--primary); border-top: 2px solid #dee2e6; padding-top: 10px; margin-top: 10px; }

/* Auth pages */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffe5e5);
}
.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
}
.auth-card h2 { text-align: center; margin-bottom: 30px; color: var(--secondary); }

/* Order tracking */
.status-timeline {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}
.status-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #dee2e6;
    z-index: 0;
}
.status-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}
.status-step .dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.status-step.active .dot, .status-step.done .dot {
    background: var(--success);
    color: #fff;
}
.status-step.active .dot { background: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .hero h1 { font-size: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; }
}
