/* ============================================================
   TELEBHAJA - Main Stylesheet
   Premium street-food luxury design system
   Primary: #ffd505 | Light Theme
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #ffd505;
    --primary-dark: #ffd505;
    --primary-light: #ffd505;
    --primary-glow: rgba(255, 213, 5, 0.12);
    --secondary: #111111;
    --accent: #111111;
    --bg-dark: #faf8f2;
    --bg-darker: #f3f0e6;
    --bg-card: #ffffff;
    --bg-card-hover: #fdfcf9;
    --bg-light: #f5f5f0;
    --text-primary: #111111;
    --text-secondary: #333333;
    --text-dark: #111111;
    --text-muted: #666666;
    --success: #0d9668;
    --warning: #d4910a;
    --error: #dc3545;
    --info: #2e6dbf;
    --border: rgba(0, 0, 0, 0.07);
    --border-light: rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 4px 24px rgba(235, 196, 5, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --nav-height: 72px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--text-primary);
}

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

/* ---- Flash Messages ---- */
.flash-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 14px 0;
    animation: slideDown 0.4s ease;
}

.flash-message .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.flash-error {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #7f1d1d;
}

.flash-info {
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    color: #1e3a5f;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ---- Navigation ---- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    transition: var(--transition);
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
    background: var(--primary-glow);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-cart {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 1.1rem;
}

.nav-cart:hover {
    background: var(--primary-glow);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cart-count:empty,
.cart-count[data-count="0"] {
    display: none;
}

.nav-user-dropdown {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-user-btn:hover {
    background: var(--bg-darker);
    border-color: var(--primary);
}

.nav-user-btn .fa-chevron-down {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-user-dropdown.open .nav-user-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-user-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--primary-glow);
    color: var(--primary-dark);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.logout-link:hover {
    color: var(--accent) !important;
    background: rgba(217, 56, 80, 0.06) !important;
}

.nav-login-btn {
    font-size: 0.9rem !important;
    padding: 8px 20px !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(235, 196, 5, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-darker);
    border-color: var(--primary);
    color: var(--primary-dark);
}

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

.btn-accent:hover {
    background: #c22e46;
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ---- Section Styles ---- */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-glow);
    color: var(--primary-dark);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(201, 162, 4, 0.2);
}

/* ---- Hero Section ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 80%, rgba(201, 162, 4, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(217, 56, 80, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, #faf8f2 0%, #f5f0e0 100%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-full);
    opacity: 0.15;
    animation: float-particle 15s infinite ease-in-out;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(50px, -100px) scale(1.5);
        opacity: 0.3;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 560px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--primary-glow);
    border: 1px solid rgba(201, 162, 4, 0.2);
    border-radius: var(--radius-xl);
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-family: var(--font-display);
}

.hero-stat p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 0.8s ease 0.3s both;
}

.hero-image-wrapper {
    position: relative;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(201, 162, 4, 0.1), rgba(217, 56, 80, 0.05));
    border: 2px solid rgba(201, 162, 4, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 4s ease-in-out infinite;
}

.hero-image-wrapper .hero-emoji {
    font-size: 12rem;
    filter: drop-shadow(0 0 40px rgba(201, 162, 4, 0.2));
}

.hero-float-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.hero-float-card:nth-child(2) {
    top: 50px;
    left: -40px;
    animation-delay: 0.5s;
}

.hero-float-card:nth-child(3) {
    bottom: 80px;
    right: -30px;
    animation-delay: 1s;
}

.hero-float-card:nth-child(4) {
    bottom: 20px;
    left: 10px;
    animation-delay: 1.5s;
}

.hero-float-card .card-icon {
    font-size: 1.5rem;
}

.hero-float-card .card-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.hero-float-card .card-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(201, 162, 4, 0.07);
    }

    50% {
        box-shadow: 0 0 60px rgba(201, 162, 4, 0.12);
    }
}

/* ---- Categories Section ---- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 162, 4, 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.category-card:hover::before {
    opacity: 1;
}

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

.category-card h3 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-primary);
}

.category-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- Dish Card ---- */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.dish-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow);
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(201, 162, 4, 0.3);
}

.dish-image {
    height: 200px;
    background: linear-gradient(135deg, #f5f0e0, #ebe5d0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.dish-card:hover .dish-image img {
    transform: scale(1.08);
}

.dish-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.dish-badge.veg {
    background: #d1fae520;
    color: #0d9668;
    border: 1px solid #0d966840;
}

.dish-badge.non-veg {
    background: #fecaca20;
    color: #dc3545;
    border: 1px solid #dc354540;
}

.dish-featured-badge {
    position: absolute;
    top: 12px;
    right: 48px;
    padding: 4px 10px;
    background: var(--primary-glow);
    color: var(--primary-dark);
    border: 1px solid rgba(201, 162, 4, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
}

.dish-info {
    padding: 20px;
}

.dish-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--font-body);
}

.dish-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dish-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: var(--font-display);
}

.dish-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--warning);
    font-size: 0.85rem;
}

.dish-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 8px;
}

.dish-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.85rem;
}

/* Dish quantity control */
.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-glow);
}

.qty-value {
    width: 36px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    border: none;
    background: none;
}

/* ---- About/Story Section ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f5f0e0, #ebe5d0);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(201, 162, 4, 0.08), transparent 70%);
}

.about-image .about-emoji {
    font-size: 8rem;
    position: relative;
    z-index: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.about-text h2 span {
    color: var(--primary-dark);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-feature i {
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.about-feature span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---- Testimonials ---- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.15;
    font-family: var(--font-display);
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

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

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.testimonial-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.testimonial-stars {
    color: var(--warning);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ---- Blog Cards ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(201, 162, 4, 0.3);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, #f5f0e0, #ebe5d0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-card-image .blog-emoji {
    font-size: 4rem;
}

.blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--primary-glow);
    color: var(--primary-dark);
    border: 1px solid rgba(201, 162, 4, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-meta i {
    color: var(--primary-dark);
    margin-right: 4px;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    transition: var(--transition);
}

.blog-card:hover h3 {
    color: var(--primary-dark);
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .read-more {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---- Blog Single ---- */
.blog-single {
    padding-top: calc(var(--nav-height) + 40px);
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 0;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.blog-header-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-header-meta i {
    color: var(--primary-dark);
}

.blog-body {
    max-width: 800px;
    margin: 0 auto;
}

.blog-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.blog-body h3 {
    color: var(--primary-dark);
    margin: 30px 0 14px;
    font-size: 1.4rem;
}

.blog-body blockquote {
    border-left: 3px solid var(--primary);
    padding: 16px 24px;
    margin: 20px 0;
    background: var(--bg-darker);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.blog-tags {
    margin: 30px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-tag {
    padding: 6px 14px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.blog-tag:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* ---- Comments ---- */
.comments-section {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.comment-item {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-dark);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238a857a'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---- Auth Pages ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    padding-bottom: 40px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-card .auth-footer a {
    color: var(--primary-dark);
    font-weight: 600;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ---- Cart Page ---- */
.cart-page {
    padding-top: calc(var(--nav-height) + 40px);
    min-height: 100vh;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cart-item:hover {
    border-color: rgba(201, 162, 4, 0.2);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    flex-shrink: 0;
    background: linear-gradient(135deg, #f5f0e0, #ebe5d0);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    margin-bottom: 4px;
}

.cart-item-info .item-price {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.cart-item-remove {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    background: none;
    border: none;
}

.cart-item-remove:hover {
    color: var(--accent);
}

.cart-item-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

.cart-summary {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

.cart-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
}

.summary-row.text-muted {
    color: var(--text-muted);
}

.summary-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

.summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty .empty-icon {
    font-size: 5rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-empty h2 {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ---- Menu Page ---- */
.menu-page {
    padding-top: calc(var(--nav-height) + 20px);
    min-height: 100vh;
}

.menu-header {
    padding: 40px 0 30px;
    text-align: center;
}

.menu-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.menu-header p {
    color: var(--text-secondary);
}

.menu-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 0 20px;
}

.menu-filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.menu-filter-btn:hover,
.menu-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.menu-search {
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
}

.menu-search input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.menu-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.menu-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ---- Checkout ---- */
.checkout-page {
    padding-top: calc(var(--nav-height) + 40px);
    min-height: 100vh;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.checkout-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.checkout-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: var(--font-body);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ---- My Orders ---- */
.orders-page {
    padding-top: calc(var(--nav-height) + 40px);
    min-height: 100vh;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.order-card:hover {
    border-color: rgba(201, 162, 4, 0.2);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-number {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1rem;
}

.order-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
}

.order-items-list {
    margin: 12px 0;
}

.order-items-list .oi-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ---- Contact Page ---- */
.contact-page {
    padding-top: calc(var(--nav-height) + 40px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-info-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-glow);
    color: var(--primary-dark);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 0.95rem;
    font-family: var(--font-body);
    margin-bottom: 2px;
}

.contact-info-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-map {
    margin-top: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 250px;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Page Header ---- */
.page-header {
    padding: 60px 0 30px;
    padding-top: calc(var(--nav-height) + 40px);
    text-align: center;
    background: linear-gradient(180deg, rgba(201, 162, 4, 0.04), transparent);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
}

.breadcrumb a {
    color: var(--primary-dark);
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    margin-top: 60px;
}

.footer-wave {
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 80px;
}

.footer-main {
    background: #1e1c16;
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.footer-desc {
    color: #a39e90;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: #a39e90;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-socials a:hover {
    background: rgba(201, 162, 4, 0.15);
    color: var(--primary);
    border-color: var(--primary);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: #e8e4da;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a39e90;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    color: #a39e90;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    margin-top: 40px;
}

.newsletter-content h4 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    margin-bottom: 4px;
    color: #e8e4da;
}

.newsletter-content h4 i {
    color: var(--primary);
    margin-right: 6px;
}

.newsletter-content p {
    color: #a39e90;
    font-size: 0.85rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.newsletter-form input {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: #e8e4da;
    min-width: 260px;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: #a39e90;
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.footer-bottom {
    background: #16140f;
    padding: 18px 0;
    text-align: center;
    color: #a39e90;
    font-size: 0.85rem;
}

/* ---- Profile Page ---- */
.profile-page {
    padding-top: calc(var(--nav-height) + 40px);
    min-height: 100vh;
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.profile-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 30px;
    text-align: center;
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
}

.profile-sidebar h2 {
    font-size: 1.2rem;
    font-family: var(--font-body);
    margin-bottom: 4px;
}

.profile-sidebar p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.profile-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow);
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.pagination a {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--primary-glow);
    color: var(--primary-dark);
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }

    .hero-float-card {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-newsletter {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-form input {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 4px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        border-left: 1px solid var(--border);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image-wrapper {
        width: 250px;
        height: 250px;
    }

    .hero-image-wrapper .hero-emoji {
        font-size: 8rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .dishes-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        gap: 20px;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 120px;
    }

    .auth-card {
        padding: 28px 20px;
        margin: 0 16px;
    }
}

/* ---- Utility Classes ---- */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-dark) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ---- Loading Spinner ---- */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Search Page ---- */
.search-page {
    padding-top: calc(var(--nav-height) + 40px);
    min-height: 100vh;
}

.search-results-info {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.search-results-info strong {
    color: var(--primary-dark);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results .empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Product Quick View Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    width: 95%;
    max-width: 1000px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #4b5563;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #111;
}

.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.product-gallery {
    background: #f9fafb;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.qv-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.7;
}

.qv-thumbnail:hover,
.qv-thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
}

.product-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

.product-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-badge.veg {
    background: #d1fae5;
    color: #065f46;
}

.product-badge.non-veg {
    background: #fee2e2;
    color: #991b1b;
}

.product-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.rating {
    color: #ebc405;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.review-count {
    color: #9ca3af;
    font-weight: 400;
}

.orders-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-description {
    line-height: 1.6;
    color: #4b5563;
    font-size: 0.95rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0 5px;
    border: 1px solid #e5e7eb;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    color: #4b5563;
}

.qty-btn:hover {
    color: #111;
}

.product-actions .btn-primary {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
}

/* Reviews Section in Modal */
.product-reviews-section {
    margin-top: 20px;
}

.product-reviews-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.reviews-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.review-item {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.review-author {
    font-weight: 600;
    color: #111;
}

.review-date {
    color: #9ca3af;
}

.review-stars {
    color: #ebc405;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.review-text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.review-form {
    background: #ffff;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 8px;
}

.review-form h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 1.5rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input label:hover,
.rating-input label:hover~label,
.rating-input input:checked~label {
    color: #ebc405;
}

.review-form textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    font-family: inherit;
    margin-bottom: 10px;
    resize: vertical;
    min-height: 80px;
}

/* Media Queries */
@media (max-width: 768px) {
    .product-details-container {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        padding: 20px;
    }

    .main-image {
        aspect-ratio: 16/9;
    }

    .product-info {
        padding: 20px;
        max-height: none;
        overflow: visible;
    }
}

/* Quick View Button on Card */
.quick-view-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.quick-view-btn:hover {
    background: var(--primary);
    color: #fff;
}

.dish-stats {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.dish-stats i {
    color: #ebc405;
}

.dish-actions {
    gap: 8px;
}

/* Improved Quick View Styles */
.modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.quick-view-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.quick-view-btn i {
    font-size: 1rem;
    color: #555;
}

.quick-view-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 213, 5, 0.3);
}

.quick-view-btn:hover i {
    color: #fff;
}

/* Ensure stars are visible */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.rating-input label:hover,
.rating-input label:hover~label,
.rating-input input:checked~label {
    color: #ebc405;
}

/* ============ BACK TO TOP ============ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(235, 196, 5, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(235, 196, 5, 0.5);
}

/* ============ ORDER TRACKING ============ */

.order-tracker {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 0 10px;
    position: relative;
}

.order-tracker::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--border);
    z-index: 0;
}

.order-tracker .tracker-progress {
    position: absolute;
    top: 34px;
    left: 24px;
    height: 3px;
    background: var(--primary);
    z-index: 1;
    transition: width 0.5s ease;
}

.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    gap: 6px;
}

.tracker-step .step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tracker-step.active .step-icon,
.tracker-step.completed .step-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.tracker-step .step-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.tracker-step.active .step-label,
.tracker-step.completed .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* ============ WISHLIST ============ */

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ccc;
    transition: all 0.3s ease;
    z-index: 3;
}

.wishlist-btn:hover {
    color: #e74c3c;
    transform: scale(1.15);
}

.wishlist-btn.active {
    color: #e74c3c;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.wishlist-btn.pop {
    animation: heartPop 0.4s ease;
}