/* --- Cover & Info --- */
.cover-container {
    padding: 20px 5%;
    background-color: var(--white);
}

.cover-image {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    background-image: url('../pizza_lorenzo_cover.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.restaurant-info {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .restaurant-info {
        flex-direction: column;
        gap: 15px;
    }
}

.info-content h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-black);
}

.info-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    margin-top: 4px;
}

/* --- Category Navigation --- */
.category-nav-wrapper {
    position: sticky;
    top: 72px;
    background: var(--white);
    border-bottom: 1px solid var(--border-grey);
    z-index: 999;
}

.category-nav-content {
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.category-nav {
    flex: 1;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px 0;
}

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

.category-link {
    padding: 8px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 100px;
    transition: var(--transition);
}

.category-link.active, .category-link:hover {
    background-color: var(--text-black);
    color: var(--white);
}

.btn-nav-arrow, .btn-burger {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--text-black);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    transition: var(--transition);
    background-color: var(--bg-grey);
    margin-left: 8px;
    flex-shrink: 0;
}

.btn-nav-arrow:hover, .btn-burger:hover {
    background: #E8EBEB;
}

/* --- Menu List & Items --- */
.menu-section {
    margin-bottom: 40px;
}

.category-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-black);
    margin-bottom: 20px;
    padding-top: 20px;
    text-align: center;
}

.menu-items {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.menu-item {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-grey);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #fafafa;
}

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

.item-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 4px;
}

.item-desc {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.item-price {
    font-weight: 700;
    color: var(--text-black);
}

/* --- Item Image --- */
.item-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.item-image-wrapper .btn-add {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.item-image-wrapper .item-qty-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 3;
}

.menu-item.has-image .item-info {
    padding-right: 16px;
}

/* --- Delivery/Collection Switch --- */
.switch-container {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.delivery-switch {
    background: #E8EBEB;
    padding: 4px;
    border-radius: 100px;
    display: flex;
    width: 100%;
    max-width: 600px;
    position: relative;
}

.switch-option {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.switch-option small {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.7;
}

.switch-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--primary-green);
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-option.active {
    color: var(--white);
}

.delivery-switch.collection .switch-slider {
    transform: translateX(100%);
}

/* --- Section Header --- */
.section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-grey);
}

.section-icon {
    color: var(--primary-green);
    margin-right: 12px;
}

.category-description {
    margin-top: 8px;
    font-size: 15px;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.5;
}
