:root {
  color-scheme: light;
  --gold: #806009;
  --cream: #f9f7e8;
  --paper: #fffdf6;
  --ink: #211d15;
  --muted: #6d6558;
  --line: #e7ddc8;
  --warm: #e9ddac;
  --dark: #231f16;
  --serif: "Playfair Display", Georgia, serif;
  --radius-panel: 1.1rem;
  --shadow-feature: 0 12px 28px #211d1520, 0 2px 5px #211d1514;
  --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 7rem; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #a26639; outline-offset: 4px; }
h1, h2, h3 { margin: 0; font: 600 2rem/1.12 var(--serif); }
h1 { font-size: clamp(3rem, 7vw, 6.5rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -.04em; }
h3 { font-size: 1.2rem; }
p { margin: .65rem 0 1rem; }
.wrap { width: min(90%, 1260px); margin-inline: auto; }
.section { padding-block: clamp(2.8rem, 6vw, 6.3rem); }
.eyebrow { margin: 0 0 .65rem; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.intro { max-width: 58ch; color: var(--muted); margin-bottom: 2rem; }
.muted { color: var(--muted); }
.skip { position: fixed; top: 1rem; left: 1rem; transform: translateY(-200%); z-index: 3; padding: .65rem 1rem; background: var(--paper); }
.skip:focus { transform: none; }
.strip { padding: .4rem 1rem; background: var(--gold); color: #fff; text-align: center; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.strip span { margin-inline: .45rem; }
.header { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { width: clamp(74px, 12vw, 120px); height: 58px; object-fit: contain; }
nav { display: flex; align-items: center; gap: clamp(.7rem, 3vw, 2.6rem); }
nav a { text-decoration: none; font-weight: 700; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--gold); text-decoration: underline; text-underline-offset: .45em; }
.cart-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .48rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: .88rem; }
.badge { min-width: 1.45rem; border-radius: 999px; padding-inline: .3rem; background: var(--gold); color: white; text-align: center; font-size: .75rem; }
.hero { background: linear-gradient(115deg, #faf2da, var(--warm)); }
.hero-inner { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(1.5rem, 5vw, 5.6rem); padding-block: clamp(2.6rem, 6vw, 6rem); }
.hero-copy > p:not(.eyebrow) { max-width: 42ch; color: var(--muted); margin-block: 1.25rem 1.7rem; font-size: 1.08rem; }
h1 em { color: var(--gold); font-style: normal; }
.hero-art { position: relative; padding: .7rem; border: 1px solid #fff9; border-radius: 48% 48% 1.5rem 1.5rem; }
.hero-art img { width: 100%; aspect-ratio: 1.04; object-fit: cover; border-radius: inherit; }
.hero-label { position: absolute; right: 1.45rem; bottom: 1.45rem; padding: .55rem .8rem; background: var(--paper); border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; }
.hero-label b { color: var(--gold); }
.hero-rotation {
  position: absolute;
  left: 1.45rem;
  bottom: 1.45rem;
  min-height: 44px;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.actions form { margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.12rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 700; transition: background .18s, color .18s; }
.primary { background: var(--gold); color: #fff; }
.primary:hover { background: #674d07; }
.secondary { border-color: currentColor; background: transparent; color: var(--gold); }
.secondary:hover { background: var(--cream); }
.text-link { color: var(--gold); text-underline-offset: .25em; font-weight: 700; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .85rem 1.5rem; margin-bottom: 1.7rem; }
.best-grid, .shop-grid { display: grid; gap: clamp(.75rem, 2vw, 1.4rem); }
.best-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; text-align: left; text-decoration: none; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 1.1rem; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 9px 25px #59421415; }
.card img {
  width: 100%;
  aspect-ratio: 18/13;
  object-fit: cover;
  background-color: #782323;
}
#quebra-nozes-texturizado .product-card img,
#quebra-nozes-retilhado .product-card img,
#arvore-de-natal .product-card img,
#arvore-texturizada .product-card img,
#arvore-personalizada .product-card img {
  height: auto;
  object-fit: contain;
}
.card h3, .product-caption { display: block; padding: .85rem 1rem; }
.product-name { display: block; font: 600 1.15rem/1.25 var(--serif); }
.custom { background: radial-gradient(ellipse at 85% 70%, var(--warm), transparent 65%), var(--cream); }
.custom-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.6rem, 6vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 7rem); }
.custom-copy > p:not(.eyebrow) { max-width: 40ch; color: var(--muted); margin-block: 1.2rem 1.5rem; }
.custom-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.35rem; }
.custom-photo { display: grid; place-items: center; margin: 0; padding: clamp(.5rem, 1.35vw, 1rem); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-feature); }
.custom-photo img { width: 100%; height: clamp(16rem, 45vw, 30rem); object-fit: contain; border-radius: calc(var(--radius-panel) / 2); }
.shop-tools { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: 1.6rem; }
.shop-tools p { margin: 0 0 .55rem; color: var(--muted); }
.shop-tools label { min-width: min(100%, 205px); }
label { display: block; font-size: .92rem; font-weight: 600; }
input:not([type=radio]), select, textarea { display: block; width: 100%; margin-top: .3rem; min-height: 44px; border: 1px solid #cfc2aa; border-radius: .55rem; padding: .55rem .65rem; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); max-width: calc(100% - 1.5rem); max-height: calc(100% - 1.5rem); padding: clamp(1.2rem, 4vw, 2.3rem); }
dialog::backdrop { background: #211d156b; }
body:has(dialog[open]) { overflow: hidden; }
.modal { width: min(760px, 100%); border-radius: 1.35rem; }
.added-modal { width: min(490px, 100%); }
.drawer { inset: 0 0 0 auto; margin: 0 0 0 auto; height: 100%; max-width: 100%; max-height: 100%; width: min(450px, 100%); }
.close { display: grid; place-items: center; position: absolute; right: .7rem; top: .7rem; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.5rem; line-height: 1; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 4vw, 2.1rem); align-items: center; }
.product-gallery img { border-radius: .95rem; width: 100%; aspect-ratio: 18 / 13; object-fit: contain; background: var(--cream); }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .75rem; }
.gallery-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--gold); font-size: 1.25rem; }
.product-layout h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.quantity-label { max-width: 7rem; }
.total-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .85rem; padding-block: .75rem; border-top: 1px solid var(--line); }
.total-row strong { white-space: nowrap; }
.cart-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
.cart-item img { border-radius: .5rem; }
.cart-item strong { display: block; }
.cart-item .quantity-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; }
.cart-item input { width: 4rem; margin: 0; }
.cart-item button { padding: .2rem; border: 0; background: transparent; color: var(--gold); text-decoration: underline; font-size: .79rem; }
.drawer .text-link { display: block; margin-top: 1rem; }
.checkout-layout { display: grid; grid-template-areas: 'checkout summary'; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 3vw, 2.4rem); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; padding: clamp(1rem, 3vw, 2rem); }
.panel fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 1.45rem; }
.panel legend { padding: 0; margin-bottom: .85rem; font: 600 1.45rem var(--serif); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.full { grid-column: 1 / -1; }
.payment { display: flex; gap: .65rem; align-items: start; padding: .7rem; border: 1px solid var(--line); border-radius: .6rem; margin-bottom: .5rem; cursor: pointer; }
.payment:has(input:checked) { border-color: var(--gold); background: var(--cream); }
.payment input { accent-color: var(--gold); margin-top: .35rem; }
.payment small { display: block; color: var(--muted); }
#checkout-form { grid-area: checkout; }
.summary { grid-area: summary; }
#coupon-form { margin-block: 1.05rem .4rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--cream); }
#coupon-form label { display: block; margin-bottom: .35rem; font-weight: 700; }
.coupon-controls { display: flex; flex-wrap: wrap; gap: .45rem; }
#coupon-code { flex: 1 1 8rem; min-width: 0; min-height: 44px; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); color: var(--ink); }
#coupon-remove { margin-top: .45rem; }
#coupon-message { margin: .45rem 0 0; }
#coupon-message:empty { display: none; }
#summary-discount-row { color: var(--gold); }
.summary-grand-total { padding: .8rem .7rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--cream); font-weight: 700; }
.summary-grand-total strong { font-size: clamp(1.2rem, 3vw, 1.55rem); }
.summary h2 { font-size: 1.85rem; margin-bottom: .65rem; }
.summary .cart-item { grid-template-columns: 48px minmax(0, 1fr) auto; }
#product-status:empty, #checkout-message:empty { display: none; }
#checkout-message:not(:empty) { background: var(--cream); border-radius: .6rem; padding: .75rem; }
.footer { background: var(--dark); color: #e8ddc6; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 2.3rem; }
.footer p { margin-bottom: 0; }
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .best-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .hero-inner, .custom-inner, .checkout-layout { grid-template-columns: 1fr; }
  .hero-art img { aspect-ratio: 1.45; }
  .shop-grid, .best-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html { scroll-padding-top: 9rem; }
  .checkout-layout { grid-template-areas: 'summary' 'checkout'; }
  .header-inner { display: grid; grid-template: 'logo cart' auto 'menu menu' auto / minmax(0, 1fr) auto; gap: 0 .5rem; }
  .header-inner > a { grid-area: logo; justify-self: start; }
  .header-inner > nav { grid-area: menu; justify-content: space-around; gap: .25rem; font-size: .9rem; border-top: 1px solid var(--line); }
  .header-inner > nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: clamp(.25rem, 2vw, .7rem); }
  .header-inner > .cart-button { grid-area: cart; min-height: 44px; padding: .42rem .65rem; }
}
@media (max-width: 480px) {
  .product-layout, .fields { grid-template-columns: 1fr; }
  .product-gallery img { max-height: 35vh; }
  .card h3, .product-caption { padding: .65rem; }
  .product-name { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.footer-credit { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem .55rem; }
.footer-credit img { display: block; width: 136px; max-width: 100%; height: auto; }

.tree-name-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: end; margin-block: .65rem; }
.tree-name-row label { min-width: 0; }
.tree-name-row input { width: 100%; }

#phrase-colors > div { margin-block: .75rem; }
#phrase-colors label:not([hidden]) { display: grid; gap: .3rem; margin-block: .45rem; }
#phrase-colors label[hidden] { display: none; }

#sign-customization label { display: block; margin-block: .65rem; }
