/* ============================================================
   sales.css — стилі для сторінок акцій і новинок
   bodyClass: page-sales | page-new
   ============================================================ */

/* ── Hero banner ─────────────────────────────────────────────────────────── */

.sales-hero {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    background: linear-gradient(110deg, #fce4f0 0%, #fff0f7 60%, #fce4f0 100%);
    border: 1px solid rgba(233, 30, 140, 0.18);
    border-radius: var(--radius-card);
    padding: clamp(18px, 2.4vw, 32px) clamp(20px, 2.8vw, 40px);
    margin-bottom: clamp(22px, 2.4vw, 36px);
    position: relative;
    overflow: hidden;
}

.sales-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 120% at 90% 50%, rgba(233,30,140,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.sales-hero__icon {
    font-size: clamp(32px, 4vw, 52px);
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(233,30,140,0.25));
}

.sales-hero__text {
    flex: 1 1 auto;
    min-width: 0;
}

.sales-hero__title {
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sales-hero__sub {
    font-size: clamp(13px, 1.1vw, 15px);
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.5;
}

.sales-hero__count {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e91e8c;
    color: #fff;
    border-radius: var(--radius-card-sm);
    padding: clamp(10px, 1.2vw, 18px) clamp(16px, 2vw, 28px);
    text-align: center;
    box-shadow: 0 4px 16px rgba(233,30,140,0.30);
    min-width: 80px;
}

.sales-hero__num {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.sales-hero__label {
    font-size: clamp(10px, .9vw, 12px);
    font-weight: 500;
    opacity: 0.88;
    margin-top: 4px;
    line-height: 1.3;
    white-space: nowrap;
}

/* ── Category chip on card ───────────────────────────────────────────────── */

.bsp-card__cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-faint);
    text-decoration: none;
    background: var(--sand);
    border-radius: 4px;
    padding: 2px 7px;
    margin: 6px 0 2px;
    position: relative;
    z-index: 2;
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
    overflow-wrap: anywhere;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bsp-card__cat:hover {
    background: var(--rose);
    color: #fff;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */

.sales-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--ink-soft);
}

/* ── Badges ──────────────────────────────────────────────────────────────── */

.page-sales .product-badges,
.page-new   .product-badges {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    z-index: 100 !important;
    pointer-events: none !important;
}

.page-sales .badge,
.page-new   .badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    width: fit-content;
    white-space: nowrap;
}

.page-sales .badge-hit,
.page-new   .badge-hit  { background: #f5a623; }

.page-sales .badge-top,
.page-new   .badge-top  { background: #2ecc71; }

.page-sales .badge-new,
.page-new   .badge-new  { background: #4267ff; }

.page-sales .badge-sale,
.page-new   .badge-sale { background: #e91e8c; }

/* ── Price styles ────────────────────────────────────────────────────────── */

.page-sales .bsp-price-wrap,
.page-new   .bsp-price-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-sales .bsp-price-old,
.page-new   .bsp-price-old {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.82em;
}

.page-sales .bsp-price--sale,
.page-new   .bsp-price--sale {
    color: #e91e8c;
    font-weight: 700;
}

/* ── Buy button ──────────────────────────────────────────────────────────── */

.page-sales .bsp-btn--buy,
.page-new   .bsp-btn--buy {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    padding: 10px 14px !important;
    background: #e91e8c !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    box-sizing: border-box !important;
    position: static !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    transition: background 0.2s !important;
}

.page-sales .bsp-btn--buy:hover,
.page-new   .bsp-btn--buy:hover {
    background: #c2186f !important;
}

.page-sales .bsp-btn--buy.bsp-btn--dis,
.page-new   .bsp-btn--buy.bsp-btn--dis {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .sales-hero {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .sales-hero__count {
        order: -1;
        flex-direction: row;
        gap: 8px;
        align-items: baseline;
        padding: 8px 16px;
        min-width: 0;
        width: 100%;
        justify-content: center;
    }

    .sales-hero__num {
        font-size: 22px;
    }

    .sales-hero__label {
        font-size: 12px;
        margin-top: 0;
    }

    .sales-hero__icon {
        font-size: 28px;
    }

    .sales-hero__title {
        font-size: 20px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .sales-hero {
        flex-wrap: wrap;
        gap: 16px;
    }

    .sales-hero__count {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        align-items: baseline;
        justify-content: center;
        padding: 10px 20px;
    }

    .sales-hero__num {
        font-size: 28px;
    }

    .sales-hero__label {
        margin-top: 0;
        font-size: 13px;
    }
}