/* 7-day price drops page */
.price-drops-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.price-drops-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Centered under title. Market-lite overrides alignment in design-market-lite.css */
.price-drops-header:not(.price-drops-header--ml) .price-drops-live-meta {
    font-size: 0.875rem;
    text-align: center;
    margin: 0 0 0.5rem 0;
}

.price-drops-subtitle,
.price-drops-live-meta,
.results-range,
.sort-note,
.computed-at {
    color: var(--text-secondary);
}

.price-drops-toolbar {
    max-width: 960px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.price-drops-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price-drops-search-form {
    max-width: 960px;
    margin: 0 auto 1rem;
}

.price-drops-search-form .input-group {
    flex-wrap: nowrap;
}

.price-drops-search-form .form-control {
    min-width: 0;
}

.sort-toggle .btn {
    min-width: 170px;
}

.website-filters-panel {
    position: relative;
}

.website-filters-summary {
    list-style: none;
    cursor: pointer;
}

.website-filters-summary::-webkit-details-marker {
    display: none;
}

.website-filters-summary .btn {
    min-width: 220px;
    text-align: left;
}

.website-filters-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 20;
    width: min(640px, calc(100vw - 2rem));
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.website-filter-select-all {
    margin-bottom: 0.75rem;
}

.website-filter-group + .website-filter-group {
    margin-top: 1rem;
}

.website-filter-group-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.website-filters-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
}

.website-filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.website-filter-item input {
    margin: 0;
}

.no-results,
.error-message {
    text-align: center;
    padding: 3rem 1rem;
}

.no-results h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-message {
    color: #dc3545;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

#price-drops-wrapper {
    min-height: 100vh;
    position: relative;
    width: 100%;
}

/* Shared market-lite list skeletons (just-listed + price-drops). */
html[data-design="market-lite"] .list-list-slot[aria-busy="true"] {
    min-height: 71.5rem; /* ~head + 10 market rows + pagination */
}

html[data-design="market-lite"] .list-skeleton-pagination {
    height: 3.5rem;
    margin-top: 2rem;
}

html[data-design="market-lite"] .list-filter-placeholder {
    display: inline-block;
    min-width: 220px;
    height: 34px;
    border-radius: 999px;
    background: var(--background-secondary, #f3f4f6);
    border: 1px solid var(--border-color, #e4e7ec);
}

html[data-design="market-lite"][data-theme="dark"] .list-filter-placeholder {
    background: var(--background-tertiary, #2a2f3a);
}

html[data-design="market-lite"] .list-skeleton-row {
    pointer-events: none;
    cursor: default;
}

html[data-design="market-lite"] .list-skeleton-row:hover {
    background: transparent;
}

html[data-design="market-lite"] .list-skel-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

html[data-design="market-lite"] .list-skel-line {
    height: 14px;
    width: min(100%, 16rem);
}

html[data-design="market-lite"] .list-skel-tag {
    height: 22px;
    width: 7rem;
    justify-self: start;
}

html[data-design="market-lite"] .list-skel-num {
    height: 14px;
    width: 3.5rem;
    justify-self: end;
}

/* Opacity-only enter — avoid translateY layout motion / CLS. */
.list-results-enter,
.list-list-enter {
    animation: list-results-fade-in 0.22s ease;
}

@keyframes list-results-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    html[data-design="market-lite"] .list-list-slot[aria-busy="true"] {
        min-height: 56rem;
    }

    .price-drops-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .price-drops-toolbar-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .price-drops-search-form {
        width: 100%;
        max-width: 100%;
    }

    .price-drops-search-form .input-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        width: 100%;
    }

    /* Bootstrap .input-group > .form-control uses width: 1% for flex; under grid that collapses the field. */
    .price-drops-search-form .form-control {
        width: 100%;
        min-width: 0;
    }

    .price-drops-search-form .btn {
        white-space: nowrap;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .sort-toggle .btn-group {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sort-toggle .btn {
        min-width: 0;
    }

    .website-filters-summary .btn {
        width: 100%;
        min-width: 0;
    }

    .website-filters-popover {
        position: static;
        width: 100%;
        max-height: none;
        margin-top: 0.5rem;
    }

    .website-filters-grid {
        grid-template-columns: 1fr;
    }
}

/* Under-product shop line: mobile only (SHOP column uses .hide-sm at ≤900px).
   Use small.show-sm-only so design-market-lite's `small { display:block }` does not win. */
.shuttle-drops-pname small.show-sm-only {
    display: none;
}

.shuttle-drops-pname .shuttle-drops-mini-cta {
    display: none;
}

@media (max-width: 900px) {
    .shuttle-drops-pname small.show-sm-only {
        display: block;
    }

    .shuttle-drops-pname small.hide-sm-only {
        display: none;
    }

    .shuttle-drops-pname .shuttle-drops-mini-cta {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin-top: 4px;
        width: fit-content;
    }
}
