/* Shop collection — Wes mockup */

.page-shop {
    background: var(--home-cream, #fbfaf7);
}

.page-shop #main {
    padding-top: 0;
}

.page-shop .site-header.site-header--mockup {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #ece7df;
}

.page-shop .header-mockup__nav a.is-active {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1.5px;
}

/* Hero */
.shop-hero {
    position: relative;
    min-height: clamp(420px, 56vh, 640px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    margin-bottom: 0;
}

.shop-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.shop-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 58%;
}

.shop-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.58) 0%,
        rgba(0, 0, 0, 0.34) 42%,
        rgba(0, 0, 0, 0.08) 70%,
        rgba(0, 0, 0, 0) 100%
    );
}

.shop-hero__shell {
    position: relative;
    z-index: 1;
    width: var(--home-shell);
    margin-inline: auto;
    padding: clamp(36px, 6vh, 56px) 0;
}

.shop-hero__content {
    width: min(27rem, 100%);
    text-align: left;
}

.shop-hero__content .home-kicker {
    color: rgba(255, 255, 255, 0.88);
}

.shop-hero__title {
    margin: 0 0 18px;
    font-size: clamp(2.35rem, 4.6vw, 3.75rem);
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
}

.shop-hero__lead {
    margin: 0 0 28px;
    max-width: 26rem;
    font-size: clamp(0.95rem, 1.7vw, 1.05rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.shop-hero__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: clamp(20px, 3.5vw, 40px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 9.5rem;
    color: #fff;
}

.shop-hero__trust-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff;
}

.shop-hero__trust-icon svg {
    display: block;
}

.shop-hero__trust-label {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

/* Catalog */
.shop-catalog {
    padding: clamp(28px, 4vw, 40px) 0 0;
    background: var(--home-cream, #fbfaf7);
}

.shop-catalog__shell {
    width: var(--home-shell);
    margin-inline: auto;
}

.shop-catalog__title {
    margin: 0 0 clamp(16px, 2vw, 20px);
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    line-height: 1.1;
    color: var(--home-ink, #1a1a1a);
    text-align: left;
}

.shop-availability-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 clamp(24px, 3vw, 32px);
    padding: 4px;
    border-radius: 999px;
    background: #f4f4f5;
}

.shop-availability-tabs__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #52525b;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.shop-availability-tabs__tab:hover {
    color: var(--home-ink, #1a1a1a);
}

.shop-availability-tabs__tab.is-active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.shop-availability-tabs__tab--in-stock.is-active {
    background: #e8f7ec;
    color: #1f7a3f;
}

.shop-availability-tabs__tab--sold-out.is-active {
    background: #fee2e2;
    color: #b91c1c;
    box-shadow: 0 1px 2px rgba(185, 28, 28, 0.12);
}

.shop-catalog .empty-state {
    margin-bottom: clamp(24px, 3vw, 32px);
}

.shop-rug-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.shop-catalog > .shop-catalog__shell > .shop-promo {
    margin-top: 8px;
}

.shop-promo {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 0;
    align-items: stretch;
    margin: clamp(8px, 2vw, 16px) 0 0;
    padding: 0;
    border-radius: 32px;
    background: #f5e7d5;
    border: 1px solid #ecd9c4;
    overflow: hidden;
}

.shop-rug-grid .shop-promo:not(:last-child) {
    margin-bottom: clamp(12px, 2vw, 20px);
}

.shop-promo__copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: clamp(36px, 4.2vw, 44px) clamp(20px, 2.8vw, 32px) clamp(36px, 4.2vw, 44px)
        clamp(56px, 6.5vw, 80px);
}

.shop-promo .home-kicker.shop-promo__kicker {
    color: #8a8a8a;
    margin: 0 0 12px;
}

.shop-promo__title {
    margin: 0 0 18px;
    font-size: clamp(2rem, 3.2vw, 2.65rem);
    line-height: 1.08;
    color: var(--home-ink, #1a1a1a);
}

.shop-promo__body {
    margin: 0 0 32px;
    max-width: 26rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #5c5c5c;
}

.shop-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 22px;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--home-accent, #8b6fd7);
    border: none;
}

.shop-promo__cta:hover {
    background: var(--accent-hover, #7559c9);
    color: #fff;
}

.shop-promo__visual {
    min-width: 0;
    min-height: 0;
    height: 100%;
    margin: 0;
    line-height: 0;
    background: transparent;
}

.shop-promo__compare {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.page-shop .shop-trust.home-trust {
    margin-top: 0;
    padding-top: 22px;
    border-top: none;
}

@media (max-width: 1100px) {
    .shop-rug-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .shop-hero {
        min-height: min(420px, 72svh);
    }

    .shop-hero__shell {
        padding-bottom: 40px;
    }

    .shop-rug-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .shop-promo {
        grid-template-columns: 1fr;
        padding: 0;
        border-radius: 24px;
        gap: 0;
    }

    .shop-promo__copy {
        padding: 32px 24px 36px;
    }

    .shop-promo__title {
        font-size: clamp(1.65rem, 6vw, 2rem);
        margin-bottom: 16px;
    }

    .shop-promo__body {
        max-width: none;
        margin-bottom: 28px;
    }

    .shop-promo__cta {
        width: 100%;
        justify-content: center;
    }

    .shop-promo__visual {
        order: -1;
    }

    .shop-promo__compare {
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: contain;
    }
}
