/* ===== Premium Homepage ===== */

.home-page {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 40%, #f5f5f7 100%);
}

/* Hero */
.home-hero {
    padding: 16px 0 0;
    background: transparent;
}

.home-hero-container {
    max-width: 1360px;
}

.home-banner-slider {
    border-radius: 28px;
    aspect-ratio: 16 / 8.5;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 40px 100px rgba(110, 61, 252, 0.08);
}

.home-banner-slider .banner-slide img {
    object-fit: cover;
}

.home-banner-wrap .home-banner-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.home-banner-controls {
    bottom: 24px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Trust bar */
.home-trust {
    padding: 28px 0 56px;
}

.home-trust-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.home-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    position: relative;
}

.home-trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(0, 0, 0, 0.07);
}

.home-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(110, 61, 252, 0.12) 0%, rgba(110, 61, 252, 0.06) 100%);
    color: var(--purple);
    flex-shrink: 0;
}

.home-trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.home-trust-text strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.home-trust-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Section headers */
.home-section {
    padding: 80px 0;
}

.home-section--collection {
    padding-top: 0;
}

.home-section-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 48px;
}

.home-section-head--center .home-eyebrow {
    margin-bottom: 10px;
}

.home-section-head--center h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.home-section-head--center p {
    max-width: 480px;
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.home-view-all--btn {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 12px;
    background: var(--purple);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(110, 61, 252, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-view-all--btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(110, 61, 252, 0.4);
}

.home-empty {
    text-align: center;
    padding: 64px 24px;
    background: #fff;
    border-radius: 24px;
    border: 1px dashed rgba(110, 61, 252, 0.25);
}

.home-empty p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.0625rem;
}

/* Product cards — premium */
.home-products-grid {
    gap: 24px;
}

.home-product-card {
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    background: #fff;
}

.home-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(110, 61, 252, 0.12);
    border-color: rgba(110, 61, 252, 0.2);
}

.home-product-image {
    height: 220px;
    background: linear-gradient(180deg, #f8f7fc 0%, #ffffff 100%);
    padding: 28px;
}

.home-product-image img {
    max-height: 160px;
}

.home-product-body {
    padding: 22px 22px 24px;
}

.home-product-name {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-product-foot {
    border-top: none;
    padding-top: 0;
}

.home-product-price {
    font-size: 1.25rem;
    font-weight: 800;
}

.home-product-btn {
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--text);
    color: #fff;
}

.home-product-btn:hover {
    background: var(--purple);
    color: #fff;
}

/* Spotlight — Premium Promo Banner */
.home-spotlight {
    padding: 0 0 80px;
}

.promo-banner {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 38%, #9333ea 100%);
    box-shadow: 0 28px 80px rgba(91, 33, 182, 0.35);
}

.promo-banner-bg-dots {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    opacity: 0.35;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
}

.promo-banner-bg-dots--left {
    left: 0;
    mask-image: linear-gradient(90deg, #000, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000, transparent);
}

.promo-banner-bg-dots--right {
    right: 0;
    mask-image: linear-gradient(-90deg, #000, transparent);
    -webkit-mask-image: linear-gradient(-90deg, #000, transparent);
}

.promo-banner-body {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 24px;
    padding: 48px 52px 40px;
    position: relative;
    z-index: 1;
}

.promo-banner-content {
    color: #fff;
    max-width: 520px;
}

.promo-banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 10px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.promo-banner-tag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.promo-banner-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.promo-banner-lead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.95);
}

.promo-banner-price {
    color: #fde047;
    font-weight: 800;
    font-size: 1.15em;
    text-shadow: 0 2px 12px rgba(253, 224, 71, 0.35);
}

.promo-banner-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 8px 0 20px;
    border-radius: 999px;
    background: #fff;
    color: var(--purple);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
    color: var(--purple);
}

.promo-banner-cta-icon {
    display: flex;
    color: var(--purple);
}

.promo-banner-cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), #7c3aed);
    color: #fff;
    margin-left: 4px;
}

/* Visual */
.promo-banner-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.promo-banner-image-wrap {
    position: relative;
    z-index: 2;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.promo-banner-image-wrap img {
    display: block;
    max-width: 100%;
    max-height: 300px;
    width: auto;
    object-fit: contain;
}

.promo-banner-float {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.promo-banner-float--1 {
    width: 48px;
    height: 48px;
    top: 8%;
    right: 12%;
    background: rgba(255, 255, 255, 0.2);
    animation: promoFloat 4s ease-in-out infinite;
}

.promo-banner-float--2 {
    width: 20px;
    height: 20px;
    bottom: 20%;
    left: 8%;
    background: #fde047;
    opacity: 0.85;
    animation: promoFloat 3s ease-in-out infinite 0.5s;
}

.promo-banner-float--3 {
    width: 14px;
    height: 14px;
    top: 25%;
    left: 15%;
    background: rgba(255, 255, 255, 0.5);
    animation: promoFloat 3.5s ease-in-out infinite 1s;
}

@keyframes promoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Bottom trust bar */
.promo-banner-foot {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 18px 28px;
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.promo-banner-foot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.promo-banner-foot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.promo-banner-foot-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
}

@media (max-width: 1024px) {
    .promo-banner-body {
        grid-template-columns: 1fr;
        padding: 40px 36px 32px;
        text-align: center;
    }

    .promo-banner-content {
        max-width: none;
    }

    .promo-banner-desc {
        -webkit-line-clamp: unset;
    }

    .promo-banner-visual {
        min-height: 260px;
    }

    .promo-banner-foot {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .promo-banner-body {
        padding: 32px 24px 28px;
    }

    .promo-banner-title {
        font-size: 1.75rem;
    }

    .promo-banner-image-wrap img {
        max-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-banner-float {
        animation: none;
    }
}

.home-section--alt {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.home-section--alt .home-section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: -0.03em;
}

.promo-banner-lead--lg {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
}

/* Shipping graphic (right side) */
.promo-banner-visual--shipping {
    min-height: 280px;
}

.promo-shipping-graphic {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-shipping-box {
    position: relative;
    width: 200px;
    height: 180px;
    background: linear-gradient(145deg, #7c3aed 0%, #5b21b6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: perspective(400px) rotateY(-8deg) rotateX(4deg);
}

.promo-shipping-ribbon {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.promo-shipping-ribbon::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
}

.promo-shipping-truck {
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.promo-shipping-free {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 6px;
    background: #fde047;
    color: #5b21b6;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.promo-banner--shipping .promo-banner-body {
    padding-bottom: 36px;
}

/* CTA section spacing */
.home-cta {
    padding: 80px 0;
}

.home-cta .promo-banner {
    margin: 0;
}

/* Newsletter */
.home-newsletter {
    padding-bottom: 100px;
}

.home-newsletter-card {
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

/* Responsive — Homepage mobile */
@media (max-width: 1024px) {
    .home-trust-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-trust-item:nth-child(2)::after {
        display: none;
    }

    .home-trust-item:nth-child(1),
    .home-trust-item:nth-child(3) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .home-trust-item:nth-child(odd)::after {
        display: block;
    }

    .home-page .home-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-page .bestsellers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-banner-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .promo-banner-tag {
        align-self: center;
    }

    .promo-banner-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .home-page {
        overflow-x: clip;
    }

    /* Hero */
    .home-page .home-hero {
        padding: 8px 0 0;
    }

    .home-banner-slider {
        border-radius: 16px;
        aspect-ratio: 16 / 9;
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, 0.04),
            0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .home-banner-wrap .home-banner-arrow {
        width: 36px;
        height: 36px;
    }

    .home-banner-wrap .home-banner-arrow svg {
        width: 16px;
        height: 16px;
    }

    .home-banner-wrap .banner-prev {
        left: 8px;
    }

    .home-banner-wrap .banner-next {
        right: 8px;
    }

    .home-banner-controls {
        bottom: 10px;
        padding: 6px 12px;
        border-radius: 999px;
    }

    /* Trust bar */
    .home-trust {
        padding: 16px 0 32px;
    }

    .home-trust-inner {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .home-trust-item {
        padding: 16px 18px;
        gap: 12px;
    }

    .home-trust-item::after {
        display: none !important;
    }

    .home-trust-item:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .home-trust-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    /* Sections */
    .home-section {
        padding: 44px 0;
    }

    .home-section-head {
        margin-bottom: 24px;
    }

    .home-section-head--center {
        margin-bottom: 28px;
    }

    .home-section-head--center h2 {
        font-size: 1.625rem;
    }

    .home-section-head--center p {
        font-size: 0.9375rem;
    }

    .home-section--alt .home-section-head h2 {
        font-size: 1.5rem;
    }

    .home-page .home-products-grid,
    .home-page .bestsellers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-product-image {
        height: 200px;
        padding: 24px;
    }

    .home-product-body {
        padding: 18px 18px 20px;
    }

    /* Spotlight & promo banners */
    .home-spotlight {
        padding: 0 0 44px;
    }

    .home-cta {
        padding: 44px 0;
    }

    .promo-banner {
        border-radius: 18px;
        box-shadow: 0 16px 48px rgba(91, 33, 182, 0.28);
    }

    .promo-banner-body {
        padding: 24px 20px 20px;
        gap: 16px;
    }

    .promo-banner-tag {
        margin-bottom: 14px;
        font-size: 0.75rem;
        padding: 6px 14px 6px 8px;
    }

    .promo-banner-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .promo-banner-lead {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .promo-banner-lead--lg {
        font-size: 1.375rem;
        margin-bottom: 10px;
    }

    .promo-banner-desc {
        font-size: 0.875rem;
        margin-bottom: 20px;
        line-height: 1.55;
    }

    .promo-banner-cta {
        height: 48px;
        padding: 0 6px 0 18px;
        font-size: 0.9375rem;
        max-width: 100%;
    }

    .promo-banner-cta-arrow {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .promo-banner-visual {
        min-height: auto;
        padding: 4px 0 8px;
    }

    .promo-banner-visual--shipping {
        min-height: auto;
    }

    .promo-banner-image-wrap {
        padding: 12px;
        border-radius: 18px;
        width: min(100%, 280px);
        margin: 0 auto;
    }

    .promo-banner-image-wrap img {
        max-height: 180px;
        margin: 0 auto;
    }

    .promo-shipping-box {
        width: 160px;
        height: 145px;
        border-radius: 16px;
        transform: none;
    }

    .promo-shipping-truck {
        width: 52px;
        height: 52px;
    }

    .promo-banner-float {
        display: none;
    }

    .promo-banner-foot {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 8px;
        padding: 14px 16px;
    }

    .promo-banner-foot-item {
        gap: 8px;
    }

    .promo-banner-foot-icon {
        width: 34px;
        height: 34px;
    }

    .promo-banner-foot-icon svg {
        width: 16px;
        height: 16px;
    }

    .promo-banner-foot-text {
        font-size: 0.6875rem;
        line-height: 1.3;
    }

    .promo-banner-bg-dots {
        width: 48px;
        opacity: 0.25;
    }

    /* Newsletter */
    .home-newsletter {
        padding: 32px 0 56px;
    }

    .home-newsletter-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 20px;
        gap: 16px;
        border-radius: 18px;
    }

    .home-newsletter-icon {
        margin: 0 auto;
        width: 48px;
        height: 48px;
    }

    .home-newsletter-text h2 {
        font-size: 1.25rem;
    }

    .home-newsletter-text p {
        font-size: 0.875rem;
    }

    .home-newsletter-form {
        min-width: 0;
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .home-newsletter-form input {
        width: 100%;
        padding: 13px 16px;
        font-size: 1rem;
    }

    .home-newsletter-form .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .home-banner-wrap .home-banner-arrow {
        display: none;
    }

    .home-trust-text strong {
        font-size: 0.8125rem;
    }

    .home-trust-text span {
        font-size: 0.6875rem;
    }

    .home-section-head--center h2 {
        font-size: 1.4375rem;
    }

    .promo-banner-body {
        padding: 20px 16px 16px;
    }

    .promo-banner-title {
        font-size: 1.375rem;
    }

    .promo-banner-lead--lg {
        font-size: 1.25rem;
    }

    .promo-banner-cta {
        width: 100%;
        justify-content: center;
        padding: 0 6px 0 14px;
    }

    .promo-banner-foot {
        grid-template-columns: 1fr;
    }

    .promo-banner-foot-item {
        justify-content: flex-start;
    }

    .home-view-all--btn {
        width: 100%;
        justify-content: center;
    }
}
