/* ============================================
   SaleHoo homepage — premium storefront layout
   ============================================ */

.home-page {
    background:
        radial-gradient(circle at 8% 16%, rgba(42, 143, 124, 0.14), transparent 30%),
        linear-gradient(180deg, #f8f6f0 0%, var(--sh-surface) 42%, #fff 100%);
    overflow: hidden;
}

.home-page .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sh-accent);
}

.home-page .eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sh-highlight);
    box-shadow: 0 0 0 6px rgba(201, 162, 39, 0.14);
}

.btn-premium,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-premium {
    min-height: 48px;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.btn-premium:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.btn-premium--light {
    color: var(--sh-ink);
    background: #fff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.btn-premium--light:hover {
    color: #fff;
    background: var(--sh-accent);
}

.btn-premium--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-premium--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.btn-premium--dark {
    color: #fff;
    background: var(--sh-ink);
    box-shadow: 0 18px 42px rgba(15, 18, 16, 0.2);
}

.btn-premium--dark:hover {
    color: #fff;
    background: var(--sh-accent-deep);
}

.text-link {
    color: var(--sh-accent);
    font-size: 0.9rem;
}

.text-link:hover {
    color: var(--sh-accent-deep);
}

/* Hero */
.home-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    color: #fff;
    background:
        radial-gradient(circle at 88% 14%, rgba(201, 162, 39, 0.18), transparent 30%),
        linear-gradient(135deg, var(--sh-topbar) 0%, var(--sh-topbar-2) 48%, var(--sh-accent-deep) 100%);
    position: relative;
}

.home-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 130px;
    background: linear-gradient(180deg, transparent, rgba(248, 246, 240, 0.9));
    pointer-events: none;
}

.home-hero__inner {
    max-width: var(--shell-max);
    margin: 0 auto;
    min-height: min(780px, 82vh);
    padding: clamp(4rem, 8vw, 7rem) var(--shell-pad) clamp(4.5rem, 8vw, 7rem);
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    position: relative;
    z-index: 1;
}

.home-hero__copy {
    max-width: 620px;
}

.home-hero__copy h1 {
    margin: 1rem 0 1.25rem;
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 5.2vw, 4rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
    word-spacing: 0.04em;
    max-width: 14em;
    color: #fff;
}

.home-hero__copy p {
    max-width: 34rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.75;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.home-hero__visual {
    min-height: 560px;
    position: relative;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    transform: rotate(-18deg);
}

.hero-orbit--one {
    inset: 7% 5% 11% 0;
}

.hero-orbit--two {
    inset: 19% 18% 2% 20%;
}

.hero-image-card {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.26);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-image-card--large {
    inset: 5% 10% 12% 6%;
    border-radius: 42px;
}

.hero-image-card--small {
    right: 0;
    bottom: 4%;
    width: 42%;
    height: 42%;
    border-radius: 30px;
}

.hero-status-card {
    position: absolute;
    left: 0;
    bottom: 11%;
    max-width: 240px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-status-card span,
.hero-status-card strong {
    display: block;
}

.hero-status-card span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
}

.hero-status-card strong {
    margin-top: 0.25rem;
    color: #fff;
    font-size: 1rem;
}

/* Assurance rail */
.assurance-rail {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    position: relative;
    z-index: 3;
}

.assurance-rail__inner {
    max-width: var(--shell-max);
    margin: -42px auto 0;
    padding: 0 var(--shell-pad);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.assurance-item {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(15, 18, 16, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 50px rgba(15, 18, 16, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.assurance-item i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 16px;
    color: var(--sh-accent);
    background: var(--sh-accent-soft);
}

.assurance-item strong,
.assurance-item span {
    display: block;
}

.assurance-item strong {
    color: var(--sh-ink);
    font-size: 0.9rem;
}

.assurance-item span {
    margin-top: 0.12rem;
    color: var(--sh-muted);
    font-size: 0.78rem;
}

/* Main sections */
.home-main {
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

.section-intro {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-intro--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.section-intro h2,
.product-showcase__panel h2,
.vendor-spotlight h2 {
    margin: 0.65rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.4vw, 2.65rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    word-spacing: 0.03em;
    color: var(--sh-ink);
}

/* Category mosaic */
.category-showcase {
    position: relative;
}

.category-mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 1rem;
}

.category-tile {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 220px;
    border-radius: 28px;
    color: #fff;
    isolation: isolate;
    box-shadow: 0 20px 60px rgba(15, 18, 16, 0.12);
}

.category-tile--feature {
    grid-column: span 2;
    grid-row: span 2;
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-tile__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, transparent 16%, rgba(0, 0, 0, 0.64) 100%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 34%);
}

.category-tile__content {
    position: absolute;
    inset: auto 1.15rem 1.15rem;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.category-tile__content strong,
.category-tile__content small {
    display: block;
}

.category-tile__content strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
    word-spacing: 0.02em;
}

.category-tile__content small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    white-space: nowrap;
}

.category-tile:hover img {
    transform: scale(1.11);
}

/* Products */
.product-showcase {
    margin-top: clamp(4rem, 8vw, 7rem);
    display: grid;
    grid-template-columns: minmax(280px, 0.31fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
    position: relative;
    padding: clamp(1.15rem, 3vw, 1.75rem);
    border: 1px solid rgba(15, 18, 16, 0.07);
    border-radius: 42px;
    background:
        radial-gradient(circle at 10% 0%, rgba(31, 107, 92, 0.09), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48));
    box-shadow: 0 26px 90px rgba(15, 18, 16, 0.08);
}

.product-showcase__aside {
    position: sticky;
    top: calc(115px + 24px);
    display: grid;
    gap: 1rem;
}

.product-showcase__panel {
    height: auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 10%, rgba(201, 162, 39, 0.2), transparent 36%),
        linear-gradient(145deg, var(--sh-ink), var(--sh-accent-deep));
    box-shadow: 0 24px 70px rgba(15, 18, 16, 0.16);
    overflow: hidden;
    isolation: isolate;
}

.product-showcase__notes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.product-showcase__notes div {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 50px;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(15, 18, 16, 0.07);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 38px rgba(15, 18, 16, 0.07);
}

.product-showcase__notes i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--sh-accent);
    background: var(--sh-accent-soft);
}

.product-showcase__notes span {
    color: var(--sh-ink);
    font-size: 0.8rem;
    font-weight: 800;
}

.product-showcase__panel::before,
.product-showcase__panel::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.product-showcase__panel::before {
    width: 190px;
    height: 190px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.16);
}

.product-showcase__panel::after {
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
}

.product-showcase__panel > * {
    position: relative;
    z-index: 1;
}

.product-showcase__panel .eyebrow,
.vendor-spotlight .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.product-showcase__panel h2 {
    color: #fff;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(0.85rem, 1.6vw, 1.1rem);
    padding: clamp(0.7rem, 1.5vw, 1rem);
    border: 1px solid rgba(15, 18, 16, 0.06);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.lux-product-card {
    position: relative;
    overflow: hidden;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(15, 18, 16, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(15, 18, 16, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.lux-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(31, 107, 92, 0.22);
    background: #fff;
    box-shadow: 0 22px 54px rgba(15, 18, 16, 0.12);
}

.lux-product-card__media {
    display: block;
    aspect-ratio: 1.28 / 1;
    flex: 0 0 auto;
    overflow: hidden;
    background: #f5f2eb;
}

.lux-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lux-product-card:hover .lux-product-card__media img {
    transform: scale(1.06);
}

.lux-product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.95rem 0.95rem 0.9rem;
}

.lux-product-card__category {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--sh-muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lux-product-card__title {
    min-height: 2.72em;
    margin: 0 0 0.9rem;
    font-size: 0.88rem;
    line-height: 1.36;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: ellipsis;
}

.lux-product-card__title a {
    color: var(--sh-ink);
    text-decoration: none;
}

.lux-product-card__title a:hover {
    color: var(--sh-accent);
}

.lux-product-card__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.lux-product-card__price {
    color: var(--sh-ink);
    font-size: 1rem;
    font-weight: 900;
}

.lux-product-card__actions {
    display: flex;
    gap: 0.45rem;
}

.lux-action-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 18, 16, 0.08);
    border-radius: 50%;
    color: var(--sh-ink);
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.lux-action-btn:hover {
    color: #fff;
    background: var(--sh-accent);
    transform: translateY(-2px);
}

/* Vendor CTA */
.vendor-spotlight {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 420px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
}

.vendor-spotlight__bg {
    position: absolute;
    inset: 0;
}

.vendor-spotlight__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 12%, rgba(201, 162, 39, 0.18), transparent 28%),
        linear-gradient(90deg, rgba(8, 14, 12, 0.86), rgba(8, 14, 12, 0.52));
}

.vendor-spotlight__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9);
}

.vendor-spotlight__inner {
    width: min(var(--shell-max), calc(100% - 48px));
    min-height: 260px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.vendor-spotlight h2 {
    color: #fff;
}

.vendor-spotlight p {
    max-width: 34rem;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.75;
}

.vendor-spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

@media (max-width: 1180px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-hero__visual {
        min-height: 520px;
    }

    .assurance-rail__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-mosaic {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-showcase {
        grid-template-columns: 1fr;
        min-height: auto !important;
        padding: 1rem;
        border-radius: 28px;
    }

    .product-showcase__aside {
        position: relative;
        top: auto;
    }

    .product-showcase__panel {
        height: auto;
        min-height: auto;
        flex-direction: row;
        align-items: end;
        gap: 1.5rem;
    }

    .product-gallery {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

}

@media (max-width: 768px) {
    .home-hero__inner {
        padding-top: 3.5rem;
        padding-bottom: 5rem;
    }

    .home-hero__copy h1 {
        font-size: clamp(2rem, 9vw, 2.85rem);
        line-height: 1.18;
        max-width: none;
    }

    .section-intro h2,
    .product-showcase__panel h2,
    .vendor-spotlight h2 {
        font-size: clamp(1.65rem, 7vw, 2.15rem);
        line-height: 1.22;
    }

    .home-hero__visual {
        min-height: 360px;
    }

    .hero-image-card--large {
        inset: 0 12% 10% 0;
        border-radius: 28px;
    }

    .hero-image-card--small {
        width: 48%;
        height: 44%;
        border-radius: 22px;
    }

    .hero-status-card {
        bottom: 4%;
    }

    .assurance-rail__inner,
    .category-mosaic,
    .product-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-tile--feature {
        grid-column: span 2;
        grid-row: span 1;
    }

    .product-showcase__panel,
    .vendor-spotlight__inner,
    .section-intro--split {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .vendor-spotlight__actions {
        justify-content: flex-start;
    }

    .lux-product-card:hover {
        transform: none;
    }
}

@media (max-width: 520px) {
    .home-hero__actions,
    .vendor-spotlight__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .assurance-rail__inner {
        grid-template-columns: 1fr;
    }

    .category-mosaic,
    .product-gallery {
        grid-template-columns: 1fr;
    }

    .category-tile,
    .category-tile--feature {
        grid-column: auto;
        min-height: 230px;
    }
}
