#page-content.seller-page,
#page-content.seller-detail-page {
    background: #f4f6f1;
    color: #151b2d;
    font-family: 'Poppins', sans-serif;
}

.seller-page *,
.seller-detail-page * {
    box-sizing: border-box;
}

.seller-shell {
    margin: 0 auto;
    max-width: 1230px;
    padding: 0 22px;
    width: 100%;
}

.seller-hero,
.seller-detail-hero {
    background:
        radial-gradient(circle at 78% 22%, rgba(239, 162, 28, 0.52), transparent 31%),
        linear-gradient(135deg, #123222 0%, #1f5b3b 52%, #59b980 100%);
    color: #fff;
    padding: 52px 0 78px;
}

.seller-back {
    align-items: center;
    color: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    gap: 10px;
    margin-bottom: 18px;
    text-decoration: none;
}

.seller-back:hover {
    color: #fff;
}

.seller-hero h1,
.seller-detail-copy h1 {
    color: #fff;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 12px;
}

.seller-hero h1 span,
.seller-detail-copy h1 span {
    color: #f2a51d;
}

.seller-hero p,
.seller-detail-copy p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    margin: 0;
    max-width: 610px;
}

.seller-content,
.seller-detail-content {
    padding: 34px 0 54px;
}

.seller-layout {
    align-items: flex-start;
    display: grid;
    gap: 28px;
    grid-template-columns: 230px minmax(0, 1fr);
}

.seller-filter,
.seller-card,
.seller-empty,
.seller-summary-card,
.seller-profile-card,
.seller-products-count {
    background: #fff;
    border: 1px solid #e4e8e2;
    border-radius: 14px;
    box-shadow: 0 2px 7px rgba(20, 28, 42, 0.08);
}

.seller-filter,
.seller-summary-card {
    padding: 20px 18px 22px;
    position: sticky;
    top: 98px;
}

.seller-filter-title,
.seller-summary-title,
.seller-stat-row,
.seller-products-count {
    align-items: center;
    display: flex;
    gap: 10px;
}

.seller-filter-title,
.seller-summary-title {
    color: #151b2d;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

.seller-filter-title ion-icon,
.seller-summary-title ion-icon,
.seller-products-count ion-icon {
    color: #1e6742;
    font-size: 18px;
}

.seller-filter-label {
    color: #758093;
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.seller-filter-list {
    display: grid;
    gap: 8px;
}

.seller-filter-item,
.seller-stat-row {
    border-radius: 10px;
    min-height: 42px;
    padding: 0 12px;
}

.seller-filter-item {
    align-items: center;
    background: #1d633a;
    border: 0;
    color: #fff;
    display: grid;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    grid-template-columns: 18px 1fr auto;
    text-align: left;
    width: 100%;
}

.seller-filter-item small,
.seller-stat-row small {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.78;
}

.seller-main-head,
.seller-products-head {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.seller-main-head h2,
.seller-products-head h2 {
    color: #151b2d;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0;
}

.seller-products-count {
    color: #243047;
    font-size: 14px;
    font-weight: 700;
    min-height: 42px;
    padding: 0 14px;
}

.seller-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seller-card {
    animation: sellerCardIn .5s ease both;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.seller-card:hover {
    box-shadow: 0 16px 34px rgba(20, 28, 42, 0.14);
    color: inherit;
    transform: translateY(-4px);
}

.seller-card:nth-child(2n) {
    animation-delay: .04s;
}

.seller-card:nth-child(3n) {
    animation-delay: .08s;
}

.seller-card-image {
    background: #f7f7f5;
    display: block;
    height: 190px;
    overflow: hidden;
    position: relative;
}

.seller-card-image::after {
    background: linear-gradient(180deg, rgba(9, 22, 18, 0.02) 34%, rgba(8, 14, 17, 0.58) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.seller-card-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}

.seller-card:hover .seller-card-image img {
    transform: scale(1.04);
}

.seller-verified,
.seller-labels,
.seller-rating-pill {
    position: absolute;
    z-index: 1;
}

.seller-verified {
    align-items: center;
    background: #196038;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    gap: 5px;
    left: 12px;
    padding: 6px 10px;
    top: 12px;
}

.seller-labels {
    bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    left: 12px;
    right: 12px;
}

.seller-label {
    background: rgba(17, 26, 33, 0.72);
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    max-width: 100%;
    overflow: hidden;
    padding: 6px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-rating-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    color: #151b2d;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 5px;
    padding: 7px 10px;
    right: 12px;
    top: 12px;
}

.seller-rating-pill ion-icon {
    color: #f4ac18;
}

.seller-card-body {
    padding: 16px 14px 14px;
}

.seller-card-body h3 {
    color: #151b2d;
    display: -webkit-box;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0 0 10px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.seller-card-meta {
    border-bottom: 1px solid #edf0ec;
    color: #7b8596;
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.seller-card-action {
    align-items: center;
    color: #1d633a;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    text-decoration: none;
}

.seller-empty {
    align-items: center;
    color: #687385;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 260px;
    padding: 34px;
    text-align: center;
}

.seller-empty h3 {
    color: #151b2d;
    font-size: 20px;
    font-weight: 900;
    margin: 0;
}

.seller-detail-hero-inner {
    align-items: center;
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) 220px;
}

.seller-profile-card {
    animation: sellerCardIn .5s ease both;
    overflow: hidden;
    padding: 16px;
}

.seller-profile-image {
    aspect-ratio: 1 / 1;
    background: #f7f7f5;
    border-radius: 14px;
    overflow: hidden;
}

.seller-profile-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.seller-profile-rating {
    align-items: center;
    color: #151b2d;
    display: flex;
    font-size: 14px;
    font-weight: 900;
    gap: 6px;
    justify-content: center;
    padding-top: 14px;
}

.seller-profile-rating ion-icon {
    color: #f4ac18;
}

.seller-detail-grid {
    align-items: flex-start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 290px;
}

.seller-side-stack {
    display: grid;
    gap: 16px;
}

.seller-stat-row {
    align-items: center;
    background: #f5f7f4;
    color: #687385;
    display: grid;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    grid-template-columns: 20px 1fr auto;
    margin-bottom: 8px;
}

.seller-stat-row ion-icon {
    color: #1e6742;
    font-size: 18px;
}

.seller-products-panel {
    min-width: 0;
}

.seller-product-grid-wrap {
    animation: sellerCardIn .52s ease .06s both;
}

@keyframes sellerCardIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 860px) {
    .seller-layout,
    .seller-detail-grid,
    .seller-detail-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .seller-filter,
    .seller-summary-card {
        position: static;
    }

    .seller-filter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seller-profile-card {
        max-width: 240px;
    }
}

@media (max-width: 640px) {
    .seller-hero,
    .seller-detail-hero {
        padding: 34px 0 54px;
    }

    .seller-main-head,
    .seller-products-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .seller-grid,
    .seller-filter-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .seller-card-image {
        height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seller-card,
    .seller-profile-card,
    .seller-product-grid-wrap,
    .seller-card-image img {
        animation: none;
        transition: none;
    }
}

.seller-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.seller-card-body h3 a:hover {
    color: #1d633a;
}

/* Storefront seller detail */
html,
body:has(#page-content.seller-storefront-page) {
    background: #f6f7f8;
}

.seller-storefront-page {
    background: #f6f7f8;
    color: #151b2d;
    min-height: 100vh;
}

.seller-storefront-page [x-cloak] {
    display: none !important;
}

.seller-storefront-hero {
    background: #164729;
    isolation: isolate;
    min-height: 440px;
    overflow: hidden;
    padding: 18px 0 24px;
    position: relative;
}

.seller-storefront-hero-image,
.seller-storefront-hero-shade {
    inset: 0;
    position: absolute;
}

.seller-storefront-hero-image {
    background: #164729;
    display: block;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    width: 100%;
    z-index: 0;
}

.seller-storefront-hero-shade {
    background: linear-gradient(180deg, rgba(7, 12, 14, 0.08), rgba(7, 12, 14, 0.28) 44%, rgba(7, 12, 14, 0.78));
    pointer-events: none;
    z-index: 1;
}

.seller-storefront-hero-shell {
    position: relative;
    z-index: 2;
}

.seller-storefront-back {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(8, 18, 26, 0.16);
    color: #202b3c;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0;
    min-height: 40px;
    padding: 0 16px;
}

.seller-storefront-back:hover {
    color: #1d633a;
}

.seller-storefront-content {
    align-items: flex-end;
    bottom: 24px;
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    left: max(22px, calc((100vw - 1120px) / 2 + 22px));
    position: absolute;
    right: max(22px, calc((100vw - 1120px) / 2 + 22px));
    z-index: 2;
}

.seller-storefront-kicker,
.seller-storefront-rating,
.seller-storefront-tags,
.seller-storefront-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seller-storefront-kicker span {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    gap: 5px;
    min-height: 28px;
    padding: 0 11px;
}

.seller-storefront-kicker span:first-child {
    background: #1b6b3f;
}

.seller-storefront-content h1 {
    color: #fff;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.06;
    margin: 12px 0 10px;
}

.seller-storefront-rating {
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.seller-storefront-stars {
    color: #f0a51e;
    display: inline-flex;
    gap: 1px;
}

.seller-storefront-logo {
    background: #fff;
    border: 4px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(8, 18, 26, 0.24);
    flex: 0 0 132px;
    height: 132px;
    overflow: hidden;
    width: 132px;
}

.seller-storefront-logo img,
.seller-storefront-mini-logo img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.seller-storefront-body {
    padding: 24px 0 60px;
}

.seller-storefront-layout {
    align-items: flex-start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 300px;
}

.seller-storefront-products,
.seller-storefront-tab-panel {
    min-width: 0;
}

.seller-storefront-summary,
.seller-storefront-panel,
.seller-storefront-side-card {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    box-shadow: 0 2px 7px rgba(20, 28, 42, 0.08);
}

.seller-storefront-summary {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 14px 16px;
}

.seller-storefront-tags span {
    background: #f1f3f5;
    border-radius: 999px;
    color: #4b5563;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 12px;
}

.seller-storefront-action {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    color: #39455a;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    text-decoration: none;
}

button.seller-storefront-action {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.seller-storefront-action:hover {
    background: #f8faf9;
    color: #1d633a;
}

.seller-storefront-tabs {
    background: #fff;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    position: relative;
}

.seller-storefront-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    color: #6d7789;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    min-height: 54px;
    overflow: hidden;
    position: relative;
    transition: background-color 0.22s ease, color 0.22s ease;
}

.seller-storefront-tabs button::after {
    background: #1d633a;
    border-radius: 999px 999px 0 0;
    bottom: 0;
    content: "";
    height: 3px;
    left: 24%;
    opacity: 0;
    position: absolute;
    right: 24%;
    transform: scaleX(0.45);
    transform-origin: center;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.seller-storefront-tabs button:hover,
.seller-storefront-tabs button.active {
    background: #f7fbf8;
    color: #1d633a;
}

.seller-storefront-tabs button.active {
    border-bottom-color: transparent;
}

.seller-storefront-tabs button.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.seller-storefront-tab-body {
    min-height: 320px;
    overflow: hidden;
    padding: 24px;
}

.seller-storefront-tab-panel {
    animation: sellerStorefrontTabPanelIn 0.28s ease both;
}

.seller-storefront-tab-panel h2,
.seller-storefront-shop-card h2,
.seller-storefront-verified-head h3 {
    color: #151b2d;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0;
}

.seller-storefront-tab-panel h2 {
    font-size: 17px;
    margin-bottom: 12px;
}

.seller-storefront-copy {
    color: #556173;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 24px;
}

.seller-storefront-overview-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seller-storefront-overview-item {
    background: #f8f9fa;
    border-radius: 14px;
    color: #151b2d;
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 14px;
}

.seller-storefront-overview-item ion-icon {
    align-items: center;
    background: #e4f3e7;
    border-radius: 12px;
    color: #1d633a;
    display: inline-flex;
    font-size: 20px;
    height: 38px;
    padding: 9px;
    width: 38px;
}

.seller-storefront-overview-item span {
    color: #758093;
    font-size: 12px;
    font-weight: 700;
}

.seller-storefront-overview-item strong {
    color: #151b2d;
    font-size: 18px;
    font-weight: 900;
}

.seller-storefront-products-head {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.seller-storefront-section-label {
    color: #1d633a;
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.seller-storefront-products-head h2 {
    color: #151b2d;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
}

.seller-storefront-grid {
    animation: sellerStorefrontItemIn 0.34s ease both;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.seller-storefront-sidebar {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 98px;
}

.seller-storefront-side-card {
    padding: 20px;
}

.seller-storefront-shop-card {
    text-align: center;
}

.seller-storefront-mini-logo {
    border-radius: 18px;
    height: 116px;
    margin: 0 auto 14px;
    overflow: hidden;
    width: 116px;
}

.seller-storefront-shop-card h2 {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.seller-storefront-shop-card p {
    color: #7b8596;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.seller-storefront-mini-rating {
    align-items: center;
    background: #f5f7f4;
    border-radius: 999px;
    color: #151b2d;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
}

.seller-storefront-mini-rating ion-icon {
    color: #f4ac18;
}

.seller-storefront-verified-card {
    background: linear-gradient(155deg, #14552f, #1b683b);
    color: #fff;
}

.seller-storefront-verified-head {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.seller-storefront-verified-head span {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.seller-storefront-verified-head h3,
.seller-storefront-verified-head p {
    margin: 0;
}

.seller-storefront-verified-head h3,
.seller-storefront-verified-row strong {
    color: #fff;
}

.seller-storefront-verified-head p,
.seller-storefront-verified-row span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.seller-storefront-verified-row {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    min-height: 42px;
}

.seller-storefront-verified-row:last-child {
    border-bottom: 0;
}

.seller-storefront-verified-row strong {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.seller-storefront-verified-row strong::before {
    background: #10d9a3;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 10px;
    width: 10px;
}

.seller-storefront-empty {
    border-radius: 14px;
}

@keyframes sellerStorefrontTabPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sellerStorefrontItemIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .seller-storefront-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .seller-storefront-content {
        align-items: flex-start;
        flex-direction: column-reverse;
    }

    .seller-storefront-sidebar {
        order: -1;
        position: static;
    }
}

@media (max-width: 680px) {
    .seller-storefront-hero {
        min-height: 520px;
    }

    .seller-storefront-logo {
        flex-basis: 112px;
        height: 112px;
        width: 112px;
    }

    .seller-storefront-summary,
    .seller-storefront-products-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .seller-storefront-actions,
    .seller-storefront-action {
        width: 100%;
    }

    .seller-storefront-action {
        justify-content: center;
    }

    .seller-storefront-overview-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .seller-storefront-tab-body {
        padding: 20px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seller-storefront-tabs button,
    .seller-storefront-tabs button::after,
    .seller-storefront-tab-panel,
    .seller-storefront-grid {
        animation: none !important;
        transition: none !important;
    }
}
