/**
 * WooExFood Product Modal - Complete Styles
 * 
 * Includes:
 * - Modal structure (height, scroll, positioning)
 * - Sticky title & close button
 * - Product info overlay
 * - Body scroll lock
 * - Responsive design
 */

/* ===================================
   BODY SCROLL LOCK
   =================================== */
body.exwf-modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

/* ===================================
   MODAL BACKDROP
   =================================== */
.modal-content {
    display: flex !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow: hidden !important;
    border-radius: 20px;
    height: 85vh !important;
    margin: 7vh auto auto !important;
}

/* ===================================
   MODAL CONTAINER (Scroll Container)
   =================================== */
.modal-content .ex-modal-big {
    width: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
    background: #fff !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;

    /* Smooth scrolling */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Modal needs relative positioning for overlay */
.ex_modal .ex-modal-big {
    position: relative;
}

.ex_modal .modal-content .fd_modal_des form.cart .exlive-total,
.ex_modal .modal-content .fd_modal_des form.cart .quantity,
.ex_modal .modal-content .fd_modal_des form.cart .single_add_to_cart_button{
    display: none;
}

/* ===================================
   MODAL HEADER (Sticky Title)
   =================================== */
.modal-content .ex-modal-big .fd_modal_des>h3 {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: #fff !important;
    padding: 25px 50px 25px 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

/* Product Description in Main Modal */
.fb-modal-product-excerpt {
    margin: 0 0 -20px 0;
    padding: 20px;
    line-height: 1.6;
}

/* ===================================
   CLOSE BUTTON (Sticky)
   =================================== */
.modal-content .ex-modal-big>.ex_close {
    position: sticky !important;
    top: 15px !important;
    left: calc(100% - 56px) !important;
    z-index: 9999 !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 24px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    margin-bottom: -56px !important;
    float: right !important;
}

.modal-content .ex-modal-big .ex_close:hover {
    background: #f5f5f5 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* ===================================
   SCROLLABLE CONTENT AREA
   =================================== */
.ex-modal-scrollable {
    flex: 1 1 auto;
    width: 100% !important;
    overflow: visible !important;
}

.ex-modal-scrollable .fd_modal_des,
.ex-modal-scrollable .fd_modal_des_content {
    overflow: visible !important;
    height: auto !important;
}

.ex-modal-scrollable .fd_modal_des_content {
    width: 100% !important;
    padding: 0 !important;
}

.exwf-md-details.exwf-ct-tab.exwf-act-tab {
    padding: 20px !important;
}

/* ===================================
   IMAGE AREA
   =================================== */
.ex-modal-scrollable .fd_modal_img {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.ex-modal-scrollable .fd_modal_img img,
.ex-modal-scrollable .fd_modal_img .exfd-modal-carousel,
.ex-modal-scrollable .fd_modal_img .exfd-img-mod {
    margin: 0 !important;
    border-radius: 0 !important;
}

/* ===================================
   NUTRITION INFO
   =================================== */
.ex-modal-scrollable .exfd_nutrition {
    margin-bottom: 0 !important;
}

/* ===================================
   MODERN STYLE
   =================================== */
.modal-content.exwf-md-modern .ex-modal-big {
    max-height: 85vh !important;
}

.modal-content.exwf-md-modern .ex-modal-scrollable {
    padding-top: 60px;
}

/* ===================================
   NEXT/PREVIOUS BUTTONS
   =================================== */
.modal-content.exwf-np-enable .ex-modal-big {
    padding-bottom: 50px;
}

.modal-content.exwf-np-enable .exwf-nepr {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 102 !important;
}

/* ===================================
   SCROLLBAR STYLING
   =================================== */
.ex-modal-big::-webkit-scrollbar {
    width: 8px;
}

.ex-modal-big::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 10px 10px 0;
}

.ex-modal-big::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.ex-modal-big::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.ex-modal-big {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

/* ===================================
   PRODUCT INFO OVERLAY
   =================================== */

/* Info Link (bottom trigger) */
.fb-product-info-link-wrapper {
    margin: 10px -20px -20px !important;
}

.fb-product-info-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 500;
    color: #0d6efd !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-width: 1px 0;
    border-color: #e0e0e0;
    border-style: solid;
    padding: 15px 20px;
}

.fb-product-info-trigger:hover {
    background: #f8f9fa;
}

.fb-product-info-trigger svg {
    flex-shrink: 0;
}

/* Overlay Container */
.fb-product-info-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #fff !important;
    z-index: 10000 !important;
    /* Higher than everything */
    display: none !important;
    flex-direction: column !important;
    opacity: 0 !important;
    transform: translateY(100%) scale(0.95) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-top-left-radius: 10px !important;
    will-change: transform, opacity;
}

/* When overlay is active, hide the main close button to prevent confusion */
.ex-modal-big.fb-overlay-active>.ex_close {
    display: none !important;
}

/* Ensure overlay covers the sticky header of the main modal */
.ex-modal-big.fb-overlay-active .fd_modal_des>h3 {
    z-index: 1 !important;
    /* Lower than overlay */
}

.fb-product-info-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Overlay Header */
.fb-overlay-header {
    position: sticky !important;
    background: white !important;
    z-index: 100 !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s !important;
}

.fb-product-info-overlay.active .fb-overlay-header {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fb-overlay-back,
.fb-overlay-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    background: #0000001c !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 50% !important;
}

.fb-overlay-back:hover,
.fb-overlay-close:hover {
    background: #f8f9fa !important;
    transform: scale(1.1) !important;
}

.fb-overlay-back:active,
.fb-overlay-close:active {
    transform: scale(0.95) !important;
}

.fb-overlay-back svg,
.fb-overlay-close svg {
    color: #212529;
}

.fb-overlay-title {
    display: none !important;
    margin: 0 !important;
    font-size: 18px !important;
}

.fb-product-info-overlay.active .fb-overlay-title {
    display: flex !important;
}

/* Overlay Content */
.fb-overlay-content {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px !important;
    -webkit-overflow-scrolling: touch !important;
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s !important;
}

.fb-product-info-overlay.active .fb-overlay-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hide modal content when overlay is open */
.fb-content-hidden {
    display: none !important;
}

/* Product Header in Overlay */
.fb-overlay-product-header {
    margin-bottom: 24px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #e9ecef !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s !important;
}

.fb-product-info-overlay.active .fb-overlay-product-header {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fb-overlay-product-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
}

.fb-product-description {
    margin: 0;
    font-size: 15px;
    color: #6c757d;
    line-height: 1.5;
}

/* GTIN Section */
.fb-gtin {
    margin-bottom: 20px !important;
    padding: 16px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s !important;
}

.fb-product-info-overlay.active .fb-gtin {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fb-gtin h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fb-gtin-value {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    font-family: 'Courier New', monospace;
}

/* Info Sections */
.fb-info-section {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #e9ecef !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fb-product-info-overlay.active .fb-info-section:nth-child(1) {
    transition-delay: 0.4s !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fb-product-info-overlay.active .fb-info-section:nth-child(2) {
    transition-delay: 0.45s !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fb-product-info-overlay.active .fb-info-section:nth-child(3) {
    transition-delay: 0.5s !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fb-product-info-overlay.active .fb-info-section:nth-child(4) {
    transition-delay: 0.55s !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fb-product-info-overlay.active .fb-info-section:nth-child(n+5) {
    transition-delay: 0.6s !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fb-info-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.fb-info-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.fb-info-section h4 svg {
    flex-shrink: 0;
    color: #6c757d;
}

.fb-allergens h4 svg {
    color: #dc3545;
}

.fb-additives h4 svg {
    color: #fd7e14;
}

.fb-packaging h4 svg {
    color: #198754;
}

.fb-nutritional h4 svg {
    color: #0d6efd;
}

/* Info Content */
.fb-info-content {
    padding-left: 10px;
}

.fb-info-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fb-info-content ul li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 14px;
    color: #212529;
    line-height: 1.6;
}

.fb-info-content ul li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #212529;
    font-weight: 600;
    font-size: 16px;
}

.fb-info-content p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
}

/* Nutritional Table Styles */
.fb-nutritional-table {
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    padding: 10px 0;
}

.fb-nutritional-header {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #212529 !important;
    margin: 0 0 10px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #ddd !important;
}

.fb-nutritional-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fb-nutritional-row:last-child {
    border-bottom: none;
}

.fb-nutritional-row.fb-indented {
    padding-left: 20px;
}

.fb-nutritional-row.fb-indented .fb-nutritional-label {
    color: #666;
    font-size: 13px;
}

.fb-nutritional-label {
    font-size: 14px;
    color: #212529;
}

.fb-nutritional-value {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
}

/* Producer Info Styles */
.fb-producer-name {
    font-weight: 600 !important;
    color: #212529 !important;
    margin: 0 0 8px 0 !important;
}

.fb-producer-address {
    color: #495057 !important;
    margin: 4px 0 !important;
}

.fb-custom-note {
    margin-top: 12px !important;
    padding: 12px 14px !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
    border-left: 3px solid #0d6efd !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #495057 !important;
}

/* Simple List (for packaging & price) */
.fb-simple-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fb-simple-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.fb-simple-label {
    font-size: 14px;
    color: #6c757d;
}

.fb-simple-value {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
}

/* Info Grid (legacy - keep for backward compatibility) */
.fb-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.fb-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.fb-info-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fb-info-value {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

/* Smooth animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .modal-content .ex-modal-big {
        max-height: 90vh !important;
    }

    .modal-content .ex-modal-big>.ex_close {
        top: 15px !important;
        left: calc(100% - 47px) !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 20px !important;
        margin-bottom: -47px !important;
    }

    .modal-content .ex-modal-big .fd_modal_des>h3 {
        padding: 20px 45px 20px 15px !important;
        border-top-left-radius: 15px !important;
        border-top-right-radius: 15px !important;
    }

    /* Product Info Overlay - Mobile */
    .fb-overlay-header {
        padding: 12px 15px;
    }

    .fb-overlay-title {
        font-size: 16px;
    }

    .fb-overlay-back,
    .fb-overlay-close {
        width: 36px;
        height: 36px;
    }

    .fb-overlay-content {
        padding: 15px;
    }

    .fb-overlay-product-header h3 {
        font-size: 20px;
    }

    .fb-info-content {
        padding-left: 20px;
    }

    .fb-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fb-overlay-content {
        padding: 12px;
    }

    .fb-overlay-product-header {
        margin-bottom: 20px;
    }

    .fb-info-section {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
}

/* ===================================
   PRODUCT INFO IMAGE BUTTON
   =================================== */

/* Info Button on Image */
.fb-product-info-image-trigger {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 2px 5px;
    font-size: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #0d6efd;
}

.fb-product-info-image-trigger:hover {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.fb-product-info-image-trigger svg {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/* Image area relative position */
.fd_modal_img {
    position: relative !important;
}

/* ===================================
   FIXED FOOTER
   =================================== */

.fb-modal-fixed-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #f5f5f5;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    z-index: 102;
    padding: 16px 20px;
    border-radius: 0 0 20px 20px;
    margin-top: auto;
}

.fb-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 100%;
}

.fb-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

/* Total price in footer - artık button içinde */
.fb-modal-fixed-footer #exlive-total {
    display: none;
}

/* Quantity in footer */
.fb-modal-fixed-footer .quantity.exbuttons_added {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.fb-modal-fixed-footer .quantity.exbuttons_added input[type="number"] {
    width: 35px;
    min-width: 30px;
    text-align: center;
    border: none;
    background: transparent;
    padding: 10px 4px;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Spinner arrows'ları gizle */
.fb-modal-fixed-footer .quantity.exbuttons_added input[type="number"]::-webkit-outer-spin-button,
.fb-modal-fixed-footer .quantity.exbuttons_added input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fb-modal-fixed-footer .quantity.exbuttons_added input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.fb-modal-fixed-footer .quantity.exbuttons_added .explus,
.fb-modal-fixed-footer .quantity.exbuttons_added .exminus {
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    color: #333 !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0;
    padding: 0 !important;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

/* Fixed Footer Container */
.fb-modal-fixed-footer {
    padding: 16px 24px;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #f0f0f0;
}

/* Quantity Selector - Pill Shape */
.fb-modal-fixed-footer .quantity.exbuttons_added {
    background: #f5f5f5;
    border-radius: 50px;
    padding: 4px;
    border: 1px solid #e0e0e0;
    height: 48px;
    display: flex;
    align-items: center;
    min-width: 120px;
    justify-content: space-between;
}

.fb-modal-fixed-footer .quantity.exbuttons_added .explus,
.fb-modal-fixed-footer .quantity.exbuttons_added .exminus {
    width: 40px !important;
    height: 40px !important;
    background: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
}

.fb-modal-fixed-footer .quantity.exbuttons_added .explus:hover,
.fb-modal-fixed-footer .quantity.exbuttons_added .exminus:hover {
    background: #fff !important;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #000 !important;
}

.fb-modal-fixed-footer .quantity.exbuttons_added .explus:active,
.fb-modal-fixed-footer .quantity.exbuttons_added .exminus:active {
    transform: scale(0.95);
}

.fb-modal-fixed-footer .quantity.exbuttons_added input[type="number"] {
    width: 40px !important;
    background: transparent !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding: 0 !important;
    text-align: center !important;
    height: 100% !important;
}

/* Add to Cart Button */
.fb-modal-fixed-footer button.single_add_to_cart_button {
    flex: 1;
    height: 48px;
    padding: 0 24px;
    background: #00b8d4;
    /* Primary Color */
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.25);
    text-transform: none;
    /* Prevent uppercase if theme forces it */
}

.fb-modal-fixed-footer button.single_add_to_cart_button:hover {
    background: #00acc1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 184, 212, 0.35);
}

.fb-modal-fixed-footer button.single_add_to_cart_button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 184, 212, 0.25);
}

/* Price inside button */
.fb-modal-fixed-footer button.single_add_to_cart_button::after {
    content: attr(data-price);
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 12px;
}

/* Disabled State */
.fb-modal-fixed-footer button.single_add_to_cart_button:disabled,
.fb-modal-fixed-footer button.single_add_to_cart_button.disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.fb-modal-fixed-footer button.single_add_to_cart_button:disabled::after,
.fb-modal-fixed-footer button.single_add_to_cart_button.disabled::after {
    background: rgba(0, 0, 0, 0.05);
    color: #999;
}

/* Animation */
.fb-modal-fixed-footer .fb-footer-content {
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .fb-modal-fixed-footer {
        padding: 12px 12px;
        /* Reduced padding */
    }

    .fb-footer-content {
        flex-direction: row;
        gap: 10px;
        /* Reduced gap */
        justify-content: space-between;
    }

    .fb-footer-actions {
        width: 100%;
        gap: 8px;
        /* Reduced gap between qty and button */
    }

    /* Compact Quantity Selector */
    .fb-modal-fixed-footer .quantity.exbuttons_added {
        padding: 2px;
        height: 44px;
        min-width: 100px;
        /* Reduced min-width */
        flex: 0 0 auto;
        /* Don't grow, don't shrink too much */
    }

    .fb-modal-fixed-footer .quantity.exbuttons_added .explus,
    .fb-modal-fixed-footer .quantity.exbuttons_added .exminus {
        width: 32px !important;
        /* Smaller buttons */
        height: 32px !important;
        font-size: 16px !important;
        border-width: 1px;
    }

    .fb-modal-fixed-footer .quantity.exbuttons_added input[type="number"] {
        width: 28px !important;
        /* Smaller input */
        min-width: 20px !important;
        font-size: 15px !important;
    }

    /* Compact Add to Cart Button */
    .fb-modal-fixed-footer button.single_add_to_cart_button {
        min-width: 0;
        /* Allow shrinking if needed */
        flex: 1;
        font-size: 14px;
        padding: 0 16px;
        height: 44px;
        gap: 8px;
        /* Reduced gap inside button */
    }

    .fb-modal-fixed-footer button.single_add_to_cart_button::after {
        font-size: 13px;
        /* Smaller price font */
        padding: 3px 8px;
        margin-left: 4px;
    }
}

/* Extra Small Screens (iPhone SE etc) */
@media (max-width: 360px) {
    .fb-modal-fixed-footer button.single_add_to_cart_button {
        font-size: 13px;
        padding: 0 12px;
    }

    .fb-modal-fixed-footer .quantity.exbuttons_added {
        min-width: 90px;
    }
}