/* =========================================
   SUSHI NINJA - COMPLETE CSS
   100% Working - NO Sakura Animation
   ========================================= */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Lato:wght@400;700&display=swap');

/* =========================================
   1. CSS VARIABLES
   ========================================= */
:root {
    --bg-paper: #f4e4bc;
    --card-bg: #fffefb;
    --ninja-red: #b71c1c;
    --ninja-red-bright: #d32f2f;
    --ink-black: #1a1a1a;
    --wood-dark: #3e2723;
    --wasabi-green: #2ed573;
    --shadow-soft: 0 10px 30px rgba(62, 39, 35, 0.15);
    --shadow-card: 0 5px 15px rgba(0,0,0,0.08);
    --glass: rgba(255, 255, 255, 0.95);
    --border-radius: 12px;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-paper);
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
    color: var(--ink-black);
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    max-width: 100vw;
}

h1, h2, h3, .logo-text, .cat-btn {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   3. IMAGE FIX - CRITICAL
   ========================================= */
img {
    display: block;
    max-width: 100%;
    height: auto;
    opacity: 1 !important;
    visibility: visible !important;
}

.food-img-container {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 150px;
}

.food-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Safe hover - NO transform */
.food-card:hover .food-img {
    opacity: 0.9;
}

/* =========================================
   4. HEADER
   ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 70px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--ninja-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    gap: 15px;
    flex-wrap: wrap;
}

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

.logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    border: 2px solid var(--ninja-red);
    object-fit: cover;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--ninja-red);
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--ninja-red);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--ninja-red-bright);
    transform: scale(1.15);
}

.social-links .phone-number {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--wood-dark);
    padding: 4px 10px;
    background: rgba(183, 28, 28, 0.1);
    border-radius: 15px;
    white-space: nowrap;
}

.header-right { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.lang-switch button {
    background: transparent;
    border: 1px solid var(--ninja-red);
    color: var(--ninja-red);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switch button:hover {
    background: var(--ninja-red-bright);
    color: white;
}

.lang-switch button.active {
    background: var(--ninja-red);
    color: white;
}

.cart-icon {
    font-size: 1.4rem;
    color: var(--ninja-red);
    position: relative;
    cursor: pointer;
    padding: 5px;
}

.cart-count {
    position: absolute; 
    top: -2px; 
    right: -2px;
    background: var(--wood-dark);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: bold;
    border: 1px solid white;
    min-width: 18px;
    text-align: center;
}

/* =========================================
   5. HERO SLIDER
   ========================================= */
.hero-slider {
    width: 100%;
    height: 55vh; 
    min-height: 250px;
    max-height: 500px;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--wood-dark);
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active { 
    opacity: 1; 
}

/* =========================================
   6. FEATURES BAR
   ========================================= */
.features-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 25px 5%;
    background: #fcf8f2;
    border-bottom: 1px dashed #ccc;
    flex-wrap: wrap;
}

.feature-item {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    flex: 1;
    min-width: 140px; 
    box-shadow: var(--shadow-card);
    border: 1px solid #eee;
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--ninja-red);
    margin-bottom: 8px;
    display: block;
}

.feature-item h3 { 
    font-size: 0.9rem; 
    margin-bottom: 2px; 
}

.feature-item p { 
    font-size: 0.75rem; 
    color: #777; 
}

/* =========================================
   7. CATEGORY NAVIGATION
   ========================================= */
.category-wrapper {
    position: sticky;
    top: 70px; 
    z-index: 900;
    background: var(--wood-dark);
    padding: 12px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.category-nav {
    display: flex;
    overflow-x: auto;
    padding: 0 5%;
    gap: 10px;
    scrollbar-width: none; 
}

.category-nav::-webkit-scrollbar { 
    display: none; 
}

.cat-btn {
    background: rgba(255,255,255,0.1);
    color: #ddd;
    border: 1px solid #666;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-btn.active,
.cat-btn:hover {
    background: var(--ninja-red);
    border-color: var(--ninja-red);
    color: white;
}

/* =========================================
   8. SEARCH BAR
   ========================================= */
#sticky-search-container {
    position: sticky;
    top: 110px;
    z-index: 890;
    padding: 10px 5%;
    background: #f4e4bc;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    text-align: center;
}

#menuSearch {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid #b71c1c;
    font-size: 1rem;
    outline: none;
    background: white;
}

/* =========================================
   9. MENU SECTION
   ========================================= */
.menu-section { 
    padding: 40px 5%; 
}

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

.section-header h2 {
    font-size: 2rem;
    color: var(--ninja-red);
    border-bottom: 3px double var(--wood-dark);
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255,255,255,0.85);
    border-radius: 5px;
}

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

/* =========================================
   10. FOOD CARDS
   ========================================= */
.food-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.food-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--ninja-red);
}

.food-img-container {
    height: 190px;
    overflow: hidden;
    border-bottom: 4px solid var(--ninja-red);
}

.food-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.food-title {
    font-size: 1.15rem;
    color: var(--wood-dark);
    margin-bottom: 6px;
    font-weight: 800;
    line-height: 1.2;
}

.food-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.food-info > div {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.food-price {
    font-size: 1.25rem;
    color: var(--ninja-red);
    font-weight: 900;
    font-family: 'Cinzel', serif;
}

.btn-add {
    background: var(--wood-dark);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add:hover:not(:disabled) { 
    background: var(--ninja-red); 
}

.btn-add:disabled { 
    background: #ccc; 
    cursor: not-allowed; 
}

/* =========================================
   11. MODAL BASE
   ========================================= */
.modal {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(62, 39, 35, 0.9);
    z-index: 2000;
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-paper);
    margin: 5% auto;
    padding: 25px;
    width: 95%;
    max-width: 500px;
    border-radius: 12px;
    border: 2px solid var(--ninja-red);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    position: relative;
}

.close-btn { 
    position: absolute; 
    right: 20px; 
    top: 15px; 
    font-size: 2rem; 
    color: var(--ninja-red); 
    cursor: pointer;
    z-index: 10;
}

/* =========================================
   12. CART MODAL
   ========================================= */
.cart-title {
    color: var(--ninja-red);
    border-bottom: 2px solid var(--wood-dark);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.cart-items {
    max-height: 35vh;
    overflow-y: auto;
    margin: 15px 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

/* =========================================
   13. FORMS
   ========================================= */
.checkout-form input, 
.checkout-form select {
    width: 100%; 
    padding: 12px; 
    margin: 8px 0;
    border: 1px solid var(--wood-dark);
    border-radius: 6px;
    background: white;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
}

.checkout-form input:focus,
.checkout-form select:focus {
    outline: none;
    border-color: var(--ninja-red);
}

/* =========================================
   14. CHATBOT
   ========================================= */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
}

#chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--ninja-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
}

#chatBody {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.msg {
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.msg-bot {
    background: white;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.msg-user {
    background: var(--ninja-red);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

/* =========================================
   15. UTILITY
   ========================================= */
.hidden { 
    display: none !important; 
}

/* =========================================
   16. FOOTER
   ========================================= */
footer {
    text-align: center; 
    padding: 40px 20px;
    background: var(--wood-dark);
    color: #d7ccc8;
    margin-top: 60px;
    border-top: 5px solid var(--ninja-red);
}

footer a {
    color: var(--ninja-red);
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 10px;
}

footer a:hover {
    color: white;
}

/* =========================================
   17. RESPONSIVE - TABLET
   ========================================= */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* =========================================
   18. RESPONSIVE - MOBILE
   ========================================= */
@media (max-width: 768px) {
    header { 
        padding: 0 10px;
        height: auto;
        min-height: 60px;
        padding: 10px;
    }
    
    .logo img {
        height: 35px;
        width: 35px;
    }
    
    .logo-text { 
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 8px;
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 8px 0;
        border-top: 1px solid rgba(183, 28, 28, 0.2);
    }
    
    .social-links a {
        font-size: 1.1rem;
    }
    
    .social-links .phone-number {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .hero-slider { 
        height: 200px;
    }
    
    .features-bar {
        padding: 15px 10px;
        gap: 8px;
    }
    
    .feature-item {
        padding: 10px;
        min-width: 100px;
    }
    
    .category-wrapper { 
        top: 60px;
    }
    
    .menu-section {
        padding: 20px 10px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .food-img-container {
        height: 120px;
    }
    
    .food-info {
        padding: 8px;
    }
    
    .food-title { 
        font-size: 0.85rem;
    }
    
    .food-desc { 
        font-size: 0.75rem;
    }
    
    .food-price { 
        font-size: 1rem;
    }
    
    .btn-add { 
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    #chat-window {
        width: 280px;
        height: 380px;
    }
}

/* =========================================
   19. RESPONSIVE - SMALL PHONES
   ========================================= */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.1rem;
    }
    
    .food-img-container {
        height: 100px;
    }
    
    .food-title {
        font-size: 0.75rem;
    }
    
    .food-price {
        font-size: 0.9rem;
    }
}