/* =====================================================
   FREE SHIPPING PROGRESS BAR
===================================================== */
.free-shipping-bar {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.fsb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.fsb-truck {
    width: 22px;
    height: 22px;
    color: #2a8c60;
    flex-shrink: 0;
}
.fsb-message {
    font-size: 13px;
    font-weight: 500;
    color: #2a8c60;
}
.fsb-track-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fsb-track {
    flex: 1;
    height: 8px;
    background: #e8e8e8;
    border-radius: 999px;
    overflow: hidden;
}
.fsb-fill {
    height: 100%;
    width: var(--fsb-progress, 0%);
    background: linear-gradient(90deg, #3aaa7a 0%, #2a8c60 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
    min-width: 4px;
}
.fsb-threshold {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}
.fsb-amount {
    font-size: 16px;
    font-weight: 700;
    color: #2a8c60;
}

/* =====================================================
   CART FLASH MESSAGES
===================================================== */
.cart-flash--visible {
    display: block;
}
.cart-flash--hidden {
    display: none;
}

/* =====================================================
   CART ITEM CARDS
===================================================== */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-item-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    border: 1px solid #f0f0f0;
}
.cart-item-img-link {
    flex-shrink: 0;
    align-self: center;
}
.cart-item-img {
    width: 90px !important;
    height: 90px !important;
    object-fit: contain;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #ebebeb;
    display: block;
}
.cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}
.cart-item-qty-row {
    display: flex;
    align-items: center;
}
.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}
.cart-item-name:hover {
    color: #662483;
    text-decoration: underline;
}
.cart-item-badge {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #662483;
    width: fit-content;
}
.cart-item-error {
    font-size: 12px;
    display: block;
}
.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
    min-width: 80px;
}
.cart-item-price {
    font-size: 19px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}
.cart-item-remove {
    color: #aaa;
    line-height: 1;
    display: block;
    cursor: pointer;
    transition: color 0.2s;
    margin-bottom: 6px;
}
.cart-item-remove:hover {
    color: #d9534f;
}
.cart-item-remove svg {
    display: block;
}
.btn-hidden {
    display: none;
}

/* =====================================================
   ORDER SUMMARY
===================================================== */
.new-order-summary {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.new-summary-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.new-summary-body {
    display: flex;
    flex-direction: column;
}
.new-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f7f7f7;
}
.new-summary-row:last-child {
    border-bottom: none;
}
.delivery-free-label {
    color: #2a8c60;
    font-weight: 600;
}
.new-summary-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 8px 0;
}
.new-summary-total-row {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    padding-top: 12px;
}
.new-summary-total-row span {
    color: #222 !important;
    font-weight: 700 !important;
}
.new-summary-actions {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}
.new-checkout-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background-color: #28a745 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 13px 16px !important;
    border-radius: 6px !important;
    border: none !important;
    transition: background-color 0.25s !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}
.new-checkout-btn:hover {
    background-color: #218838 !important;
    color: #fff !important;
}
.new-checkout-btn.disabled-btn {
    background-color: #8ecf9b !important;
    pointer-events: none;
    opacity: 0.7 !important;
    cursor: not-allowed;
}
.gifts-warning-msg {
    color: #dc3545;
    margin: 4px 0 0;
    font-size: 13px;
}
.new-summary-actions .btn-add-items {
    margin: 0;
    width: 100%;
    display: block;
    text-align: center;
    border-radius: 6px !important;
}

/* =====================================================
   COUPON SECTION
===================================================== */
.coupon-section {
    margin: 12px 0;
}
.coupon-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px dashed #662483;
    border-radius: 12px;
    background: #faf7ff;
    padding: 16px 20px;
}
.coupon-percent-badge {
    width: 44px;
    height: 44px;
    background: #662483;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}
.coupon-offer-label {
    flex: 1;
    font-size: 28px;
    font-weight: 700;
    color: #662483;
    letter-spacing: 0.2px;
}
.coupon-apply-btn {
    height: 40px;
    padding: 0 22px;
    background: #662483;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}
.coupon-apply-btn:hover {
    background: #4e1a66;
}

/* =====================================================
   GREETING CARD + BUTTON
===================================================== */
.btn-card-add {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #662d91;
    color: #fff;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
    z-index: 10;
}
.btn-card-add:hover {
    background: #4e2070;
}
.btn-card-add:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* =====================================================
   PAGE OVERLAY (loading spinner)
===================================================== */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.page-overlay__spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================================
   RESPONSIVE — mobile (max-width: 767px)
===================================================== */
@media (max-width: 767px) {
    .cart-item-card {
        padding: 12px;
        gap: 10px;
    }
    .cart-item-img {
        width: 75px !important;
        height: 75px !important;
    }
    .cart-item-price {
        font-size: 17px;
    }
    .cart-item-right {
        min-width: 60px;
    }
    .new-order-summary {
        margin-top: 20px;
    }

    /* Coupon — single line on mobile */
    .coupon-box {
        padding: 12px 14px;
        gap: 8px;
    }
    .coupon-percent-badge {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }
    .coupon-offer-label {
        font-size: 20px;
    }
    .coupon-apply-btn {
        height: 36px;
        padding: 0 14px;
        font-size: 12px;
    }

    /* Fix columns stacking: reset fixed width/float from global CSS */
    .cart_wrapper .space_direction_right,
    .cart_wrapper .space_direction_left {
        width: 100% !important;
        float: none !important;
    }
    .cart_wrapper .sideSticky_cart {
        width: 100% !important;
        position: static !important;
        margin: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* =====================================================
   RECOMMENDED CAROUSEL
===================================================== */
.rec-carousel-section {
    margin-top: 4px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.rec-carousel-section .widget-title {
    margin: 20px 0 0 !important;
    margin-bottom: 0 !important;
}
.rec-carousel-section .widget-title .box-title:before {
    display: none;
}
.rec-slide {
    padding: 0 8px;
}
.rec-product-thumb {
    position: relative;
    overflow: hidden;
}
.rec-add-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #662483;
    color: #fff;
    border: none;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
    padding: 0;
}
.rec-add-btn:hover {
    background: #4e1a66;
}
.rec-shop-more-wrap {
    text-align: center;
    margin-top: 4px;
    margin-bottom: 8px;
}
.rec-shop-more-btn {
    display: inline-block;
    padding: 7px 13px;
    border: 2px solid #662483;
    color: #662483;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.3px;
}
.rec-shop-more-btn:hover {
    background: #662483;
    color: #fff;
}
.rec-carousel-wrap {
    position: relative;
}
.rec-carousel .slick-prev,
.rec-carousel .slick-next {
    display: none !important;
}
/* Override global responsive2.css fixed-height rule that affects ALL slick slides.
   Scoped to the cart carousel only — no side effects on other slick instances. */
.rec-carousel.slick-initialized .slick-slide {
    height: auto !important;
}
/* Remove dark hover overlay on rec-carousel product images */
.rec-carousel-section .product-item .product-thumb:before {
    display: none !important;
}
/* Slick pagination dots */
.rec-carousel .slick-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 12px 0 0;
    margin: 0;
}
.rec-carousel .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}
.rec-carousel .slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    font-size: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: block;
}
.rec-carousel .slick-dots li button:before {
    display: none;
}
.rec-carousel .slick-dots li.slick-active button {
    background: #662483;
    transform: scale(1.25);
}

@media (max-width: 767px) {
    /* Tight spacing before Shop More */
    .rec-carousel-section {
        padding-bottom: 0 !important;
    }
    .rec-carousel-section .container {
        padding-bottom: 0;
    }
    .rec-carousel .slick-list {
        margin-bottom: 0;
    }
    .rec-shop-more-wrap {
        margin-top: 0 !important;
        margin-bottom: 0;
    }
    .rec-product-item .product-content {
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* =====================================================
   CART-SPECIFIC OVERRIDES (global CSS resets)
===================================================== */
/* Remove the decorative lines before/after the "My Cart" heading */
.cart_wrapper .widget-title .box-title:before {
    display: none;
}

/* =====================================================
   GREETING CARD SECTION — cart-scoped overrides
===================================================== */
.cart_wrapper .choose-card-section h4 {
    margin-bottom: 8px;
}
.cart_wrapper .choose-card-section {
    padding-bottom: 8px;
}

.cart_wrapper .choose-card-item .card-info .card-price {
    font-size: 18px;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 0;
}
.cart_wrapper .choose-card-item .card-info .card-title {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .cart_wrapper .choose-card-item .card-info .card-price {
        font-size: 15px;
        margin-top: 5px;
    }
    .cart_wrapper .choose-card-item .card-info .card-title {
        font-size: 13px;
    }
}

.cart_wrapper .productItems img {
    margin-bottom: 0;
}
.cart_wrapper .sideSticky_cart {
    margin-top: 0;
}
.cart_wrapper .cart.shopping .product-list img {
    background-color: transparent;
}
.cart_wrapper .block {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

/* =====================================================
   MOBILE FIXED CHECKOUT BAR
===================================================== */
/* Hidden on desktop — shown only inside the mobile media query below */
.mobile-checkout-bar {
    display: none;
}

@media (max-width: 767px) {
    /* Hide the full Order Summary sidebar */
    .cart-summary-sidebar {
        display: none !important;
    }

    /* Push page content up so the last item isn't hidden behind the fixed bar */
    .cart_wrapper {
        padding-bottom: 74px;
    }

    /* Single full-width button bar */
    .mobile-checkout-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 12px;
        left: 16px;
        right: 16px;
        z-index: 1000;
        background: #28a745;
        padding: 14px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,.22);
        text-decoration: none;
        cursor: pointer;
    }
    .mobile-checkout-bar:hover {
        background: #218838;
        text-decoration: none;
    }
    .mobile-checkout-bar.disabled-btn {
        background: #8ecf9b;
        pointer-events: none;
        opacity: 0.8;
    }
    .mobile-checkout-label {
        font-size: 15px;
        font-weight: 600;
        color: #fff;
    }
    .mobile-checkout-price {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
    }
    .mobile-checkout-price svg {
        stroke: #fff;
        flex-shrink: 0;
    }
}

/* =====================================================
   PRESERVED RULES
===================================================== */
.disabled-btn {
    pointer-events: none;
    opacity: 0.5 !important;
    cursor: not-allowed;
}
.hidden-gallery-item {
    display: none !important;
}
.out-of-stock-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.page_inner_header.wrapper_detailsinner .productItems {
    padding: 0 0 0px !important;
}
.page_inner_header.wrapper_detailsinner.cart_wrapper {
    margin: 0 0 0% !important;
    padding: 0 0 0px !important;
}
.choose-card-section {
    margin: 0px 0 !important;
    margin-top: 10px !important;
}
h2 {
    margin-top: 10px;
}
.widget-title .box-title {
    margin-bottom: 10px;
}