/* Restaurant & Ordering System CSS */

/* --- Restaurant Header --- */
.restaurant-header {
    margin-top: 80px;
    background: #0f1016;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.restaurant-info {
    display: flex;
    gap: 3rem;
    align-items: center;
}
.restaurant-img {
    width: 280px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}
.restaurant-details h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: bold;
    letter-spacing: -1px;
}
.restaurant-tags {
    color: #9ca3af;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.restaurant-meta {
    display: flex;
    gap: 1.5rem;
}
.meta-box {
    background: rgba(255,255,255,0.03);
    padding: 12px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
}
.meta-box i { color: var(--color-gold); width: 20px; }

/* --- Menu Layout --- */
.menu-section {
    background: #06060b;
    padding: 4rem 0;
    min-height: 100vh;
}
.menu-grid {
    display: grid;
    grid-template-columns: 220px 1fr 380px;
    gap: 4rem;
    align-items: start;
}

/* Sidebar Categories */
.menu-sidebar {
    position: sticky;
    top: 120px;
}
.menu-sidebar h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
    border-left: 4px solid var(--color-orange);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.menu-sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.menu-sidebar li a {
    display: block;
    padding: 14px 1.2rem;
    color: #6b7280;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}
.menu-sidebar li a:hover,
.menu-sidebar li a.active {
    background: rgba(255, 107, 53, 0.08);
    color: var(--color-orange);
    padding-left: 1.5rem;
}

/* Menu Items */
.menu-category-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.menu-items-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}
.menu-item-card {
    display: flex;
    justify-content: space-between;
    background: #111218;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.4s;
}
.menu-item-card:hover {
    background: #15161d;
    transform: translateX(10px);
    border-color: rgba(255,255,255,0.08);
}
.item-info {
    flex: 1;
    padding-right: 3rem;
}
.item-type-icon {
    width: 16px;
    height: 16px;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 12px;
}
.item-type-icon::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.item-type-icon.veg { border-color: #10b981; }
.item-type-icon.veg::after { background: #10b981; }
.item-type-icon.non-veg { border-color: #ef4444; }
.item-type-icon.non-veg::after { background: #ef4444; }

.item-info h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; font-weight: bold; }
.item-info .price { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 12px; display: block; opacity: 0.9; }
.item-info .desc { color: #9ca3af; font-size: 0.95rem; line-height: 1.6; }

.item-media {
    position: relative;
    width: 150px;
}
.item-media img {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.add-btn-wrapper {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    overflow: hidden;
}
.add-btn {
    width: 100%;
    padding: 10px 0;
    color: #ff4d4d;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.add-btn:hover { background: #fff8f8; }

.qty-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: #1a1a1a;
    padding: 4px;
}
.qty-controls button {
    width: 35px;
    height: 35px;
    color: #ff4d4d;
    font-weight: 800;
    font-size: 1.3rem;
    border: none;
    background: transparent;
    cursor: pointer;
}
.qty-controls span { font-weight: 800; font-size: 1.1rem; }
.qty-controls.small button { width: 28px; height: 28px; font-size: 1.1rem; }

/* Cart Sidebar */
.cart-sidebar {
    background: #111218;
    border-radius: 24px;
    padding: 2.5rem;
    position: sticky;
    top: 120px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.cart-sidebar h3 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: bold;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-item-details h4 { color: #fff; font-size: 1rem; margin-bottom: 4px; font-weight: 600; }
.cart-item-price { color: #fff; font-weight: 700; font-size: 1.1rem; }

.cart-summary { margin-top: 2rem; }
.summary-row {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.summary-row.total {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed rgba(255,255,255,0.1);
}
.checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #ff4d4d, #ff6b35);
    color: #fff;
    padding: 18px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.3);
    border: none;
    cursor: pointer;
}
.checkout-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(255, 77, 77, 0.4); }

/* Mobile Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    background: linear-gradient(135deg, #ff4d4d, #ff6b35);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    z-index: 1000;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-cart.visible { transform: translateY(0); }

@media (max-width: 1200px) {
    .menu-grid { grid-template-columns: 200px 1fr 320px; gap: 2rem; }
}
@media (max-width: 992px) {
    .menu-grid { grid-template-columns: 1fr 320px; }
    .menu-sidebar { display: none; }
}
@media (max-width: 768px) {
    .menu-grid { grid-template-columns: 1fr; }
    .cart-sidebar { display: none; }
    .restaurant-info { flex-direction: column; text-align: center; }
    .item-media { width: 120px; }
    .item-media img { width: 120px; height: 120px; }
}
