/**
 * File: assets/css/frontend/home/selling-home.css
 * Purpose: Homepage Template 1 — the selling-platform homepage from
 *          the approved mockup (1.0.247). Grey palette matched to
 *          hyperdaf.com (#F7F8FA / #FAFAFA / #F2F4F7 surfaces, grey
 *          text #111827 / #344054 / #667085, borders #D0D5DD, brand
 *          green #4F7A20 as the single accent). Flat design: no blur,
 *          no shadow, no gradient — product and blog cards carry a
 *          shadow on HOVER only.
 * Scope: Selling homepage only (.hdf-selling-home); Template 2 keeps
 *        homepage-244.css. The theme self-hosts Inter only, so the
 *        mockup's Manrope / Bricolage Grotesque are replaced by the
 *        theme's own sans stack.
 * Related PHP: src/Frontend/Home/SellingHomeRenderer.php
 * Related JS: assets/js/frontend/home/selling-home.js
 * Package: HyperDAF Pro
 */

.hdf-selling-home {
    background: #f2f4f7;
    color: #111827;
    /* 1.0.249: the homepage can never move left/right — any section
       that would overflow is contained here (clip keeps no scroll
       container; hidden is the fallback for older browsers). */
    overflow-x: hidden;
    overflow-x: clip;
}

.hdf-selling-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hdf-selling-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    border-radius: 11px;
    border: 1px solid transparent;
    padding: 10px 18px;
    text-decoration: none;
    min-height: 42px;
    white-space: nowrap;
}

.hdf-selling-btn--brand {
    background: #4f7a20;
    color: #ffffff;
}

.hdf-selling-btn--brand:hover {
    background: #466d1c;
}

.hdf-selling-btn--ghost {
    background: transparent;
    border-color: #d0d5dd;
    color: #111827;
}

.hdf-selling-btn--ghost:hover {
    border-color: #4f7a20;
    color: #4f7a20;
}

.hdf-selling-btn--small {
    padding: 9px 15px;
    font-size: 13.5px;
    min-height: 38px;
}

/* ---------- hero ---------- */
.hdf-selling-hero {
    background: #e9edf1;
    color: #111827;
    overflow: hidden;
}

.hdf-selling-hero-in {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px 48px;
    padding: 20px 0 28px;
    align-items: center;
}

.hdf-selling-hero-in > * {
    min-width: 0;
}

/* 1.0.254: the copy carries no alignment rule of its own — it centers
   via the grid's align-items: center. The search form now lives inside
   the copy (headline, subtext, search, popular), so the copy is nearly
   as tall as the visual and the 1.0.253 top-alignment rule is gone. */

.hdf-selling-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #c3cad4;
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475467;
}

.hdf-selling-eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4f7a20;
    display: inline-block;
}

.hdf-selling-hero h1 {
    font-size: clamp(30px, 3.1vw, 42px);
    line-height: 1.08;
    font-weight: 800;
    margin: 10px 0 8px;
    letter-spacing: -0.01em;
}

.hdf-selling-hl {
    color: #4f7a20;
}

.hdf-selling-lede {
    font-size: 16.5px;
    color: #475467;
    margin: 0 0 14px;
    max-width: 52ch;
}

.hdf-selling-hero-visual {
    position: relative;
    min-width: 0;
}

.hdf-selling-preview-name {
    position: absolute;
    top: 0;
    left: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #4f7a20;
    color: #ffffff;
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hdf-selling-preview-name i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-block;
}

.hdf-selling-preview-link {
    margin: 12px 0 0;
    font-size: 13.5px;
    font-weight: 700;
}

.hdf-selling-preview-link a {
    color: #4f7a20;
    text-decoration: none;
}

.hdf-selling-preview-link a:hover {
    text-decoration: underline;
}

/* browser frame around the real demo capture */
.hdf-selling-browser {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    color: #111827;
    border: 1px solid #d0d5dd;
}

.hdf-selling-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #eaecf0;
    padding: 10px 14px;
}

.hdf-selling-browser-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d0d5dd;
}

.hdf-selling-browser-url {
    flex: 1;
    margin-left: 8px;
    background: #ffffff;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #5b675e;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hdf-selling-browser-url svg {
    width: 11px;
    height: 11px;
    flex: none;
}

.hdf-selling-demo-shot {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

/* hero preview rotation (1.0.251): the four bundled product-type
   images stack in the same frame; only the active slide is visible
   and the rest overlay it, so the frame never changes height. */
.hdf-selling-preview-rotator {
    position: relative;
}

.hdf-selling-preview-shot {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hdf-selling-preview-shot.is-active {
    opacity: 1;
}

.hdf-selling-preview-shot:not(.is-active) {
    position: absolute;
    top: 0;
    left: 0;
}

/* 1.0.254: search + Popular stack inside the copy column (headline,
   subtext, search, popular — the real selling-platform pattern). The
   form is no longer a grid item, so the full-width span goes; the box
   is full-width and Popular sits below it. */
.hdf-selling-search-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    margin: 0;
}

.hdf-selling-search-box {
    display: flex;
    background: #ffffff;
    border-radius: 14px;
    padding: 5px;
    gap: 5px;
    border: 1px solid #d0d5dd;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
}

.hdf-selling-search-box select {
    border: 0;
    background: #eaecf0;
    color: #344054;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    padding: 0 10px;
    max-width: 138px;
    cursor: pointer;
}

.hdf-selling-search-box input {
    flex: 1;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 15px;
    color: #111827;
    min-width: 0;
    padding: 0 8px;
    background: transparent;
}

.hdf-selling-search-box .hdf-selling-btn {
    border-radius: 10px;
    min-height: 36px;
    padding: 6px 16px;
}

.hdf-selling-popular {
    margin: 0;
    font-size: 13.5px;
    color: #475467;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    white-space: normal;
    min-width: 0;
}

.hdf-selling-popular-label {
    flex: none;
    font-weight: 600;
}

.hdf-selling-popular a {
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: #111827;
    background: transparent;
    border: 1px solid #c3cad4;
    border-radius: 999px;
    padding: 6px 11px;
    cursor: pointer;
    flex: none;
    white-space: nowrap;
    text-decoration: none;
}

.hdf-selling-popular a:hover {
    border-color: #4f7a20;
    color: #4f7a20;
}

/* ---------- section scaffolding ---------- */
.hdf-selling-block {
    padding: 64px 0 8px;
}

.hdf-selling-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.hdf-selling-sec-head h2 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.hdf-selling-sec-head p {
    margin: 0;
    color: #667085;
    font-size: 15.5px;
    max-width: 56ch;
}

.hdf-selling-sec-link {
    font-weight: 700;
    font-size: 14.5px;
    color: #4f7a20;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 2px;
}

.hdf-selling-sec-link:hover {
    text-decoration: underline;
}

/* ---------- categories ---------- */
.hdf-selling-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.hdf-selling-cat-tile {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    padding: 20px 16px 16px;
    text-decoration: none;
    color: #111827;
}

.hdf-selling-cat-tile:hover {
    border-color: #4f7a20;
}

.hdf-selling-cat-ic {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
}

.hdf-selling-cat-ic svg {
    width: 23px;
    height: 23px;
}

.hdf-selling-cat-tile h3 {
    margin: 0 0 3px;
    font-size: 16.5px;
    font-weight: 700;
}

.hdf-selling-cat-tile p {
    margin: 0;
    font-size: 13px;
    color: #667085;
    font-weight: 600;
}

/* ---------- spotlight ---------- */
.hdf-selling-spotlight {
    margin-top: 64px;
    background: #e9edf1;
    color: #111827;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.hdf-selling-spot-copy {
    padding: 44px 40px;
}

.hdf-selling-spot-tag {
    display: inline-block;
    background: #4f7a20;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}

.hdf-selling-spot-copy h2 {
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 800;
    margin: 18px 0 12px;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.hdf-selling-spot-copy p {
    color: #475467;
    margin: 0 0 20px;
    font-size: 16px;
}

.hdf-selling-spot-feats {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.hdf-selling-spot-feats li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 600;
    font-size: 15px;
}

.hdf-selling-spot-feats svg {
    flex: none;
    margin-top: 2px;
    color: #4f7a20;
    width: 20px;
    height: 20px;
}

.hdf-selling-spot-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 1.0.255: the decided starting price, stacked (caption above the
   price) so the button reads as a price, not a third text CTA. */
.hdf-selling-btn--price {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    padding: 6px 16px;
    line-height: 1.15;
    white-space: normal;
    background: #ffffff;
    border-color: #4f7a20;
    color: #4f7a20;
}

.hdf-selling-btn--price:hover {
    background: #eef4e3;
}

.hdf-selling-price-cap {
    font-size: 11px;
    font-weight: 600;
    color: #667085;
}

.hdf-selling-price-val {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hdf-selling-spot-visual {
    padding: 34px 34px 0 0;
    display: flex;
    align-items: flex-end;
}

/* 1.0.255: the spotlight visual is a plain promo image now (no
   browser frame — the graphic is not the demo homepage). */
.hdf-selling-spot-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* ---------- products grid ---------- */
.hdf-selling-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 22px;
}

.hdf-selling-chip {
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: #ffffff;
    color: #344054;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    padding: 9px 16px;
    min-height: 38px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.hdf-selling-chip:hover {
    border-color: #4f7a20;
    color: #4f7a20;
}

.hdf-selling-chip--active {
    background: #475467;
    color: #ffffff;
    border-color: #475467;
}

.hdf-selling-spacer {
    flex: 1;
}

.hdf-selling-sort-sel {
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 0 12px;
    cursor: pointer;
    min-height: 38px;
}

.hdf-selling-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.hdf-selling-card {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hdf-selling-card:hover {
    border-color: #4f7a20;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 8px 24px -12px rgba(17, 24, 39, 0.16);
}

.hdf-selling-thumb {
    position: relative;
    aspect-ratio: 16 / 9.4;
    overflow: hidden;
    background: #f7f8fa;
}

.hdf-selling-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hdf-selling-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
}

.hdf-selling-thumb-fallback svg {
    width: 48px;
    height: 48px;
}

.hdf-selling-badge-card {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #475467;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
}

.hdf-selling-card-body {
    padding: 17px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.hdf-selling-card-body h3 {
    margin: 0;
    font-size: 18.5px;
    font-weight: 700;
    line-height: 1.25;
}

.hdf-selling-card-body h3 a {
    text-decoration: none;
    color: #111827;
}

.hdf-selling-card-body h3 a:hover {
    color: #4f7a20;
}

.hdf-selling-card-body p {
    margin: 0;
    font-size: 14px;
    color: #667085;
    flex: 1;
}

.hdf-selling-meta {
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.hdf-selling-buy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #d0d5dd;
    padding-top: 14px;
    margin-top: 4px;
}

.hdf-selling-price {
    font-size: 24px;
    font-weight: 800;
}

.hdf-selling-buy-row .hdf-selling-btn {
    margin-left: auto;
}

.hdf-selling-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 52px 20px;
    color: #667085;
    background: #ffffff;
    border: 1px dashed #d0d5dd;
    border-radius: 16px;
    font-weight: 600;
}

.hdf-selling-empty-state p {
    margin: 0 0 8px;
}

.hdf-selling-result-note {
    font-size: 13.5px;
    color: #667085;
    font-weight: 600;
    margin: -8px 0 16px;
}

/* ---------- why / trust ---------- */
/* ---------- trust badges (1.0.251: standalone split component
   directly below the hero; the four items are the exact "Why buy
   from HyperDAF" items from 1.0.247-1.0.250) ---------- */
.hdf-selling-trust {
    background: #ffffff;
    border-top: 1px solid #d0d5dd;
    border-bottom: 1px solid #d0d5dd;
}

.hdf-selling-trust-in {
    padding: 56px 0;
}

.hdf-selling-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 30px;
}

.hdf-selling-trust-item .hdf-selling-cat-ic {
    margin-bottom: 12px;
}

.hdf-selling-trust-item h3 {
    margin: 0 0 6px;
    font-size: 17.5px;
    font-weight: 700;
}

.hdf-selling-trust-item p {
    margin: 0;
    font-size: 14.5px;
    color: #667085;
}

/* ---------- chrome extensions (1.0.255) ---------- */
.hdf-selling-ext-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.hdf-selling-ext-card {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hdf-selling-ext-card:hover {
    border-color: #4f7a20;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 8px 24px -12px rgba(17, 24, 39, 0.16);
}

.hdf-selling-ext-head {
    display: flex;
    gap: 14px;
    align-items: center;
}

.hdf-selling-ext-logo {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #eef4e3;
    color: #4f7a20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hdf-selling-ext-logo svg {
    width: 28px;
    height: 28px;
}

.hdf-selling-ext-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hdf-selling-ext-version {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #667085;
}

.hdf-selling-ext-desc {
    margin: 0;
    color: #475467;
    font-size: 15px;
    flex: 1;
}

.hdf-selling-ext-btn {
    align-self: flex-start;
    margin-top: 2px;
}

.hdf-selling-ext-btn svg {
    width: 20px;
    height: 20px;
}

/* ---------- articles ---------- */
.hdf-selling-art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.hdf-selling-art {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #111827;
    display: flex;
    flex-direction: column;
}

.hdf-selling-art:hover {
    border-color: #4f7a20;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 8px 24px -12px rgba(17, 24, 39, 0.16);
}

.hdf-selling-art-thumb {
    aspect-ratio: 16 / 8;
    background: #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    overflow: hidden;
}

.hdf-selling-art-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hdf-selling-art-thumb svg {
    width: 40px;
    height: 40px;
}

.hdf-selling-art-body {
    padding: 18px;
    display: block;
}

.hdf-selling-art-cat {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #667085;
}

.hdf-selling-art-body h3 {
    margin: 4px 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.hdf-selling-art-body p {
    margin: 0;
    font-size: 13.5px;
    color: #667085;
    font-weight: 600;
}

/* ---------- CTA ---------- */
.hdf-selling-cta {
    margin: 72px 0 76px;
    background: #eaecf0;
    color: #111827;
    border: 1px solid #d0d5dd;
    border-radius: 22px;
    padding: 52px 40px;
    text-align: center;
}

.hdf-selling-cta h2 {
    font-size: clamp(27px, 3.4vw, 38px);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.hdf-selling-cta p {
    margin: 0 auto 26px;
    max-width: 52ch;
    color: #667085;
    font-size: 16px;
}

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
    /* 1.0.249: 14px side gap on mobile. The hero rule below used to
       wipe the wrap's side padding with a zero side value, so the
       hero touched the left edge. */
    .hdf-selling-wrap {
        padding: 0 14px;
    }

    .hdf-selling-hero-in {
        grid-template-columns: 1fr;
        padding: 20px 14px 36px;
        gap: 18px;
    }

    .hdf-selling-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hdf-selling-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hdf-selling-spotlight {
        grid-template-columns: 1fr;
    }

    .hdf-selling-spot-visual {
        padding: 0 20px;
    }

    .hdf-selling-spot-copy {
        padding: 34px 24px 28px;
    }

    .hdf-selling-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hdf-selling-ext-grid {
        grid-template-columns: 1fr;
    }

    .hdf-selling-art-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 37.5rem) {
    .hdf-selling-search-box {
        flex-wrap: wrap;
    }

    .hdf-selling-search-box select {
        flex: 1;
        max-width: none;
        min-height: 44px;
    }

    .hdf-selling-search-box input {
        order: 3;
        flex: 1 1 100%;
        min-height: 46px;
        padding: 4px 8px 2px;
    }

    .hdf-selling-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hdf-selling-grid {
        grid-template-columns: 1fr;
    }

    .hdf-selling-trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdf-selling-card,
    .hdf-selling-art,
    .hdf-selling-cat-tile {
        transition: none;
    }

    .hdf-selling-preview-shot {
        transition: none;
    }
}
