/* CSS Variables & Reset */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #000000;
    --card-bg: #111111;
    --text-color: #e0e0e0;
    --accent-color: #FEDF07;
    --accent-hover: #e5c906;
    --glass-bg: rgba(254, 223, 7, 0.95);
    /* Yellow Navbar */
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --spacing-container: 900px;
    --transition-speed: 0.3s;
    --header-height: 80px;
    --category-nav-height: 60px;
}

/* ... (Keep global styles) ... */

/* Menu List Layout (New) */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item-row {
    background: #111;
    border-bottom: 1px solid #222;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.menu-item-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-item-row.active {
    background: rgba(254, 223, 7, 0.05);
    /* Tint with accent */
    border-left: 4px solid var(--accent-color);
}

.item-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    flex: 1;
}

.item-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 20px;
    border: 2px solid var(--glass-border);
    transition: transform 0.3s;
}

.menu-item-row:hover .item-thumbnail {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.item-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
}

.menu-item-row.active .item-details {
    max-height: 500px;
    /* Arbitrary large height */
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.3s 0.2s;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.detail-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.detail-text {
    flex: 1;
}

.detail-text p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Hide Grid (Old) */
.menu-grid {
    display: none;
}

/* Re-use .card placeholders only if needed or remove them. I will hide them for now to switch to list. */

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--category-nav-height) + 20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('assets/cursor_nigiri.png'), auto;
    /* Custom Cursor */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

.gold-text {
    color: var(--accent-color);
}

.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-primary.small {
    padding: 6px 15px;
    font-size: 0.6rem;
}

.btn-text {
    color: var(--accent-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    gap: 12px;
}

/* Header & Nav */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    /* Black text */
    padding: 8px 0;
    transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.7;
    color: #000;
    border-bottom: 2px solid #000;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
    /* Black hamburger */
}

.mobile-cart-icon {
    display: none;
    /* Hidden on desktop */
    font-size: 1.5rem;
    color: #000;
    /* Black cart */
    margin-right: 15px;
    /* Spacing from hamburger */
    position: relative;
    text-decoration: none;
}

.mobile-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category Nav (Sub-nav) */
.category-nav-container {
    position: sticky;
    top: var(--header-height);
    z-index: 1000;
    background: var(--bg-color);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.category-nav {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
    /* More space for the stylish scrollbar */
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
    /* Firefox */
    scrollbar-width: thin;
}

/* Custom Scrollbar for Webkit */
.category-nav::-webkit-scrollbar {
    height: 12px;
    /* Thicker for easier clicking */
}

.category-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.category-nav::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.category-nav::-webkit-scrollbar-thumb:hover {
    background: #e6b800;
    /* Darker gold/yellow */
}

.category-nav ul {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    /* Critical for scrolling */
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-nav li {
    flex-shrink: 0;
    /* Prevent items from squishing */
}

.category-nav a {
    display: block;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    /* Ensure text doesn't wrap inside button */
}

.category-nav a:hover,
.category-nav a.active {
    color: #000;
    background: var(--accent-color);
}

/* Hero Section */
/* Hero Section */
.hero {
    width: 100%;
    height: 29vw;
    /* Halved from 58vw */
    /* Maintenance aspect ratio 2048/1200 ~= 1.7 */
    max-height: 600px;
    /* Halved from 1200px */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('assets/banner2.png') no-repeat center center;
    background-size: cover;
    background-color: #000;
    margin-top: var(--header-height);
    box-shadow: inset 0 0 100px 50px #000;
    /* Deep black vignette */
}

/* ... */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

.hero-overlay {
    display: none;
    /* Remove fade */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Menu Content */
#menu-content {
    padding-top: 40px;
}

.menu-category {
    margin-bottom: 80px;
}

.category-header {
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 30px;
    padding-bottom: 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.category-header h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0;
}

.category-header p {
    color: #666;
    font-size: 0.9rem;
}

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.placeholder-img {
    height: 200px;
    background-color: #2a2d35;
    background-image: linear-gradient(45deg, #2a2d35 25%, #32353e 25%, #32353e 50%, #2a2d35 50%, #2a2d35 75%, #32353e 75%, #32353e 100%);
    background-size: 20px 20px;
}

.card-content {
    padding: 20px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.item-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.price {
    color: var(--accent-color);
    font-weight: 700;
}

.description {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
}

/* Contact Page specific */
.page-header {
    margin-top: calc(var(--header-height) + 40px);
    padding: 40px 20px 40px;
    text-align: center;
}

.contact-section {
    padding-bottom: 80px;
}

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

.contact-info {
    padding: 40px;
}

.info-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-list i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.map-container {
    height: 400px;
    width: 100%;
}

/* Footer */
footer {
    background: #08090b;
    padding: 80px 0 20px;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #000;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #666;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

    .category-nav-container {
        padding: 10px 0;
    }
}

/* ========== CART PAGE STYLES ========== */

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    position: relative;
}

/* Cart Page Layout */
.cart-page {
    min-height: 80vh;
    padding: calc(var(--header-height) + 40px) 0 60px;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-color);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

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

.empty-cart h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #888;
    margin-bottom: 30px;
}

/* Cart Content */
.cart-content {
    max-width: 800px;
    margin: 0 auto;
}

.cart-items-container {
    margin-bottom: 30px;
}

/* Cart Item */
.cart-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.cart-item-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #888;
    font-size: 0.9rem;
}

/* Quantity Controls */
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.qty-display {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Cart Item Subtotal */
.cart-item-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cart-item-subtotal span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.remove-btn {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    padding: 5px;
}

.remove-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Cart Summary */
.cart-summary {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.total-row {
    border-bottom: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    padding-top: 20px;
}

/* WhatsApp Button */
.btn-whatsapp {
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
    font-size: 1.5rem;
}

/* Clear Cart Button */
.btn-clear {
    width: 100%;
    background: transparent;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-clear:hover {
    border-color: #ff4444;
    color: #ff4444;
}

/* Continue Shopping */
.btn-continue {
    display: block;
    text-align: center;
    color: var(--accent-color);
    margin-top: 20px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-continue:hover {
    transform: translateX(-5px);
}

/* Add to Cart Button (for menu items) */
.btn-add-cart {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-cart:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 223, 7, 0.3);
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-color);
    color: #000;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Navbar for cart page */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    height: var(--header-height);
}

.nav-container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer {
    background: #08090b;
    padding: 40px 0 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

/* Mobile Responsive for Cart */
@media (max-width: 1024px) {
    .nav-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cart-item-controls {
        justify-content: flex-start;
    }

    .cart-item-subtotal {
        justify-content: space-between;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.button-group .btn-add-cart {
    margin-top: 0;
    flex: 1;
    min-width: 120px;
    padding: 8px 10px;
    font-size: 0.85rem;
}

/* Custom Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.confirm-modal {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.show .confirm-modal {
    transform: scale(1);
}

.confirm-modal h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #fff;
}

.confirm-modal p {
    color: #aaa;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-confirm,
.btn-cancel {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-confirm {
    background: #ff4444;
    color: #fff;
}

.btn-confirm:hover {
    background: #ff2222;
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Alert Mode (No Cancel Button) */
.confirm-modal.alert-mode .btn-cancel {
    display: none;
}

.confirm-modal.alert-mode .btn-confirm {
    width: 100%;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    /* Above WhatsApp button */
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    /* Yellow background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(254, 223, 7, 0.4);
    pointer-events: none;
    color: #000;
    /* Black arrow */
    font-size: 1.2rem;
}

.scroll-top-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(254, 223, 7, 0.6);
}