/* 
    SUSHITO - TASTE LUXE PREMIUM
    Design Language: High-Agency, Asymmetric, Cinematic
*/

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@800,700,500&f[]=satoshi@400,500,700&display=swap');

:root {
    /* Perceptually uniform OKLCH colors */
    --zinc-950: oklch(12% 0.01 260); /* Deep Neutral Slate */
    --zinc-900: oklch(18% 0.01 260);
    --zinc-100: oklch(96% 0.01 260);
    --white: oklch(100% 0 0);
    
    /* Calibrated Magenta (< 80% saturation) */
    --accent: oklch(62% 0.22 350); 
    --accent-dim: oklch(62% 0.22 350 / 0.15);
    
    --text-primary: var(--white);
    --text-secondary: oklch(75% 0.01 260);
    
    /* Layout Tokens */
    --radius-luxe: 2.5rem;
    --shadow-diffusion: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
    
    /* Displacement Motion Curve */
    --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-hq: all 0.7s var(--ease-cinematic);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--zinc-950);
    color: var(--text-primary);
    font-family: 'Satoshi', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

/* --- Layout Architecture --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 160px 0;
}

/* --- Asymmetric Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition-hq);
}

nav.scrolled {
    background: oklch(12% 0.01 260 / 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid oklch(100% 0 0 / 0.05);
    padding: 20px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 48px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-hq);
}

.nav-links a:hover { color: var(--accent); }

/* --- Asymmetric Hero (Split Screen) --- */
.hero {
    min-height: 100dvh; /* Mobile safe full-height */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

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

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.hero-tag {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin-bottom: 24px;
    display: block;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 32px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 45ch;
}

.hero-asset {
    position: relative;
    height: 80vh;
    border-radius: var(--radius-luxe);
    overflow: hidden;
}

.hero-asset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

/* --- Bento 2.0 (Labels Outside) --- */
.bento-section-title {
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 48px;
}

.bento-card-outer {
    transition: var(--transition-hq);
}

.card-image-wrap {
    position: relative;
    border-radius: var(--radius-luxe);
    overflow: hidden;
    background: var(--zinc-900);
    margin-bottom: 24px;
    aspect-ratio: 1;
}

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

.bento-card-outer:hover .card-image-wrap img {
    transform: scale(1.05);
}

.card-label {
    padding-left: 12px;
}

.card-label h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.card-label span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Interactive Menu --- */
.menu-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 80px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.menu-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-hq);
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--white);
    transform: translateX(10px);
}

.tab-btn.active::before {
    content: '→';
    margin-right: 12px;
    color: var(--accent);
}

@media (min-width: 901px) {
    .tab-btn { font-size: 1.05rem; letter-spacing: 0.02em; }
    .tab-btn.active { transform: translateX(6px); }
    .tab-btn.active::before { margin-right: 8px; }
    .menu-tabs.vertical { gap: 14px; }
}

/* --- Motion Engine --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-hq);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Tactile CTAs --- */
.btn {
    display: inline-block;
    padding: 20px 40px;
    background: var(--white);
    color: var(--zinc-950);
    text-decoration: none;
    font-weight: 700;
    border-radius: 100px;
    transition: var(--transition-hq);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.btn:active {
    transform: scale(0.96);
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-asset { height: 50vh; }
    .bento-grid { display: flex; flex-direction: column; }
    .nav-links { display: none; }
}

/* --- Floating Cart --- */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    background: oklch(12% 0.01 260 / 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid oklch(100% 0 0 / 0.05);
    border-radius: var(--radius-luxe);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
    transform: translateY(120%) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Symmetrical smooth exit */
    pointer-events: none;
}

.floating-cart.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    transition: var(--transition-hq); /* Punchy cinematic entrance */
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid oklch(100% 0 0 / 0.05);
    padding-bottom: 15px;
}

.cart-header h3 {
    font-size: 1.2rem;
    color: var(--white);
}

.cart-header span {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

.cart-items {
    max-height: 40vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 10px;
}

.cart-items::-webkit-scrollbar {
    width: 4px;
}
.cart-items::-webkit-scrollbar-thumb {
    background: oklch(100% 0 0 / 0.1);
    border-radius: 4px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.cart-item-info {
    flex: 1;
    padding-right: 15px;
}

.cart-item-name {
    font-weight: 500;
    color: var(--white);
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-footer {
    border-top: 1px solid oklch(100% 0 0 / 0.05);
    padding-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.empty-cart-msg {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
    padding: 20px 0;
}

/* --- Qty Controls on Image --- */
.qty-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    background: oklch(12% 0.01 260 / 0.75);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 4px 6px;
    border: 1px solid oklch(100% 0 0 / 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 5;
    transition: var(--transition-hq);
    opacity: 0;
    transform: translateY(10px);
}

.card-image-wrap:hover .qty-controls, .qty-controls.active {
    opacity: 1;
    transform: translateY(0);
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.2s;
    border-radius: 50%;
}

.qty-btn:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

.qty-val {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--white);
}
/* --- Vertical Layout & Responsive Extensions --- */

/* Desktop layout for carte */
.menu-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

@media (min-width: 901px) {
    .menu-layout {
        gap: 40px;
    }
    .menu-grid {
        border-left: 1px solid oklch(100% 0 0 / 0.05);
        padding-left: 40px;
        min-height: 100vh;
    }
}

/* Vertical Sidebar */
.menu-sidebar {
    position: sticky;
    top: 120px;
    height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.menu-sidebar::-webkit-scrollbar { display: none; }

.menu-tabs.vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
    align-items: flex-start;
}

/* Mobile Trigger Hidden on Desktop */
.mobile-category-trigger {
    display: none;
    background: oklch(12% 0.01 260 / 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid oklch(100% 0 0 / 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    align-items: center;
    justify-content: space-between;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 90;
}

.hamburger-icon { color: var(--accent); font-size: 1.5rem; }

/* Responsive Overrides */
@media (max-width: 900px) {
    .menu-layout {
        display: block;
    }
    
    .mobile-category-trigger {
        display: flex;
        position: sticky;
        top: 20px; /* Floating gap */
        z-index: 1005; /* Above navbar */
        margin-bottom: 30px;
        padding: 15px 20px;
        border-radius: 12px;
        border: 1px solid oklch(100% 0 0 / 0.1);
        transition: var(--transition-hq);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
    
    .menu-sidebar {
        position: fixed;
        top: 140px;
        left: 20px;
        right: 20px;
        background: var(--zinc-950);
        border: 1px solid oklch(100% 0 0 / 0.1);
        border-radius: 16px;
        z-index: 100;
        height: auto;
        max-height: 60vh;
        padding: 20px;
        box-shadow: 0 40px 60px rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    .menu-sidebar.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    /* Mobile List View for Products */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .bento-card-outer {
        display: flex !important; /* Override inline styles */
        flex-direction: row;
        align-items: center;
        padding: 15px;
        height: auto;
        position: relative;
        padding-right: 75px; /* reserve space for right-aligned add button */
    }

    .card-image-wrap {
        width: 90px;
        height: 90px;
        aspect-ratio: auto;
        margin-bottom: 0;
        flex-shrink: 0;
        border-radius: 12px;
    }

    .card-label {
        padding-left: 15px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 0;
        min-width: 0;
    }

    .card-label h3 { font-size: 1rem; margin-bottom: 5px; }
    .card-label span { font-size: 0.9rem; }

    /* Mobile: qty controls pulled out of image overlay to the right edge of the card */
    .qty-controls {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 1;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        gap: 2px;
    }
    /* qty = 0 → show a single prominent + button */
    .qty-controls:not(.active) .qty-btn.minus,
    .qty-controls:not(.active) .qty-val { display: none; }
    .qty-controls:not(.active) .qty-btn.plus {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: var(--accent);
        color: var(--white);
        font-size: 1.6rem;
        font-weight: 500;
        border: none;
        box-shadow: 0 8px 18px -4px oklch(62% 0.22 350 / 0.45);
        transition: transform 0.2s var(--ease-cinematic), background 0.2s var(--ease-cinematic);
    }
    .qty-controls:not(.active) .qty-btn.plus:active {
        transform: scale(0.92);
    }
    /* qty > 0 → compact −/qty/+ pill */
    .qty-controls.active {
        background: oklch(12% 0.01 260 / 0.95);
        border: 1px solid oklch(100% 0 0 / 0.12);
        backdrop-filter: blur(10px);
        border-radius: 100px;
        padding: 4px 4px;
        gap: 0;
    }
    .qty-controls.active .qty-btn {
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        color: var(--white);
        font-size: 1.05rem;
    }
    .qty-controls.active .qty-btn:hover {
        background: var(--accent-dim);
        color: var(--accent);
    }
    .qty-controls.active .qty-val {
        min-width: 22px;
        font-size: 0.9rem;
    }

    /* Bento Title Fix */
    .bento-section-title {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .bento-section-title h2 {
        font-size: 2.2rem !important;
        grid-column: auto !important;
    }
    
    .bento-section-title p {
        grid-column: auto !important;
        padding-bottom: 0 !important;
        max-width: 100% !important;
    }
}
/* --- Advanced Responsive & Bug Fixes --- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

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

.contact-card {
    height: 500px;
    padding: 40px;
    border-radius: var(--radius-luxe);
    background: var(--zinc-900);
    border: 1px solid oklch(100% 0 0 / 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hide Main Nav when Mobile Menu is Open */
.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Price positioning and Product List view refinement */
.product-row-clickable {
    cursor: pointer;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        height: auto;
        gap: 30px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Make description above price */
    .card-label {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: center;
        gap: 5px;
    }
    
    .card-label > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }
    
    .card-label h3 {
        margin-bottom: 2px !important;
    }
    
    .carte-title {
        display: none; /* Already explicit in the mobile trigger */
    }
}

/* --- Sentinel Bumper --- */
.scroll-sentinel {
    grid-column: 1 / -1; /* spans full width on grid */
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.spinner-dot {
    width: 30px;
    height: 30px;
    border: 3px solid oklch(100% 0 0 / 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- Mobile Cart FAB --- */
.close-cart-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: color 0.2s var(--ease-cinematic), background 0.2s var(--ease-cinematic);
}
.close-cart-btn:hover { color: var(--white); background: oklch(100% 0 0 / 0.06); }
.close-cart-btn svg { width: 28px; height: 28px; display: block; }
.cart-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: oklch(12% 0.01 260 / 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid oklch(100% 0 0 / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 1015;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    cursor: pointer;
    transform: translateY(120%) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.cart-fab.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    transition: var(--transition-hq);
}
.cart-fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 800;
    font-family: 'Cabinet Grotesk', sans-serif;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
    /* Mobile cart panel */
    .floating-cart {
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 30px 20px;
        z-index: 1030;
    }
    .close-cart-btn {
        display: flex;
    }
    /* Larger quantity buttons inside cart on mobile */
    .cart-qty .cart-qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        background: var(--zinc-900);
        border: 1px solid oklch(100% 0 0 / 0.1);
        border-radius: 50%;
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cart-qty span {
        font-size: 1.1rem;
        font-weight: 700;
        min-width: 24px;
        text-align: center;
    }
}
