/* ============================================================
   PÁGINA DE ANÚNCIOS DO VENDEDOR
============================================================ */

.sa-seller-page {
    --seller-primary: var(--primary-color, #17643b);
    --seller-primary-dark: #0b4228;
    --seller-primary-soft: #e9f5ed;
    --seller-accent: var(--accent-color, #e5a823);
    --seller-text: #17201b;
    --seller-text-soft: #647067;
    --seller-border: #e3e9e5;
    --seller-background: #f6f8f6;
    --seller-white: #ffffff;
    --seller-danger: #b42318;
    --seller-radius-lg: 24px;
    --seller-radius-md: 18px;
    --seller-radius-sm: 12px;
    --seller-shadow:
            0 18px 45px rgba(23, 50, 34, 0.08);
    --seller-shadow-hover:
            0 24px 55px rgba(23, 50, 34, 0.15);

    background: var(--seller-background);
    color: var(--seller-text);
    min-height: 70vh;
}

/* ============================================================
   BREADCRUMB
============================================================ */

.sa-seller-breadcrumb-section {
    background: var(--seller-white);
    border-bottom: 1px solid var(--seller-border);
    padding: 16px 0;
}

.sa-seller-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    color: var(--seller-text-soft);
    font-size: 0.86rem;
}

.sa-seller-breadcrumb a,
.sa-seller-breadcrumb span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.sa-seller-breadcrumb a {
    color: var(--seller-text-soft);
    text-decoration: none;
    transition:
            color 0.2s ease,
            transform 0.2s ease;
}

.sa-seller-breadcrumb a:hover {
    color: var(--seller-primary);
}

.sa-seller-breadcrumb > svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: #a4aea7;
}

.sa-seller-breadcrumb a svg {
    width: 16px;
    height: 16px;
}

.sa-seller-breadcrumb span[aria-current="page"] {
    max-width: min(420px, 50vw);
    overflow: hidden;
    color: var(--seller-text);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   HERO
============================================================ */

.sa-seller-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 0 34px;
    background:
            radial-gradient(
                    circle at 90% 5%,
                    rgba(255, 255, 255, 0.16),
                    transparent 28%
            ),
            radial-gradient(
                    circle at 10% 100%,
                    rgba(229, 168, 35, 0.16),
                    transparent 30%
            ),
            linear-gradient(
                    135deg,
                    var(--seller-primary-dark),
                    var(--seller-primary)
            );
}

.sa-seller-hero::before {
    position: absolute;
    top: -100px;
    right: -70px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.sa-seller-hero::after {
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    content: "";
}

.sa-seller-hero .container {
    position: relative;
    z-index: 2;
}

/* ============================================================
   PERFIL
============================================================ */

.sa-seller-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.sa-seller-profile-main {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.sa-seller-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background:
            linear-gradient(
                    145deg,
                    rgba(255, 255, 255, 0.24),
                    rgba(255, 255, 255, 0.08)
            );
    box-shadow:
            0 18px 38px rgba(0, 0, 0, 0.16);
    color: var(--seller-white);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.sa-seller-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sa-seller-profile-content {
    min-width: 0;
}

.sa-seller-profile-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sa-seller-profile-label svg {
    width: 16px;
    height: 16px;
}

.sa-seller-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sa-seller-name-row h1 {
    margin: 0;
    color: var(--seller-white);
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.sa-seller-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--seller-white);
    font-size: 0.76rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.sa-seller-verified svg {
    width: 16px;
    height: 16px;
}

.sa-seller-description {
    max-width: 680px;
    margin: 12px 0 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.65;
}

.sa-seller-profile-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sa-seller-profile-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.83);
    font-size: 0.76rem;
    backdrop-filter: blur(8px);
}

.sa-seller-profile-meta svg {
    width: 14px;
    height: 14px;
}

.sa-seller-profile-meta strong {
    color: var(--seller-white);
    font-weight: 800;
}

.sa-seller-profile-actions {
    flex: 0 0 auto;
}

.sa-seller-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--seller-white);
    font-size: 0.87rem;
    font-weight: 800;
    text-decoration: none;
    backdrop-filter: blur(9px);
    transition:
            transform 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease;
}

.sa-seller-back-button:hover {
    border-color: var(--seller-white);
    background: var(--seller-white);
    color: var(--seller-primary-dark);
    transform: translateY(-2px);
}

.sa-seller-back-button svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   ESTATÍSTICAS
============================================================ */

.sa-seller-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.sa-seller-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.09);
    color: var(--seller-white);
    backdrop-filter: blur(10px);
}

.sa-seller-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
}

.sa-seller-stat-icon svg {
    width: 20px;
    height: 20px;
}

.sa-seller-stat-card > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sa-seller-stat-card strong {
    font-size: 1.25rem;
    font-weight: 850;
    line-height: 1;
}

.sa-seller-stat-card div span {
    margin-top: 5px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.69);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   CABEÇALHO DA LISTAGEM
============================================================ */

.sa-seller-list-section {
    padding: 52px 0 70px;
}

.sa-seller-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.sa-seller-section-label {
    display: block;
    margin-bottom: 7px;
    color: var(--seller-primary);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sa-seller-list-header h2 {
    margin: 0;
    color: var(--seller-text);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.sa-seller-list-header p {
    max-width: 630px;
    margin: 9px 0 0;
    color: var(--seller-text-soft);
    font-size: 0.94rem;
    line-height: 1.65;
}

.sa-seller-result-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--seller-border);
    border-radius: 12px;
    background: var(--seller-white);
    color: var(--seller-text-soft);
    font-size: 0.82rem;
    font-weight: 750;
}

.sa-seller-result-count svg {
    width: 17px;
    height: 17px;
    color: var(--seller-primary);
}

/* ============================================================
   CARD DO ANÚNCIO
============================================================ */

.sa-ad-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--seller-border);
    border-radius: var(--seller-radius-md);
    background: var(--seller-white);
    box-shadow:
            0 8px 28px rgba(23, 50, 34, 0.045);
    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            border-color 0.25s ease;
}

.sa-ad-card:hover {
    border-color: rgba(23, 100, 59, 0.28);
    box-shadow: var(--seller-shadow-hover);
    transform: translateY(-6px);
}

.sa-ad-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #e8ece9;
}

.sa-ad-image-link {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.sa-ad-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
            transform 0.5s ease,
            filter 0.3s ease;
}

.sa-ad-card:hover .sa-ad-image-link img {
    transform: scale(1.055);
}

.sa-ad-image-badges {
    position: absolute;
    top: 13px;
    left: 13px;
    right: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.sa-ad-type-badge,
.sa-ad-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 29px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 850;
    backdrop-filter: blur(9px);
}

.sa-ad-type-badge {
    background: rgba(15, 38, 24, 0.78);
    color: var(--seller-white);
}

.sa-ad-featured-badge {
    margin-left: auto;
    background: rgba(229, 168, 35, 0.94);
    color: #342400;
}

.sa-ad-featured-badge svg {
    width: 13px;
    height: 13px;
}

/* ============================================================
   CONTEÚDO DO CARD
============================================================ */

.sa-ad-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.sa-ad-category {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 8px;
    color: var(--seller-primary);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.sa-ad-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.018em;
    line-height: 1.38;
}

.sa-ad-title a {
    display: -webkit-box;
    min-height: 2.76em;
    overflow: hidden;
    color: var(--seller-text);
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.sa-ad-title a:hover {
    color: var(--seller-primary);
}

.sa-ad-location {
    margin-top: 12px;
}

.sa-ad-location span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--seller-text-soft);
    font-size: 0.76rem;
    line-height: 1.4;
}

.sa-ad-location svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--seller-primary);
}

.sa-ad-price {
    margin-top: 17px;
}

.sa-ad-price strong {
    color: var(--seller-primary-dark);
    font-size: 1.24rem;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.sa-ad-price-consult {
    font-size: 1rem !important;
    letter-spacing: 0 !important;
}

.sa-ad-footer {
    margin-top: auto;
    padding-top: 17px;
}

.sa-ad-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--seller-border);
}

.sa-ad-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7c867f;
    font-size: 0.69rem;
}

.sa-ad-meta svg {
    width: 13px;
    height: 13px;
}

.sa-ad-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 43px;
    border: 1px solid var(--seller-primary);
    border-radius: 11px;
    background: var(--seller-primary);
    color: var(--seller-white);
    font-size: 0.8rem;
    font-weight: 850;
    text-decoration: none;
    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.sa-ad-button:hover {
    border-color: var(--seller-primary-dark);
    background: var(--seller-primary-dark);
    color: var(--seller-white);
    transform: translateY(-1px);
}

.sa-ad-button svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   ESTADO VAZIO
============================================================ */

.sa-seller-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 780px;
    margin: 12px auto 0;
    padding: 65px 32px;
    border: 1px dashed #cdd7d0;
    border-radius: var(--seller-radius-lg);
    background: var(--seller-white);
    text-align: center;
}

.sa-seller-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 22px;
    border-radius: 22px;
    background: var(--seller-primary-soft);
    color: var(--seller-primary);
}

.sa-seller-empty-icon svg {
    width: 35px;
    height: 35px;
}

.sa-seller-empty h2 {
    max-width: 580px;
    margin: 0;
    color: var(--seller-text);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 850;
    letter-spacing: -0.035em;
}

.sa-seller-empty p {
    max-width: 520px;
    margin: 13px auto 24px;
    color: var(--seller-text-soft);
    font-size: 0.92rem;
    line-height: 1.7;
}

.sa-seller-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 45px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--seller-primary);
    color: var(--seller-white);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
    transition:
            background-color 0.2s ease,
            transform 0.2s ease;
}

.sa-seller-empty-button:hover {
    background: var(--seller-primary-dark);
    color: var(--seller-white);
    transform: translateY(-2px);
}

.sa-seller-empty-button svg {
    width: 17px;
    height: 17px;
}

/* ============================================================
   PAGINAÇÃO
============================================================ */

.sa-seller-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.sa-seller-pagination .pagination,
.sa-seller-pagination ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-seller-pagination li {
    margin: 0;
}

.sa-seller-pagination a,
.sa-seller-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--seller-border);
    border-radius: 11px;
    background: var(--seller-white);
    color: var(--seller-text);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    transition:
            border-color 0.2s ease,
            background-color 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
}

.sa-seller-pagination a:hover {
    border-color: var(--seller-primary);
    background: var(--seller-primary-soft);
    color: var(--seller-primary);
    transform: translateY(-2px);
}

.sa-seller-pagination .active a,
.sa-seller-pagination .active span,
.sa-seller-pagination a.active,
.sa-seller-pagination span.active {
    border-color: var(--seller-primary);
    background: var(--seller-primary);
    color: var(--seller-white);
}

/* ============================================================
   RESPONSIVIDADE
============================================================ */

@media (max-width: 991.98px) {
    .sa-seller-profile {
        align-items: flex-start;
        flex-direction: column;
    }

    .sa-seller-profile-actions {
        width: 100%;
    }

    .sa-seller-back-button {
        width: 100%;
    }

    .sa-seller-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .sa-seller-breadcrumb-section {
        padding: 13px 0;
    }

    .sa-seller-breadcrumb {
        font-size: 0.78rem;
    }

    .sa-seller-breadcrumb span[aria-current="page"] {
        max-width: 150px;
    }

    .sa-seller-hero {
        padding: 30px 0 26px;
    }

    .sa-seller-profile-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        width: 100%;
    }

    .sa-seller-avatar {
        flex-basis: 88px;
        width: 88px;
        height: 88px;
        font-size: 1.55rem;
    }

    .sa-seller-name-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .sa-seller-name-row h1 {
        font-size: 1.85rem;
    }

    .sa-seller-description {
        font-size: 0.88rem;
    }

    .sa-seller-profile-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .sa-seller-profile-meta > span {
        width: 100%;
        border-radius: 11px;
    }

    .sa-seller-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 25px;
    }

    .sa-seller-stat-card {
        padding: 14px;
    }

    .sa-seller-list-section {
        padding: 38px 0 54px;
    }

    .sa-seller-list-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        margin-bottom: 22px;
    }

    .sa-seller-result-count {
        width: 100%;
        justify-content: center;
    }

    .sa-seller-empty {
        padding: 48px 22px;
    }
}

@media (max-width: 575.98px) {
    .sa-seller-avatar {
        flex-basis: 80px;
        width: 80px;
        height: 80px;
    }

    .sa-ad-content {
        padding: 17px;
    }

    .sa-ad-title {
        font-size: 1rem;
    }

    .sa-seller-pagination a,
    .sa-seller-pagination span {
        min-width: 39px;
        height: 39px;
        padding: 0 10px;
    }
}

/* ============================================================
   ACESSIBILIDADE
============================================================ */

.sa-seller-back-button:focus-visible,
.sa-ad-button:focus-visible,
.sa-seller-empty-button:focus-visible,
.sa-ad-title a:focus-visible,
.sa-ad-image-link:focus-visible,
.sa-seller-breadcrumb a:focus-visible,
.sa-seller-pagination a:focus-visible {
    outline: 3px solid rgba(229, 168, 35, 0.6);
    outline-offset: 3px;
}

/* ============================================================
   REDUÇÃO DE MOVIMENTO
============================================================ */

@media (prefers-reduced-motion: reduce) {
    .sa-ad-card,
    .sa-ad-image-link img,
    .sa-ad-button,
    .sa-seller-back-button,
    .sa-seller-empty-button,
    .sa-seller-pagination a {
        transition: none;
    }

    .sa-ad-card:hover,
    .sa-ad-button:hover,
    .sa-seller-back-button:hover,
    .sa-seller-empty-button:hover,
    .sa-seller-pagination a:hover {
        transform: none;
    }
}