






@keyframes fill {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ------- Section headers ------- */
.section {
    padding: 64px 0 8px;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.section-head .title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.section-head .count {
    font-family: 'JetBrains Mono';
    font-size: .78rem;
    color: var(--muted);
    margin-left: 10px;
    font-weight: 500;
}
.section-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.section-actions .pager {
    display: inline-flex;
    gap: 6px;
}
.pager-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3);
    transition: all .2s;
}
.pager-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}

/* ------- Listing card ------- */
.listing {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    height: 100%;
    position: relative;
}
.listing:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
    border-color: var(--ink-3);
}
.listing-img {
    aspect-ratio: 4/5;
    background: var(--bg-2);
    overflow: hidden;
    position: relative;
}
.listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.listing:hover .listing-img img {
    transform: scale(1.04);
}
.listing-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .95);
    color: var(--ink);
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: -.01em;
    backdrop-filter: blur(6px);
}
.chip-ink {
    background: var(--ink);
    color: #fff;
}
.chip-accent {
    background: var(--accent);
    color: #fff;
}
.chip-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4a4a;
    box-shadow: 0 0 0 3px rgba(255, 74, 74, .25);
    animation: pulse 2s infinite;
}
.listing-fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3);
    font-size: .95rem;
    cursor: pointer;
    transition: all .2s;
}
.listing-fav:hover {
    color: #e01b3b;
    transform: scale(1.08);
}
.listing-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.seller-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 8px;
}
.seller-row .seller-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-2);
    color: var(--ink-2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.seller-row .seller-tag i {
    color: var(--success);
    font-size: .8rem;
}
.seller-row .rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--warn);
    font-weight: 600;
}
.listing-title {
    font-family: 'Fraunces';
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.listing-meta {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listing-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto;
    padding-top: 14px;
}
.listing-price {
    font-family: 'Fraunces';
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.listing-price .ccy {
    font-family: 'JetBrains Mono';
    font-size: .72rem;
    font-weight: 500;
    color: var(--muted);
    margin-left: 3px;
}
.listing-timer {
    font-family: 'JetBrains Mono';
    font-size: .75rem;
    color: var(--accent-ink);
    font-weight: 600;
}
.listing-foot {
    display: flex;
    gap: 6px;
    padding: 0 16px 16px;
}
.listing-foot .btn {
    flex: 1;
    font-size: .82rem;
    padding: .5rem .8rem;
}

/* ------- Scroller (horizontal drag) ------- */
.scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 20px) / 5);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.scroller > * {
    scroll-snap-align: start;
    min-width: 0;
}
.scroller::-webkit-scrollbar {
    height: 6px;
}
.scroller::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 999px;
}
@media (max-width: 1199px) {
    .scroller {
        grid-auto-columns: calc((100% - 3 * 20px) / 4);
    }
}
@media (max-width: 991px) {
    .scroller {
        grid-auto-columns: calc((100% - 2 * 20px) / 3);
    }
}
@media (max-width: 767px) {
    .scroller {
        grid-auto-columns: calc((100% - 20px) / 2);
    }
}
@media (max-width: 479px) {
    .scroller {
        grid-auto-columns: 80%;
    }
}

/* ------- Event card ------- */
.event-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    min-height: 320px;
    transition: box-shadow .3s, border-color .3s;
    position: relative;
}
.event-card:hover {
    box-shadow: var(--shadow-2);
    border-color: var(--ink-3);
}
.event-card .event-img {
    position: relative;
    background: #d7dbe8;
    overflow: hidden;
}
.event-card .event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-card .event-body {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.status-pill {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono';
    font-size: .72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg-2);
    color: var(--ink-3);
}
.status-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warn);
}
.status-pill.live::before {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
    animation: pulse 2s infinite;
}
.event-body .event-title {
    font-family: 'Fraunces';
    font-weight: 500;
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 8px 0 14px;
    max-width: 500px;
}
.event-stats {
    display: flex;
    gap: 30px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    margin-top: auto;
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat .k {
    font-family: 'JetBrains Mono';
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
}
.stat .v {
    font-family: 'Fraunces';
    font-size: 1.15rem;
    font-weight: 500;
}
.event-foot {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}



/* ------- List auction (ending soon / popular) ------- */
.tabbar {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 5px;
    border-radius: 999px;
    width: fit-content;
}
.tabbar .tab {
    padding: .5rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 999px;
    color: var(--muted);
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}
.tabbar .tab.active {
    background: var(--ink);
    color: #fff;
}
.tabbar .tab:hover:not(.active) {
    color: var(--ink);
}
.tabbar .tab .n {
    font-family: 'JetBrains Mono';
    font-size: .72rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .1);
    color: inherit;
}
.tabbar .tab.active .n {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.row-lot {
    display: grid;
    grid-template-columns: 110px 1fr 170px 160px 130px;
    gap: 22px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}
.row-lot + .row-lot {
    margin-top: 10px;
}
.row-lot:hover {
    border-color: var(--ink-3);
    box-shadow: var(--shadow-1);
}
.row-lot .thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    overflow: hidden;
}
.row-lot .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.row-lot .info .title {
    font-family: 'Fraunces';
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: -.015em;
}
.row-lot .info .desc {
    color: var(--muted);
    font-size: .85rem;
    margin-top: 4px;
}
.row-lot .bid-stats {
    display: flex;
    flex-direction: column;
    font-size: .85rem;
    color: var(--muted);
}
.row-lot .bid-stats .curr {
    font-family: 'Fraunces';
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -.02em;
}
.row-lot .bid-stats .ccy {
    font-family: 'JetBrains Mono';
    font-size: .68rem;
    color: var(--muted);
}
.row-lot .timer {
    font-family: 'JetBrains Mono';
    background: var(--bg-2);
    border: 1px dashed var(--line);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    text-align: center;
}
.row-lot .timer .t-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
}
.row-lot .timer .t-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 3px;
}
.row-lot .timer.ending .t-value {
    color: #d33c3c;
}
.row-lot .actions .btn {
    width: 100%;
}

@media (max-width: 991px) {
    .row-lot {
        grid-template-columns: 90px 1fr 130px;
    }

    .row-lot .timer, .row-lot .actions {
        grid-column: span 3;
    }

    .row-lot .actions {
        grid-column: 1 / -1;
    }
}

/* ------- Jumbotron + Stores ------- */
.jumbo {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    position: relative;
    overflow: hidden;
}
.jumbo::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 45, 255, .12), transparent 60%);
}
.jumbo .emblem {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.jumbo h2 {
    font-weight: 400;
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    max-width: 520px;
}
.jumbo h2 em {
    font-style: italic;
    color: var(--accent-ink);
}
.jumbo p {
    color: var(--ink-3);
    max-width: 520px;
    margin: 14px 0 26px;
}

.store-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.store-card:hover {
    border-color: var(--ink-3);
    box-shadow: var(--shadow-2);
    transform: translateY(-3px);
}
.store-img {
    aspect-ratio: 16/10;
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}
.store-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.store-body .name {
    font-family: 'Fraunces';
    font-weight: 500;
    font-size: 1.15rem;
    letter-spacing: -.02em;
}
.store-body .loc {
    color: var(--muted);
    font-size: .82rem;
}
.store-body .stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px dashed var(--line);
    font-size: .78rem;
    color: var(--ink-3);
}
.store-body .stats .num {
    font-family: 'JetBrains Mono';
    font-weight: 600;
    color: var(--ink);
}

/* ------- Categories strip ------- */
.cat-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    transition: border-color .2s, transform .2s;
    height: 100%;
}
.cat-pill:hover {
    border-color: var(--line-hover);
    transform: translateY(-2px);
}
.cat-pill .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.cat-pill:hover .icon {
    background: var(--ink);
    color: #fff;
}
.cat-pill .label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink);
}
.cat-pill .count {
    font-family: 'JetBrains Mono';
    font-size: .72rem;
    color: var(--muted);
}



/* ------- Responsive ------- */
@media (max-width: 991px) {
    .hero {
        min-height: 480px;
    }

    .hero-inner {
        padding: 32px 28px;
    }

    .hero-lot-card {
        position: static;
        width: 100%;
        margin-top: 20px;
    }

    .hero-pager {
        left: 28px;
        bottom: 28px;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-card .event-img {
        aspect-ratio: 16/9;
    }

    .event-body {
        padding: 28px;
    }

    .search-wrap {
        max-width: 100%;
        order: 3;
        flex: 1 1 100%;
    }

    .jumbo {
        padding: 40px 28px;
    }
}
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .section {
        padding: 48px 0 0;
    }

    .section-head {
        margin-bottom: 18px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-inner {
        padding: 24px;
    }
}

/* Tiny details: scrollbar */
::selection {
    background: var(--ink);
    color: #fff;
}