/**
 * CHOLLII Luxury Saree Blouses - Core Component Stylesheet
 * File: public/assets/css/chollii-theme.css
 */

/* =========================================================
   0. NAVIGATION HEADER & QUICK ICONS
   ========================================================= */
.nav-icon-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #FFF0F3 !important;
    color: var(--primary, #E95B78) !important;
    text-decoration: none !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
}

.nav-icon-btn:hover {
    background: var(--primary, #E95B78) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.nav-icon-btn .badge-count {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    background-color: var(--primary, #E95B78) !important;
    color: #ffffff !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    padding: 0 4px !important;
    border-radius: 9999px !important;
    border: 2px solid #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
    z-index: 5 !important;
}

.nav-icon-btn:hover .badge-count {
    border-color: #FFF0F3 !important;
}

.nav-icon-btn.dropdown-toggle::after {
    display: none !important;
}

/* =========================================================
   1. UTILITIES & TYPOGRAPHY HELPERS
   ========================================================= */
.letter-spacing-05 {
    letter-spacing: 0.5px !important;
}

.letter-spacing-1 {
    letter-spacing: 1px !important;
}

.letter-spacing-2 {
    letter-spacing: 2px !important;
}

.fs-12 {
    font-size: 0.75rem !important;
}

.fs-13 {
    font-size: 0.8125rem !important;
}

.fs-14 {
    font-size: 0.875rem !important;
}

.fs-15 {
    font-size: 0.9375rem !important;
}

.shadow-xs {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.hover-scale {
    transition: transform 0.2s ease !important;
}

.hover-scale:hover {
    transform: scale(1.04) !important;
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    animation: shimmerSlide 3.5s infinite;
    pointer-events: none;
}

@keyframes shimmerSlide {
    0% {
        left: -60%;
    }

    30% {
        left: 140%;
    }

    100% {
        left: 140%;
    }
}

/* =========================================================
   2. PRODUCT CARD COMPONENT (Strict 1:1 Square)
   ========================================================= */
.product-card-chollii {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 1rem !important;
    overflow: hidden;
    background: #ffffff;
}

.product-card-chollii:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.product-card-chollii .product-img-wrap,
.product-img-wrap,
.card .product-img-wrap {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    position: relative !important;
    background-color: #f8f9fa !important;
    overflow: hidden !important;
}

.product-card-chollii .product-img-wrap a,
.product-img-wrap a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    /* aspect-ratio: 1 / 1 !important; */
    position: relative !important;
}

.product-card-chollii .product-primary-img,
.product-card-chollii .product-secondary-img,
.product-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    transition: opacity 0.35s ease, transform 0.4s ease;
}

.product-card-chollii:hover .product-primary-img {
    transform: scale(1.04);
}

.product-card-chollii:hover .product-secondary-img {
    opacity: 1 !important;
    transform: scale(1.04);
}

.product-card-chollii .product-title-link {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.35;
    min-height: 2.4em;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card-chollii .product-title-link:hover {
    color: var(--primary, #E95B78) !important;
}

.wishlist-floating-btn,
.share-floating-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
}

@media (max-width: 991.98px) {

    .d-none.d-lg-inline-block,
    .d-none.d-lg-block {
        display: none !important;
    }

    .wishlist-floating-btn,
    .share-floating-btn {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        max-width: 26px !important;
        max-height: 26px !important;
    }

    .wishlist-floating-btn i,
    .share-floating-btn i {
        font-size: 0.60rem !important;
    }
}

.wishlist-floating-btn i,
.share-floating-btn i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.wishlist-floating-btn i::before,
.share-floating-btn i::before {
    vertical-align: 0 !important;
    line-height: 1 !important;
    display: inline-block !important;
    margin: 0 !important;
}

.wishlist-floating-btn:hover,
.share-floating-btn:hover {
    background: var(--primary, #EC274F) !important;
    border-color: var(--primary, #EC274F) !important;
    color: #ffffff !important;
}

.wishlist-floating-btn:hover i,
.share-floating-btn:hover i,
.wishlist-floating-btn:hover i::before,
.share-floating-btn:hover i::before {
    color: #ffffff !important;
}

.wishlist-floating-btn.active {
    background: #FFF0F3 !important;
    border-color: rgba(236, 39, 79, 0.25) !important;
    color: #E11D48 !important;
}

.wishlist-floating-btn.active i {
    color: #E11D48 !important;
}

.wishlist-floating-btn.active:hover {
    background: #E11D48 !important;
    border-color: #E11D48 !important;
    color: #ffffff !important;
}

.wishlist-floating-btn.active:hover i {
    color: #ffffff !important;
}

/* =========================================================
   3. UNIFIED CAPSULE QUANTITY SELECTOR
   ========================================================= */
.chollii-qty-capsule {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #334155 !important;
    border-radius: 9999px !important;
    background: #F8FAFC !important;
    overflow: hidden;
    height: 42px;
    box-shadow: none;
}

.chollii-qty-capsule .qty-btn-minus,
.chollii-qty-capsule .qty-btn-plus {
    width: 44px;
    height: 100%;
    background: transparent;
    border: 0;
    color: #1E293B;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}

.chollii-qty-capsule .qty-btn-minus {
    border-right: 1.5px solid #334155 !important;
}

.chollii-qty-capsule .qty-btn-plus {
    border-left: 1.5px solid #334155 !important;
}

.chollii-qty-capsule .qty-btn-minus:hover,
.chollii-qty-capsule .qty-btn-plus:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.chollii-qty-capsule .qty-btn-minus:active,
.chollii-qty-capsule .qty-btn-plus:active {
    background: #CBD5E1;
}

.chollii-qty-capsule .qty-val-input {
    width: 52px;
    height: 100%;
    border: 0 !important;
    background: transparent !important;
    color: #0F172A !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: textfield;
}

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

/* Compact version for Mini-Cart Drawer & Cart Table */
.chollii-qty-capsule.capsule-sm {
    height: 34px;
    border-width: 1.5px !important;
}

.chollii-qty-capsule.capsule-sm .qty-btn-minus,
.chollii-qty-capsule.capsule-sm .qty-btn-plus {
    width: 32px;
    font-size: 1.05rem;
}

.chollii-qty-capsule.capsule-sm .qty-btn-minus {
    border-right-width: 1.5px !important;
}

.chollii-qty-capsule.capsule-sm .qty-btn-plus {
    border-left-width: 1.5px !important;
}

.chollii-qty-capsule.capsule-sm .qty-val-input {
    width: 36px;
    font-size: 0.92rem !important;
}

/* =========================================================
   4. MULTI-BUY COMBO MILESTONE ROADMAP
   ========================================================= */
.combo-milestone-card {
    background: #FFF9FA !important;
    border: 1.5px solid #FFD6DE !important;
    border-radius: 18px !important;
    padding: 1rem 1.15rem !important;
    box-shadow: 0 4px 15px rgba(233, 91, 120, 0.04) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-grow: 0 !important;
}

.combo-savings-pill {
    background-color: #D7F3E3 !important;
    color: #15803D !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
}

.milestone-track-container {
    position: relative;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    height: auto !important;
    min-height: 0 !important;
}

.milestone-line-bg,
.milestone-line-active {
    height: 4px;
    border-radius: 4px;
    top: 17px !important;
    position: absolute;
    left: 0;
}

.milestone-line-bg {
    background: #E2E8F0;
    width: 100%;
    z-index: 1;
}

.milestone-line-active {
    background: var(--btn-color, #E95B78);
    z-index: 2;
    transition: width 0.35s ease;
}

.milestone-node {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
}

.milestone-node:hover {
    transform: translateY(-2px);
}

.milestone-node .node-circle {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    background: #ffffff;
    border: 2px solid #E2E8F0;
    color: #475569;
    transition: all 0.25s ease !important;
}

.milestone-node.active .node-circle {
    background: var(--btn-color, #E95B78) !important;
    border-color: var(--btn-color, #E95B78) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(233, 91, 120, 0.3) !important;
}

.milestone-node .node-label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    margin-top: 5px !important;
    line-height: 1.2 !important;
    word-break: break-word;
}

.milestone-node .node-sub {
    font-size: 0.7rem !important;
    color: #64748B !important;
}

.milestone-node .node-discount-pill {
    background: #FFE8EC !important;
    color: #D13B59 !important;
    font-weight: 700 !important;
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    display: inline-block !important;
    margin-top: 2px !important;
}

/* =========================================================
   5. TRUST ASSURANCE STRIP (2x2 on Mobile, 4x1 on Desktop)
   ========================================================= */
.trust-assurance-card {
    border-radius: 1rem !important;
}

.trust-assurance-item {
    padding: 0.5rem 0.25rem;
}

@media (min-width: 768px) {
    .trust-assurance-item:not(:last-child) {
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
}

@media (max-width: 767.98px) {
    .trust-assurance-item {
        padding: 0.4rem 0.25rem !important;
    }

    .trust-assurance-item:nth-child(1),
    .trust-assurance-item:nth-child(3) {
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    .trust-assurance-item:nth-child(1),
    .trust-assurance-item:nth-child(2) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        padding-bottom: 0.5rem !important;
    }

    .trust-assurance-item:nth-child(3),
    .trust-assurance-item:nth-child(4) {
        padding-top: 0.5rem !important;
    }
}

/* =========================================================
   6. PRODUCT DETAILS GALLERY (Strict 1:1 Square)
   ========================================================= */
.product-gallery-card {
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    border-radius: 1.25rem !important;
    background: #f8f9fa !important;
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    position: relative !important;
}

.productSwiper {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 1.25rem !important;
}

.productSwiper .swiper-wrapper {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.productSwiper .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
    background: #f8f9fa !important;
}

.productSwiper .swiper-slide img,
.product-main-gallery-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    transition: transform 0.3s ease;
}

.swiper-slide:hover .product-main-gallery-img {
    transform: scale(1.03);
}

.gallery-nav-btn {
    width: 42px !important;
    height: 42px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px);
    border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #1e293b !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.gallery-nav-btn::after {
    display: none !important;
    content: '' !important;
}

.gallery-nav-btn:hover {
    background: #ffffff !important;
    color: var(--primary, #E95B78) !important;
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16) !important;
}

.gallery-nav-prev {
    left: 14px !important;
}

.gallery-nav-next {
    right: 14px !important;
}

.productSwiper .swiper-pagination {
    bottom: 12px !important;
    z-index: 10 !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
    background: #94a3b8;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--primary, #E95B78) !important;
    width: 22px !important;
    border-radius: 4px !important;
    opacity: 1 !important;
}

.thumb-img-wrapper {
    width: 72px !important;
    height: 72px !important;
    aspect-ratio: 1 / 1 !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff;
    border-radius: 8px !important;
    transition: all 0.2s ease;
    opacity: 0.65;
    overflow: hidden;
    box-shadow: none !important;
    transform: none !important;
    flex-shrink: 0 !important;
}

.thumb-img-wrapper .thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.thumb-img-wrapper:hover {
    opacity: 1 !important;
    border-color: #94a3b8 !important;
    box-shadow: none !important;
    transform: none !important;
}

.thumb-img-wrapper.active {
    opacity: 1 !important;
    border: 2px solid var(--primary, #E95B78) !important;
    box-shadow: none !important;
    transform: none !important;
}

.thumb-video-btn {
    width: 72px !important;
    height: 72px !important;
    aspect-ratio: 1 / 1 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 0 1.5px #cbd5e1;
}

.color-swatch-btn:hover,
.color-swatch-btn.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 2.5px var(--primary, #E95B78) !important;
}

.size-btn {
    min-width: 80px;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: var(--primary, #E95B78) !important;
}

/* =========================================================
   7. FLOATING OFFER BAR
   ========================================================= */
.floating-offer-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    max-width: 580px;
    width: calc(100% - 30px);
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
    padding: 8px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: slideUpFloating 0.5s ease-out;
}

@keyframes slideUpFloating {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* =========================================================
   8. LUXURY SEARCH MODAL
   ========================================================= */
.luxury-search-input {
    height: 54px !important;
    font-size: 0.95rem !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
    color: #1e293b !important;
}

.luxury-search-input:focus {
    background: #ffffff !important;
    border-color: var(--primary, #E95B78) !important;
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb, 233, 91, 120), 0.15) !important;
}

.trend-tag-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.trend-tag-pill:hover {
    background: var(--primary-light, #FFF0F3);
    border-color: var(--primary, #E95B78);
    color: var(--primary, #E95B78);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trend-tag-pill .color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}