/* The shop page only — hero, category pills, the listing grid, the sell band
   and the trust cards. Shared pieces (tokens, buttons, nav, footer, section
   headings, filter pills) live alongside this file in assets/css/. */

/* ---------- HERO ---------- */
.hero {
    padding: 62px 0 30px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 54px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(40px, 5.4vw, 66px);
    font-weight: 700;
    margin: 22px 0 0;
}
.lead {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 430px;
    margin-top: 20px;
}
.hero-cta {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.stats {
    display: flex;
    gap: 30px;
    margin-top: 34px;
}
.stat .n {
    font-family: "Bricolage Grotesque";
    font-weight: 700;
    font-size: 26px;
}
.stat .l {
    font-size: 13px;
    color: var(--ink-soft);
}

/* hero collage */
.collage {
    position: relative;
    border-radius: var(--r-lg);
    background: linear-gradient(150deg, #f4f7ff, #fff7ec);
    border: 1px solid var(--line);
    padding: 30px;
    min-height: 420px;
}
.collage::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    opacity: 0.5;
    background-image: radial-gradient(
        circle,
        rgba(27, 34, 64, 0.07) 2.4px,
        transparent 2.6px
    );
    background-size: 26px 26px;
}
.float {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: 13px;
    width: 185px;
    transition: transform 0.3s;
}
.float:hover {
    transform: translateY(-6px) rotate(0deg) !important;
    z-index: 5;
}
.float .ph {
    height: 108px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 42px;
}
.float .ft {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.float .fn {
    font-weight: 600;
    font-size: 13.5px;
}
.float .fp {
    font-family: "DM Mono", monospace;
    font-size: 13.5px;
    font-weight: 500;
}
.f1 {
    top: 34px;
    left: 30px;
    transform: rotate(-5deg);
}
.f2 {
    top: 118px;
    right: 26px;
    transform: rotate(4deg);
    z-index: 3;
}
.f3 {
    bottom: 30px;
    left: 64px;
    transform: rotate(3deg);
    z-index: 2;
}
.price-tag {
    position: absolute;
    top: -12px;
    right: -10px;
    background: var(--ink);
    color: #fff;
    font-family: "DM Mono", monospace;
    font-size: 12px;
    padding: 4px 9px;
    border-radius: 7px;
    transform: rotate(6deg);
}
.price-tag::before {
    content: "";
    position: absolute;
    left: 8px;
    top: -4px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid var(--ink);
}

/* ---------- CATEGORY PILLS ---------- */
.cats {
    padding: 14px 0 8px;
}
.cat-row {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.cat-row::-webkit-scrollbar {
    display: none;
}
.cat {
    flex: none;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 600;
    font-size: 14.5px;
    transition:
        border-color 0.15s,
        transform 0.15s;
    white-space: nowrap;
}
.cat:hover {
    transform: translateY(-2px);
    border-color: var(--ink);
}
.cat .e {
    font-size: 19px;
    line-height: 1;
}

/* ---------- LISTINGS ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}
.card .media {
    position: relative;
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;
    font-size: 64px;
}
.cond {
    position: absolute;
    top: 11px;
    left: 11px;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 6px;
}
.cond .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.cond.mint .dot {
    background: var(--teal);
}
.cond.gently .dot {
    background: var(--blue);
}
.cond.loved .dot {
    background: var(--coral);
}
.save {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    transition:
        color 0.15s,
        transform 0.15s;
}
.save:hover {
    transform: scale(1.12);
}
.save.on {
    color: var(--coral);
}
.save.on svg {
    fill: var(--coral);
}
.card .body {
    padding: 14px 15px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.card .cardtag {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.card .title {
    font-weight: 600;
    font-size: 15.5px;
    line-height: 1.25;
}
.card .foot {
    margin-top: auto;
    padding-top: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.price {
    font-family: "DM Mono", monospace;
    font-weight: 500;
    font-size: 18px;
}
.seller {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--ink-soft);
}
.seller .av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

/* ---------- SELL BAND ---------- */
.sell {
    margin: 70px 0;
    border-radius: 28px;
    background: var(--ink);
    color: #fff;
    padding: 54px 48px;
    position: relative;
    overflow: hidden;
}
.sell::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.5) 2.4px,
        transparent 2.6px
    );
    background-size: 30px 30px;
}
.sell-inner {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
}
.sell h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
}
.sell .pre {
    font-family: "DM Mono", monospace;
    font-size: 12.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--yellow);
}
.sell p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    margin: 16px 0 26px;
    max-width: 380px;
}
.btn-yellow {
    background: var(--yellow);
    color: var(--ink);
    font-weight: 700;
    font-size: 16px;
    padding: 15px 26px;
    border-radius: 14px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    transition: transform 0.15s;
}
.btn-yellow:hover {
    transform: translateY(-2px);
}
.steps {
    display: grid;
    gap: 14px;
}
.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-md);
    padding: 18px 20px;
}
.step .num {
    font-family: "Bricolage Grotesque";
    font-weight: 700;
    font-size: 20px;
    color: var(--yellow);
    flex: none;
    width: 30px;
}
.step h4 {
    font-size: 16.5px;
    font-weight: 600;
    margin-bottom: 3px;
}
.step p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.66);
    max-width: none;
}

/* ---------- TRUST ---------- */
.trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 30px;
}
.tcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 26px;
}
.tcard .ic {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 23px;
    margin-bottom: 15px;
}
.tcard h4 {
    font-size: 17.5px;
    font-weight: 700;
    margin-bottom: 7px;
}
.tcard p {
    font-size: 14.5px;
    color: var(--ink-soft);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .collage {
        min-height: 360px;
    }
    .sell-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 680px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .trust {
        grid-template-columns: 1fr;
    }
    .stats {
        gap: 20px;
    }
    .sell {
        padding: 38px 26px;
    }
    .card .media {
        font-size: 50px;
    }
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.reveal.d1 {
    animation-delay: 0.06s;
}
.reveal.d2 {
    animation-delay: 0.12s;
}
.reveal.d3 {
    animation-delay: 0.18s;
}
@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
