/* T G PEREIRA — barraca de feira */
:root { --leaf: #3E6B4F; --crate: #D7B48A; --chalk: #F6F3EA; --tomato: #C44536; --soil: #3A2E24; }
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body.skin-stall { margin: 0; background: var(--chalk); color: var(--soil); font-family: "Sora", sans-serif; font-size: 1.02rem; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--soil); }
h1, h2, h3, .brand-name { font-family: "Newsreader", serif; font-weight: 700; line-height: 1.05; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 0.4rem; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h3 { font-size: 1.05rem; margin: 0.15rem 0; }
p { margin: 0.3rem 0; }
.brand-name { font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1; color: var(--soil); }
.skip-link { position: absolute; left: 0.5rem; top: -4rem; background: var(--chalk); z-index: 90; padding: 0.4rem 0.65rem; }
.skip-link:focus { top: 0.4rem; }
[data-site-header], main, [data-site-footer], .stall-yard, .stall-table, .stall-item { min-width: 0; }
.stall-wrap { width: min(1080px, calc(100% - 1.4rem)); margin-inline: auto; min-width: 0; }
.stall-kicker { margin: 0 0 0.3rem; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; color: var(--tomato); font-weight: 700; font-family: "Sora", sans-serif; }

.stall-awning { background: var(--soil); }
.stall-stripes { height: 16px; background: repeating-linear-gradient(90deg, var(--tomato) 0 18px, var(--chalk) 18px 36px); }
.stall-slat { display: flex; align-items: center; gap: 0.7rem; min-width: 0; background: var(--crate); padding: 0.55rem 0.8rem; border-bottom: 6px solid var(--soil); }
.stall-brand { text-decoration: none; min-width: 0; }
.site-nav { margin-left: auto; min-width: 0; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 0.45rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--soil); text-decoration: none; font-weight: 700; padding: 0.3rem 0.35rem; background: rgba(246,243,234,0.55); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.15rem; background: var(--chalk); }
.menu-toggle { display: none; font-family: "Sora", sans-serif; background: var(--chalk); border: 2px solid var(--soil); padding: 0.35rem 0.6rem; }
.cart-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--soil); text-decoration: none; font-weight: 700; flex: 0 0 auto; background: var(--chalk); padding: 0.3rem 0.45rem; }
.cart-link strong { display: inline-flex; min-width: 1.4rem; height: 1.4rem; align-items: center; justify-content: center; border-radius: 2px; background: var(--tomato); color: var(--chalk); font-size: 0.75rem; }

.stall-hero { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--leaf); color: var(--chalk); overflow: hidden; }
.stall-front { min-height: 180px; background: linear-gradient(var(--crate), var(--crate)) bottom / 100% 28px no-repeat, var(--leaf); display: flex; align-items: flex-end; padding: 1rem; }
.stall-board-hero { background: var(--soil); color: var(--chalk); padding: 0.8rem 1rem; width: min(100%, 280px); transform: rotate(-2deg); }
.stall-board-hero strong { font-family: "Newsreader", serif; font-size: 1.8rem; display: block; }
.stall-hero-copy { padding: 1rem; min-width: 0; }
.stall-hero .btn { background: var(--tomato); color: var(--chalk); }

.stall-pagehead { padding: 0.9rem 0 0.3rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.3rem 0 0.6rem; }
.filters button { font-family: "Sora", sans-serif; background: var(--chalk); color: var(--soil); border: 2px solid var(--soil); padding: 0.3rem 0.6rem; cursor: pointer; }
.filters button.is-active { background: var(--tomato); color: var(--chalk); border-color: var(--tomato); }
.stall-yard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 0.6rem; background: var(--leaf); perspective: 900px; }
.stall-table { transform: rotateX(14deg); transform-origin: center bottom; background: repeating-linear-gradient(90deg, #c9a06e 0 14px, #D7B48A 14px 28px); border: 8px solid var(--soil); padding: 0.7rem; display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
.stall-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) 78px; gap: 0.45rem; align-items: center; background: var(--chalk); padding: 0.35rem; min-width: 0; }
.stall-photo { display: block; width: 84px; height: 72px; overflow: hidden; background: var(--soil); }
.stall-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.stall-lousa { background: var(--soil); color: var(--chalk); text-align: center; padding: 0.35rem 0.2rem; min-width: 0; }
.stall-lousa strong { display: block; font-family: "Newsreader", serif; font-size: 1rem; }
.stall-item h3 { margin: 0; }
.stall-item h3 a { color: var(--soil); text-decoration: none; }
.stall-cat { margin: 0; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf); }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; font-family: "Sora", sans-serif; font-weight: 700; background: var(--leaf); color: var(--chalk); border: 0; padding: 0.45rem 0.65rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--soil); }
.hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.product-detail, .cart-layout, .checkout-layout, .contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-bottom: 1.4rem; min-width: 0; }
.stall-stage { background: var(--leaf); padding: 1rem; }
.stall-stage .stall-photo { width: 100%; height: 280px; }
.field, select.field, textarea.field { width: 100%; min-width: 0; font: inherit; color: var(--soil); background: #fff; border: 2px solid var(--soil); padding: 0.6rem 0.7rem; }
textarea.field { min-height: 8rem; resize: vertical; }
label { display: block; font-weight: 700; margin: 0.6rem 0 0.2rem; }
.field-hint { color: var(--leaf); font-size: 0.92rem; }
.checkbox-line { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.5rem 0; font-weight: 400; }
.checkbox-line input { margin-top: 0.25rem; flex: 0 0 auto; }
.pay-option { display: flex; gap: 0.5rem; align-items: flex-start; border: 2px solid var(--soil); background: #fff; padding: 0.65rem; margin: 0.35rem 0; }
.pay-option:has(input:checked) { box-shadow: inset 4px 0 0 var(--tomato); }
.form-feedback { background: var(--leaf); color: var(--chalk); padding: 0.7rem 0.8rem; margin-top: 0.7rem; }
.stall-side { background: var(--crate); border: 3px solid var(--soil); padding: 0.85rem; min-width: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 0.6rem; margin: 0.3rem 0; }
.stall-cart-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0.6rem; padding: 0.7rem 0; border-bottom: 2px solid var(--crate); }
.qty { display: inline-flex; gap: 0.3rem; align-items: center; }
.qty button, .remove-btn { font: inherit; background: var(--chalk); border: 2px solid var(--soil); min-width: 2rem; min-height: 2rem; cursor: pointer; }
.remove-btn { margin-top: 0.35rem; }
.legal-page { background: var(--chalk); color: var(--soil); }
.legal-page .legal-article, .legal-page .legal-nav { font-family: "Sora", sans-serif; color: var(--soil); }
.legal-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem 0 2rem; }
.legal-nav { position: static; }
.legal-nav a { display: block; margin: 0.3rem 0; text-decoration: underline; }
.legal-nav a[aria-current="page"] { font-weight: 700; }
.legal-article { max-width: 68ch; min-width: 0; }
.legal-article h1, .legal-article h2 { font-family: "Sora", sans-serif; }
.legal-article h1 { font-size: clamp(1.55rem, 3vw, 2rem); }
.stall-facts { list-style: none; padding: 0; }
.stall-extra { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
.stall-extra img { width: 100%; height: 160px; object-fit: cover; border: 4px solid var(--crate); }
.stall-footer { background: var(--soil); color: var(--chalk); padding: 1.1rem 0 0.8rem; }
.stall-footer a { color: var(--chalk); text-decoration: underline; text-underline-offset: 0.15rem; }
.stall-news { background: var(--chalk); color: var(--soil); padding: 0.85rem; margin-bottom: 1rem; border-left: 8px solid var(--tomato); }
.stall-news a { color: var(--leaf); }
.stall-footgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.stall-footgrid a, .stall-footgrid p { display: block; margin: 0.2rem 0; }
.footer-copy { margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid rgba(246,243,234,0.3); }
.toast { position: fixed; z-index: 70; left: 1rem; right: 1rem; bottom: 1rem; margin-inline: auto; width: fit-content; max-width: calc(100vw - 2rem); background: var(--tomato); color: var(--chalk); padding: 0.7rem 0.85rem; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; }
@media (min-width: 860px) {
  .stall-hero { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .stall-yard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .product-detail, .cart-layout, .checkout-layout, .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .legal-wrap { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); }
  .stall-footgrid { grid-template-columns: 1.3fr 1fr 1fr; }
  .stall-extra { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .stall-slat { flex-wrap: wrap; }
  .stall-brand { order: 1; max-width: calc(100% - 7rem); }
  .menu-toggle { order: 2; }
  .cart-link { order: 3; }
  .site-nav { display: none; order: 4; flex: 1 0 100%; margin-left: 0; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .stall-table { transform: rotateX(8deg); transform-origin: center bottom; }
  .stall-item { grid-template-columns: 72px minmax(0, 1fr); }
  .stall-lousa { grid-column: 2; }
}

/* band-v2 */
.stall-pagehead { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.8rem; align-items: end; background: #3E6B4F; color: #F6F3EA; padding: 0.9rem; }
.stall-pagehead h1 { background: #3A2E24; color: #F6F3EA; display: inline-block; padding: 0.35rem 0.55rem; transform: rotate(-1.5deg); }
.stall-pagehead p, .stall-pagehead .stall-kicker { color: #F6F3EA; }
.stall-pagehead .filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; justify-content: flex-end; }
.stall-pagehead .filters button { width: 5.4rem; min-height: 3.3rem; background: #3A2E24; color: #F6F3EA; border: 0; transform: rotate(-3deg); padding: 0.35rem; }
.stall-pagehead .filters button:nth-child(even) { transform: rotate(2deg); }
.stall-pagehead .filters button.is-active { background: #C44536; color: #F6F3EA; }
@media (max-width: 800px) { .stall-pagehead { grid-template-columns: minmax(0, 1fr); } }
