:root {
    --navy: #0F1A2B;
    --navy2: #16233A;
    --beige: #F4E9DC;
    --beige2: #EAD8C7;
    --gold: #B6845C;
    --gold2: #C99A6C;

    --text: #0E1420;
    --muted: #6C6F78;
    --card: #ffffff;

    --shadow: 0 18px 40px rgba(15, 26, 43, .10);
    --shadow2: 0 22px 55px rgba(15, 26, 43, .18);

    --radius: 20px;
    --radius2: 26px;
    --max: 1120px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(182, 132, 92, .25), transparent 60%),
        radial-gradient(900px 520px at 90% 0%, rgba(15, 26, 43, .15), transparent 55%),
        linear-gradient(180deg, var(--beige) 0%, #fff 45%, #fff 100%);
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 233, 220, .72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 26, 43, .08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(15, 26, 43, .06);
    padding: 6px;
}

.brand-title {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1.05;
}

.brand-sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-link {
    font-size: 13px;
    color: rgba(15, 26, 43, .82);
    padding: 10px 10px;
    border-radius: 999px;
}

.nav-link:hover {
    background: rgba(15, 26, 43, .06);
}

.topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Botões: menos foco no Whats */
.btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    user-select: none;
    white-space: nowrap;
}

.btn i {
    font-size: 14px;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(15, 26, 43, .95), rgba(15, 26, 43, .86));
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 26, 43, .18);
}

.btn-primary:hover {
    opacity: .95
}

.btn-outline {
    background: rgba(255, 255, 255, .72);
    color: var(--navy);
    border: 1px solid rgba(15, 26, 43, .16);
}

.btn-outline:hover {
    border-color: rgba(182, 132, 92, .42);
}

.btn-soft {
    background: rgba(15, 26, 43, .05);
    color: var(--navy);
    border: 1px solid rgba(15, 26, 43, .10);
}

.btn-soft:hover {
    border-color: rgba(182, 132, 92, .35);
}

.btn-small {
    padding: 10px 14px;
    font-size: 13px;
}

/* Hero */
.hero {
    padding: 56px 0 26px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 26px;
    align-items: stretch;
}

.hero-card {
    background: linear-gradient(135deg, rgba(15, 26, 43, .92), rgba(15, 26, 43, .82));
    color: #fff;
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
    padding: 28px;
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    min-height: 520px;
}


.hero-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(600px 280px at 30% 0%, rgba(182, 132, 92, .32), transparent 60%),
        radial-gradient(520px 260px at 90% 30%, rgba(255, 255, 255, .10), transparent 60%);
    pointer-events: none;
}

.hero-card>* {
    position: relative;
    z-index: 2
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, .88);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    margin-bottom: 14px;
}

.hero h1 {
    margin: 0 0 10px;
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.05;
    letter-spacing: .2px;
}

.hero p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .82);
    max-width: 54ch;
    font-size: 15px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.hero-meta {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 14px;
}

.meta {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    padding: 14px 14px;
}

.meta strong {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 4px;
}

.meta span {
    font-size: 12px;
    color: rgba(255, 255, 255, .70);
}

/* Hero aside com foto */
.hero-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.model-card {
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(15, 26, 43, .08);
    border-radius: var(--radius2);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 26, 43, .07);
    position: relative;
}

.model-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 26, 43, .84);
    color: #fff;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
}

.model-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: 55% 18%;
}

.model-caption {
    padding: 14px 16px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .80));
}

.cap-title {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    color: var(--navy);
}

.cap-sub {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(15, 26, 43, .70);
}

.aside-card {
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(15, 26, 43, .08);
    border-radius: var(--radius2);
    padding: 18px;
    box-shadow: 0 18px 40px rgba(15, 26, 43, .06);
}

.aside-card.soft {
    background: rgba(255, 255, 255, .55);
}

.aside-title {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.steps {
    margin: 0;
    padding-left: 18px;
    color: rgba(15, 26, 43, .80);
    line-height: 1.7;
    font-size: 14px;
}

/* Sections */
.section {
    padding: 34px 0 56px;
}

.section-alt {
    background: linear-gradient(180deg, rgba(244, 233, 220, .65), rgba(255, 255, 255, .90));
    border-top: 1px solid rgba(15, 26, 43, .06);
    border-bottom: 1px solid rgba(15, 26, 43, .06);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section h2 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    margin: 0 0 6px;
    letter-spacing: .2px;
}

.section-head p {
    margin: 0;
    color: rgba(15, 26, 43, .72);
    line-height: 1.5;
}

.filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 26, 43, .14);
    background: rgba(255, 255, 255, .90);
    min-width: 320px;
}

.search-wrap i {
    color: rgba(15, 26, 43, .55);
}

.input {
    border: 0;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 100%;
}

.spinner {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(15, 26, 43, .20);
    border-top-color: rgba(182, 132, 92, .95);
    display: none;
    animation: spin .8s linear infinite;
}

.spinner.on {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Select estilizado */
.select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 26, 43, .14);
    background: rgba(255, 255, 255, .90);
    min-width: 240px;
}

.select-wrap>i {
    color: rgba(15, 26, 43, .55);
}

.select {
    appearance: none;
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: rgba(15, 26, 43, .85);
    padding-right: 28px;
}

.chevron {
    position: absolute;
    right: 14px;
    color: rgba(15, 26, 43, .55);
    pointer-events: none;
    font-size: 12px;
}

.search-wrap:focus-within,
.select-wrap:focus-within {
    border-color: rgba(182, 132, 92, .55);
    box-shadow: 0 0 0 4px rgba(182, 132, 92, .16);
}

/* Products grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid rgba(15, 26, 43, .08);
    border-radius: var(--radius2);
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 26, 43, .06);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(15, 26, 43, .10);
    border-color: rgba(182, 132, 92, .30);
}

.media {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(15, 26, 43, .06), rgba(182, 132, 92, .10));
    position: relative;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 26, 43, .82);
    color: #fff;
    font-size: 11px;
    padding: 7px 10px;
    border-radius: 999px;
    letter-spacing: .2px;
    border: 1px solid rgba(255, 255, 255, .12);
}

.content {
    padding: 16px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.title h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 18px;
    line-height: 1.2;
}

.price {
    font-weight: 700;
    color: rgba(15, 26, 43, .80);
    font-size: 13px;
    white-space: nowrap;
}

.desc {
    margin: 0;
    color: rgba(15, 26, 43, .70);
    line-height: 1.55;
    font-size: 13px;
}

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.pill {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(15, 26, 43, .05);
    border: 1px solid rgba(15, 26, 43, .08);
    color: rgba(15, 26, 43, .75);
}

.card-actions {
    display: flex;
    gap: 10px;
    padding: 0 16px 16px;
}

.card-actions a {
    flex: 1;
}

.card-actions .btn-primary {
    box-shadow: none;
    /* deixa menos “agressivo” */
}

/* Empty state */
.empty {
    margin: 18px 0 0;
    padding: 26px 18px;
    border-radius: var(--radius2);
    border: 1px dashed rgba(15, 26, 43, .18);
    background: rgba(255, 255, 255, .70);
    text-align: center;
}

.empty-ic {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    background: rgba(15, 26, 43, .06);
    color: rgba(15, 26, 43, .70);
}

.empty-title {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    color: var(--navy);
}

.empty-sub {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(15, 26, 43, .68);
}

/* About */
.about {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
    align-items: stretch;
}

.about-card {
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(15, 26, 43, .08);
    border-radius: var(--radius2);
    box-shadow: 0 16px 34px rgba(15, 26, 43, .06);
    padding: 22px;
}

.about-card h3 {
    margin: 0 0 10px;
    font-family: "Playfair Display", serif;
    letter-spacing: .2px;
}

.about-card p {
    margin: 0;
    color: rgba(15, 26, 43, .74);
    line-height: 1.65;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.badge {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 26, 43, .10);
    background: rgba(15, 26, 43, .04);
    font-size: 12px;
    color: rgba(15, 26, 43, .78);
    display: flex;
    gap: 8px;
    align-items: center;
}

.about-card.minimal .muted {
    color: rgba(15, 26, 43, .66);
    margin: 10px 0 14px;
}

.hint {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(15, 26, 43, .62);
}

/* Footer */
.footer {
    padding: 22px 0;
    background: rgba(15, 26, 43, .98);
    color: rgba(255, 255, 255, .90);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    padding: 6px;
}

.footer-title {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    letter-spacing: .2px;
}

.footer-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, .70);
    margin-top: 2px;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, .78);
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
}

.footer-links a:hover {
    opacity: .92
}

/* Whats float só ícone */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;

    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: grid;
    place-items: center;

    background: linear-gradient(135deg, rgba(182, 132, 92, .95), rgba(182, 132, 92, .80));
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 26, 43, .22);
    border: 1px solid rgba(255, 255, 255, .20);
}

.wa-float i {
    font-size: 22px;
}

.wa-float:hover {
    opacity: .96
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}

.modal.show {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 26, 43, .55);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    max-width: 980px;
    margin: 32px auto;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius2);
    box-shadow: var(--shadow2);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(15, 26, 43, .12);
    background: rgba(255, 255, 255, .78);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 0;
}

.modal-media {
    background: linear-gradient(135deg, rgba(15, 26, 43, .06), rgba(182, 132, 92, .10));
}

.modal-media img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.modal-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.modal-cat {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: rgba(15, 26, 43, .70);
    font-size: 12px;
    margin-bottom: 6px;
}

.modal-title {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 24px;
    line-height: 1.15;
    color: var(--navy);
}

.modal-price {
    font-weight: 700;
    color: rgba(15, 26, 43, .78);
    white-space: nowrap;
}

.modal-desc {
    margin: 0;
    color: rgba(15, 26, 43, .72);
    line-height: 1.65;
    font-size: 14px;
}

.modal-section {
    border-top: 1px solid rgba(15, 26, 43, .08);
    padding-top: 12px;
}

.modal-section-title {
    font-weight: 700;
    color: var(--navy);
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.modal-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-tech {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tech-item {
    border: 1px solid rgba(15, 26, 43, .08);
    background: rgba(15, 26, 43, .03);
    border-radius: 14px;
    padding: 10px 12px;
}

.tech-k {
    font-size: 12px;
    color: rgba(15, 26, 43, .60);
}

.tech-v {
    margin-top: 4px;
    font-weight: 600;
    color: rgba(15, 26, 43, .85);
    font-size: 13px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.modal-actions a,
.modal-actions button {
    flex: 1;
}

.modal-note {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(15, 26, 43, .70);
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        grid-template-columns: 1fr;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-media img {
        min-height: 360px;
    }

    .modal-tech {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav {
        display: none;
    }

    .hero {
        padding: 40px 0 18px;
    }

    .hero-card {
        padding: 22px;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .search-wrap {
        min-width: 100%;
    }

    .select-wrap {
        min-width: 100%;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* esconde o select nativo (mas mantém no DOM) */
.native-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.custom-select {
    position: relative;
    padding: 10px 14px;
    gap: 10px;
}

.select-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: rgba(15, 26, 43, .85);
    cursor: pointer;
    padding: 0;
}

.select-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 60;

    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 26, 43, .12);
    border-radius: 16px;
    box-shadow: 0 22px 55px rgba(15, 26, 43, .16);
    overflow: hidden;
}

.select-option {
    padding: 12px 14px;
    font-size: 13px;
    color: rgba(15, 26, 43, .84);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid rgba(15, 26, 43, .06);
}

.select-option:last-child {
    border-bottom: 0
}

.select-option:hover {
    background: rgba(182, 132, 92, .10);
}

.select-option.active {
    background: rgba(15, 26, 43, .06);
    font-weight: 700;
}

.select-option .check {
    color: rgba(182, 132, 92, .95);
}

/* Botão secundário premium para o HERO (em fundo escuro) */
.btn-secondary-hero {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92);
    border: 1px solid rgba(182, 132, 92, .45);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
    position: relative;
    overflow: hidden;
}

.btn-secondary-hero:hover {
    border-color: rgba(182, 132, 92, .75);
    background: rgba(255, 255, 255, .12);
    transform: translateY(-1px);
}

.btn-secondary-hero:active {
    transform: translateY(0px);
}

/* brilho sutil (bem “luxo”) */
.btn-secondary-hero::before {
    content: "";
    position: absolute;
    inset: -40% -40%;
    background: radial-gradient(circle at 30% 30%, rgba(182, 132, 92, .22), transparent 55%);
    opacity: .9;
    pointer-events: none;
}

/* ícone mais “alinhado” com o luxo */
.btn-secondary-hero i {
    opacity: .95;
}

.hero .btn-primary {
    box-shadow: 0 12px 22px rgba(0, 0, 0, .16);
    background: linear-gradient(135deg, rgba(15, 26, 43, .92), rgba(15, 26, 43, .78));
    border: 1px solid rgba(255, 255, 255, .10);
}

.modal-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(180deg,
            rgba(244, 233, 220, 0.4),
            rgba(255, 255, 255, 0.8));
}

.modal-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
}

/* Desktop: busca e filtro lado a lado */
.filters {
    display: grid;
    grid-template-columns: 1.35fr .85fr;
    /* busca maior, select menor */
    gap: 12px;
    align-items: center;
    width: min(680px, 100%);
    /* limita para não ficar gigante */
}

.search-wrap,
.select-wrap {
    min-width: 0;
    /* evita estourar */
    width: 100%;
}

/* Card de contato: botão sempre bem alinhado */
.about-card.contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-card.contact .btn {
    align-self: flex-start;
    /* não estica */
    margin-top: 6px;
}

.about-card.contact .hint {
    margin-top: auto;
    /* dica fica no rodapé */
}

/* Contato: layout certinho + botão premium */
.about-card.minimal.contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-card.minimal.contact .btn {
    margin-top: 10px;
    align-self: flex-start;
    padding: 12px 18px;
    box-shadow: 0 14px 26px rgba(15, 26, 43, .14);
}

.about-card.minimal.contact .hint {
    margin-top: auto;
}

/* =========================
   MODAL: MOBILE FRIENDLY
   ========================= */

/* impede o body rolar quando o modal abre */
body.modal-open {
    overflow: hidden;
}

/* garante que o modal sempre caiba na tela */
.modal-card {
    max-height: calc(100vh - 24px);
}

/* desktop/tablet: mantém sua grid */
.modal-body {
    max-height: calc(100vh - 24px);
}

/* imagem não estoura */
.modal-media {
    height: 100%;
}

.modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
    .modal-card {
        width: calc(100% - 16px);
        margin: 8px auto;
        border-radius: 22px;
        max-height: calc(100vh - 16px);
    }

    /* vira coluna */
    .modal-body {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 16px);
        overflow: hidden;
        /* scroll fica no content */
    }

    /* imagem vira "hero" com altura controlada */
    .modal-media {
        height: 38vh;
        /* ajuste fino aqui */
        min-height: 220px;
        max-height: 320px;
    }

    .modal-media img {
        height: 100%;
        object-fit: cover;
        object-position: 50% 30%;
    }

    /* conteúdo rola (não o site) */
    .modal-content {
        padding: 16px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 16px - 38vh);
    }

    /* botão fechar não fica “perdido” */
    .modal-close {
        right: 10px;
        top: 10px;
        width: 38px;
        height: 38px;
    }

    /* ações sempre cabem */
    .modal-actions {
        position: sticky;
        bottom: 0;
        background: rgba(255, 255, 255, .92);
        padding: 10px 0 0;
        margin-top: 6px;
        backdrop-filter: blur(10px);
    }

    .modal-actions a,
    .modal-actions button {
        flex: 1 1 100%;
    }
}

/* ===== FIX: no mobile o texto não pode subir por cima da imagem ===== */
@media (max-width: 980px) {
    .modal-body {
        display: flex;
        flex-direction: column;
    }

    .modal-media {
        height: 260px;
        /* ajuste fino: 240~320 fica bom */
        flex: 0 0 auto;
        overflow: hidden;
    }

    .modal-media img {
        width: 100%;
        height: 100%;
        min-height: 0 !important;
        /* mata o min-height que bagunça no mobile */
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .modal-content {
        background: rgba(255, 255, 255, .96);
        flex: 1 1 auto;
    }
}

/* ===== HEADER MOBILE AJUSTADO ===== */
@media (max-width: 640px) {

    /* remove botão Contato */
    #btnWhatsHeader {
        display: none !important;
    }

    /* deixa o container ocupar melhor o espaço */
    .topbar-inner {
        gap: 10px;
    }

    /* ajusta ações */
    .topbar-actions {
        width: auto;
    }

    /* botão "Ver produtos" adaptado */
    #btnVerCatalogo {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 999px;
        white-space: nowrap;
    }

    /* opcional: reduzir levemente a logo pra caber melhor */
    .brand img {
        width: 36px;
        height: 36px;
    }

    .brand-title {
        font-size: 16px;
    }

    .brand-sub {
        font-size: 11px;
    }
}

/* =========================
   MODAL: SCROLL + CTA FIXO
   ========================= */

/* trava o card dentro da tela */
.modal-card {
    max-height: calc(100dvh - 24px);
    display: flex;
}

/* o grid precisa respeitar a altura do card */
.modal-body {
    height: 100%;
    min-height: 0;
    /* MUITO importante p/ scroll funcionar */
}

/* a coluna do conteúdo rola */
.modal-content {
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 92px;
    /* espaço pro botão fixo não cobrir conteúdo */
}

/* botão fica fixo no rodapé do modal */
.modal-actions {
    position: sticky;
    bottom: 0;
    margin-top: 12px;
    padding: 12px 0 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .92) 22%, rgba(255, 255, 255, .92) 100%);
    backdrop-filter: blur(8px);
}

/* garante que o botão tenha "cara" de CTA no mobile */
.modal-actions .btn {
    width: 100%;
}

/* ===== Mobile: modal ocupa a tela e fica fácil de rolar ===== */
@media (max-width: 980px) {
    .modal-card {
        width: calc(100% - 24px);
        margin: 12px auto;
        max-height: calc(100dvh - 24px);
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    /* imagem vira “hero” com altura controlada */
    .modal-media img {
        min-height: 0;
        height: 34dvh;
        object-fit: cover;
        object-position: center;
    }
}
