:root {
    color-scheme: light;
    --bg: #f8f4f0;
    --dark: #171717;
    --muted: #5f5d60;
    --border: rgba(0, 0, 0, 0.1);
    --accent: #ff3b2f;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--dark);
    font-size: 16px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 244, 240, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr minmax(260px, 380px) auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    display: inline-flex;
    font-size: 1.45rem;
    transform: rotate(-6deg);
}

.logo-text {
    text-transform: none;
}

.main-nav {
    display: flex;
    gap: 1rem;
    font-weight: 500;
}

.search-form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
}

.search-form button {
    border: none;
    background: var(--dark);
    color: #fff;
    padding: 0.65rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
}

.search-form.compact {
    max-width: 480px;
    margin-bottom: 1.5rem;
}

.header-cta {
    display: flex;
    gap: 0.5rem;
}

.primary-btn,
.ghost-btn {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    border: 1px solid var(--dark);
    background: transparent;
    cursor: pointer;
}

.primary-btn {
    background: var(--dark);
    color: #fff;
}

.ghost-btn {
    background: transparent;
    color: var(--dark);
}

.category-tags {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.8rem;
    overflow-x: auto;
}

.tag-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    background: #fff;
}

.tag-pill:hover {
    border-color: var(--dark);
}

.pill {
    display: inline-flex;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent, var(--dark));
}

.section {
    padding: 3rem 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 0.4rem;
}

h1, h2, h3 {
    margin: 0;
    line-height: 1.2;
}

.secondary-link {
    color: var(--muted);
    font-weight: 600;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 2rem;
    padding: 3rem 0 1rem;
    align-items: flex-start;
}


.hero-card {
    background: #fff;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 25px 65px rgba(15, 15, 15, 0.12);
}

.hero-card img {
    width: 100%;
    border-radius: 20px;
    height: 360px;
    object-fit: cover;
}

.hero-card-info {
    padding: 1rem 0.5rem;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin: 1.2rem 0;
}

.hero-metrics {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 1.5rem 0 0;
}

.hero-metrics span {
    font-size: 1.5rem;
    font-weight: 600;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.cards-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.listing-card {
    background: #fff;
    border-radius: 24px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid transparent;
    transition: border 0.15s ease, transform 0.15s ease;
}

.listing-card:hover {
    border: 1px solid var(--dark);
    transform: translateY(-3px);
}

.listing-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.listing-card.compact img {
    height: 220px;
}

.listing-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.muted {
    color: var(--muted);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
}

.seller-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--muted);
}

.rating {
    font-weight: 600;
}

.collection-card {
    background: #fff;
    border-radius: 24px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--border);
}

.collection-card img {
    height: 250px;
    object-fit: cover;
}

.collection-card .pill {
    background: var(--accent);
}

.collection-avatars {
    display: flex;
    gap: 0.6rem;
    margin: 0.8rem 0;
}

.collection-avatars img {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.seller-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
}

.seller-card .avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    background: #ffe4e1;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.detail {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.8rem;
}

.detail-media img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.detail-body {
    background: #fff;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.detail-description {
    margin: 1rem 0;
}

.detail-meta {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.detail-meta li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

.detail-meta span {
    color: var(--muted);
}

.detail-actions {
    display: flex;
    gap: 1rem;
}

.collection-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0 3rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tiny-note {
    font-size: 0.7rem;
    color: var(--muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .header-grid {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .search-form,
    .header-cta {
        grid-column: span 2;
    }
    .hero,
    .detail,
    .collection-hero {
        grid-template-columns: 1fr;
    }
}
