/* ===== MENU PAGE STYLES ===== */

:root {
    --cream: #F7EFE1;
    --cream-dark: #EFE1C8;
    --ink: #2B2320;
    --ink-soft: #5B4E44;
    --rust: #B5502D;
    --rust-dark: #8F3D20;
    --gold: #D9A441;
    --green: #47614A;
    --board: #2E3B2E;
    --board-light: #3C4C3C;
    --white-ghost: #F8F8FF;
    --display: 'Fraunces', serif;
    --body: 'Manrope', sans-serif;
    --chalk: 'Caveat', cursive;
    --radius: 22px;
    --radius-sm: 12px;
    --shadow: 0 18px 40px -18px rgba(43,35,32,0.35);
}

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

body {
    font-family: var(--display);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.amp {
    color: var(--gold);
    font-weight: 700;
}

ul {
    list-style: none;
}



/* ===== HEADER & FOOTER STYLES REMOVED - USING STYLE.CSS ===== */

/* ===== MENU HERO ===== */
.menu-hero {
    margin-top: 70px;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, var(--board) 0%, var(--board-light) 100%);
    text-align: center;
    color: var(--cream);
}

.hero-content h1 {
    font-family: var(--display);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-family: var(--body);
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.search-bar {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s;
}

.search-bar:focus-within {
    border-color: var(--gold);
}

.search-bar i {
    font-size: 16px;
    color: var(--gold);
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--cream);
    font-family: var(--body);
    font-size: 16px;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(247, 239, 225, 0.5);
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    background: var(--cream);
    padding: 24px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    border-bottom: 1px solid rgba(43, 35, 32, 0.08);
}

.categories-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.categories-scroll {
    display: flex;
    gap: 12px;
    justify-content: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 60px;
    scroll-padding: 0 60px;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--white-ghost);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn i {
    font-size: 20px;
    color: var(--ink-soft);
    transition: color 0.3s;
}

.category-btn span {
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    transition: color 0.3s;
}

.category-btn:hover {
    border-color: var(--gold);
    background: var(--cream-dark);
}

.category-btn.active {
    background: var(--board);
    border-color: var(--gold);
}

.category-btn.active i,
.category-btn.active span {
    color: var(--cream);
}

.category-btn.active i {
    color: var(--gold);
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--board);
    border: none;
    border-radius: 50%;
    color: var(--cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.scroll-btn:hover {
    background: var(--gold);
}

.scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* ===== LOADING & EMPTY STATES ===== */
.loading-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(217, 164, 65, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    font-family: var(--body);
    font-size: 15px;
    color: var(--ink-soft);
    margin-top: 16px;
}

.empty-state i {
    font-size: 64px;
    color: var(--ink-soft);
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-state h2 {
    font-family: var(--display);
    font-size: 24px;
    color: var(--board);
    margin-bottom: 8px;
}

.empty-state p {
    font-family: var(--body);
    font-size: 14px;
    color: var(--ink-soft);
}

/* ===== MENU SECTION ===== */
.menu-section {
    padding: 40px 20px 80px;
    background: var(--cream);
    min-height: 500px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

/* ===== MENU ITEM CARD ===== */
.menu-item {
    background: var(--white-ghost);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.item-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--cream-dark);
}

.item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.menu-item:hover .item-image-wrapper img {
    transform: scale(1.05);
}

.item-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--gold);
    color: var(--board);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
}

.item-unavailable {
    position: absolute;
    inset: 0;
    background: rgba(43, 35, 32, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-unavailable span {
    font-family: var(--body);
    font-size: 14px;
    font-weight: 600;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-content {
    padding: 20px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.item-name {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    color: var(--board);
    line-height: 1.3;
}

.item-price {
    font-family: var(--body);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
}

.item-description {
    font-family: var(--body);
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body);
    font-size: 13px;
    color: var(--ink-soft);
}

.item-meta i {
    color: var(--gold);
    font-size: 12px;
}

.add-item-btn {
    padding: 10px 20px;
    background: var(--board);
    color: var(--cream);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-item-btn:hover {
    background: var(--gold);
}

.add-item-btn:disabled {
    background: var(--ink-soft);
    cursor: not-allowed;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 35, 32, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white-ghost);
    border-radius: var(--radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: modalSlide 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--board);
    border: none;
    border-radius: 50%;
    color: var(--cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.modal-close:hover {
    background: var(--rust);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.item-image {
    position: relative;
    height: 400px;
    background: var(--cream-dark);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-image .item-badge {
    top: 20px;
    left: 20px;
    font-size: 12px;
    padding: 8px 16px;
}

.item-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.item-details h2 {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 700;
    color: var(--board);
    margin-bottom: 12px;
    line-height: 1.2;
}

.item-details > p {
    font-family: var(--body);
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 24px;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body);
    font-size: 14px;
    color: var(--ink-soft);
}

.meta-item i {
    font-size: 16px;
    color: var(--gold);
}

.item-price {
    font-family: var(--body);
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}

/* ===== ITEM OPTIONS (gwosè, siplemantè…) ===== */
.item-options {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.item-options:empty {
    display: none;
}

.option-group-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.option-group-name {
    font-family: var(--body);
    font-size: 14px;
    font-weight: 700;
    color: var(--board);
}

.option-required,
.option-hint {
    font-family: var(--body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
}

.option-required {
    color: var(--rust-dark);
    background: rgba(181, 80, 45, 0.12);
}

.option-hint {
    color: var(--ink-soft);
    background: var(--cream-dark);
}

.option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 6px;
    background: var(--cream-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.option-row:hover {
    background: #E7D6B8;
}

.option-row input {
    accent-color: var(--rust);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.option-row input:disabled {
    cursor: not-allowed;
}

/* A capped-out choice stays visible but reads as unavailable. */
.option-row:has(input:disabled) {
    opacity: 0.45;
    cursor: not-allowed;
}

.option-name {
    font-family: var(--body);
    font-size: 14px;
    color: var(--ink);
    flex: 1;
}

.option-price {
    font-family: var(--body);
    font-size: 13px;
    font-weight: 700;
    color: var(--rust-dark);
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-to-cart-btn:disabled:hover {
    background: var(--board);
    transform: none;
    box-shadow: none;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--cream-dark);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.qty-label {
    font-family: var(--body);
    font-size: 14px;
    font-weight: 600;
    color: var(--board);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: var(--board);
    border: none;
    border-radius: 50%;
    color: var(--cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.qty-btn:hover:not(:disabled) {
    background: var(--gold);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-value {
    font-family: var(--body);
    font-size: 18px;
    font-weight: 700;
    color: var(--board);
    min-width: 30px;
    text-align: center;
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px 24px;
    background: var(--board);
    color: var(--cream);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 164, 65, 0.3);
}

.add-to-cart-btn.added {
    background: var(--green);
}

/* ===== FLOATING CART (Mobile) ===== */
.floating-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--board);
    box-shadow: 0 8px 24px rgba(217, 164, 65, 0.4);
    z-index: 900;
    transition: transform 0.3s;
}

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

.floating-cart i {
    font-size: 24px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: var(--rust);
    color: var(--cream);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
}

/* ===== FOOTER STYLES REMOVED - USING STYLE.CSS ===== */

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
    }

    .header-actions {
        gap: 12px;
    }

    .categories-section {
        top: 70px;
    }

    .categories-wrapper {
        padding: 0 50px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .item-image {
        height: 250px;
    }

    .item-details {
        padding: 24px;
    }

    .item-details h2 {
        font-size: 22px;
    }

    .floating-cart {
        display: flex;
    }

    .cart-btn {
        display: none;
    }
}

/* Fix pour ekran 605px ak pi piti */
@media (max-width: 605px) {
    .categories-wrapper {
        padding: 0 45px;
    }

    .scroll-btn {
        width: 36px;
        height: 36px;
    }

    .scroll-left {
        left: 6px;
    }

    .scroll-right {
        right: 6px;
    }

    .category-btn {
        padding: 12px 18px;
    }

    .category-btn i {
        font-size: 18px;
    }

    .category-btn span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .menu-hero {
        padding: 40px 16px 24px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .search-bar {
        padding: 12px 16px;
    }

    .category-btn {
        padding: 12px 16px;
    }

    .category-btn i {
        font-size: 18px;
    }

    .category-btn span {
        font-size: 12px;
    }

    .menu-section {
        padding: 24px 16px 60px;
    }
}



/* ===== FÈMEN BANNER ===== */
.closed-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 18px 24px;
    background: var(--board);
    color: var(--cream);
    border-radius: var(--radius-sm);
    border-left: 5px solid var(--gold);
}

.closed-banner[hidden] {
    display: none;
}

.closed-banner i {
    font-size: 22px;
    color: var(--gold);
    flex-shrink: 0;
}

.closed-banner div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.closed-banner strong {
    font-family: var(--display);
    font-size: 17px;
}

.closed-banner span {
    font-family: var(--body);
    font-size: 14px;
    opacity: 0.85;
}

@media (max-width: 600px) {
    .closed-banner {
        margin: 0 16px 24px;
        padding: 16px 18px;
    }
}
