/* Store storefront layout; scoped to avoid changing other marketplace pages. */
.store-marketplace-view {
    color: #25334a;
    background: #f4f6fa;
}

.store-marketplace-view .store-main-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 56px;
}

.store-marketplace-view .product-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 18px;
    color: #7b8798;
    font-size: 13px;
}

.store-marketplace-view .product-breadcrumbs a {
    color: #52647c;
    text-decoration: none;
}

.store-marketplace-view .product-breadcrumbs a:hover { color: #f04b32; }

.store-marketplace-view .marketplace-store-header {
    display: block;
    width: 100%;
    margin: 0 0 30px;
    overflow: hidden;
    border: 1px solid #e5eaf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(25 42 70 / 8%);
}

.store-marketplace-view .store-profile-banner {
    position: relative;
    min-height: 190px;
    background-color: #14372d;
    background-position: center;
    background-size: cover;
}

.store-marketplace-view .store-profile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(8 28 23 / 58%), rgb(8 28 23 / 8%));
}

.store-marketplace-view .store-profile-content {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 220px;
    align-items: center;
    gap: 22px;
    padding: 22px 28px 26px;
}

.store-marketplace-view .store-avatar-box {
    position: relative;
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    margin-top: -66px;
    overflow: visible;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 20px rgb(19 41 34 / 16%);
}

.store-marketplace-view .store-avatar-img,
.store-marketplace-view .store-avatar-letter {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: 50%;
    object-fit: cover;
}

.store-marketplace-view .store-avatar-letter {
    color: #fff;
    background: #174331;
    font-size: 38px;
    font-weight: 800;
}

.store-marketplace-view .store-badge-verified {
    position: absolute;
    right: 0;
    bottom: 2px;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #18a66a;
    font-weight: 800;
}

.store-marketplace-view .store-identity-col { min-width: 0; }
.store-marketplace-view .store-badge-row { display: flex; flex-wrap: wrap; gap: 8px; }

.store-marketplace-view .marketplace-pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #d9432d;
    background: #fff0eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.store-marketplace-view .marketplace-pill-badge.category-pill {
    color: #28634a;
    background: #eaf5ee;
}

.store-marketplace-view .store-heading-title {
    margin: 8px 0 5px;
    color: #1c2e47;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
}

.store-marketplace-view .store-meta-sub { margin: 0; color: #68778b; line-height: 1.6; }
.store-marketplace-view .store-metrics-row { display: flex; align-items: center; gap: 18px; margin-top: 17px; }
.store-marketplace-view .store-metric-item { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: #35465e; }
.store-marketplace-view .store-metric-item strong { color: #203651; }
.store-marketplace-view .store-metric-item small { color: #7a8798; }
.store-marketplace-view .metric-star { color: #f2a51a; letter-spacing: 1px; }
.store-marketplace-view .store-metric-divider { width: 1px; height: 30px; background: #e6ebf0; }

.store-marketplace-view .store-actions-col { display: grid; gap: 9px; }
.store-marketplace-view .store-actions-col a,
.store-marketplace-view .store-actions-col button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #e0e6ed;
    border-radius: 9px;
    color: #34465e;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.store-marketplace-view .store-actions-col .marketplace-btn-primary {
    border-color: #f04a2e;
    color: #fff;
    background: #f04a2e;
}

.store-marketplace-view .store-actions-col .marketplace-btn-secondary {
    border-color: #ffd2c7;
    color: #d96852;
    background: #fff0ec;
}

.store-marketplace-view .store-actions-col .marketplace-btn-primary:hover { background: #d93a24; }
.store-marketplace-view .store-actions-col .marketplace-btn-secondary:hover {
    border-color: #ffbba9;
    color: #c94d35;
    background: #ffe5dd;
}
.store-marketplace-view .store-actions-col a:hover,
.store-marketplace-view .store-actions-col button:hover { border-color: #f04a2e; }

.store-marketplace-view .store-products-panel {
    margin: 0 0 28px;
    padding: 24px;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(25 42 70 / 5%);
}

.store-marketplace-view .marketplace-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.store-marketplace-view .marketplace-eyebrow {
    color: #ef4c31;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.store-marketplace-view .marketplace-section-heading h2 {
    margin: 6px 0;
    color: #1e3048;
    font-size: 25px;
}

.store-marketplace-view .marketplace-section-heading p { margin: 0; color: #748196; }
.store-marketplace-view .store-product-search-box input { width: min(260px, 100%); padding: 11px 13px; border: 1px solid #dfe5ec; border-radius: 9px; font: inherit; }

.store-marketplace-view .marketplace-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.store-marketplace-view .marketplace-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(29 48 72 / 5%);
    transition: box-shadow .2s ease, transform .2s ease;
}

.store-marketplace-view .marketplace-product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgb(29 48 72 / 12%); }
.store-marketplace-view .product-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }

.store-marketplace-view .product-thumb-wrap {
    position: relative;
    display: grid;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    place-items: center;
    overflow: hidden;
    background: #f4f6f8;
}

.store-marketplace-view .product-thumb-img { display: block; width: 100%; max-width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.store-marketplace-view .product-promo-badge { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 6px 9px; border-radius: 999px; color: #fff; background: #f04a2e; font-size: 10px; font-weight: 800; }
.store-marketplace-view .product-info-wrap { padding: 16px; }
.store-marketplace-view .product-brand-tag { color: #8a96a6; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.store-marketplace-view .product-title-text { min-height: 48px; margin: 7px 0 12px; color: #263950; font-size: 16px; line-height: 1.45; }
.store-marketplace-view .product-price-val { color: #ef4c31; font-size: 18px; font-weight: 800; }
.store-marketplace-view .product-meta-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; color: #788699; font-size: 12px; }
.store-marketplace-view .product-stars { color: #e9a21a; }
.store-marketplace-view .product-card-action { margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0f4; color: #e94a30; font-size: 13px; font-weight: 700; }

.store-marketplace-view .store-about-section { margin: 0 0 28px; }
.store-marketplace-view .store-features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.store-marketplace-view .feature-item-card { padding: 21px; border: 1px solid #e5eaf0; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgb(25 42 70 / 5%); }
.store-marketplace-view .feature-icon { font-size: 23px; }
.store-marketplace-view .feature-item-card h4 { margin: 10px 0 7px; color: #253950; font-size: 16px; }
.store-marketplace-view .feature-item-card p { margin: 0; color: #718095; line-height: 1.6; }
.store-marketplace-view .store-back-links { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 800px) {
    .store-marketplace-view .store-main-wrap { width: min(100% - 28px, 640px); padding-top: 13px; }
    .store-marketplace-view .store-profile-content { grid-template-columns: 82px minmax(0, 1fr); gap: 15px; padding: 18px; }
    .store-marketplace-view .store-profile-banner { min-height: 135px; }
    .store-marketplace-view .store-avatar-box { width: 78px; height: 78px; margin-top: -45px; }
    .store-marketplace-view .store-avatar-letter { font-size: 30px; }
    .store-marketplace-view .store-actions-col { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .store-marketplace-view .store-metrics-row { flex-wrap: wrap; gap: 10px 13px; }
    .store-marketplace-view .marketplace-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-marketplace-view .store-features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .store-marketplace-view .store-main-wrap { width: calc(100% - 22px); }
    .store-marketplace-view .store-profile-content { grid-template-columns: 1fr; }
    .store-marketplace-view .store-avatar-box { position: absolute; top: -42px; left: 18px; margin: 0; }
    .store-marketplace-view .store-identity-col { padding-top: 43px; }
    .store-marketplace-view .store-actions-col { grid-template-columns: 1fr; }
    .store-marketplace-view .store-metric-divider { display: none; }
    .store-marketplace-view .store-metric-item { width: 100%; }
    .store-marketplace-view .store-products-panel { padding: 17px; }
    .store-marketplace-view .marketplace-section-heading { align-items: stretch; flex-direction: column; }
    .store-marketplace-view .marketplace-product-grid { grid-template-columns: 1fr; }
    .store-marketplace-view .product-thumb-wrap,
    .store-marketplace-view .product-thumb-img { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
    .store-marketplace-view .marketplace-product-card { transition: none; }
}
