/* ====================================
   Pathak Batti Chokaha — Style Sheet
   Dark + Saffron Premium Theme v2
   ==================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #141428;
    --bg-card: #1a1a35;
    --bg-card-hover: #22224a;
    --bg-glass: rgba(26, 26, 53, 0.7);
    --saffron: #ff6b35;
    --saffron-light: #ff8c5a;
    --saffron-dark: #e05520;
    --saffron-glow: rgba(255, 107, 53, 0.3);
    --gold: #f7931e;
    --gold-light: #ffc857;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 107, 53, 0.3);
    --nav-height: 92px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px var(--saffron-glow);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--saffron);
    text-decoration: none;
}

a:hover {
    color: var(--saffron-light);
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--saffron-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--saffron-glow), 0 0 60px rgba(255, 107, 53, 0.15);
    }
}

@keyframes toastIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(13, 13, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.3s;
    overflow: hidden;
}

.navbar.scrolled {
    background: rgba(13, 13, 26, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-top {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    font-size: px;
    filter: drop-shadow(0 0 8px var(--saffron-glow));
}

.nav-logo .logo-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(255, 107, 53, 0.28));
    border-radius: 100%;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.accent {
    color: var(--saffron);
}

/* Desktop nav links */
.nav-desktop-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--saffron);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--saffron);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-logout {
    color: var(--danger) !important;
}

.nav-seller {
    color: var(--gold) !important;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--saffron);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 99px;
    margin-left: 4px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile dropdown - sits OUTSIDE nav, so no stacking issues */
.mobile-dropdown {
    display: none;
}

/* ---------- PAGES ---------- */
.page {
    display: none;
    padding-top: var(--nav-height);
    min-height: 100vh;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

/* ---------- HERO ---------- */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px 60px 60px;
    max-width: 1340px;
    margin: 0 auto;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--saffron-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--saffron);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-image {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.hero-img {
    width: 420px;
    height: 420px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--saffron-glow);
    animation: glow 3s ease-in-out infinite;
}

.hero-img-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--saffron-glow) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    color: #fff;
    box-shadow: 0 4px 16px var(--saffron-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--saffron-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--saffron);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-xs);
    justify-content: center;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-icon:hover {
    border-color: var(--saffron);
    color: var(--saffron);
}

/* ---------- FORM INPUTS ---------- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group input,
.input-group select,
.input-group textarea,
.form-input,
.form-select {
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus,
.form-input:focus,
.form-select:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px var(--saffron-glow);
}

.input-group textarea {
    resize: vertical;
}

.input-group select option,
.form-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-select {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---------- SECTIONS ---------- */
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-dark {
    background: var(--bg-secondary);
    max-width: 100%;
}

.section-dark>* {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 107, 53, 0.12);
    color: var(--saffron);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 99px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---------- PREVIEW / FEATURES ---------- */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.preview-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s;
}

.preview-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.preview-img-wrap {
    height: 220px;
    overflow: hidden;
}

.preview-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.preview-card:hover .preview-img-wrap img {
    transform: scale(1.08);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    background: rgba(255, 107, 53, 0.9);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 99px;
    letter-spacing: 0.5px;
}

.preview-info {
    padding: 20px 24px 24px;
}

.preview-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.preview-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.preview-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--saffron);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ---------- AUTH ---------- */
.auth-container {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .logo-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.auth-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--saffron);
    font-weight: 600;
}

/* ---------- MENU GRID ---------- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.menu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.35s;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.menu-card:nth-child(1) {
    animation-delay: 0.05s;
}

.menu-card:nth-child(2) {
    animation-delay: 0.1s;
}

.menu-card:nth-child(3) {
    animation-delay: 0.15s;
}

.menu-card:nth-child(4) {
    animation-delay: 0.2s;
}

.menu-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.menu-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.menu-card:hover .menu-card-img img {
    transform: scale(1.08);
}

.menu-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    color: var(--saffron-light);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-card-unavailable {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(248, 113, 113, 0.2);
    color: var(--danger);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 99px;
}

.menu-card-body {
    padding: 18px 20px 22px;
}

.menu-card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.menu-card-body .desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--saffron);
}

.btn-add-cart {
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--saffron-glow);
}

.btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Image Upload Area */
.img-upload-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.img-upload-area input[type="url"] {
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    outline: none;
    min-width: 200px;
}

.img-upload-area input[type="url"]:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px var(--saffron-glow);
}

.upload-progress {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 99px;
    overflow: hidden;
}

.upload-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    border-radius: 99px;
    width: 0%;
    transition: width 0.3s;
}

.upload-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ---------- CART ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-items:has(.empty-cart-state) {
    grid-column: 1 / -1;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: border-color 0.3s;
    animation: slideDown 0.3s ease forwards;
}

.cart-item:hover {
    border-color: var(--border-hover);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.cart-item-info .cart-item-price {
    color: var(--saffron);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-controls .qty {
    font-weight: 600;
    font-size: 1rem;
    min-width: 28px;
    text-align: center;
}

.cart-item-remove {
    margin-left: 8px;
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

/* Cart Summary */
.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.summary-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.summary-section {
    margin-bottom: 16px;
}

.summary-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.summary-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-line.discount {
    color: var(--success);
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.summary-total span:last-child {
    color: var(--saffron);
}

.summary-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.coupon-row {
    display: flex;
    gap: 8px;
}

.coupon-row .form-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.coupon-status {
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    margin-top: 8px;
}

.coupon-success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--success);
}

.coupon-error {
    background: rgba(248, 113, 113, 0.1);
    color: var(--danger);
}

.selected-address-preview {
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 20px;
}

/* Enhanced Empty Cart */
.empty-cart-state {
    text-align: center;
    padding: 100px 24px 80px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-cart-illustration {
    margin-bottom: 28px;
    position: relative;
    display: inline-block;
}

.empty-cart-icon {
    font-size: 5rem;
    display: block;
    animation: cartFloat 3s ease-in-out infinite;
    filter: grayscale(0.3);
}

.empty-cart-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.empty-cart-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--saffron);
    opacity: 0.3;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.empty-cart-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.empty-cart-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

.empty-cart-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-cart-state p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes cartFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ---------- CUSTOMER DASHBOARD ---------- */
.dash-tabs,
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 4px;
    width: fit-content;
    flex-wrap: wrap;
}

.dash-tab,
.admin-tab {
    padding: 10px 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.3s;
}

.dash-tab.active,
.admin-tab.active {
    background: var(--saffron);
    color: #fff;
}

.dash-panel,
.admin-panel {
    display: none;
}

.dash-panel.active,
.admin-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Profile Card */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-row {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.profile-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 100px;
}

.profile-row span:last-child {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Address Cards */
.address-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

.address-form-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.address-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    transition: border-color 0.3s;
    position: relative;
}

.address-card:hover {
    border-color: var(--border-hover);
}

.address-card-label {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 107, 53, 0.12);
    color: var(--saffron);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 99px;
    margin-bottom: 8px;
}

.address-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.address-card .pincode {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.address-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

/* ---------- ORDERS (shared) ---------- */
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
    margin-bottom: 16px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.order-id {
    font-weight: 600;
    font-size: 0.9rem;
}

.order-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.order-status {
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

.status-confirmed {
    background: rgba(96, 165, 250, 0.15);
    color: var(--info);
}

.status-preparing {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

.status-out_for_delivery {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}

.status-delivered {
    background: rgba(52, 211, 153, 0.15);
    color: var(--success);
}

.status-cancelled {
    background: rgba(248, 113, 113, 0.15);
    color: var(--danger);
}

.order-card-body {
    padding: 16px 20px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1rem;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.order-total-row span:last-child {
    color: var(--saffron);
}

/* Order customer info (seller view) */
.order-customer-info {
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-xs);
    margin-bottom: 12px;
}

.order-customer-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.order-customer-info strong {
    color: var(--text-primary);
}

.status-select {
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
}

.status-select:focus {
    border-color: var(--saffron);
}

/* ---------- SELLER PANEL ---------- */
.admin-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

.admin-form-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.admin-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.admin-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: border-color 0.3s;
}

.admin-product-card:hover {
    border-color: var(--border-hover);
}

.admin-product-card.hidden-product {
    opacity: 0.6;
}

.admin-product-card img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
}

.admin-product-info {
    flex: 1;
}

.admin-product-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.admin-product-info .admin-price {
    color: var(--saffron);
    font-weight: 600;
    font-size: 0.85rem;
}

.admin-product-info .visibility-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.admin-product-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Offers */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.offer-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 147, 30, 0.05));
    border: 1px dashed var(--saffron);
    border-radius: var(--radius);
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '🎉';
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.offer-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--saffron);
}

.offer-card .offer-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.offer-code-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--saffron);
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--saffron);
    letter-spacing: 1px;
    font-family: monospace;
}

.offer-details {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.offer-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.offers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

/* ---------- LOADING / TOAST ---------- */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--saffron);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 16px);
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.88rem;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s ease forwards;
    min-width: 280px;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.toast-out {
    animation: toastOut 0.4s ease forwards;
}

.toast-success {
    border-left: 3px solid var(--success);
}

.toast-error {
    border-left: 3px solid var(--danger);
}

.toast-info {
    border-left: 3px solid var(--info);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.25fr 1.25fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-links h4,
.footer-makers h4,
.footer-contact h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--saffron);
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 3px 0;
}

.maker-list {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.maker-card {
    text-align: center;
}

.maker-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-hover);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.maker-card p {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-img {
        width: 280px;
        height: 280px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 48px 20px;
    }
}

@media (max-width:768px) {

    /* ─── MOBILE NAVBAR ─── */
    .nav-desktop-links {
        display: none !important;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-dropdown {
        display: block;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #0d0d1a;
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 999;
        border-bottom: 2px solid transparent;
    }

    .mobile-dropdown.open {
        max-height: 400px;
        padding: 12px 20px 20px;
        border-bottom: 2px solid var(--border-hover);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    }

    .mob-link {
        display: block;
        padding: 14px 16px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-secondary);
        text-decoration: none;
        border-radius: var(--radius-xs);
        transition: background 0.2s, color 0.2s;
    }

    .mob-link:hover,
    .mob-link.active {
        color: var(--saffron);
        background: rgba(255, 107, 53, 0.08);
    }

    .mob-link.nav-logout {
        color: var(--danger);
    }

    .mob-link.nav-seller {
        color: var(--gold);
    }

    .nav-top {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .nav-logo .logo-icon {
        width: 58px;
        height: 58px;
    }

    /* ─── HERO ─── */
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-img {
        width: 200px;
        height: 200px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* ─── SECTIONS ─── */
    .section {
        padding: 36px 16px;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* ─── GRIDS ─── */
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .address-list {
        grid-template-columns: 1fr;
    }

    .offers-grid,
    .offers-list {
        grid-template-columns: 1fr;
    }

    /* ─── FORMS ─── */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-form-card,
    .address-form-card {
        padding: 20px 16px;
    }

    .img-upload-area {
        flex-direction: column;
        align-items: stretch;
    }

    .img-upload-area input[type="url"] {
        min-width: auto;
        width: 100%;
    }

    /* ─── CART ─── */
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cart-item-img {
        width: 70px;
        height: 70px;
    }

    .cart-item-info {
        min-width: 0;
        flex: 1;
    }

    .cart-item-controls {
        margin-left: auto;
    }

    .summary-card {
        position: static;
    }

    /* ─── DASHBOARD ─── */
    .dash-tabs,
    .admin-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dash-tabs::-webkit-scrollbar,
    .admin-tabs::-webkit-scrollbar {
        display: none;
    }

    .dash-tab,
    .admin-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .profile-card {
        padding: 20px 16px;
    }

    .profile-row {
        flex-direction: column;
        gap: 2px;
    }

    .profile-label {
        min-width: auto;
    }

    /* ─── ORDERS ─── */
    .order-card-header {
        padding: 12px 16px;
    }

    .order-card-body {
        padding: 16px;
    }

    .order-id {
        font-size: 0.82rem;
    }

    /* ─── SELLER ─── */
    .admin-products-list {
        grid-template-columns: 1fr;
    }

    .admin-product-card {
        flex-direction: column;
    }

    .admin-product-img {
        width: 100%;
        height: 140px;
    }

    /* ─── CHECKOUT ─── */
    .coupon-row {
        flex-direction: column;
    }

    .coupon-row .form-input {
        width: 100%;
    }

    .selected-address-preview {
        font-size: 0.8rem;
    }

    /* ─── AUTH ─── */
    .auth-card {
        padding: 28px 20px;
    }

    .footer {
        padding: 32px 16px 16px;
    }
}

@media (max-width:480px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-img {
        width: 160px;
        height: 160px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 28px 12px;
    }

    .dash-tabs,
    .admin-tabs {
        width: 100%;
    }

    .dash-tab,
    .admin-tab {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 0.78rem;
    }

    .menu-card-body {
        padding: 14px 16px 16px;
    }

    .btn-add-cart {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .empty-cart-icon {
        font-size: 3.5rem;
    }

    .empty-cart-state h3 {
        font-size: 1.2rem;
    }

    .empty-cart-state {
        padding: 60px 16px 40px;
        min-height: 40vh;
    }

    .summary-card {
        padding: 20px 16px;
    }

    .preview-info {
        padding: 16px;
    }

    .preview-info h3 {
        font-size: 1rem;
    }

    .order-customer-info p {
        font-size: 0.8rem;
        word-break: break-word;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-icon {
        font-size: 22px;
    }

    .nav-logo .logo-icon {
        width: 48px;
        height: 48px;
    }
}
