.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

.top { position: sticky; top: 0; z-index: 20; background: var(--green); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; gap: .6rem; min-height: 60px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: #F5F1E8; text-decoration: none; font-family: var(--serif); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: 1.1rem; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { flex: none; background: #F5F1E8; border-radius: 9px; padding: 3px; }
.top .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.top .btn.secondary:hover { background: rgba(255,255,255,.12); }
.cart-count { background: var(--green); color: #fff; border-radius: 999px; min-width: 1.6em; padding: 0 .4em; text-align: center; font-size: .85em; }
@media (max-width: 480px) { .top .btn { padding: .3em .6em; } .brand { font-size: 1rem; } }

.hero { background: radial-gradient(1100px 380px at 85% -30%, #6d7861 0%, transparent 60%), linear-gradient(160deg, #434c3a, #515B46); color: #F5F1E8; padding: 2.2rem 0 2.4rem; }
.hero .eyebrow { letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; color: #D9C8A3; margin-bottom: .4rem; }
.hero h1 { font-family: var(--serif); font-size: clamp(1.9rem, 6vw, 3rem); margin-bottom: .3rem; }
.hero .tagline { font-size: 1.1rem; color: #F5F1E8; font-style: italic; }
.hero .lead { max-width: 60ch; color: #D9CDBD; font-size: .95rem; margin-bottom: 0; }

main { padding: 1.4rem 0 2rem; }
.toolbar { display: grid; gap: .8rem; margin-bottom: 1.2rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.chip { flex: none; border: 1px solid #cdbf9f; background: #fff; border-radius: 999px; padding: .4em 1em; min-height: 40px; font-weight: 600; color: var(--ink); }
.chip[aria-selected=true] { background: var(--green); border-color: var(--green); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.grid > .empty { grid-column: 1 / -1; }

.card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(18,55,42,.18); }
.card-img { position: relative; aspect-ratio: 1; background: #23150f; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.tag { background: rgba(255,255,255,.93); color: var(--green); font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .15em .6em; }
.card-body { padding: .7rem .8rem .9rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.card-body h3 { font-family: var(--serif); font-size: 1.02rem; margin: 0; }
.card-body .desc { font-size: .82rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin-top: auto; font-weight: 800; color: var(--green); font-size: 1.05rem; padding-top: .3rem; }
.price small { font-weight: 500; color: var(--muted); font-size: .75rem; }

.shipping-note { text-align: center; margin-top: 1.5rem; }

.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(251,246,236,.95) 40%); }
.cartbar .btn { max-width: 640px; margin: 0 auto; box-shadow: 0 4px 16px rgba(0,0,0,.3); }

.foot { background: var(--green); color: #D9CDBD; padding: 1.5rem 0 5rem; }
.foot p { margin-bottom: .3rem; }
.foot a { color: #E6D7B8; }

/* diálogo de produto */
.pd-img { display: block; aspect-ratio: 1; width: 100%; max-height: min(70vh, 520px); object-fit: contain; border-radius: 12px; background: #23150f; margin: 0 auto .9rem; }
.pd-desc { color: var(--ink); }
.pd-note { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.opt-group { margin: 1rem 0; }
.opt-group > .lab { font-weight: 700; font-size: .9rem; margin-bottom: .4rem; display: block; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.pill span { display: block; border: 2px solid #cdbf9f; border-radius: 10px; padding: .45em .9em; min-height: 44px; background: #fff; font-weight: 600; font-size: .92rem; }
.pill input:checked + span { border-color: var(--green); background: #ECEEE4; }
.pill input:focus-visible + span { outline: 3px solid rgba(201,153,58,.6); }
.pill small { display: block; font-weight: 500; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid #cdbf9f; border-radius: 10px; background: #fff; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: none; background: #f4eee0; font-size: 1.4rem; font-weight: 700; }
.stepper button:hover { background: #ebe2cc; }
.stepper output { min-width: 46px; text-align: center; font-weight: 700; }

/* carrinho */
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .7rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #23150f; }
.cart-line .nm { font-weight: 700; }
.cart-line .meta { font-size: .82rem; color: var(--muted); }
.cart-line .ctl { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; flex-wrap: wrap; }
.cart-line .ctl .stepper button { width: 36px; height: 36px; }
.totals { margin: 1rem 0; border-top: 2px solid var(--green); padding-top: .6rem; }
.totals div { display: flex; justify-content: space-between; padding: .15rem 0; }
.totals .grand { font-size: 1.25rem; font-weight: 800; color: var(--green); }
.section-title { font-family: var(--serif); font-size: 1.1rem; margin: 1.3rem 0 .6rem; }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem; border: 2px solid #d8ccb0; border-radius: 10px; margin-bottom: .5rem; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--green); background: #ECEEE4; }
.choice b { display: block; }
.choice small { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* confirmação / acompanhamento */
.big-code { font-family: var(--serif); font-size: 2.2rem; font-weight: 800; color: var(--green); letter-spacing: .04em; text-align: center; margin: .3rem 0; }
.pay-box { border: 2px dashed var(--gold); background: #FBF7EE; border-radius: 12px; padding: .9rem 1rem; margin: 1rem 0; }
.pay-box dl { margin: .5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; align-items: center; }
.pay-box dt { color: var(--muted); font-size: .88rem; }
.pay-box dd { margin: 0; font-weight: 700; word-break: break-all; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.sum-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sum-table td { padding: .35rem 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.sum-table td:last-child { text-align: right; white-space: nowrap; padding-left: .6rem; }
.steps { display: flex; gap: 4px; margin: 1rem 0; }
.step { flex: 1; text-align: center; font-size: .7rem; font-weight: 700; color: var(--muted); }
.step::before { content: ''; display: block; height: 8px; border-radius: 4px; background: #ddd2b9; margin-bottom: 4px; }
.step.done { color: var(--green); }
.step.done::before { background: var(--green-2); }
.timeline { list-style: none; padding: 0; margin: .5rem 0; font-size: .88rem; }
.timeline li { padding: .3rem 0 .3rem 1rem; border-left: 3px solid var(--line); }
.timeline time { color: var(--muted); display: block; font-size: .78rem; }

.tag.new { background: var(--gold); color: #1d1608; }

.hero-in { display: flex; gap: 1.4rem; align-items: center; }
.hero-logo { flex: none; background: #F5F1E8; border-radius: 22px; padding: 10px; width: 96px; height: 96px; }
.hero h1 { letter-spacing: .18em; }
.hero-link { color: #E6D7B8; }
@media (max-width: 520px) { .hero-logo { width: 64px; height: 64px; border-radius: 16px; padding: 6px; } .hero-in { gap: 1rem; } .brand { letter-spacing: .16em; font-size: 1rem; } }
.story { background: #fff; border-top: 1px solid var(--line); padding: 3rem 0 3.2rem; }
.story-in { max-width: 700px; margin: 0 auto; text-align: center; }
.story-logo { display: block; margin: 0 auto 1rem; }
.story h2 { font-family: var(--serif); letter-spacing: .22em; color: var(--green); font-size: 1.7rem; margin-bottom: 1.2rem; }
.story h2 span { display: block; font-size: .95rem; letter-spacing: .08em; color: var(--gold-dark); font-style: italic; font-weight: 400; margin-top: .5rem; }
.story p { color: var(--ink); }
.story-lead { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--green) !important; }
.story-end { font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin-top: 1.5rem; color: var(--green) !important; }
.foot-brand { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.foot-brand img { background: #F5F1E8; border-radius: 6px; padding: 2px; }
.foot-brand strong { letter-spacing: .2em; }

.foot .muted { color: #D9CDBD; }
