:root {
    --surface-0: #0f1217;
    --surface-1: #151b24;
    --surface-2: #202936;
    --text-1: #f4f7fb;
    --text-2: #c7d0dc;
    --text-3: #8f9bad;
    --accent-1: #ff3d7f;
    --accent-2: #2fd0ff;
    --accent-3: #7bffb8;
    --border: #2c3748;
    --shadow: 0 24px 60px rgba(5, 8, 14, 0.35);
    color-scheme: dark;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(900px 520px at 78% -12%, rgba(47, 208, 255, 0.12), transparent 60%),
        radial-gradient(760px 460px at 8% 18%, rgba(255, 61, 127, 0.12), transparent 58%),
        var(--surface-0);
    color: var(--text-1);
}

button,
input,
a {
    font: inherit;
}

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

img {
    display: block;
    max-width: 100%;
}

.buyer-home {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(18, 24, 33, 0.82);
    box-shadow: var(--shadow);
}

.site-header__brand {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.site-header__brand span {
    color: var(--text-1);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
}

.site-header__brand strong {
    color: var(--accent-2);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.site-header__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 0.92rem;
    font-weight: 800;
}

.site-header__nav a:hover {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.06);
}

.site-header__nav .site-header__cta {
    color: var(--surface-0);
    background: var(--accent-3);
}

.site-header__nav .site-header__cta:hover {
    color: var(--surface-0);
    background: #a5ffd0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: stretch;
    min-height: 520px;
}

.hero__copy,
.hero__panel,
.section,
.seller-cta,
.status,
.empty {
    border: 1px solid var(--border);
    background: rgba(18, 24, 33, 0.82);
    box-shadow: var(--shadow);
}

.hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 64px);
    border-radius: 24px;
}

.eyebrow {
    color: var(--accent-2);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(2.7rem, 7vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

p {
    color: var(--text-2);
}

.hero__copy p {
    max-width: 640px;
    margin-bottom: 26px;
    font-size: 1.1rem;
}

.search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: min(720px, 100%);
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(9, 13, 19, 0.74);
}

.search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-1);
    padding: 12px 14px;
}

.search input::placeholder {
    color: var(--text-3);
}

.search button,
.suggestions button,
.atmosphere-card,
.seller-cta a {
    border: 0;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.search button,
.seller-cta a {
    border-radius: 8px;
    background: var(--accent-1);
    color: #0d1014;
    font-weight: 800;
    padding: 12px 18px;
}

.search button:hover,
.suggestions button:hover,
.atmosphere-card:hover,
.seller-cta a:hover {
    transform: translateY(-2px);
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.suggestions button {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(32, 41, 54, 0.75);
    color: var(--text-2);
    padding: 8px 13px;
}

.hero__panel {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 24px;
}

.hero__panel div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 136px;
    border-radius: 14px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(47, 208, 255, 0.15), rgba(255, 61, 127, 0.12));
}

.hero__panel strong {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
}

.hero__panel span {
    color: var(--text-2);
    font-weight: 700;
}

.section,
.status,
.seller-cta {
    margin-top: 28px;
    border-radius: 18px;
    padding: 24px;
}

.section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section__header p {
    margin-bottom: 0;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid--stores {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--atmospheres {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-card,
.product-card,
.atmosphere-card,
.pulse-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(12, 17, 24, 0.86);
}

.store-card__banner,
.product-card img,
.atmosphere-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--surface-2);
}

.store-card__body,
.product-card__body {
    padding: 14px;
}

.store-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-card__title h3,
.product-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.verified {
    color: var(--accent-3);
    font-size: 0.9rem;
    font-weight: 900;
}

.store-card p,
.product-card span,
.store-card span {
    color: var(--text-3);
    font-size: 0.92rem;
}

.product-card strong {
    color: var(--accent-3);
}

.atmosphere-card {
    position: relative;
    min-height: 220px;
    padding: 0;
    text-align: left;
    color: var(--text-1);
}

.atmosphere-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(5, 8, 12, 0.9));
}

.atmosphere-card span,
.atmosphere-card strong {
    position: absolute;
    z-index: 1;
    left: 14px;
    right: 14px;
}

.atmosphere-card span {
    bottom: 48px;
    color: var(--text-2);
}

.atmosphere-card strong {
    bottom: 18px;
    font-size: 1.2rem;
}

.pulse-item {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    text-align: left;
    color: var(--text-1);
}

.pulse-item span {
    display: block;
    color: var(--accent-2);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.seller-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: linear-gradient(135deg, rgba(255, 61, 127, 0.15), rgba(47, 208, 255, 0.13));
}

.seller-cta p {
    margin-bottom: 0;
}

.seller-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
}

.status {
    min-height: 220px;
}

.loading-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.skeleton {
    height: 210px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    background-size: 220% 100%;
    animation: loading 1.2s infinite linear;
}

.empty {
    padding: 18px;
    border-radius: 12px;
}

.is-hidden {
    display: none !important;
}

@keyframes loading {
    from {
        background-position: 100% 0;
    }
    to {
        background-position: -100% 0;
    }
}

@media (max-width: 920px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header__nav {
        justify-content: flex-start;
        width: 100%;
    }

    .hero,
    .seller-cta {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .grid--stores,
    .grid--products,
    .grid--atmospheres,
    .loading-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .buyer-home {
        width: min(100% - 20px, 1180px);
        padding-top: 20px;
    }

    .hero {
        min-height: auto;
    }

    .hero__copy,
    .site-header,
    .section,
    .status,
    .seller-cta {
        padding: 18px;
    }

    .site-header__nav a {
        min-height: 36px;
        padding: 0 10px;
        font-size: 0.86rem;
    }

    .search {
        grid-template-columns: 1fr;
    }

    .grid--stores,
    .grid--products,
    .grid--atmospheres,
    .loading-row {
        grid-template-columns: 1fr;
    }

    .section__header {
        display: block;
    }
}
