/* Style principal - Design professionnel avec couleurs mates */
:root {
    --color-primary: #C73E2D;
    --color-primary-dark: #A83224;
    --color-secondary: #FFFFFF;
    --color-accent: #A83224;
    --color-text: #2C2C2C;
    --color-text-light: #6B6B6B;
    --color-border: #D4D4D4;
    --color-success: #4A8E4E;
    --color-danger: #C73E2D;
    --color-warning: #D68910;
    --color-info: #2E5C8A;
    --color-bg: #FAFAFA;
    --color-bg-light: #F5F5F5;
    --color-surface: #FFFFFF;
    --color-surface-hover: #F8F8F8;
    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    background-color: #F5F5F5;
    line-height: 1.6;
}

/* App Body - Style Application Moderne */
.app-body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 3.6rem;
}

.app-body.loaded {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Classes d'animation pour l'apparition */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation-fill-mode: both;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-down {
    animation: slideDown 0.5s ease-out forwards;
}

/* Animations pour le header */
.app-header {
    animation: slideDown 0.6s ease-out forwards;
}

/* Animations pour la section hero */
.app-hero {
    opacity: 0;
    animation: fadeInScale 0.8s ease-out 0.2s forwards;
}

.app-hero-logo {
    opacity: 0;
    animation: fadeInScale 0.8s ease-out 0.4s forwards;
}

/* Animations pour les packs */
.packs-section {
    opacity: 1;
}

.packs-section.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

.pack-card {
    opacity: 1;
}

.pack-card.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Animations pour les catégories */
.menu-categories-wrapper {
    opacity: 0;
}

.menu-categories-wrapper.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

.category-circle {
    opacity: 0;
}

.category-circle.animated {
    animation: fadeInScale 0.4s ease-out forwards;
}

/* Animations pour les sections de catégories */
.category-section {
    opacity: 0;
}

.category-section.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Animations pour les cartes de produits */
.product-card {
    opacity: 0;
}

.product-card.animated {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Animations pour la page de détails produit */
.product-hero {
    opacity: 0;
    animation: fadeInScale 0.8s ease-out 0.2s forwards;
}

.product-gallery-thumbnails {
    opacity: 0;
}

.product-gallery-thumbnails.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-gallery-thumb {
    opacity: 0;
}

.product-gallery-thumb.animated {
    animation: fadeInScale 0.4s ease-out forwards;
}

.product-details-container {
    opacity: 1;
}

.product-details-container.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-details-header {
    opacity: 1;
}

.product-details-header.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-details-section {
    opacity: 1;
}

.product-details-section.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-details-actions {
    opacity: 1;
}

.product-details-actions.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

.related-products-grid {
    opacity: 0;
}

.related-products-grid.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

.related-product-card {
    opacity: 0;
}

.related-product-card.animated {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* App Header avec Glassmorphism */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.app-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.app-header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.app-header-content {
    position: relative;
    padding: 0.54rem 0.9rem;
    max-width: 1080px;
    margin: 0 auto;
}

.app-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.app-logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.app-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 3.6px 10.8px rgba(0, 0, 0, 0.15);
    border: 1.8px solid rgba(255, 255, 255, 0.8);
}

.app-logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 5.4px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    box-shadow: 0 3.6px 10.8px rgba(0, 0, 0, 0.15);
}

.app-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.app-title {
    font-size: 0.99rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
}

.app-status {
    display: flex;
    align-items: center;
    gap: 0.36rem;
    font-size: 0.675rem;
    color: var(--color-text-light);
}

.app-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.app-status-dot.status-open {
    background: var(--color-success);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.app-status-dot.status-closed {
    background: var(--color-danger);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.app-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    z-index: 10;
    position: relative;
}

.app-action-btn {
    min-width: 32.4px;
    height: 32.4px;
    border-radius: 5.4px;
    border: 0.9px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1.8px 7.2px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0 0.765rem;
}

.app-action-btn:hover {
    transform: translateY(-1.8px);
    box-shadow: 0 3.6px 10.8px rgba(0, 0, 0, 0.15);
    background: white;
}

.app-whatsapp-btn {
    background: #25D366;
    color: white;
}

.app-whatsapp-btn:hover {
    background: #20BA5A;
}

.app-info-btn {
    background: #E5E5E5 !important;
    color: #4A4A4A !important;
    font-weight: 500;
    font-size: 0.765rem;
    padding: 0.54rem 0.9rem;
    height: auto;
    min-width: auto;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.app-info-btn i {
    font-size: 0.81rem;
    color: #4A4A4A;
}

.app-info-btn:hover {
    background: #D5D5D5;
    color: #333333;
    transform: translateY(-1.8px);
    box-shadow: 0 3.6px 10.8px rgba(0, 0, 0, 0.15);
}

.app-info-btn:hover i {
    color: #333333;
}

.app-info-btn span {
    font-weight: 500;
}

.app-order-type-btn {
    background: var(--color-primary) !important;
    color: white !important;
    font-weight: 500;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.45rem;
}

.app-order-type-btn i {
    font-size: 0.99rem;
    color: white;
}

.app-order-type-btn:hover {
    background: var(--color-primary-dark) !important;
    color: white !important;
    transform: translateY(-1.8px);
    box-shadow: 0 3.6px 10.8px rgba(255, 215, 0, 0.3);
}

.app-order-type-btn:hover i {
    color: white;
}

/* Section défilement codes promo */
.promo-banner-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--color-primary);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    /* La position top sera calculée dynamiquement par JavaScript */
}

.promo-banner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 45px;
}

.promo-banner-track {
    display: flex;
    animation: scrollPromo 30s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.promo-banner-item {
    display: inline-flex;
    align-items: center;
    gap: 0.675rem;
    padding: 0.675rem 1.8rem;
    min-width: 100%;
    color: white;
    flex-shrink: 0;
    box-sizing: border-box;
}

.promo-banner-icon {
    font-size: 1.08rem;
    color: white;
    animation: pulse 2s infinite;
}

.promo-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.promo-banner-title {
    font-weight: 600;
    font-size: 0.81rem;
    white-space: nowrap;
}

.promo-banner-code {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.27rem 0.675rem;
    border-radius: 18px;
    font-size: 0.765rem;
    transition: all 0.3s ease;
    user-select: none;
}

.promo-banner-code:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.045);
}

.promo-copy-icon {
    font-size: 0.75rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.promo-banner-code:hover .promo-copy-icon {
    opacity: 1;
    transform: scale(1.09);
}

.promo-code-label {
    opacity: 0.9;
}

.promo-code-value {
    font-weight: 700;
    font-size: 0.81rem;
    letter-spacing: 0.45px;
}

.promo-banner-discount {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.promo-discount-value {
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.18rem 0.54rem;
    border-radius: 10.8px;
}

.promo-min-amount {
    font-size: 0.675rem;
    opacity: 0.9;
}

@keyframes scrollPromo {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.promo-banner-track:hover {
    animation-play-state: paused;
}

/* Toast notification pour la copie */
.promo-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(90px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.9rem 1.35rem;
    border-radius: 10.8px;
    font-size: 0.81rem;
    font-weight: 500;
    z-index: 10002;
    display: none;
    box-shadow: 0 3.6px 18px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.promo-toast.show {
    transform: translateX(-50%) translateY(0);
}

.promo-toast-success {
    background: rgba(76, 175, 80, 0.95);
}

.promo-toast-error {
    background: rgba(244, 67, 54, 0.95);
}

@media (max-width: 768px) {
    .promo-toast {
        bottom: 72px;
        left: 0.9rem;
        right: 0.9rem;
        transform: translateY(90px);
        max-width: calc(100% - 1.8rem);
    }
    
    .promo-toast.show {
        transform: translateY(0);
    }
}

/* Hero Section */
.app-hero {
    position: relative;
    width: 100%;
    height: 180px;
    margin-top: 63px;
    overflow: hidden;
    border-radius: 0;
    transition: all 0.3s ease-out;
}

/* Ajuster le margin-top du hero si le banner est présent */
.promo-banner-container ~ .app-hero {
    margin-top: 108px;
}

.app-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.app-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
}

.app-hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem;
    z-index: 1;
}

.app-hero-logo {
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 3.6px 18px rgba(0, 0, 0, 0.3));
}

.app-hero-logo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4.5rem;
    filter: drop-shadow(0 3.6px 18px rgba(0, 0, 0, 0.3));
}

/* App Modal */
.app-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3.6px);
    -webkit-backdrop-filter: blur(3.6px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.35rem;
    animation: fadeIn 0.3s ease-out;
}

.app-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.app-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.app-modal-header h3 {
    margin: 0;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.1rem;
}

.app-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    color: var(--color-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.app-modal-close:hover {
    background: var(--color-danger);
    color: white;
    transform: rotate(90deg);
}

.app-modal-body {
    padding: 1.5rem;
    color: var(--color-text);
    line-height: 1.8;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

/* Styles pour la modal d'information complète */
.app-info-modal-content {
    max-width: 450px;
}

.app-info-body {
    padding: 0;
}

.app-info-header-section {
    padding: 0.9rem;
    border-bottom: 0.9px solid var(--color-border);
}

.app-info-top-buttons {
    display: flex;
    gap: 0.675rem;
    margin-bottom: 0.9rem;
}

.app-info-top-btn {
    flex: 1;
    padding: 0.675rem 0.9rem;
    border: 1.8px solid var(--color-primary);
    background: white;
    color: var(--color-primary);
    border-radius: 9px;
    font-size: 0.765rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.36px;
}

.app-info-top-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1.8px);
    box-shadow: 0 3.6px 9px rgba(0, 0, 0, 0.15);
}

.app-info-top-btn:active {
    transform: translateY(0);
    box-shadow: 0 1.8px 4.5px rgba(0, 0, 0, 0.1);
}

.app-info-top-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 3.6px 9px rgba(0, 0, 0, 0.15);
}

.app-info-status {
    margin-bottom: 0.675rem;
}

.app-info-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.36rem 0.675rem;
    border-radius: 14.4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.app-info-status-badge.status-open {
    background: #E8F5E9;
    color: #2E7D32;
}

.app-info-status-badge.status-open i {
    color: #4CAF50;
    font-size: 0.5rem;
}

.app-info-status-badge.status-closed {
    background: #FFEBEE;
    color: #C62828;
}

.app-info-status-badge.status-closed i {
    color: #F44336;
    font-size: 0.5rem;
}

.app-info-name {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0.36rem 0;
    color: var(--color-text);
}

.app-info-actions {
    display: flex;
    gap: 0.675rem;
    margin-top: 0.675rem;
}

.app-info-action-icon {
    width: 32.4px;
    height: 32.4px;
    border-radius: 50%;
    background: #F5F5F5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.855rem;
}

.app-info-action-icon:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.09);
}

.app-info-facebook-icon {
    color: #1877F2;
}

.app-info-facebook-icon:hover {
    background: #1877F2;
    color: white;
}

.app-info-instagram-icon {
    color: #E4405F;
}

.app-info-instagram-icon:hover {
    background: #E4405F;
    color: white;
}

.app-info-tiktok-icon {
    color: #000000;
}

.app-info-tiktok-icon:hover {
    background: #000000;
    color: white;
}

/* Sélecteur de langue */
.app-language-selector {
    position: relative;
}

.app-language-btn {
    font-size: 1.08rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-language-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    background: white;
    border-radius: 10.8px;
    box-shadow: 0 3.6px 10.8px rgba(0, 0, 0, 0.15);
    min-width: 144px;
    padding: 0.45rem;
    display: none;
    flex-direction: column;
    gap: 0.225rem;
    z-index: 1001;
    animation: fadeInScale 0.2s ease-out;
    overflow: hidden;
}

.app-language-menu.show {
    display: flex;
}

.app-language-option {
    display: flex;
    align-items: center;
    gap: 0.675rem;
    padding: 0.675rem;
    border: none;
    background: transparent;
    border-radius: 7.2px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
    color: var(--color-text);
    font-size: 0.81rem;
}

.app-language-option:hover {
    background: #F5F5F5;
}

.app-language-option.active {
    background: #E3F2FD;
    color: var(--color-primary);
    font-weight: 600;
}

.app-language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flag-icon img {
    width: 18px;
    height: 13.5px;
    object-fit: cover;
    border-radius: 1.8px;
    display: block;
}

.app-language-name {
    flex: 1;
}

.app-info-section {
    padding: 0.9rem;
    border-bottom: 0.9px solid var(--color-border);
}

.app-info-section:last-child {
    border-bottom: none;
}

.app-info-section-title {
    font-size: 0.81rem;
    font-weight: 600;
    margin: 0 0 0.675rem 0;
    color: var(--color-text);
}

.app-info-services {
    display: flex;
    flex-direction: column;
    gap: 0.54rem;
}

.app-info-service-item {
    display: flex;
    align-items: center;
    gap: 0.675rem;
    padding: 0.675rem;
    background: #F9F9F9;
    border-radius: 9px;
    transition: all 0.3s;
}

.app-info-service-item.active {
    background: #E3F2FD;
    border: 1.8px solid #2196F3;
}

.app-info-service-icon {
    width: 32.4px;
    height: 32.4px;
    border-radius: 9px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2196F3;
    font-size: 0.99rem;
}

.app-info-service-content {
    flex: 1;
}

.app-info-service-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.81rem;
    margin-bottom: 0.18rem;
}

.app-info-service-note {
    display: flex;
    align-items: center;
    gap: 0.36rem;
    font-size: 0.675rem;
    color: #F44336;
    margin-top: 0.18rem;
}

.app-info-service-note i {
    font-size: 0.585rem;
}

.app-info-service-check {
    color: #4CAF50;
    font-size: 0.9rem;
}

.app-info-hours {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.app-info-hour-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.app-info-hour-item.current {
    background: #E3F2FD;
}

.app-info-hour-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.8rem;
}

.app-info-hour-item.current .app-info-hour-icon {
    background: #2196F3;
    color: white;
}

.app-info-hour-content {
    flex: 1;
}

.app-info-hour-day {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.765rem;
    margin-bottom: 0.18rem;
}

.app-info-hour-time {
    font-size: 0.72rem;
    color: var(--color-text-light);
}

/* Styles pour le modal "À propos" */
.app-about-modal-content {
    max-width: 500px;
}

.app-about-body {
    padding: 1.5rem;
    max-height: calc(85vh - 100px);
}

.app-about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-about-intro {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.app-about-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-about-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--color-text);
    margin: 0;
    text-align: justify;
    padding: 0.5rem 0;
}

@media (max-width: 480px) {
    .app-about-text {
        font-size: 0.85rem;
        text-align: left;
    }
    
    .app-about-modal-content {
        max-width: 95%;
    }
}

/* Styles pour le modal "Contactez nous" */
.app-contact-modal-content {
    max-width: 500px;
}

.app-contact-body {
    padding: 1.5rem;
    max-height: calc(85vh - 100px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-contact-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--color-border);
}

.app-contact-logo {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.app-contact-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.app-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.app-contact-section {
    padding: 1rem;
    background: #F9F9F9;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.app-contact-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.app-contact-section-header i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.app-contact-section-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
}

.app-contact-address {
    margin: 0.5rem 0 1rem 0;
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.app-contact-map-container {
    width: 100%;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-contact-map {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 12px;
    display: block;
}

@media (max-width: 480px) {
    .app-contact-map {
        height: 200px;
    }
}

.app-contact-phone {
    margin: 0.5rem 0;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 600;
}

.app-contact-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
}

.app-contact-action-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-contact-whatsapp-btn {
    background: #25D366;
}

.app-contact-whatsapp-btn:hover {
    background: #20BA5A;
}

.app-contact-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-contact-hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E0E0E0;
}

.app-contact-hour-item:last-child {
    border-bottom: none;
}

.app-contact-hour-day {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.85rem;
}

.app-contact-hour-time {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.app-contact-social-section {
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-border);
}

.app-contact-social-title {
    text-align: center;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.app-contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.app-contact-social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s;
    min-width: 100px;
    flex: 1;
    max-width: 120px;
}

.app-contact-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-contact-social-link i {
    font-size: 1.5rem;
}

.app-contact-social-link span {
    font-size: 0.75rem;
    font-weight: 600;
}

.app-contact-facebook {
    border-color: #1877F2;
    color: #1877F2;
}

.app-contact-facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.app-contact-instagram {
    border-color: #E4405F;
    color: #E4405F;
}

.app-contact-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    border-color: #E4405F;
}

.app-contact-tiktok {
    border-color: #000000;
    color: #000000;
}

.app-contact-tiktok:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

.app-contact-whatsapp {
    border-color: #25D366;
    color: #25D366;
}

.app-contact-whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

@media (max-width: 480px) {
    .app-contact-modal-content {
        max-width: 95%;
    }
    
    .app-contact-social-links {
        gap: 0.5rem;
    }
    
    .app-contact-social-link {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .app-contact-social-link i {
        font-size: 1.25rem;
    }
    
    .app-contact-social-link span {
        font-size: 0.7rem;
    }
}

.app-about-text strong {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.app-about-text sup {
    font-size: 0.7em;
    vertical-align: super;
}

.app-about-welcome {
    text-align: center;
    font-size: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-border);
    color: var(--color-primary-dark);
}

.app-about-welcome strong {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.app-about-image-placeholder {
    width: 100%;
    min-height: 200px;
    max-height: 300px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--color-border);
    position: relative;
    overflow: hidden;
    margin: 0.5rem 0;
}

.app-about-image-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.5) 10px,
        rgba(255, 255, 255, 0.5) 20px
    );
    opacity: 0.3;
}

.app-about-image-placeholder img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    display: block;
}

/* Quand une image est ajoutée, masquer le placeholder */
.app-about-image-placeholder:has(img) {
    border: none;
    background: transparent;
    min-height: auto;
}

.app-about-image-placeholder:has(img)::before {
    display: none;
}

/* App Cart Sidebar Moderne */
.app-cart-sidebar {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    max-width: 378px;
    height: 100vh;
    height: 100dvh; /* Support pour les navigateurs modernes (viewport dynamique) */
    max-height: 100vh;
    max-height: 100dvh;
    background: white;
    box-shadow: -3.6px 0 21.6px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    touch-action: pan-y; /* Permet le scroll vertical uniquement */
}

.app-cart-sidebar.open {
    right: 0;
}

.app-cart-header {
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.app-cart-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.app-cart-title {
    display: flex;
    align-items: center;
    gap: 0.675rem;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.app-cart-title i {
    font-size: 1.125rem;
}

.app-cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 0.99rem;
}

.app-cart-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.app-cart-subtitle {
    font-size: 0.81rem;
    opacity: 0.9;
    font-weight: 500;
}

.app-cart-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.9rem;
    -webkit-overflow-scrolling: touch;
    min-height: 0; /* Important pour que flex fonctionne correctement */
    overscroll-behavior: contain; /* Empêche le scroll de se propager au body */
}

.app-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.7rem 1.35rem;
    text-align: center;
    min-height: 270px;
}

.app-cart-empty-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    color: var(--color-text-light);
    font-size: 2.7rem;
}

.app-cart-empty-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.45rem;
}

.app-cart-empty-hint {
    font-size: 0.81rem;
    color: var(--color-text-light);
}

.app-cart-footer {
    padding: 1.35rem;
    background: white;
    border-top: 0.9px solid var(--color-border);
    box-shadow: 0 -3.6px 10.8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0; /* Empêche le footer de rétrécir */
    max-height: 70vh; /* Limite la hauteur du footer sur petits écrans */
    overflow-y: auto; /* Permet le scroll si le contenu est trop grand */
    -webkit-overflow-scrolling: touch;
}

.app-cart-promo-section {
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
    border-bottom: 0.9px solid var(--color-border);
}

.app-cart-promo-input-wrapper {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.app-cart-promo-input {
    flex: 1;
    padding: 0.675rem;
    border: 1.8px solid var(--color-border);
    border-radius: 7.2px;
    font-size: 0.81rem;
    transition: border-color 0.3s;
    text-transform: uppercase;
}

.app-cart-promo-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(242, 89, 65, 0.1);
}

.app-cart-promo-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.app-cart-promo-btn {
    padding: 0.675rem 0.9rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 7.2px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.3s;
    font-size: 0.81rem;
    white-space: nowrap;
}

.app-cart-promo-btn:hover:not(:disabled) {
    background: var(--color-primary-dark);
    box-shadow: 0 1.8px 5.4px rgba(199, 62, 45, 0.3);
}

.app-cart-promo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.app-cart-promo-message {
    font-size: 0.765rem;
    padding: 0.45rem;
    border-radius: 5.4px;
    margin-top: 0.45rem;
}

.app-cart-promo-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.app-cart-promo-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.app-cart-promo-message.info {
    background: rgba(33, 150, 243, 0.1);
    color: #1565c0;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.app-cart-summary {
    margin-bottom: 1.35rem;
}

.app-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.675rem 0;
    font-size: 0.9rem;
    color: var(--color-text);
}

.app-cart-total {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    border-top: 1.8px solid var(--color-border);
    padding-top: 0.9rem;
    margin-top: 0.45rem;
}

.app-cart-checkout-btn {
    width: 100%;
    padding: 0.765rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 5.4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.675rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3.6px 10.8px rgba(255, 215, 0, 0.3);
}

.app-cart-checkout-btn:hover:not(:disabled) {
    background: var(--color-primary-dark);
    box-shadow: 0 1.8px 5.4px rgba(199, 62, 45, 0.3);
}

.app-cart-checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* App Cart FAB (Floating Action Button) */
.app-cart-fab {
    position: fixed;
    bottom: 1.35rem;
    right: 1.35rem;
    width: 50.4px;
    height: 50.4px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    color: white;
    font-size: 1.125rem;
    cursor: pointer;
    box-shadow: 0 3.6px 10.8px rgba(199, 62, 45, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 999;
    overflow: visible;
}

.app-cart-fab:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 5.4px 14.4px rgba(199, 62, 45, 0.4);
}

.app-cart-fab:active {
    transform: scale(0.95);
}

.app-cart-fab-icon {
    position: relative;
    z-index: 2;
}

.app-cart-fab-badge {
    position: absolute;
    top: -3.6px;
    right: -3.6px;
    background: var(--color-danger);
    color: white;
    border-radius: 50%;
    width: 25.2px;
    height: 25.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.675rem;
    font-weight: 700;
    border: 2.7px solid white;
    z-index: 3;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.app-cart-fab-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.app-cart-fab:hover .app-cart-fab-ripple {
    width: 90px;
    height: 90px;
}

/* App Cart Overlay */
.app-cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    touch-action: none; /* Empêche le scroll sur l'overlay */
    overflow: hidden;
}

.app-cart-overlay.active {
    display: block;
}

/* Responsive pour App */
@media (max-width: 768px) {
    .app-header-content {
        padding: 0.675rem;
    }
    
    .app-title {
        font-size: 0.9rem;
    }
    
    .app-status {
        font-size: 0.63rem;
    }
    
    .app-action-btn {
        min-width: 32.4px;
        height: 32.4px;
        font-size: 0.81rem;
        padding: 0 0.675rem;
    }
    
    .app-info-btn {
        font-size: 0.72rem;
        padding: 0.45rem 0.765rem;
    }
    
    .app-info-btn i {
        font-size: 0.765rem;
    }
    
    .app-order-type-btn {
        width: 32.4px;
        height: 32.4px;
    }
    
    .app-order-type-btn i {
        font-size: 0.9rem;
    }
    
    .promo-banner-container {
        top: 63px;
        height: 40.5px;
    }
    
    .promo-banner-item {
        padding: 0.54rem 1.35rem;
        gap: 0.54rem;
    }
    
    .promo-banner-title {
        font-size: 0.72rem;
    }
    
    .promo-banner-code {
        padding: 0.225rem 0.54rem;
        font-size: 0.675rem;
    }
    
    .promo-code-value {
        font-size: 0.72rem;
    }
    
    .promo-discount-value {
        font-size: 0.765rem;
        padding: 0.135rem 0.45rem;
    }
    
    .promo-min-amount {
        font-size: 0.63rem;
    }
    
    .promo-banner-container ~ .app-hero {
        margin-top: 94.5px;
    }
    
    .app-hero {
        height: 198px;
        margin-top: 63px;
    }
    
    .app-cart-sidebar {
        max-width: 100%;
        width: 100%;
    }
    
    .app-cart-header {
        padding: 0.9rem;
    }
    
    .app-cart-title {
        font-size: 1.2rem;
    }
    
    .app-cart-items {
        padding: 0.75rem;
    }
    
    .app-cart-footer {
        padding: 1rem;
        max-height: 60vh;
    }
    
    .app-cart-summary {
        margin-bottom: 1rem;
    }
    
    .app-cart-summary-row {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    .app-cart-total {
        font-size: 1.1rem;
    }
    
    .app-cart-checkout-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .app-cart-fab {
        bottom: 1.35rem;
        right: 1.35rem;
        width: 50.4px;
        height: 50.4px;
        font-size: 1.125rem;
    }
    
    /* Styles responsives pour les items du panier */
    .app-cart-item {
        padding: 0.75rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .app-cart-item > div:first-child {
        width: 50px !important;
        height: 50px !important;
        margin-right: 0.6rem !important;
    }
    
    .app-cart-item > div:last-child {
        margin-left: 0.5rem !important;
    }
    
    .app-cart-item button {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }
}

/* Media query pour très petits écrans (moins de 360px) */
@media (max-width: 360px) {
    .app-cart-sidebar {
        width: 100%;
    }
    
    .app-cart-header {
        padding: 0.75rem;
    }
    
    .app-cart-title {
        font-size: 1.1rem;
    }
    
    .app-cart-close {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .app-cart-items {
        padding: 0.6rem;
    }
    
    .app-cart-footer {
        padding: 0.75rem;
        max-height: 55vh;
    }
    
    .app-cart-summary-row {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .app-cart-total {
        font-size: 1rem;
    }
    
    .app-cart-checkout-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .app-cart-promo-input {
        font-size: 0.75rem;
        padding: 0.6rem;
    }
    
    .app-cart-promo-btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Styles responsives pour les items du panier sur très petits écrans */
    .app-cart-item {
        padding: 0.6rem !important;
        margin-bottom: 0.5rem !important;
        flex-wrap: wrap !important;
    }
    
    .app-cart-item > div:first-child {
        width: 45px !important;
        height: 45px !important;
        margin-right: 0.5rem !important;
    }
    
    .app-cart-item > div:nth-child(2) {
        flex: 1 1 calc(100% - 100px) !important;
        min-width: 0 !important;
    }
    
    .app-cart-item > div:last-child {
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
    }
    
    .app-cart-item button {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.65rem !important;
    }
}

/* Header */
.header {
    background: var(--color-secondary);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: var(--color-primary-dark);
    font-size: 1.5rem;
}

/* Sidebar Admin */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: #2C2C2C;
    color: var(--color-secondary);
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin: 0.25rem 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 215, 0, 0.2);
    border-left: 3px solid var(--color-primary);
}

.sidebar-menu a i {
    margin-right: 0.75rem;
    width: 20px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}

/* Cards */
.card {
    background: var(--color-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
}

.card-header h2 {
    color: var(--color-primary-dark);
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-text);
    border: 2px solid var(--color-primary);
}

.btn-danger {
    background: var(--color-danger);
    color: var(--color-secondary);
}

.btn-success {
    background: var(--color-success);
    color: var(--color-secondary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-secondary);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    background: var(--color-primary);
    color: var(--color-text);
    font-weight: 600;
}

.table tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: var(--color-success);
    color: var(--color-secondary);
}

.badge-danger {
    background: var(--color-danger);
    color: var(--color-secondary);
}

.badge-warning {
    background: var(--color-warning);
    color: var(--color-secondary);
}

.badge-info {
    background: var(--color-info);
    color: var(--color-secondary);
}

/* Header du restaurant */
.restaurant-header {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.restaurant-cover {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.restaurant-header-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(0,0,0,0.2);
}

.restaurant-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.restaurant-logo {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid white;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.restaurant-logo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--color-primary-dark);
    border: 4px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.restaurant-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.restaurant-name {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.restaurant-status {
    display: flex;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-open .status-dot {
    background: var(--color-success);
}

.status-closed .status-dot {
    background: var(--color-danger);
}

.restaurant-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.restaurant-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.95);
    color: var(--color-text);
}

.restaurant-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    justify-content: center;
}

.whatsapp-btn:hover {
    background: #20BA5A;
}

.info-btn {
    background: rgba(255,255,255,0.95);
    color: var(--color-text);
}

/* Modal d'information */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.info-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--color-border);
}

.info-modal-header h3 {
    margin: 0;
    color: var(--color-primary-dark);
}

.info-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.info-modal-close:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.info-modal-body {
    padding: 1.5rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* Menu Public */
.menu-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.8rem 2.25rem;
    position: relative;
    z-index: 1;
    margin-top: -18px;
    background: white;
    border-radius: 21.6px 21.6px 0 0;
    box-shadow: 0 -3.6px 18px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

@media (max-width: 768px) {
    .menu-container {
        padding: 1rem 0;
    }
}

.menu-header {
    text-align: center;
    padding: 1.8rem 0;
    background: var(--color-primary);
    color: var(--color-secondary);
    border-radius: 5.4px;
    margin-bottom: 1.8rem;
}

.menu-header h1 {
    font-size: 2.7rem;
    margin-bottom: 0.45rem;
}

.menu-categories-wrapper {
    position: relative;
    margin-bottom: 1.8rem;
    width: 100%;
}

.menu-categories {
    display: flex;
    gap: 0.54rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    padding: 0 2.7rem;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.category-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 1.8px solid var(--color-primary);
    color: var(--color-primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
    z-index: 10;
    box-shadow: 0 3.6px 10.8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
    pointer-events: all;
}

.menu-categories-wrapper:hover .category-scroll-btn {
    opacity: 1;
    background: white;
}

.category-scroll-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5.4px 18px rgba(255, 215, 0, 0.4);
}

.category-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.category-scroll-left {
    left: 0;
}

.category-scroll-right {
    right: 0;
}

.category-scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.category-circle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-width: 81px;
    padding: 0.45rem;
    box-sizing: border-box;
    margin: 0;
    flex-shrink: 0;
}

.category-circle-image {
    width: 63px;
    height: 63px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.8px solid var(--color-border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 0.9px 2.7px rgba(0,0,0,0.08);
}

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

.category-circle-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
}

.category-circle-image i {
    font-size: 1.98rem;
    color: var(--color-primary-dark);
    z-index: 1;
}

.category-circle-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--color-secondary);
    text-align: center;
    z-index: 2;
    text-shadow: 1.8px 1.8px 3.6px rgba(0,0,0,0.8);
    width: 90%;
    word-wrap: break-word;
    line-height: 1.2;
}

.category-circle.active .category-circle-image {
    border-color: var(--color-primary);
    background: transparent;
    box-shadow: 0 2px 6px rgba(199, 62, 45, 0.2);
    transform: scale(1);
}

.category-circle.active .category-circle-name {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.category-circle:hover .category-circle-image {
    transform: scale(1.05);
    box-shadow: 0 5.4px 18px rgba(255, 165, 0, 0.5);
}

.category-circle:hover .category-circle-name {
    color: var(--color-primary-dark);
}

.category-section {
    padding: 0 0.675rem;
    margin-bottom: 1.35rem;
}

.category-section h2 {
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 0.675rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 0.675rem;
    margin-bottom: 1.8rem;
    padding: 0 0.9rem;
}

.product-card {
    background: var(--color-surface);
    border-radius: 5.4px;
    overflow: hidden;
    border: 0.9px solid var(--color-border);
    box-shadow: 0 0.9px 1.8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.product-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 1.8px 3.6px rgba(0,0,0,0.08);
}

.product-content {
    display: flex;
    align-items: center;
    gap: 0.675rem;
    padding: 0.54rem;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.225rem;
    color: var(--color-text);
    line-height: 1.3;
}

.product-description {
    color: var(--color-text-light);
    margin-bottom: 0.45rem;
    font-size: 0.765rem;
    line-height: 1.4;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.product-discount-badge {
    background: var(--color-primary-dark);
    color: white;
    padding: 0.135rem 0.45rem;
    border-radius: 7.2px;
    font-size: 0.675rem;
    font-weight: 600;
}

.product-price {
    font-size: 0.99rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.36rem;
}

.product-price-original {
    font-size: 0.765rem;
    font-weight: 400;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.product-image-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 7.2px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
}

.btn-add-cart {
    position: absolute;
    bottom: 3.6px;
    right: 3.6px;
    width: 28.8px;
    height: 28.8px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 3.6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1.8px 5.4px rgba(33, 150, 243, 0.4);
    font-size: 0.81rem;
}

.btn-add-cart:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 2px 4px rgba(199, 62, 45, 0.3);
}

.product-unavailable {
    position: absolute;
    bottom: 3.6px;
    right: 3.6px;
    padding: 0.225rem 0.45rem;
    font-size: 0.675rem;
}

/* Cart */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--color-secondary);
    box-shadow: -4px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 1000;
    overflow-y: auto;
}

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

.cart-header {
    padding: 1.5rem;
    background: var(--color-primary);
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    padding: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.cart-total {
    padding: 1.5rem;
    background: var(--color-primary);
    position: sticky;
    bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .category-section {
        padding: 0 0.75rem;
    }
    
    .products-grid {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .product-content {
        gap: 0.675rem;
        padding: 0.675rem;
    }
    
    .product-image-wrapper {
        width: 63px;
        height: 63px;
    }
    
    .product-name {
        font-size: 0.855rem;
    }
    
    .product-description {
        font-size: 0.72rem;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .btn-add-cart {
        width: 25.2px;
        height: 25.2px;
        font-size: 0.72rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .restaurant-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .restaurant-logo-section {
        width: 100%;
    }
    
    .restaurant-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .restaurant-name {
        font-size: 1.5rem;
    }
    
    .restaurant-logo,
    .restaurant-logo-placeholder {
        width: 130px;
        height: 100px;
    }
    
    .restaurant-logo-placeholder {
        font-size: 3rem;
    }
    
    .restaurant-cover {
        height: 150px;
    }
    
    .info-modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    /* Catégories en ligne avec défilement horizontal sur mobile */
    body {
        overflow-x: hidden;
    }
    
    .app-body {
        overflow-x: hidden;
    }
    
    .menu-container {
        padding: 1rem 0;
        overflow-x: visible;
        width: 100%;
        max-width: 100%;
        margin-top: -20px;
        border-radius: 20px 20px 0 0;
    }
    
    .menu-categories-wrapper {
        margin-bottom: 2rem;
    }
    
    .menu-categories {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.75rem;
        padding: 1rem 3.5rem;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--color-primary) transparent;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    .category-scroll-btn {
        opacity: 1;
        pointer-events: all;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
    
    .category-scroll-left {
        left: 0.25rem;
    }
    
    .category-scroll-right {
        right: 0.25rem;
    }
    
    .menu-categories {
        padding: 1rem 3rem;
    }
    
    .menu-categories::before {
        content: '';
        flex-shrink: 0;
        width: 0;
        min-width: 0;
        height: 1px;
        display: none;
    }
    
    .menu-categories::after {
        content: '';
        flex-shrink: 0;
        width: 0;
        min-width: 0;
        height: 1px;
        display: none;
    }
    
    .menu-categories::-webkit-scrollbar {
        height: 6px;
    }
    
    .menu-categories::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .menu-categories::-webkit-scrollbar-thumb {
        background: var(--color-primary);
        border-radius: 3px;
    }
    
    .menu-categories::-webkit-scrollbar-thumb:hover {
        background: var(--color-primary-dark);
    }
    
    .category-circle {
        flex-shrink: 0;
        min-width: 72px;
    }
    
    .category-circle-image {
        width: 72px;
        height: 72px;
    }
    
    .category-circle-name {
        font-size: 0.675rem;
        margin-top: 0.36rem;
        position: static;
        transform: none;
        color: var(--color-text);
        text-shadow: none;
        width: 100%;
    }
    
    .category-circle-image::after {
        display: none;
    }
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Styles pour les packs */
.packs-section {
    margin-bottom: 2rem;
}

.packs-grid {
    display: flex;
    gap: 0.675rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.225rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

.packs-grid::-webkit-scrollbar {
    height: 5.4px;
}

.packs-grid::-webkit-scrollbar-track {
    background: transparent;
}

.packs-grid::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 2.7px;
}

.packs-grid::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

.pack-card {
    background: var(--color-surface);
    border-radius: 7.2px;
    overflow: hidden;
    border: 0.9px solid var(--color-border);
    box-shadow: 0 1.8px 3.6px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 252px;
    min-width: 252px;
}

.pack-card img {
    border: none;
}

.pack-card:hover {
    transform: translateY(-3.6px);
    box-shadow: 0 7.2px 18px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .pack-card {
        width: 216px;
        min-width: 216px;
    }
    
    .packs-section {
        padding: 0 0.675rem;
    }
    
    .packs-grid {
        gap: 0.675rem;
    }
}

/* Styles pour la page de détails produit */
.product-hero {
    height: 315px;
}

.product-hero-badge {
    position: absolute;
    top: 1.35rem;
    right: 1.35rem;
    background: var(--color-danger);
    color: white;
    padding: 0.675rem 1.125rem;
    border-radius: 10.8px;
    font-weight: 700;
    font-size: 0.99rem;
    z-index: 2;
    box-shadow: 0 3.6px 10.8px rgba(244, 67, 54, 0.4);
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.product-details-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.44rem 1.35rem;
    position: relative;
    z-index: 10;
    margin-top: -36px;
    background: white;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -3.6px 18px rgba(0, 0, 0, 0.1);
    min-height: 360px;
}

.product-details-content {
    max-width: 800px;
    margin: 0 auto;
}

.product-details-header {
    margin-bottom: 1.44rem;
    padding-bottom: 1.44rem;
    border-bottom: 1.8px solid var(--color-border);
}

.product-details-category {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.36rem 0.72rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 14.4px;
    color: var(--color-primary-dark);
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.675rem;
}

.product-details-category i {
    font-size: 0.765rem;
}

.product-details-name {
    font-size: 1.44rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.9rem 0;
    line-height: 1.2;
}

.product-details-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.54rem;
}

.product-details-price {
    display: flex;
    align-items: baseline;
    gap: 0.675rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.product-details-price-original {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.product-details-discount {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.36rem 0.72rem;
    background: #E8F5E9;
    border-radius: 5.76px;
    color: #2E7D32;
    font-weight: 600;
    font-size: 0.765rem;
    width: fit-content;
}

.product-details-discount i {
    color: #4CAF50;
}

.product-details-section {
    margin-bottom: 1.44rem;
}

.product-details-section-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.675rem 0;
}

.product-details-description {
    font-size: 0.855rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

.product-details-availability {
    display: flex;
    align-items: center;
}

.product-availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.675rem 1.35rem;
    border-radius: 10.8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-availability-badge.available {
    background: #E8F5E9;
    color: #2E7D32;
}

.product-availability-badge.available i {
    color: #4CAF50;
}

.product-availability-badge.unavailable {
    background: #FFEBEE;
    color: #C62828;
}

.product-availability-badge.unavailable i {
    color: #F44336;
}

.product-details-actions {
    margin: 1.6rem 0;
}

.product-details-add-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.product-details-add-btn:hover {
    transform: translateY(-1.8px);
    box-shadow: 0 5.4px 18px rgba(255, 215, 0, 0.4);
}

.product-details-add-btn:active {
    transform: translateY(0);
}

.product-details-add-btn i {
    font-size: 1.1rem;
}

/* Produits similaires */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(162px, 1fr));
    gap: 1.35rem;
}

.related-products-grid.horizontal-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.9rem;
    padding: 0.45rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

.related-products-grid.horizontal-scroll::-webkit-scrollbar {
    height: 5.4px;
}

.related-products-grid.horizontal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.related-products-grid.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 2.7px;
}

.related-products-grid.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

.related-products-grid.horizontal-scroll .related-product-card {
    flex: 0 0 162px;
    min-width: 162px;
    max-width: 162px;
}

.related-product-card {
    text-decoration: none;
    color: inherit;
    background: var(--color-secondary);
    border-radius: 10.8px;
    overflow: hidden;
    box-shadow: 0 1.8px 7.2px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.related-product-card:hover {
    transform: translateY(-3.6px);
    box-shadow: 0 7.2px 18px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.related-product-image-wrapper {
    position: relative;
    width: 100%;
    height: 135px;
    overflow: hidden;
}

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

.related-product-discount-badge {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    background: var(--color-danger);
    color: white;
    padding: 0.225rem 0.45rem;
    border-radius: 5.4px;
    font-size: 0.675rem;
    font-weight: 700;
}

.related-product-info {
    padding: 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.45rem 0;
    line-height: 1.3;
}

.related-product-price {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    font-size: 0.99rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: auto;
}

.related-product-price-original {
    font-size: 0.765rem;
    font-weight: 400;
    color: var(--color-text-light);
    text-decoration: line-through;
}

/* Carte produit cliquable */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-1.8px);
}

.product-card-link:hover .product-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive pour la page de détails */
@media (max-width: 768px) {
    .product-details-container {
        padding: 1.35rem 0.9rem;
        margin-top: -18px;
        border-radius: 18px 18px 0 0;
    }
    
    .product-hero {
        height: 225px;
    }
    
    .product-hero-badge {
        top: 0.9rem;
        right: 0.9rem;
        padding: 0.45rem 0.9rem;
        font-size: 0.855rem;
    }
    
    .product-details-name {
        font-size: 1.26rem;
    }
    
    .product-details-price {
        font-size: 1.17rem;
    }
    
    .product-details-price-original {
        font-size: 0.81rem;
    }
    
    .product-details-section-title {
        font-size: 0.99rem;
    }
    
    .product-details-description {
        font-size: 0.81rem;
    }
    
    .product-details-add-btn {
        padding: 0.72rem 1.08rem;
        font-size: 0.855rem;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
        gap: 0.9rem;
    }
    
    .related-product-image-wrapper {
        height: 108px;
    }
    
    .related-product-name {
        font-size: 0.81rem;
    }
    
    .related-product-price {
        font-size: 0.9rem;
    }
}

/* Styles pour la galerie d'images produits */
.product-hero {
    position: relative;
}

.product-gallery-indicators {
    position: absolute;
    bottom: 1.35rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 10;
}

.gallery-dot {
    width: 7.2px;
    height: 7.2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--color-primary);
    width: 21.6px;
    border-radius: 3.6px;
}

.product-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 39.6px;
    height: 39.6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--color-primary-dark);
    font-size: 1.08rem;
    box-shadow: 0 1.8px 7.2px rgba(0, 0, 0, 0.2);
}

.product-gallery-nav:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.09);
}

.product-gallery-prev {
    left: 0.9rem;
}

.product-gallery-next {
    right: 0.9rem;
}

.product-gallery-thumbnails {
    display: flex;
    gap: 0.675rem;
    padding: 0.9rem;
    overflow-x: auto;
    background: var(--color-secondary);
    border-top: 0.9px solid #E0E0E0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

.product-gallery-thumbnails::-webkit-scrollbar {
    height: 5.4px;
}

.product-gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.product-gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 2.7px;
}

.product-gallery-thumb {
    min-width: 72px;
    width: 72px;
    height: 72px;
    border-radius: 7.2px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2.7px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.product-gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.045);
}

.product-gallery-thumb.active {
    opacity: 1;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1.8px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .product-gallery-nav {
        width: 32.4px;
        height: 32.4px;
        font-size: 0.9rem;
    }
    
    .product-gallery-prev {
        left: 0.45rem;
    }
    
    .product-gallery-next {
        right: 0.45rem;
    }
    
    .product-gallery-thumb {
        min-width: 54px;
        width: 54px;
        height: 54px;
    }
    
    .gallery-dot {
        width: 5.4px;
        height: 5.4px;
    }
    
    .gallery-dot.active {
        width: 18px;
    }
}

/* Modal de sélection du type de commande */
.order-type-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(7.2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 0.9rem;
    animation: fadeIn 0.3s ease-out;
}

.order-type-modal.hidden {
    display: none;
}

.order-type-modal-content {
    background: white;
    border-radius: 18px;
    max-width: 378px;
    width: 100%;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(27px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.order-type-modal-header {
    padding: 0.9rem 1.125rem 0.675rem;
    text-align: center;
    background: var(--color-primary);
    color: white;
}

.order-type-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.order-type-modal-header p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.order-type-options {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-type-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.order-type-option:hover {
    background: var(--color-primary);
    border-color: var(--color-primary-dark);
    transform: translateY(-1.8px);
    box-shadow: 0 7.2px 18px rgba(255, 215, 0, 0.3);
}

.order-type-option:hover .order-type-icon {
    background: white;
    color: var(--color-primary);
}

.order-type-option:hover .order-type-content h3,
.order-type-option:hover .order-type-content p {
    color: white;
}

.order-type-option:hover .fa-chevron-right {
    color: white;
}

.order-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.order-type-content {
    flex: 1;
}

.order-type-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.order-type-content p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.order-type-option .fa-chevron-right {
    color: var(--color-text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .order-type-modal-content {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }
    
    .order-type-modal-header {
        padding: 0.9rem 1.125rem 0.675rem;
    }
    
    .order-type-modal-header h2 {
        font-size: 1.125rem;
    }
    
    .order-type-modal-header p {
        font-size: 0.72rem;
    }
    
    .order-type-options {
        padding: 0.675rem;
        gap: 0.54rem;
    }
    
    .order-type-option {
        padding: 0.675rem;
        gap: 0.54rem;
    }
    
    .order-type-icon {
        width: 36px;
        height: 36px;
        font-size: 0.99rem;
    }
    
    .order-type-content h3 {
        font-size: 0.855rem;
    }
    
    .order-type-content p {
        font-size: 0.675rem;
    }
    
    .order-type-option .fa-chevron-right {
        font-size: 0.81rem;
    }
}

/* Styles pour les packs */
.pack-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.pack-product-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #F9F9F9;
    border-radius: 9.6px;
    transition: all 0.3s;
}

.pack-product-item:hover {
    background: #F0F0F0;
    transform: translateX(4px);
}

.pack-product-image {
    width: 60px;
    height: 60px;
    border-radius: 6.4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #E0E0E0;
}

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

.pack-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pack-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.pack-product-description {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

.pack-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.pack-product-quantity {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.pack-product-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

@media (max-width: 768px) {
    .pack-product-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .pack-product-image {
        width: 60px;
        height: 60px;
    }
    
    .pack-product-name {
        font-size: 1rem;
    }
    
    .pack-product-description {
        font-size: 0.85rem;
    }
}

/* Barre de catégories sticky (texte seulement) */
.sticky-categories-bar {
    position: fixed;
    top: 0; /* Sera calculé dynamiquement par JavaScript */
    left: 0;
    right: 0;
    background: white;
    z-index: 997; /* En dessous de la barre promo (998) mais au-dessus du contenu */
    box-shadow: 0 1.8px 7.2px rgba(0, 0, 0, 0.1);
    padding: 0.675rem 0.9rem;
    display: none;
    animation: slideDown 0.3s ease-out;
}

/* Assurer que la barre sticky ne se superpose pas au contenu */
body.sticky-categories-visible {
    padding-top: 0; /* Le padding sera géré dynamiquement si nécessaire */
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sticky-categories-container {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
    padding: 0 2.7rem 0 0.45rem;
    max-width: 100%;
}

.sticky-categories-container::-webkit-scrollbar {
    height: 3.6px;
}

.sticky-categories-container::-webkit-scrollbar-track {
    background: transparent;
}

.sticky-categories-container::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 1.8px;
}

.sticky-categories-container::-webkit-scrollbar-thumb:hover {
    background: #bdbdbd;
}

.sticky-category-item {
    padding: 0.45rem 0.9rem;
    font-size: 0.855rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 1.8px solid transparent;
    position: relative;
}

.sticky-category-item:hover {
    color: var(--color-primary-dark);
}

.sticky-category-item.active {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary-dark);
}

/* Boutons de recherche et menu (optionnel) */
.sticky-categories-bar::before {
    content: '';
    display: none; /* On peut ajouter des boutons si nécessaire */
}

/* Footer */
.app-footer {
    background: var(--color-secondary);
    border-top: 0.9px solid var(--color-border);
    padding: 0.9rem;
    margin-top: 1.8rem;
    text-align: center;
}

.app-footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.675rem;
    flex-wrap: wrap;
}

.app-footer-text {
    font-size: 0.72rem;
    color: var(--color-text-light);
    font-weight: 400;
}

.app-footer-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.app-footer-link:hover {
    opacity: 0.8;
}

.app-footer-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Styles pour le modal d'ajout à l'écran d'accueil */
.add-to-home-modal-content {
    max-width: 90% !important;
    max-height: 85vh !important;
}

.add-to-home-modal-header {
    padding: 0.675rem 0.9rem !important;
}

.add-to-home-modal-header h3 {
    font-size: 0.99rem !important;
    margin: 0 !important;
}

.add-to-home-modal-header .app-modal-close {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.81rem !important;
}

.add-to-home-modal-body {
    padding: 0.9rem !important;
    max-height: calc(85vh - 60px) !important;
}

.add-to-home-instructions {
    display: flex;
    flex-direction: column;
    gap: 0.675rem;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 0.675rem;
    padding: 0.675rem;
    background: #F9F9F9;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.instruction-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.81rem;
    flex-shrink: 0;
}

.instruction-content {
    flex: 1;
}

.instruction-content h4 {
    margin: 0 0 0.27rem 0;
    color: var(--color-text);
    font-size: 0.765rem;
    font-weight: 600;
}

.instruction-content p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.72rem;
    line-height: 1.4;
}

.instruction-content p strong {
    font-weight: 600;
    color: var(--color-text);
}

.instruction-content p i {
    font-size: 0.675rem;
    margin: 0 0.18rem;
}

.instruction-note {
    display: flex;
    align-items: flex-start;
    gap: 0.54rem;
    padding: 0.675rem;
    background: #E3F2FD;
    border-radius: 8px;
    border-left: 3px solid #2196F3;
    margin-top: 0.27rem;
}

.instruction-note i {
    color: #2196F3;
    font-size: 0.9rem;
    margin-top: 0.09rem;
    flex-shrink: 0;
}

.instruction-note p {
    margin: 0;
    color: #1976D2;
    font-size: 0.675rem;
    line-height: 1.4;
}

/* Masquer le modal par défaut s'il a la classe hidden */
.app-modal.hidden {
    display: none !important;
}

/* Afficher le modal addToHomeScreenModal quand la classe hidden est retirée */
#addToHomeScreenModal:not(.hidden) {
    display: flex !important;
}

