/* ========================================
   BASE
======================================== */

:root {
    --ink: #171717;
    --paper: #f8f8f4;
    --lime: #d9fa60;
    --muted: #66665f;
    --line: #dcdcd5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

h1,
h2,
h3,
p {
    margin: 0;
}

:focus-visible {
    outline: 3px solid #5e7000;
    outline-offset: 4px;
}

.eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1.7;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    min-height: 52px;
    padding: 16px 24px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: background 180ms ease, color 180ms ease;
}

.button-lime {
    background: var(--lime);
    color: var(--ink);
}

.button-lime:hover {
    background: #e6ff94;
}

.button-dark {
    background: var(--ink);
    color: white;
}

.button-dark:hover:not(:disabled) {
    background: #383838;
}

.button-outline {
    border-color: var(--ink);
    background: transparent;
    color: var(--ink);
}

.button-outline:hover {
    background: var(--ink);
    color: var(--lime);
}

/* ========================================
   CABEÇALHO
======================================== */

.demo-banner {
    padding: 10px 20px;
    background: var(--ink);
    color: white;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 80px;
    padding: 16px 5%;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.brand {
    display: inline-flex;
    align-items: flex-start;
    font-size: 31px;
    font-weight: 900;
    letter-spacing: -2px;
}

.brand > span {
    margin: 4px 0 0 4px;
    font-size: 11px;
    letter-spacing: 0;
}

.header nav {
    display: flex;
    gap: 35px;
    font-size: 12px;
    font-weight: 700;
}

.header nav a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.bag-button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 0 8px 10px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.bag-button span {
    display: grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    padding-inline: 5px;
    background: var(--lime);
}

/* ========================================
   CAMPANHA
======================================== */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 650px;
    min-height: min(760px, 85svh);
    overflow: hidden;
    background: #30312c;
    color: white;
}

.hero-image {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0.65;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.15)
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 65px 7%;
}

.hero h1 {
    margin-block: 28px 35px;
    font-size: clamp(68px, 10vw, 145px);
    font-weight: 900;
    letter-spacing: -7px;
    line-height: 0.88;
}

.hero h1 em {
    color: var(--lime);
    font-style: normal;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    max-width: 1050px;
}

.hero-bottom p {
    font-size: 14px;
    line-height: 1.8;
}

.hero-side {
    position: absolute;
    right: 22px;
    top: 50%;
    z-index: 1;
    writing-mode: vertical-rl;
    font-size: 9px;
    letter-spacing: 3px;
}

.statement-strip {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 23px 5%;
    background: var(--lime);
    font-size: clamp(13px, 2vw, 22px);
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* ========================================
   VITRINE
======================================== */

.collection {
    max-width: 1440px;
    margin-inline: auto;
    padding: 90px 5%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 45px;
}

.section-heading h2 {
    margin-top: 18px;
    font-size: clamp(38px, 5vw, 64px);
    letter-spacing: -3px;
    line-height: 0.98;
}

.section-heading > p {
    max-width: 260px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 20px;
    margin-bottom: 25px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filters button {
    min-height: 44px;
    padding: 12px 17px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
}

.filters button[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: white;
}

.product-count {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 11px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 24px;
}

.product-card {
    min-width: 0;
}

.product-card button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.product-photo {
    position: relative;
    overflow: hidden;
    background: #e7e7e2;
}

.product-photo img {
    height: 390px;
    transition: transform 400ms ease;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 9px;
    background: var(--paper);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-action {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--lime);
    color: var(--ink);
    font-size: 24px;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 15px;
    padding-top: 17px;
}

.product-info h3 {
    font-size: 13px;
    line-height: 1.5;
}

.product-info p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.product-info strong {
    flex-shrink: 0;
    padding-top: 2px;
    font-size: 12px;
}

.catalog-note {
    margin-top: 35px;
    color: var(--muted);
    font-size: 11px;
}

@media (hover: hover) {
    .product-card button:hover img {
        transform: scale(1.045);
    }
}

/* ========================================
   MANIFESTO E RODAPÉ
======================================== */

.manifesto {
    padding: 65px 7%;
    background: var(--lime);
}

.manifesto-top,
.manifesto-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.manifesto-index {
    font-size: 12px;
    font-weight: 700;
}

.manifesto h2 {
    margin-block: 50px;
    font-size: clamp(45px, 8vw, 110px);
    line-height: 0.95;
    letter-spacing: -5px;
}

.manifesto h2 span {
    -webkit-text-stroke: 1.5px var(--ink);
    color: transparent;
}

.manifesto-bottom p {
    max-width: 490px;
    font-size: 14px;
    line-height: 1.9;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 40px 5%;
}

.footer p,
.footer > a:last-child {
    color: var(--muted);
    font-size: 11px;
}

/* ========================================
   JANELAS E SACOLA
======================================== */

dialog {
    max-height: 90vh;
    max-height: 90svh;
    padding: 0;
    border: 0;
    background: var(--paper);
    color: var(--ink);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.65);
}

.close-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-size: 28px;
}

.product-dialog {
    width: min(850px, 94vw);
}

.product-dialog > .close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.product-detail > img {
    height: 100%;
    min-height: 560px;
    background: #e7e7e2;
}

.product-form {
    padding: 65px 35px 35px;
}

.product-form h2 {
    margin-top: 14px;
    font-size: 32px;
    letter-spacing: -1px;
}

.detail-price {
    margin-top: 18px;
    font-size: 21px;
    font-weight: 700;
}

.detail-description {
    margin-block: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.product-form label {
    display: block;
    margin: 18px 0 8px;
    font-size: 12px;
    font-weight: 700;
}

.product-form select,
.product-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #aaa;
    border-radius: 0;
    background: white;
    color: var(--ink);
    font-size: 16px;
}

.product-form .button {
    width: 100%;
    margin-top: 25px;
}

.product-form small {
    display: block;
    margin-top: 15px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.bag-dialog {
    width: min(540px, 94vw);
    padding: 28px;
}

.bag-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.bag-header h2 {
    margin-top: 8px;
    font-size: 32px;
    letter-spacing: -1px;
}

.bag-item {
    display: grid;
    grid-template-columns: 65px 1fr auto;
    align-items: start;
    gap: 15px;
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
}

.bag-item img {
    height: 85px;
    background: #e7e7e2;
}

.bag-item h3 {
    font-size: 13px;
}

.bag-item p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.bag-item strong {
    font-size: 12px;
}

.remove-item {
    min-height: 32px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    font-size: 11px;
    text-decoration: underline;
}

.bag-empty {
    padding-block: 35px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.bag-summary {
    padding-top: 25px;
}

.subtotal {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
}

.bag-summary > p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.bag-summary .button {
    width: 100%;
    margin-top: 22px;
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    z-index: 30;
    width: max-content;
    max-width: 90vw;
    padding: 15px 22px;
    background: var(--ink);
    color: white;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    transform: translate(-50%, 15px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

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

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-photo img {
        height: 350px;
    }

    .hero h1 {
        letter-spacing: -4px;
    }
}

@media (max-width: 600px) {
    .header {
        flex-wrap: wrap;
        gap: 8px 20px;
        padding-block: 12px;
    }

    .brand {
        font-size: 27px;
    }

    .header nav {
        order: 3;
        justify-content: center;
        width: 100%;
        padding-block: 8px;
    }

    html {
        scroll-padding-top: 130px;
    }

    .hero {
        min-height: 590px;
    }

    .hero-content {
        padding: 50px 6%;
    }

    .hero h1 {
        font-size: clamp(57px, 14vw, 83px);
        letter-spacing: -3px;
    }

    .hero-bottom,
    .section-heading,
    .manifesto-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-side {
        display: none;
    }

    .statement-strip {
        gap: 10px;
        font-size: 11px;
    }

    .collection {
        padding-block: 60px;
    }

    .section-heading h2 {
        letter-spacing: -2px;
    }

    .catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .filters {
        gap: 3px;
    }

    .filters button {
        padding-inline: 12px;
        font-size: 11px;
    }

    .product-grid {
        gap: 28px 12px;
    }

    .product-photo img {
        height: 240px;
    }

    .product-info {
        flex-direction: column;
        gap: 8px;
    }

    .product-badge {
        top: 9px;
        left: 9px;
        font-size: 8px;
    }

    .manifesto {
        padding: 45px 6%;
    }

    .manifesto h2 {
        margin-block: 35px;
        font-size: clamp(36px, 9vw, 54px);
        letter-spacing: -2px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail > img {
        min-height: 0;
        height: 270px;
    }

    .product-form {
        padding: 25px;
    }

    .bag-dialog {
        padding: 20px;
    }

    .bag-item {
        gap: 10px;
        grid-template-columns: 50px 1fr;
    }

    .bag-item > strong {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}