/* --- FOODKING HERO STYLE --- */
.fk-hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: #111;
    background-image: linear-gradient(rgba(10, 10, 10, 0.6), rgba(0, 0, 0, 0.85)),
    url('/images/download.jfif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding-top: 40px;
}

.fk-hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
}

.fk-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* --- SECTION TEXTE (GAUCHE) --- */
.fk-hero-content {
    flex: 1;
    max-width: 550px;
    z-index: 10;
}

.fk-subtitle {
    display: inline-block;
    color: #e60000;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.fk-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
}

.fk-highlight {
    color: #fff;
}

.fk-description {
    font-size: 1.125rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.fk-hero-prices {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.fk-price {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    background: transparent;
    padding: 0;
}

.fk-label {
    background: transparent;
    color: #ffc107;
    font-weight: 800;
    font-size: 1rem;
    border: 2px dashed #ffc107;
    padding: 5px 10px;
    border-radius: 10px;
    transform: rotate(-10deg);
}

.fk-hero-actions {
    display: flex;
    gap: 1rem;
}

.fk-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    background-color: #ce2101;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 5px 15px #ce20012a;
}

.fk-btn-primary i {
    margin-right: 8px;
}

.fk-btn-primary:hover {
    background-color: var(--primary-yellow);
    ;
    transform: translateY(-2px);
}

/* --- SECTION VISUELLE (DROITE) --- */
.fk-hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.fk-bg-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 65%);
    border-radius: 50%;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fk-main-image {
    width: 100%;
    max-width: 550px;
    object-fit: contain;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    position: relative;
    border-radius: 16px;
    mix-blend-mode: lighten;
}

/* --- ÉLÉMENTS FLOTTANTS DECORATIFS (IMAGES) --- */
.fk-deco {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    opacity: 0.9;
}

.fk-deco-1 {
    position: absolute;
    left: 0;
    top: 5%;
    width: 90px;
    animation: float 6s ease-in-out infinite alternate;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}

.fk-deco-2 {
    bottom: 52%;
    right: 1%;
    width: 130px;
    ;
    animation: float 7s ease-in-out infinite alternate-reverse;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}

.fk-deco-3 {
    width: 50px;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
    position: absolute;
    right: 0;
    bottom: 0;
}

.fk-deco-4 {
    /* Feu en bas à gauche */
    bottom: 0;
    left: 0;
    width: 250px;
    opacity: 0.7;
    z-index: 20;
    mix-blend-mode: screen;
    /* Pour que le feu s'intègre parfaitement au fond sombre */
}

/* --- ANIMATIONS --- */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .fk-hero-inner {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .fk-hero-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .fk-hero-actions {
        justify-content: center;
    }

    .fk-hero-prices {
        justify-content: center;
    }

    .fk-hero-visual {
        width: 100%;
        min-height: 350px;
    }

    .fk-main-image {
        max-width: 400px;
    }

    .fk-el-1,
    .fk-el-2 {
        display: none;
    }
}

@media (max-width: 576px) {
    .fk-title {
        font-size: 2.8rem;
    }

    .fk-main-image {
        max-width: 300px;
    }

    .fk-hero-section {
        min-height: 60vh;
    }
}

/* ===== Hero Promotion Carousel — Seamless Crossfade ===== */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

/* Stack ALL slides absolutely so they overlap — no display toggling */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.9s;
}

/* First slide sets the natural height so the container doesn't collapse */
.hero-slide:first-child {
    position: relative;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

/* Subtle Ken Burns zoom while a slide is active */
.hero-slide.active .collage-image img {
    animation: heroKenBurns 6s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    from {
        transform: rotate(5deg) scale(1);
    }

    to {
        transform: rotate(5deg) scale(1.05);
    }
}

/* ── Arrow Buttons: positioned on left/right sides ── */
.hero-carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 20;
}

.hero-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0, 0, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-carousel-btn:active {
    transform: scale(0.95);
}

/* ── Dot Indicators ── */
.hero-carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0, 0, 1);
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.hero-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* ── Mobile adjustments for carousel ── */
@media (max-width: 768px) {
    .hero-carousel-controls {
        bottom: 16px;
        gap: 10px;
    }

    .hero-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    .hero-dot.active {
        width: 22px;
    }
}

.menu-item .mini-config {
    display: none !important;
}

.menu-item .mini-qty {
    display: none !important;
}

#addToCartModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

#addToCartModal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#addToCartModal .modal-dialog {
    margin: 1.75rem auto;
    max-width: 550px;
    width: 95%;
    pointer-events: auto;
}

#addToCartModal .modal-content {
    width: 100%;
    max-width: none;
    padding: 0;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    border: none;
    overflow: hidden;
    max-height: calc(100dvh - 3.5rem);
    display: flex;
    flex-direction: column;
}

#addToCartModal .modal-header {
    flex-shrink: 0;
    margin-bottom: 0;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.btn-close-custom {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #495057;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 1;
    text-shadow: none;
    padding: 0;
    margin-top: -5px;
}

.btn-close-custom:hover {
    background: #e9ecef;
    color: #ce2101;
    transform: rotate(90deg);
    opacity: 1;
}

#addToCartModal .modal-body {
    padding: 0 2rem 1.5rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}

#addToCartModal .action-footer {
    flex-shrink: 0;
}

.atc-modal__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.2;
    padding-right: 20px;
}

.atc-section-block {
    margin-bottom: 20px;
}

.atc-section-label {
    font-weight: 800;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.atc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.atc-opt-btn {
    border: 2px solid #e9ecef;
    background: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: .95rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all .25s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.atc-opt-btn:hover {
    border-color: #ced4da;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.atc-opt-btn.active {
    border-color: var(--primary-red, #ce2101);
    background: var(--primary-red, #ce2101);
    color: #fff;
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(206, 33, 1, 0.25);
}

.inclusions-block {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 16px;
    padding: 16px 20px;
}

.atc-textarea {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: .95rem;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: none;
    resize: none;
    width: 100%;
}

.atc-textarea:focus {
    background: #fff;
    border-color: var(--primary-red, #ce2101);
    box-shadow: 0 0 0 4px rgba(206, 33, 1, 0.1);
    outline: none;
}

.atc-textarea::placeholder {
    color: #adb5bd;
}

.qty-pill-container {
    background: #f8f9fa;
    border-radius: 50px;
    padding: 4px;
    border: 1px solid #e9ecef;
}

.qty-btn-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #495057;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.qty-btn-circle:hover {
    background: #e9ecef;
    color: #000;
    transform: scale(1.05);
}

.qty-input-pill {
    width: 45px;
    height: 38px;
    background: transparent;
    border: none;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #1a1a1a;
    -moz-appearance: textfield;
    outline: none;
}

.qty-input-pill::-webkit-outer-spin-button,
.qty-input-pill::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.action-footer {
    padding: 1.5rem 2rem;
    background: #fff;
    border-top: 1px solid #f1f3f5;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.price-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #adb5bd;
    margin-bottom: -2px;
    line-height: 1;
}

.atc-modal__price {
    font-size: 1.7rem;
    color: var(--primary-red, #ce2101);
    font-weight: 800;
    line-height: 1;
}

.atc-confirm-btn {
    background: var(--primary-red, #ce2101);
    color: #fff;
    border-radius: 50px;
    padding: 14px 24px;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    box-shadow: 0 10px 25px rgba(206, 33, 1, 0.3);
    transition: all .3s cubic-bezier(0.2, 0, 0, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.atc-confirm-btn:hover {
    background: #b01c01;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(206, 33, 1, 0.4);
}

.atc-confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(206, 33, 1, 0.3);
}

.atc-extras-group {
    margin-bottom: 20px;
}

.atc-extras-group-label {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #495057;
    margin-bottom: 12px;
    display: block;
}

.atc-extras-group.variation-unsatisfied .atc-options {
    border: 2px solid #e53e3e;
    border-radius: 16px;
    padding: 8px;
    background: rgba(229, 62, 62, 0.05);
}

.variation-required-msg {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e53e3e;
    margin-top: 6px;
    display: none;
}

@keyframes shake-warning {

    0%,
    100% {
        transform: translateX(0)
    }

    20%,
    60% {
        transform: translateX(-4px)
    }

    40%,
    80% {
        transform: translateX(4px)
    }
}

.shake-warning {
    animation: shake-warning 0.4s ease;
}

/* ── Mobile & Tablet adjustments ── */
@media (max-width: 991px) {
    #addToCartModal .modal-dialog {
        margin: 0.5rem auto;
        max-width: 540px;
    }

    #addToCartModal .modal-content.atc-modal {
        max-height: calc(100dvh - 1rem);
    }
}

@media (max-width: 575px) {
    #addToCartModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        align-items: flex-end;
    }

    #addToCartModal .modal-content.atc-modal {
        max-height: 92dvh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}