/*
 * Styles for /shop and every /shop/<product> page. Design tokens, navbar
 * and footer live in /shared.css; only shop-specific styles belong here.
 *
 * Visual language is lifted from the landing page (index.html): uppercase
 * caption labels with an accent dot, light 28px titles, hairline dividers,
 * gold #D6B25E pill buttons, and the join modal's dark rounded panel.
 *
 * Two kinds of product live here:
 *   - Linea items: sold and shipped by Linea (Stripe payment link).
 *   - Partner picks: affiliate links to another store.
 * Cards and product pages mark which is which with a .product-tag.
 */

/* ---------- Page hero ---------- */
.page-hero {
    padding: 140px 24px 72px;
    text-align: center;
}

.page-hero .hero-badge,
.shop-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.page-hero .hero-badge {
    margin-bottom: 32px;
}

.page-hero .hero-badge::before,
.shop-section-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.page-hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
}

.page-hero p {
    max-width: 480px;
    margin: 24px auto 0;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

/* ---------- Shop sections (/shop) ---------- */
.shop-section {
    border-top: 1px solid var(--divider);
    padding: 88px 0 104px;
}

.shop-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.shop-section-label {
    margin-bottom: 16px;
}

.shop-section-title {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.3;
    max-width: 480px;
    margin: 0 auto;
}

.shop-section-sub {
    max-width: 440px;
    margin: 16px auto 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    justify-content: center;
    gap: 32px;
}

/* ---------- Product card ---------- */
.product-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    background: #08080A;
    border: 1px solid rgba(214, 178, 94, 0.26);
    border-radius: 22px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
    border-color: rgba(214, 178, 94, 0.6);
    transform: translateY(-2px);
}

.product-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}

.product-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card h2 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
}

.product-card .price {
    font-size: 15px;
    color: var(--text-secondary);
}

.product-card .discount,
.product-info .discount {
    font-size: 14px;
    font-weight: 500;
    color: #D6B25E;
}

.product-card .card-cta {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

/* "Sold by Standout" tag on partner picks */
.product-tag {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--divider);
    border-radius: 9999px;
    padding: 3px 10px;
    margin-bottom: 6px;
}

.shop-disclosure {
    text-align: center;
    max-width: 480px;
    margin: 48px auto 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--text-primary);
}

/* ---------- Product detail page ---------- */
.product-section {
    padding: 120px 0 104px;
}

.product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

@media (max-width: 860px) {
    .product-section {
        padding-top: 104px;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.product-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(214, 178, 94, 0.26);
    border-radius: 22px;
}

@media (min-width: 861px) {
    .product-image {
        position: sticky;
        top: calc(var(--announce-h) + 96px);
    }
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-info h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 20px;
}

.product-info .price {
    font-size: 22px;
    font-weight: 300;
}

.product-info .discount {
    margin-top: 6px;
}

.ship-note {
    margin-top: 10px;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.product-info .description {
    margin-top: 36px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.product-info .description p + p {
    margin-top: 1em;
}

/* Same as the landing page .feature-list */
.product-info ul.features {
    list-style: none;
    margin-top: 40px;
    border-top: 1px solid var(--divider);
}

.product-info ul.features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 15px;
}

.product-info ul.features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Gold pill, same as the landing page's primary buttons */
.buy-button {
    align-self: flex-start;
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #D6B25E;
    color: #000;
    border: 1px solid #D6B25E;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.buy-button:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.affiliate-note {
    margin-top: 16px;
    max-width: 420px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.shop-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
}

/* Waitlist form on Linea product pages (base styles in shared.css) */
.product-signup {
    margin: 40px 0 0;
    max-width: 420px;
}

/* Struck-through list price + discounted price */
.price s {
    color: var(--text-secondary);
    opacity: 0.7;
    margin-right: 6px;
}

.price .sale-price {
    color: var(--text-primary);
}

/* "Join Waitlist" pill: an exact copy of the navbar's button
   (.signup-form button + .header-signup-form button in shared.css). */
.waitlist-pill {
    align-self: flex-start;
    background: #D6B25E;
    color: var(--bg);
    border: none;
    border-radius: 9999px;
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 3.5px 11px;
    white-space: nowrap;
    transition: all 0.2s;
}

.waitlist-pill:hover,
.waitlist-pill:active {
    background: var(--accent);
    color: var(--bg);
}

.product-card .waitlist-pill {
    margin-top: 12px;
}

/* One-line "why it helps your posture" under the card title */
.product-card .card-why {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* "More from the shop" on product pages */
.related-section {
    padding-top: 72px;
}

.shop-all {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
}

.shop-all a {
    color: var(--text-secondary);
    text-decoration: none;
}

.shop-all a:hover {
    color: var(--text-primary);
}

/* Card with its own button (Linea items): the title link stretches over the
   whole card, and the button sits above it so it opens the waitlist popup
   rather than following the link. */
.product-card.has-action {
    position: relative;
}

.product-card .card-link {
    color: inherit;
    text-decoration: none;
}

.product-card .card-link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.product-card .card-link:focus-visible {
    outline: none;
}

.product-card.has-action:has(.card-link:focus-visible) {
    outline: 2px solid #D6B25E;
    outline-offset: 2px;
}

.product-card.has-action .waitlist-pill {
    position: relative;
    z-index: 1;
    cursor: pointer;
}

button.buy-button {
    font-family: inherit;
    cursor: pointer;
}

/* Linea items say as little as possible: one line, the ship line, the
   button, and who made it. */
.product-info .lede {
    font-size: 19px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
}

.product-info .lede + .ship-note {
    margin-top: 16px;
}

/* Trial/warranty line right under a partner's buy button */
.assurance {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-primary);
}

/* "Copy code" chip next to a discount code */
.copy-code {
    margin-left: 8px;
    padding: 2px 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: #D6B25E;
    background: transparent;
    border: 1px solid rgba(214, 178, 94, 0.5);
    border-radius: 9999px;
    cursor: pointer;
    vertical-align: 1px;
    transition: background 0.2s, color 0.2s;
}

.copy-code:hover,
.copy-code.is-copied {
    background: #D6B25E;
    color: #000;
}

/* Buy button right under the price, so it sits above the fold */
.product-info .discount + .buy-button {
    margin-top: 24px;
}

.product-info .assurance + .ship-note {
    margin-top: 8px;
}

/* Whole card clickable: the button's ::after covers the card */
.product-card.has-action { cursor: pointer; }
.product-card .waitlist-pill.stretch::after {
    content: '';
    position: absolute;
    inset: 0;
}

/* Whole necklace card clickable: the Join Waitlist button's ::after
   covers the card, so any click opens the waitlist popup. */
.product-card.has-action { cursor: pointer; }
.product-card .waitlist-pill.stretch::after {
    content: '';
    position: absolute;
    inset: 0;
}

/* "More gear I use" link to the Amazon storefront */
.shop-more {
    text-align: center;
    margin-top: 40px;
    font-size: 15px;
}

.shop-more a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: rgba(214, 178, 94, 0.5);
    text-underline-offset: 4px;
}

.shop-more a:hover {
    text-decoration-color: #D6B25E;
}

/* Real-life photos (people wearing it): fill the frame, no white mat.
   Product cut-outs (like Standout's) keep object-fit: contain on white. */
.product-card img.is-photo,
.product-image.is-photo {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #111;
}

/* ---------- Product photo gallery ---------- */
@media (min-width: 861px) {
    .product-gallery {
        position: sticky;
        top: calc(var(--announce-h) + 96px);
    }
    .product-gallery .product-image {
        position: static;
    }
}

/* ---------- Product photo carousel ---------- */
.carousel {
    position: relative;
}

/* Desktop: stay sticky beside the text (the `top` set on .product-gallery
   above would otherwise shift a position:relative carousel down). */
@media (min-width: 861px) {
    .product-gallery.carousel {
        position: sticky;
    }
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border: 1px solid rgba(214, 178, 94, 0.26);
    border-radius: 22px;
    background: #111;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    scroll-snap-align: start;
}

/* The pendant close-up is a product shot: show all of it */
.carousel-slide.is-product {
    object-fit: contain;
    background: #EFE6DC;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 0 3px;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn:disabled {
    opacity: 0;
    pointer-events: none;
}

.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

/* On touch screens people swipe; the arrows would only cover the photo */
@media (hover: none) and (pointer: coarse) {
    .carousel-btn { display: none; }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.is-active {
    background: #D6B25E;
    transform: scale(1.25);
}

/* ---------- Uniform tiles ----------
   Every card: same 4:5 image frame, tag, title, one-line reason, one
   status line, and a gold pill. Photos fill the frame; product cut-outs
   (white background) sit whole inside it. */
.product-card img.is-product {
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: #fff;
}

.product-card .product-tag {
    margin-bottom: 6px;
}

.product-card .card-status {
    color: var(--text-secondary);
}

.product-card .waitlist-pill {
    margin-top: 12px;
}

a.product-card:hover .waitlist-pill {
    background: var(--accent);
}

/* Stretched card buttons: the pill itself stays static so its ::after
   covers the whole card (a relative pill would only cover itself). The
   Copy code chip sits above that layer so it copies instead of following
   the card's link. */
.product-card.has-action .waitlist-pill.stretch { position: static; }
.product-card.has-action .copy-code { position: relative; z-index: 2; }
.product-card .discount { margin-top: 6px; }
.product-card .card-note {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}
a.waitlist-pill { text-decoration: none; }
.product-card.has-action:hover a.waitlist-pill { background: var(--accent); }

/* Carousel inside a shop card: same 4:5 frame as the other tiles, with
   the dots laid over the bottom of the photo. Raised above the card's
   stretched button so arrows, dots and swipes reach it. */
.card-carousel {
    position: relative;
    z-index: 2;
}
.card-carousel .carousel-track {
    border: none;
    border-radius: 0;
    cursor: pointer;
}
.product-card .card-carousel .carousel-slide {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #111;
}
.product-card .card-carousel .carousel-slide.is-product {
    object-fit: contain;
    background: #EFE6DC;
}
.card-carousel .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 22px;
}
.card-carousel .carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    margin: 0;
}

/* "Copied to your clipboard" bubble above the Copy code chip, so the
   message never reflows the line it sits in. */
.copy-code { position: relative; }
.copy-code.is-copied::after {
    content: 'Copied to your clipboard';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    color: #000;
    background: #D6B25E;
    border-radius: 9999px;
    pointer-events: none;
}

/* "$200 off" on one line, the "Copy code LINEA" chip on the next */
.code-row .copy-code {
    margin-left: 8px;
    padding: 5px 14px;
    font-size: 13px;
}
.code-row .copy-code strong { font-weight: 600; }

/* ---------- Card text rhythm ----------
   Every line in a card body sits the same distance apart (title, one-liner,
   status, button), so the three tiles read the same. Margins that used to
   add uneven extra space are zeroed here. */
.product-card .product-card-body { gap: 10px; }
.product-card .card-why,
.product-card .card-status,
.product-card .discount,
.product-card .waitlist-pill { margin: 0; }
.product-card .card-why { line-height: 1.45; }
/* "First units ship this winter": a quiet note, smaller than the one-liner */
.product-card .card-status {
    font-size: 13px;
    line-height: 1.45;
}
/* The Standout price line keeps the one-liner's size so the price reads */
.product-card .card-status.code-row { font-size: 14px; }

/* "$200 off" leads the Standout price line, in the gold accent */
.product-card .card-status .save {
    color: #D6B25E;
    font-weight: 500;
}

/* ---------- Compact /shop (phone first) ----------
   One heading, no divider lines, and tight gaps, so the first product
   shows near the top of a phone screen. */
.page-hero { padding: 116px 24px 8px; }
.shop-section {
    border-top: none;
    padding: 24px 0 32px;
}
.shop-section .shop-section-header { margin-bottom: 16px; }
@media (min-width: 861px) {
    .page-hero { padding: 140px 24px 16px; }
    .shop-section { padding: 32px 0 48px; }
    .shop-section .shop-section-header { margin-bottom: 24px; }
}

/* Commission line: one line on wider screens (wraps only on phones) */
.shop-disclosure {
    max-width: none;
    margin-top: 24px;
    font-size: 12px;
}
@media (min-width: 861px) {
    .shop-disclosure { white-space: nowrap; }
}
.shop-disclosure { text-align: center; margin-left: auto; margin-right: auto; }

/* Copy bubble on cards: neutral, so the only gold on a tile is the
   "$200 off" savings and the Order button. Turns gold only when copied. */
.product-card .code-row .copy-code {
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.25);
    background: transparent;
}
.product-card .code-row .copy-code:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.5);
    background: transparent;
}
.product-card .code-row .copy-code.is-copied {
    color: #000;
    background: #D6B25E;
    border-color: #D6B25E;
}

/* ---------- Phones: let the next tile peek ----------
   Tall 4:5 photos made one tile fill the whole screen, so nothing hinted
   there was more below. Shorter 4:3 photos leave room for the next tile to
   show at the bottom of the screen, which is what makes people scroll.
   Photos are framed a little above center so faces stay in. */
@media (max-width: 700px) {
    .product-card img,
    .product-card img.is-photo,
    .product-card img.is-product,
    .product-card .card-carousel .carousel-slide {
        aspect-ratio: 4 / 3;
    }
    /* Each photo is framed so faces and pendants both stay in the crop */
    .product-card .carousel-slide.frame-girls { object-position: center 40%; }
    .product-card .carousel-slide.frame-guy { object-position: center 22%; }
    .product-card img.is-photo { object-position: center 30%; }
    .product-card .product-card-body { padding: 18px 20px 20px; }
    /* Heading starts just under the header (was 74px of empty space) */
    .page-hero { padding-top: 66px; }
    /* Close the gap between sections so the next tile shows sooner */
    .shop-section { padding: 8px 0 16px; }
    .shop-section .shop-section-header { margin-bottom: 12px; }
}

/* Two buttons on the necklace tile: gold Join Waitlist, outlined Learn More.
   Learn More sits above the card's stretched click area so it goes home. */
.card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pill-outline {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
    transition: border-color 0.2s, background 0.2s;
}
.pill-outline:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
}

/* Learn More matches Join Waitlist exactly (same height, padding, type);
   the 1px border is taken out of the padding. */
.pill-outline {
    padding: 2.5px 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
}

/* "Copied" feedback: a small notice pinned to the bottom of the screen,
   so it never covers the price or runs off the card on phones. */
.copy-code.is-copied::after { content: none; }
.copy-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 12px);
    z-index: 1000;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: #000;
    background: #D6B25E;
    border-radius: 9999px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.copy-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* No focus ring after a tap or click; keyboard users still get one */
.copy-code:focus:not(:focus-visible) { outline: none; }

/* Tiles side by side: text grows to fill the tile and the button sits at
   the bottom, so buttons line up across a row even when one tile has a
   line less (the Amazon tile). Spacing between the text lines is unchanged. */
.product-card .product-card-body { flex: 1; }
.product-card .product-card-body > .waitlist-pill:last-child,
.product-card .product-card-body > .card-actions:last-child { margin-top: auto; }

/* Necklace carousel on phones: back to the full 4:5 photos. 4:3 cut off
   heads and letterboxed the 4:5 close-up with mismatched beige bars. The
   partner tiles keep their shorter 4:3 photos. */
@media (max-width: 700px) {
    .product-card .card-carousel .carousel-slide,
    .product-card .card-carousel .carousel-slide.is-product {
        aspect-ratio: 4 / 5;
        object-position: center;
    }
}

/* Join Waitlist + Learn More: equal widths, filling the row */
.card-actions > .waitlist-pill,
.card-actions > .pill-outline {
    flex: 1;
    justify-content: center;
    text-align: center;
}

/* Space above "Posture products" matches the space below it (heading to
   the FROM LINEA label): 20px on phones, 52px on computers. */
.page-hero { padding-top: 90px; }
@media (max-width: 700px) {
    .page-hero { padding-top: 56px; }
}

/* Computers: 22px side padding in tile text (was 24) so the necklace line
   "Vibrates when you slouch. App tracks posture." fits on one line. */
@media (min-width: 701px) {
    .product-card .product-card-body { padding-left: 22px; padding-right: 22px; }
}

/* Phones: glasses photo framed so the whole book shows (glasses still in) */
@media (max-width: 700px) {
    /* Square, not 4:3: tall enough for the top of her head (a little space
       above) and the whole book */
    .product-card img.is-photo.frame-book {
        aspect-ratio: 1 / 1;
        object-position: center 55%;
    }
}

/* Copy bubble no taller than the text line it sits in, so the price row
   has the same spacing as the other lines in the tile */
.product-card .code-row { line-height: 22px; }
.product-card .code-row .copy-code {
    padding: 0 10px;
    font-size: 12px;
    line-height: 20px;
    vertical-align: 1px;
}

/* <picture> wrapper around a tile photo behaves like the photo itself */
.product-card picture { display: block; }

/* Carousel arrows: just a thin chevron, no circle. A soft shadow keeps it
   readable on light and dark photos; the tap area stays 44px tall. */
.carousel-btn,
.card-carousel .carousel-btn {
    width: 36px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: none;
    border: none;
    border-radius: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}
.carousel-btn:hover { background: none; opacity: 0.8; }
.carousel-btn svg { display: block; }
.carousel-btn.prev { left: 6px; }
.carousel-btn.next { right: 6px; }

/* Computers: partner tile photos are square, trimming the extra white above
   and below the Standout and the headboard/bed edge in the glasses photo.
   Both crops keep the whole product and the whole book. */
@media (min-width: 701px) {
    #partner-picks .product-card img,
    #partner-picks .product-card img.is-photo,
    #partner-picks .product-card img.is-product {
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: center;
    }
}

/* Copy bubble: text centered top-to-bottom (flex centering instead of
   line-height, which left more room above the text than below) */
.product-card .code-row .copy-code {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    line-height: 1;
    vertical-align: middle;
}

/* Phones: the disclosure breaks after "affiliate," so the second line is
   "I earn from qualifying purchases." */
@media (max-width: 600px) {
    .shop-disclosure .phone-line { display: block; }
}

/* Copy bubble: lift the text 1px. "Copy" hangs below the line (p, y), and
   iPhones render it lower than desktop, so true centring reads low. */
.product-card .code-row .copy-code {
    box-sizing: border-box;
    padding: 0 10px 2px;
}
