:root {
  color-scheme: light;
  --ink: #1e3528;
  --forest: #254032;
  --moss: #3c5945;
  --paper: #fbf8f0;
  --card: #fffdf8;
  --photo: #f2ede2;
  --line: #ded8c9;
  --muted: #5d665b;
  --gold: #f0d29b;
  --radius: 18px;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #ab671d; outline-offset: 3px; }
h1, h2, h3, .brand, .footer-brand { font-family: Georgia, "Times New Roman", serif; line-height: 1.1; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5.15rem); letter-spacing: -.042em; }
h2 { font-size: clamp(1.65rem, 4vw, 2.65rem); letter-spacing: -.03em; }
h3 { font-size: 1.24rem; letter-spacing: -.015em; }
.shell { width: min(100% - 2.5rem, 1170px); margin-inline: auto; }
.skip { position: absolute; z-index: 9; left: 12px; top: 12px; transform: translateY(-180%); padding: .7rem 1rem; background: var(--card); }
.skip:focus { transform: none; }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 86px; display: flex; gap: 1.7rem; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.25rem; white-space: nowrap; }
.brand img { object-fit: contain; }
.brand strong { font-weight: 700; }
.brand small { display: block; margin-top: .25rem; color: var(--muted); font: 700 .63rem/1.1 system-ui, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.site-nav, .actions, .product-actions, .footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.4rem; }
.site-nav a { text-decoration: none; font-size: .92rem; font-weight: 700; }
.site-nav a:hover { text-decoration: underline; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--forest); border-radius: 9px; padding: .65rem 1rem; background: var(--forest); color: #fffdf5; font: 700 .89rem/1.3 system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.button:hover { background: #365942; text-decoration: none; }
.button.outline { color: var(--forest); background: transparent; border-color: #9aa699; }
.button.outline:hover { background: #e9ede3; }
.button.gold { background: var(--gold); border-color: var(--gold); color: #283a2b; }
.button.gold:hover { background: #ffe1ac; }
.button.hero-outline { color: #fff9eb; background: transparent; border-color: #b5c4a9; }
.button.hero-outline:hover { background: #3f5948; }
.button.secondary { color: #253c2d; background: #ede9dd; border-color: #e1d9c6; }
.button.secondary:hover { background: #e1e8dc; }

.home-hero, .catalog-hero { color: #fffaf0; background: radial-gradient(ellipse at 90% 30%, #48614a, transparent 70%), #223a2e; }
.hero-inner { padding-block: clamp(2.6rem, 6vw, 5.65rem); }
.hero-inner h1 { max-width: 13ch; }
.hero-inner > p:not(.eyebrow, .hero-count), .home-copy > p:not(.eyebrow) { max-width: 34rem; margin-top: 1.25rem; color: #f0eadc; font-size: clamp(1rem, 2vw, 1.17rem); }
.eyebrow, .category-label { font: 750 .69rem/1.4 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow { margin-bottom: .7rem; color: #795629; }
.home-hero .eyebrow, .catalog-hero .eyebrow, .custom-banner .eyebrow { color: var(--gold); }
.hero-count { display: inline-block; padding: .36rem .7rem; margin-top: 1.4rem; border: 1px solid #82907a; border-radius: 25px; color: #fff5e1; font-size: .79rem; }
.home-hero .hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.home-copy .actions { margin-top: 1.6rem; }
.hero-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: 360px; justify-self: end; width: 100%; }
.hero-tile { display: grid; align-items: center; aspect-ratio: 1.22; padding: .8rem; overflow: hidden; border-radius: 14px; isolation: isolate; background: var(--photo); color: var(--muted); }
.hero-tile img, .product-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.section, .catalog-section { padding-block: clamp(2rem, 5vw, 4rem); }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-intro > a:not(.button) { font-size: .89rem; font-weight: 700; }
.pills { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.pills a { padding: .55rem .85rem; background: var(--card); border: 1px solid var(--line); border-radius: 22px; font-size: .88rem; text-decoration: none; }
.pills a:hover { background: #e8eddf; }
.custom-banner { padding: clamp(1.5rem, 4vw, 3.25rem); border-radius: var(--radius); color: #fffcf3; background: linear-gradient(115deg, var(--cor-inicio), var(--cor-fim)); }
.custom-banner p:not(.eyebrow), .custom-banner a { margin-top: .65rem; }

.filters { display: flex; gap: .65rem; flex-wrap: wrap; align-items: end; margin-bottom: 1.4rem; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.grow { flex: 1 1 220px; }
label { display: grid; gap: .34rem; font-size: .84rem; font-weight: 700; }
input:not([type=checkbox]), select, textarea { min-width: 0; max-width: 100%; width: 100%; min-height: 44px; border: 1px solid #a5aa9c; border-radius: 8px; padding: .55rem .7rem; background: #fffefa; color: var(--ink); font: 400 .95rem/1.35 system-ui, sans-serif; }
input[type=color] { max-width: 96px; padding: .3rem; }
textarea { resize: vertical; }
.count { color: var(--muted); font-size: .93rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); }
.product-image { display: grid; place-items: center; aspect-ratio: 1.32; padding: 1.05rem; text-decoration: none; overflow: hidden; isolation: isolate; background: var(--photo); }
.product-image img { transition: transform 180ms ease; }
a.product-image:hover img { transform: scale(1.045); }
.no-photo { display: grid; justify-items: center; color: var(--muted); font-size: .78rem; font-weight: 700; text-align: center; }
.no-photo > span { display: block; font-size: 1.55rem; color: #8c866c; }
.product-body { padding: 1rem; display: flex; flex: 1; flex-direction: column; }
.product-body h3 { margin: .4rem 0 .75rem; overflow-wrap: anywhere; }
.product-body h3 a { text-decoration: none; }
.product-body h3 a:hover { text-decoration: underline; }
.category-label { font-size: .60rem; color: #626e60; letter-spacing: .12em; }
.price { display: flex; gap: .2rem .55rem; flex-wrap: wrap; align-items: baseline; margin: auto 0 .85rem; }
.price strong { font-size: 1.12rem; }
.price del, .price small { color: var(--muted); font-size: .78rem; }
.product-actions .button { width: 100%; font-size: .79rem; padding-inline: .45rem; }
.empty, .box { padding: clamp(1rem, 3vw, 1.55rem); border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); }
.empty { text-align: center; padding-block: 3rem; }
.empty p, .empty a { margin-top: .5rem; }
.simple, .detail { padding-block: clamp(2.5rem, 6vw, 5rem); min-height: 53vh; }
.simple h1, .detail h1 { max-width: 28ch; font-size: clamp(2rem, 5vw, 4rem); }
.simple > p:not(.eyebrow), .detail .description { max-width: 64ch; margin-block: 1.2rem 1.5rem; color: var(--muted); }
.breadcrumb { display: inline-block; margin-bottom: 1.2rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(1rem, 5vw, 4rem); align-items: start; }
.detail-image { border-radius: var(--radius); aspect-ratio: 1; padding: 2rem; border: 1px solid var(--line); }
.detail h1 { font-size: clamp(1.85rem, 4vw, 3.3rem); }
.detail .price { margin: 1.2rem 0; }
.detail .price strong { font-size: 1.45rem; }

.site-footer { background: #21382b; color: #fffbec; padding-block: 2rem 1.1rem; }
.footer-inner, .footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-brand { font-size: 1.45rem; margin-bottom: .4rem; }
.footer-inner p:not(.footer-brand), .footer-bottom { color: #e4e5d7; font-size: .85rem; }
.footer-bottom { margin-top: 1.3rem; padding-top: .9rem; border-top: 1px solid #60715e; }
.footer-inner a { font-size: .87rem; }

.admin-main { padding-block: 1.2rem 4rem; }
.admin-title { margin: 1.6rem 0 1.1rem; }
.admin-title h1, .login-box h1 { font-size: clamp(1.85rem, 4vw, 3.15rem); }
.admin-nav { display: flex; flex-wrap: wrap; gap: .4rem .85rem; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: .7rem; }
.admin-nav a, .link-button { font: 700 .89rem/1.4 system-ui,sans-serif; }
.admin-nav a { padding: .32rem .2rem; text-decoration: none; }
.admin-nav a[aria-current=page] { text-decoration: underline; }
.link-button { border: none; background: none; color: inherit; text-decoration: underline; padding: 0; cursor: pointer; }
.danger { color: #8f2e24; }
.admin-main .box { margin-bottom: 1rem; }
.login-box { max-width: 455px; margin: 3rem auto; }
.form-stack, .edit-form { display: grid; gap: .85rem; margin-top: 1rem; }
.edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edit-form .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: .5rem; }
.error, .notice { padding: .7rem .95rem; margin: .65rem 0; border-radius: 8px; background: #e3eee2; }
.error { background: #f7e4df; color: #8f2e24; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
th, td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--line); }
.table-actions { white-space: nowrap; }
.table-actions form { display: inline; margin-left: .5rem; }
.metric-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
.metric { display: grid; gap: .2rem; }
.metric strong { font-size: 1.7rem; }
.access-list { list-style: none; padding: 0; }
.access-list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

@media (max-width: 880px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 1.35rem); }
  .header-inner { gap: .3rem .45rem; min-height: auto; flex-wrap: wrap; padding-block: .4rem .55rem; }
  .brand { gap: .35rem; font-size: 1.05rem; }
  .brand img { width: 44px; height: 44px; }
  .header-market { order: 1; font-size: .69rem; min-height: 38px; padding: .35rem .45rem; }
  .site-nav { order: 2; width: 100%; gap: .45rem 1.05rem; padding-bottom: .3rem; }
  .site-nav a { font-size: .83rem; }
  .home-hero .hero-inner, .detail-grid { grid-template-columns: 1fr; }
  .hero-products { max-width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
  .hero-tile { padding: .35rem; }
  .filters > label { flex: 1 1 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .product-body, .product-image { padding: .6rem; }
  .product-body h3 { font-size: 1rem; }
  .product-actions .button { font-size: .69rem; }
  .edit-form { grid-template-columns: 1fr; }
  .detail-image { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
