:root {
    --blue: #3157a4;
    --blue-dark: #203d79;
    --orange: #ff8a00;
    --green: #23966b;
    --ink: #202a3b;
    --muted: #69758a;
    --line: #e3e8f1;
    --bg: #f6f8fc;
    --white: #fff;
    --shadow: 0 12px 32px rgba(32, 61, 121, .08)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg)
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select {
    font: inherit
}

.store-header {
    height: 88px;
    padding: 0 6.5%;
    display: flex;
    align-items: center;
    gap: 32px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20
}

.store-brand {
    width: 155px;
    flex-shrink: 0;
    display: flex;
    align-items: center
}

.store-brand img {
    width: 100%;
    max-height: 60px;
    object-fit: contain
}

.search-form {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f7fb;
    border: 1px solid #e5e9f1;
    border-radius: 12px;
    padding: 4px 5px 4px 14px;
    flex: 1;
    max-width: 650px
}

.search-form>i {
    font-size: 21px;
    color: #8994a8
}

.search-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
    color: var(--ink)
}

.search-form button {
    height: 36px;
    border: 0;
    border-radius: 9px;
    padding: 0 17px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 3px 8px rgba(49, 87, 164, .18);
    transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.search-form button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.24) 48%, transparent 76%);
    transform: translateX(-130%);
    transition: transform .5s ease;
    z-index: -1;
}

.search-form button:hover {
    background: var(--blue-dark);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 7px 16px rgba(49, 87, 164, .3);
}

.search-form button:hover::before {
    transform: translateX(130%);
}

.search-form button:active {
    transform: translateY(0) scale(.98);
    box-shadow: 0 2px 5px rgba(49, 87, 164, .2);
}

.search-form button:focus-visible {
    outline: 3px solid rgba(49, 87, 164, .3);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .search-form button,
    .search-form button::before {
        transition: none;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 19px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
}

.header-login {
    color: var(--blue)
}

.sell-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--orange);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 13px 17px;
    font-weight: 800;
    font-size: 13px;
    transition: transform .2s, background .2s
}

.sell-button:hover,
.primary-button:hover {
    background: #e87900;
    transform: translateY(-2px)
}

.sell-button i,
.primary-button i {
    font-size: 19px
}

.hero {
    padding: 64px 9% 58px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 30px;
    align-items: center;
    background: linear-gradient(110deg, #fff 45%, #f0f4fd)
}

.hero-copy {
    max-width: 590px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 1.35px;
    font-weight: 800;
    color: var(--blue)
}

.hero h1 {
    font-family: Nunito, Inter, sans-serif;
    font-size: clamp(38px, 4.5vw, 58px);
    line-height: 1.1;
    letter-spacing: -1.8px;
    margin: 20px 0 17px;
    color: #1d2e50
}

.hero h1 span,
.section-heading h2 span {
    color: var(--orange)
}

.hero-copy>p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 525px
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 17px;
    border: 1px solid #dce3f0;
    border-radius: 10px;
    background: #fff;
    color: var(--blue);
    font-weight: 800;
    font-size: 13px
}

.secondary-button i {
    font-size: 18px
}

.hero-proof {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 27px;
    color: #68758b;
    font-size: 11px
}

.hero-proof span {
    display: flex;
    align-items: center;
    gap: 5px
}

.hero-proof i {
    color: var(--green);
    font-size: 16px
}

.hero-art {
    height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.art-circle {
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: #e4ebfb;
    position: absolute
}

.product-illustration {
    position: relative;
    width: 250px;
    height: 250px;
    z-index: 1
}

.book {
    position: absolute;
    border-radius: 7px 13px 13px 7px;
    box-shadow: 7px 10px 18px #203d7924
}

.book-back {
    width: 125px;
    height: 180px;
    left: 28px;
    top: 40px;
    background: #ffb15c;
    transform: rotate(-12deg)
}

.book-front {
    width: 130px;
    height: 190px;
    left: 70px;
    top: 31px;
    background: linear-gradient(150deg, #3157a4, #1c3268);
    color: #fff;
    transform: rotate(8deg);
    padding: 27px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.book-front span {
    font-size: 9px;
    letter-spacing: 2px;
    color: #ffcf86
}

.book-front b {
    font-family: Nunito;
    font-size: 22px;
    line-height: 1.15
}

.book-front i {
    font-size: 36px;
    margin-top: auto;
    color: #ffb15c
}

.pencil {
    position: absolute;
    width: 12px;
    height: 155px;
    background: #ff8a00;
    border-radius: 6px;
    right: 10px;
    top: 57px;
    transform: rotate(27deg);
    border: 2px solid #fff
}

.calc {
    position: absolute;
    width: 65px;
    height: 104px;
    background: #303b50;
    border-radius: 8px;
    right: 4px;
    bottom: 17px;
    transform: rotate(9deg);
    padding: 10px;
    box-shadow: 4px 7px 14px #1b2c4a30
}

.calc-screen {
    height: 20px;
    background: #c7dfc5;
    border-radius: 3px;
    margin-bottom: 9px
}

.calc-keys {
    color: #e4e8ef;
    font-size: 17px;
    line-height: 20px;
    text-align: center
}

.floating-note {
    position: absolute;
    z-index: 2;
    background: #fff;
    border: 1px solid #edf0f6;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: var(--shadow)
}

.floating-note>i {
    font-size: 25px;
    color: var(--green)
}

.floating-note span {
    display: grid;
    gap: 4px
}

.floating-note b {
    font-size: 11px
}

.floating-note small {
    font-size: 9px;
    color: var(--muted)
}

.note-one {
    top: 25px;
    left: 0
}

.note-two {
    right: 0;
    bottom: 23px
}

.note-two>i {
    color: var(--orange)
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 26px 9%;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.benefits>div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px
}

.benefit-icon {
    width: 45px;
    height: 45px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 24px
}

.benefit-icon.blue {
    background: #eaf0fc;
    color: var(--blue)
}

.benefit-icon.orange {
    background: #fff0df;
    color: var(--orange)
}

.benefit-icon.green {
    background: #e6f7ef;
    color: var(--green)
}

.benefits p {
    display: grid;
    gap: 5px;
    margin: 0
}

.benefits b {
    font-size: 13px
}

.benefits small {
    font-size: 11px;
    color: var(--muted)
}

.catalog-section {
    padding: 64px 9% 54px
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px
}

.section-heading h2 {
    font-family: Nunito;
    font-size: 34px;
    margin: 10px 0 5px;
    letter-spacing: -.7px
}

.section-heading p {
    font-size: 13px;
    color: var(--muted);
    margin: 0
}

.section-heading>a {
    font-size: 12px;
    font-weight: 800;
    color: var(--blue);
    white-space: nowrap
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: 27px 0
}

.filter-chip {
    border: 1px solid #e0e6f0;
    background: #fff;
    color: #657189;
    border-radius: 22px;
    padding: 9px 15px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer
}

.filter-chip.active,
.filter-chip:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff
}

.filter-row select {
    margin-left: auto;
    border: 1px solid #e0e6f0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: #59667e;
    font-size: 11px;
    outline-color: var(--blue)
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px
}

.product-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 15px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow)
}

.product-image {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.book-image {
    background: #f0f3fb
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 9px;
    font-weight: 800;
    z-index: 2
}

.tag-sale {
    background: #e8efff;
    color: #3157a4
}

.tag-trade {
    background: #fff0dc;
    color: #b76800
}

.tag-donation {
    background: #e3f7ec;
    color: #208254
}

.book-cover {
    width: 105px;
    height: 137px;
    background: linear-gradient(140deg, #335da9, #203d79);
    box-shadow: 7px 9px 13px #203d7938;
    border-radius: 3px 8px 8px 3px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 21px 8px;
    gap: 10px;
    transform: rotate(-4deg)
}

.book-cover small {
    font-size: 7px;
    letter-spacing: 1px;
    color: #ffcc78
}

.book-cover b {
    font-size: 18px;
    font-family: Nunito
}

.book-cover span {
    font-size: 9px;
    color: #e0e8ff
}

.calculator-image {
    background: #f5f0e8
}

.calc-large {
    width: 102px;
    height: 145px;
    border-radius: 9px;
    background: #353d4d;
    padding: 11px;
    transform: rotate(5deg);
    box-shadow: 7px 9px 15px #303b5030
}

.calc-screen-large {
    background: #d1e4c6;
    color: #303b50;
    text-align: right;
    padding: 7px 4px;
    font-size: 12px;
    border-radius: 3px;
    margin-bottom: 10px
}

.calc-buttons {
    color: #e8eaf0;
    line-height: 25px;
    text-align: center;
    font-size: 16px
}

.stationery-image {
    background: #fdf1e8
}

.marker {
    height: 100px;
    width: 20px;
    border-radius: 5px 5px 9px 9px;
    position: absolute;
    top: 43px;
    box-shadow: 4px 5px 7px #3d33401a
}

.marker-one {
    background: #ff9eac;
    left: 34%;
    transform: rotate(-12deg)
}

.marker-two {
    background: #ffcc59;
    left: 46%;
    top: 35px;
    transform: rotate(5deg)
}

.marker-three {
    background: #78c9ad;
    left: 58%;
    transform: rotate(13deg)
}

.notebook-art {
    position: absolute;
    bottom: 15px;
    right: 25px;
    background: #fff;
    width: 45px;
    height: 53px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: #3157a4;
    font-size: 25px;
    box-shadow: 0 4px 8px #3332
}

.donation-image {
    background: #eaf7ef
}

.donation-book {
    width: 140px;
    height: 116px;
    border-radius: 7px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #269466;
    box-shadow: 0 8px 15px #267f4b20;
    transform: rotate(-4deg)
}

.donation-book i {
    font-size: 30px
}

.donation-book b {
    font-size: 10px;
    text-align: center;
    line-height: 1.5;
    letter-spacing: .5px
}

.donation-heart {
    position: absolute;
    right: 27px;
    top: 42px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #f47772;
    font-size: 19px;
    box-shadow: 0 4px 10px #3331
}

.product-info {
    padding: 15px
}

.product-category {
    font-size: 9px;
    color: #8994a8
}

.product-info h3 {
    font-size: 13px;
    line-height: 1.5;
    min-height: 39px;
    margin: 7px 0 13px
}

.product-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px
}

.product-bottom strong {
    font-size: 18px;
    color: var(--blue-dark)
}

.product-bottom .trade-price {
    color: #b76800
}

.product-bottom .free-price {
    color: var(--green)
}

.interest-button {
    border: 1px solid #dce4f3;
    border-radius: 8px;
    background: #fff;
    color: var(--blue);
    padding: 9px 7px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer
}

.interest-button:hover {
    background: #eff3fd
}

.interest-button i {
    font-size: 14px;
    vertical-align: middle;
    margin-right: 3px
}

.demo-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #8994a8;
    margin-top: 22px
}

.demo-notice i {
    font-size: 15px
}

.empty-state {
    padding: 25px;
    text-align: center;
    color: var(--muted)
}

.donation-banner {
    margin: 0 9% 65px;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    gap: 22px;
    background: #eaf6ef;
    border: 1px solid #d6ecdf;
    border-radius: 18px
}

.donation-banner-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #fff;
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 33px;
    flex-shrink: 0
}

.donation-banner h2 {
    font-family: Nunito;
    font-size: 21px;
    line-height: 1.35;
    margin: 7px 0
}

.donation-banner p {
    font-size: 11px;
    color: #687a70;
    margin: 0;
    line-height: 1.6
}

.donation-banner .primary-button {
    margin-left: auto;
    white-space: nowrap
}

.donation-banner .eyebrow {
    color: var(--green)
}

.store-footer {
    background: #172c55;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 25px 9%;
    flex-wrap: wrap
}

.store-footer>a {
    font-family: Nunito;
    font-size: 20px;
    font-weight: 900
}

.store-footer>a span {
    color: #ff9a27
}

.store-footer p {
    font-size: 11px;
    color: #c7d1e4;
    margin-right: auto
}

.store-footer>span {
    font-size: 10px;
    color: #c7d1e4
}

@media(max-width:1100px) {
    .store-header {
        padding: 0 4%;
        gap: 18px
    }

    .store-brand {
        width: 120px
    }

    .header-actions {
        gap: 12px
    }

    .hero,
    .catalog-section {
        padding-left: 5%;
        padding-right: 5%
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .benefits {
        padding-left: 5%;
        padding-right: 5%
    }

    .donation-banner {
        margin-left: 5%;
        margin-right: 5%
    }
}

@media(max-width:700px) {
    .store-header {
        height: auto;
        min-height: 75px;
        padding: 12px 4%;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px
    }

    .store-brand {
        width: 125px
    }

    .header-actions {
        gap: 10px;
        font-size: 11px
    }

    .sell-button {
        padding: 10px;
        font-size: 11px
    }

    .search-form {
        grid-column: 1/-1;
        grid-row: 2;
        max-width: none;
        width: 100%
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 43px 6% 25px
    }

    .hero h1 {
        font-size: 43px
    }

    .hero-art {
        height: 260px
    }

    .art-circle {
        width: 225px;
        height: 225px
    }

    .product-illustration {
        transform: scale(.8)
    }

    .note-one {
        left: 0;
        top: 8px
    }

    .note-two {
        right: 0;
        bottom: 8px
    }

    .floating-note {
        padding: 9px
    }

    .floating-note small {
        font-size: 8px
    }

    .benefits {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 23px 8%
    }

    .benefits>div {
        justify-content: flex-start
    }

    .catalog-section {
        padding: 45px 5%
    }

    .section-heading {
        align-items: flex-start
    }

    .section-heading h2 {
        font-size: 29px
    }

    .section-heading p {
        line-height: 1.6
    }

    .filter-row select {
        margin-left: 0;
        flex: 1;
        min-width: 150px
    }

    .product-grid {
        gap: 11px
    }

    .product-image {
        height: 145px
    }

    .product-info {
        padding: 11px
    }

    .product-info h3 {
        font-size: 12px
    }

    .product-bottom strong {
        font-size: 16px
    }

    .interest-button {
        font-size: 9px
    }

    .donation-banner {
        margin: 0 5% 40px;
        padding: 22px;
        flex-wrap: wrap;
        gap: 14px
    }

    .donation-banner h2 {
        font-size: 19px
    }

    .donation-banner .primary-button {
        margin-left: 0
    }

    .store-footer {
        padding: 24px 6%;
        gap: 12px
    }

    .store-footer p {
        width: 100%;
        order: 2
    }

    .store-footer>span {
        width: 100%;
        order: 3
    }
}

@media(max-width:390px) {
    .header-actions {
        gap: 7px
    }

    .sell-button {
        font-size: 0;
        gap: 0
    }

    .sell-button i {
        font-size: 19px
    }

    .hero h1 {
        font-size: 37px
    }

    .product-grid {
        grid-template-columns: 1fr
    }

    .product-image {
        height: 190px
    }

    .product-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between
    }

    .interest-button {
        padding: 9px 6px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important
    }
}




/* Menu do perfil do usuário */
.profile-menu { position: relative; display: flex; align-items: center; }
.profile-menu[hidden], .profile-dropdown[hidden] { display: none !important; }
.profile-trigger {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  border: 0; background: transparent; cursor: pointer; color: var(--ink);
}
.profile-avatar {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 50%; background: #eaf0fc; color: var(--blue);
  border: 2px solid #dce6fb; font-size: 23px; flex-shrink: 0;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
.profile-trigger:focus-visible, .header-login:focus-visible { outline: 3px solid #ffb84d; outline-offset: 3px; border-radius: 8px; }
.profile-chevron { font-size: 19px; color: var(--muted); }
.profile-dropdown {
  position: absolute; top: calc(100% + 14px); right: 0; width: 265px;
  padding: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 16px 40px #203d7926; z-index: 50;
}
.profile-summary {
  display: flex; align-items: center; gap: 11px; padding: 12px 10px 15px;
  margin-bottom: 5px; border-bottom: 1px solid var(--line);
}
.profile-avatar-large { width: 43px; height: 43px; }
.profile-summary div { min-width: 0; display: grid; gap: 4px; }
.profile-summary strong { font-size: 13px; overflow-wrap: anywhere; }
.profile-summary small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.profile-dropdown > a,
.profile-dropdown > button {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px 10px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink);
  font-size: 12px; font-weight: 700; text-align: left; cursor: pointer;
}
.profile-dropdown > a i, .profile-dropdown > button i { font-size: 19px; color: var(--blue); }
.profile-dropdown > a:hover, .profile-dropdown > button:hover { background: #f2f5fb; }
.profile-dropdown > button:hover { color: #b42318; }
.profile-dropdown > button:hover i { color: #b42318; }
.account-page { max-width: 760px; margin: 48px auto; padding: 0 20px; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.account-card h1 { font-family: Nunito, Inter, sans-serif; color: #1d2e50; }
.account-card p { color: var(--muted); line-height: 1.7; }
.account-card .account-link { display: inline-flex; margin-top: 12px; }
.account-detail { background: #f6f8fc; padding: 14px; border-radius: 10px; margin: 12px 0; }
@media (max-width: 760px) {
  .store-header { gap: 12px; padding: 0 4%; }
  .store-brand { width: 112px; }
  .header-actions { gap: 10px; }
  .profile-dropdown { right: -5px; }
}







/* Cartão de anúncio clicável e modal de detalhes */
.user-post-card { cursor: pointer; }
.user-post-card:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.listing-modal[hidden] { display: none !important; }
.listing-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; }
.listing-modal-backdrop { position: absolute; inset: 0; background: rgba(12, 22, 43, .68); backdrop-filter: blur(5px); animation: listingFadeIn .18s ease-out; }
.listing-modal-panel { position: relative; z-index: 1; width: min(960px, 100%); max-height: min(88vh, 850px); overflow: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); background: #fff; border-radius: 20px; box-shadow: 0 24px 80px #07132e55; animation: listingModalIn .24s ease-out; }
.listing-modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #27354e; box-shadow: 0 4px 18px #14213d20; font-size: 25px; cursor: pointer; transition: transform .2s, background .2s; }
.listing-modal-close:hover { transform: rotate(90deg); background: #edf3ff; }
.listing-modal-gallery { min-width: 0; padding: 24px; background: #f4f7fc; display: flex; flex-direction: column; justify-content: center; position: relative; }
.listing-modal-main-image { min-height: 300px; height: 390px; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: #e9eef7; color: #93a2bd; font-size: 68px; }
.listing-modal-main-image img { width: 100%; height: 100%; object-fit: contain; }
.listing-gallery-arrow { position: absolute; top: 45%; width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #244b95; box-shadow: 0 3px 12px #152b4b25; font-size: 25px; cursor: pointer; }
.listing-gallery-prev { left: 32px; }
.listing-gallery-next { right: 32px; }
.listing-modal-thumbnails { display: flex; gap: 9px; overflow-x: auto; padding: 12px 1px 2px; }
.listing-modal-thumb { flex: 0 0 62px; width: 62px; height: 62px; padding: 2px; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: #fff; cursor: pointer; }
.listing-modal-thumb.active { border-color: var(--blue); }
.listing-modal-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.listing-modal-content { padding: 38px 32px 30px; min-width: 0; }
.listing-modal-content .product-category { display: inline-block; margin-bottom: 10px; }
.listing-modal-tag { position: static; display: table; margin-bottom: 12px; }
.listing-modal-content h2 { margin: 0 36px 10px 0; color: #1b2b48; font-size: clamp(23px, 3vw, 31px); line-height: 1.2; overflow-wrap: anywhere; }
.listing-modal-price { margin: 0 0 24px; color: var(--blue-dark); font-size: 25px; font-weight: 800; }
.listing-modal-content h3 { margin: 0 0 8px; font-size: 14px; color: #273752; }
.listing-modal-description { color: #64728a; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.listing-modal-meta { margin: 22px 0; padding-top: 14px; border-top: 1px solid #e9edf4; color: #64728a; font-size: 12px; }
.listing-modal-meta p { display: flex; align-items: center; gap: 6px; margin: 8px 0; }
.listing-modal-meta i { color: var(--blue); font-size: 16px; }
.listing-modal-content > .interest-button { width: 100%; padding: 13px 16px; font-size: 13px; }
body.listing-modal-open { overflow: hidden; }
@keyframes listingFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes listingModalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 720px) {
  .listing-modal { padding: 10px; }
  .listing-modal-panel { grid-template-columns: 1fr; max-height: 94vh; border-radius: 16px; }
  .listing-modal-gallery { padding: 16px; }
  .listing-modal-main-image { height: min(42vh, 320px); min-height: 210px; }
  .listing-gallery-prev { left: 22px; }
  .listing-gallery-next { right: 22px; }
  .listing-modal-content { padding: 22px 20px 24px; }
  .listing-modal-content h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .listing-modal-backdrop, .listing-modal-panel { animation: none; }
  .listing-modal-close { transition: none; }
}




/* =========================================
   MARCA DO UNIMARKET NO CABEÇALHO
========================================= */

.store-brand {
    width: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.store-brand img {
    width: 43px;
    height: 43px;
    max-height: none;
    object-fit: contain;
}

.store-brand-name {
    display: inline-flex;
    align-items: center;
    font-family: Nunito, Inter, sans-serif;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -1px;
    white-space: nowrap;
}

.store-brand-name span:first-child {
    color: #203D79;
}

.store-brand-name span:last-child {
    color: #FF8A00;
}


/* =========================================
   NOVA ILUSTRAÇÃO DO HERO
========================================= */

.product-illustration {
    position: relative;
    z-index: 1;
    width: 340px;
    height: 260px;
    transform: rotate(-2deg);
}

/* Cartões de anúncios */

.market-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E5EAF3;
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(32, 61, 121, 0.12);
}

.market-card-book {
    top: 19px;
    left: 17px;
    width: 258px;
    min-height: 112px;
    transform: rotate(-4deg);
    z-index: 2;
}

.market-card-calc {
    right: 3px;
    bottom: 28px;
    width: 263px;
    min-height: 106px;
    transform: rotate(4deg);
    z-index: 3;
}

/* Ícones dos materiais */

.market-item-icon {
    width: 64px;
    height: 75px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 36px;
}

.book-item {
    color: #3157A4;
    background: #EAF0FC;
}

.calc-item {
    color: #E67600;
    background: #FFF0DB;
}

/* Informações dos anúncios */

.market-item-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.market-item-category {
    color: #8792A6;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.market-item-info strong {
    color: #202A3B;
    font-size: 11px;
    line-height: 1.3;
}

.market-item-info small {
    color: #7A8598;
    font-size: 8px;
    line-height: 1.4;
}

.market-item-price {
    margin-top: 2px;
    color: #203D79;
    font-size: 12px;
    font-weight: 900;
}

/* Etiquetas dos anúncios */

.market-item-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 800;
}

.badge-sale {
    color: #3157A4;
    background: #EAF0FC;
}

.badge-donation {
    color: #208254;
    background: #E3F7EC;
}

/* Símbolo de troca */

.market-exchange {
    position: absolute;
    z-index: 4;
    top: 104px;
    right: 36px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 4px solid #F0F4FD;
    border-radius: 50%;
    background: #FF8A00;
    color: #FFFFFF;
    font-size: 23px;
    box-shadow: 0 5px 14px rgba(230, 118, 0, 0.25);
}

/* Cartão da comunidade */

.market-community {
    position: absolute;
    z-index: 4;
    left: 3px;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #E5EAF3;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 8px 22px rgba(32, 61, 121, 0.10);
    transform: rotate(-2deg);
}

.community-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: #E6F7EF;
    color: #23966B;
    font-size: 21px;
}

.market-community > span:nth-child(2) {
    display: grid;
    gap: 4px;
}

.market-community strong {
    color: #202A3B;
    font-size: 10px;
}

.market-community small {
    color: #7A8598;
    font-size: 8px;
}

.community-check {
    color: #23966B;
    font-size: 18px;
}

/* Detalhes decorativos de fundo */

.market-decoration {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.market-decoration-one {
    top: 2px;
    right: 24px;
    width: 19px;
    height: 19px;
    background: #FFB15C;
    opacity: 0.9;
}

.market-decoration-two {
    bottom: 52px;
    left: 45%;
    width: 12px;
    height: 12px;
    background: #8DA8E6;
}


/* =========================================
   RESPONSIVIDADE
========================================= */

@media (max-width: 1100px) {
    .store-brand {
        gap: 6px;
    }

    .store-brand img {
        width: 37px;
        height: 37px;
    }

    .store-brand-name {
        font-size: 20px;
    }
}

@media (max-width: 700px) {
    .store-brand {
        width: auto;
        gap: 6px;
    }

    .store-brand img {
        width: 33px;
        height: 33px;
    }

    .store-brand-name {
        font-size: 19px;
        letter-spacing: -0.8px;
    }

    .product-illustration {
        transform: scale(0.85) rotate(-2deg);
        transform-origin: center;
    }

    .hero-art {
        overflow: hidden;
    }
}

@media (max-width: 390px) {
    .store-brand img {
        width: 29px;
        height: 29px;
    }

    .store-brand-name {
        font-size: 17px;
    }

    .product-illustration {
        transform: scale(0.72) rotate(-2deg);
    }
}







