/* ==========================================================
   SEN DARAL — SELLER PROFILE
   Ultra Premium Marketplace
   Compatible avec sellers/view.php
   ========================================================== */

.seller-page {
    --seller-primary: #0d4f45;
    --seller-primary-dark: #093a34;
    --seller-secondary: #176f62;
    --seller-accent: #f59e0b;
    --seller-success: #16a34a;
    --seller-danger: #dc2626;

    --seller-text: #172033;
    --seller-muted: #6b7280;
    --seller-soft: #f5f8f7;
    --seller-border: #e5e9ee;
    --seller-card: #ffffff;

    min-height: 100vh;
    background: #f5f7fa;
    color: var(--seller-text);
}


/* ==========================================================
   HERO
   ========================================================== */

.seller-hero {
    position: relative;
    overflow: visible;

    background: #fff;

    border: 1px solid var(--seller-border);
    border-radius: 28px;

    box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.08);

    margin-bottom: 30px;
}

/* ----------------------------------------------------------
   PREMIUM COVER
   ---------------------------------------------------------- */

/* ==========================================================
   PREMIUM HERO BACKGROUND
   ========================================================== */

.seller-hero-bg {
    position: relative;

    height: 250px;

    overflow: hidden;

    border-radius: 28px 28px 0 0;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(245, 158, 11, 0.22),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 90%,
            rgba(255, 255, 255, 0.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #062f2a 0%,
            #0d4f45 42%,
            #126b5d 72%,
            #164c43 100%
        );
}

/* grande forme décorative */
.seller-hero-bg::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    top: -330px;
    right: -90px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.10),
            rgba(245, 158, 11, 0.08)
        );

    border: 1px solid rgba(255, 255, 255, 0.06);

    transform: rotate(18deg);
}

/* deuxième forme */
.seller-hero-bg::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    left: 32%;
    bottom: -220px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.055);

    box-shadow:
        0 0 100px rgba(255, 255, 255, 0.04);
}



/* ==========================================================
   HERO CONTENT — PREMIUM FLOATING CARD
   ========================================================== */

.seller-hero-content {
    position: relative;
    z-index: 10;

    display: flex;
    align-items: flex-start;
    gap: 24px;

    margin-top: -78px;
    margin-bottom: 28px;

    padding: 28px 30px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 26px;

    box-shadow:
        0 20px 55px rgba(15, 23, 42, 0.12),
        0 5px 18px rgba(15, 23, 42, 0.06);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        box-shadow .3s ease,
        transform .3s ease;
}

.seller-hero-content:hover {
    box-shadow:
        0 25px 65px rgba(15, 23, 42, 0.15),
        0 8px 22px rgba(15, 23, 42, 0.07);
}


/* ==========================================================
   AVATAR
   ========================================================== */

.seller-avatar-wrapper {
    position: relative;

    flex: 0 0 auto;

    margin-top: -78px;

    z-index: 20;
}

.seller-avatar {
    width: 145px;
    height: 145px;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    border: 6px solid #fff;

    background: #fff;

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.18),
        0 4px 12px rgba(15, 23, 42, 0.08);
}

.seller-avatar-placeholder {
    width: 145px;
    height: 145px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 6px solid #fff;

    background:
        linear-gradient(
            135deg,
            #edf7f4,
            #d5ebe6
        );

    color: var(--seller-primary);

    font-size: 48px;
    font-weight: 800;

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.18);
}


/* ==========================================================
   VERIFIED ICON
   ========================================================== */

.seller-avatar-wrapper .seller-verified {
    position: absolute;

    right: 7px;
    bottom: 13px;

    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff;
    color: #0ea765;

    border: 3px solid #fff;

    box-shadow:
        0 5px 15px rgba(15, 23, 42, .15);

    font-size: 17px;
}


/* ==========================================================
   SELLER IDENTITY
   ========================================================== */

.seller-identity {
    min-width: 0;
    flex: 1;

    padding-bottom: 3px;
}

.seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 11px;

    margin-bottom: 9px;

    border-radius: 999px;

    background: #edf7f4;
    color: var(--seller-primary);

    font-size: 11px;
    font-weight: 800;

    border: 1px solid rgba(13, 79, 69, 0.08);
}

.seller-name {
    margin: 0 0 7px;

    font-size: 28px;
    line-height: 1.15;

    font-weight: 850;

    letter-spacing: -0.025em;

    color: var(--seller-text);
}

.seller-bio {
    max-width: 620px;

    margin: 0 0 12px;

    color: #687285;

    font-size: 13px;
    line-height: 1.65;
}

.seller-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px;

    color: var(--seller-muted);

    font-size: 12px;
    font-weight: 600;
}

.seller-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.seller-meta i {
    color: var(--seller-secondary);
}


.seller-name-check {
    margin-left: 5px;

    color: #0ea765 !important;

    font-size: 20px;
}


/* ==========================================================
   HERO ACTIONS
   ========================================================== */

.seller-hero-actions {
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex: 0 0 auto;
    min-width: 0;
    padding-bottom: 2px;
}

.seller-btn {
    min-height: 43px;

    padding: 0 16px;

    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 800;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.seller-btn-light {
    color: var(--seller-text);

    background: #fff;

    border: 1px solid #e4e8ef;

    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.04);
}

.seller-btn-light:hover {
    color: var(--seller-primary);

    border-color: #d4dbe5;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.08);
}

.seller-btn-primary {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #0d4f45,
            #176f62
        );

    border: 1px solid #0d4f45;

    box-shadow:
        0 8px 20px rgba(13, 79, 69, 0.22);
}

.seller-btn-primary:hover {
    color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 12px 26px rgba(13, 79, 69, 0.28);
}

/* ==========================================================
   STATISTICS
   ========================================================== */

.seller-stats-section {
    background: #fff;

    border-top: 1px solid #e9edf1;
    border-bottom: 1px solid #e9edf1;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, .035);
}

.seller-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.seller-stat-card {
    min-height: 86px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    padding: 18px 15px;
}

.seller-stat-card + .seller-stat-card {
    border-left: 1px solid #edf0f3;
}

.seller-stat-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #edf7f4;

    color: var(--seller-primary);

    font-size: 14px;
}

.seller-stat-card strong {
    display: block;

    margin: 0;

    color: #172033;

    font-size: 20px;
    line-height: 1.1;
    font-weight: 850;
}

.seller-stat-card > div:last-child span {
    display: block;

    margin-top: 4px;

    color: #8a93a3;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .06em;
}


/* ==========================================================
   MAIN
   ========================================================== */

.seller-main {
    padding: 30px 0 80px;

    background:
        linear-gradient(
            180deg,
            #f5f7fa 0%,
            #f7f9fb 100%
        );
}

.seller-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        285px;

    gap: 28px;

    align-items: start;
}


/* ==========================================================
   SECTION HEADING
   ========================================================== */

.seller-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

.seller-section-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: var(--seller-secondary);

    font-size: 10px;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .1em;
}

.seller-section-heading h2 {
    margin: 0;

    color: #172033;

    font-size: 22px;
    line-height: 1.25;

    font-weight: 850;

    letter-spacing: -.02em;
}

.seller-count {
    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    border-radius: 999px;

    background: #edf7f4;

    color: var(--seller-primary);

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}


/* ==========================================================
   ADS GRID
   ========================================================== */

.seller-ads-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


/* ==========================================================
   AD CARD
   ========================================================== */

.seller-ad-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #e4e8ed;

    border-radius: 17px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, .055);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.seller-ad-card:hover {
    transform: translateY(-5px);

    border-color: #d3dcd9;

    box-shadow:
        0 16px 35px rgba(15, 23, 42, .10);
}


/* ==========================================================
   AD IMAGE
   ========================================================== */

.seller-ad-image {
    position: relative;

    display: block;

    height: 215px;

    overflow: hidden;

    background: #e9eef0;

    text-decoration: none;
}

.seller-ad-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .45s ease;
}

.seller-ad-card:hover .seller-ad-image img {
    transform: scale(1.045);
}


/* ==========================================================
   FEATURED
   ========================================================== */

.seller-ad-featured {
    position: absolute;

    top: 12px;
    left: 12px;

    display: inline-flex;

    align-items: center;
    gap: 5px;

    padding: 6px 9px;

    border-radius: 999px;

    background: rgba(255,255,255,.94);

    color: var(--seller-primary);

    font-size: 10px;
    font-weight: 850;

    box-shadow:
        0 5px 15px rgba(0,0,0,.09);

    backdrop-filter: blur(8px);
}

.seller-ad-featured i {
    color: var(--seller-accent);
}


/* ==========================================================
   AD STATUS
   ========================================================== */

.seller-ad-status {
    position: absolute;

    right: 12px;
    bottom: 12px;

    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(236,253,243,.96);

    color: #15803d;

    font-size: 10px;
    font-weight: 850;

    box-shadow:
        0 5px 14px rgba(0,0,0,.08);

    backdrop-filter: blur(8px);
}

.seller-ad-status.is-sold {
    background: rgba(254,226,226,.96);

    color: #b91c1c;
}


/* ==========================================================
   AD BODY
   ========================================================== */

.seller-ad-body {
    padding: 16px;
}

.seller-ad-category {
    margin-bottom: 5px;

    color: var(--seller-secondary);

    font-size: 9px;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.seller-ad-title {
    margin: 0 0 8px;

    color: #172033;

    font-size: 15px;
    line-height: 1.35;

    font-weight: 850;
}

.seller-ad-title a {
    color: inherit;

    text-decoration: none;
}

.seller-ad-title a:hover {
    color: var(--seller-primary);
}


/* ==========================================================
   LOCATION
   ========================================================== */

.seller-ad-location {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    margin-bottom: 12px;

    color: #7b8493;

    font-size: 10px;
    font-weight: 600;
}

.seller-ad-location i {
    color: var(--seller-secondary);
}


/* ==========================================================
   PRICE / NEGOTIABLE
   ========================================================== */

.seller-ad-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 4px;
}

.seller-ad-price {
    color: var(--seller-primary);

    font-size: 19px;
    font-weight: 900;
}

.seller-ad-price small {
    margin-left: 3px;

    color: #7b8493;

    font-size: 9px;
    font-weight: 700;
}

.seller-ad-negotiable {
    display: inline-flex;

    align-items: center;

    padding: 5px 8px;

    border-radius: 999px;

    background: #fff7ed;

    color: #c2410c;

    font-size: 9px;
    font-weight: 850;
}


/* ==========================================================
   AD STATS
   ========================================================== */

.seller-ad-stats {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 13px;
    padding-top: 11px;

    border-top: 1px solid #f0f2f4;

    color: #9aa2ae;

    font-size: 9px;
    font-weight: 600;
}

.seller-ad-stats span {
    display: inline-flex;

    align-items: center;
    gap: 4px;
}

.seller-ad-stats i {
    font-size: 10px;
}

.seller-ad-date {
    margin-left: auto;

    white-space: nowrap;

    color: #8b95a5;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.seller-sidebar {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

.seller-sidebar-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #e4e8ed;

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, .05);
}

.seller-sidebar-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 17px 18px;

    border-bottom: 1px solid #edf0f3;

    color: #172033;

    font-size: 13px;
    font-weight: 850;
}

.seller-sidebar-header i {
    color: var(--seller-primary);
}


/* ==========================================================
   SIDEBAR PROFILE
   ========================================================== */

.seller-sidebar-profile {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px;
}

.seller-sidebar-avatar {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #fff;

    box-shadow:
        0 5px 16px rgba(15, 23, 42, .12);
}

.seller-sidebar-profile strong {
    display: block;

    color: #172033;

    font-size: 12px;
    font-weight: 850;
}

.seller-sidebar-verified {
    display: inline-flex;

    align-items: center;
    gap: 4px;

    margin-top: 5px;

    color: #15803d;

    font-size: 9px;
    font-weight: 800;
}

.seller-sidebar-verified i {
    color: #16a34a;
}


/* ==========================================================
   SIDEBAR BIO
   ========================================================== */

.seller-sidebar-bio {
    margin: 0 18px 17px;

    color: #697386;

    font-size: 11px;
    line-height: 1.65;
}


/* ==========================================================
   SIDEBAR DETAILS
   ========================================================== */

.seller-sidebar-details {
    padding: 0 18px 18px;
}

.seller-sidebar-details > div {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px 0;

    border-top: 1px solid #f0f2f4;

    color: #657082;

    font-size: 10px;
    font-weight: 600;
}

.seller-sidebar-details i {
    width: 18px;

    color: var(--seller-primary);

    text-align: center;
}


/* ==========================================================
   SAFETY CARD
   ========================================================== */

.seller-safety-card {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 17px;

    border: 1px solid #d8f1e5;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #effcf5,
            #e8faf1
        );
}

.seller-safety-icon {
    width: 37px;
    height: 37px;

    flex: 0 0 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #d8f7e6;

    color: #159447;

    font-size: 15px;
}

.seller-safety-card h4 {
    margin: 0 0 4px;

    color: #17603e;

    font-size: 11px;
    font-weight: 850;
}

.seller-safety-card p {
    margin: 0;

    color: #648274;

    font-size: 9px;
    line-height: 1.55;
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.seller-empty {
    padding: 55px 25px;

    text-align: center;

    background: #fff;

    border: 1px dashed #d5dce3;

    border-radius: 18px;
}

.seller-empty-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #edf7f4;

    color: var(--seller-primary);

    font-size: 25px;
}

.seller-empty h3 {
    margin: 0 0 6px;

    color: #172033;

    font-size: 17px;
    font-weight: 850;
}

.seller-empty p {
    margin: 0 0 18px;

    color: #7b8493;

    font-size: 12px;
}


/* ==========================================================
   RESPONSIVE — TABLET
   ========================================================== */

@media (max-width: 991.98px) {

    .seller-hero-content {
        padding-left: 22px;
        padding-right: 22px;
    }

    .seller-layout {
        grid-template-columns: 1fr;
    }

    .seller-sidebar {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .seller-sidebar-card,
    .seller-safety-card {
        height: 100%;
    }

    .seller-ads-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   RESPONSIVE — MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

    .seller-hero {
        border-radius: 0 0 18px 18px;
    }

    .seller-hero-bg {
        height: 165px;
    }

    .seller-hero-content {
        display: block;

        margin-top: -52px;

        min-height: auto;

        padding:
            0
            18px
            23px;

        text-align: center;

        border-radius: 0 0 18px 18px;
    }

    .seller-avatar-wrapper {
        display: inline-block;
    }

    .seller-avatar,
    .seller-avatar-placeholder {
        width: 110px;
        height: 110px;

        border-width: 5px;
    }

    .seller-identity {
        padding:
            12px
            0
            0;
    }

    .seller-name {
        font-size: 22px;
    }

    .seller-bio {
        margin-left: auto;
        margin-right: auto;
    }

    .seller-meta {
        justify-content: center;
    }

    .seller-hero-actions {
        justify-content: center;

        margin-top: 17px;

        padding-bottom: 0;

        flex-wrap: wrap;
    }

    .seller-btn {
        min-width: 135px;
    }

    .seller-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .seller-stat-card {
        min-height: 75px;
        padding: 13px 8px;
    }

    .seller-stat-card:nth-child(3),
    .seller-stat-card:nth-child(4) {
        border-top: 1px solid #edf0f3;
    }

    .seller-stat-card:nth-child(3) {
        border-left: 0;
    }

    .seller-stat-card strong {
        font-size: 18px;
    }

    .seller-main {
        padding-top: 22px;
    }

    .seller-section-heading {
        align-items: flex-start;
    }

    .seller-section-heading h2 {
        font-size: 19px;
    }

    .seller-ads-grid {
        grid-template-columns: 1fr;
    }

    .seller-ad-image {
        height: 230px;
    }

    .seller-sidebar {
        display: flex;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .seller-hero-bg {
        height: 145px;
    }

    .seller-hero-content {
        margin-top: -50px;
    }

    .seller-avatar,
    .seller-avatar-placeholder {
        width: 100px;
        height: 100px;
    }

    .seller-name {
        font-size: 20px;
    }

    .seller-hero-actions {
        flex-direction: column;
    }

    .seller-btn {
        width: 100%;
    }

    .seller-ad-image {
        height: 215px;
    }

    .seller-ad-body {
        padding: 15px;
    }

}


/* ==========================================================
   ACCESSIBILITY / MOTION
   ========================================================== */

.seller-btn,
.seller-ad-card,
.seller-ad-image img {
    -webkit-tap-highlight-color: transparent;
}

.seller-btn:focus-visible,
.seller-ad-card:focus-visible {
    outline: 3px solid rgba(13, 79, 69, .20);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .seller-btn,
    .seller-ad-card,
    .seller-ad-image img {
        transition: none !important;
    }
}


/* ==========================================================
   REPORT SELLER
   ========================================================== */

.seller-report-card {
    margin-top: 14px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.035);
}

.seller-report-btn {
    width: 100%;
    min-height: 44px;
    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 1px solid #f0d7d7;
    border-radius: 11px;

    background: #fffafa;
    color: #b42318;

    font-size: 12px;
    font-weight: 750;
    text-decoration: none;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.seller-report-btn i {
    font-size: 13px;
}

.seller-report-btn:hover {
    background: #fff1f1;
    border-color: #e8bcbc;
    color: #9f1d1d;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(180, 35, 24, 0.08);
}

.seller-report-btn:focus-visible {
    outline: 3px solid rgba(180, 35, 24, 0.14);
    outline-offset: 2px;
}


/* ==========================================================
   ÉVALUATION VENDEUR
   ========================================================== */

.seller-rating-section {
    margin-top: 35px;
    padding: 28px;
    border: 1px solid #e7ebef;
    border-radius: 18px;
    background: #ffffff;
}

.seller-rating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.seller-rating-eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: #0d4f45;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.seller-rating-title {
    margin: 0;
    color: #172033;
    font-size: 1.35rem;
    font-weight: 900;
}

.seller-rating-summary {
    display: grid;
    grid-template-columns: 180px minmax(180px, 1fr);
    gap: 35px;
    min-width: 0;
}

.seller-rating-distribution {
    width: 100%;
    min-width: 0;
}

.seller-rating-score {
    min-width: 0;
    text-align: center;
}

.seller-rating-summary > div:last-child {
    min-width: 0;
    width: 100%;
}

.seller-rating-score strong {
    display: block;
    color: #172033;
    font-size: 2.7rem;
    line-height: 1;
    font-weight: 900;
}

.seller-rating-score > span {
    display: block;
    margin-top: 7px;
    color: #7a8491;
    font-size: .78rem;
}

.seller-rating-stars {
    margin-top: 10px;
    color: #f59e0b;
    font-size: 1rem;
}

.seller-rating-row {
    display: grid;
    grid-template-columns: 35px minmax(40px, 1fr) 35px;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.seller-rating-row > span {
    color: #59636f;
    font-size: .78rem;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 32px;
    min-width: 32px;
    gap: 4px;
    flex-shrink: 0;
}

.seller-rating-row > span i {
    color: #f59e0b;
    font-size: .7rem;

    width: 14px;
    min-width: 14px;
    text-align: center;
}

.seller-rating-row small {
    color: #737c8c;
    font-size: .72rem;
    text-align: right;
}

.seller-rating-progress {
    display: block !important;
    width: 100%;
    min-width: 0;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0f2;
    visibility: visible !important;
    opacity: 1 !important;
}

.seller-rating-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: inherit;
    background: #f59e0b;
    transition: width .35s ease;
}

.seller-rate-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #e4e8ec;
    border-radius: 13px;
    background: #ffffff;
    color: #263238;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.seller-rate-btn i {
    color: #f59e0b;
}

.seller-rate-btn:hover {
    transform: translateY(-1px);
    border-color: #f5c76a;
    background: #fffaf0;
    box-shadow: 0 8px 20px rgba(245, 158, 11, .1);
}

.seller-rate-btn.is-rated {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.seller-rate-btn.is-rated i {
    color: #16a34a;
}

.seller-rating-already {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #15803d;
    font-size: .76rem;
    font-weight: 700;
}


/* ==========================================================
   MODAL
   ========================================================== */

#seller-rating-modal {
    z-index: 2000 !important;
}

#seller-rating-modal .modal-dialog {
    z-index: 2001 !important;
}

#seller-rating-modal .modal-content {
    position: relative;
    z-index: 2002 !important;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

#seller-rating-modal .modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #eef1f0;
}

#seller-rating-modal .modal-body {
    padding: 1.5rem;
}

#seller-rating-modal .modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #eef1f0;
}

.seller-rating-modal-subtitle {
    margin: 5px 0 0;
    color: #7a8491;
    font-size: .8rem;
}

.seller-rating-selector {
    margin-bottom: 22px;
    text-align: center;
}

.seller-rating-selector > label {
    display: block;
    margin-bottom: 10px;
    color: #263238;
    font-size: .82rem;
    font-weight: 800;
}

.seller-rating-stars-input {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.seller-rating-star {
    padding: 3px;
    border: 0;
    background: transparent;
    color: #d6dbe0;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition:
        color .15s ease,
        transform .15s ease;
}

.seller-rating-star:hover {
    color: #f59e0b;
    transform: scale(1.08);
}

.seller-rating-star i.bi-star-fill {
    color: #f59e0b;
}

.seller-rating-error {
    display: none;
    margin-top: 7px;
    color: #dc2626;
    font-size: .75rem;
}

.seller-rating-error.show {
    display: block;
}

.seller-rating-submit-btn {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: #0d4f45;
    color: #ffffff;
    font-size: .82rem;
    font-weight: 800;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.seller-rating-submit-btn:hover {
    background: #0a4038;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(13, 79, 69, .18);
}

.modal-backdrop {
    z-index: 1990 !important;
}

@media (max-width: 767.98px) {

    .seller-rating-section {
        padding: 22px;
    }

    .seller-rating-header {
        /* align-items: flex-start; */
        flex-direction: column;
    }

    .seller-rating-summary {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
    }

    .seller-rating-score {
        width: 100%;
    }

    .seller-rating-summary > div:last-child {
        width: 100%;
    }

    .seller-rating-row {
        grid-template-columns: 35px minmax(0, 1fr) 35px;
        width: 100%;
    }

    .seller-rating-progress {
        width: 100%;
    }

    .seller-rate-btn {
        width: 100%;
    }

    .seller-hero-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* =========================================================
   AVIS DES UTILISATEURS
   ========================================================= */

.seller-reviews-section {
    padding: 70px 0 90px;
    background: #f8fafc;
}


.seller-reviews-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}


/* =========================================================
   HEADER
   ========================================================= */

.seller-reviews-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #edf0f4;
}


.seller-reviews-header h2 {
    margin: 5px 0 8px;
    color: #182238;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}


.seller-reviews-header p {
    margin: 0;
    color: #7b8798;
    font-size: 14px;
}


.seller-reviews-count {
    display: flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
}


.seller-reviews-count strong {
    color: #182238;
    font-size: 30px;
    font-weight: 800;
}


.seller-reviews-count span {
    color: #7b8798;
    font-size: 14px;
}


/* =========================================================
   LISTE
   ========================================================= */

.seller-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}


/* =========================================================
   AVIS
   ========================================================= */

.seller-review-item {
    padding: 30px 0;
    border-bottom: 1px solid #edf0f4;
}


.seller-review-item:first-child {
    padding-top: 0;
}


.seller-review-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}


/* =========================================================
   UTILISATEUR
   ========================================================= */

.seller-review-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}


.seller-review-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.12);
}


.seller-review-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #0b2a82,
        #0c6f96
    );
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}


.seller-review-user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.seller-review-user-info strong {
    color: #182238;
    font-size: 15px;
    font-weight: 700;
}


.seller-review-user-info span {
    color: #8a94a6;
    font-size: 13px;
}


/* =========================================================
   NOTE
   ========================================================= */

.seller-review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}


.seller-review-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}


.seller-review-stars i {
    color: #f59e0b;
    font-size: 15px;
}


.seller-review-rating > span {
    color: #8a94a6;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   TITRE
   ========================================================= */

.seller-review-title {
    margin: 0 0 8px;
    color: #182238;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.45;
}


/* =========================================================
   COMMENTAIRE
   ========================================================= */

.seller-review-content {
    color: #596579;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: break-word;
}


.seller-review-no-comment {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9aa4b2;
    font-size: 14px;
    font-style: italic;
}


.seller-review-no-comment i {
    font-size: 15px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.seller-reviews-empty {
    padding: 50px 20px;
    text-align: center;
}


.seller-reviews-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 25px;
}


.seller-reviews-empty h3 {
    margin: 0 0 8px;
    color: #182238;
    font-size: 18px;
    font-weight: 750;
}


.seller-reviews-empty p {
    margin: 0;
    color: #8a94a6;
    font-size: 14px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .seller-reviews-section {
        padding: 45px 0 60px;
    }


    .seller-reviews-card {
        padding: 24px 20px;
        border-radius: 18px;
    }


    .seller-reviews-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 10px;
        padding-bottom: 22px;
    }


    .seller-reviews-header h2 {
        font-size: 23px;
    }


    .seller-reviews-count {
        align-self: flex-start;
    }


    .seller-review-item {
        padding: 25px 0;
    }


    .seller-review-content {
        font-size: 14px;
        line-height: 1.75;
    }

}

/* =========================================================
   LIEN VERS LES AVIS
   ========================================================= */

.seller-rating-reviews-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    color: #0c6f96;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.seller-rating-reviews-link i {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.seller-rating-reviews-link:hover {
    color: #0b2a82;
    text-decoration: none;
}

.seller-rating-reviews-link:hover i {
    transform: translateY(3px);
}
html {
    scroll-behavior: smooth;
}
