.seller-page {
    --sp-title: #000;
    --sp-text: #444;
    --sp-muted: #767676;
    --sp-border: #e6e6e6;
    --sp-light: #f5f5f5;
    --sp-price: var(--pr-color-price, #c52c29);
    --sp-primary: #e8402f;
    --sp-cream: #FFF8EC;
    --sp-star: #ffb400;
    --sp-radius: 8px;

    color: var(--sp-text);
    font-size: 14px;
    line-height: 1.5;
}

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

.seller-page img {
    display: block;
    max-width: 100%;
}

.seller-page button {
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Section shell
   -------------------------------------------------------------------------- */
.seller-page-section {
    margin-bottom: 40px;
}

.seller-page-section-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: var(--sp-title);
}

.seller-page-section-title-inline {
    display: flex;
    align-items: baseline;
    grid-gap: 6px;
    margin-bottom: 0;
}

.seller-page-section-title-inline small {
    font-size: 16px;
    font-weight: 400;
    color: var(--sp-muted);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.seller-page-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-gap: 8px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    background: #fff;
    font-size: 16px;
    font-weight: 400;
    color: var(--sp-title);
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.seller-page-btn-dark {
    background: #16161a;
    border-color: #16161a;
    color: #fff;
}

.seller-page-btn-dark:hover {
    background: #000;
}

.seller-page-btn-outline:hover {
    border-color: var(--sp-title);
}

.seller-page-btn-primary {
    height: 48px;
    padding: 0 40px;
    background: var(--sp-primary);
    border-color: var(--sp-primary);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.seller-page-btn-primary:hover {
    background: #cf3323;
    border-color: #cf3323;
}

.seller-page-btn.is-following {
    background: #fff;
    border-color: var(--sp-primary);
    color: var(--sp-primary);
}

.seller-page-btn.is-following>svg {
    display: none;
}

.seller-page-btn.is-following:hover {
    background: #fef4f3;
    border-color: var(--sp-primary);
    color: var(--sp-primary);
}

.seller-page-btn.is-loading {
    pointer-events: none;
    opacity: .85;
}

.seller-page-btn.is-loading>svg,
.seller-page-btn.is-loading>.js-seller-page-follow-text {
    visibility: hidden;
}

.seller-page-btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: seller-page-spin .6s linear infinite;
}

.seller-page-btn-primary.is-loading::after {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
}

@keyframes seller-page-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .seller-page-btn.is-loading::after {
        animation-duration: 1.8s;
    }
}

/* --------------------------------------------------------------------------
   Hero / cover
   -------------------------------------------------------------------------- */
.seller-page-hero {
    padding-top: 16px;
    margin-bottom: 32px;
}

.seller-page-cover {
    position: relative;
    overflow: hidden;
    border-radius: var(--sp-radius);
    background: var(--sp-light);
}

.seller-page-cover-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.seller-page-hero-bar {
    display: flex;
    align-items: center;
    grid-gap: 20px;
    padding: 20px 32px 10px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    background-color: #fff;
    border-radius: 32px 32px 0 0;
}

.seller-page-avatar {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
    padding: 4px;
    border-radius: var(--sp-radius);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    margin-top: -50px;
}

.seller-page-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.seller-page-hero-info {
    flex: 1 1 auto;
    min-width: 0;
}

.seller-page-hero-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    grid-gap: 10px;
}

.seller-page-hero-name-row {
    display: flex;
    align-items: center;
    grid-gap: 10px;
    flex-wrap: wrap;
}

.seller-page-hero-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--sp-title);
}

.seller-page-verified {
    display: inline-flex;
    align-items: center;
    grid-gap: 4px;
    font-size: 16px;
    font-weight: 400;
    color: #17803D;
    padding: 6px 10px;
    border-radius: 24px;
    background: var(--Green-50, #F1FDF4);
}

.seller-page-hero-meta {
    display: flex;
    align-items: center;
    grid-gap: 6px;
    font-size: 16px;
    line-height: 1;
}

.seller-page-rating-stars {
    display: inline-flex;
    align-items: center;
    grid-gap: 1px;
}

.seller-page-star {
    color: #dcdcdc;
}

.seller-page-star.is-on {
    color: var(--sp-star);
}

.seller-page-hero-stats {
    display: flex;
    align-items: center;
    grid-gap: 8px;
    padding-left: 12px;
}

.seller-page-join {
    padding-left: 12px;
}

.seller-page-ships {
    display: inline-flex;
    align-items: center;
    grid-gap: 6px;
    font-size: 16px;
    color: var(--sp-title);
    padding: 6px 8px;
    border-radius: 24px;
    background: var(--Neutral-50, #FAFAFA);
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Slider (Swiper)
   -------------------------------------------------------------------------- */
.seller-page-slider {
    position: relative;
}

/* Swiper sizes the slides; keep them stretched so cards line up. */
.seller-page-swiper {
    width: 100%;
}

.seller-page-swiper:has(.review-spotlight-slider-item) {
    padding: 2px;
}

.seller-page-swiper .swiper-slide {
    height: auto;
}

/* Before Swiper boots, keep the raw markup from stacking vertically. */
.seller-page-swiper .swiper-wrapper {
    display: flex;
}

.seller-page-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--sp-border);
    border-radius: 50%;
    background: #fff;
    color: var(--sp-title);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
}

.seller-page-slider-prev {
    left: 0;
}

.seller-page-slider-next {
    right: 0;
}

/* Matches `disabledClass` / `lockClass` passed to Swiper's navigation. */
.seller-page-slider-arrow.is-disabled {
    opacity: .3;
    pointer-events: none;
}

.seller-page-slider-arrow.is-locked {
    display: none;
}

/* --------------------------------------------------------------------------
   Collections
   -------------------------------------------------------------------------- */
.seller-page-collection-item {
    width: 100%;
}

.seller-page-collection-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--sp-radius);
    background: var(--sp-light);
}

.seller-page-collection-link img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform .3s ease;
}

.seller-page-collection-link:hover img {
    transform: scale(1.04);
}

.seller-page-collection-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 100%);
}

.seller-page-collection-name {
    position: absolute;
    left: 22px;
    bottom: 14px;
    z-index: 2;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

/* --------------------------------------------------------------------------
   About the artist
   -------------------------------------------------------------------------- */
.seller-page-about {
    display: flex;
    align-items: stretch;
    grid-gap: 28px;
    border-radius: var(--sp-radius);
    background: var(--sp-cream);
    overflow: hidden;
}

.seller-page-about-gallery {
    flex: 0 0 44%;
    position: relative;
    align-self: stretch;
    min-height: 320px;
    border-radius: var(--sp-radius);
}

/* --- multi-image: tilted masonry ---------------------------------------- */
.seller-page-about-gallery-inner {
    position: absolute;
    right: 40px;
    bottom: -48px;
    width: 106%;
    transform: rotate(-14deg);
    column-count: 4;
    column-gap: 12px;
}

.seller-page-about-gallery-inner img {
    width: 100%;
    margin-bottom: 12px;
    object-fit: cover;
    border-radius: 10px;
    -webkit-column-break-inside: avoid;
    break-inside: avoid;
}

.seller-page-about-gallery-inner img:nth-child(4n + 1) {
    height: 110px;
}

.seller-page-about-gallery-inner img:nth-child(4n + 2) {
    height: 150px;
}

.seller-page-about-gallery-inner img:nth-child(4n + 3) {
    height: 106px;
}

.seller-page-about-gallery-inner img:nth-child(4n + 4) {
    height: 178px;
}

.seller-page-about-gallery:has(img:only-child) .seller-page-about-gallery-inner {
    position: static;
    width: 100%;
    height: 100%;
    transform: none;
    column-count: auto;
}

.seller-page-about-gallery:has(img:only-child) img {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    border-radius: var(--sp-radius);
    box-shadow: none;
    max-height: 320px;
}

.seller-page-about-content {
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
    padding: 0 24px 0 0;
}

.seller-page-about-label {
    font-size: 14px;
    color: var(--sp-price);
}

.seller-page-about-name {
    margin: 4px 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--sp-title);
    line-height: 1.2;
    text-transform: capitalize;
}

.seller-page-about-text {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--sp-text);
    line-height: 1.7;
}

.seller-page-about-text:last-child {
    margin-bottom: 0;
}

.seller-page-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.seller-page-sort-list {
    display: flex;
    align-items: center;
    grid-gap: 8px;
    margin: 0;
    list-style: none;
}

.seller-page-sort-item {
    margin: 0;
}

.seller-page-sort-link {
    display: flex;
    padding: 6px 14px;
    font-size: 16px;
    color: var(--sp-text);
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
}

.seller-page-sort-item.is-active .seller-page-sort-link,
.seller-page-sort-link:hover {
    background: #0A0A0A;
    color: #fff;
}

.seller-page-products-body {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-gap: 28px;
}

/* Seller chưa có sản phẩm nào: JS ẩn sidebar category (xem setFiltersVisible
   trong inc/seller/product-script.blade.php). Aside bị display:none thì biến
   mất khỏi grid, khiến .seller-page-products-main tụt vào cột 200px và empty
   state bị bóp còn một dải hẹp. Cho về 1 cột để icon + text căn giữa đúng. */
.seller-page-products-body.is-no-filter {
    grid-template-columns: minmax(0, 1fr);
}

.seller-page-sidebar-title {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--sp-title);
    line-height: 1;
}

.seller-page-category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.seller-page-category-item {
    margin: 0;
}

.seller-page-category-item+.seller-page-category-item {
    margin-top: 8px;
}

.seller-page-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 8px;
    padding: 8px;
    font-size: 16px;
    color: var(--sp-text);
    line-height: 1;
    border-radius: 11px;
}

.seller-page-category-link:hover {
    color: var(--sp-title);
}

.seller-page-category-item.is-active .seller-page-category-link,
.seller-page-category-link:hover {
    background: var(--Orange-50, #FFF8EC);
    color: #F60;
}

.seller-page-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px 16px;
    opacity: 1;
    transition: opacity .15s ease;
}

.seller-page-products-main.is-loading .seller-page-product-grid {
    opacity: .5;
}

/* Đang hiện skeleton thì thôi làm mờ — chính skeleton đã là tín hiệu đang chờ. */
.seller-page-products-main.is-loading .seller-page-product-grid.is-skeleton {
    opacity: 1;
}

/* Dòng "không có sản phẩm" do JS chèn vào giữa lưới — phải chiếm trọn hàng,
   nếu không nó co lại bằng 1 ô. Nằm trong .seller-page-product-grid nên vẫn
   được mờ đi cùng lúc với sản phẩm khi đang nạp. */
.seller-page-product-grid .no-result-wrapper,
.seller-page-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 24px;
    box-sizing: border-box;
    width: 100%;
}

.seller-page-empty-icon-box {
    width: 88px;
    height: 88px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFF8EC 0%, #FFEED4 100%);
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.1);
    position: relative;
}

.seller-page-empty-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--sp-title, #111);
    line-height: 1.3;
}

.seller-page-empty-desc {
    margin: 0 0 24px;
    max-width: 440px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--sp-muted, #666);
}

.seller-page-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.seller-page-empty-actions .seller-page-btn {
    height: 42px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.seller-page-empty-actions .seller-page-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.seller-page-empty-actions .seller-page-btn:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Khung chờ (skeleton)
   .skeleton-box là nền shimmer dùng chung, mỗi khối tự quy định kích thước:
   - Lưới sản phẩm: inc/seller/product-script.blade.php
   - "Top picks for you": inc/seller/top-pick-for-you-product-script.blade.php
   -------------------------------------------------------------------------- */
.seller-page .skeleton-box {
    background: #eee;
    background-image: linear-gradient(90deg, #eee 0%, #f5f5f5 40%, #eee 80%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: seller-page-shimmer 1.4s ease infinite;
    border-radius: 4px;
}

/* Cùng tỉ lệ vuông với ảnh sản phẩm thật, để lúc thay không nhảy chiều cao. */
.js-seller-toppick-skeleton .seller-toppick-skeleton-image,
.seller-page-skeleton .seller-page-skeleton-image {
    width: 100%;
    padding-top: 100%;
}

.js-seller-toppick-skeleton .seller-toppick-skeleton-line,
.seller-page-skeleton .seller-page-skeleton-line {
    height: 12px;
    margin-top: 10px;
}

.js-seller-toppick-skeleton .seller-toppick-skeleton-line.short,
.seller-page-skeleton .seller-page-skeleton-line.short {
    width: 60%;
}

@keyframes seller-page-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seller-page .skeleton-box {
        animation: none;
    }
}

.seller-page-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 24px;
    margin-top: 24px;
    font-size: 16px;
}

.seller-page-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    grid-gap: 4px;
    padding: 12px 16px;
    background: #fff;
    color: var(--sp-title);
    border-radius: 24px;
    border: 1px solid var(--Neutral-300, #D4D4D4);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
}

.seller-page-page-btn:hover:not([disabled]) {
    border-color: var(--sp-title);
}

.seller-page-page-btn[disabled] {
    opacity: .45;
    cursor: default;
}

.seller-page-cta {
    padding: 32px 24px;
    border-radius: var(--sp-radius);
    background: var(--sp-cream);
    text-align: center;
}

.seller-page-cta-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--sp-title);
}

.seller-page-cta-text {
    max-width: 460px;
    margin: 8px auto 18px;
    font-size: 16px;
    color: var(--sp-text);
}

@media (max-width: 1200px) {
    .seller-page-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .seller-page-slider-prev {
        left: 4px;
    }

    .seller-page-slider-next {
        right: 4px;
    }
}

@media (max-width: 960px) {
    .seller-page-category-list {
        display: flex;
        flex-direction: column;
        grid-gap: 8px 16px;
    }

    .seller-page-about {
        flex-direction: column;
    }

    .seller-page-about-gallery {
        flex: 0 0 auto;
        min-height: 240px;
    }
}

@media (max-width: 767px) {
    .seller-page-about-content {
        padding: 0;
    }

    .seller-page-product-grid .no-result-wrapper,
    .seller-page-empty-state {
        padding: 40px 16px;
    }

    .seller-page-empty-icon-box {
        width: 72px;
        height: 72px;
        margin-bottom: 16px;
    }

    .seller-page-empty-icon-box svg {
        width: 38px;
        height: 38px;
    }

    .seller-page-empty-title {
        font-size: 18px;
    }

    .seller-page-empty-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

.seller-page-mobile {
    --sp-gutter: 16px;
    font-size: 14px;
}

.seller-page-mobile .seller-page-section {
    padding: 0 var(--sp-gutter);
    margin-bottom: 24px;
}

.seller-page-mobile .seller-page-section-flush {
    padding: 0;
}

.seller-page-mobile .seller-page-section-title {
    margin-bottom: 12px;
    font-size: 20px;
}

.seller-page-mobile .product-item-box {
    padding: 0;
}

.seller-page-mobile .seller-page-collection-wrapper {
    display: flex;
    align-items: stretch;
    grid-gap: 20px;
    overflow-x: scroll;
    padding-left: var(--sp-gutter);
}

.seller-page-collection-section .seller-page-section-title {
    padding: 0 var(--sp-gutter);
}

.seller-page-mobile .seller-page-collection-item {
    width: 60vw;
    min-width: 60vw;
}

/* Hero -------------------------------------------------------------------- */
.seller-page-mobile .seller-page-hero {
    padding: 0;
    margin-bottom: 24px;
}

.seller-page-mobile .seller-page-cover {
    border-radius: 0;
}

.seller-page-mobile .seller-page-cover-image {
    height: 170px;
}

.seller-page-mobile .seller-page-hero-bar {
    grid-gap: 12px;
    padding: 8px 12px 0;
    margin-top: -30px;
    align-items: flex-start;
}

.seller-page-mobile .seller-page-avatar {
    width: 80px;
    height: 80px;
    margin-top: -25px;
}

.seller-page-mobile .seller-page-hero-name-row {
    flex: 1 1 auto;
    min-width: 0;
    grid-gap: 6px;
    padding-bottom: 4px;
}

.seller-page-mobile .seller-page-hero-name {
    font-size: 20px;
}

.seller-page-mobile .seller-page-verified {
    font-size: 15px;
}

.seller-page-mobile .seller-page-hero-meta {
    margin-bottom: 10px;
}

.seller-page-mobile .seller-page-hero-stats {
    padding-left: 0;
    font-size: 16px;
}

.seller-page-mobile .seller-page-divider {
    color: #d0d0d0;
}

.seller-page-mobile .seller-page-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    padding: 14px 12px 0;
}

.seller-page-mobile .seller-social-list {
    margin-top: 8px;
}

.seller-page-mobile .seller-page-btn {
    width: 100%;
    height: 42px;
    padding: 0 12px;
}

.seller-page-mobile .seller-page-btn-primary {
    width: auto;
    min-width: 200px;
}

.seller-page-mobile .seller-page-slider-arrow {
    display: none;
}

.seller-page-mobile .seller-page-collection-link img {
    height: 150px;
}

.seller-page-mobile .seller-page-collection-name {
    left: 12px;
    bottom: 10px;
    font-size: 18px;
}

.seller-page-mobile .seller-page-about {
    flex-direction: column;
    grid-gap: 16px;
    padding: 16px var(--sp-gutter) 24px;
    border-radius: 0;
}

.seller-page-mobile .seller-page-about-gallery {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    border-radius: 0;
    margin: 0 calc(var(--sp-gutter) * -1);
}

.seller-page-mobile .seller-page-about-gallery-inner {
    position: static;
    width: auto;
    transform: none;
    column-count: auto;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 104px);
    grid-auto-columns: min-content;
    grid-gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px var(--sp-gutter);
}

.seller-page-mobile .seller-page-about-gallery-inner::-webkit-scrollbar {
    display: none;
}

.seller-page-mobile .seller-page-about-gallery-inner img {
    height: 100%;
    max-width: none;
    margin-bottom: 0;
    border-radius: 12px;
}

.seller-page-mobile .seller-page-about-gallery-inner img:nth-child(3n + 3) {
    grid-row: span 2;
}

.seller-page-mobile .seller-page-about-gallery-inner img:nth-child(6n + 1),
.seller-page-mobile .seller-page-about-gallery-inner img:nth-child(6n + 2) {
    width: 152px;
}

.seller-page-mobile .seller-page-about-gallery-inner img:nth-child(6n + 3) {
    width: 124px;
}

.seller-page-mobile .seller-page-about-gallery-inner img:nth-child(6n + 4),
.seller-page-mobile .seller-page-about-gallery-inner img:nth-child(6n + 5) {
    width: 178px;
}

.seller-page-mobile .seller-page-about-gallery-inner img:nth-child(6n + 6) {
    width: 146px;
}

.seller-page-mobile .seller-page-about-gallery:has(img:only-child) .seller-page-about-gallery-inner {
    display: block;
    padding: 0 var(--sp-gutter);
}

.seller-page-mobile .seller-page-about-gallery:has(img:only-child) img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.seller-page-mobile .seller-page-about-name {
    font-size: 20px;
}

/* All products ------------------------------------------------------------ */
.seller-page-mobile .seller-page-products-head {
    align-items: center;
    margin-bottom: 12px;
}

.seller-page-mobile .seller-page-products-head .seller-page-section-title {
    margin-bottom: 0;
}

.seller-page-filter-actions {
    display: flex;
    align-items: center;
    grid-gap: 8px;
}

.seller-page-filter-btn {
    display: inline-flex;
    align-items: center;
    grid-gap: 4px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    background: #fff;
    font-size: 16px;
    color: var(--sp-title);
}

.seller-page-mobile .seller-page-product-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
}

.seller-page-mobile .seller-page-product-name {
    font-size: 13px;
}

.seller-page-mobile .seller-page-pagination {
    grid-gap: 12px;
    margin-top: 20px;
}

.seller-page-mobile .seller-page-product-price-box {
    flex-wrap: wrap;
    grid-row-gap: 2px;
}

.seller-page-mobile .seller-page-product-price-box .product-price {
    width: 100%;
}

/* CTA + USP --------------------------------------------------------------- */
.seller-page-mobile .seller-page-cta {
    padding: 24px 16px;
}

.seller-page-mobile .seller-page-cta-title {
    font-size: 18px;
}

.rating-cover {
    --rating-star: 5;
    width: 78px;
    min-width: 78px;
    height: 14px;
    display: block;
    background-color: #ccc;
    background: linear-gradient(90deg, #ffbc59 0, #ffbc59 calc(var(--rating-star) * 20%), #d6dadf calc(var(--rating-star) * 20%), #d6dadf 100%);
    -webkit-mask-image: url(/assets/images/star-list.svg);
    mask-image: url(/assets/images/star-list.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-image: url(/assets/images/star-list.svg);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    position: relative
}

.seller-page-hero-stats-row {
    display: flex;
    align-items: center;
    font-size: 16px;
    grid-gap: 12px;
    color: var(--sp-title);
    margin: 6px 0;
}

.seller-page-hero-stats-row>div {
    position: relative;
}

.seller-page-hero-stats::before,
.seller-page-join::before {
    content: "";
    width: 1px;
    height: 14px;
    background: #D4D4D4;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

.seller-page-rating-count {
    color: var(--sp-muted);
}

.seller-page-product-price-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    grid-gap: 2px 6px;
}

.seller-page-product-price-box .product-high-price,
.seller-page-product-price-box .percent-off,
.product-item-box:not(.price-highlight) .seller-page-product-price-box .percent-off {
    margin-left: 0;
}

.seller-page-product-price-box .percent-off {
    margin-top: 0;
}

body:has(.seller-page) .md-product-viewed-price {
    flex-wrap: wrap;
    grid-gap: 0 4px;
}

body:has(.seller-page) .md-product-viewed-price small {
    padding-left: 0 !important;
}

body:has(.seller-page) .md-product-viewed-list .md-product-title {
    margin-bottom: 0;
}

.review-spotlight-button-gr {
    width: max-content;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
}

.review-spotlight-button-gr .seller-page-slider-arrow {
    position: static;
    transform: unset;
    width: 40px;
    height: 40px;
}

.seller-page-might-love-wrapper .seller-page-section-title {
    padding: 0 var(--sp-gutter);
}

.seller-page-might-love-content {
    display: flex;
    overflow-x: auto;
    grid-gap: 12px;
    padding-left: var(--sp-gutter);
}

.seller-page-might-love-content .product-item-box {
    width: calc(50vw - 24px);
    min-width: calc(50vw - 24px);
    padding: 0;
}

.review-spotlight-wrapper .seller-page-section-title {
    padding: 0 var(--sp-gutter);
}

.review-spotlight-wrapper .review-spotlight-slider {
    padding: 2px 2px 2px var(--sp-gutter);
}

.review-spotlight-wrapper .review-spotlight-slider-item-product {
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Bottom sheet â€” Category / Sort (mobile)
   -------------------------------------------------------------------------- */
.seller-page-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483640;
    background: rgba(11, 11, 11, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.seller-page-sheet-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.seller-page-sheet {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 80vh;
    z-index: 2147483641;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .16);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
}

.seller-page-sheet.is-open {
    transform: translateY(0);
    visibility: visible;
}

.seller-page-sheet-handle {
    flex: 0 0 auto;
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 4px;
    background: #d4d4d4;
}

.seller-page-sheet-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sp-border);
}

.seller-page-sheet-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sp-title);
}

.seller-page-sheet-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--sp-text);
}

.seller-page-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
    max-height: 86vh;
}

/* Sort options ------------------------------------------------------------ */
.seller-page-sheet-option-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.seller-page-sheet-option {
    margin: 0;
}

.seller-page-sheet-option+.seller-page-sheet-option {
    margin-top: 8px;
}

.seller-page-sheet-option-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 8px;
    padding: 12px 8px;
    font-size: 16px;
    line-height: 1;
    color: var(--sp-text);
    border-radius: 11px;
}

.seller-page-sheet-option.is-active .seller-page-sheet-option-link {
    background: var(--Orange-50, #FFF8EC);
    color: #F60;
    font-weight: 600;
}

.seller-page-sheet-check {
    opacity: 0;
}

.seller-page-sheet-option.is-active .seller-page-sheet-check {
    opacity: 1;
}

.seller-page-sheet .seller-page-category-link {
    padding: 12px 8px;
}

body.seller-page-sheet-lock {
    overflow: hidden;
}

.seller-page-swiper:not(.swiper-initialized) {
    opacity: 0;
    visibility: hidden;
}

.seller-page-sidebar {
    position: sticky;
    top: 10px;
    height: max-content;
    background: #fff;
    z-index: 9;
}

.seller-page-mobile .seller-page-page-btn span {
    display: none;
}

.seller-page-mobile .seller-page-page-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
}

.seller-social-item.seller-social-website {
    width: 32px;
    height: 32px;
    background-color: #1973d5;
    display: flex;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.seller-social-list {
    display: flex;
    align-items: center;
    grid-gap: 8px;
}

.seller-page-hero-bottom {
    display: flex;
    align-items: center;
    grid-gap: 8px;
    margin-top: 8px;
}

body:has(.seller-page-mobile) #product-viewed-content {
    padding: 0 !important;
}

#product-viewed-content h3.md-product-viewed-heading {
    margin-bottom: 6px !important;
}

@media (max-width: 767px) {
    body:has(.seller-page) #product-viewed-content {
        padding: 0 0 16px 0 !important;
    }
}

@media (min-width: 761px) {
    #product-viewed-content .md-product-viewed-item .product-info-box {
        grid-gap: 4px;
    }

    /* grid-gap co lại kéo theo cả nút Quick Add, bù margin cho đúng 12px như cũ. */
    #product-viewed-content .add-product-to-cart-box {
        margin-top: 8px;
    }
}
