/* Clean Picks and Clean Products: shared look on top of styles.css (same teal, Inter, radii). */

.shop-hero {
    padding: 128px 0 40px;
    background: linear-gradient(180deg, rgba(41, 219, 192, 0.14) 0%, rgba(21, 155, 140, 0.05) 55%, var(--bg) 100%);
}
.shop-hero .container {
    max-width: 1120px;
}
.shop-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
}
.shop-hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--text);
    margin: 10px 0 14px;
    text-wrap: balance;
}
.shop-hero .lead {
    max-width: none; /* as wide as the content box below */
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.shop-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    max-width: 640px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.shop-note svg {
    flex: none;
    margin-top: 2px;
    color: var(--primary);
}
.shop-main {
    padding: 8px 0 88px;
}
.shop-main .container {
    max-width: 1120px;
}
.jump {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 24px;
    scrollbar-width: thin;
}
.jump a {
    flex: none;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
}
.jump a:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Picks: one card per video */
.video {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 32px;
    padding: 28px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 96px;
}
.video:target {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 155, 140, 0.12), var(--shadow-md);
}
.cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-tertiary);
}
.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cover .badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    padding: 6px 11px;
    text-decoration: none;
}
.video h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--text);
    margin: 6px 0 10px;
}
.video .fact {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.video .fact a, .more a {
    color: var(--primary-dark);
    font-weight: 600;
}
.rows {
    list-style: none;
    display: grid;
    gap: 10px;
}
.row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
}
.row .rname {
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.row .rbrand, .row .rwhy {
    display: block;
    font-size: 13px;
    color: var(--text-light);
}
.more {
    margin-top: 14px;
    font-size: 15px;
}
.empty-note {
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 14px 16px;
}

/* Product image (only when images come from Amazon's tools) */
.thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    text-decoration: none;
}
.thumb img {
    width: 86%;
    height: 86%;
    object-fit: contain;
}

/* Amazon button */
.btn-amazon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background 0.15s ease;
}
.btn-amazon:hover {
    background: var(--primary-dark);
}
.btn-amazon:focus-visible, .chip:focus-visible, .search:focus-visible, .cover:focus-visible {
    outline: 3px solid rgba(21, 155, 140, 0.45);
    outline-offset: 2px;
}

/* Products: sidebar filters + grid */
.browse {
    overflow: visible; /* styles.css clips .container, which would make it the sticky panel's scroll box */
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.filters {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
}
.filter-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.chip {
    font: 600 13px 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 11px;
    cursor: pointer;
}
.chip:hover {
    border-color: var(--primary);
}
.chip[aria-pressed="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}
.search {
    width: 100%;
    font: 15px 'Inter', sans-serif;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: var(--bg);
}
.result-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}
.clear {
    font: 700 14px 'Inter', sans-serif;
    color: var(--primary-dark);
    background: none;
    border: none;
    cursor: pointer;
}
.grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 18px;
}
.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.card .thumb {
    border-radius: 0;
}
.card .body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
    flex: 1;
}
.card .kind {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
}
.card .brand {
    font-size: 13px;
    color: var(--text-light);
}
.card .pname {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 4px 0 8px;
}
.tag {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 3px 7px;
}
.tag-free {
    color: var(--primary-dark);
    background: rgba(21, 155, 140, 0.12);
}
.seen {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
}
.card .btn-amazon {
    margin-top: auto;
}
.empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 48px 16px;
}
.fine-print {
    margin-top: 48px;
    max-width: none; /* same width as the cards above it */
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}
.fine-print a {
    color: var(--primary-dark);
}

@media (max-width: 900px) {
    .browse {
        grid-template-columns: minmax(0, 1fr);
    }
    .filters {
        position: static;
    }
}
@media (max-width: 720px) {
    .shop-hero {
        padding-top: 104px;
    }
    .video {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 18px;
    }
    .cover {
        aspect-ratio: 16 / 10;
    }
    .row {
        grid-template-columns: 52px minmax(0, 1fr);
    }
    .row .btn-amazon {
        grid-column: 1 / -1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .card, .btn-amazon {
        transition: none;
    }
    .card:hover {
        transform: none;
    }
}

[hidden] {
    display: none !important;
}

.disclose {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-light);
}
.results .disclose {
    margin: -6px 0 16px;
}
.disclose a {
    color: var(--primary-dark);
    font-weight: 600;
}

.row.no-thumb {
    grid-template-columns: minmax(0, 1fr) auto;
}
@media (max-width: 720px) {
    .row.no-thumb {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Clean Picks, phone first: one narrow column, compact rows, a small store button per product. */
.picks-page {
    padding: 92px 0 56px;
    background: linear-gradient(180deg, rgba(41, 219, 192, 0.12) 0%, var(--bg) 260px);
}
.picks-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}
.picks-hero {
    padding: 8px 0 20px;
}
.picks-hero h1 {
    font-size: clamp(30px, 8vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 6px;
}
.picks-hero p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.picks-hero .disclose {
    margin-top: 10px;
    font-size: 12px;
}
.topic {
    padding: 20px 0 8px;
    border-top: 1px solid var(--border);
    scroll-margin-top: 80px;
}
.topic-head {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}
.topic-still {
    width: 64px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bg-tertiary);
}
.topic h2 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 4px;
}
.topic-fact {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.topic-fact a {
    color: var(--primary-dark);
    font-weight: 600;
    white-space: nowrap;
}
.picks {
    list-style: none;
    display: grid;
    gap: 8px;
}
.pick {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
}
.pick-img {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}
.pick-img img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}
.pick-noimg {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
}
.pick-brand, .pick-why {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-light);
}
.pick-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin: 1px 0 2px;
}
.pick-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.pick-btn:hover {
    background: var(--primary-dark);
}
.pick-btn:focus-visible {
    outline: 3px solid rgba(21, 155, 140, 0.45);
    outline-offset: 2px;
}
.picks-page .more {
    margin-top: 10px;
    font-size: 14px;
}
.picks-page .fine-print {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    line-height: 1.6;
}
@media (max-width: 360px) {
    .pick {
        grid-template-columns: 48px minmax(0, 1fr);
    }
    .pick-img {
        width: 48px;
        height: 48px;
    }
    .pick-btn {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

/* Clean Products: filters that fold away, a live count, and a two-column grid on phones. */
.more-filters {
    display: grid;
    gap: 18px;
}
.more-filters[open] > div + div {
    margin-top: 18px;
}
.more-filters summary {
    list-style: none;
    cursor: pointer;
    font: 700 13px 'Inter', sans-serif;
    color: var(--primary-dark);
}
.more-filters summary::-webkit-details-marker {
    display: none;
}
.more-filters summary::after {
    content: " ▾";
}
.more-filters[open] summary {
    margin-bottom: 14px;
}
.more-filters[open] summary::after {
    content: " ▴";
}
@media (min-width: 721px) {
    .more-filters summary {
        display: none;
    }
}
@media (max-width: 720px) {
    .shop-hero {
        padding: 92px 0 16px;
    }
    .shop-sub {
        font-size: 15px;
        margin-top: -6px;
    }
    .browse {
        gap: 14px;
    }
    .filters {
        position: static;
        gap: 12px;
        padding: 0;
        border: 0;
        background: none;
    }
    .filters .filter-title {
        display: none;
    }
    .chips-types {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -12px;
        padding: 0 12px 4px;
        scrollbar-width: none;
    }
    .chips-types::-webkit-scrollbar {
        display: none;
    }
    .chips-types .chip {
        flex: none;
    }
    .more-filters .filter-title {
        display: block;
    }
    .result-bar {
        margin-bottom: 10px;
    }
    .results .disclose {
        margin: 0 0 12px;
        font-size: 12px;
    }
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .card .body {
        gap: 3px;
        padding: 10px 10px 12px;
    }
    .card .kind {
        font-size: 10px;
    }
    .card .brand {
        font-size: 12px;
    }
    .card .pname {
        font-size: 14px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .card .tags {
        margin: 2px 0 6px;
    }
    .card .tag:not(.tag-free) {
        display: none;
    }
    .card .seen {
        font-size: 12px;
    }
    .card .btn-amazon {
        font-size: 13px;
        padding: 9px 8px;
        white-space: normal;
        text-align: center;
    }
    .results .fine-print {
        margin-top: 28px;
        font-size: 12px;
    }
}
.search {
    box-sizing: border-box;
    max-width: 100%;
}
/* The swipeable type row must not widen the filter column past the screen. */
.filters {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}
.filters > * {
    min-width: 0;
}
/* Product photos always sit fully inside their square white box, whatever their shape: a percentage height
   does not resolve inside an aspect-ratio box, so tall photos (e.g. Farmacy Deep Sweep, 679x1911) were clipped. */
.thumb, .pick-img {
    position: relative;
}
.thumb img, .pick-img img {
    position: absolute;
    inset: 7%;
    width: 86%;
    height: 86%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}
