/* Pizzeria Header */
.pizzeria-header {
    position: relative;
    background: #1a1a1a;
    margin-top: -1px;
    overflow: hidden;
}

.pizzeria-cover {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.pizzeria-cover-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #C41E3A 0%, #9B1B30 100%);
}

.pizzeria-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(255 255 255 / 0%) 0%, rgb(0 0 0 / 51%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.overlay-content {
    max-width: 800px;
}

.overlay-title {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
}

.overlay-description {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin: 0;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .overlay-title { font-size: 2rem; }
    .overlay-description { font-size: 1rem; }
    
}

.pizzeria-info {
    position: relative;
    display: flex;
    gap: 1.5rem;
    margin-top: -160px;
    padding-bottom: 1.5rem;
}

.pizzeria-logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: white;
}

.pizzeria-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pizzeria-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C41E3A, #ff6b6b);
    color: white;
    font-size: 3rem;
    font-weight: 700;
}

.pizzeria-details {
    flex: 1;
}

.pizzeria-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-verified {
    background: #008C45;
    color: white;
}

.badge-open {
    background: rgb(23 117 69 / 40%);
    color: #008C45;
}

.badge-closed {
    background: rgba(196, 30, 58, 0.2);
    color: #C41E3A;
}

.pizzeria-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.75rem 0;
}

.pizzeria-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pizzeria-meta > span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pizzeria-rating {
    color: #FFB800;
}

.pizzeria-rating span {
    color: rgba(255,255,255,0.6);
}

.pizzeria-wait-time {
    font-weight: 500;
}

.busy-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 0.25rem;
}

.pizzeria-description {
    color: rgba(255,255,255,0.8);
    margin: 0;
    max-width: 600px;
    line-height: 1;
    padding-bottom: 10px;
}

/* Sticky Nav */
.pizzeria-nav {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #eee;
    z-index: 100;
}

.pizzeria-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Bouton hamburger - caché sur desktop */
.btn-menu-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-menu-toggle:hover {
    border-color: #C41E3A;
    color: #C41E3A;
}

/* Header du menu mobile - caché sur desktop */
.nav-categories-header {
    display: none;
}

/* Overlay - caché sur desktop */
.nav-categories-overlay {
    display: none;
}

.pizzeria-nav-categories {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    overflow-x: auto;
}

.pizzeria-nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s;
}

.pizzeria-nav-link:hover,
.pizzeria-nav-link.active {
    background: #C41E3A;
    color: white;
}

.btn-cart-sticky {
    display: none;
    gap: 0.5rem;
}

/* Content Layout */
.pizzeria-content {
    padding: 2rem 0 4rem;
    background: #f8f9fa;
}

.pizzeria-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Menu */
.pizzeria-menu {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.menu-empty {
    text-align: center;
    padding: 3rem;
}

.menu-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.menu-empty h3 {
    margin: 0 0 0.5rem;
    color: #333;
}

.menu-empty p {
    color: #666;
    margin: 0;
}

.menu-category {
    margin-bottom: 2rem;
}

.menu-category:last-child {
    margin-bottom: 0;
}

.menu-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #C41E3A;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 12px;
    transition: all 0.2s;
}

.menu-item:hover {
    background: #f0f0f0;
}

.menu-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

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

.menu-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.menu-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.35rem;
}

.dietary-badge {
    font-size: 0.9rem;
    vertical-align: middle;
}

.menu-item-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.35rem;
    line-height: 1.4;
}

.menu-item-ingredients {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
}

.menu-item-prices {
    display: flex;
    gap: 0.5rem;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: #C41E3A;
    font-size: 0.9rem;
}

.price-size {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #666;
}

.btn-add-to-cart,
.btn-add-product {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Product Category Styles */
.menu-category-desc {
    color: #666;
    font-size: 0.95rem;
    margin: -0.5rem 0 1rem 0;
}

.menu-items-products {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.menu-item-product .menu-item-image {
    height: 100px;
}

.price-tag-single {
    background: none;
    font-size: 1.1rem;
}

/* Sidebar */
.pizzeria-sidebar {
    position: sticky;
    top: 70px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cart Widget */
.cart-widget {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.cart-widget-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
}

.cart-widget-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin: 0;
}

.cart-widget-body {
    padding: 1rem 1.25rem;
    max-height: 300px;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    padding: 2rem 0;
    color: #999;
}

.cart-empty span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cart-widget-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-subtotal,
.cart-delivery,
.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cart-total {
    font-size: 1.1rem;
    font-weight: 700;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
}

.cart-minimum {
    font-size: 0.8rem;
    color: #E86A33;
    margin: 0.75rem 0;
    text-align: center;
}

.free {
    color: #008C45;
    font-weight: 500;
}

/* Info Widget */
.info-widget {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Mobile Info Widget - hidden by default on desktop */
.info-widget.info-widget-mobile {
    display: none;
}

.info-widget h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
}

.info-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item svg {
    flex-shrink: 0;
    color: #C41E3A;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.info-item p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.info-item a {
    color: #C41E3A;
    text-decoration: none;
}

/* Opening Hours */
.opening-hours {
    font-size: 0.85rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.hours-row.today {
    font-weight: 600;
    color: #C41E3A;
}

.hours-day {
    color: #666;
}

.hours-time .closed {
    color: #999;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    z-index: 1001;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3,
.modal-title {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

/* Size Modal */
.modal-size {
    max-width: 400px;
}

.size-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.size-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.size-option:hover {
    border-color: #ccc;
}

.size-option.selected {
    border-color: #C41E3A;
    background: rgba(196, 30, 58, 0.05);
}

.size-option input {
    display: none;
}

.size-option-label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-name {
    font-weight: 600;
}

.size-price {
    font-weight: 700;
    color: #C41E3A;
}

.quantity-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-selector label {
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    border-color: #C41E3A;
    color: #C41E3A;
}

#pizza-quantity {
    width: 50px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 1024px) {
    .pizzeria-layout {
        grid-template-columns: 1fr;
    }

    .pizzeria-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        background: white;
        padding: 1rem;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        z-index: 1000;
        display: none;
    }

    .pizzeria-sidebar.show {
        display: block;
    }
    .pizzeria-info {
        margin-top: -230px;
    }

    /* Afficher le widget info mobile */
    .info-widget.info-widget-mobile {
        display: block;
        margin-top: 1rem;
    }

    /* Cacher le widget info dans la sidebar sur mobile */
    .pizzeria-sidebar .info-widget {
        display: none;
    }

    .btn-cart-sticky {
        display: flex;
    }

    /* Menu latéral mobile */
    .btn-menu-toggle {
        display: flex;
    }

    .pizzeria-nav-categories {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 0;
        padding-top: 73px;
        margin: 0;
        gap: 0;
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        z-index: 1001;
        transition: left 0.3s ease;
    }

    .pizzeria-nav-categories.open {
        left: 0;
    }

    .nav-categories-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
    }

    .nav-categories-header span {
        font-weight: 600;
        font-size: 1.1rem;
        color: #333;
    }

    .btn-close-menu {
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        color: #666;
        border-radius: 8px;
        transition: all 0.2s;
    }

    .btn-close-menu:hover {
        background: #eee;
        color: #333;
    }

    .pizzeria-nav-categories li {
        border-bottom: 1px solid #f0f0f0;
    }

    .pizzeria-nav-categories li:last-child {
        border-bottom: none;
    }

    .pizzeria-nav-categories .pizzeria-nav-link {
        display: block;
        padding: 1rem 1.25rem;
        border-radius: 0;
        font-size: 1rem;
    }

    .pizzeria-nav-categories .pizzeria-nav-link:hover,
    .pizzeria-nav-categories .pizzeria-nav-link.active {
        background: rgba(196, 30, 58, 0.1);
        color: #C41E3A;
    }

    /* Overlay */
    .nav-categories-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-categories-overlay.show {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .pizzeria-cover {
        height: 200px;
    }
    
    .pizzeria-info {
        margin-top: -120px;
    }
    
    .pizzeria-logo {
        width: 100px;
        height: 100px;
    }
    
    .pizzeria-details {
        padding-top: 0;
    }
    

    
    .pizzeria-name {
        font-size: 1.5rem;
    }
    
    .menu-item {
        flex-direction: column;
    }
    
    .menu-item-image {
        width: 100%;
        height: 150px;
    }
    
    .menu-item-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .menu-item-prices {
        justify-content: center;
    }
    
    .btn-add-to-cart {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .overlay-title {
        font-size: 1.5rem;
    }
    .pizzeria-info {
        margin-top: -100px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .overlay-description {
        font-size: 0.9rem;
    }

        .pizzeria-badges {
        justify-content: center;
    }
    
    .pizzeria-meta {
        justify-content: center;
    }
    .pizzeria-details {
        padding-left: 120px;
        width: 100%;
        height: 100%;
        padding-top: 15px;
    }
    .pizzeria-logo {
        position: absolute;
        bottom: 15px;
    }
    .pizzeria-info {
        height: 100%;
        margin-top: 0px;
    display: block;
    position: absolute;
    top: 0px;
    text-align: left;
    align-items: normal;
    }
    .pizzeria-description {
        max-width: 100%;
    }
    .pizzeria-badges {
        justify-content: left;
    }
    .pizzeria-meta {
        justify-content: left;
        gap: 0.3rem;
    }
}
/* Reviews Section */
.reviews-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.reviews-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviews-average {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.1rem;
    color: #666;
}

.reviews-average .star {
    color: #ffc107;
}

.reviews-average small {
    font-weight: normal;
    color: #999;
}

.rating-distribution {
    max-width: 400px;
    margin-bottom: 2rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.rating-label {
    width: 40px;
    font-size: 0.9rem;
    color: #666;
}

.rating-progress {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-progress-fill {
    height: 100%;
    background: #ffc107;
    border-radius: 4px;
    transition: width 0.3s;
}

.rating-count {
    width: 30px;
    text-align: right;
    font-size: 0.85rem;
    color: #999;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C41E3A, #ff6b6b);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.review-author-info {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: 600;
    color: #333;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-size: 0.65rem;
    margin-left: 0.25rem;
}

.review-date {
    font-size: 0.85rem;
    color: #999;
}

.review-rating .star {
    color: #ddd;
    font-size: 1rem;
}

.review-rating .star.filled {
    color: #ffc107;
}

.review-comment {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.reviews-load-more {
    text-align: center;
    margin-top: 1.5rem;
}

.reviews-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.reviews-empty a {
    color: #C41E3A;
}

/* Review Modal */
.modal-review {
    max-width: 500px;
}

.review-modal-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #555;
}

.star-rating-input {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.star-rating-input .star {
    font-size: 2.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.star-rating-input .star:hover,
.star-rating-input .star.active {
    color: #ffc107;
    transform: scale(1.1);
}

#modal-rating-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}