.seller-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Seller header card */
.seller-header-card {
    background: var(--bg-secondary, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.seller-header-banner {
    height: 120px;
    background: var(--color-primary, #2563eb);
}

.seller-header-body {
    padding: 0 2rem 2rem;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: -2.5rem;
}

.seller-avatar-wrap {
    flex-shrink: 0;
}

.seller-avatar-lg {
    width: 80px;
    height: 80px;
    background: var(--color-primary, #2563eb);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.seller-header-info {
    flex: 1;
    min-width: 0;
    padding-top: 3rem;
}

.seller-header-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #111);
    margin: 0 0 .25rem;
}

.seller-header-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted, #6b7280);
    font-size: .875rem;
    flex-wrap: wrap;
}

.seller-header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-top: 3rem;
    flex-shrink: 0;
}

/* Stats row */
.seller-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-tertiary, #f9fafb);
}

.seller-stat-item {
    text-align: center;
}

.seller-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #111);
    line-height: 1.25;
}

.seller-stat-label {
    display: block;
    font-size: .75rem;
    color: var(--text-muted, #6b7280);
    margin-top: .25rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Seller score ring */
.score-ring-wrap {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.score-ring {
    width: 44px;
    height: 44px;
    position: relative;
    flex-shrink: 0;
}

.score-ring svg {
    transform: rotate(-90deg);
    width: 44px;
    height: 44px;
}

.score-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .625rem;
    font-weight: 700;
    color: var(--text-primary, #111);
}

/* Follow button */
.btn-follow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.25rem;
    border-radius: .5rem;
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
    transition: all .2s;
    border: 2px solid var(--color-primary, #2563eb);
}

.btn-follow.following {
    background: var(--color-primary, #2563eb);
    color: #fff;
}

.btn-follow.not-following {
    background: transparent;
    color: var(--color-primary, #2563eb);
}

.btn-follow.not-following:hover {
    background: var(--color-primary, #2563eb);
    color: #fff;
}

/* Products section */
.seller-products-section {
    margin-top: 2rem;
}

.seller-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.seller-products-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #111);
    margin: 0;
}

.seller-search-form {
    display: flex;
    gap: .5rem;
    flex: 0 0 auto;
}

.seller-search-input {
    padding: .5rem .75rem;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: .5rem;
    font-size: .875rem;
    min-width: 200px;
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #111);
}

/* Product grid */
.seller-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.seller-product-card {
    background: var(--bg-secondary, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: .75rem;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.seller-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.seller-product-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--bg-tertiary, #f3f4f6);
}

.seller-product-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-tertiary, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #9ca3af);
}

.seller-product-body {
    padding: 1rem;
}

.seller-product-category {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-primary, #2563eb);
    font-weight: 600;
    margin-bottom: .25rem;
}

.seller-product-name {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--text-primary, #111);
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seller-product-name a {
    color: inherit;
    text-decoration: none;
}

.seller-product-name a:hover {
    color: var(--color-primary, #2563eb);
}

.seller-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .75rem;
    gap: .5rem;
}

.seller-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary, #2563eb);
}

.seller-product-rating {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-size: .8125rem;
    color: #f59e0b;
}

.btn-add-cart-sm {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .9rem;
    background: var(--color-primary, #2563eb);
    color: #fff;
    border: none;
    border-radius: .4rem;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    margin-top: .75rem;
    transition: opacity .2s;
}

.btn-add-cart-sm:hover { opacity: .88; }

/* Empty state */
.seller-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted, #6b7280);
}

.seller-empty-icon {
    margin-bottom: 1rem;
    opacity: .4;
}

/* Pagination */
.seller-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 2rem;
}

.seller-page-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .4rem .9rem;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: .4rem;
    background: var(--bg-secondary, #fff);
    color: var(--text-primary, #111);
    font-size: .875rem;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}

.seller-page-btn:hover, .seller-page-btn.active {
    background: var(--color-primary, #2563eb);
    border-color: var(--color-primary, #2563eb);
    color: #fff;
}

.seller-page-ellipsis {
    padding: .4rem;
    color: var(--text-muted, #9ca3af);
}

/* Rating stars */
.stars-display {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star-filled { color: #f59e0b; }
.star-empty { color: #d1d5db; }

/* In-page utility classes */
.seller-breadcrumb { margin-bottom: 1.5rem; }
.seller-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.seller-tagline { color: var(--text-muted, #6b7280); font-size: .95rem; margin: .15rem 0 .35rem; }
.seller-icon-align { vertical-align: middle; }
.seller-stat-score { font-size: 1.25rem; }
.seller-about-card { margin-bottom: 2rem; padding: 1.5rem 2rem; }
.seller-about-title { font-size: 1rem; font-weight: 600; margin: 0 0 .5rem; }
.seller-about-desc { color: var(--text-secondary, #374151); margin: 0 0 1.25rem; line-height: 1.6; }
.seller-social-links { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.seller-social-link { display: flex; align-items: center; gap: .4rem; font-size: .875rem; text-decoration: none; }
.seller-social-link.website { color: var(--color-primary, #2563eb); }
.seller-social-link.twitter { color: #1da1f2; }
.seller-social-link.instagram { color: #e1306c; }
.seller-social-link.facebook { color: #1877f2; }
.seller-policy-section { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border-color, #e5e7eb); }
.seller-support-section { margin-top: 1rem; }
.seller-policy-title { font-size: .875rem; font-weight: 600; margin: 0 0 .35rem; }
.seller-policy-text { font-size: .85rem; color: var(--text-secondary, #374151); margin: 0; line-height: 1.6; }
.seller-filter-notice { color: var(--text-muted, #6b7280); margin-bottom: 1rem; font-size: .875rem; }

/* =============================================
   RESPONSIVE — seller profile
   ============================================= */

/* ---- ≤768px ---- */
@media (max-width: 768px) {
    .seller-profile-container {
        padding: 1rem;
    }

    /* Stack: avatar | info | actions vertically */
    .seller-header-body {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
        margin-top: 0;
        padding: 0 1rem 1.25rem;
    }

    /* Pull avatar up to overlap the banner */
    .seller-avatar-wrap {
        margin-top: -2.75rem;
    }

    .seller-avatar-lg {
        width: 68px;
        height: 68px;
        font-size: 1.6rem;
    }

    .seller-header-info {
        padding-top: .25rem;
        width: 100%;
    }

    .seller-header-name {
        font-size: 1.2rem;
        word-break: break-word;
    }

    .seller-header-meta {
        gap: .5rem .75rem;
        font-size: .8rem;
    }

    /* Actions row — full width, left-aligned */
    .seller-header-actions {
        padding-top: 0;
        width: 100%;
    }

    .btn-follow {
        width: 100%;
        justify-content: center;
    }

    /* Stats row — 3 columns */
    .seller-stats-row {
        padding: 1rem;
        grid-template-columns: repeat(3, 1fr);
        gap: .75rem;
    }

    .seller-stat-value { font-size: 1.2rem; }

    /* Products header — stack search below title */
    .seller-products-header {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

    .seller-search-form {
        width: 100%;
        flex-wrap: nowrap;
    }

    .seller-search-input {
        flex: 1 1 auto;
        min-width: 0;       /* remove the fixed 200px min-width */
        width: auto;
    }

    /* Products grid — 2 columns */
    .seller-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
    }

    /* Pagination — wrap & center */
    .seller-pagination {
        flex-wrap: wrap;
        gap: .35rem;
    }
}

/* ---- ≤480px ---- */
@media (max-width: 480px) {
    .seller-header-banner { height: 90px; }

    .seller-header-body {
        padding: 0 .75rem 1rem;
    }

    .seller-avatar-lg {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    /* Stats row — 2 columns on very small phones */
    .seller-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .seller-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .5rem;
    }

    .seller-product-body { padding: .65rem; }

    .seller-product-name { font-size: .85rem; }

    .seller-product-price { font-size: .9rem; }

    .btn-add-cart-sm {
        font-size: .75rem;
        padding: .35rem .6rem;
        gap: .25rem;
    }

    .seller-page-btn {
        padding: .35rem .65rem;
        font-size: .8rem;
    }
}
