/* Hstock merchant storefront. Keep every rule scoped so Luxe remains unchanged. */
body.client-template-hstock .market-store-page {
    min-width: 0;
    padding: 18px 0 52px;
    overflow: hidden;
    background: #f4f7fc;
}

body.client-template-hstock .market-store-hero,
body.client-template-hstock .market-store-page > .market-store-products.container,
body.client-template-hstock .market-store-page > .market-store-reviews.container,
body.client-template-hstock .market-store-page > .market-store-policy.container {
    width: min(var(--hs-shell), calc(100% - 32px));
    max-width: var(--hs-shell);
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

body.client-template-hstock .market-store-hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(125deg, #536ce5 0%, #7544c5 100%);
    box-shadow: 0 12px 28px rgba(68, 65, 175, .17);
}

body.client-template-hstock .market-store-hero::after {
    position: absolute;
    top: -190px;
    right: -160px;
    width: 330px;
    height: 330px;
    border: 42px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

body.client-template-hstock .market-store-page .market-store-hero > .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 28px 28px;
    box-sizing: border-box;
}

body.client-template-hstock .market-store-page .market-breadcrumb {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .76);
}

body.client-template-hstock .market-store-page .market-breadcrumb a {
    color: #fff;
}

body.client-template-hstock .market-store-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

body.client-template-hstock .market-store-avatar {
    width: 96px;
    height: 96px;
    border: 4px solid #fff;
    box-shadow: 0 8px 18px rgba(32, 35, 112, .2);
}

body.client-template-hstock .market-store-intro {
    min-width: 0;
}

body.client-template-hstock .market-store-name-row {
    min-width: 0;
    flex-wrap: wrap;
}

body.client-template-hstock .market-store-name-row h1 {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 29px;
    line-height: 1.25;
    letter-spacing: 0;
}

body.client-template-hstock .market-store-name-row span {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: #13b58a;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(4, 98, 74, .14);
}

body.client-template-hstock .market-store-intro p {
    max-width: 620px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.65;
}

body.client-template-hstock .market-store-contact {
    max-width: 100%;
    margin-top: 10px;
    padding: 7px 10px;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
    color: rgba(255, 255, 255, .9);
    font-size: 11px;
    box-sizing: border-box;
}

body.client-template-hstock .market-store-contact span {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.client-template-hstock .market-store-stats {
    grid-template-columns: repeat(2, minmax(88px, 1fr));
    gap: 9px;
}

body.client-template-hstock .market-store-stats div {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 11px;
    background: rgba(255, 255, 255, .14);
    box-sizing: border-box;
}

body.client-template-hstock .market-store-page > .market-store-products.container,
body.client-template-hstock .market-store-page > .market-store-reviews.container,
body.client-template-hstock .market-store-page > .market-store-policy.container {
    margin-top: 18px;
    padding: 20px 18px 22px;
    border: 1px solid #e1e7f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(43, 60, 111, .06);
}

body.client-template-hstock .market-store-products .market-catalog-result-head,
body.client-template-hstock .market-store-reviews .market-catalog-result-head {
    margin: 0 0 14px;
}

body.client-template-hstock .market-store-products .market-catalog-result-head h2,
body.client-template-hstock .market-store-reviews .market-catalog-result-head h2 {
    font-size: 20px;
}

body.client-template-hstock .market-store-products .market-catalog-result-head > span {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #e1e6f0;
    border-radius: 999px;
    color: #68758f;
    background: #f8f9fc;
    font-size: 11px;
    font-weight: 700;
}

body.client-template-hstock .market-store-page .market-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.client-template-hstock .market-store-page .market-product-card,
body.client-template-hstock .market-store-page .market-product-skeleton {
    min-width: 0;
}

body.client-template-hstock .market-store-policy-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.client-template-hstock .market-store-policy-icon {
    flex: 0 0 auto;
    border-radius: 10px;
}

@media (max-width: 1100px) {
    body.client-template-hstock .market-store-heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.client-template-hstock .market-store-stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.client-template-hstock .market-store-page .market-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    body.client-template-hstock .market-store-page {
        padding: 10px 0 38px;
    }

    body.client-template-hstock .market-store-hero,
    body.client-template-hstock .market-store-page > .market-store-products.container,
    body.client-template-hstock .market-store-page > .market-store-reviews.container,
    body.client-template-hstock .market-store-page > .market-store-policy.container {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }

    body.client-template-hstock .market-store-hero {
        border-radius: 16px;
    }

    body.client-template-hstock .market-store-page .market-store-hero > .container {
        width: 100%;
        max-width: none;
        padding: 16px 14px 18px;
    }

    body.client-template-hstock .market-store-page .market-breadcrumb {
        margin-bottom: 15px;
    }

    body.client-template-hstock .market-store-heading {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 13px;
        text-align: center;
    }

    body.client-template-hstock .market-store-avatar {
        width: 78px;
        height: 78px;
    }

    body.client-template-hstock .market-store-name-row {
        display: flex;
        justify-content: center;
        gap: 7px;
    }

    body.client-template-hstock .market-store-name-row h1 {
        margin-bottom: 0;
        font-size: 23px;
    }

    body.client-template-hstock .market-store-intro p {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.6;
    }

    body.client-template-hstock .market-store-contact {
        display: inline-flex;
        margin-top: 8px;
    }

    body.client-template-hstock .market-store-stats {
        grid-column: auto;
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    body.client-template-hstock .market-store-stats div {
        padding: 9px 3px;
        text-align: center;
    }

    body.client-template-hstock .market-store-stats strong {
        font-size: 15px;
    }

    body.client-template-hstock .market-store-page > .market-store-products.container,
    body.client-template-hstock .market-store-page > .market-store-reviews.container,
    body.client-template-hstock .market-store-page > .market-store-policy.container {
        margin-top: 12px;
        padding: 15px 12px 16px;
        border-radius: 15px;
    }

    body.client-template-hstock .market-store-products .market-catalog-result-head,
    body.client-template-hstock .market-store-reviews .market-catalog-result-head {
        gap: 8px;
        margin-bottom: 11px;
    }

    body.client-template-hstock .market-store-products .market-catalog-result-head h2,
    body.client-template-hstock .market-store-reviews .market-catalog-result-head h2 {
        font-size: 19px;
    }

    body.client-template-hstock .market-store-products .market-catalog-result-head > span {
        padding: 6px 9px;
        font-size: 10px;
    }

    body.client-template-hstock .market-store-page .market-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    body.client-template-hstock .market-store-policy-card {
        gap: 10px;
    }
}

@media (max-width: 360px) {
    body.client-template-hstock .market-store-page .market-store-hero > .container {
        padding-right: 11px;
        padding-left: 11px;
    }

    body.client-template-hstock .market-store-stats {
        gap: 4px;
    }

    body.client-template-hstock .market-store-stats div {
        padding-right: 2px;
        padding-left: 2px;
    }

    body.client-template-hstock .market-store-page > .market-store-products.container,
    body.client-template-hstock .market-store-page > .market-store-reviews.container,
    body.client-template-hstock .market-store-page > .market-store-policy.container {
        padding-right: 10px;
        padding-left: 10px;
    }
}
