/**
 * Outils d'Orthophonie - Compose Ton Pack Styles
 * Inspired by LogoPeps layout and styled to match Outils d'Orthophonie
 */

.stc-bundle-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 60px;
    font-family: inherit;
    box-sizing: border-box;
}

.stc-bundle-container *,
.stc-bundle-container *::before,
.stc-bundle-container *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   1. HERO HEADER
   ========================================================================== */

.stc-hero {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 36px;
}

.stc-hero_kicker {
    display: inline-block;
    background: #EDE9FE;
    color: #7C3AED;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 16px;
    border-radius: 30px;
    margin: 0 0 14px;
}

.stc-hero_title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1E293B;
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stc-hero_sub {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 auto 8px;
}

.stc-hero_note {
    font-size: 0.88rem;
    color: #94A3B8;
    margin: 0 auto 26px;
}

/* 3 Discount Tiers Row */
.stc-hero_tiers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0 auto 26px;
    flex-wrap: wrap;
}

.stc-hero_tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 12px 22px;
    border-radius: 14px;
    border: 2px solid;
    background: #FFFFFF;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.stc-hero_tier:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.stc-hero_tier.tier-1 {
    border-color: #859D9D;
    background: #F8FBFA;
}
.stc-hero_tier.tier-1 .stc-hero_tier-pct {
    color: #556B6B;
}

.stc-hero_tier.tier-2 {
    border-color: #A8B59B;
    background: #FAFBF9;
}
.stc-hero_tier.tier-2 .stc-hero_tier-pct {
    color: #49613C;
}

.stc-hero_tier.tier-3 {
    border-color: #E8BB9C;
    background: #FFF9F5;
}
.stc-hero_tier.tier-3 .stc-hero_tier-pct {
    color: #D96B43;
}

.stc-hero_tier-pct {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}

.stc-hero_tier-qty {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748B;
}

/* 3 Steps Pills */
.stc-hero_steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stc-hero_steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #475569;
    font-weight: 600;
}

.stc-hero_steps li b {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1E293B;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ==========================================================================
   2. CATEGORY & TAG FILTERS
   ========================================================================== */

.stc-filters-section {
    margin-bottom: 34px;
}

.stc-filter-group-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stc-pack-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px;
}

.stc-filters-tags {
    margin-top: -4px;
}

.stc-tags-filter-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
}

.stc-pack-filter {
    background: #FFFFFF;
    color: #475569;
    border: 1.5px solid #E2E8F0;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.stc-tag-pill,
.stc-tag-filter-btn {
    font-size: 0.85rem;
    padding: 6px 14px;
    border-color: #E2E8F0;
    background: #F8FAFC;
    color: #64748B;
}

.stc-pack-filter:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
    color: #1E293B;
}

.stc-tag-pill:hover,
.stc-tag-filter-btn:hover {
    background: #FFFFFF;
    border-color: #859D9D;
    color: #859D9D;
}

.stc-pack-filter.is-active {
    background: #1E293B;
    color: #FFFFFF;
    border-color: #1E293B;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
}

.stc-tag-pill.is-active,
.stc-tag-filter-btn.is-active {
    background: #859D9D;
    color: #FFFFFF;
    border-color: #859D9D;
    box-shadow: 0 4px 10px rgba(133, 157, 157, 0.25);
}

/* ==========================================================================
   3. COLUMNS LAYOUT
   ========================================================================== */

.stc-pack-columns-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* ==========================================================================
   4. PRODUCTS GRID (LEFT)
   ========================================================================== */

.stc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.product-bundle-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.product-bundle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    border-color: #CBD5E1;
}

.product-bundle-card.is-in-pack {
    border-color: #859D9D;
    background: #F8FBFA;
    box-shadow: 0 0 0 2px #859D9D;
}

.product-bundle-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    background: #F1F5F9;
    margin-bottom: 12px;
}

.product-bundle-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-bundle-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-bundle-card:hover .product-bundle-img-wrap img {
    transform: scale(1.04);
}

.product-bundle-category-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(4px);
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.product-bundle-info {
    flex-grow: 1;
    margin-bottom: 12px;
}

.product-bundle-price-wrap {
    margin-bottom: 4px;
}

.product-bundle-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1E293B;
}

.product-bundle-heading {
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.product-bundle-heading a {
    color: #1E293B;
    text-decoration: none;
    transition: color 0.2s;
}

.product-bundle-heading a:hover {
    color: #859D9D;
}

.product-bundle-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.product-tag-chip {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748B;
    background: #F1F5F9;
    border-radius: 12px;
    padding: 2px 8px;
    display: inline-block;
}

/* Button: + Ajouter au pack */
.product-bundle-add-btn {
    width: 100%;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1E293B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    outline: none;
}

.product-bundle-add-btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
}

.product-bundle-card.is-in-pack .product-bundle-add-btn {
    background: #E6F4EA;
    border-color: #34A853;
    color: #137333;
}

.product-bundle-card.is-in-pack .product-bundle-add-btn .atc-icon i::before {
    content: "\f00c"; /* FontAwesome check icon */
}

/* ==========================================================================
   5. STICKY SIDEBAR (RIGHT)
   ========================================================================== */

.stc-side-wrap {
    position: relative;
}

.stc-side {
    position: sticky;
    top: 110px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stc-side_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.stc-side_title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1E293B;
}

.stc-side_count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748B;
    background: #F1F5F9;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Thumbnails list */
.stc-side_thumbs {
    margin-bottom: 16px;
}

.stc-side_empty {
    text-align: center;
    color: #94A3B8;
    font-size: 0.9rem;
    padding: 26px 12px;
    background: #F8FAFC;
    border: 1.5px dashed #E2E8F0;
    border-radius: 12px;
    margin: 0;
}

.stc-side_thumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stc-thumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    transition: background 0.2s;
}

.stc-thumb-item:hover {
    background: #F1F5F9;
}

.stc-thumb-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #E2E8F0;
}

.stc-thumb-details {
    flex-grow: 1;
    min-width: 0;
}

.stc-thumb-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.2;
    margin-bottom: 2px;
}

.stc-thumb-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748B;
}

.stc-thumb-remove {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 15px;
    line-height: 1;
    transition: color 0.2s;
    outline: none;
}

.stc-thumb-remove:hover {
    color: #EF4444;
}

/* Ladder tiers */
.stc-side_ladder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    text-align: center;
}

.stc-side_ladder li {
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    padding: 6px 2px;
    background: #F8FAFC;
    font-size: 0.72rem;
    color: #64748B;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.stc-side_ladder li b {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 1px;
}

.stc-side_ladder li.is-reached {
    border-color: #34A853;
    background: #E6F4EA;
    color: #137333;
}

.stc-side_ladder li.is-reached b {
    color: #137333;
}

/* Progress bar */
.stc-pack-progress {
    margin-bottom: 16px;
}

.stc-pack-progress_bar {
    height: 7px;
    background: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.stc-pack-progress_bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #859D9D, #34A853);
    border-radius: 10px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stc-pack-progress_msg {
    font-size: 0.82rem;
    color: #475569;
    margin: 0;
    line-height: 1.35;
}

/* Total section */
.stc-side_total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1.5px solid #F1F5F9;
    padding-top: 14px;
    margin-bottom: 4px;
}

.stc-side_total-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1E293B;
}

.stc-side_total-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.bundle-compare-price {
    font-size: 0.95rem;
    color: #94A3B8;
    text-decoration: line-through;
}

.bundle-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1E293B;
}

.stc-side_save {
    font-size: 0.82rem;
    font-weight: 700;
    color: #137333;
    margin: 0 0 14px;
    text-align: right;
}

/* CTA button */
.stc-side_cta {
    width: 100%;
    border: none;
    background: #1E293B;
    color: #FFFFFF;
    font-size: 0.98rem;
    font-weight: 800;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    outline: none;
}

.stc-side_cta:hover:not(.disabled) {
    background: #0F172A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.stc-side_cta.disabled {
    background: #E2E8F0;
    color: #94A3B8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Reassurances */
.stc-side_reassure {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #F1F5F9;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stc-side_reassure li {
    font-size: 0.78rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   6. MOBILE FLOATING BAR (< 991px)
   ========================================================================== */

.stc-mbar {
    display: none;
}

@media (max-width: 991px) {
    .stc-pack-columns-wrap {
        grid-template-columns: 1fr;
    }

    .stc-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stc-side {
        position: static;
        margin-top: 20px;
    }

    /* Fixed bottom bar */
    .stc-mbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-top: 1.5px solid #E2E8F0;
        padding: 12px 18px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 9999;
    }

    .stc-mbar_info {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .stc-mbar_count {
        font-size: 0.88rem;
        font-weight: 800;
        color: #1E293B;
    }

    .stc-mbar_msg {
        font-size: 0.75rem;
        color: #64748B;
    }

    .stc-mbar_right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .stc-mbar_price {
        font-size: 1.15rem;
        font-weight: 800;
        color: #1E293B;
    }

    .stc-mbar_btn {
        background: #1E293B;
        color: #FFFFFF;
        border: none;
        border-radius: 10px;
        padding: 10px 16px;
        font-size: 0.88rem;
        font-weight: 700;
        cursor: pointer;
    }

    .stc-mbar_btn:disabled {
        background: #E2E8F0;
        color: #94A3B8;
        cursor: not-allowed;
    }
}

@media (max-width: 580px) {
    .stc-hero_title {
        font-size: 1.85rem;
    }

    .stc-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Helpers */
.hidden {
    display: none !important;
}

/* ==========================================================================
   PRODUCTS LEFT COLUMN & PAGINATION
   ========================================================================== */
.stc-products-left-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stc-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 36px auto 10px !important;
    padding: 14px 0 !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    clear: both !important;
}

.stc-pagination .pages-info {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #64748B !important;
    margin-right: 8px !important;
    background: #F1F5F9 !important;
    padding: 10px 18px !important;
    border-radius: 30px !important;
    border: 1.5px solid #E2E8F0 !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

.stc-pagination .page-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: 1.5px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    color: #334155 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    line-height: 1 !important;
}

.stc-pagination .page-btn:hover {
    background: #F8FAFC !important;
    border-color: #859D9D !important;
    color: #859D9D !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(133, 157, 157, 0.22) !important;
}

.stc-pagination .page-btn.is-active {
    background: #859D9D !important;
    border-color: #859D9D !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(133, 157, 157, 0.35) !important;
    cursor: default !important;
    transform: none !important;
}

.stc-pagination .prev-btn,
.stc-pagination .next-btn {
    padding: 0 20px !important;
    font-weight: 800 !important;
    background: #FFFFFF !important;
    border-radius: 30px !important;
}

.stc-pagination .prev-btn:hover,
.stc-pagination .next-btn:hover {
    background: #859D9D !important;
    border-color: #859D9D !important;
    color: #FFFFFF !important;
}

