/* ============================================================
   Shop hero (search, product types, stats, most-viewed spotlight)
   ------------------------------------------------------------
   Markup:    resources/views/frontend/shop.blade.php (section.shp-hero)
   Behaviour: public/frontend/js/shop-hero.js
   Mobile-first. Lists are spaced with padding (the site resets list margins).
   ============================================================ */

.shp-hero {
    --sh-ink: #0f172a;
    --sh-teal: #0f766e;
    --sh-teal-2: #14b8a6;
    --sh-amber: #f59e0b;
    --sh-line: rgba(255, 255, 255, .14);
    position: relative;
    overflow: hidden;
    padding: 40px 0 36px;
    color: #fff;
    /* background: global .w3-hero-bg (public/frontend/css/hero-background.css) */
}
.shp-hero *, .shp-hero *::before, .shp-hero *::after { box-sizing: border-box; }
.shp-hero .container { position: relative; }
.shp-hero a { text-decoration: none; }
.shp-hero :focus-visible { outline: 3px solid rgba(34, 211, 238, .6); outline-offset: 2px; border-radius: 8px; }
.shp-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.shp-hero__grid { display: grid; gap: 28px; align-items: center; }
.shp-hero__copy { min-width: 0; }

.shp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--sh-line); border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 700; color: #dbeafe; }
.shp-badge i { color: var(--sh-amber); }
.shp-hero h1 { margin: 14px 0 10px; font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3.1rem); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.shp-lead { max-width: 620px; margin: 0 0 20px; font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, .82); }

/* ── Search ── */
.shp-search { display: grid; gap: 8px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 24px 50px rgba(2, 6, 23, .3); }
.shp-search__field { position: relative; display: flex; align-items: center; min-width: 0; }
.shp-search__field > i { position: absolute; left: 14px; font-size: 15px; color: #94a3b8; pointer-events: none; }
.shp-search input[type="search"] {
    width: 100%;
    min-height: 48px;
    padding: 0 44px 0 42px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background: #f5f8fb;
    font: inherit;
    font-size: 15px;
    color: var(--sh-ink);
    -webkit-appearance: none;
    appearance: none;
}
.shp-search input[type="search"]::placeholder { color: #94a3b8; }
.shp-search input[type="search"]:focus { outline: 0; border-color: #2563eb; background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.shp-search kbd { position: absolute; right: 12px; padding: 1px 7px; border: 1px solid #dbe3ef; border-radius: 6px; background: #fff; font-family: inherit; font-size: 12px; font-weight: 700; color: #64748b; box-shadow: none; }
.shp-search__selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.shp-search select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 36px 0 12px;
    border: 1.5px solid #e6ebf3;
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px;
    font: inherit;
    font-size: 14px;
    color: var(--sh-ink);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.shp-search select:focus { outline: 0; border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.shp-search__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #ea580c); font: inherit; font-size: 15px; font-weight: 800; color: #fff; cursor: pointer; transition: filter .2s, transform .2s; }
.shp-search__btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* ── Type chips ── */
.shp-types { display: flex; gap: 8px; overflow-x: auto; margin: 0; padding: 14px 0 2px; scrollbar-width: none; }
.shp-types::-webkit-scrollbar { display: none; }
.shp-type { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--sh-line); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13.5px; font-weight: 700; color: #fff !important; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.shp-type span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; text-align: center; }
.shp-type:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); }
.shp-type.is-active { border-color: #fde68a; background: #fde68a; color: #422006 !important; }
.shp-type.is-active span { background: rgba(66, 32, 6, .12); }

/* ── Stats ── */
.shp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 20px 0 0; list-style: none; }
.shp-stats li { min-width: 0; padding: 12px 14px; border: 1px solid var(--sh-line); border-radius: 14px; background: rgba(255, 255, 255, .05); }
.shp-stats b { display: flex; align-items: center; gap: 6px; font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); font-weight: 900; line-height: 1.15; color: #fff; }
.shp-stats b i { font-size: .8em; color: var(--sh-amber); }
.shp-stats span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .72); }

/* ── Spotlight ── */
.shp-spot { position: relative; min-width: 0; overflow: hidden; border-radius: 22px; background: #fff; color: #475569; box-shadow: 0 30px 60px rgba(2, 6, 23, .35); }
.shp-spot__label { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(15, 23, 42, .78); font-size: 12px; font-weight: 800; color: #fff; backdrop-filter: blur(6px); }
.shp-spot__label i { color: #fb923c; }
.shp-spot__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e2e8f0; }
.shp-spot__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shp-spot__media:hover img { transform: scale(1.04); }
.shp-spot__body { padding: 18px 18px 20px; }
.shp-spot__type { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-teal); }
.shp-spot__title { margin: 6px 0 10px; font-size: 18px; font-weight: 800; line-height: 1.35; }
.shp-spot__title a { color: var(--sh-ink); }
.shp-spot__title a:hover { color: var(--sh-teal); }
.shp-spot__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 14px; font-size: 13px; }
.shp-spot__meta i { margin-right: 4px; }
.shp-spot__meta .fa-star { color: var(--sh-amber); }
.shp-spot__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed #e6ebf3; }
.shp-spot__price b { font-size: 22px; font-weight: 900; color: var(--sh-ink); }
.shp-spot__price del { margin-right: 6px; font-size: 14px; color: #94a3b8; }
.shp-spot__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 800; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.shp-btn--primary { background: var(--sh-teal); color: #fff !important; }
.shp-btn--primary:hover { background: #115e59; }
.shp-btn--ghost { border: 1.5px solid #d6dfeb; color: var(--sh-ink) !important; }
.shp-btn--ghost:hover { border-color: var(--sh-teal); color: var(--sh-teal) !important; }

.shp-hero__trust { padding-top: 26px; }

/* ── ≥576px ── */
@media (min-width: 576px) {
    .shp-search { grid-template-columns: minmax(0, 1fr) auto; }
    .shp-search__field { grid-column: 1 / -1; }
    .shp-search__selects { grid-column: 1; }
    .shp-search__btn { grid-column: 2; }
}

/* ── ≥768px ── */
@media (min-width: 768px) {
    .shp-hero { padding: 56px 0 44px; }
    .shp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .shp-search { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto; align-items: center; }
    .shp-search__field,
    .shp-search__selects,
    .shp-search__btn { grid-column: auto; }
}

/* ── ≥992px ── */
@media (min-width: 992px) {
    .shp-hero { padding: 64px 0 48px; }
    .shp-hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 44px; }
    .shp-search__btn span { display: none; }
    .shp-search__btn { width: 52px; padding: 0; }
}

/* ── ≥1200px ── */
@media (min-width: 1200px) {
    .shp-search__btn span { display: inline; }
    .shp-search__btn { width: auto; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .shp-hero *, .shp-hero *::before, .shp-hero *::after { transition: none !important; }
}
