:root {
    --primary: #c08d5d;
    --primary-light: #d4a373;
    --primary-dark: #8e6542;
    --bg-dark: #090706; /* Rich dark espresso tone */
    --bg-light: #14100e; /* Card background tone */
    --bg-card: rgba(26, 20, 17, 0.6);
    --text-white: #f8f1e9; /* Soft cream text */
    --text-muted: #b0a498;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-card: rgba(20, 16, 14, 0.7);
    --glass-border: rgba(192, 141, 93, 0.15); /* Accent gold borders */
    --shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.6);
    --shadow-inset: inset 0 2px 4px 0 rgba(255, 255, 255, 0.05);
    --accent-glow: 0 0 20px rgba(192, 141, 93, 0.15);
}

/* Base Styles & Scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-reveal {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-down {
    opacity: 0;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glassmorphism Navigation */
.glass {
    background: var(--glass-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-white);
    user-select: none;
}

.logo span {
    color: var(--primary);
    font-weight: 400;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    transform: translateY(-2px);
    background: rgba(192, 141, 93, 0.15);
    border-color: var(--primary);
    box-shadow: var(--accent-glow);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.badge-bounce {
    animation: badgeBounce 0.4s ease-out;
}

.back-link-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.back-link-nav:hover {
    color: var(--primary-light);
    border-color: var(--primary);
    background: rgba(192, 141, 93, 0.1);
    transform: translateX(-3px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('hero-bg.png') no-repeat center center/cover;
    position: relative;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(9, 7, 6, 0.4) 0%, rgba(9, 7, 6, 0.95) 85%), 
                linear-gradient(to bottom, rgba(9, 7, 6, 0.2), rgba(9, 7, 6, 1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    margin-bottom: 25px;
    line-height: 1.15;
    font-weight: 700;
}

.hero h1 span {
    color: var(--primary);
    font-style: italic;
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Premium Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-dark);
    font-weight: 700;
    padding: 16px 42px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(192, 141, 93, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(192, 141, 93, 0.35), var(--accent-glow);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    padding: 16px 42px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

/* Main Content: Menu & Filter Controls */
.menu-container {
    padding: 120px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title span {
    color: var(--primary);
    font-style: italic;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Search and Filters */
.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    background: var(--bg-light);
    padding: 20px 30px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 14px 45px 14px 50px;
    background: rgba(9, 7, 6, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary);
    background: rgba(9, 7, 6, 0.8);
    box-shadow: 0 0 15px rgba(192, 141, 93, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.search-clear-btn:hover {
    color: var(--text-white);
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 700;
    border-color: var(--primary);
    box-shadow: var(--accent-glow);
}

/* Empty Search State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: 24px;
    border: 1px dashed var(--glass-border);
    color: var(--text-muted);
    max-width: 600px;
    margin: 40px auto;
}

.empty-state svg {
    margin-bottom: 20px;
    color: var(--primary);
}

.empty-state h3 {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 8px;
}

/* Menu Group Titles */
.menu-group {
    margin-bottom: 80px;
}

.group-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.group-title span {
    color: var(--primary);
}

.group-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Products Grid & Premium Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow), var(--shadow-inset);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), var(--accent-glow);
}

.product-img {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(9, 7, 6, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-white);
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 25px;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px; /* fixed height for 2 lines */
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: -0.5px;
}

.add-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--primary-light);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: scale(1.08) rotate(90deg);
    box-shadow: var(--accent-glow);
}

.add-btn.added {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
    transform: scale(1.08) rotate(0deg);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: rgba(20, 16, 14, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--primary);
    color: var(--text-white);
    padding: 16px 22px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
    max-width: 350px;
}

.toast.hide {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
}

.toast-icon {
    background: var(--primary);
    color: var(--bg-dark);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.toast-error {
    border-color: #f44336;
}

.toast-error .toast-icon {
    background: #f44336;
    color: white;
}

/* Cart Page Framework (2 Columns) */
.cart-body-bg {
    background: radial-gradient(circle at top right, rgba(192, 141, 93, 0.08) 0%, rgba(9, 7, 6, 1) 70%);
}

.cart-page {
    padding: 140px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

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

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

@media (max-width: 992px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

.glass-card {
    background: var(--glass-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--shadow);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.card-title svg {
    color: var(--primary);
}

/* Cart List and Items */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    transition: all 0.3s ease;
    gap: 15px;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--glass-border);
}

.cart-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cart-item-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--bg-dark);
}

.cart-item-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-white);
}

.cart-item-price {
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(9, 7, 6, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 4px;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-white);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.qty-num {
    font-size: 0.92rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
}

.empty-cart-message {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-cart-message svg {
    margin-bottom: 15px;
    color: var(--glass-border);
}

/* Cart Checkout Form */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 13px 18px;
    background: rgba(9, 7, 6, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    background: rgba(9, 7, 6, 0.7);
    box-shadow: 0 0 10px rgba(192, 141, 93, 0.1);
}

.form-group input.input-error {
    border-color: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.15);
}

.payment-info {
    background: rgba(192, 141, 93, 0.08);
    border: 1px dashed rgba(192, 141, 93, 0.3);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cash-badge {
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.payment-desc {
    font-size: 0.88rem;
    color: var(--primary-light);
    line-height: 1.4;
}

/* Order Summary */
.cart-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.summary-row .val {
    color: var(--text-white);
    font-weight: 600;
}

.summary-row .val.free {
    color: #4caf50;
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 15px 0;
}

.summary-row.total {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 25px;
}

.summary-row.total .val {
    color: var(--primary-light);
    font-size: 1.45rem;
}

.checkout-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 16px 0;
}

/* Footer Section */
footer {
    padding: 60px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 15px auto 25px;
    max-width: 450px;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 25px 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        padding: 10px;
    }
    nav {
        padding: 10px 20px;
    }
    .logo {
        font-size: 1.35rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .controls-wrapper {
        padding: 15px 20px;
        border-radius: 16px;
    }
    .filter-tabs {
        width: 100%;
        justify-content: center;
    }
    .filter-tab {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.82rem;
        text-align: center;
    }
    .glass-card {
        padding: 20px;
    }
    .toast-container {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    .toast {
        max-width: none;
    }
}
