/* BanglaDock Modern Dark Glassmorphic Cart Page Stylesheet */

.tp_cart_page_wrapper {
    background-color: #2b1464 !important;
    background-image: 
        radial-gradient(circle at 12% 12%, rgba(216, 180, 254, 0.42) 0%, transparent 55%),
        radial-gradient(circle at 88% 50%, rgba(192, 132, 252, 0.38) 0%, transparent 55%),
        radial-gradient(circle at 50% 95%, rgba(147, 51, 234, 0.32) 0%, transparent 60%),
        linear-gradient(180deg, #37197a 0%, #241154 50%, #2f1566 100%) !important;
    color: #f8fafc !important;
    min-height: 80vh;
    padding-top: 36px !important;
    padding-bottom: 60px !important;
    position: relative;
}

/* Header & Breadcrumb */
.tp_cart_page_wrapper .tp_view_box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.tp_cart_page_wrapper .tp_view_text {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
    flex-wrap: wrap !important;
}

.tp_cart_page_wrapper .tp_view_text h2 {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.3px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Estimated USD / Currency Badge */
.usd-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(216, 180, 254, 0.2) !important;
    border: 1px solid rgba(216, 180, 254, 0.45) !important;
    color: #f3e8ff !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25) !important;
    animation: usdPulse 2.5s infinite ease-in-out;
}

.usd-badge strong {
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(216, 180, 254, 0.8);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #10b981;
    border-radius: 50%;
    animation: dotPulse 1.8s infinite ease-out;
}

@keyframes usdPulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2); }
    50% { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(139, 92, 246, 0.4); }
}

@keyframes dotPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.8); opacity: 0; }
}

/* Modern Step Indicator Track */
.bd-checkout-steps {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(55, 25, 114, 0.85) !important;
    border: 1.5px solid rgba(216, 180, 254, 0.35) !important;
    border-radius: 50px !important;
    padding: 8px 18px !important;
    backdrop-filter: blur(14px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    gap: 12px !important;
}

.bd-step-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    color: #e2e8f0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.bd-step-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
}

.bd-step-divider {
    width: 20px !important;
    height: 2px !important;
    background: rgba(216, 180, 254, 0.3) !important;
    border-radius: 2px;
}

.bd-step-item.step-active {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.bd-step-item.step-active .bd-step-icon {
    background: linear-gradient(135deg, #c084fc, #818cf8) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.7) !important;
}

.bd-step-item.step-completed {
    color: #34d399 !important;
}

.bd-step-item.step-completed .bd-step-icon {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6) !important;
}

.bd-step-item.step-disabled {
    color: #a5b4fc !important;
    opacity: 0.7;
}

.bd-step-item.step-disabled .bd-step-icon {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}

/* Cart Items Card Grid */
.bd-cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bd-cart-item-card {
    background: linear-gradient(135deg, rgba(31, 15, 66, 0.75) 0%, rgba(43, 20, 100, 0.7) 100%);
    border: 1.5px solid rgba(216, 180, 254, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.bd-cart-item-card:hover {
    background: linear-gradient(135deg, rgba(45, 20, 95, 0.85) 0%, rgba(60, 25, 125, 0.8) 100%);
    border-color: rgba(216, 180, 254, 0.6);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35), 0 0 18px rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}

.bd-cart-item-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.bd-cart-thumb-box {
    width: 95px;
    height: 75px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bd-cart-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.bd-cart-item-card:hover .bd-cart-thumb {
    transform: scale(1.08);
}

.bd-cart-content-box {
    flex-grow: 1;
    min-width: 0;
}

.bd-cart-title {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.bd-cart-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.bd-cart-title a:hover {
    color: #c084fc !important;
}

.bd-cart-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(216, 180, 254, 0.25);
    color: #d8b4fe !important;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.bd-cart-cat-badge i {
    color: #38bdf8;
}

.bd-cart-desc {
    color: #cbd5e1;
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Right side of card: Price & Actions */
.bd-cart-pricing-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
    min-width: 150px;
}

.bd-cart-price-val {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: -0.3px;
    text-align: right;
}

.bd-cart-usd-estimate {
    font-size: 12px;
    color: #a5b4fc;
    font-weight: 500;
    text-align: right;
}

.bd-cart-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bd-cart-btn-remove {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.22s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.bd-cart-btn-remove:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45) !important;
    transform: translateY(-1px);
}

.bd-cart-btn-wishlist {
    background: rgba(168, 85, 247, 0.12) !important;
    color: #d8b4fe !important;
    border: 1px solid rgba(168, 85, 247, 0.28) !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.22s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.bd-cart-btn-wishlist:hover {
    background: #a855f7 !important;
    color: #ffffff !important;
    border-color: #a855f7 !important;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.45) !important;
    transform: translateY(-1px);
}

.bd-cart-btn-wishlist i.active {
    color: #f87171 !important;
}

/* Sticky Order Summary Card */
.bd-cart-summary-card {
    background: linear-gradient(135deg, rgba(31, 15, 66, 0.88) 0%, rgba(43, 20, 100, 0.84) 100%) !important;
    border: 1.5px solid rgba(216, 180, 254, 0.35) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 20px rgba(124, 58, 237, 0.15) !important;
    position: sticky;
    top: 90px;
}

.bd-summary-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(216, 180, 254, 0.2) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bd-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.bd-summary-label {
    color: #cbd5e1;
    font-weight: 500;
}

.bd-summary-val {
    color: #ffffff;
    font-weight: 700;
}

.bd-summary-divider {
    border-top: 1px dashed rgba(216, 180, 254, 0.35);
    margin: 14px 0;
}

.bd-summary-total-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.bd-summary-total-val {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.3px;
    text-shadow: 0 0 12px rgba(192, 132, 252, 0.5);
}

.bd-cart-checkout-btn {
    background: linear-gradient(135deg, #9333ea 0%, #6366f1 50%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    padding: 15px 20px !important;
    border-radius: 14px !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.5) !important;
    transition: all 0.25s ease-in-out !important;
    letter-spacing: 0.2px;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    gap: 8px !important;
    text-decoration: none !important;
    margin-top: 16px;
}

.bd-cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.7) !important;
    color: #ffffff !important;
}

.bd-cart-continue-link {
    color: #a5b4fc !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    margin-top: 14px;
    display: block;
    text-align: center;
}

.bd-cart-continue-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Security / Trust Badges in Summary */
.bd-cart-trust-badges {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bd-cart-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 500;
}

.bd-cart-trust-item i {
    font-size: 14px;
}

/* Empty Cart State */
.bd-empty-cart-card {
    background: linear-gradient(135deg, rgba(31, 15, 66, 0.85) 0%, rgba(43, 20, 100, 0.8) 100%);
    border: 1.5px dashed rgba(216, 180, 254, 0.35);
    border-radius: 24px;
    padding: 48px 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.bd-empty-cart-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.2));
    border: 2px solid rgba(216, 180, 254, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 34px;
    color: #c084fc;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 991px) {
    .tp_cart_page_wrapper {
        padding-top: 18px !important;
        padding-bottom: 40px !important;
    }
    .bd-cart-summary-card {
        margin-top: 24px;
        position: static;
    }
}

@media (max-width: 768px) {
    .tp_cart_page_wrapper,
    .bd-cart-item-card,
    .bd-cart-summary-card,
    .bd-empty-cart-card,
    .bd-checkout-steps {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .tp_cart_page_wrapper .tp_view_box {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .bd-checkout-steps {
        width: 100% !important;
        padding: 8px 12px !important;
        gap: 6px !important;
    }

    .bd-step-item {
        font-size: 11px !important;
        gap: 5px !important;
    }

    .bd-step-icon {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
    }

    .bd-step-divider {
        width: 10px !important;
    }

    .bd-cart-item-card {
        padding: 14px;
    }

    .bd-cart-item-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .bd-cart-thumb-box {
        width: 70px;
        height: 54px;
    }

    .bd-cart-mobile-top-row {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .bd-cart-title {
        font-size: 14.5px;
    }

    .bd-cart-pricing-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .bd-cart-price-val {
        font-size: 18px;
        text-align: left;
    }

    .bd-cart-usd-estimate {
        text-align: left;
    }

    .bd-cart-checkout-btn {
        font-size: 0.95rem !important;
        padding: 13px 16px !important;
    }
}

/* --- Cart Page Recently Viewed Section & Active Swiper Slider --- */
.bd-cart-recently-viewed {
    border-top: 1.5px solid rgba(216, 180, 254, 0.2) !important;
    margin-top: 50px !important;
    padding-top: 40px !important;
    padding-bottom: 20px !important;
    background: transparent !important;
}

.bd-cart-recently-viewed .tp_main_heading h2 {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp_related_slider_container {
    position: relative;
    padding: 10px 0;
}

/* Swiper Container Overflow & Card Shadows */
.bd-cart-recently-viewed .swiper-container {
    padding: 15px 4px 25px 4px !important;
    overflow: hidden !important;
}

/* Radiant Swiper Nav Arrows */
.bd-cart-recently-viewed .swiper-button-next,
.bd-cart-recently-viewed .swiper-button-prev {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(79, 70, 229, 0.95)) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(168, 85, 247, 0.5) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    z-index: 20 !important;
}

.bd-cart-recently-viewed .swiper-button-prev {
    left: -22px !important;
}

.bd-cart-recently-viewed .swiper-button-next {
    right: -22px !important;
}

.bd-cart-recently-viewed .swiper-button-next:hover,
.bd-cart-recently-viewed .swiper-button-prev:hover {
    background: linear-gradient(135deg, #a855f7, #6366f1) !important;
    border-color: #ffffff !important;
    transform: translateY(-50%) scale(1.12) !important;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.8) !important;
}

.bd-cart-recently-viewed .swiper-button-next:after,
.bd-cart-recently-viewed .swiper-button-prev:after {
    font-size: 15px !important;
    font-weight: 800 !important;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .bd-cart-recently-viewed .swiper-button-prev {
        left: 0px !important;
    }
    .bd-cart-recently-viewed .swiper-button-next {
        right: 0px !important;
    }
    .bd-cart-recently-viewed .swiper-button-next,
    .bd-cart-recently-viewed .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
    }
    .bd-cart-recently-viewed .swiper-button-next:after,
    .bd-cart-recently-viewed .swiper-button-prev:after {
        font-size: 13px !important;
    }
}

