/* Подобрен херо секция */
.search-promo-banner {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    /* Blue Logo Gradient */
    border-radius: 0;
    margin-bottom: 30px;
    padding: 60px 20px;
    box-shadow: 0 10px 30px rgba(41, 128, 185, 0.25);
    display: block;
    border-bottom: 4px solid var(--accent);
    /* Industrial accent line */
    /* Default visible */
}

.search-promo-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.search-promo-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.search-promo-banner .btn {
    background: #ffffff !important;
    /* Use background shorthand to wipe out gradient image */
    color: rgb(41, 128, 185) !important;
    /* Logo Blue for text */
    border: none !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.search-promo-banner .btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}




.search-container {
    margin-bottom: 40px;
    margin-top: 20px;
}

/* Подобрени секционни заглавия */
.section-title {
    font-size: 1.15rem;
    margin: 20px 0 10px;
    font-weight: 600;
    color: var(--dark);
    position: relative;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}


.section-title i {
    color: rgb(52, 152, 219);
}

/* Подобрени карточки за продукти */
/* Специален стил за търсени продукти - 4 колони с раздалечени карти */
.home-results-layout .search-results-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 18px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 50px;
}

.home-results-layout .search-results-grid .product-card {
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    margin-right: 0;
    border: 1px solid #e8eef6;
}

.home-results-layout .search-results-grid .product-card:hover {
    z-index: 10;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    /* По-дискретна сянка */
    transform: none;
}


@media (max-width: 1200px) {
    .home-results-layout .search-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .home-results-layout .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-results-layout .search-results-grid {
        grid-template-columns: 1fr;
    }
}

.home-results-layout .search-results-grid .product-image {
    margin: 12px 12px 0;
    border-radius: 7px;
}

.home-results-layout .search-results-grid .product-info {
    padding: 14px 14px 16px;
}

.home-results-layout .search-results-grid .product-title {
    font-size: 14px;
}

.home-results-layout .search-results-grid .card-fixed-price .product-description {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.home-results-layout .search-results-grid .product-price-footer {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 15px;
}

.home-results-layout .price-drop {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.home-results-layout .timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(80, 70, 229, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--warning);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 14px;
}

.home-results-layout .search-results-grid .product-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: var(--gray);
}

.home-results-layout .search-results-grid .product-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.home-results-layout .search-results-grid .product-footer {
    align-items: center;
    padding-top: 8px;
    border-top: none;
}

.home-results-layout .search-results-grid .product-details-link {
    color: var(--secondary-dark);
    cursor: pointer;
    line-height: 1;
}

.home-results-layout .search-results-grid .product-details-link:hover {
    color: var(--secondary);
    opacity: 0.8;
}

.home-results-layout .search-results-grid .btn-watch {
    z-index: 25;
    font-size: 16px;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    outline: none;
    box-shadow: none;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    grid-column: 1 / -1;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.no-results i {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--secondary-dark);
}

.home-feed-sentinel {
    width: 100%;
    height: 1px;
}

.home-feed-status {
    min-height: 1.5rem;
    margin: 1rem 0 2rem;
    color: var(--gray);
    font-size: 0.9rem;
    text-align: center;
}

/* Футър с подобрен дизайн */
footer {
    margin-top: 80px;
    background: var(--dark);
    color: white;
    padding: 50px 0 30px;
}

/* Sidebar and Facets */
/* .search-results-layout removed - replaced by pds-sidebar-layout */

@media (min-width: 992px) {
    /* Flex column (not grid): keeps the sticky filter button able to travel
       the whole results column, and lets it overlap the title row.
       align-items must beat .pds-sidebar-layout's `start`, which in a column
       flex would shrink children to content width. */
    .home-results-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .home-results-layout .home-results-title {
        margin-top: 0;
    }

    .home-results-layout .search-results-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 18px 14px;
    }
}

.category-header i,
.fa-layer-group {
    color: rgb(52, 152, 219) !important;
}

/* Price Inputs Row */
.price-inputs-row {
    display: flex;
    gap: 10px;
    padding: 10px 5px;
}

.price-input-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-input-container label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--dark-light);
    font-weight: 600;
}

.price-input-container input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: var(--dark-main);
    background: white;
    transition: border-color 0.2s;
}

.price-input-container input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

/* Hide spin buttons for numeric inputs */
.price-input-container input::-webkit-outer-spin-button,
.price-input-container input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input-container input[type=number] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.facet-option.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
    filter: grayscale(1);
}




@media (max-width: 992px) {
    /* .search-results-layout logic removed */
}

.footer-minimal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-identity {
    flex: 1;
    max-width: 480px;
}

.footer-description {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
    margin-top: 15px;
}

.footer-reach {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-contact-minimal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-minimal a {
    color: var(--gray);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.footer-contact-minimal a:hover {
    color: white;
}

.footer-contact-minimal i {
    color: rgb(52, 152, 219);
    font-size: 14px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: white;
    font-style: italic;
    letter-spacing: 0;
}

.footer-logo-text .logo-accent {
    color: #ff5a1f;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.social-icon:hover {
    background: rgb(52, 152, 219);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer-minimal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-reach {
        align-items: center;
    }

    .footer-contact-minimal a {
        justify-content: center;
    }

    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 576px) and (orientation: portrait) {
    .footer-logo {
        justify-content: center;
    }
}

/* Мобилна адаптация */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1rem;
        margin: 15px 0 10px;
    }

    .search-promo-banner h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .filters {
        flex-direction: column;
    }

    .filter-group {
        justify-content: center;
    }

    .price-drop-indicator {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    /* Scoped to hero CTA only — a bare `.btn` here leaks into every
       _GuestLayout page (e.g. UserPanel bulk buttons, drawer contact
       buttons) and caps them at 300px. */
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .filter-group {
        flex-direction: column;
    }

    select {
        width: 100%;
    }

}

@media (max-width: 600px) {
    .home-results-layout .search-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
    }

    .home-results-layout .search-results-grid .product-image {
        height: 120px;
        margin: 8px 8px 0;
    }

    .home-results-layout .search-results-grid .product-info {
        padding: 10px;
    }

    .home-results-layout .search-results-grid .product-title {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        min-height: 34px;
        margin-bottom: 6px;
    }

    .home-results-layout .search-results-grid .product-description {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .home-results-layout .search-results-grid .price-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .home-results-layout .search-results-grid .product-price-footer {
        padding-top: 8px;
        margin-bottom: 4px !important;
    }

    .home-results-layout .search-results-grid .current-price {
        font-size: 14px;
        line-height: 1.2;
    }

    .home-results-layout .search-results-grid .original-price {
        font-size: 11px;
        line-height: 1.2;
    }

    .home-results-layout .search-results-grid .drop-countdown,
    .home-results-layout .search-results-grid .product-stats {
        font-size: 10px;
        line-height: 1.25;
    }

    .home-results-layout .search-results-grid .product-footer {
        margin-top: 6px;
        padding-top: 4px;
    }

    .home-results-layout .search-results-grid .product-details-link {
        font-size: 10px;
        gap: 4px;
    }

    .home-results-layout .search-results-grid .drop-rate-pill {
        font-size: 9px;
        padding: 3px 6px;
    }

    .home-results-layout .search-results-grid .badge-dropping-price,
    .home-results-layout .search-results-grid .badge-promoted {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* --- Filter toggle button (all viewports) ---
   The filter surface is an off-canvas drawer everywhere; the layout keeps
   only this sticky button in the old container's spot.
   .home-results-layout is flex-column at every width: mobile via the base
   .pds-sidebar-layout flex-column, desktop via the more specific
   `.home-results-layout` override at min-width:992px earlier in this file
   (the bare .pds-sidebar-layout base is grid on desktop — see
   pds/layouts/sidebar.css) — so `order` governs visual stacking on both
   mobile and desktop regardless of DOM/insertion order (#listingKindToggle
   is inserted via insertAfter(.home-results-title) — see
   home-listing-kind-toggle.js — so it is always AFTER the title in the DOM;
   #mobileFilterToggle stays prepended, always BEFORE the title). `order`
   is intentionally DIFFERENT per breakpoint here:
   - Mobile (base, <992px): #listingKindToggle (2) above #mobileFilterToggle
     (3) — plain stacking, no pull-up involved at this width at all.
   - Desktop (>=992px, media query further down): #mobileFilterToggle (2)
     goes back to being the title's immediate next flex-flow sibling so its
     `margin-top: -40px` pull-up (further down) keeps landing exactly on the
     title's row regardless of whether the toggle exists — the toggle (3)
     never sits between them in flow, so the two controls' layouts can
     never collide or depend on each other's height. */
.home-results-title {
    order: 1;
}

.home-results-layout #listingKindToggle {
    order: 2;
}

.home-results-layout #mobileFilterToggle {
    order: 3;
    position: sticky;
    top: var(--mobile-filter-sticky-top, 120px);
    z-index: 1040;
}

.home-results-layout .results-main {
    order: 4;
}

@media (min-width: 992px) {
    .home-results-layout #mobileFilterToggle {
        order: 2;
    }

    .home-results-layout #listingKindToggle {
        order: 3;
    }
}

/* --- Техника|Части segmented toggle ---
   Restyled to match #mobileFilterToggle's pill look (same height via
   padding, border-radius, shadow, gradient-on-active) instead of the
   discovery-chip style — same color variables, no new colors. */
.listing-kind-toggle {
    display: flex;
    gap: 4px;
    width: 100%;
    margin-bottom: 12px;
    padding: 4px;
    background: #fff;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.listing-kind-toggle button {
    flex: 1 1 50%;
    border: none;
    /* Rounded only against the container's outer curve; the inner edge
       where the two segments meet stays square. */
    border-radius: 0;
    background: #fff;
    color: var(--secondary);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.listing-kind-toggle button:first-child {
    border-radius: 7px 0 0 7px;
}

.listing-kind-toggle button:last-child {
    border-radius: 0 7px 7px 0;
}

.listing-kind-toggle button.active {
    background: linear-gradient(135deg, #5dade2 0%, var(--secondary-dark) 45%, var(--secondary) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #fff;
}

.listing-kind-toggle button:not(.active):hover {
    background: #f4f7fb;
}

@media (min-width: 992px) {
    /* Toggle: its own line under the title, left-aligned, sized to content
       (not stretched) — a plain flex-column item with no pull-up and no
       positioning tricks. At this width #mobileFilterToggle is `order: 2`
       (immediately after the title, see above), so the toggle at `order: 3`
       starts in normal flow right after the button's own reserved flex
       track — the button's pull-up only shifts where it renders, it does
       not remove its box from flow, so this is the natural gap directly
       under the title regardless of the button's own height/margins. No
       margin value here needs to know anything about the button. */
    .home-results-layout.has-listing-kind-toggle #listingKindToggle {
        width: auto;
        max-width: 100%;
        min-width: 220px;
        align-self: flex-start;
        margin-top: 0;
        margin-bottom: 12px;
    }
}

.mobile-filter-btn {
    display: flex !important;
    width: 100%;
    padding: 7px 30px;
    /* Must exceed the sticky push-down (up to ~16px when the results top
       rests at the header) so the pinned button never touches .results-main. */
    margin-bottom: 20px;
    background: linear-gradient(135deg, #5dade2 0%, var(--secondary-dark) 45%, var(--secondary) 100%);
    border: 2px solid #fff;
    border-radius: 11px;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35), 0 5px 14px rgba(52, 152, 219, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    justify-content: center;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.mobile-filter-btn i {
    color: #fff;
}

/* Decorative dot chevrons on both edges: ‹ … › — 3 rows × 2 dots,
   middle row pushed outward so the six dots read as a bold chevron. */
.mobile-filter-btn::before,
.mobile-filter-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 22px;
    background-image:
        radial-gradient(circle at 6px 4px, rgba(255, 255, 255, 0.6) 1.2px, transparent 1.4px),
        radial-gradient(circle at 10.5px 4px, rgba(255, 255, 255, 0.6) 1.2px, transparent 1.4px),
        radial-gradient(circle at 4px 7.5px, rgba(255, 255, 255, 0.6) 1.2px, transparent 1.4px),
        radial-gradient(circle at 8.5px 7.5px, rgba(255, 255, 255, 0.6) 1.2px, transparent 1.4px),
        radial-gradient(circle at 2px 11px, rgba(255, 255, 255, 0.6) 1.2px, transparent 1.4px),
        radial-gradient(circle at 6.5px 11px, rgba(255, 255, 255, 0.6) 1.2px, transparent 1.4px),
        radial-gradient(circle at 4px 14.5px, rgba(255, 255, 255, 0.6) 1.2px, transparent 1.4px),
        radial-gradient(circle at 8.5px 14.5px, rgba(255, 255, 255, 0.6) 1.2px, transparent 1.4px),
        radial-gradient(circle at 6px 18px, rgba(255, 255, 255, 0.6) 1.2px, transparent 1.4px),
        radial-gradient(circle at 10.5px 18px, rgba(255, 255, 255, 0.6) 1.2px, transparent 1.4px);
    background-repeat: no-repeat;
    pointer-events: none;
}

.mobile-filter-btn::before {
    left: 12px;
}

.mobile-filter-btn::after {
    right: 12px;
    transform: translateY(-50%) scaleX(-1);
}

.mobile-filter-btn:hover {
    filter: brightness(1.07);
    color: #fff;
}

.mobile-filter-btn .filter-count-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    margin-left: 13px;
    background: #fff;
    color: var(--secondary);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 21px;
}

/* Thin separator between the label and the count badge */
.mobile-filter-btn .filter-count-badge::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.45);
}

@media (min-width: 992px) {
    /* Unconditional in EVERY state, toggle present or not: pulls the button
       up onto the title row (title ~22px + 10px margin), right-aligned, so
       title and button share one line without pushing the title down —
       exactly the original pre-feature behavior. The Техника|Части toggle
       (when present) never shares this row or this rule; it renders on its
       own line below via #listingKindToggle's independent rule above. */
    .home-results-layout #mobileFilterToggle {
        width: auto;
        min-width: 180px;
        align-self: flex-end;
        margin-top: -40px;
    }
}

/* --- Filters drawer (padnisi-offcanvas) ---
   Narrow right-side slide panel on every viewport, same component as the
   item details / add-item drawers. */
#filtersOffcanvas.padnisi-offcanvas {
    width: min(400px, 92vw);
}

#filtersOffcanvas .padnisi-offcanvas-body {
    padding: 16px 20px;
}

/* --- Mobile Layout Overrides --- */
@media (max-width: 991.98px) {
    .home-results-layout .quick-filter-option:not(.active):hover {
        border-color: #cbd5e1;
        background: #fff;
        color: #1f2937;
    }

    .header-container {
        flex-wrap: wrap;
        padding-bottom: 10px;
    }

    /* Logo takes remaining space on first row, pushes ☰ to right */
    .header-logo-row {
        flex: 1;
        margin-bottom: 0;
    }

    /* Hamburger stays on first row, right side */
    .mobile-menu-btn {
        order: 2;
    }

    /* Search wraps to second row, full width */
    .header-search {
        order: 3;
        width: 100% !important;
        margin: 10px 0 0 0 !important;
    }

}

@media (min-width: 992px) {

    .filter-backdrop,
    .mobile-only {
        display: none !important;
    }
}

/* =========================================
   Nested Facets Styling
   ========================================= */

/* Category Main Header */
.category-header {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    margin-top: 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-header i {
    color: var(--primary);
    margin-right: 8px;
    font-size: 1rem;
}

/* .category-header .badge removed - replaced by .count-badge in facets.css */

/* Indented Container for Properties */
.category-facets {
    margin-left: 2px;
    padding-left: 6px;
    border-left: 1px solid #e5e7eb;
}

/* Sub-Facet (Property) Group */
.facet-group.sub-facet {
    margin-bottom: 4px;
}

/* Sub-Facet Title */
.facet-group.sub-facet .facet-title {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

/* Adjust options within sub-facet */
.facet-group.sub-facet .facet-option {
    padding: 0;
    font-size: 0.75rem;
    line-height: 1.1;
    color: #4b5563;
    min-height: 16px;
    display: flex;
    align-items: center;
}

.facet-group.sub-facet .facet-option:hover {
    color: var(--primary);
    background-color: transparent;
}

.facet-group.sub-facet .facet-option i.facet-checkbox {
    width: 15px;
    height: 15px;
    font-size: 10px;
    margin-right: 6px;
    margin-top: 0;
    border-radius: 3px;
    /* softer look */
}

/* Item Details Drawer */

/* Dropping-price listing styles */
.home-results-layout .card-dropping-price {
    border-color: #e8eef6 !important;
}

.home-results-layout .badge-dropping-price,
.home-results-layout .badge-promoted {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f59e0b;
    color: #111827;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 3;
}

/* Boosted (promoted) card border matches the badge color */
.home-results-layout .card-promoted {
    border: 2px solid #f59e0b !important;
}

/* =========================================================
   Hero: dropping-price repositioning (Phase 3)
   ========================================================= */
.hero-drop {
    position: relative;
    padding: 2.5rem 1rem 2rem;
    margin: 1rem 0 1.5rem;
    background: linear-gradient(135deg, #0b1724 0%, #1a2a3a 55%, #2A2D43 100%);
    border-radius: 12px;
    color: #fff;
    overflow: hidden;
}

.hero-drop-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.hero-drop-headline {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 0.5rem;
    letter-spacing: 0;
    color: #fff;
}

.hero-drop-subline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.85;
    margin: 0 0 1.25rem;
}

.hero-drop-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    min-height: 2rem;
    color: rgb(225, 224, 224);
}

.hero-drop-dot {
    width: 8px;
    height: 8px;
    background: rgb(255, 102, 0);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
    animation: hero-drop-pulse 1.6s infinite;
}

@keyframes hero-drop-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 102, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
    }
}

.hero-drop-ticker-wrap {
    position: relative;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    max-width: 900px;
    height: 44px;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.hero-drop-ticker {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    white-space: nowrap;
    animation: hero-drop-marquee 40s linear infinite;
    will-change: transform;
}

@keyframes hero-drop-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.hero-drop-ticker:hover {
    animation-play-state: paused;
}

.ticker-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.85rem;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    text-decoration: none;
    transition: background 0.15s ease;
}

.ticker-pill:hover {
    background: rgba(255, 255, 255, 0.18);
}

.ticker-pill img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.ticker-pill .ticker-title {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-pill .ticker-delta {
    color: rgb(255, 102, 0);
    font-weight: 700;
}

.hero-drop-cta {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background: #F4F6FA;
    color: #1A2A3A !important;
}

/* =========================================================
   Listing card: countdown + next-price (Phase 4)
   ========================================================= */
.home-results-layout .drop-rate-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    z-index: 1;
    letter-spacing: 0.02em;
}

.home-results-layout .drop-countdown {
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.35rem;
}

.home-results-layout .drop-countdown.is-urgent {
    color: #dc2626;
    font-weight: 600;
}

/* =========================================================
   Drawer: viewer count + chart (Phase 5)
   ========================================================= */
.viewer-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: rgba(74, 107, 255, 0.08);
    color: var(--primary-dark, #3A56E6);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.viewer-count-pill[hidden] {
    display: none;
}

.viewer-live-dot {
    width: 8px;
    height: 8px;
    background: var(--primary, #4A6BFF);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 107, 255, 0.7);
    animation: viewer-live-pulse 1.6s infinite;
    flex-shrink: 0;
}

@keyframes viewer-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 107, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 107, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 107, 255, 0);
    }
}

.price-chart-wrap {
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.price-chart {
    width: 100%;
    height: 180px;
    display: block;
}
