/**
 * TUF Featured Products — "Staff Picks" editorial layout
 * Scoped under .tuf-fp. Requires uf-base.css for the brand fonts.
 *
 * ⚠ THIS REPLACES THE CAROUSEL. The slider markup, its JS, the
 * arrows, the dots and the --gap / --visible maths are all no
 * longer used — the section is a static grid now. See the markup
 * spec below for what the PHP template needs to output.
 *
 * ── REQUIRED MARKUP ──────────────────────────────────────────
 * <section class="tuf-fp prod-section">
 *   <div class="prod-section-header">
 *     <div class="section-header">
 *       <div class="eyebrow">Chosen by the team</div>
 *       <h2>Staff Picks</h2>
 *     </div>
 *   </div>
 *
 *   <div class="fp-grid">
 *
 *     <!-- TWO OF THESE: the large picks -->
 *     <a class="fp-pick" href="…">
 *       <span class="fp-shot"><img src="…" alt="…"></span>
 *       <span class="fp-brand">Koch Chemie</span>
 *       <span class="fp-name">Green Star Universal Cleaner 1L</span>
 *       <span class="fp-note"><b>Why this one:</b> dilutes 1:10 to 1:50…</span>
 *       <span class="fp-foot">
 *         <span class="fp-price">£11.50</span>
 *         <span class="fp-was">£13.95</span>      (optional)
 *         <span class="badge badge-green">In stock</span>
 *       </span>
 *     </a>
 *
 *     <!-- ONE OF THESE: the stacked column -->
 *     <div class="fp-stack">
 *       <div class="fp-stack__label">Also moving this week</div>
 *       <a class="fp-row" href="…">            (repeat x4)
 *         <span class="fp-shot"><img src="…" alt="…"></span>
 *         <span>
 *           <span class="fp-brand">Autoglym</span>
 *           <span class="fp-name">Super Resin Polish 500ml</span>
 *           <span class="fp-price">£14.95</span>
 *         </span>
 *       </a>
 *       <a class="btn-browse" href="/best-sellers">View All Best Sellers</a>
 *     </div>
 *
 *   </div>
 * </section>
 * ─────────────────────────────────────────────────────────────
 *
 * The staff note is a per-product field — an ACF text field or a
 * product meta box on the two picks. One sentence each.
 */

.tuf-fp {
    /* legacy tokens kept so any inline/PHP styles still resolve */
    --red: #DC0000;
    --dark: #1d1d1f;
    --mid: #6e6e73;
    --light-bg: #F4F4F2;
    --border: #e4e4e1;
    --white: #ffffff;
    --star: #D4A500;

    /* uf-clean design system */
    --bg: #F4F4F2;
    --card: #ffffff;
    --ink: #1d1d1f;
    --deep: #022f40;
    --grey: #6e6e73;
    --line: #e4e4e1;
    --radius: 18px;
    --radius-lg: 24px;
    --shadow-sm: 0 10px 26px -12px rgba(18, 18, 28, .16), 0 3px 8px -5px rgba(18, 18, 28, .08);

    --uf-max: 1540px;
    --display: 'Ultimate Finish', 'Arial Narrow', sans-serif;
    --body: 'Futura Std', -apple-system, BlinkMacSystemFont, 'Century Gothic', 'Segoe UI', sans-serif;
}

.tuf-fp * { box-sizing: border-box; }

.tuf-fp.prod-section {
    background: var(--deep);
    color: #fff;
    padding-block: 20px 28px;
    padding-inline: max(clamp(14px, 4vw, 40px), calc((100% - var(--uf-max)) / 2));
    font-family: var(--body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── HEADER ───────────────────────────────────── */
.tuf-fp .prod-section-header { margin-bottom: 28px; }

.tuf-fp .eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 14px;
}

.tuf-fp .eyebrow::before {
    content: "";
    width: 6px;
    height: 18px;
    flex: 0 0 auto;
    background: var(--red);
    transform: skewX(-20deg);
}

.tuf-fp .section-header h2 {
    font-family: var(--display);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: .005em;
    line-height: 1.04;
}

.tuf-fp .section-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.7;
    margin: 14px 0 0;
    max-width: 62ch;
}

/* ── GRID ─────────────────────────────────────── */
.tuf-fp .fp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 340px;
    gap: clamp(22px, 2.6vw, 38px);
    /* stretch so the two picks share a baseline no matter how long
       their staff notes run, and the stack's rule runs full height */
    align-items: stretch;
}

/* Fewer products than the layout expects */
.tuf-fp .fp-grid--no-stack { grid-template-columns: 1fr 1fr; }
.tuf-fp .fp-grid--single   { grid-template-columns: minmax(0, 620px) 340px; }
.tuf-fp .fp-grid--single.fp-grid--no-stack { grid-template-columns: minmax(0, 620px); }

/* ── THE TWO PICKS ────────────────────────────── */
.tuf-fp .fp-pick {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* Pack shots are photographed on white, so each one keeps a white
   tile. Without it every bottle sits in a glaring white rectangle. */
.tuf-fp .fp-shot {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.tuf-fp .fp-shot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    display: block;
    transition: transform .45s ease;
}

.tuf-fp .fp-pick:hover .fp-shot img { transform: scale(1.04); }

.tuf-fp .fp-pick:focus-visible,
.tuf-fp .fp-row:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
    border-radius: 6px;
}

.tuf-fp .fp-brand {
    display: block;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.tuf-fp .fp-pick .fp-brand { margin-top: 16px; }

.tuf-fp .fp-name {
    display: block;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    transition: color .2s ease;
}

.tuf-fp .fp-pick .fp-name { font-size: 1.1rem; margin-top: 6px; }
.tuf-fp .fp-pick:hover .fp-name { color: #fff; text-decoration: underline; }

/* No rule, no box — colour and space carry it */
.tuf-fp .fp-note {
    display: block;
    font-size: .88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .6);
    margin-top: 11px;
    max-width: 44ch;
}

.tuf-fp .fp-note b { font-weight: 700; color: #fff; }

.tuf-fp .fp-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    /* pinned to the bottom of the pick, so prices line up across both */
    margin-top: auto;
    padding-top: 16px;
}

.tuf-fp .fp-price {
    display: block;
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.tuf-fp .fp-was {
    display: block;
    font-size: .8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, .45);
    text-decoration: line-through;
}

.tuf-fp .fp-price .woocommerce-Price-amount { font-weight: 700; }
.tuf-fp .fp-was .woocommerce-Price-amount { font-weight: 400; }

/* Star rating — only rendered when the product has reviews */
.tuf-fp .fp-stars {
    display: block;
    color: var(--star);
    font-size: .82rem;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-top: 8px;
}

.tuf-fp .fp-row .fp-stars { font-size: .72rem; margin-top: 3px; }

/* ── BADGES ───────────────────────────────────── */
.tuf-fp .badge {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    white-space: nowrap;
    line-height: 1.4;
    margin-left: auto;
}

.tuf-fp .badge-green { background: rgba(46, 204, 143, .16); color: #5fd9a6; }
.tuf-fp .badge-red   { background: var(--red); color: #fff; }
.tuf-fp .badge-grey  { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }

/* ── THE STACKED COLUMN ───────────────────────── */
.tuf-fp .fp-stack {
    border-left: 1px solid rgba(255, 255, 255, .14);
    padding-left: clamp(18px, 2vw, 28px);
}

.tuf-fp .fp-stack__label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 6px;
}

.tuf-fp .fp-stack__rows { display: block; }

.tuf-fp .fp-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    text-decoration: none;
    color: inherit;
}

.tuf-fp .fp-row:last-of-type { border-bottom: 0; }

.tuf-fp .fp-row .fp-shot { aspect-ratio: 1; border-radius: 8px; }
.tuf-fp .fp-row .fp-shot img { padding: 6px; }
.tuf-fp .fp-row .fp-name { font-size: .9rem; margin-top: 3px; }
.tuf-fp .fp-row .fp-price { font-size: .86rem; margin-top: 4px; }
.tuf-fp .fp-row:hover .fp-name { text-decoration: underline; }

/* ── VIEW ALL BEST SELLERS ────────────────────── */
.tuf-fp .btn-browse {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 22px;
    padding: 15px 22px;
    border-radius: 100px;
    background: var(--red);
    color: #fff;
    font-family: var(--body);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .2s ease, transform .2s ease;
}

.tuf-fp .btn-browse:hover,
.tuf-fp .btn-browse:focus {
    background: #b50000;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.tuf-fp .btn-browse:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ── EDITOR NOTICE ────────────────────────────── */
.tuf-fp-notice {
    padding: 14px 18px;
    background: #FAEEDA;
    border-left: 3px solid #EF9F27;
    border-radius: 0 10px 10px 0;
    color: #854F0B;
    font-family: 'Futura Std', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

/* ── TABLET (1100px and below) ────────────────── */
/* Stack column drops under the two picks rather than squeezing */
@media (max-width: 1100px) {
    .tuf-fp .fp-grid { grid-template-columns: 1fr 1fr; }
    .tuf-fp .fp-stack {
        grid-column: 1 / -1;
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .14);
        padding-top: 18px;
    }
    .tuf-fp .fp-stack__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
    .tuf-fp .btn-browse { max-width: 380px; margin-inline: auto; }
}

/* ── MOBILE (760px and below) ─────────────────── */
/* Picks go full width and get bigger than a carousel ever allowed */
@media (max-width: 760px) {
    .tuf-fp .fp-grid { grid-template-columns: 1fr; gap: 26px; }
    .tuf-fp .fp-stack__rows { grid-template-columns: 1fr; }
    .tuf-fp .fp-shot { aspect-ratio: 16 / 10; }
    .tuf-fp .fp-row .fp-shot { aspect-ratio: 1; }
}

@media (max-width: 480px) {
    .tuf-fp.prod-section {
        padding-block: 16px 24px;
        padding-inline: clamp(12px, 3.5vw, 16px);
    }
    .tuf-fp .section-header h2 { font-size: 1.75rem; }
    .tuf-fp .fp-row { grid-template-columns: 56px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .tuf-fp .fp-shot img,
    .tuf-fp .btn-browse { transition: none; }
    .tuf-fp .fp-pick:hover .fp-shot img { transform: none; }
    .tuf-fp .btn-browse:hover { transform: none; }
}
