/**
 * LadyCoin Curated Collections & Bundles Styles
 * 
 * Compliant with LadyCoin Design System & Brand Palette:
 * Primary: #FA8D44 | Secondary: #82BBF3 | Font: Peyda
 *
 * @package LadyCoin
 */

.ladycoin-collections-page {
    background-color: var(--color-bg, #FCFDFE);
    min-height: 100vh;
    padding-bottom: 80px;
    direction: rtl;
    font-family: 'Peyda', 'PeydaStandard', system-ui, -apple-system, sans-serif;
    color: var(--color-text-main, #1A202C);
}

/* ==========================================================================
   ۱. هیرو بنر کالکشن‌ها
   ========================================================================== */
.collections-hero-section {
    padding: 40px 0 32px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFE 100%);
    border-bottom: 1px solid var(--color-border, #E2E8F0);
    margin-bottom: 48px;
}

.collections-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.collections-hero-content .ladycoin-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted, #64748B);
    margin-bottom: 20px;
}

.collections-hero-content .ladycoin-breadcrumbs a {
    color: var(--color-text-muted, #64748B);
    text-decoration: none;
    transition: color 0.2s ease;
}

.collections-hero-content .ladycoin-breadcrumbs a:hover {
    color: var(--color-primary, #FA8D44);
}

.collections-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--color-primary-subtle, #FFF5EE);
    border: 1px solid rgba(250, 141, 68, 0.25);
    border-radius: 9999px;
    color: var(--color-primary, #FA8D44);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.collections-hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-text-main, #1A202C);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.collections-hero-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-muted, #64748B);
    margin-bottom: 32px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   ۲. نوار دسترسی و فیلتر سریع (Quick Nav Pills)
   ========================================================================== */
.collections-quick-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.quick-nav-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted, #64748B);
}

.quick-nav-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-pill {
    padding: 10px 20px;
    background: #FFFFFF;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 9999px;
    color: var(--color-text-main, #1A202C);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.nav-pill:hover {
    border-color: var(--color-primary-light, #FFB17A);
    color: var(--color-primary, #FA8D44);
    transform: translateY(-2px);
}

.nav-pill.active {
    background: var(--color-primary, #FA8D44);
    border-color: var(--color-primary, #FA8D44);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(250, 141, 68, 0.3);
}

/* ==========================================================================
   ۳. کارت‌های جامع پکیج (Collection Master Cards)
   ========================================================================== */
.collections-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.collection-master-card {
    background: var(--color-surface, #FFFFFF);
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 24px;
    padding: 36px 36px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.collection-master-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(250, 141, 68, 0.35);
}

.collection-master-card:target,
.collection-master-card.highlight-pulse {
    border-color: var(--color-primary, #FA8D44);
    box-shadow: 0 0 0 4px rgba(250, 141, 68, 0.25), 0 20px 45px rgba(0, 0, 0, 0.08);
    animation: ladycoinCardGlow 2.5s ease-out;
}

@keyframes ladycoinCardGlow {
    0% {
        box-shadow: 0 0 0 6px rgba(250, 141, 68, 0.45), 0 20px 45px rgba(250, 141, 68, 0.15);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(250, 141, 68, 0.2), 0 16px 40px rgba(0, 0, 0, 0.06);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(250, 141, 68, 0), 0 10px 30px rgba(0, 0, 0, 0.03);
    }
}

/* سربرگ کارت */
.collection-card-header {
    border-bottom: 1px solid var(--color-border, #E2E8F0);
    padding-bottom: 24px;
    margin-bottom: 28px;
}

.header-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-pill {
    padding: 4px 12px;
    background: var(--color-secondary-subtle, #F0F7FF);
    color: var(--color-secondary-dark, #4B8CC8);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--color-primary-subtle, #FFF5EE);
    color: var(--color-primary, #FA8D44);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.discount-pill {
    padding: 4px 12px;
    background: #FEF2F2;
    color: #DC2626;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.snappay-pill {
    padding: 4px 12px;
    background: #ECFDF5;
    color: #059669;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.header-main-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.title-wrap .collection-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-main, #1A202C);
    margin: 0 0 6px;
    line-height: 1.4;
}

.title-wrap .collection-subtitle-en {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted, #64748B);
    direction: ltr;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.target-skin-badge {
    background: #F8FAFC;
    border: 1px solid var(--color-border, #E2E8F0);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.target-skin-badge .label {
    color: var(--color-text-muted, #64748B);
    font-weight: 500;
}

.target-skin-badge .val {
    color: var(--color-text-main, #1A202C);
    font-weight: 700;
}

.collection-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-muted, #64748B);
    margin: 0 0 20px;
}

.collection-benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.benefit-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #F8FAFC;
    border: 1px solid #EEF2F6;
    border-radius: 10px;
    font-size: 13px;
    color: var(--color-text-main, #1A202C);
    font-weight: 500;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-secondary-subtle, #F0F7FF);
    color: var(--color-secondary-dark, #4B8CC8);
}

/* ==========================================================================
   ۴. قفسه محصولات داخل بسته (Products Shelf & Step Cards)
   ========================================================================== */
.collection-products-shelf {
    background: #FAFBFD;
    border: 1px solid #EEF2F6;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 28px;
}

.shelf-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.shelf-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-main, #1A202C);
}

.shelf-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted, #64748B);
    background: #FFFFFF;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--color-border, #E2E8F0);
}

.collection-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.package-item-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s ease;
}

.package-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary-light, #FFB17A);
}

.item-step-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary, #FA8D44);
}

.item-thumb-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #F8FAFC;
    margin-bottom: 12px;
}

.item-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s ease;
}

.package-item-card:hover .item-thumb-img {
    transform: scale(1.05);
}

.item-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-brand {
    font-size: 11px;
    color: var(--color-secondary-dark, #4B8CC8);
    font-weight: 600;
    margin-bottom: 4px;
}

.item-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.item-name a {
    color: var(--color-text-main, #1A202C);
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-name a:hover {
    color: var(--color-primary, #FA8D44);
}

.item-price-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-main, #1A202C);
    margin-bottom: 10px;
}

.item-tip-box {
    margin-top: auto;
    background: #F8FAFC;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--color-text-muted, #64748B);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.tip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary, #FA8D44);
    margin-top: 5px;
    flex-shrink: 0;
}

/* ==========================================================================
   ۵. باکس خرید و قیمت نهایی پکیج (Footer Pricing & Actions)
   ========================================================================== */
.collection-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 10px;
}

.footer-pricing-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-row-regular {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted, #64748B);
}

.old-price {
    text-decoration: line-through;
    color: #94A3B8;
}

.price-row-bundle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-row-bundle .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-main, #1A202C);
}

.bundle-price {
    font-size: 26px;
    font-weight: 900;
    color: var(--color-primary, #FA8D44);
    letter-spacing: -0.5px;
}

.savings-tag {
    padding: 3px 10px;
    background: var(--color-primary-subtle, #FFF5EE);
    color: var(--color-primary, #FA8D44);
    border: 1px solid rgba(250, 141, 68, 0.25);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.price-row-installment .installment-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #059669;
    background: #ECFDF5;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.price-row-installment strong {
    font-weight: 800;
}

.price-row-installment .interest-free {
    font-size: 11px;
    color: #047857;
}

/* دکمه‌های اکشن */
.footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ladycoin-bundle-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--color-primary, #FA8D44);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(250, 141, 68, 0.3);
    white-space: nowrap;
    position: relative;
}

.ladycoin-bundle-buy-btn:hover {
    background: #E87A30;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 141, 68, 0.4);
}

.ladycoin-bundle-buy-btn:active {
    transform: translateY(0);
}

.ladycoin-bundle-buy-btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: ladycoinSpin 0.7s linear infinite;
}

.ladycoin-bundle-buy-btn.loading .btn-spinner {
    display: inline-block;
}

.ladycoin-bundle-buy-btn.loading .btn-icon {
    display: none;
}

@keyframes ladycoinSpin {
    to { transform: rotate(360deg); }
}

.collection-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    background: #FFFFFF;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 14px;
    color: var(--color-text-main, #1A202C);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.collection-whatsapp-btn:hover {
    border-color: #25D366;
    color: #25D366;
    background: #F0FDF4;
}

.collection-whatsapp-btn .wa-icon {
    color: #25D366;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   ۶. بنر پایینی کوییز و راهنما
   ========================================================================== */
.collections-bottom-cta {
    margin-top: 64px;
}

.cta-inner-card {
    background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    border-radius: 24px;
    padding: 44px 48px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.cta-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(250, 141, 68, 0.15);
    color: var(--color-primary, #FA8D44);
    flex-shrink: 0;
}

.cta-text-wrap {
    flex-grow: 1;
}

.cta-title {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 10px;
    line-height: 1.4;
}

.cta-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #CBD5E1;
    margin: 0;
    max-width: 620px;
}

.cta-buttons-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ladycoin-cta-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: var(--color-primary, #FA8D44);
    color: #FFFFFF;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(250, 141, 68, 0.3);
}

.ladycoin-cta-primary-btn:hover {
    background: #E87A30;
    transform: translateY(-2px);
    color: #FFFFFF;
}

.ladycoin-cta-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ladycoin-cta-outline-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

/* ==========================================================================
   ۷. ریسپانسیو و موبایل
   ========================================================================== */
@media (max-width: 1024px) {
    .collection-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .cta-inner-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .cta-desc {
        margin: 0 auto;
    }

    .cta-buttons-wrap {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .collections-hero-title {
        font-size: 24px;
    }

    .collections-hero-desc {
        font-size: 14px;
    }

    .collection-master-card {
        padding: 24px 18px 20px;
        border-radius: 18px;
    }

    .header-main-info {
        flex-direction: column;
        gap: 10px;
    }

    .target-skin-badge {
        white-space: normal;
        align-self: flex-start;
    }

    .collection-products-shelf {
        padding: 16px;
    }

    .collection-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .package-item-card {
        flex-direction: row;
        gap: 14px;
        align-items: center;
    }

    .item-thumb-link {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .item-name {
        min-height: auto;
    }

    .item-step-badge {
        top: 8px;
        right: 8px;
    }

    .collection-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .footer-actions {
        flex-direction: column;
    }

    .ladycoin-bundle-buy-btn,
    .collection-whatsapp-btn {
        width: 100%;
    }

    .quick-nav-pills {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        width: 100%;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-pill {
        flex-shrink: 0;
    }
}
