/* ==========================================
   MENU PAGE STYLES - Premium Design
   ========================================== */

.menu-page {
    padding-top: 0;
    background: var(--dark-deep);
    min-height: 100vh;
}

/* ==========================================
   CATEGORY FILTER BAR
   ========================================== */
.category-filter {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 18px 0;

    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 20px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.category-tab {
    flex-shrink: 0;
    padding: 10px 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-premium);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.category-tab:hover {
    background: rgba(45,139,60,0.08);
    border-color: rgba(45,139,60,0.3);
    color: var(--green);
    transform: translateY(-1px);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border-color: transparent;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(45,139,60,0.35);
}

.category-tab .tab-icon {
    font-size: 1rem;
}

/* ==========================================
   SEARCH & TOOLBAR
   ========================================== */
.menu-toolbar {
    padding: 25px 0 15px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.menu-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
}

.menu-toolbar .search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 420px;
}

.menu-toolbar .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.menu-toolbar input {
    width: 100%;
    padding: 12px 18px 12px 48px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.menu-toolbar input::placeholder {
    color: rgba(255,255,255,0.3);
}

.menu-toolbar input:focus {
    outline: none;
    border-color: var(--green);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(45,139,60,0.12);
}

.menu-result-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.menu-result-count span {
    color: var(--green);
    font-weight: 700;
}

/* ==========================================
   PRODUCTS GRID
   ========================================== */
.menu-products {
    padding: 40px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-category-section {
    margin-bottom: 60px;
}

.menu-category-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.menu-category-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--green), transparent);
    border-radius: 2px;
}

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

/* ==========================================
   PRODUCT CARD - Premium
   ========================================== */
.product-card {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-premium);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(45,139,60,0.25);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(45,139,60,0.1);
    background: rgba(255,255,255,0.05);
}

/* Card Image */
.product-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(160deg, rgba(26,26,26,0.9), rgba(45,45,45,0.9));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-premium);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

/* Placeholder for products without images */
.placeholder-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, rgba(200,16,46,0.08), rgba(45,139,60,0.06));
}

.placeholder-visual span {
    font-size: 4rem;
    opacity: 0.3;
    filter: grayscale(30%);
}

/* Hover overlay */
.product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.overlay-text {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 20px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.badge {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.badge-vegan {
    background: rgba(45,139,60,0.85);
    color: var(--white);
}

.badge-spicy-1 { background: rgba(255,152,0,0.85); color: var(--white); }
.badge-spicy-2 { background: rgba(244,67,54,0.85); color: var(--white); }
.badge-spicy-3 { background: rgba(183,28,28,0.85); color: var(--white); }

.badge-featured {
    background: rgba(200,16,46,0.85);
    color: var(--white);
}

/* Card Body */
.product-card-body {
    padding: 20px;
}

.product-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.meta-item {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.product-card-body h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.3;
}

.product-card-body .description {
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

/* Card Footer */
.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.product-price {
    display: flex;
    flex-direction: column;
}

.product-price .price-main {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--green);
}

.product-price .price-large {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-add-cart {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(45,139,60,0.12);
    border: 1px solid rgba(45,139,60,0.25);
    color: var(--green);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-premium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(45,139,60,0.4);
}

/* ==========================================
   PRODUCT MODAL
   ========================================== */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-modal {
    background: var(--dark-surface);
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: scaleInBounce 0.4s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-close:hover {
    background: var(--red);
    border-color: var(--red);
}

.product-modal-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(160deg, rgba(26,26,26,0.95), rgba(40,40,40,0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

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

.product-modal-body {
    padding: 28px;
}

.product-modal-body h2 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.product-modal-body .modal-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.product-modal-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.modal-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.modal-info-item .info-icon {
    font-size: 1rem;
}

.product-modal-pricing {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.modal-price-option {
    padding: 12px 24px;
    background: rgba(45,139,60,0.06);
    border: 1.5px solid rgba(45,139,60,0.25);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-premium);
}

.modal-price-option:hover,
.modal-price-option.selected {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(45,139,60,0.3);
}

.modal-price-option .size-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.modal-price-option:hover .size-label,
.modal-price-option.selected .size-label {
    color: rgba(255,255,255,0.8);
}

.modal-price-option .size-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green);
}

.modal-price-option:hover .size-price,
.modal-price-option.selected .size-price {
    color: var(--white);
}

.modal-add-cart {
    margin-top: 25px;
}

.modal-add-cart .btn {
    width: 100%;
    justify-content: center;
}

/* ==========================================
   CART FAB
   ========================================== */
.cart-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border-radius: 16px;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(45,139,60,0.4);
    transition: all 0.3s var(--ease-premium);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(45,139,60,0.5);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleInBounce 0.3s ease;
}

/* ==========================================
   CART PANEL
   ========================================== */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: rgba(18,18,18,0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 2001;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0,0,0,0.6);
    border-left: 1px solid rgba(255,255,255,0.06);
}

.cart-panel.open {
    right: 0;
}

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

.cart-panel-header h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.cart-panel-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--white);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.cart-panel-close:hover {
    background: var(--red);
    border-color: var(--red);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-bottom: 10px;
    align-items: center;
    animation: slideInRight 0.3s ease;
}

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

.cart-item-info h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.cart-item-info .cart-item-size {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.cart-item-price {
    color: var(--green);
    font-weight: 700;
}

.cart-item-remove {
    background: none;
    border: none;
    color: rgba(255,68,68,0.6);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: var(--transition-fast);
}

.cart-item-remove:hover {
    color: #ff4444;
    transform: scale(1.2);
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.cart-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.4;
}

.cart-panel-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-total span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cart-total strong {
    color: var(--green);
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   NO RESULTS
   ========================================== */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-results .no-results-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.3;
}

.no-results h3 {
    color: var(--white);
    margin-bottom: 10px;
}
