/* ─── Promotion Browse Styles ───
   Uses design tokens from home-modern.css (:root vars)
   ─────────────────────────────── */

/* ─── Hero Banner — Direction A ─── */
.promo-hero {
    background: linear-gradient(135deg, var(--color-navy, #0b233f) 0%, #0f2d4f 55%, var(--color-navy-light, #1a3a5c) 100%);
    padding: 44px 0 40px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.promo-hero::after {
    content: '🏷️';
    position: absolute;
    top: -30px;
    right: 40px;
    font-size: 260px;
    line-height: 1;
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
}

.promo-hero .container {
    position: relative;
    z-index: 1;
}

.promo-hero-crumbs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
}

.promo-hero-crumbs i {
    font-size: 9px;
}

.promo-hero-crumbs-current {
    color: var(--color-accent, #fed701);
}

.promo-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.promo-hero-title span {
    color: var(--color-accent, #fed701);
}

.promo-hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    max-width: 640px;
}

.promo-hero .promo-total-count {
    background: var(--color-accent, #fed701);
    color: var(--color-navy, #0b233f);
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 2px 10px;
    vertical-align: middle;
}

@media (max-width: 991px) {
    .promo-hero::after {
        font-size: 180px;
        right: -10px;
    }

    .promo-hero-title {
        font-size: 32px;
        letter-spacing: -0.6px;
    }
}

@media (max-width: 767px) {
    .promo-hero {
        padding: 32px 0 28px;
    }

    .promo-hero::after {
        font-size: 140px;
        opacity: 0.06;
    }

    .promo-hero-title {
        font-size: 26px;
        letter-spacing: -0.4px;
    }

    .promo-hero-subtitle {
        font-size: 14px;
    }
}

/* ─── Page Header ─── */
.promo-page-header {
    margin-bottom: 24px;
}

.promo-page-header h3 {
    font-weight: 700;
    color: var(--color-text, #222);
    font-size: 24px;
    margin-bottom: 4px;
}

.promo-page-header p {
    color: var(--color-text-muted, #666);
    font-size: 15px;
    margin: 0;
}

.promo-total-count {
    display: inline-block;
    background: var(--color-bg-muted, #f0f2f5);
    padding: 3px 12px;
    border-radius: var(--radius-pill, 50px);
    font-size: 12px;
    color: var(--color-primary, #00a2ad);
    font-weight: 600;
    margin-left: 4px;
}

/* ─── Filter Sidebar ─── */
.promo-filter-card {
    border: 1px solid var(--color-border-light, #f0f0f0);
    border-top: 3px solid var(--color-primary, #10b3ab);
    border-radius: var(--radius-md, 12px);
    background: var(--color-bg, #fff);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
    overflow: hidden;
}

.promo-filter-card .card-body {
    padding: 18px 20px;
}

.promo-filter-card .mb-15 {
    margin-bottom: 18px;
}

.promo-filter-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-navy, #0b233f);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light, #f0f0f0);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-filter-title i {
    color: var(--color-primary, #10b3ab);
    font-size: 12px;
}

.promo-filter-label {
    font-weight: 700;
    color: var(--color-text-muted, #666);
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.promo-filter-card .form-control {
    border-radius: var(--radius-sm, 8px);
    border-color: var(--color-border, #e8e8e8);
    font-size: 13px;
    transition: border-color var(--duration-fast, 0.2s) var(--ease, ease);
}

.promo-filter-card .form-control:focus {
    border-color: var(--color-primary, #00a2ad);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 0,162,173), 0.1);
}

.promo-clear-btn {
    border-radius: var(--radius-pill, 50px);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    border-color: var(--color-border, #e0e0e0);
    color: var(--color-text-muted, #666);
    transition: all var(--duration-fast, 0.2s) var(--ease, ease);
}

.promo-clear-btn:hover {
    background: var(--color-navy, #0b233f);
    border-color: var(--color-navy, #0b233f);
    color: #fff;
}

.promo-category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.promo-category-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--radius-pill, 50px);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--duration-fast, 0.2s) var(--ease, ease);
    background: var(--color-bg-muted, #f0f2f5);
    color: var(--color-text, #222);
    border: 1px solid transparent;
}

.promo-category-badge:hover {
    background: rgba(var(--color-primary-rgb, 0,162,173), 0.08);
    color: var(--color-primary, #00a2ad);
    border-color: rgba(var(--color-primary-rgb, 0,162,173), 0.2);
}

.promo-category-badge.active {
    background: var(--color-primary, #00a2ad);
    color: #fff;
}

/* ─── Retailer CTA Card ─── */
.promo-retailer-cta {
    border: none;
    border-radius: var(--radius-md, 12px);
    background: var(--gradient-primary, linear-gradient(135deg, #00a2ad, #008b95));
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
    margin-top: 16px;
    overflow: hidden;
}

.promo-retailer-cta .card-body {
    padding: 24px 20px;
    text-align: center;
}

.promo-retailer-cta .cta-icon {
    font-size: 28px;
    color: rgba(255,255,255,0.9);
}

.promo-retailer-cta p {
    color: rgba(255,255,255,0.9);
    margin: 10px 0 14px;
    font-weight: 500;
    font-size: 14px;
}

.promo-retailer-cta .btn {
    background: #fff;
    color: var(--color-primary, #00a2ad);
    border-radius: var(--radius-sm, 8px);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 20px;
    transition: all var(--duration-fast, 0.2s) var(--ease, ease);
}

.promo-retailer-cta .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ─── Toolbar ─── */
.promo-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-bg-subtle, #f8fafb);
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--color-border-light, #f0f0f0);
    margin-bottom: 16px;
}

.promo-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.promo-quick-filters::-webkit-scrollbar {
    display: none;
}

.promo-sort-view {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ─── Quick Filter Pills ─── */
.promo-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border: 1px solid var(--color-border, #e8e8e8);
    border-radius: var(--radius-pill, 50px);
    background: var(--color-bg, #fff);
    color: var(--color-text-muted, #666);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast, 0.2s) var(--ease, ease);
    white-space: nowrap;
}

.promo-pill:hover {
    border-color: var(--color-primary, #00a2ad);
    color: var(--color-primary, #00a2ad);
    background: rgba(var(--color-primary-rgb, 0,162,173), 0.04);
}

.promo-pill.active[data-quick-filter="today"] {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.promo-pill.active[data-quick-filter="ending_soon"] {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.promo-pill.active[data-quick-filter="new"] {
    background: var(--color-primary, #00a2ad);
    border-color: var(--color-primary, #00a2ad);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--color-primary-rgb, 0,162,173), 0.3);
}

.promo-pill.active[data-quick-filter="featured"] {
    background: var(--color-accent, #fed701);
    border-color: var(--color-accent, #fed701);
    color: var(--color-text, #222);
    box-shadow: 0 2px 8px rgba(254, 215, 1, 0.3);
}

/* ─── Sort Select ─── */
.promo-sort-select {
    width: auto;
    min-width: 140px;
    border-radius: var(--radius-sm, 8px);
    font-size: 13px;
    border: 1px solid var(--color-border, #e8e8e8);
    padding: 5px 30px 5px 12px;
    background-color: var(--color-bg, #fff);
    color: var(--color-text, #222);
    transition: border-color var(--duration-fast, 0.2s) var(--ease, ease);
}

.promo-sort-select:focus {
    border-color: var(--color-primary, #00a2ad);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 0,162,173), 0.1);
    outline: none;
}

/* ─── View Toggle ─── */
.promo-view-toggle .btn {
    padding: 5px 12px;
    font-size: 14px;
    border-color: var(--color-border, #e8e8e8);
    color: var(--color-text-light, #999);
    transition: all var(--duration-fast, 0.2s) var(--ease, ease);
}

.promo-view-toggle .btn.active {
    background-color: var(--color-primary, #00a2ad);
    border-color: var(--color-primary, #00a2ad);
    color: #fff;
}

.promo-view-toggle .btn:not(.active):hover {
    background-color: var(--color-bg-subtle, #f8fafb);
    color: var(--color-text, #222);
}

/* ─── Result Count ─── */
.promo-result-count {
    padding: 0 2px;
    margin-bottom: 12px;
}

.promo-result-count small {
    color: var(--color-text-light, #999);
    font-size: 13px;
}

/* ─── Loading Overlay ─── */
#promo-results-container {
    position: relative;
    transition: opacity var(--duration-fast, 0.2s) var(--ease, ease);
    min-height: 200px;
}

#promo-results-container.promo-loading {
    opacity: 0.35;
    pointer-events: none;
}

#promo-results-container.promo-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border: 3px solid var(--color-border, #e8e8e8);
    border-top-color: var(--color-primary, #00a2ad);
    border-radius: 50%;
    animation: promoSpin 0.7s linear infinite;
}

@keyframes promoSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ─── Card Base (shared between deal & retailer) ─── */
.promo-card {
    border: 1px solid var(--color-border, #e8e8e8);
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    background: var(--color-bg, #fff);
    transition: transform var(--duration-fast, 0.2s) var(--ease, ease),
                box-shadow var(--duration, 0.35s) var(--ease, ease);
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.08));
}

.promo-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Card image area */
.promo-card-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.promo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration, 0.35s) var(--ease, ease);
}

.promo-card:hover .promo-card-img img {
    transform: scale(1.04);
}

.promo-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-muted, #f0f2f5), var(--color-border-light, #f0f0f0));
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-card-img-placeholder i {
    font-size: 36px;
    color: #d0d0d0;
}

/* Card badges */
.promo-badge {
    position: absolute;
    padding: 4px 10px;
    border-radius: var(--radius-pill, 50px);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 2;
}

.promo-badge-new {
    top: 10px;
    left: 10px;
    background: var(--color-primary, #00a2ad);
    color: #fff;
}

.promo-badge-ai {
    top: 10px;
    right: 10px;
    background: #6c5ce7;
    color: #fff;
    font-size: 10px;
}

.promo-badge-urgent {
    bottom: 10px;
    left: 10px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
}

/* Card body */
.promo-card-body {
    padding: 14px 16px 16px;
}

/* Type badge row */
.promo-type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.promo-type-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--radius-pill, 50px);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
}

/* Card title */
.promo-card-title {
    font-weight: 600;
    color: var(--color-text, #222);
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card description */
.promo-card-desc {
    color: var(--color-text-muted, #666);
    font-size: 12px;
    margin: 0 0 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Retailer avatar row (deal cards) */
.promo-retailer-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-retailer-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border-light, #f0f0f0);
    flex-shrink: 0;
}

.promo-retailer-avatar-ph {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary, #00a2ad);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
}

.promo-retailer-name {
    color: var(--color-text-light, #999);
    font-size: 12px;
}

/* Card meta */
.promo-card-meta {
    color: var(--color-text-light, #999);
    font-size: 11px;
    margin-top: 8px;
    line-height: 1.6;
}

.promo-meta-sep {
    margin: 0 3px;
    opacity: 0.5;
}

.promo-ai-found {
    color: #6c5ce7;
    font-size: 10px;
    opacity: 0.8;
}

/* ─── Retailer Card specifics ─── */
.promo-retailer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-retailer-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-border-light, #f0f0f0);
    flex-shrink: 0;
}

.promo-retailer-logo-ph {
    width: 40px;
    height: 40px;
    background: var(--color-primary, #00a2ad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.promo-retailer-details {
    min-width: 0;
}

.promo-retailer-details h6 {
    font-weight: 600;
    color: var(--color-text, #222);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.promo-retailer-details .sub-text {
    color: var(--color-text-light, #999);
    font-size: 12px;
    margin: 2px 0 0;
}

.promo-deal-count {
    color: var(--color-primary, #00a2ad);
    font-size: 12px;
    margin: 10px 0 0;
    font-weight: 600;
}

.promo-deal-count .posted-date {
    color: var(--color-text-light, #999);
    font-weight: 400;
}

/* ─── Featured Section ─── */
.promo-featured-section {
    margin-bottom: 28px;
}

.promo-featured-section h5 {
    font-weight: 700;
    color: var(--color-text, #222);
    margin-bottom: 16px;
    font-size: 16px;
}

.promo-featured-card {
    border: 2px solid var(--color-accent, #fed701);
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    background: var(--color-bg, #fff);
    transition: transform var(--duration-fast, 0.2s) var(--ease, ease),
                box-shadow var(--duration, 0.35s) var(--ease, ease);
}

.promo-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(254, 215, 1, 0.2);
}

.promo-featured-card a {
    text-decoration: none;
    color: inherit;
}

.promo-featured-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.promo-featured-body {
    padding: 12px 14px;
}

.promo-featured-body h6 {
    font-weight: 600;
    color: var(--color-text, #222);
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-featured-body small {
    color: var(--color-text-light, #999);
    font-size: 12px;
}

.promo-featured-img-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--color-bg-muted, #f0f2f5), var(--color-border-light, #f0f0f0));
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-featured-img-placeholder i {
    font-size: 28px;
    color: #d0d0d0;
}

/* ─── Empty State ─── */
.promo-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.promo-empty-state i {
    font-size: 52px;
    color: var(--color-border, #e8e8e8);
    margin-bottom: 16px;
}

.promo-empty-state p {
    color: var(--color-text-muted, #666);
    font-size: 15px;
    margin-bottom: 16px;
}

.promo-empty-state .btn {
    border-radius: var(--radius-sm, 8px);
}

/* ─── Mobile Filter Button ─── */
.promo-mobile-filter-btn {
    background: var(--gradient-primary, linear-gradient(135deg, #00a2ad, #008b95));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm, 8px);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--duration-fast, 0.2s) var(--ease, ease);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
}

.promo-mobile-filter-btn:hover,
.promo-mobile-filter-btn:active {
    color: #fff;
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.08));
}

/* ─── Pagination: wrap long page ranges on narrow screens ─── */
#promo-pagination-container .pagination {
    flex-wrap: wrap;
    row-gap: 4px;
}

/* ─── Mobile Responsive ─── */
@media (max-width: 767.98px) {
    .promo-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
        gap: 8px;
        min-width: 0;
    }

    .promo-quick-filters {
        flex-wrap: nowrap;
        padding-bottom: 2px;
        width: 100%;
        min-width: 0;
    }

    .promo-sort-view {
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
    }

    .promo-sort-select {
        flex: 1;
        min-width: 0;
    }

    .promo-card-img {
        height: 160px;
    }

    .promo-page-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 575.98px) {
    .promo-card-img {
        height: 140px;
    }
}

/* =============================================
   PROMOTION DETAIL — Direction A
   ============================================= */

.promo-detail-hero {
    background: var(--color-bg-subtle, #f8fafb);
    padding: 24px 0 40px;
}

.promo-detail-card {
    background: #fff;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    border: 1px solid var(--color-border-light, #f0f0f0);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.08));
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
}

.promo-detail-main {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-detail-retailer-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.promo-detail-retailer-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border-light, #f0f0f0);
    flex-shrink: 0;
}

.promo-detail-retailer-chip {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
}

.promo-detail-retailer-meta {
    flex: 1;
    min-width: 0;
}

.promo-detail-retailer-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary, #00a2ad);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.promo-detail-type-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

.promo-detail-retailer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-navy, #0b233f);
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.promo-detail-urgency {
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-pill, 50px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.promo-detail-urgency--soft {
    background: var(--color-bg-muted, #f0f2f5);
    color: var(--color-text-muted, #666);
}

.promo-detail-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--color-navy, #0b233f);
    letter-spacing: -0.6px;
    line-height: 1.15;
    margin: 0 0 16px;
}

.promo-detail-dealia {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md, 12px);
    background: linear-gradient(135deg, rgba(var(--color-navy-rgb, 11,35,63), 0.04) 0%, rgba(var(--color-accent-rgb, 254,215,1), 0.08) 100%);
    border: 1px solid rgba(var(--color-navy-rgb, 11,35,63), 0.08);
    margin-bottom: 22px;
}

.promo-detail-dealia-chip {
    background: var(--color-navy, #0b233f);
    color: var(--color-accent, #fed701);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.promo-detail-dealia-text {
    font-size: 13px;
    color: var(--color-text, #222);
    line-height: 1.5;
}

.promo-detail-dealia-text a {
    color: var(--color-primary, #00a2ad);
    font-weight: 600;
    text-decoration: none;
}

.promo-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light, #f0f0f0);
    margin-bottom: 22px;
}

.promo-detail-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted, #666);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.promo-detail-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy, #0b233f);
}

.promo-detail-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.promo-detail-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill, 50px);
    background: var(--gradient-primary, linear-gradient(135deg, #00a2ad, #008b95));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(var(--color-primary-rgb, 0,162,173), 0.25);
    transition: transform var(--duration-fast, 0.2s) var(--ease, ease), box-shadow var(--duration-fast, 0.2s) var(--ease, ease);
}

.promo-detail-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(var(--color-primary-rgb, 0,162,173), 0.35);
    color: #fff;
    text-decoration: none;
}

.promo-detail-art {
    background: linear-gradient(135deg, var(--color-navy, #0b233f) 0%, var(--color-navy-light, #1a3a5c) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 320px;
    padding: 24px;
}

.promo-detail-art img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.promo-detail-art-placeholder {
    width: 80%;
    min-height: 280px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 72px;
}

/* Body + sidebar cards */
.promo-detail-embed-card,
.promo-detail-body-card,
.promo-detail-gallery,
.promo-detail-side-card {
    background: #fff;
    border: 1px solid var(--color-border-light, #f0f0f0);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
    margin-bottom: 20px;
}

.promo-detail-embed-card {
    padding: 15px;
    overflow: hidden;
}

.promo-detail-body-card {
    padding: 24px 28px;
}

.promo-detail-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-navy, #0b233f);
    letter-spacing: -0.3px;
    margin: 0 0 12px;
}

.promo-detail-description {
    font-size: 14px;
    color: var(--color-text, #222);
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
}

.promo-detail-terms {
    margin-top: 20px;
    padding: 16px 18px;
    background: var(--color-bg-subtle, #f8fafb);
    border-radius: var(--radius-md, 12px);
    font-size: 13px;
    color: var(--color-text-muted, #666);
    line-height: 1.6;
}

.promo-detail-terms-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-navy, #0b233f);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.promo-detail-terms p {
    margin: 0;
}

.promo-detail-code {
    margin-top: 22px;
    padding: 22px 20px;
    border-radius: var(--radius-md, 12px);
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb, 0,162,173), 0.06) 0%, rgba(var(--color-accent-rgb, 254,215,1), 0.06) 100%);
    border: 2px dashed rgba(var(--color-primary-rgb, 0,162,173), 0.4);
    text-align: center;
}

.promo-detail-code-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted, #666);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.promo-detail-code-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary, #00a2ad);
    letter-spacing: 3px;
    margin: 6px 0;
}

.promo-detail-code-sub {
    font-size: 12px;
    color: var(--color-text-muted, #666);
    margin-bottom: 10px;
}

.promo-detail-code-copy {
    padding: 8px 20px;
    background: var(--color-primary, #00a2ad);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill, 50px);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.promo-detail-code-copy:hover {
    background: var(--color-primary-dark, #008b95);
}

/* Gallery */
.promo-detail-gallery {
    overflow: hidden;
}

.promo-detail-gallery-main {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    background: var(--color-bg-subtle, #f8fafb);
    display: block;
}

.promo-detail-gallery-thumbs {
    display: flex;
    gap: 6px;
    padding: 12px;
    overflow-x: auto;
    background: var(--color-bg-subtle, #f8fafb);
}

.promo-detail-gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color var(--duration-fast, 0.2s) var(--ease, ease);
}

.promo-detail-gallery-thumb.is-active {
    border-color: var(--color-primary, #00a2ad);
}

/* Sidebar cards */
.promo-detail-side-card {
    padding: 18px 20px;
}

.promo-detail-side-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-navy, #0b233f);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border-light, #f0f0f0);
}

.promo-detail-side-retailer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.promo-detail-side-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border-light, #f0f0f0);
}

.promo-detail-side-chip {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.promo-detail-side-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy, #0b233f);
}

.promo-detail-side-verified {
    font-size: 11px;
    color: var(--color-primary, #00a2ad);
    font-weight: 600;
    margin-top: 2px;
}

.promo-detail-side-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-sm, 8px);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    text-decoration: none;
    transition: background var(--duration-fast, 0.2s) var(--ease, ease);
}

.promo-detail-side-btn--outline {
    border: 1.5px solid var(--color-border, #e8e8e8);
    color: var(--color-text, #222);
    background: #fff;
}

.promo-detail-side-btn--outline:hover {
    border-color: var(--color-primary, #00a2ad);
    color: var(--color-primary, #00a2ad);
    text-decoration: none;
}

.promo-detail-side-btn--claim {
    background: var(--color-navy, #0b233f);
    color: #fff;
}

.promo-detail-side-btn--claim:hover {
    background: var(--color-navy-light, #1a3a5c);
    color: #fff;
    text-decoration: none;
}

.promo-detail-share-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.promo-detail-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: transform var(--duration-fast, 0.2s) var(--ease, ease);
}

.promo-detail-share:hover {
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.promo-detail-share--fb { background: #3b5998; }
.promo-detail-share--tw { background: #1da1f2; }
.promo-detail-share--wa { background: #25d366; }
.promo-detail-share--ig { background: #e1306c; }
.promo-detail-share--tt { background: #000; }

.promo-detail-related {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm, 8px);
    text-decoration: none;
    color: inherit;
    transition: background var(--duration-fast, 0.2s) var(--ease, ease);
}

.promo-detail-related:hover {
    background: var(--color-bg-subtle, #f8fafb);
    text-decoration: none;
    color: inherit;
}

.promo-detail-related-img,
.promo-detail-related-placeholder {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm, 8px);
    object-fit: cover;
    flex-shrink: 0;
}

.promo-detail-related-placeholder {
    background: var(--color-bg-muted, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light, #999);
    font-size: 18px;
}

.promo-detail-related-text {
    min-width: 0;
}

.promo-detail-related-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy, #0b233f);
    line-height: 1.3;
}

.promo-detail-related-sub {
    font-size: 11px;
    color: var(--color-text-muted, #666);
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 991px) {
    .promo-detail-card {
        grid-template-columns: 1fr;
    }

    .promo-detail-art {
        min-height: 260px;
        order: -1;
    }

    .promo-detail-title {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .promo-detail-hero {
        padding: 20px 0 28px;
    }

    .promo-detail-main {
        padding: 24px 22px;
    }

    .promo-detail-title {
        font-size: 22px;
    }

    .promo-detail-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 0;
    }

    .promo-detail-retailer-chip,
    .promo-detail-retailer-logo {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* =============================================
   RETAILER PROFILE (customer-facing) — Direction A
   ============================================= */

.rt-hero {
    background: var(--color-bg-subtle, #f8fafb);
    padding: 18px 0 32px;
}

.rt-hero-card {
    background: #fff;
    border-radius: var(--radius-lg, 16px);
    padding: 28px 32px;
    border: 1px solid var(--color-border-light, #f0f0f0);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.08));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.rt-hero-identity {
    display: flex;
    gap: 18px;
    grid-column: 1;
    grid-row: 1;
}

.rt-hero-logo,
.rt-hero-chip {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid var(--color-border-light, #f0f0f0);
}

.rt-hero-chip {
    background: var(--color-primary, #00a2ad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    border: none;
    box-shadow: var(--shadow-sm);
}

.rt-hero-meta {
    min-width: 0;
    flex: 1;
}

.rt-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary, #00a2ad);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.rt-hero-verified {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
    letter-spacing: 0.3px;
}

.rt-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-navy, #0b233f);
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

.rt-hero-sub {
    font-size: 13px;
    color: var(--color-text-muted, #666);
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rt-hero-desc {
    font-size: 14px;
    color: var(--color-text-muted, #666);
    line-height: 1.6;
    margin: 12px 0 0;
    max-width: 620px;
}

.rt-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

.rt-hero-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 28px;
    padding-top: 18px;
    margin-top: 4px;
    border-top: 1px solid var(--color-border-light, #f0f0f0);
}

.rt-hero-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted, #666);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.rt-hero-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-navy, #0b233f);
    letter-spacing: -0.3px;
}

.rt-hero-stat-value--small {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text, #222);
    max-width: 320px;
}

@media (max-width: 767px) {
    .rt-hero-card {
        grid-template-columns: 1fr;
        padding: 22px 22px;
    }

    .rt-hero-identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .rt-hero-logo,
    .rt-hero-chip {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .rt-hero-title {
        font-size: 22px;
    }

    .rt-hero-actions {
        grid-column: 1;
        grid-row: 3;
    }

    .rt-hero-stats {
        grid-row: 4;
    }
}

/* ============================================================
   Personalized feed: tabs, sections, reason badges, grocery
   groups, card actions, onboarding (June 2026)
   ============================================================ */

/* --- Tab chips --- */
.promo-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 24px;
    padding-bottom: 2px;
}
.promo-tabs::-webkit-scrollbar { display: none; }
.promo-tab-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 8px 18px;
    border: 1px solid var(--color-border, #e8e8e8);
    border-radius: var(--radius-pill, 50px);
    background: var(--color-bg, #fff);
    color: var(--color-text, #222);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.promo-tab-chip:hover {
    border-color: var(--color-primary, #00a2ad);
    color: var(--color-primary, #00a2ad);
    text-decoration: none;
}
.promo-tab-chip.active {
    background: var(--color-navy, #0b233f);
    border-color: var(--color-navy, #0b233f);
    color: #fff;
}
.promo-tab-chip.active:hover { color: #fff; }
.promo-tab-chip i { font-size: 12px; }

/* --- Feed sections --- */
.promo-section { margin-bottom: 38px; }
.promo-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.promo-section-title {
    position: relative;
    font-size: 19px;
    font-weight: 700;
    color: var(--color-navy, #0b233f);
    margin: 0;
    padding-left: 13px;
}
.promo-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 4px;
    background: var(--color-primary, #10b3ab);
}
.promo-section-sub {
    font-size: 12.5px;
    color: #777;
    margin: 2px 0 0;
}
.promo-section-viewall {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary, #00a2ad);
    text-decoration: none;
    white-space: nowrap;
}
.promo-section-viewall:hover { color: #067d86; text-decoration: none; }
.promo-section-viewall i { font-size: 11px; }

/* --- Relevance reason badge --- */
.promo-reason-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 9px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: #e6f7f8;
    color: #067d86;
    font-size: 11.5px;
    font-weight: 600;
}
.promo-reason-badge i { font-size: 10px; flex-shrink: 0; }

/* --- Grocery match groups --- */
.promo-grocery-group { margin-bottom: 20px; }
.promo-grocery-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #222);
}
.promo-grocery-item i { color: var(--color-primary, #00a2ad); }
.promo-grocery-item-name { text-transform: capitalize; }
.promo-grocery-count {
    padding: 2px 10px;
    border-radius: var(--radius-pill, 50px);
    background: var(--color-bg-muted, #f0f2f5);
    color: #666;
    font-size: 11.5px;
    font-weight: 600;
}

/* --- Empty section state --- */
.promo-empty-section {
    text-align: center;
    padding: 34px 16px;
    border: 1px dashed var(--color-border, #e8e8e8);
    border-radius: var(--radius-md, 12px);
    background: #fafbfc;
}
.promo-empty-section i {
    font-size: 26px;
    color: #b9c2cc;
    margin-bottom: 8px;
    display: block;
}
.promo-empty-section p {
    font-size: 13.5px;
    color: #666;
    margin: 0 auto 12px;
    max-width: 460px;
}

/* --- Card actions: heart + kebab (siblings of the card link) --- */
.promo-card.has-actions { position: relative; }
.promo-card.has-actions .promo-badge-ai { right: 50px; }
.promo-action-btn {
    position: absolute;
    right: 10px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    color: #5a6572;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}
.promo-action-btn:hover { transform: scale(1.08); color: var(--color-navy, #0b233f); }
.promo-save-btn { top: 10px; }
.promo-save-btn.saved { color: #e0245e; }
.promo-save-btn.saved:hover { color: #c01d50; }
.promo-menu-btn { top: 48px; }

/* In-card action menu (.promo-card clips overflow, so it stays inside) */
.promo-card-menu {
    display: none;
    position: absolute;
    top: 48px;
    right: 48px;
    z-index: 4;
    min-width: 185px;
    padding: 6px 0;
    background: #fff;
    border: 1px solid var(--color-border, #e8e8e8);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
.promo-card-menu.open { display: block; }
.promo-card-menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 14px;
    border: none;
    background: none;
    text-align: left;
    font-size: 12.5px;
    color: var(--color-text, #222);
    cursor: pointer;
}
.promo-card-menu button:hover { background: #f4f6f8; }
.promo-card-menu button i { width: 14px; font-size: 12px; color: #8a939e; }

/* --- Onboarding modal --- */
.promo-onboarding-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.promo-onboarding-chip {
    padding: 8px 16px;
    border: 1.5px solid var(--color-border, #e8e8e8);
    border-radius: var(--radius-pill, 50px);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text, #222);
    cursor: pointer;
    transition: all 0.15s ease;
}
.promo-onboarding-chip:hover { border-color: var(--color-primary, #00a2ad); }
.promo-onboarding-chip.selected {
    background: var(--color-primary, #00a2ad);
    border-color: var(--color-primary, #00a2ad);
    color: #fff;
}
.promo-onboarding-step-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary, #00a2ad);
    margin-bottom: 4px;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .promo-tabs { margin-bottom: 18px; }
    .promo-tab-chip { padding: 7px 14px; font-size: 12.5px; }
    .promo-section { margin-bottom: 30px; }
    .promo-section-head { align-items: flex-start; flex-direction: column; gap: 2px; }
    .promo-section-viewall { align-self: flex-end; margin-top: -20px; }
}

/* --- Personalization CTA banner --- */
.promo-personalize-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 38px;
    padding: 14px 18px;
    border-radius: var(--radius-md, 12px);
    background: linear-gradient(100deg, #e9f8f9 0%, #f4fbfb 100%);
    border: 1px solid #cdeef0;
}
.promo-personalize-banner strong {
    display: block;
    font-size: 14px;
    color: var(--color-navy, #0b233f);
}
.promo-personalize-banner span {
    font-size: 12.5px;
    color: #5a6b7a;
}
.promo-personalize-cta {
    flex-shrink: 0;
    background: var(--color-primary, #00a2ad);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-pill, 50px);
    padding: 7px 18px;
    border: none;
}
.promo-personalize-cta:hover { background: #068f99; color: #fff; }

/* --- One-tap category chips (catalogue tab) --- */
.promo-cat-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: -6px 0 18px;
    padding-bottom: 2px;
}
.promo-cat-chips::-webkit-scrollbar { display: none; }
.promo-cat-chip {
    flex-shrink: 0;
    padding: 5px 13px;
    border: 1px solid var(--color-border, #e8e8e8);
    border-radius: var(--radius-pill, 50px);
    background: #f7f9fa;
    color: #444;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}
.promo-cat-chip:hover {
    border-color: var(--color-primary, #00a2ad);
    color: var(--color-primary, #00a2ad);
}
.promo-cat-chip.active {
    background: var(--color-primary, #00a2ad);
    border-color: var(--color-primary, #00a2ad);
    color: #fff;
}
.promo-cat-chip-count {
    margin-left: 3px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.65;
}

@media (max-width: 767px) {
    .promo-cat-chips { margin-top: -2px; }
}

/* ─── Dealia Select: enhanced filter dropdown (dealia-select.js) ───
   Replaces native filter selects whose OS popups hide that they scroll.
   Fixed-height panel, always-visible scrollbar, bottom fade + option
   count so long lists clearly read as scrollable. */
.dealia-select {
    position: relative;
}
.dealia-select-native {
    display: none !important;
}
.dealia-select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    background: #fff;
    cursor: pointer;
}
.dealia-select-toggle:focus {
    border-color: var(--color-primary, #00a2ad);
    box-shadow: 0 0 0 3px rgba(0, 162, 173, 0.12);
    outline: none;
}
.dealia-select-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dealia-select-caret {
    flex: 0 0 auto;
    margin-left: 8px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
}
.dealia-select.open .dealia-select-caret {
    transform: rotate(-135deg) translateY(-2px);
}
.dealia-select-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1060;
    background: #fff;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(11, 35, 63, 0.14);
    overflow: hidden;
}
.dealia-select.open .dealia-select-panel {
    display: block;
}
.dealia-select-list {
    list-style: none;
    margin: 0;
    padding: 5px;
    max-height: 232px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b9c4cc transparent;
}
.dealia-select-list::-webkit-scrollbar {
    width: 8px;
}
.dealia-select-list::-webkit-scrollbar-thumb {
    background: #b9c4cc;
    border-radius: 8px;
    border: 2px solid #fff;
}
.dealia-select-list::-webkit-scrollbar-track {
    background: transparent;
}
.dealia-select-option {
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dealia-select-option:hover,
.dealia-select-option.active {
    background: #f0f7f8;
    color: var(--color-primary, #00a2ad);
}
.dealia-select-option.selected {
    font-weight: 600;
    color: var(--color-primary, #00a2ad);
}
.dealia-select-option.selected::after {
    content: '\2713';
    float: right;
    margin-left: 8px;
}
.dealia-select-fade {
    position: absolute;
    left: 1px;
    right: 9px;
    bottom: 25px;
    height: 34px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.dealia-select-fade.visible {
    opacity: 1;
}
.dealia-select-hint {
    padding: 5px 12px 7px;
    border-top: 1px solid var(--color-border, #eee);
    font-size: 11px;
    color: #97a3ab;
    text-align: center;
}
.dealia-select-search {
    padding: 8px 8px 4px;
}
.dealia-select-search input {
    width: 100%;
    border: 1.5px solid var(--color-border, #e0e0e0);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
}
.dealia-select-search input:focus {
    border-color: var(--color-primary, #00a2ad);
}

/* ─── Active filter chips (occasion, search, category, type, quick filter) ─── */
.promo-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.promo-active-filters-label {
    font-size: 12px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.promo-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border: 1px solid var(--color-primary, #10b3ab);
    border-radius: var(--radius-pill, 50px);
    background: rgba(16, 179, 171, 0.08);
    color: var(--color-primary, #10b3ab);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}

.promo-active-chip .fa {
    font-size: 10px;
    opacity: 0.7;
}

.promo-active-chip:hover {
    background: var(--color-primary, #10b3ab);
    color: #fff;
}

.promo-active-chip--clear {
    border-color: #ccc;
    background: transparent;
    color: #6c757d;
}

.promo-active-chip--clear:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}
