/* ========== DESIGN TOKENS ========== */
:root {
    --bg-color: #0d0d0d;
    --surface-color: #1a1a1a;
    --surface-hover: #262626;

    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;

    --accent-color: #FFB800;
    --accent-hover: #e6a600;

    --danger-color: #ff4757;

    --font-main: 'Outfit', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-round: 50px;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(255, 184, 0, 0.15);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* ========== HEADER ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 5%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-color);
}

.logo i {
    color: var(--accent-color);
}

/* Categories Nav (Scrollable on mobile) */
.categories-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    width: 100%;
    padding-bottom: 0.2rem;
}

.categories-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

@media (min-width: 768px) {
    .categories-nav {
        width: auto;
        padding-bottom: 0;
    }
}

.cat-btn {
    padding: 0.5rem 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-round);
    background-color: transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cat-btn.active,
.cat-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* ========== HERO SECTION ========== */
.hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    padding: 2rem 5% 4rem;
    gap: 2rem;
    min-height: 60vh;
    background: radial-gradient(circle at center, #2a2a2a 0%, var(--bg-color) 70%);
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero-content {
        flex: 1;
        padding-right: 2rem;
    }

    .hero-image {
        flex: 1.2;
    }
}

.badge {
    display: inline-block;
    background-color: rgba(255, 184, 0, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-round);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent-color);
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 400px;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(var(--shadow-glow));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* ========== MENU SEC'TION ========== */
.menu-container {
    padding: 4rem 5% 8rem;
    /* Extra padding bottom for floating cart */
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Card Design */
.menu-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.menu-card:hover {
    transform: translateY(-5px);
    background-color: var(--surface-hover);
    box-shadow: var(--shadow-soft);
}

.card-img-container {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.card-img-container img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.menu-card:hover .card-img-container img {
    transform: scale(1.1);
}

.card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

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

.card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-color);
}

.add-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.menu-card:hover .add-btn {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* ========== FLOATING CART ========== */
.floating-cart {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
    z-index: 90;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========== CART MODAL ========== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-modal {
    position: absolute;
    top: 0;
    right: -100%;
    /* Slide from right */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--surface-color);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-overlay.active .cart-modal {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-header h2 {
    font-size: 1.5rem;
}

.close-cart {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.close-cart:hover {
    color: var(--text-primary);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 2rem;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-color);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

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

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--surface-color);
    border-radius: var(--radius-round);
    padding: 0.2rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.qty-btn:hover {
    background-color: var(--text-secondary);
}

.item-qty {
    font-size: 0.9rem;
    font-weight: 600;
    width: 15px;
    text-align: center;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--surface-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    background-color: #25D366;
    /* WhatsApp Green */
    color: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s, transform 0.2s;
}

.checkout-btn:hover:not(:disabled) {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.checkout-btn:disabled {
    background-color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background-color: var(--surface-color);
    color: var(--text-primary);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: slideInRight 0.3s ease forwards;
    transition: opacity 0.3s ease;
}

.toast i {
    color: var(--accent-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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