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

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

/* Force proper Bootstrap modal overlay behavior */
#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;
    }
}