/* Self-hosted Inter and Montserrat (latin subset — covers pt-BR diacritics: U+0000-00FF).
   Generated from Google Fonts (see scripts/build.mjs copyAssets) to remove the render-blocking
   fonts.googleapis.com/fonts.gstatic.com requests. Each weight points at the same variable-font
   file per family, so the browser fetches it once regardless of how many @font-face rules match. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/montserrat-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/montserrat-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/montserrat-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{--green:#287e43;--ink:#0e0707;--muted:#536258;--line:#e8e8e8;--cream:#f9f9f9;--font-body:Inter,Arial,sans-serif;--font-title:Montserrat,Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:14px/1.55 var(--font-body);background:#fff}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}img{display:block;max-width:100%}.wrap{width:min(100% - 48px,1200px);margin-inline:auto}.skip-link{position:absolute;left:-9999px;top:8px;z-index:100;background:#fff;padding:10px}.skip-link:focus{left:8px}*:focus-visible{outline:2px solid var(--forest);outline-offset:3px}.announcement{background:var(--forest);color:#fff;display:flex;align-items:center;justify-content:space-around;min-height:34px;text-align:center;font-size:11px;font-weight:600;letter-spacing:.03em}.announcement span{flex:1}.site-header{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;gap:28px;min-height:90px}.brand{flex:0 0 auto}.logo{width:250px;height:auto}.desktop-nav{display:flex;align-items:center;justify-content:center;gap:20px;flex:1}.nav-item{position:relative;font-size:13px;font-weight:600;white-space:nowrap}.nav-item>a{display:block;padding:34px 0}.dropdown{display:none;position:absolute;top:100%;left:-12px;min-width:225px;background:white;box-shadow:0 8px 24px #0002;border:1px solid var(--line);padding:9px 0}.nav-item:hover .dropdown,.nav-item:focus-within .dropdown{display:block}.dropdown a{display:block;padding:8px 16px;font-weight:400}.dropdown a:hover{background:var(--cream)}.header-actions{display:flex;align-items:center;gap:12px}.icon-button{border:0;background:none;color:var(--ink);padding:6px;position:relative}.cart-badge{position:absolute;right:-2px;top:-3px;background:var(--forest);color:#fff;border-radius:50%;font-size:10px;width:17px;height:17px;display:grid;place-items:center}.mobile-toggle,.mobile-menu{display:none}.search-overlay{position:absolute;top:100%;left:0;width:100%;background:#fff;box-shadow:0 8px 16px #0002;padding:20px}.search-overlay form{width:min(100%,900px);margin:auto;display:flex;gap:8px}.search-overlay input{flex:1;padding:12px;border:1px solid var(--line)}.search-overlay button{padding:10px 14px;border:0;background:var(--forest);color:#fff}.search-overlay button:last-child{background:transparent;color:#111}.hero picture,.hero img{display:block;width:100%;height:auto}.categories{padding-block:38px 25px}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.category-card{text-align:center}.category-image{aspect-ratio:1;overflow:hidden;background:var(--cream)}.category-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.category-card:hover img,.product-card:hover img{transform:scale(1.04)}.category-card h2{font:600 19px/1.2 var(--font-title);margin:15px 0}.product-section{padding-block:37px 50px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.section-heading h2{font:600 28px/1.2 var(--font-title);margin:0}.see-all{font-size:13px;text-decoration:underline}.product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 18px}.product-card{min-width:0}.product-image{aspect-ratio:1;background:#fafafa;overflow:hidden;display:block}.product-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.product-info{padding:12px 4px}.product-title{display:block;font-size:13px;line-height:1.45;min-height:38px}.product-price{margin-top:7px;font-weight:700;font-size:14px}.installments{color:var(--muted);font-size:12px}.benefits{background:var(--forest);color:#fff;margin-top:50px}.benefits-grid{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;padding-block:28px}.benefits-grid>div{display:grid;gap:3px}.benefits strong{font:600 19px var(--font-title)}.benefits span{font-size:12px}.newsletter{text-align:center;padding:58px 0;background:#f8f8f8}.newsletter .wrap{max-width:690px}.newsletter h2{font:600 27px var(--font-title);margin:0 0 15px}.newsletter p{color:var(--muted);margin:0 0 22px}.newsletter form,.footer form{display:flex;border:1px solid var(--line-strong);background:#fff;max-width:450px;margin:auto}.newsletter input,.footer input{width:100%;border:0;padding:14px 16px;outline:0}.newsletter button,.footer form button{border:0;background:transparent;padding:0 17px;font-size:23px}.form-note{color:var(--forest);font-weight:600;padding-top:8px}.footer{background:var(--forest);color:#fff;padding:55px 0 20px}.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:55px}.footer h3{font:600 18px var(--font-title);margin:0 0 15px}.footer p{margin:0;line-height:2}.footer-grid>div:nth-child(2) a{display:block;margin:7px 0}.footer form{margin:20px 0 0}.footer-bottom{border-top:1px solid #ffffff40;margin-top:50px;padding-top:18px;font-size:12px;color:#ddd}.breadcrumbs{font-size:12px;color:var(--muted);padding:26px 0}.breadcrumbs span{margin-inline:5px}.collection-page h1,.search-page h1,.cart-page h1,.text-page h1{font:600 35px/1.2 var(--font-title);margin:10px 0 24px}.collection-description{max-width:800px}.collection-description:empty{display:none}.collection-toolbar{border-block:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:16px 0;margin:26px 0}.collection-toolbar select{border:0;background:#fff;padding:6px}.pagination{display:flex;justify-content:center;gap:15px;padding:35px}.pagination a{padding:5px}.product-page{padding-bottom:40px}.product-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.8fr);gap:70px}.main-image{aspect-ratio:1;background:#fafafa}.main-image img{width:100%;height:100%;object-fit:contain}.thumbnails{display:flex;gap:10px;margin-top:12px}.thumbnails button{width:76px;height:76px;border:1px solid var(--line);padding:0;background:#fff}.thumbnails button.active{border-color:var(--ink)}.thumbnails img{width:100%;height:100%;object-fit:cover}.vendor{margin:0;font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.product-details h1{font:600 30px/1.28 var(--font-title);margin:10px 0 20px}.product-detail-price{font-size:23px;letter-spacing:.02em}.pix-price{color:var(--green);font-weight:700;margin:12px 0 3px}.payment-note{color:var(--muted);margin:0 0 28px}.variant-label,.quantity-label{display:block;font-size:12px;margin:22px 0}.variant-label select{display:block;margin-top:8px;border:1px solid var(--line-strong);background:#fff;padding:12px;width:100%}.quantity{display:flex;align-items:center;border:1px solid var(--line-strong);width:145px;margin-top:8px}.quantity button{background:transparent;border:0;padding:10px 15px}.quantity input{width:60px;border:0;text-align:center;appearance:textfield}.quantity input::-webkit-inner-spin-button{appearance:none}.primary-button{display:inline-flex;justify-content:center;align-items:center;background:var(--green);color:#fff;border:1px solid var(--green);padding:15px 24px;text-transform:uppercase;font-size:12px;font-weight:700;letter-spacing:.05em;min-height:48px;text-align:center}.primary-button:hover{filter:brightness(.9);text-decoration:none}.add-to-cart{width:100%}.purchase-benefits{line-height:2.1;border-block:1px solid var(--line);padding:19px 0;margin:28px 0}.product-description h2{font:600 21px var(--font-title)}.product-description p,.product-description li{line-height:1.75}.search-page,.cart-page,.text-page{min-height:45vh;padding-block:45px 70px}.large-search{display:flex;max-width:700px;border:1px solid var(--line-strong)}.large-search input{flex:1;border:0;padding:15px}.large-search button{border:0;background:#fff;padding:10px}.search-page .product-grid{margin-top:35px}.cart-page h1{text-align:center}.cart-items{max-width:850px;margin:auto}.cart-row{display:grid;grid-template-columns:120px 1fr;gap:22px;padding:20px 0;border-bottom:1px solid var(--line)}.cart-row img{aspect-ratio:1;object-fit:cover}.cart-row>div{display:flex;flex-direction:column;align-items:start;gap:8px}.cart-row strong{font-size:16px}.cart-row small{color:var(--muted)}.cart-quantity{display:flex;align-items:center;gap:12px}.cart-quantity button{border:1px solid var(--line);background:#fff;min-width:30px;height:30px}.cart-quantity .remove{border:0;text-decoration:underline;font-size:12px;margin-left:10px}.cart-summary{max-width:850px;margin:25px auto;text-align:right}.cart-summary>div{display:flex;justify-content:space-between;font-size:20px}.cart-summary p{margin:4px 0;color:var(--muted)}.cart-summary .primary-button{width:280px;margin-top:17px}.empty-cart{text-align:center;padding:70px 0}.empty-cart h2{font:500 25px var(--font-title)}.drawer-backdrop{position:fixed;inset:0;z-index:29;background:#0007}.cart-drawer{position:fixed;z-index:30;top:0;right:0;bottom:0;width:min(100%,470px);background:#fff;padding:22px;overflow-y:auto;box-shadow:-10px 0 25px #0002}.drawer-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);margin-bottom:15px}.drawer-head h2{font:600 22px var(--font-title)}.drawer-head button{border:0;background:none;font-size:20px}.cart-drawer .cart-row{grid-template-columns:90px 1fr}.cart-drawer .cart-summary .primary-button{width:100%}.checkout{display:grid;grid-template-columns:1.25fr .75fr;gap:80px;padding-block:60px}.checkout h1{font:600 31px var(--font-title)}.checkout form,.text-page form{display:grid;gap:15px;margin-top:25px}.checkout input,.checkout textarea,.text-page input,.text-page textarea{border:1px solid var(--line-strong);padding:12px;width:100%}.checkout textarea,.text-page textarea{min-height:100px}.checkout aside{background:#f7f7f7;padding:25px;align-self:start}.checkout aside h2{margin-top:0}.checkout aside p{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #ddd;padding:8px 0}.checkout aside strong{white-space:nowrap}.text-page{max-width:900px}.text-page p{font-size:16px;line-height:1.65}.text-page form{max-width:550px}@media(max-width:1100px){.logo{width:185px}.desktop-nav{gap:12px}.nav-item{font-size:11px}.header-inner{gap:16px}.product-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:750px){.wrap{width:min(100% - 30px,1200px)}.announcement{min-height:30px;font-size:12px}.announcement span:nth-child(n+2){display:none}.header-inner{min-height:64px;justify-content:space-between}.mobile-toggle{display:block}.desktop-nav{display:none}.brand{margin:auto}.logo{width:190px}.header-actions{gap:3px}.mobile-menu{display:block;position:fixed;z-index:25;top:0;left:0;bottom:0;width:min(85vw,350px);overflow:auto;background:white;padding:15px 20px;box-shadow:0 0 0 100vw #0007}.close-menu{border:0;background:transparent;font-size:20px;margin:0 0 15px auto;display:block}.mobile-menu details{border-bottom:1px solid var(--line);padding:10px 0}.mobile-menu summary{list-style:none;display:flex;justify-content:space-between;font-weight:600}.mobile-menu details>a{display:block;padding:7px 12px;font-weight:400}.category-grid{grid-template-columns:repeat(2,1fr);gap:15px}.category-card h2{font-size:15px}.categories{padding-block:22px}.product-section{padding-block:25px}.section-heading h2{font-size:22px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 10px}.product-title{font-size:12px}.benefits-grid{gap:10px}.benefits strong{font-size:14px}.benefits span{font-size:12px}.newsletter{padding:40px 0}.newsletter h2{font-size:22px}.footer-grid{grid-template-columns:1fr;gap:30px}.footer{padding-top:40px}.product-layout{grid-template-columns:1fr;gap:20px}.product-details h1{font-size:24px}.collection-page h1,.search-page h1,.cart-page h1,.text-page h1{font-size:27px}.collection-toolbar{font-size:13px}.collection-toolbar select{max-width:145px}.checkout{grid-template-columns:1fr;gap:25px;padding-block:25px}.cart-row{grid-template-columns:85px 1fr}.cart-summary .primary-button{width:100%}}@media(max-width:380px){.logo{width:145px}.icon-button svg{width:20px}.header-inner{gap:6px}.benefits-grid{grid-template-columns:1fr}.benefits-grid>div{padding:4px}}

/* Good Vibes: refinement layer aligned with the public storefront. */
:root {
  --forest: #1c4028;
  --forest-dark: #143520;
  --forest-action: #287e43;
  --forest-soft: #eaf3ed;
  --ink: #111a14;
  --muted: #536258;
  --line: #e1e8e2;
  --line-strong: #849688;
  --cream: #f8faf7;
  --green: var(--forest-action);
}

html { scroll-padding-top: 110px; }
body { color: var(--ink); }
::selection { background: #c9ebd1; color: var(--forest-dark); }
a { text-underline-offset: .2em; }
button, input, select, textarea { accent-color: var(--forest-action); }
button:disabled { opacity: .55; cursor: not-allowed; }
*:focus-visible { outline: 2px solid var(--forest-action); outline-offset: 3px; }

.announcement {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  height: 38px;
  min-height: 38px;
  background: var(--forest);
  color: #fff;
  overflow: hidden;
}
.announcement-social {
  position: absolute;
  left: max(3.5vw, 18px);
  top: 0;
  height: 100%;
  display: flex;
  gap: 15px;
  align-items: center;
  z-index: 1;
}
.announcement-social a { display: grid; place-items: center; width: 20px; height: 24px; }
.announcement-social svg { width: 15px; height: 15px; stroke-width: 2; }
.announcement-messages { position: relative; width: 560px; max-width: calc(100vw - 240px); height: 100%; justify-self: center; }
.announcement-messages span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: 0;
  animation: announcement-cycle 9s linear infinite;
}
.announcement-messages span:nth-child(2) { animation-delay: 3s; }
.announcement-messages span:nth-child(3) { animation-delay: 6s; }
@keyframes announcement-cycle {
  0%, 29% { opacity: 1; }
  33%, 96% { opacity: 0; }
  100% { opacity: 1; }
}

.site-header { box-shadow: 0 1px 0 rgba(16, 42, 24, .04); }
.site-header .mobile-toggle { display: none; }
.site-header .header-inner { width: min(calc(100% - 7vw), 1340px); min-height: 82px; gap: 30px; }
.logo { width: clamp(220px, 20vw, 300px); }
.desktop-nav { gap: clamp(12px, 1.3vw, 22px); }
.nav-item { font-size: 12px; letter-spacing: .005em; }
.nav-item > a { padding: 28px 0; }
.nav-item:has(.dropdown) > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 2px 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.dropdown { border-radius: 0 0 8px 8px; padding: 8px; box-shadow: 0 15px 36px rgba(13, 34, 20, .13); }
.dropdown a { border-radius: 5px; padding: 10px 12px; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--forest-soft); }
.header-actions { gap: 2px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 8px; border-radius: 50%; }
.icon-button:hover { background: var(--forest-soft); }
.cart-badge { right: 0; top: 0; background: var(--forest-dark); }
.search-overlay { border-top: 1px solid var(--line); box-shadow: 0 15px 30px rgba(13, 34, 20, .12); }
.search-overlay input { border-radius: 7px; }
.search-overlay button[type="submit"] { border-radius: 7px; background: var(--forest-action); }

.hero { background: var(--forest-dark); }
.hero img { width: 100%; }
.categories { padding-block: 42px 18px; }
.category-grid { gap: 18px; }
.category-card { text-align: left; min-width: 0; }
.category-image { border: 1px solid #eff1ed; border-radius: 10px; background: #fff; }
.category-image img { object-fit: contain; }
.category-card h2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 1px 0;
  font-size: 18px;
  line-height: 1.28;
}
.category-card h2 span { display: inline-flex; }
.category-card h2 svg { width: 21px; height: 21px; }
.newsletter button svg, .footer button svg { width: 21px; height: 21px; }
.category-card:hover h2 { color: var(--forest-action); }

.product-section { padding-block: 36px 48px; }
.section-heading { margin-bottom: 19px; gap: 16px; }
.section-heading h2 { font-size: clamp(22px, 2.2vw, 29px); letter-spacing: -.025em; }
.see-all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; flex: none; color: var(--forest-action); font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.see-all svg { width: 14px; height: 14px; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.see-all:hover svg { transform: translateX(3px); }

/* Rail frame: prev/next arrows on the rail's edges, centred on the (square) product photo. The
   column width comes from the frame's inline size, so --photo is half a column at each breakpoint. */
.rail-frame { position: relative; container-type: inline-size; --photo: calc((100cqw - 4 * 18px) / 10); --edge: -22px; }
.slider-arrow {
  position: absolute; z-index: 2; top: var(--photo, 30%); translate: 0 -50%;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #dbe6de; border-radius: 50%; background: #fff; color: var(--forest-dark);
  box-shadow: 0 6px 18px rgba(16, 42, 24, .14), 0 1px 3px rgba(16, 42, 24, .08);
  cursor: pointer; transition: opacity .2s ease, visibility .2s, background-color .2s, border-color .2s, scale .2s cubic-bezier(.2, .8, .2, 1);
}
.slider-arrow.is-prev { left: var(--edge); }
.slider-arrow.is-next { right: var(--edge); }
.slider-arrow:hover { border-color: var(--forest-action); background: var(--forest-soft); }
.slider-arrow:active { scale: .94; }
.slider-arrow:focus-visible { outline: 3px solid var(--forest-action); outline-offset: 2px; }
.slider-arrow svg { width: 18px; height: 18px; }
.rail-frame[data-at-start] .is-prev, .rail-frame[data-at-end] .is-next { opacity: 0; visibility: hidden; }
.product-section .product-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 18px) / 5);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #bdcec0 transparent;
  padding-bottom: 10px;
}
.product-section .product-card { scroll-snap-align: start; }
.product-image { position: relative; border: 1px solid #f0f2ef; border-radius: 7px; background: #fff; }
.sale-badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 5px 9px; border-radius: 4px; background: var(--forest-action); color: white; font-size: 12px; font-weight: 700; }
.product-info { padding: 12px 2px 2px; }
.product-title { font-size: 13px; font-weight: 500; }
.product-price { color: var(--forest-dark); font-size: 15px; }
.product-price s, .product-detail-price s { margin-left: 10px; color: var(--muted); font-size: .75em; font-weight: 400; }
.installments { color: var(--muted); font-size: 12px; }

.collection-page h1, .search-page h1, .cart-page h1, .text-page h1 { letter-spacing: -.035em; }
.collection-toolbar { border-color: var(--line); }
.collection-toolbar select { color: var(--ink); cursor: pointer; }
.collection-page > .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-page { max-width: 920px; }
.contact-page form { max-width: 760px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.trust-page { max-width: 960px; }
.trust-page h2 { margin: 42px 0 12px; font-size: clamp(22px,2.5vw,30px); }
.trust-page p { max-width: 72ch; line-height: 1.7; }
.trust-page > img { display: block; max-width: min(100%, 760px); max-height: 530px; object-fit: contain; margin: 30px auto; border-radius: 8px; }

.product-layout { gap: clamp(38px, 5vw, 76px); }
.main-image { border-radius: 6px; overflow: hidden; background: #fff; }
.thumbnails { overflow-x: auto; padding-block: 2px 9px; scrollbar-width: thin; }
.thumbnails button { flex: 0 0 76px; border-radius: 7px; overflow: hidden; }
.thumbnails button.active { border: 2px solid var(--forest-action); }
.product-details h1 { letter-spacing: -.035em; }
.product-detail-price { font-weight: 700; font-size: 28px; color: var(--forest-dark); }
.pix-price { color: var(--forest-action); }
.variant-label select { border-color: var(--line-strong); border-radius: 7px; min-height: 45px; }
.quantity { border-color: var(--line-strong); border-radius: 8px; }
.primary-button { border-radius: 999px; background: var(--forest-action); border-color: var(--forest-action); min-height: 52px; }
.primary-button:hover { filter: none; background: var(--forest-dark); border-color: var(--forest-dark); }
.add-to-cart { font-size: 13px; box-shadow: 0 8px 18px rgba(32, 106, 55, .13); }
.buy-now { width: 100%; margin-top: 10px; background: var(--forest-dark); border-color: var(--forest-dark); }
.product-highlights { padding: 0; margin: 0 0 20px; list-style: none; }
.product-highlights li { position: relative; padding: 6px 0 6px 23px; }
.product-highlights li::before { content: '✓'; position: absolute; left: 0; color: var(--forest-action); font-weight: 700; }
.shipping-check { margin: 24px 0; }
.shipping-check label { display: block; margin-bottom: 9px; font-weight: 600; }
.shipping-check > div { display: flex; max-width: 430px; border: 1px solid var(--line-strong); border-radius: 7px; overflow: hidden; }
.shipping-check input { flex: 1; min-width: 0; padding: 12px; border: 0; }
.shipping-check button { padding: 0 18px; border: 0; background: var(--forest-action); color: white; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.purchase-benefits { border-color: var(--line); }
.product-description h2 { letter-spacing: -.02em; }
.product-description { max-width: 70ch; }
.product-description img, .product-description video { display: block; width: min(100%, 800px); height: auto; margin: 22px auto; border-radius: 8px; }
.product-extras { display: grid; grid-template-columns: 1fr; gap: clamp(32px,5vw,72px); padding-block: 50px; }
.product-extras.has-video { grid-template-columns: repeat(2,minmax(0,1fr)); }
.product-extras h2 { margin: 6px 0 20px; font-size: clamp(25px,2.5vw,32px); }
.product-extras > div > p:first-child { color: var(--forest-action); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.product-video iframe { display: block; width: 100%; aspect-ratio: 16/9; margin-top: 22px; border: 0; border-radius: 10px; background: #101810; }
.product-faq details { border-bottom: 1px solid var(--line); }
.product-faq summary { padding: 17px 30px 17px 0; cursor: pointer; font-weight: 600; }
.product-faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }

.cart-drawer { box-shadow: -12px 0 34px rgba(16, 42, 24, .17); }
.drawer-head { border-color: var(--line); }
.drawer-head button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.drawer-head button:hover { background: var(--forest-soft); }
.cart-row { border-color: var(--line); }
.cart-summary p { color: var(--muted); }

.checkout { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(40px, 6vw, 90px); }
.checkout h1 { letter-spacing: -.035em; }
.checkout input, .checkout textarea, .text-page input, .text-page textarea { border-color: var(--line-strong); border-radius: 7px; background: white; }
.checkout aside { position: sticky; top: 130px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.checkout aside p { border-color: var(--line); }

.newsletter { background: #f5f8f4; }
.benefits { background: var(--forest); }
.form-note { color: var(--forest-action); }
.newsletter p { color: var(--muted); }
.newsletter form, .footer form { border-radius: 7px; overflow: hidden; }
.footer { background: var(--forest); }
.footer-bottom { border-color: #ffffff35; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-bottom nav a { color: inherit; text-decoration: none; }
.footer-bottom nav a:hover { text-decoration: underline; }
.account-page { max-width: 800px; }

@media (max-width: 1100px) {
  .site-header .header-inner { width: min(calc(100% - 36px), 1200px); gap: 16px; }
  .logo { width: 195px; }
  .desktop-nav { display: none; }
  .site-header .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 68px; gap: 4px; }
  .site-header .mobile-toggle { display: grid; justify-self: start; }
  .brand { min-width: 0; margin: 0; justify-self: center; }
  .header-actions { justify-self: end; }
  .account-link { display: none; }
  .mobile-menu { display: block; position: fixed; z-index: 25; top: 0; left: 0; bottom: 0; width: min(85vw,350px); overflow: auto; background: white; padding: 15px 20px; box-shadow: 0 0 0 100vw rgba(3,22,9,.55); }
  .mobile-menu details { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .mobile-menu summary { list-style: none; display: flex; justify-content: space-between; font-weight: 600; }
  .mobile-menu details > a { display: block; padding: 7px 12px; font-weight: 400; }
  .close-menu { border: 0; background: transparent; margin: 0 0 15px auto; display: block; }
  .mobile-account { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
  .mobile-account svg { width: 20px; height: 20px; }
  .product-section .product-grid { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; }
  .rail-frame { --photo: calc((100cqw - 3 * 16px) / 8); }
}

@media (max-width: 750px) {
  .announcement { height: 30px; min-height: 30px; }
  .announcement-social { display: none; }
  .announcement-messages span { font-size: 12px; }
  .announcement-messages span:first-child { animation: none; opacity: 1; }
  .site-header .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: min(calc(100% - 28px), 1200px);
    min-height: 64px;
    gap: 4px;
  }
  .site-header .mobile-toggle { display: grid; justify-self: start; }
  .brand { min-width: 0; margin: 0; justify-self: center; }
  .logo { width: min(39vw, 156px); }
  .header-actions { justify-self: end; gap: 0; }
  .account-link { display: none; }
  .icon-button { width: 38px; height: 38px; padding: 7px; }
  .cart-badge { width: 16px; height: 16px; }
  .mobile-menu { box-shadow: 0 0 0 100vw rgba(3, 22, 9, .55); }
  .mobile-menu details { border-color: var(--line); }
  .close-menu { width: 40px; height: 40px; }
  .close-menu svg { width: 23px; height: 23px; }
  .mobile-account { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
  .mobile-account svg { width: 20px; height: 20px; }

  .categories { width: 100%; padding: 30px 15px 24px; overflow: hidden; }
  .categories + .product-section { padding-top: 32px; }
  .category-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-right: 15px;
  }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-card { flex: 0 0 min(40vw, 170px); scroll-snap-align: start; }
  .category-image { border-radius: 10px; }
  .category-card h2 { font-size: 15px; line-height: 1.25; margin-top: 12px; }
  .category-card h2 svg { width: 17px; height: 17px; }

  .product-section { padding-block: 28px 38px; }
  .section-heading h2 { font-size: 23px; }
  .see-all { font-size: 13px; }
  .rail-frame { --edge: 6px; }
  .slider-arrow { width: 40px; height: 40px; background: rgba(255, 255, 255, .94); }
  .slider-arrow svg { width: 16px; height: 16px; }
  .product-section .product-grid { grid-auto-columns: minmax(0, 43%); gap: 12px; }
  .collection-page > .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .product-layout { gap: 26px; }
  .product-extras.has-video { grid-template-columns: 1fr; }
  .product-detail-price { font-size: 25px; }
  .checkout { grid-template-columns: 1fr; }
  .checkout aside { position: static; }
}

@media (max-width: 390px) {
  .logo { width: min(36vw, 145px); }
  .header-actions .icon-button { width: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .announcement-messages span { animation: none; opacity: 0; }
  .announcement-messages span:first-child { opacity: 1; }
  .product-image img, .category-image img { transition: none; }
}

/* Mobile interaction and density pass. */
.cart-badge:empty { display: none; }
.mobile-menu-backdrop { display: none; }

@media (max-width: 1100px) {
  .announcement-messages { max-width: calc(100vw - 32px); }
  .mobile-menu-backdrop { display: block; position: fixed; inset: 0; z-index: 24; border: 0; background: rgba(3, 22, 9, .55); }
  .mobile-menu { z-index: 25; box-shadow: 12px 0 34px rgba(3, 22, 9, .18); }
  .mobile-menu summary { cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary svg { width: 18px; height: 18px; }
  .mobile-menu details[open] summary svg { transform: rotate(180deg); }
  .mobile-menu a { display: block; padding: 9px 12px; }
  .mobile-menu .mobile-menu-all { margin-top: 6px; color: var(--forest-action); font-weight: 700; }
  .mobile-menu .mobile-menu-direct { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
  body:has(.mobile-menu), body:has(.cart-drawer) { overflow: hidden; }
}

@media (max-width: 750px) {
  .search-overlay { position: absolute; top: 100%; z-index: 31; padding: 14px; }
  .search-overlay form { width: 100%; }
  .category-card { flex-basis: clamp(150px, 44vw, 170px); }
  .product-section .product-grid { grid-auto-columns: 44%; gap: 12px; padding-bottom: 14px; scrollbar-width: auto; }
  .rail-frame { --photo: 22cqw; }
  .product-title { display: -webkit-box; min-height: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .collection-toolbar { flex-wrap: wrap; align-items: stretch; gap: 12px; }
  .collection-toolbar label { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; }
  .collection-toolbar select { flex: 1; max-width: none; min-width: 0; }
  .cart-drawer { width: min(100%, 430px); padding: 18px; }
}

@media (max-width: 390px) {
  .section-heading { gap: 10px; }
  .product-section .product-grid { grid-auto-columns: 46%; }
  .rail-frame { --photo: 23cqw; }
}

/* Good Vibes — component layer for the rebuilt storefront.
   Loaded after base.css + theme.css (concatenated by the build). Tokens first, then components. */

:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --radius-sm: 6px; --radius-md: 10px; --radius-pill: 999px;
  --danger: #b3261e;
  --sale: #b3261e;
  --focus: #287e43;
  --shadow-md: 0 8px 24px rgba(16, 42, 24, .12);
  --z-header: 20; --z-overlay: 40; --z-drawer: 50; --z-toast: 60;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --touch: 44px;
}

body { font-size: 15px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { z-index: 1000; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
body.is-locked { overflow: hidden; }
button, [role="button"], summary, select, label:has(input[type="radio"]) { cursor: pointer; touch-action: manipulation; }
.noscript { padding: var(--space-4); text-align: center; background: #fff8e1; }
img[width][height] { height: auto; }

/* ---------- header / navigation ---------- */
.site-header { z-index: var(--z-header); }
.desktop-nav > ul { display: flex; align-items: center; justify-content: center; gap: inherit; margin: 0; padding: 0; list-style: none; }
.dropdown { margin: 0; list-style: none; }
.nav-item a[aria-current="page"], .dropdown a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: var(--forest-action); }
.nav-item > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--forest-action); }
.icon-button { display: inline-grid; place-items: center; min-width: var(--touch); min-height: var(--touch); border-radius: 50%; }
.icon-button:hover { background: var(--forest-soft); }
.cart-badge[hidden] { display: none; }
.announcement-messages { margin: 0; }
.mobile-whatsapp { display: flex !important; align-items: center; gap: var(--space-2); margin-top: var(--space-4); padding: var(--space-3) 0 !important; font-weight: 600; color: var(--forest-action); }
.mobile-whatsapp svg { width: 20px; height: 20px; }

/* ---------- home ---------- */
.hero img { aspect-ratio: auto; }
.category-grid { margin: 0; padding: 0; list-style: none; }
.category-grid > li { min-width: 0; }
.category-card h3 { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 14px 1px 0; font: 600 18px/1.28 var(--font-title); }
.category-card h3 span { display: inline-flex; }
.category-card h3 svg { width: 21px; height: 21px; }
.category-card:hover h3 { color: var(--forest-action); }

/* ---------- product card ---------- */
.product-card { position: relative; }
.product-image { position: relative; border-radius: var(--radius-md); }
.product-image .hover-image { position: absolute; inset: 0; opacity: 0; transition: opacity .25s var(--ease-out); }
@media (hover: hover) { .product-card:hover .hover-image { opacity: 1; } }
.product-title { margin: 12px 0 4px; font: 500 14px/1.4 var(--font-body); }
.product-title a { color: inherit; }
.product-title a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.product-price { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-price .from { font-weight: 400; font-size: 12px; color: var(--muted); }
.product-pix { margin: 2px 0 0; font-size: 12px; color: var(--forest-action); font-weight: 600; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 9px; border-radius: var(--radius-pill); background: var(--sale); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.badge-muted { background: #4a544d; }
.badge-inline { position: static; display: inline-block; vertical-align: middle; font-size: 12px; background: #fdecea; color: var(--sale); }
.is-sold-out .product-image img { opacity: .55; }

/* ---------- collection ---------- */
.collection-header { margin-bottom: var(--space-5); }
.collection-description { max-width: 75ch; color: var(--muted); line-height: 1.65; }
.collection-toolbar p { margin: 0; }
.collection-toolbar select { min-height: var(--touch); padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; }
.pagination { align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: var(--touch); min-height: var(--touch); padding: 0 var(--space-2); border-radius: var(--radius-sm); }
.pagination a:hover { background: var(--forest-soft); text-decoration: none; }
.pagination .active { border: 0; background: var(--forest); color: #fff; font-weight: 700; }
.pagination svg { width: 18px; height: 18px; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: '›'; margin-right: var(--space-2); color: #9aa59d; }
.breadcrumbs a { color: inherit; }

/* ---------- product page ---------- */
/* Grid items default to min-width:auto; with intrinsic width attributes on <img> that would let a
   1366px photo widen the column on phones. */
.gallery, .product-details { min-width: 0; }
.main-image { position: relative; }
.main-image img { width: 100%; }
.thumbnails button { min-height: var(--touch); }
.thumbnails button[aria-current] { border: 2px solid var(--forest-action); }
.product-detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); font-variant-numeric: tabular-nums; }
.product-detail-price s { margin-left: 0; }
.payment-lines, .purchase-benefits, .product-highlights { list-style: none; padding: 0; }
.payment-lines { display: grid; gap: var(--space-2); margin: var(--space-4) 0; }
.payment-lines li, .purchase-benefits li, .product-highlights li { display: flex; align-items: center; gap: var(--space-2); }
.payment-lines svg, .purchase-benefits svg, .product-highlights svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--forest-action); }
.product-highlights li { padding: 5px 0; }
.product-highlights li::before { content: none; }
.purchase-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; line-height: 1.35; margin: var(--space-5) 0; padding: 0; list-style: none; }
.purchase-benefits li { min-width: 0; min-height: 86px; padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); flex-direction: column; justify-content: center; text-align: center; }
.purchase-benefits li > span { display: grid; gap: 2px; min-width: 0; }
.purchase-benefits strong { font-size: 12px; }
.purchase-benefits small { color: var(--muted); font-size: 12px; }
.variant-picker { margin: var(--space-5) 0 var(--space-4); padding: 0; border: 0; }
.variant-picker legend { margin-bottom: var(--space-2); font-weight: 600; font-size: 14px; }
.variant-picker legend span { font-weight: 400; }
.variant-option { display: inline-flex; margin: 0 var(--space-2) var(--space-2) 0; }
.variant-option input { position: absolute; opacity: 0; pointer-events: none; }
.variant-option span { display: inline-grid; place-items: center; min-height: var(--touch); padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: #fff; font-size: 14px; transition: border-color .15s, background .15s; }
.variant-option:hover span { border-color: var(--forest-action); }
.variant-option input:checked + span { border: 2px solid var(--forest-action); background: var(--forest-soft); font-weight: 600; }
.variant-option input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.variant-option.is-unavailable span { color: #8b938d; text-decoration: line-through; cursor: not-allowed; }
.buy-row { display: flex; gap: var(--space-3); align-items: stretch; margin-top: var(--space-4); }
.buy-row .quantity { margin: 0; flex: 0 0 auto; }
.buy-row .quantity button { min-width: var(--touch); min-height: 50px; }
.buy-row .add-to-cart { flex: 1; margin: 0; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 50px; padding: 0 var(--space-5); border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; transition: background .15s, transform .1s; }
.primary-button { border: 1px solid var(--forest-action); background: var(--forest-action); color: #fff; }
.primary-button:hover { text-decoration: none; }
.primary-button:active, .secondary-button:active { transform: scale(.98); }
.secondary-button { border: 1.5px solid var(--forest-dark); background: #fff; color: var(--forest-dark); }
.secondary-button:hover { background: var(--forest-soft); }
.buy-now { width: 100%; margin-top: var(--space-3); background: #fff; color: var(--forest-dark); }
[aria-busy="true"] { cursor: progress; }
.product-description { margin-top: var(--space-6); line-height: 1.7; }
.product-description table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; }
.product-description th, .product-description td { padding: var(--space-2); border: 1px solid var(--line); text-align: left; }
.eyebrow { margin: 0; color: var(--forest-action); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.product-faq details > div { padding-bottom: var(--space-4); color: var(--muted); line-height: 1.65; }
.product-faq summary { min-height: var(--touch); }
.video-facade { position: relative; display: block; width: 100%; margin-top: 22px; padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; background: #101810; aspect-ratio: 16 / 9; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-facade .play { position: absolute; inset: 50% auto auto 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: #e62117; }
.video-facade .play::after { content: ''; position: absolute; inset: 14px auto auto 27px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video-facade:hover .play { background: #c4170e; }
.sticky-buy { position: fixed; z-index: var(--z-overlay); inset: auto 0 0; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(16, 42, 24, .12); }
.sticky-buy[hidden] { display: none; }
.sticky-buy div { display: grid; flex: 1; min-width: 0; font-size: 13px; }
.sticky-buy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sticky-buy span { color: var(--forest-dark); font-weight: 700; }
.sticky-buy .primary-button { min-height: 46px; padding: 0 var(--space-4); }
@media (min-width: 991px) { .sticky-buy { display: none !important; } }

/* ---------- cart / checkout ---------- */
.cart-items { margin: 0; padding: 0; list-style: none; }
.cart-quantity button { min-width: 40px; min-height: 40px; border-radius: var(--radius-sm); }
.cart-quantity .remove { min-height: 40px; padding: 0 var(--space-2); }
.cart-quantity button:disabled { opacity: .4; }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; }
.cart-pix { color: var(--forest-action) !important; font-weight: 600; }
.cart-summary .primary-button { width: 100%; }
.empty-cart { display: grid; justify-items: center; gap: var(--space-4); padding: var(--space-7) 0; text-align: center; }
.cart-drawer { z-index: var(--z-drawer); }
.drawer-backdrop { z-index: calc(var(--z-drawer) - 1); }
.checkout form { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.checkout fieldset { display: grid; gap: var(--space-4); margin: 0; padding: 0; border: 0; }
.checkout legend { margin-bottom: var(--space-2); font: 700 18px var(--font-title); }
.field { display: grid; gap: 6px; }
.field label { display: block; font-weight: 600; font-size: 14px; }
.field input:focus, .field textarea:focus { border-color: var(--forest-action); outline: 2px solid var(--forest-action); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.field input, .field textarea { min-height: var(--touch); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font-size: 16px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); background: #fffafa; }
.field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus, .field select[aria-invalid="true"]:focus { outline: 2px solid var(--danger); outline-offset: 1px; }
.field-error { margin: 0; color: var(--danger); font-size: 13px; font-weight: 600; line-height: 1.4; }
.required { color: var(--danger); }
.optional { color: var(--muted); font-weight: 400; font-size: 13px; }
.form-note:empty { display: none; }
.form-note { margin: 0; font-weight: 600; }
.checkout-summary ul { margin: 0; padding: 0; list-style: none; }
.checkout-summary li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.checkout-summary dl { margin: var(--space-4) 0 0; }
.checkout-summary dl div { display: flex; justify-content: space-between; padding: 6px 0; }
.checkout-summary dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-total { font-size: 18px; border-top: 1px solid var(--line); margin-top: var(--space-2); padding-top: var(--space-3) !important; }
.summary-pix dd, .summary-pix dt { color: var(--forest-action); }

/* ---------- search / content ---------- */
.large-search { display: flex; max-width: 640px; margin: var(--space-4) 0; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); overflow: hidden; }
.large-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-4); border: 0; font-size: 16px; }
.large-search button { min-width: 56px; border: 0; background: var(--forest-action); color: #fff; font-weight: 600; }
.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0; padding: 0; list-style: none; }
.chip { display: inline-grid; place-items: center; min-height: 40px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.chip:hover { border-color: var(--forest-action); text-decoration: none; }
.empty-state { color: var(--muted); }
.text-page { max-width: 880px; padding-block: var(--space-6) var(--space-7); line-height: 1.7; }
.lead { font-size: 18px; color: var(--muted); }
.trust-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-3); margin: var(--space-5) 0; padding: 0; list-style: none; }
.trust-facts li { display: grid; gap: 2px; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream); }
.trust-facts span { color: var(--muted); font-size: 14px; }
.contact-channels { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin: var(--space-4) 0 var(--space-6); padding: 0; list-style: none; }

/* ---------- footer ---------- */
.benefits-grid { margin: 0 auto; list-style: none; grid-template-columns: repeat(4, 1fr); }
.benefits-grid li { display: grid; justify-items: center; gap: 3px; }
.benefits-grid svg { width: 26px; height: 26px; margin-bottom: 4px; }
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-6); }
.footer h2 { font: 700 15px var(--font-title); margin: 0 0 var(--space-3); }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li a { display: inline-block; padding: 5px 0; }
.footer address { font-style: normal; line-height: 1.9; }
.footer-social { display: flex; gap: var(--space-2); }
.footer-social a { display: grid; place-items: center; width: var(--touch); height: var(--touch); border: 1px solid #ffffff40; border-radius: 50%; }
.footer-social svg { width: 20px; height: 20px; }
.link-button { border: 0; padding: 0; background: none; color: inherit; text-decoration: underline; font-size: inherit; }
.whatsapp-float { position: fixed; z-index: var(--z-overlay); right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #1f9d55; color: #fff; box-shadow: var(--shadow-md); transition: transform .15s var(--ease-out); }
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 26px; height: 26px; }
/* Never over the checkout form, the open cart or menu, or the mobile buy bar (which already offers WhatsApp in the page). */
body:has(.checkout) .whatsapp-float, body:has(.cart-drawer) .whatsapp-float, body:has(.mobile-menu) .whatsapp-float, body:has([data-sticky-buy]:not([hidden])) .whatsapp-float { display: none; }
@media (max-width: 750px) { .whatsapp-float { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 48px; height: 48px; } .whatsapp-float svg { width: 24px; height: 24px; } }

/* ---------- consent ---------- */
.consent-banner { position: fixed; z-index: var(--z-toast); inset: auto 16px 16px; max-width: 560px; margin-inline: auto; display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); font-size: 14px; }
.consent-banner p { margin: 0; }
.consent-banner div { display: flex; justify-content: flex-end; gap: var(--space-2); }
.consent-banner button { min-height: var(--touch); }

/* ---------- responsive ---------- */
@media (max-width: 990px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-3); }
}
@media (max-width: 750px) {
  .category-grid { display: flex; }
  .category-grid > li { flex: 0 0 clamp(150px, 44vw, 170px); scroll-snap-align: start; }
  .category-card h3 { font-size: 15px; line-height: 1.25; margin-top: 12px; }
  .category-card h3 svg { width: 17px; height: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .product-page { padding-bottom: 80px; }
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .payment-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .payment-lines li { min-width: 0; min-height: 66px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); align-items: flex-start; font-size: 13px; }
  .payment-lines li > span { min-width: 0; display: grid; gap: 2px; }
  .payment-lines svg { flex-basis: 18px; width: 18px; height: 18px; }
  .purchase-benefits { gap: 6px; }
  .purchase-benefits li { min-height: 82px; padding: 8px 4px; align-items: center; }
  .purchase-benefits svg { flex: 0 0 18px; width: 18px; height: 18px; }
  .purchase-benefits strong { font-size: 11px; }
  .purchase-benefits small { font-size: 12px; }
}
@media (max-width: 359px) { .purchase-benefits small { font-size: 11px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Global store benefits: always keep the three promises in one balanced row. */
.benefits-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  padding: 24px 0;
}

/* Progressive checkout */
.checkout-step[hidden] { display:none; }
.checkout-intro { max-width:58ch; margin:0; color:var(--muted); }
.checkout-step { padding:clamp(18px,3vw,28px); border:1px solid var(--line); border-radius:var(--radius-md); background:#fff; box-shadow:0 8px 24px rgba(16,42,24,.05); }
.checkout-step h2 { margin:0 0 var(--space-4); font-size:20px; }
.checkout-actions { display:flex; justify-content:space-between; gap:var(--space-3); margin-top:var(--space-5); }
.checkout-actions .secondary-button,.checkout-actions .primary-button { flex:1; }
.payment-methods { display:grid; gap:10px; margin:0; padding:0; border:0; }
.payment-methods > label { display:flex; align-items:center; gap:10px; min-height:58px; padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--cream); cursor:pointer; }
.payment-methods > label:has(input:checked) { border-color:var(--forest-action); box-shadow:0 0 0 1px var(--forest-action); }
.payment-methods > label > span { display:grid; gap:2px; }
.payment-methods small { color:var(--muted); }
.checkout-payment-note { margin:var(--space-4) 0 0; padding:12px; border-radius:var(--radius-sm); background:var(--forest-soft); color:var(--forest-dark); font-size:13px; }
.checkout-summary { box-shadow:0 8px 24px rgba(16,42,24,.05); }
.checkout-summary h2 { font-size:20px; }
@media (max-width:750px) {
  .checkout-step { padding:18px 14px; }
  .checkout-actions { flex-direction:column-reverse; }
  .checkout-actions .secondary-button,.checkout-actions .primary-button { width:100%; }
}

@media (max-width: 750px) {
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 20px 0;
  }
  .benefits-grid li { min-width: 0; }
  .benefits-grid strong { font-size: 13px; line-height: 1.2; }
  .benefits-grid span { font-size: 11px; line-height: 1.25; }
  .benefits-grid svg { width: 22px; height: 22px; margin-bottom: 3px; }
}

/* ---------- original-store blocks: badges, color siblings, shipping, tracking ---------- */
.trust-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.trust-badges li { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px 4px 9px; border-radius: var(--radius-pill); background: var(--forest-soft); color: var(--forest-dark); font-size: 13px; font-weight: 600; }
.trust-badges svg, .trust-badges img { flex: none; width: 16px; height: 16px; color: var(--forest-action); }
.sibling-picker { margin: var(--space-4) 0; }
.sibling-picker p { margin: 0 0 var(--space-2); font-size: 14px; font-weight: 600; }
.sibling-picker strong { font-weight: 400; }
.sibling-picker ul { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.sibling { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; overflow: hidden; background: #fff; }
.sibling img { width: 100%; height: 100%; object-fit: cover; }
.sibling.is-current { border: 2px solid var(--forest-action); box-shadow: 0 0 0 2px #fff inset; }
.swatch-color { width: 34px; height: 34px; border-radius: 50%; background: #ccc; }
.product-colors { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.shipping-options { margin: var(--space-4) 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); }
.shipping-options p { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); }
.shipping-options svg { width: 20px; height: 20px; color: var(--forest-action); }
.shipping-options ul { margin: 0; padding: 0; list-style: none; }
.shipping-options li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.shipping-options small { display: block; color: var(--muted); }
.track-form { max-width: 640px; margin-top: var(--space-5); display: grid; gap: var(--space-4); }
.track-card { display: grid; gap: var(--space-2); margin: 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream); }
.track-card div { display: grid; grid-template-columns: 150px 1fr; gap: var(--space-3); }
.track-card dt { font-weight: 600; }
.track-card dd { margin: 0; }
.original-page img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.original-page table { width: 100%; border-collapse: collapse; }
.original-page td, .original-page th { padding: var(--space-2); border: 1px solid var(--line); vertical-align: top; }

/* ---------- reviews ---------- */
.product-reviews { padding-block: var(--space-6); }
.product-reviews h2 { margin: 6px 0 var(--space-4); font-size: clamp(25px, 2.5vw, 32px); }
.stars { display: inline-flex; gap: 1px; color: #d99a00; }
.stars svg { width: 16px; height: 16px; stroke-width: 1.4; }
.stars .is-on svg { fill: currentColor; }
.reviews-summary { display: flex; align-items: center; gap: var(--space-2); }
.reviews-empty { max-width: 60ch; color: var(--muted); }
.review-list { display: grid; gap: var(--space-4); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.review { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); }
.review-head time, .review-head small { color: var(--muted); font-size: 13px; }
.review-photos { display: flex; gap: var(--space-2); }
.review-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); }

/* ---------- quantity cards, payment icons, home banners, footer trust ---------- */
.bundle-picker { display: grid; gap: var(--space-3); }
.bundle-option { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.bundle-option:has(input:checked) { border: 2px solid var(--forest-action); background: var(--forest-soft); }
.bundle-option input { accent-color: var(--forest-action); width: 18px; height: 18px; }
.bundle-text { display: grid; gap: 2px; }
.bundle-name { font-weight: 700; }
.bundle-text small { color: var(--muted); font-size: 13px; }
.bundle-text .bundle-save { color: var(--forest-action); font-weight: 700; }
.bundle-price { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.bundle-price s { color: var(--muted); font-size: 13px; }
.bundle-flag { position: absolute; top: -10px; left: 16px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--forest-action); color: #fff; font: 700 11px var(--font-body); text-transform: uppercase; letter-spacing: .04em; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.payment-icons img { width: 38px; height: 24px; object-fit: contain; }
.home-banner { padding-block: var(--space-4); }
.home-banner img { width: 100%; height: auto; border-radius: var(--radius-md); }
.footer-trust { display: grid; gap: var(--space-4); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid #ffffff30; }
.footer-security { max-width: 80ch; margin: 0; line-height: 1.6; opacity: .9; }
.footer-trust .payment-icons li { padding: 3px; border-radius: 4px; background: #fff; }
.footer-seals { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.footer-seals img { width: auto; height: 40px; border-radius: 4px; background: #fff; }
.footer-company { display: grid; gap: 2px; font-style: normal; font-size: 13px; opacity: .85; }
.footer-bottom nav ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }

/* ---------- polish pass: product page, CTA hierarchy, reading pages, small targets ---------- */
.product-price s { font-size: 12px; }
@media (min-width: 991px) {
  .gallery { position: sticky; top: 100px; align-self: start; }
}
.thumbnails { scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.thumbnails::-webkit-scrollbar { display: none; }
.thumbnails button { scroll-snap-align: start; }
.thumbnails button:hover { border-color: var(--line-strong); }
.thumbnails button[aria-current]:hover { border-color: var(--forest-action); }

.product-details .trust-badges + h1 { margin-top: 0; }
.payment-lines li > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.pix-pill { display: inline-block; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--forest-action); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .02em; }

/* CTA stack: qty + dominant action on one row, the other action full width below. */
.buy-row { flex-wrap: nowrap; }
.buy-row .quantity { width: auto; }
.buy-row .quantity input { width: 44px; min-width: 0; }
.buy-row .buy-now { width: auto; flex: 1; margin: 0; background: var(--forest-action); color: #fff; border-color: var(--forest-action); font-size: 14px; box-shadow: 0 8px 18px rgba(32, 106, 55, .16); }
.buy-row .buy-now:hover { background: var(--forest-dark); border-color: var(--forest-dark); }
.buy-row .buy-now:disabled { background: var(--forest-action); }
.add-to-cart.secondary-button { width: 100%; margin-top: var(--space-3); box-shadow: none; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.add-to-cart.secondary-button:hover { background: var(--forest-soft); border-color: var(--forest-dark); }
.add-to-cart.secondary-button:disabled { background: #fff; }
.buy-now.primary-button { text-transform: uppercase; letter-spacing: .05em; }

/* Quantity kit cards */
.bundle-picker { gap: 14px; margin-top: var(--space-5); }
.bundle-picker legend { margin-bottom: var(--space-3); }
.bundle-option { min-height: 72px; transition: border-color .15s, background .15s; }
.bundle-option:hover { border-color: var(--line-strong); }
.bundle-option:has(input:checked) { padding: 13px 17px; }
.bundle-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.bundle-option.is-unavailable { opacity: .55; cursor: not-allowed; }
.bundle-price strong { font-size: 16px; color: var(--forest-dark); }
.bundle-flag { top: -11px; font-size: 11px; line-height: 18px; padding: 1px 10px; }

/* Color siblings */
.sibling-picker p { font-size: 14px; }
.sibling-picker ul { gap: 10px; }
.sibling { width: 52px; height: 52px; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.sibling:hover { border-color: var(--line-strong); text-decoration: none; }
.sibling.is-current { border: 1px solid #fff; box-shadow: 0 0 0 2px var(--forest-action); }
.sibling:focus-visible { outline-offset: 4px; }
.product-colors { margin: 12px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.product-colors + .product-title { margin-top: 2px; }

/* Payment icons under the CTA */
.payment-icons { gap: 6px; margin: var(--space-4) 0 0; }
.payment-icons li { display: grid; place-items: center; width: 46px; height: 30px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.payment-icons img { width: 34px; height: 20px; }

/* Shipping options */
.shipping-options { margin: var(--space-5) 0 var(--space-4); padding: var(--space-4) var(--space-4) var(--space-2); background: var(--cream); }
.shipping-options p { margin-bottom: var(--space-3); font-size: 14px; }
.shipping-options li { align-items: center; padding: 10px 0; }
.shipping-options li strong { color: var(--forest-action); white-space: nowrap; font-variant-numeric: tabular-nums; }
.shipping-options small { margin-top: 2px; font-size: 13px; }
.purchase-benefits { margin: var(--space-5) 0; padding: 0; }

/* Reviews */
.product-reviews { border-top: 1px solid var(--line); }
.product-reviews h2 { margin-top: 0; }
.reviews-empty { padding: var(--space-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--cream); color: var(--ink); line-height: 1.6; }
.reviews-empty a { color: var(--forest-action); font-weight: 600; text-decoration: underline; }
.review p:last-child { margin-bottom: 0; }

/* Home banners */
.home-banner { padding-block: var(--space-5); }
.home-banner a { display: block; border-radius: var(--radius-md); overflow: hidden; }
.home-banner img { border-radius: 0; }

/* Reading pages: policies, about, trust, tracking */
.text-page h2 { margin: 2em 0 .6em; font: 600 clamp(20px, 2.1vw, 25px)/1.3 var(--font-title); letter-spacing: -.02em; color: var(--forest-dark); }
.text-page h3 { margin: 1.6em 0 .5em; font: 600 18px/1.35 var(--font-title); }
.text-page p, .text-page li { max-width: 68ch; line-height: 1.65; }
.text-page ul, .text-page ol { padding-left: 1.3em; }
.text-page li + li { margin-top: .35em; }
.text-page a:not([class]) { color: var(--forest-action); text-decoration: underline; text-decoration-thickness: 1px; }
.original-page { font-size: 16px; }
.original-page h1 + * { margin-top: 0; }
.original-page table { margin: var(--space-4) 0; font-size: 15px; }
.original-page th { background: var(--cream); text-align: left; }
.original-page img { margin: var(--space-5) auto; }

/* Order tracking */
.track-form { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.track-form .primary-button { justify-self: start; min-width: 180px; }
.track-result:empty { display: none; }
.track-card { gap: 0; padding: var(--space-2) var(--space-4); }
.track-card div { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.track-card div:last-child { border-bottom: 0; }
.track-card dt { color: var(--muted); font-weight: 600; font-size: 14px; }

/* Footer trust band */
.footer-trust { gap: var(--space-5); margin-top: var(--space-7); }
.footer-security { font-size: 14px; }
.footer-trust .payment-icons { margin: 0; }
.footer-trust .payment-icons li { width: 46px; height: 30px; border: 0; padding: 0; }
.footer-seals a { display: block; border-radius: 4px; }
.footer-seals img { padding: 4px 6px; }
.footer-company { line-height: 1.6; }
.footer-company strong { font-size: 14px; }
.footer-bottom { margin-top: var(--space-6); }
.footer-bottom .link-button { min-height: 44px; font-size: 12px; color: inherit; }

@media (max-width: 750px) {
  .breadcrumbs { padding: 16px 0; }
  .breadcrumbs li:last-child { display: none; }
  .breadcrumbs li:nth-last-child(2) a { font-weight: 600; }
  .buy-row .quantity button { min-width: 40px; padding: 0; }
  .buy-row .quantity input { width: 36px; }
  .buy-row .buy-now, .buy-row .add-to-cart { padding: 0 var(--space-4); }
  .track-form { padding: var(--space-4); }
  .track-card div { grid-template-columns: 1fr; gap: 2px; }
  .text-page h2 { margin-top: 1.6em; }
  .bundle-option { padding: 14px; }
  .bundle-option:has(input:checked) { padding: 13px; }
}

/* ---------- polish pass: round-two fixes ---------- */
.footer-seals img[width][height] { width: auto; height: 40px; max-width: 160px; object-fit: contain; }
.form-note.is-error { color: var(--danger); }
.form-note.card-payment-error { margin-top: 18px; padding: 14px 16px; border: 1px solid #ead9c5; border-radius: 10px; background: #fffaf4; color: #6b4d2e; line-height: 1.5; overflow-wrap: anywhere; }
.text-page .breadcrumbs a { color: inherit; text-decoration: none; }
.text-page .breadcrumbs a:hover { text-decoration: underline; }
.product-extras + .product-reviews { border-top: 0; padding-top: 0; }
.quantity { border-radius: var(--radius-pill); overflow: hidden; }
.product-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-right: 4px; list-style: none; }
.product-faq summary::-webkit-details-marker { display: none; }
.product-faq summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-bottom: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease-out); }
.product-faq details[open] summary::after { margin: 3px 0 0; transform: rotate(-135deg); }
/* Product pages already carry a WhatsApp link beside the CTA; on phones the float would sit on prices and options. */
@media (max-width: 990px) { body:has(.product-page) .whatsapp-float { display: none; } }
.text-page .breadcrumbs ol { padding-left: 0; }
.text-page .breadcrumbs li { max-width: none; line-height: 1.5; }
.text-page .breadcrumbs li + li { margin-top: 0; }

/* ---------- real-life product photos ---------- */
.real-photos { padding-block: var(--space-6) 0; }
.real-photos h2 { margin: 0 0 var(--space-4); font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--font-title); letter-spacing: -.02em; }
.real-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.real-photos-grid a { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-md); background: var(--cream); }
.real-photos-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease-out); }
.real-photos-grid a:hover img { transform: scale(1.03); }
.product-video video { display: block; width: 100%; max-height: 70vh; margin-top: 22px; border-radius: var(--radius-md); background: #101810; }
.catalog-error { margin: 0 auto var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: #fdecea; color: var(--danger); font-weight: 600; width: min(100% - 48px, 1200px); }

/* ---------- checkout: dedicated conversion layout ---------- */
body:has(.checkout) { background: #f6f8f5; }
body:has(.checkout) main { background: linear-gradient(180deg, #fff 0, #f6f8f5 420px); }
.checkout { width: min(100% - 48px, 1120px); grid-template-columns: minmax(0, 1fr) minmax(310px, .66fr); gap: clamp(32px, 6vw, 76px); padding-block: clamp(42px, 6vw, 76px) clamp(52px, 7vw, 88px); }
.checkout > div { min-width: 0; }
.checkout h1 { margin: 0; color: #163d25; font: 800 clamp(30px, 3.1vw, 42px)/1.06 var(--font-body); letter-spacing: -.055em; }
.checkout-intro { max-width: 47ch; margin: 14px 0 0; color: #657269; font-size: 15px; line-height: 1.6; }
.checkout form { gap: 18px; margin-top: 30px; }


.checkout-step { scroll-margin-top: 126px; padding: clamp(22px, 3vw, 32px); border: 1px solid #e0e8e1; border-radius: 16px; background: #fff; box-shadow: 0 14px 38px rgba(22, 61, 37, .07); }
.checkout-step h2 { margin: 0 0 24px; color: #173e26; font: 750 clamp(21px, 2vw, 25px)/1.2 var(--font-body); letter-spacing: -.035em; }
.checkout legend { margin: 0 0 16px; color: #203d2b; font: 700 14px/1.3 var(--font-body); letter-spacing: .01em; text-transform: uppercase; }
.checkout .field { gap: 8px; }
.checkout .field + .field { margin-top: 2px; }
.checkout .field label { color: #314b39; font-size: 13px; letter-spacing: .005em; }
.checkout .field input, .checkout .field textarea, .checkout .field select { min-height: 52px; padding: 12px 14px; border-color: #cbd7cd; border-radius: 9px; color: #173e26; font-size: 16px; line-height: 1.35; transition: border-color .16s, box-shadow .16s, background .16s; }
.checkout .field textarea { min-height: 102px; resize: vertical; }
.checkout .field input::placeholder, .checkout .field textarea::placeholder { color: #99a59d; }
.checkout .field input:hover, .checkout .field textarea:hover, .checkout .field select:hover { border-color: #98ac9d; }
.checkout .field input:focus, .checkout .field textarea:focus, .checkout .field select:focus { border-color: #287e43; box-shadow: 0 0 0 4px rgba(40, 126, 67, .12); outline: 0; }
.checkout .field select:disabled { cursor: not-allowed; background: #f3f6f3; color: #86938a; }
.address-status { min-height: 18px; margin: -2px 0 0; color: #3c744c; font-size: 12px; font-weight: 600; line-height: 1.4; }
.address-status:empty { display: none; }
.address-status.is-error { color: var(--danger); }
.shipping-methods { display: grid; gap: 14px; margin: 26px 0 0; padding: 18px; border: 1px solid #d5e2d7; border-radius: 12px; background: #f8fcf8; }
.shipping-methods[hidden] { display: none; }
.shipping-methods legend { margin-bottom: 2px; }
.shipping-methods > label { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 60px; padding: 14px 16px; border: 1px solid #b9d7c0; border-radius: 10px; background: #fff; color: #1d5630; cursor: pointer; transition: border-color .16s, background .16s, box-shadow .16s; }
.shipping-methods > label:hover { border-color: #7fb08a; background: #fbfefb; }
.shipping-methods > label:has(input:checked) { border-color: #287e43; background: #f2f9f3; box-shadow: 0 0 0 3px rgba(40, 126, 67, .1); }
.shipping-methods input { width: 18px; height: 18px; margin: 0; accent-color: #287e43; cursor: pointer; }
.shipping-methods strong, .shipping-methods small { display: block; }
.shipping-methods strong { color: #173e26; font: 750 14px/1.3 var(--font-body); }
.shipping-methods small, .shipping-methods > p { margin-top: 2px; color: #58705f; font-size: 12px; line-height: 1.45; }
.shipping-methods > label > b { color: #1d6c38; font-size: 13px; white-space: nowrap; }
.shipping-methods > p { margin: 0; }
.checkout .field-row { gap: 14px; }
.checkout-actions { align-items: center; gap: 12px; margin-top: 28px; }
.checkout-actions .primary-button, .checkout-actions .secondary-button { min-height: 54px; border-radius: 10px; font: 750 13px/1 var(--font-body); letter-spacing: .035em; text-transform: none; }
.checkout-actions .primary-button { box-shadow: 0 8px 18px rgba(40, 126, 67, .18); }
.checkout-actions .primary-button:hover { background: #1f6c38; border-color: #1f6c38; }
.checkout-actions .secondary-button { border-color: #c2d0c4; color: #244831; }

.payment-methods { gap: 12px; }
.payment-methods > label { min-height: 74px; padding: 15px 16px; border-color: #d3dfd5; border-radius: 11px; background: #fff; transition: border-color .16s, background .16s, box-shadow .16s; }
.payment-methods > label:hover { border-color: #91b49a; background: #fbfefb; }
.payment-methods > label:has(input:checked) { border-color: #287e43; background: #f2f9f3; box-shadow: 0 0 0 3px rgba(40, 126, 67, .1); }
.payment-methods > label.is-disabled { border-color: #dfe5e0; background: #f4f6f4; color: #77827a; cursor: not-allowed; opacity: .78; }
.payment-methods > label.is-disabled:hover { border-color: #dfe5e0; background: #f4f6f4; }
.payment-methods > label.is-disabled strong, .payment-methods > label.is-disabled small { color: #77827a; }
.payment-methods input { width: 18px; height: 18px; accent-color: #287e43; }
.payment-methods strong { color: #173e26; font: 750 15px/1.2 var(--font-body); }
.payment-methods small { font-size: 13px; }
.checkout-payment-note { margin-top: 18px; padding: 14px 16px; border: 1px solid #d7eadb; border-radius: 10px; background: #f4faf5; color: #386344; font-size: 13px; line-height: 1.5; }

.checkout-summary { padding: 28px !important; border: 1px solid #dce6dd !important; border-radius: 16px !important; background: #fff !important; box-shadow: 0 14px 38px rgba(22, 61, 37, .08); }
.checkout-summary h2 { margin: 0 0 18px !important; color: #173e26; font: 750 22px/1.2 var(--font-body); letter-spacing: -.03em; }
.checkout-summary ul { border-top: 1px solid #e7ede8; }
.checkout-summary li { align-items: flex-start; gap: 14px; padding: 14px 0; border-color: #e7ede8; color: #3d5143; font-size: 13px; line-height: 1.45; }
.checkout-summary li span { min-width: 0; }
.checkout-summary li strong { flex: 0 0 auto; color: #183f27; font-size: 13px; font-variant-numeric: tabular-nums; }
.checkout-summary dl { margin-top: 18px; }
.checkout-summary dl div { padding: 8px 0; color: #526158; font-size: 14px; }
.checkout-summary dd { color: #263e2d; }
.checkout-summary .summary-total { margin-top: 8px; padding-top: 17px !important; color: #173e26; font-size: 19px; }
.checkout-summary .summary-total dd { color: #173e26; }
.checkout-summary .summary-pix { margin-top: 7px; padding: 11px 12px !important; border-radius: 8px; background: #eff8f1; color: #267441; }
.checkout-summary .summary-pix dd { color: #267441; }

@media (max-width: 750px) {
  body:has(.checkout) main { background: #fff; }
  .checkout { width: min(100% - 30px, 1120px); grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 30px 48px; }
  .checkout h1 { font-size: 31px; }
  .checkout-intro { margin-top: 12px; font-size: 14px; line-height: 1.55; }
  .checkout form { margin-top: 24px; }
  .checkout-step { padding: 22px 16px; border-radius: 14px; }
  .checkout-step h2 { margin-bottom: 21px; font-size: 21px; }
  .checkout legend { margin-bottom: 14px; }
  .checkout .field input, .checkout .field textarea { min-height: 50px; }
  .checkout-actions { margin-top: 24px; }
  .checkout-actions .primary-button, .checkout-actions .secondary-button { min-height: 52px; }
  .checkout-summary { padding: 22px 16px !important; border-radius: 14px !important; }
  .checkout-summary h2 { font-size: 20px; }
}

/* The checkout stage indicator is a single progress control, not three cards. */
body:has(.checkout) ::selection { background: #ccebd3; color: #153c24; }
.checkout input, .checkout textarea { caret-color: #287e43; }

@media (max-width: 750px) {
}

/* Checkout payment details */
.payment-methods > label { display: grid; grid-template-columns: 20px 30px minmax(0, 1fr); align-items: center; }
.payment-methods > label > img { width: 28px; height: 28px; object-fit: contain; }
.payment-detail { margin-top: 26px; padding-top: 24px; border-top: 1px solid #e3ebe4; }
.payment-detail[hidden] { display: none; }
.payment-detail-heading { display: flex; align-items: center; gap: 12px; }
.payment-detail-heading > img { flex: 0 0 auto; width: 38px; height: 38px; }
.payment-detail h3 { margin: 0; color: #173e26; font: 750 18px/1.25 var(--font-body); letter-spacing: -.02em; }
.payment-detail-heading p, .pix-code-stage > p, .card-security-note { margin: 4px 0 0; color: #5c7062; font-size: 13px; line-height: 1.55; }
.pix-code-stage { display: grid; gap: 16px; margin-top: 22px; }

.card-payment { display: grid; gap: 26px; }
.credit-card-scene { width: min(100%, 390px); perspective: 1200px; perspective-origin: center 45%; }
.credit-card-preview { --turn: 0deg; --tilt-x: 0deg; --tilt-y: 0deg; position: relative; width: 100%; min-height: 220px; transform: rotateX(var(--tilt-x)) rotateY(calc(var(--turn) + var(--tilt-y))); transform-style: preserve-3d; transition: transform .58s cubic-bezier(.2, .75, .2, 1); }
.credit-card-preview[data-card-focus="name"] { --tilt-x: .7deg; --tilt-y: 1deg; }
.credit-card-preview[data-card-focus="number"] { --tilt-x: -.7deg; --tilt-y: -1deg; }
.credit-card-preview[data-card-focus="expiry"] { --tilt-x: .5deg; --tilt-y: -.7deg; }
.credit-card-preview[data-card-side="back"] { --turn: 180deg; --tilt-x: 0deg; --tilt-y: 0deg; }
.credit-card-face { position: absolute; inset: 0; display: grid; align-content: space-between; padding: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); border-radius: 17px; background: linear-gradient(135deg, #111827, #293247 62%, #12182a); color: #fff; box-shadow: 0 19px 30px rgba(20, 28, 45, .27); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.credit-card-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 26%, rgba(255, 255, 255, .12) 47%, transparent 62%); pointer-events: none; }
.credit-card-back { grid-template-rows: 35px auto 1fr auto; align-content: stretch; gap: 17px; background: linear-gradient(135deg, #161b29, #323a51 62%, #151a29); transform: rotateY(180deg); }
.credit-card-preview[data-brand="visa"] .credit-card-face { background: linear-gradient(135deg, #101d40, #1f478e 62%, #10182e); }
.credit-card-preview[data-brand="mastercard"] .credit-card-face { background: linear-gradient(135deg, #241617, #743727 62%, #251518); }
.credit-card-preview[data-brand="american-express"] .credit-card-face { background: linear-gradient(135deg, #0e3142, #1c7095 62%, #0d2c3e); }
.credit-card-preview[data-brand="elo"] .credit-card-face { background: linear-gradient(135deg, #29203d, #514072 62%, #211a32); }
.credit-card-top, .credit-card-bottom, .credit-card-face > strong, .card-chip, .card-magnetic-strip, .card-cvv-panel, .credit-card-back > p, .credit-card-back .card-brand-mark { position: relative; z-index: 1; }
.credit-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.card-brand-mark { display: inline-flex; align-items: center; min-height: 28px; color: #fff; font: 800 13px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.card-brand-mark:empty { visibility: hidden; }
.card-contactless { display: flex; align-items: center; height: 23px; gap: 3px; transform: rotate(90deg); }
.card-contactless i { display: block; width: 5px; height: 8px; border-right: 1.5px solid rgba(255,255,255,.85); border-radius: 0 8px 8px 0; }
.card-contactless i:nth-child(2) { height: 13px; }.card-contactless i:nth-child(3) { height: 18px; }
.card-chip { width: 43px; height: 32px; margin-top: 12px; border: 1px solid rgba(255, 255, 255, .58); border-radius: 7px; background: linear-gradient(135deg, #e2cc83, #9a7b37); }
.credit-card-face > strong { margin-top: 14px; font-size: clamp(20px, 4vw, 27px); font-weight: 600; letter-spacing: .085em; font-variant-numeric: tabular-nums; }
.credit-card-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; }
.credit-card-bottom span { display: grid; gap: 3px; min-width: 0; }
.credit-card-bottom small { color: rgba(255, 255, 255, .72); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.credit-card-bottom b { overflow: hidden; max-width: 235px; font-size: 12px; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.card-magnetic-strip { margin-inline: -22px; background: #090c13; }
.card-cvv-panel { display: grid; justify-items: end; align-content: center; gap: 4px; min-height: 46px; padding: 6px 11px; border-radius: 4px; background: #edf0ef; color: #131827; }
.card-cvv-panel small { justify-self: start; color: #5f6877; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-cvv-panel b { font: 800 16px/1 var(--font-body); letter-spacing: .14em; }
.credit-card-back > p { align-self: end; max-width: 25ch; margin: 0; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.4; }
.card-fields { margin: 0; padding: 0; border: 0; }
.card-fields legend { margin-bottom: 16px; }
.card-security-note { padding-top: 2px; }
.payment-actions { margin-top: 30px; }

@media (max-width: 750px) {
  .shipping-methods { padding: 14px; gap: 11px; }
  .shipping-methods > label { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 11px; padding: 13px; }
  .payment-detail { margin-top: 22px; padding-top: 20px; }
  .credit-card-preview { min-height: 206px; --tilt-x: 1deg; --tilt-y: -2deg; }
  .credit-card-face { padding: 19px; border-radius: 14px; }
  .credit-card-face > strong { font-size: 20px; }
  .card-magnetic-strip { margin-inline: -19px; }
}

@media (prefers-reduced-motion: reduce) {
  .credit-card-preview { transition-duration: .01ms; }
}

/* ---------- customer account ---------- */
.customer-content, .customer-auth-card, .customer-order > div { min-width: 0; overflow-wrap: anywhere; }
.customer input, .customer select, .customer textarea, .customer-auth input { min-width: 0; max-width: 100%; }
.customer-logo img { display: block; object-fit: contain; }
.customer-auth .password-field button { min-width: 64px; min-height: 44px; }
.customer-auth .check, .customer .check { min-height: 44px; }
.customer .customer-nav nav a, .customer .customer-nav .link-button { min-height: 44px; }
.cart-drawer .drawer-head button, .mobile-menu .close-menu { min-width: 44px; min-height: 44px; }
.pix-qr { display: block; max-width: 100%; height: auto; margin: 18px auto; }
.pix-payment textarea { width: 100%; overflow-wrap: anywhere; resize: vertical; }
.customer-address .link-button, .customer-filters button { min-height: 44px; }
.customer-auth { display: grid; min-height: 66vh; place-items: center; padding-block: clamp(42px, 8vw, 88px); }
.customer-auth-card { width: min(100%, 460px); padding: clamp(24px, 5vw, 42px); border: 1px solid #dce6dd; border-radius: 18px; background: #fff; box-shadow: 0 18px 48px rgba(22,61,37,.09); }
.customer-auth-card h1, .customer-heading h1 { margin: 8px 0 10px; color: #173e26; font: 800 clamp(28px,4vw,40px)/1.05 var(--font-body); letter-spacing: -.035em; }
.customer-auth-card form, .customer-form { display: grid; gap: 16px; margin-top: 26px; }
.customer-auth-card .field input, .customer-form .field input { min-height: 50px; border-radius: 9px; font-size: 16px; }
.customer-logo, .customer-brand { color: #1d6235; font-weight: 800; text-decoration: none; }
.password-field { position: relative; display: block; }.password-field input { width: 100%; padding-right: 80px; }.password-field button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); color: #1d6235; }
.check { display: flex; align-items: center; gap: 8px; min-height: 28px; color: #415747; font-size: 14px; }.check input { width: 18px; height: 18px; accent-color: #287e43; }
.customer { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: clamp(28px,5vw,72px); padding-block: clamp(30px,5vw,68px); }
.customer-nav { align-self: start; position: sticky; top: 100px; display: grid; gap: 24px; padding: 20px; border: 1px solid #dce6dd; border-radius: 14px; background: #fff; }.customer-nav nav { display: grid; gap: 4px; }.customer-nav nav a, .customer-nav .link-button { min-height: 42px; padding: 10px 12px; border-radius: 8px; color: #385340; font-weight: 650; text-align: left; text-decoration: none; }.customer-nav nav a[aria-current="page"] { background: #eaf5ec; color: #1d6235; }.customer-nav .link-button { color: #a03434; }
.customer-content { min-width: 0; }.customer-heading { margin-bottom: 28px; }.customer-heading p { margin: 0; color: #647369; }.eyebrow { margin: 0 0 7px; color: #39714a; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.customer-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 44px; }.customer-stats > div { display: grid; gap: 4px; min-height: 100px; padding: 19px; border: 1px solid #dce6dd; border-radius: 13px; background: #fff; }.customer-stats strong { color: #173e26; font-size: 28px; }.customer-stats span { color: #617067; font-size: 13px; }
.customer-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }.customer-section-title h2, .customer-content h2 { margin: 0; color: #183f27; font-size: 21px; letter-spacing: -.03em; }.customer-section-title a { color: #216a38; font-weight: 700; }
.customer-order, .customer-address { display: flex; justify-content: space-between; gap: 24px; padding: 22px; border: 1px solid #dce6dd; border-radius: 13px; background: #fff; }.customer-order + .customer-order, .customer-address + .customer-address { margin-top: 12px; }.customer-order h2 { margin: 0 0 12px; font-size: 17px; }.customer-order ul { display: grid; gap: 4px; margin: 0; padding: 0; color: #647369; font-size: 14px; list-style: none; }.customer-order-meta { display: grid; justify-items: end; align-content: start; gap: 9px; min-width: 160px; }.customer-order-meta strong { color: #173e26; font-size: 17px; }.badge { padding: 5px 8px; border-radius: 99px; background: #edf5ee; color: #2d6d40; font-size: 12px; font-weight: 750; }.customer-empty { padding: 28px; border: 1px dashed #cbd8cd; border-radius: 13px; background: #fbfdfb; color: #596b5f; }
.customer-filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 20px; padding-bottom: 4px; }.customer-filters button { flex: 0 0 auto; min-height: 38px; padding: 7px 12px; border: 1px solid #cedbd0; border-radius: 99px; background: #fff; color: #45604c; font-weight: 650; }.customer-filters button[aria-pressed="true"] { border-color: #287e43; background: #eaf5ec; color: #1d6235; }
.customer-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin: 26px 0; }.customer-detail-grid > div, .customer-danger { padding: 22px; border: 1px solid #dce6dd; border-radius: 13px; background: #fff; }.customer-detail-grid h2 { margin-bottom: 16px; }.customer-detail-grid dl { margin: 22px 0 0; }.customer-detail-grid dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid #edf1ee; }.customer-detail-grid dd { margin: 0; font-weight: 750; }.customer-timeline { display: grid; gap: 0; margin: 18px 0; padding: 0; list-style: none; }.customer-timeline li { position: relative; display: grid; gap: 3px; padding: 0 0 22px 28px; color: #53665a; }.customer-timeline li::before { position: absolute; top: 3px; left: 0; width: 11px; height: 11px; border: 3px solid #54a369; border-radius: 50%; background: #fff; content: ''; }.customer-timeline li::after { position: absolute; top: 16px; bottom: 0; left: 5px; width: 2px; background: #dcebdd; content: ''; }.customer-timeline li:last-child::after { display: none; }.customer-timeline strong { color: #244731; }.customer-timeline span { font-size: 13px; }.customer-address-editor { margin-top: 18px; padding: 18px 22px; border: 1px solid #dce6dd; border-radius: 13px; background: #fff; }.customer-address-editor summary { color: #1c6234; font-weight: 750; cursor: pointer; }.customer-danger { margin-top: 30px; }
@media (max-width: 750px) { .customer-auth { width: min(100% - 30px, 460px); }.customer-auth-card { padding: 24px 18px; }.customer { grid-template-columns: minmax(0,1fr); gap: 22px; width: min(100% - 30px,1200px); }.customer-nav { position: static; gap: 12px; padding: 13px; }.customer-nav nav { display: flex; gap: 5px; overflow-x: auto; }.customer-nav nav a, .customer-nav .link-button { flex: 0 0 auto; min-height: 40px; white-space: nowrap; }.customer-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.customer-stats > div { min-height: 82px; padding: 14px; }.customer-order, .customer-address { display: grid; gap: 18px; padding: 18px; }.customer-order-meta { justify-items: start; min-width: 0; }.customer-detail-grid { grid-template-columns: 1fr; }.customer-address-editor { padding: 16px; }.customer-auth-card .primary-button, .customer-form .primary-button { width: 100%; justify-content: center; } }

/* Mobile-only banner link (link_mobile): covers the art on phones, absent on desktop. */
.has-mobile-link { position: relative; }
.banner-mobile-link { display: none; }
@media (max-width: 749px) { .banner-mobile-link { display: block; position: absolute; inset: 0; } }

/* ---------- touch targets (coarse pointers) ----------
   Every tappable control reaches var(--touch) (44px) without moving the layout:
   inline links grow their hit box with vertical padding (inline padding never shifts
   line boxes); block links pay it back with an equal negative margin; small fixed-size
   buttons get an invisible ::before hit area around the drawn control. */
@media (pointer: coarse) {
  .footer li a { padding-block: 13px; margin-block: -8px; }
  .footer address a,
  .customer-auth p a,
  .cart-row div > a { padding-block: 13px; }
  .cart-row div > a { margin-block: -13px; display: inline-block; }
  .breadcrumbs a { padding: 14px 6px; margin-inline: -6px; }
  .cart-quantity button { position: relative; }
  .cart-quantity button::before { content: ''; position: absolute; inset: -2px; }
  .cart-quantity .remove::before { inset: -2px 0; }
  .quantity button, .buy-row .quantity button { min-width: var(--touch); }
  .quantity input { align-self: stretch; }
}

/* ---------- Pix: generating, pending payment ---------- */
.pix-result { display: grid; gap: var(--space-4); }
.pix-result > * { margin: 0; }
.pix-status { display: inline-flex; align-items: center; gap: var(--space-2); justify-self: start; padding: 6px 12px; border-radius: var(--radius-pill); background: #fff6e0; color: #6b4a00; font-size: 13px; font-weight: 700; }
.pix-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #d99a00; box-shadow: 0 0 0 0 rgba(217, 154, 0, .5); animation: pix-pulse 1.8s var(--ease-out) infinite; }
@keyframes pix-pulse { 70% { box-shadow: 0 0 0 8px rgba(217, 154, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 154, 0, 0); } }
.pix-result[data-state="expired"] .pix-status { background: #fdecea; color: var(--danger); }
.pix-result[data-state="expired"] .pix-status-dot { background: var(--danger); animation: none; }
.pix-result[data-state="paid"] .pix-status { background: #e2f3e7; color: #173e26; }
.pix-result[data-state="paid"] .pix-status-dot { background: #287e43; animation: none; }
.pix-amount { display: grid; gap: 2px; }
.pix-amount span { color: #5c7062; font-size: 13px; }
.pix-amount strong { color: #102a18; font: 800 clamp(30px, 8vw, 38px)/1.05 var(--font-title); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pix-meta { color: #5c7062; font-size: 13px; overflow-wrap: anywhere; }
.pix-meta b { color: #173e26; font-variant-numeric: tabular-nums; }
.pix-copy { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid #dfe9e1; border-radius: var(--radius-md); background: #f6faf7; }
.pix-copy-label { margin: 0; color: #173e26; font-size: 13px; font-weight: 700; }
.pix-code { margin: 0; padding: 10px 12px; border: 1px dashed #b9cdbf; border-radius: var(--radius-sm); background: #fff; color: #31473a; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; user-select: all; }
.pix-code span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.payment-methods[hidden] { display: none; }
.pix-copy-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; min-height: 54px; font-size: 14px; border-radius: var(--radius-md); transition: background-color .2s var(--ease-out), transform .12s var(--ease-out); }
.pix-copy-button:active { transform: scale(.98); }
.pix-copy-button.is-copied { background: #173e26; border-color: #173e26; }
.pix-copy-feedback { margin: 0; color: var(--forest-action); font-size: 13px; font-weight: 600; }
.pix-copy-feedback:empty { display: none; }
.pix-qr-box { border: 1px solid #dfe9e1; border-radius: var(--radius-md); background: #fff; }
.pix-qr-box { padding-top: var(--space-4); text-align: center; }
.pix-qr-box .pix-qr-title { margin: 0 var(--space-4); color: #173e26; font-weight: 700; font-size: 14px; }
.pix-qr-box .pix-qr { display: block; margin: var(--space-2) auto var(--space-3); padding: 10px; border: 1px solid #e3ebe4; border-radius: 12px; background: #fff; width: min(100%, 252px) !important; height: auto !important; }
.pix-qr-box p { margin: 0 var(--space-4) var(--space-4); color: #5c7062; font-size: 13px; text-align: center; }
.pix-steps { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; counter-reset: pix; }
.pix-steps li { display: grid; grid-template-columns: 26px 1fr; gap: var(--space-3); align-items: start; color: #31473a; font-size: 14px; line-height: 1.45; counter-increment: pix; }
.pix-steps li::before { content: counter(pix); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e7f2ea; color: #173e26; font-weight: 800; font-size: 13px; }
.pix-payee { padding: var(--space-4); border-radius: var(--radius-md); background: #f3f6f4; }
.pix-payee > p { margin: 0 0 var(--space-2); color: #173e26; font-size: 13px; font-weight: 700; }
.pix-payee dl { display: grid; gap: var(--space-2); margin: 0; }
.pix-payee dl div { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 13px; }
.pix-payee dt { color: #5c7062; }
.pix-payee dd { margin: 0; color: #102a18; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.pix-note { color: #5c7062; font-size: 13px; line-height: 1.55; }
.pix-note a { color: var(--forest-action); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 750px) {
  .pix-result { max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .pix-status-dot { animation: none; }
}

/* ---------- live search suggestions ---------- */
.search-suggestions { width: min(100%, 900px); margin: var(--space-3) auto 0; }
.search-suggestions[hidden] { display: none; }
.search-suggestions ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; max-height: min(60vh, 460px); overflow-y: auto; overscroll-behavior: contain; }
.search-suggestions li a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-3); align-items: center; min-height: 64px; padding: 4px 6px; border-radius: var(--radius-sm); color: inherit; text-decoration: none; }
.search-suggestions li a:hover, .search-suggestions li a:focus-visible { background: #eef5f0; }
.search-suggestions img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); background: #f5f5f5; }
.search-suggestions strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; }
.search-suggestions small { display: block; margin-top: 2px; color: #5c7062; font-size: 13px; }
.search-suggestions small b { color: var(--forest-action); }
.search-all { display: flex; align-items: center; justify-content: center; min-height: var(--touch); margin-top: var(--space-2); border-top: 1px solid var(--line); color: var(--forest-action); font-weight: 700; font-size: 14px; }
.search-empty { margin: 0; padding: var(--space-4) var(--space-2); color: #5c7062; font-size: 14px; }

/* ---------- Pix: full-screen generating state and payment confirmed ---------- */
.pix-overlay { position: fixed; inset: 0; z-index: calc(var(--z-toast) + 5); display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(120% 90% at 50% 0%, #1f5a35 0%, #133823 55%, #0c2416 100%); color: #fff; animation: pix-overlay-in .32s var(--ease-out) both; }
.pix-overlay-panel { width: min(100%, 420px); display: grid; justify-items: center; gap: 14px; text-align: center; animation: pix-panel-in .42s var(--ease-out) both; }
.pix-overlay-title { margin: 10px 0 0; font: 800 clamp(30px, 8vw, 38px)/1.05 var(--font-title); letter-spacing: -.035em; text-wrap: balance; }
.pix-overlay-lead { margin: 0; max-width: 30ch; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .86); text-wrap: balance; }
.pix-overlay-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 0; }
.pix-overlay-facts span { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .07); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pix-overlay-facts span:first-child { background: #fff; border-color: #fff; color: #133823; font-weight: 800; }
.pix-overlay-hint { margin: 10px 0 0; max-width: 32ch; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .66); }
.pix-orbit { position: relative; display: grid; place-items: center; width: 132px; height: 132px; }
.pix-orbit::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.pix-orbit img { position: relative; width: 46px; height: 46px; animation: pix-breathe 2.4s ease-in-out infinite; }
.pix-orbit-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: pix-spin 1.4s linear infinite; }
.pix-orbit-ring circle { fill: none; stroke: #7ee2a8; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 90 250; }
@keyframes pix-overlay-in { from { opacity: 0; } }
@keyframes pix-panel-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes pix-spin { to { transform: rotate(360deg); } }
@keyframes pix-breathe { 50% { transform: scale(1.07); } }

.pix-overlay.is-paid { background: radial-gradient(110% 80% at 50% 0%, #e9f7ee 0%, #f6fbf7 55%, #fff 100%); color: #102a18; place-items: start center; }
.is-paid .pix-overlay-panel { gap: 16px; padding-top: clamp(8px, 6vh, 56px); }
.is-paid .pix-overlay-lead { color: #3d5646; }
.is-paid .pix-overlay-lead b { color: #102a18; }
.paid-mark { position: relative; width: 104px; height: 104px; }
.paid-mark svg { position: relative; width: 100%; height: 100%; }
.paid-mark circle { fill: #287e43; stroke: #287e43; stroke-width: 4; transform-origin: center; animation: paid-pop .5s var(--ease-out) both; }
.paid-mark path { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; animation: paid-draw .45s .32s var(--ease-out) forwards; }
.paid-mark i { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #7ee2a8; opacity: 0; animation: paid-burst .9s .35s var(--ease-out) both; }
.paid-mark i:nth-child(odd) { background: #287e43; width: 7px; height: 7px; }
.paid-mark i:nth-child(3n) { background: #f2c14e; }
.paid-mark i:nth-child(1) { --x: 0px; --y: -78px; } .paid-mark i:nth-child(2) { --x: 55px; --y: -55px; }
.paid-mark i:nth-child(3) { --x: 78px; --y: 0px; } .paid-mark i:nth-child(4) { --x: 55px; --y: 55px; }
.paid-mark i:nth-child(5) { --x: 0px; --y: 78px; } .paid-mark i:nth-child(6) { --x: -55px; --y: 55px; }
.paid-mark i:nth-child(7) { --x: -78px; --y: 0px; } .paid-mark i:nth-child(8) { --x: -55px; --y: -55px; }
@keyframes paid-pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.06); } }
@keyframes paid-draw { to { stroke-dashoffset: 0; } }
@keyframes paid-burst { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }
.paid-facts { display: grid; gap: 8px; width: 100%; margin: 4px 0 0; padding: 14px 16px; border: 1px solid #dfe9e1; border-radius: var(--radius-md); background: #fff; text-align: left; }
.paid-facts div { display: grid; gap: 2px; font-size: 14px; }
.paid-facts dt { color: #5c7062; font-size: 12px; }
.paid-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.paid-next { display: grid; gap: 12px; width: 100%; margin: 0; padding: 0; list-style: none; counter-reset: paid; text-align: left; }
.paid-next li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; counter-increment: paid; }
.paid-next li::before { content: counter(paid); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e2f2e7; color: #173e26; font-size: 13px; font-weight: 800; }
.paid-next b { font-size: 14px; color: #102a18; }
.paid-next span { font-size: 13px; line-height: 1.45; color: #5c7062; }
.paid-actions { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.paid-actions a { min-height: 52px; border-radius: var(--radius-md); }
@media (min-width: 750px) {
  .pix-overlay.is-paid { place-items: center; }
  .is-paid .pix-overlay-panel { width: min(100%, 460px); padding: 36px 32px; border: 1px solid #e3ebe4; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(16, 42, 24, .12); }
}
@media (prefers-reduced-motion: reduce) {
  .pix-overlay, .pix-overlay-panel, .pix-orbit img, .paid-mark circle { animation: none; }
  .pix-orbit-ring { animation: none; }
  .paid-mark path { animation: none; stroke-dashoffset: 0; }
  .paid-mark i { display: none; }
}

/* ---------- tracking: shared chip, journey, timeline ---------- */
.track-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; white-space: nowrap; background: #e2f3e7; color: #173e26; }
.track-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.track-chip[data-tone="waiting"] { background: #fff4d6; color: #7a5000; }
.track-chip[data-tone="warn"] { background: #fff1d6; color: #8a4b00; }
.track-chip[data-tone="problem"] { background: #fdecea; color: #9b2c24; }
.track-chip[data-tone="done"] { background: #173e26; color: #fff; }

.track-journey { display: grid; grid-template-columns: repeat(5, 1fr); margin: 18px 0 4px; padding: 0; list-style: none; counter-reset: none; }
.track-journey li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.track-journey li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: #dbe6de; z-index: 0; }
.track-journey li:first-child::before { display: none; }
.track-journey li[data-state="done"]::before, .track-journey li[data-state="current"]::before { background: var(--forest-action, #287e43); }
.track-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c9d6cc; background: #fff; color: #8a9a8f; font-size: 12px; font-weight: 800; }
.track-journey li[data-state="done"] .track-dot { background: var(--forest-action, #287e43); border-color: var(--forest-action, #287e43); color: #fff; }
.track-journey li[data-state="current"] .track-dot { border-color: var(--forest-action, #287e43); color: var(--forest-action, #287e43); box-shadow: 0 0 0 5px rgba(40, 126, 67, .14); }
.track-step-label { font-size: 11px; line-height: 1.2; color: #5f7366; }
.track-journey li[data-state="done"] .track-step-label, .track-journey li[data-state="current"] .track-step-label { color: #102a18; font-weight: 700; }
.track-journey.is-halted li[data-state="done"] .track-dot { background: #9b2c24; border-color: #9b2c24; }
.track-journey.is-halted li[data-state="done"]::before { background: #9b2c24; }
.track-journey.is-warn li[data-state="current"] .track-dot { border-color: #b77400; color: #b77400; box-shadow: 0 0 0 5px rgba(183, 116, 0, .14); }

.track-timeline { position: relative; display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; }
.track-timeline li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 0 0 18px; }
.track-timeline li::before { content: ""; position: absolute; left: 10px; top: 16px; bottom: 0; width: 2px; background: #e3ebe4; }
.track-timeline li:last-child::before { display: none; }
.track-node { position: relative; z-index: 1; width: 12px; height: 12px; margin: 4px 0 0 5px; border-radius: 50%; background: #c9d6cc; }
.track-timeline li[data-latest] .track-node { width: 16px; height: 16px; margin: 2px 0 0 3px; background: var(--forest-action, #287e43); box-shadow: 0 0 0 5px rgba(40, 126, 67, .15); }
.track-timeline li[data-problem] .track-node { background: #b77400; }
.track-timeline strong { display: block; color: #102a18; font-size: 14px; }
.track-timeline li:not([data-latest]) strong { font-weight: 600; color: #31473a; }
.track-timeline p { margin: 2px 0 0; color: #31473a; font-size: 14px; line-height: 1.45; }
.track-timeline small { display: block; margin-top: 3px; color: #5f7366; font-size: 12px; }
.track-empty { color: #5f7366; font-size: 14px; }
/* Forecast of the next planned step: dashed and muted so it never reads as a completed event. */
.track-forecast { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin: 12px 0 0; padding: 0 0 18px; }
.track-forecast::before { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0; border-left: 2px dashed #c9d6cc; }
.track-forecast .track-node { width: 14px; height: 14px; margin: 3px 0 0 4px; border: 2px dashed #7fa58b; background: #fff; }
.track-forecast strong { display: block; color: #5f7366; font-size: 14px; font-weight: 600; line-height: 1.45; }
.track-forecast small { display: block; margin-top: 3px; color: #287e43; font-size: 12px; font-weight: 600; }
.track-forecast + .track-timeline, [data-order-forecast]:not(:empty) + .track-timeline { margin-top: 0; }

/* ---------- public /rastreio ---------- */
.shipment-page { max-width: 720px; padding-block: 28px 56px; }
.shipment-hero h1 { margin: 0 0 6px; font: 800 clamp(26px, 6vw, 34px)/1.1 var(--font-title); letter-spacing: -.02em; }
.shipment-hero > p { margin: 0 0 16px; color: #5f7366; }
.shipment-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.shipment-form input { min-height: 52px; padding: 0 16px; border: 1.5px solid #c9d6cc; border-radius: var(--radius-md); font: 700 17px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.shipment-form input:focus { outline: none; border-color: var(--forest-action, #287e43); box-shadow: 0 0 0 4px rgba(40, 126, 67, .15); }
.shipment-form button { min-height: 52px; border-radius: var(--radius-md); padding-inline: 22px; }
.shipment-hint { margin: 10px 0 0; font-size: 13px; color: #5f7366; }
.shipment-hint a, .shipment-help a { color: var(--forest-action, #287e43); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.shipment-card { margin-top: 24px; padding: 22px; border: 1px solid #e3ebe4; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(16, 42, 24, .06); }
.shipment-card h2 { margin: 16px 0 4px; font: 800 24px/1.2 var(--font-title); letter-spacing: -.02em; color: #102a18; }
.shipment-card h3 { margin: 24px 0 4px; font: 800 16px/1.3 var(--font-title); color: #102a18; }
.shipment-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.shipment-top > div { display: grid; gap: 8px; justify-items: start; }
.shipment-code { display: grid; gap: 2px; margin: 0; }
.shipment-code span { font-size: 12px; font-weight: 700; color: #5f7366; }
.shipment-code b { color: #102a18; font: 800 17px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .05em; }
.shipment-copy { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.shipment-lead { margin: 0; color: #31473a; }
.shipment-eta { display: grid; gap: 2px; margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: #f1f8f3; }
.shipment-eta span { font-size: 12px; font-weight: 700; color: #5f7366; }
.shipment-eta strong { font: 800 19px/1.25 var(--font-title); color: #173e26; }
.shipment-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px 20px; margin: 18px 0 0; padding: 14px 0; border-block: 1px solid #e3ebe4; }
.shipment-facts:empty { display: none; }
.shipment-facts div { display: grid; gap: 2px; }
.shipment-facts .is-carrier dd { color: #173e26; font-weight: 800; }
.shipment-facts dt { font-size: 12px; color: #5f7366; }
.shipment-facts dd { margin: 0; font-weight: 700; color: #102a18; }
.shipment-help { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid #e3ebe4; font-size: 14px; color: #31473a; }
.shipment-error { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: #fdecea; color: #9b2c24; font-weight: 600; }
.shipment-card.is-loading { display: grid; gap: 12px; }
.shipment-card.is-loading span { height: 16px; border-radius: 8px; background: linear-gradient(90deg, #eef3ef, #f7faf8, #eef3ef); background-size: 200% 100%; animation: track-shimmer 1.2s linear infinite; }
.shipment-card.is-loading span:first-child { width: 40%; } .shipment-card.is-loading span:nth-child(2) { width: 75%; height: 26px; } .shipment-card.is-loading span:last-child { width: 60%; }
@keyframes track-shimmer { to { background-position: -200% 0; } }

/* ---------- customer: order cards and detail ---------- */
.order-card { display: grid; gap: 4px; margin-bottom: 14px; padding: 18px; border: 1px solid #e3ebe4; border-radius: 16px; background: #fff; }
.order-card header, .order-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-card h2 { margin: 0; font: 800 17px/1.3 var(--font-title); }
.order-card h2 a { color: #102a18; text-decoration: none; }
.order-card header p { margin: 2px 0 0; font-size: 13px; color: #5f7366; }
.order-thumbs { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.order-thumbs li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; font-size: 14px; color: #31473a; }
.order-thumbs img, .order-thumb-empty, .order-lines img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #f4f8f5; border: 1px solid #e3ebe4; }
.order-thumb-empty { display: block; }
.order-more { display: block !important; padding-left: 58px; font-size: 13px; color: #5f7366; }
.order-card footer, .order-detail-actions, .order-track-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.order-card footer > *, .order-detail-actions > *, .order-track-actions > * { flex: 1 1 140px; min-height: 46px; justify-content: center; text-align: center; }
.order-detail-number { margin: 0; font: 800 15px/1.3 var(--font-title); color: #102a18; overflow-wrap: anywhere; }
.order-detail-head p:not(.order-detail-number) { margin: 2px 0 0; font-size: 13px; color: #5f7366; }
.order-status-card { margin-top: 16px; padding: 20px; border-radius: 18px; background: linear-gradient(180deg, #f1f8f3, #fff 70%); border: 1px solid #dcebe0; }
.order-status-card h1 { margin: 0 0 4px; font: 800 clamp(22px, 5.5vw, 28px)/1.15 var(--font-title); letter-spacing: -.02em; color: #102a18; }
.order-status-card > p { margin: 0; color: #31473a; }
.order-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #f0dcaa; }
.order-pay div { display: grid; }
.order-pay strong { font: 800 22px/1.2 var(--font-title); color: #102a18; }
.order-pay span { font-size: 13px; color: #7a5000; }
.order-pay .primary-button { flex: 1 1 180px; min-height: 48px; }
.order-track-card { display: grid; gap: 10px; margin-top: 14px; padding: 16px 18px; border: 1px solid #e3ebe4; border-radius: 16px; background: #fff; }
.order-track-card > div:first-child { display: grid; }
.order-track-card span { font-size: 12px; color: #5f7366; font-weight: 700; }
.order-track-card span b { color: #173e26; font-weight: 800; }
.order-track-card strong { font: 800 19px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .05em; color: #102a18; }
.order-track-actions { margin-top: 0; }
.order-section { margin-top: 22px; }
.order-section h2 { margin: 0 0 10px; font: 800 17px/1.3 var(--font-title); color: #102a18; }
.order-section h2:not(:first-child) { margin-top: 20px; }
.order-section p { margin: 0 0 6px; color: #31473a; line-height: 1.55; }
.order-lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.order-lines li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; }
.order-lines strong { display: block; font-size: 14px; color: #102a18; }
.order-lines span { font-size: 13px; color: #5f7366; }
.order-lines b { font-size: 14px; white-space: nowrap; }
.order-totals { display: grid; gap: 6px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #e3ebe4; }
.order-totals div { display: flex; justify-content: space-between; font-size: 14px; color: #5f7366; }
.order-totals dd { margin: 0; color: #31473a; font-weight: 600; }
.order-totals .is-total { margin-top: 4px; font-size: 16px; color: #102a18; }
.order-totals .is-total dd { font: 800 18px/1.2 var(--font-title); color: #102a18; }
@media (min-width: 750px) {
  .order-detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
  .order-track-card { grid-template-columns: 1fr auto; align-items: center; }
  .track-step-label { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .shipment-card.is-loading span { animation: none; } }

.track-step-label { padding-inline: 1px; overflow-wrap: normal; hyphens: manual; }
@media (max-width: 480px) { .track-step-label { font-size: 10.5px; line-height: 1.25; letter-spacing: -.01em; } .shipment-card { padding: 18px; } }

/* ---------- customer area polish ---------- */
.customer-stats > a { display: grid; gap: 4px; min-height: 100px; padding: 19px; border: 1px solid #dce6dd; border-radius: 13px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.customer-stats > a:hover { border-color: #9cc4a8; box-shadow: 0 6px 18px rgba(16, 42, 24, .06); text-decoration: none; }
.customer-stats > a.is-alert { background: #fff8e6; border-color: #f0d49a; }
.customer-stats > a.is-alert strong { color: #7a5000; }
.order-card footer > *, .order-detail-actions > *, .order-track-actions > * { white-space: nowrap; padding-inline: 14px; }
@media (max-width: 750px) {
  .customer-stats > a { min-height: 82px; padding: 14px; }
  .customer .customer-nav { padding: 0; border: 0; background: none; gap: 0; margin-inline: -15px; }
  .customer .customer-brand { display: none; }
  .customer .customer-nav nav { position: relative; gap: 8px; padding: 2px 15px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .customer .customer-nav nav::-webkit-scrollbar { display: none; }
  .customer .customer-nav nav a, .customer .customer-nav .link-button { scroll-snap-align: start; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid #d6e1d9; border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; }
  .customer .customer-nav nav a[aria-current="page"] { background: #173e26; border-color: #173e26; color: #fff; }
  .customer .customer-nav .link-button { color: #7d231d; }
}

/* ---------- side menu (mobile drawer) ----------
   Header pinned on top, categories + help scroll in the middle, account bar pinned to the bottom. */
@media (max-width: 1100px) {
  .mobile-menu { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
}
.menu-top { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.menu-top-title { font: 800 17px/1 var(--font-title); color: #102a18; letter-spacing: -.01em; }
.menu-top .close-menu { margin: 0; display: grid; place-items: center; }
.menu-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; }
.menu-section-title { margin: 16px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a9a8f; }
.menu-help { display: grid; margin-top: 12px; }
.mobile-menu .menu-help a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0; color: #1d3326; font-weight: 600; font-size: 14px; text-decoration: none; }
.mobile-menu .menu-help a svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--forest-action, #287e43); }
.mobile-menu .menu-help .menu-help-whatsapp { color: var(--forest-action, #287e43); }

/* account bar */
.menu-account { flex: none; border-top: 1px solid #dce6dd; background: #f4f9f5; box-shadow: 0 -10px 24px rgba(16, 42, 24, .07); padding-bottom: env(safe-area-inset-bottom); }
.menu-account-panel > summary { list-style: none; }
.menu-account-panel > summary::-webkit-details-marker { display: none; }
.menu-account-head { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 16px 12px 20px; cursor: pointer; color: #102a18; }
.menu-account-head > svg { flex: none; width: 20px; height: 20px; color: #5f7366; transform: rotate(180deg); transition: transform .2s ease; }
.menu-account-panel[open] .menu-account-head > svg { transform: none; }
.menu-avatar { position: relative; flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #173e26; color: #fff; font: 800 17px/1 var(--font-title); }
.menu-dot { position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; border-radius: 50%; background: #e8a317; border: 2px solid #f4f9f5; }
.menu-account-id { display: grid; flex: 1; min-width: 0; }
.menu-account-id strong { font: 700 15px/1.25 var(--font-title); }
.menu-account-id small { font-size: 12.5px; color: #5f7366; }
.menu-account-body { display: grid; gap: 10px; max-height: min(56vh, 460px); overflow-y: auto; padding: 0 16px 14px; }
.mobile-menu .menu-account-alert { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 10px 12px; border-radius: 12px; background: #fff4d6; border: 1px solid #f0d49a; color: #5c3d00; text-decoration: none; }
.menu-account-alert span { display: grid; gap: 1px; font-size: 13px; line-height: 1.3; }
.menu-account-alert small { color: #7a5000; font-size: 11.5px; }
.menu-account-alert b { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 13px; color: #7a5000; }
.menu-account-alert b svg { width: 16px; height: 16px; }
.menu-account-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mobile-menu .menu-account-links a { position: relative; display: grid; align-content: center; gap: 6px; min-height: 76px; padding: 12px; border: 1px solid #dce6dd; border-radius: 12px; background: #fff; color: #1d3326; font-weight: 600; font-size: 13.5px; line-height: 1.2; text-decoration: none; }
.menu-account-links a svg { width: 20px; height: 20px; color: var(--forest-action, #287e43); }
.mobile-menu .menu-account-links a[aria-current="page"] { border-color: #173e26; box-shadow: inset 0 0 0 1px #173e26; color: #173e26; }
.menu-badge { position: absolute; top: 10px; right: 10px; min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: #173e26; color: #fff; font: 700 12px/1 var(--font-body); font-style: normal; }
.menu-signout { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: #9b2c24; font-weight: 700; font-size: 13.5px; text-align: left; }
.menu-signout svg { width: 18px; height: 18px; }
.menu-signout small { margin-left: auto; font-weight: 400; font-size: 12px; color: #8a9a8f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.menu-signout:disabled { opacity: .6; }
.menu-account.is-guest { display: grid; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
.menu-account-lead { margin: 0; font-size: 13px; line-height: 1.4; color: #4f6356; }
.menu-account-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-menu .menu-account-cta a { display: inline-flex; min-height: 46px; padding: 10px 12px; font-size: 14px; text-transform: none; letter-spacing: 0; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .menu-account-head > svg { transition: none; } }
.mobile-menu details.menu-account-panel { border: 0; padding: 0; }


/* ---------- checkout: stepper, steps, Pix screen, confirmation (2026-09-26) ---------- */
.checkout-actions[hidden] { display: none !important; }
.checkout-step > fieldset:first-of-type > legend, .payment-methods > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.checkout-intro[hidden] { display: none; }
.field-hint { margin: 2px 0 0; color: #5c7062; font-size: 12.5px; line-height: 1.45; }

/* Connected stepper: mark + name per step, a rail that fills as steps complete. */
.checkout-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 18px; padding: 0; list-style: none; }
.checkout-steps li { position: relative; display: grid; justify-items: center; gap: 8px; padding: 0 4px; color: #5f7366; font: 600 12.5px/1.2 var(--font-body); text-align: center; }
.checkout-steps li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; border-radius: 2px; background: #dbe5dd; transition: background .3s ease; }
.checkout-steps li:first-child::before { display: none; }
.checkout-steps li[data-state="done"]::before, .checkout-steps li[data-state="current"]::before { background: var(--forest-action); }
.step-mark { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid #cfdcd3; border-radius: 50%; background: #fff; color: #6b7d71; transition: background .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease; }
.step-mark b { font: 700 13.5px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.step-mark svg { display: none; }
.checkout-steps li[data-state="done"] { color: #1d4a2c; }
.checkout-steps li[data-state="done"] .step-mark { border-color: var(--forest-action); background: var(--forest-action); color: #fff; }
.checkout-steps li[data-state="done"] .step-mark b { display: none; }
.checkout-steps li[data-state="done"] .step-mark svg { display: block; }
.checkout-steps li[data-state="current"] { color: #102a18; font-weight: 700; }
.checkout-steps li[data-state="current"] .step-mark { border-color: var(--forest-action); color: var(--forest-action); box-shadow: 0 0 0 4px rgba(40, 126, 67, .14); }
@media (min-width: 900px) { .checkout-steps li { font-size: 13.5px; } }

.checkout-step.is-entering { animation: checkout-step-in .34s cubic-bezier(.22, 1, .36, 1); }
@keyframes checkout-step-in { from { opacity: 0; transform: translateY(8px); } }

/* Pix screen */
.pix-stage { display: grid; gap: 4px; }
.pix-stage .pix-result { max-width: none; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: 0 8px 24px rgba(16, 42, 24, .05); }
.pix-head h2 { margin: 0; color: #102a18; font: 800 clamp(22px, 5.4vw, 27px)/1.15 var(--font-title); letter-spacing: -.02em; text-wrap: balance; outline: none; }
.pix-head p { margin: 6px 0 0; max-width: 52ch; color: #4f6356; font-size: 14.5px; line-height: 1.5; }
.pix-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 0; padding: 16px; border-radius: 12px; background: #f4f8f5; }
.pix-facts > div { display: grid; gap: 3px; min-width: 0; }
.pix-facts dt { color: #5c7062; font-size: 12px; }
.pix-facts dd { margin: 0; color: #102a18; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pix-facts .pix-facts-amount { grid-column: 1 / -1; }
.pix-facts .pix-facts-amount dd { font: 800 clamp(28px, 7.5vw, 34px)/1.05 var(--font-title); letter-spacing: -.025em; }
.pix-facts .pix-order { font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
.pix-facts .pix-status { padding: 3px 10px; font-size: 12.5px; }
.pix-left { color: #5c7062; font-weight: 600; white-space: nowrap; }
.pix-left b { color: #173e26; }
.pix-howto h3 { margin: 0 0 10px; color: #102a18; font: 700 15px/1.3 var(--font-title); }
.pix-watch { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #eef6f0; color: #1f5a33; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.pix-watch-dot { flex: none; width: 16px; height: 16px; border: 2px solid rgba(40, 126, 67, .22); border-top-color: var(--forest-action); border-radius: 50%; animation: pix-spin 1s linear infinite; }
.pix-watch[data-tone="warn"] { background: #fff4d6; color: #6b4600; }
.pix-watch[data-tone="warn"] .pix-watch-dot { border-color: rgba(122, 80, 0, .22); border-top-color: #b07300; }
@media (min-width: 900px) {
  .pix-stage .pix-result { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 24px; }
  .pix-stage .pix-result > .pix-head, .pix-stage .pix-result > .pix-facts, .pix-stage .pix-result > .pix-watch, .pix-stage .pix-result > .pix-note, .pix-stage .pix-result > .pix-payee, .pix-stage .pix-result > .pix-howto, .pix-stage .pix-result > button { grid-column: 1 / -1; }
  .pix-stage .pix-result > .pix-qr-box { grid-column: 1; align-self: stretch; }
  .pix-stage .pix-result > .pix-copy { grid-column: 2; align-self: stretch; align-content: center; }
  .pix-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Payment confirmation, rendered as a page in place of the checkout */
.checkout.is-paid { display: block; max-width: 720px; margin-inline: auto; padding-block: clamp(24px, 5vw, 48px) 64px; }
.paid-page { display: grid; gap: 16px; }
.paid-hero { display: grid; justify-items: center; gap: 10px; padding: 4px 0 8px; text-align: center; }
.paid-hero .paid-mark { width: 84px; height: 84px; }
.paid-hero h1 { margin: 0; color: #102a18; font: 800 clamp(28px, 7vw, 38px)/1.08 var(--font-title); letter-spacing: -.03em; outline: none; text-wrap: balance; }
.paid-hero p { margin: 0; max-width: 46ch; color: #4f6356; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.paid-hero p b { color: #102a18; overflow-wrap: anywhere; }
.paid-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.paid-facts > div { display: grid; gap: 3px; min-width: 0; }
.paid-facts dt { color: #5c7062; font-size: 12px; }
.paid-facts dd { margin: 0; color: #102a18; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.paid-facts .paid-number { font-size: 12.5px; letter-spacing: .01em; }
.paid-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #e2f3e7; color: #173e26; font-size: 12.5px; font-weight: 700; }
.paid-section { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.paid-section h2 { margin: 0; color: #102a18; font: 800 17px/1.25 var(--font-title); }
.paid-section .track-journey { margin: 4px 0 0; }
.paid-hint { margin: 0; color: #5c7062; font-size: 13.5px; line-height: 1.5; }
.paid-lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.paid-lines li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; font-size: 14px; }
.paid-lines li > span { display: grid; gap: 2px; min-width: 0; }
.paid-lines b { color: #102a18; font-weight: 600; }
.paid-lines small { color: #5c7062; font-size: 12.5px; }
.paid-lines strong { color: #102a18; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paid-totals { display: grid; gap: 7px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.paid-totals div { display: flex; justify-content: space-between; gap: 12px; color: #4f6356; font-size: 14px; }
.paid-totals dd { margin: 0; color: #31473a; font-variant-numeric: tabular-nums; }
.paid-totals .is-total { padding-top: 6px; color: #102a18; font-size: 16px; font-weight: 800; }
.paid-totals .is-total dd { color: #102a18; }
.paid-address { margin: 0; color: #31473a; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.paid-address b { color: #102a18; }
.paid-actions { display: grid; gap: 10px; margin-top: 4px; }
.paid-actions .primary-button, .paid-actions .secondary-button { justify-content: center; min-height: 50px; }
.paid-continue { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; color: var(--forest-action); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) {
  .paid-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .paid-actions { grid-template-columns: 1fr 1fr; }
  .paid-continue { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-step.is-entering { animation: none; }
  .pix-watch-dot { animation: none; }
  .checkout-steps li::before, .step-mark { transition: none; }
}
.checkout form[hidden], .pix-stage[hidden] { display: none; }


/* ---------- checkout refinements (2026-09-26, round 2) ---------- */
/* "Escolha a entrega": a real sub-heading inside its box, clear of the city field above. */
.checkout .shipping-methods { margin-top: 14px; }
.checkout .shipping-methods > legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; color: #102a18; font: 700 16px/1.3 var(--font-title); letter-spacing: 0; text-transform: none; }
.checkout .shipping-methods > legend + * { clear: both; }

/* "Confira antes de pagar": label above value, so long merchant names wrap between words. */
.pix-payee dl { gap: 12px; }
.pix-payee dl div { display: grid; gap: 2px; }
.pix-payee dt { font-size: 12px; }
.pix-payee dd { text-align: left; overflow-wrap: break-word; word-break: normal; text-wrap: pretty; line-height: 1.35; }

/* Order summary with product photos (checkout aside and confirmation page). */
.checkout-summary .summary-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; }
.summary-thumb { position: relative; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.summary-thumb img { display: block; width: 100%; height: 100%; border-radius: 9px; object-fit: cover; }
.summary-thumb b { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: #173e26; color: #fff; font: 700 11px/1 var(--font-body); }
.summary-item { display: grid; gap: 2px; min-width: 0; color: #102a18; font-size: 13.5px; }
.summary-item > span { font-weight: 600; line-height: 1.35; }
.summary-item small { color: #5c7062; font-size: 12px; }
.checkout-summary .summary-lines strong { font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paid-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; }
.paid-lines li:not(:has(.paid-thumb)) { grid-template-columns: minmax(0, 1fr) auto; }
.paid-thumb { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; background: #fff; }

/* Generating the Pix: white and calm, no preview of the Pix card (it appears only once its QR code is drawn). */
.pix-overlay.is-loading { background: #fff; color: #102a18; animation: none; } /* opaque from the first frame: the form underneath never shows through */
.pix-loading { display: grid; justify-items: center; gap: 12px; width: min(100%, 380px); text-align: center; animation: pix-panel-in .42s var(--ease-out) both; }
.pix-loading-mark { position: relative; display: grid; place-items: center; width: 72px; height: 72px; }
.pix-loading-mark::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #f1f8f3; }
.pix-loading-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: pix-spin 1.1s linear infinite; }
.pix-loading-mark circle { fill: none; stroke: var(--forest-action); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 58 200; }
.pix-loading-mark img { position: relative; }
.pix-overlay.is-loading .pix-overlay-title { margin: 6px 0 0; color: #102a18; font-size: clamp(26px, 7vw, 32px); }
.pix-overlay.is-loading .pix-overlay-lead { color: #4f6356; font-size: 15.5px; }
.pix-overlay.is-loading .pix-overlay-hint { margin: 2px 0 0; color: #5c7062; }
.pix-loading-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 4px 0 0; padding: 12px 18px; border-radius: 12px; background: #f4f8f5; }
.pix-loading-facts div { display: grid; gap: 2px; }
.pix-loading-facts dt { color: #5c7062; font-size: 11.5px; }
.pix-loading-facts dd { margin: 0; color: #102a18; font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pix-loading-bar { position: relative; display: block; width: min(100%, 220px); height: 4px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: #e3ede6; }
.pix-loading-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: var(--forest-action); animation: pix-bar 1.25s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes pix-bar { from { translate: -100% 0; } to { translate: 250% 0; } }

/* The card result replaces the loading content in place, so the state change feels continuous. */
.pix-overlay.is-card-unavailable { background: #fff; color: #102a18; animation: none; }
.card-unavailable-panel { display: grid; justify-items: center; gap: 14px; width: min(100%, 420px); text-align: center; animation: card-unavailable-enter .44s cubic-bezier(.16, 1, .3, 1) both; }
.card-unavailable-mark { position: relative; display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 4px; }
.card-unavailable-mark::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff1ef; box-shadow: 0 10px 28px rgba(143, 47, 39, .12); animation: card-unavailable-pulse .48s cubic-bezier(.16, 1, .3, 1) both; }
.card-unavailable-mark img { position: absolute; width: 34px; height: 34px; opacity: .2; filter: grayscale(1); }
.card-unavailable-mark svg { position: relative; width: 88px; height: 88px; fill: none; stroke: #a63c32; stroke-linecap: round; stroke-linejoin: round; }
.card-unavailable-mark circle { stroke-width: 1.5; stroke-dasharray: 88; animation: card-unavailable-ring .46s cubic-bezier(.16, 1, .3, 1) both; }
.card-unavailable-mark path { stroke-width: 2.4; stroke-dasharray: 26; animation: card-unavailable-cross .3s .18s cubic-bezier(.16, 1, .3, 1) both; }
.is-card-unavailable .pix-overlay-title { margin: 0; color: #102a18; font-size: clamp(28px, 7vw, 34px); }
.is-card-unavailable .pix-overlay-lead { max-width: 34ch; color: #4f6356; font-size: 16px; }
.card-unavailable-assurance { margin: 2px 0 10px; max-width: 38ch; color: #4f6356; font-size: 14px; line-height: 1.55; text-wrap: balance; }
.card-unavailable-assurance strong { color: #7f2d26; }
.is-card-unavailable .primary-button { min-width: min(100%, 260px); border-radius: 9px; text-transform: none; font-size: 14px; letter-spacing: 0; }
@keyframes card-unavailable-enter { from { opacity: .35; scale: .97; filter: blur(5px); } }
@keyframes card-unavailable-pulse { from { opacity: .2; scale: .7; } }
@keyframes card-unavailable-ring { from { stroke-dashoffset: 88; rotate: -55deg; } }
@keyframes card-unavailable-cross { from { stroke-dashoffset: 26; } }

@media (prefers-reduced-motion: reduce) {
  .card-unavailable-panel, .card-unavailable-mark::before, .card-unavailable-mark circle, .card-unavailable-mark path { animation-duration: .01ms; animation-delay: 0s; }
}

/* 3D card: ISO proportions, Good Vibes forest metal with a fine guilloche, drawn chip, embossed
   digits, brand at the bottom right, pointer-driven tilt with a moving specular glare. */
.credit-card-scene { width: min(100%, 380px); margin-inline: auto; perspective: 1100px; }
.credit-card-preview { min-height: 0; aspect-ratio: 1.586; transform: rotateX(calc(var(--tilt-x) + var(--py, 0deg))) rotateY(calc(var(--turn) + var(--tilt-y) + var(--px, 0deg))); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.credit-card-preview.is-tracking { transition-duration: .18s; }
.card-payment:not([hidden]) .credit-card-preview { animation: card-arrive .9s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes card-arrive { from { opacity: 0; transform: translateY(14px) rotateX(16deg) rotateY(-22deg); } }
.credit-card-face { padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: radial-gradient(120% 90% at 100% 0%, rgba(126, 226, 168, .22), transparent 55%), repeating-radial-gradient(circle at 115% -20%, rgba(255, 255, 255, .05) 0 1px, transparent 1px 9px), linear-gradient(140deg, #0e2a19 0%, #1c5a34 52%, #0f2e1c 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 28px 44px -18px rgba(9, 34, 19, .55), 0 10px 18px -10px rgba(0, 0, 0, .35); }
.credit-card-back { background: repeating-radial-gradient(circle at -15% 120%, rgba(255, 255, 255, .04) 0 1px, transparent 1px 9px), linear-gradient(140deg, #0f2e1c 0%, #1a4f2f 55%, #0d2617 100%); }
.credit-card-preview[data-brand="visa"] .credit-card-face { background: radial-gradient(120% 90% at 100% 0%, rgba(120, 170, 255, .25), transparent 55%), repeating-radial-gradient(circle at 115% -20%, rgba(255, 255, 255, .05) 0 1px, transparent 1px 9px), linear-gradient(140deg, #0b1a3d 0%, #1d4592 52%, #0c1a38 100%); }
.credit-card-preview[data-brand="mastercard"] .credit-card-face { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 160, 80, .2), transparent 55%), repeating-radial-gradient(circle at 115% -20%, rgba(255, 255, 255, .05) 0 1px, transparent 1px 9px), linear-gradient(140deg, #16161c 0%, #34313b 52%, #141318 100%); }
.credit-card-preview[data-brand="american-express"] .credit-card-face { background: radial-gradient(120% 90% at 100% 0%, rgba(140, 220, 255, .25), transparent 55%), repeating-radial-gradient(circle at 115% -20%, rgba(255, 255, 255, .05) 0 1px, transparent 1px 9px), linear-gradient(140deg, #0c3244 0%, #1b7197 52%, #0b2c3d 100%); }
.credit-card-preview[data-brand="elo"] .credit-card-face { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 210, 90, .18), transparent 55%), repeating-radial-gradient(circle at 115% -20%, rgba(255, 255, 255, .05) 0 1px, transparent 1px 9px), linear-gradient(140deg, #1d1a24 0%, #3b3446 52%, #18151f 100%); }
.credit-card-face::after { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .09) 46%, transparent 60%); }
.card-glare { position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: radial-gradient(circle at var(--gx, 26%) var(--gy, 16%), rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 44%); mix-blend-mode: soft-light; pointer-events: none; }
.credit-card-top { font-size: 12px; }
.card-issuer { font: 800 15px/1 var(--font-title); letter-spacing: -.01em; opacity: .95; }
.card-chip { position: relative; width: 46px; height: 35px; margin-top: 4px; overflow: hidden; border: 1px solid rgba(90, 64, 20, .55); border-radius: 8px; background: linear-gradient(135deg, #f3dc93 0%, #c9a64f 45%, #e8cf82 70%, #a8832f 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.card-chip::before { content: ""; position: absolute; inset: 8px 0; border-block: 1px solid rgba(90, 64, 20, .45); }
.card-chip::after { content: ""; position: absolute; inset: 0 15px; border-inline: 1px solid rgba(90, 64, 20, .45); }
.card-chip i { position: absolute; top: 50%; left: 50%; width: 14px; height: 12px; border: 1px solid rgba(90, 64, 20, .5); border-radius: 3px; background: linear-gradient(135deg, #f0d88c, #caa651); transform: translate(-50%, -50%); }
.credit-card-face > strong { margin-top: 6px; font: 600 clamp(18px, 5.2vw, 23px)/1 var(--font-body); letter-spacing: .12em; text-shadow: 0 1px 0 rgba(0, 0, 0, .45), 0 -1px 0 rgba(255, 255, 255, .16); white-space: nowrap; }
.credit-card-bottom { align-items: flex-end; gap: 14px; margin-top: 0; }
.credit-card-bottom > span:first-child { flex: 1; }
.credit-card-bottom b { text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.credit-card-bottom .card-brand-mark { flex: none; margin-left: auto; min-height: 28px; font: italic 900 17px/1 var(--font-body); letter-spacing: .02em; }
.credit-card-preview[data-brand="visa"] .card-brand-mark { font-size: 22px; letter-spacing: -.01em; }
.credit-card-preview[data-brand="mastercard"] .card-brand-mark { position: relative; width: 46px; height: 28px; font-size: 0; }
.credit-card-preview[data-brand="mastercard"] .card-brand-mark::before, .credit-card-preview[data-brand="mastercard"] .card-brand-mark::after { content: ""; position: absolute; top: 0; width: 28px; height: 28px; border-radius: 50%; }
.credit-card-preview[data-brand="mastercard"] .card-brand-mark::before { left: 0; background: #eb001b; }
.credit-card-preview[data-brand="mastercard"] .card-brand-mark::after { right: 0; background: #f79e1b; mix-blend-mode: hard-light; opacity: .92; }
.card-cvv-panel { background: repeating-linear-gradient(-45deg, #f4f1ea 0 6px, #e8e3d6 6px 12px); }
@media (prefers-reduced-motion: reduce) {
  .pix-loading-mark svg, .pix-loading-bar::after { animation: none; }
  .pix-loading-bar::after { width: 100%; opacity: .35; }
  .card-payment:not([hidden]) .credit-card-preview { animation: none; }
}
.paid-actions .primary-button, .paid-actions .secondary-button { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700; }


/* ---------- payment confirmed: one receipt instead of stacked cards (2026-09-26, round 3) ---------- */
.checkout.is-paid { max-width: 680px; }
.paid-page { gap: 18px; }
.paid-hero { position: relative; gap: 12px; padding: 8px 0 10px; }
.paid-hero::before { content: ""; position: absolute; z-index: -1; top: -24px; left: 50%; width: min(520px, 100%); height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 126, 67, .12), rgba(40, 126, 67, 0)); transform: translateX(-50%); pointer-events: none; }
.paid-hero p { font-size: 15.5px; }

.paid-receipt { position: relative; border: 1px solid #dfe8e1; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(16, 42, 24, .04), 0 22px 44px -26px rgba(16, 42, 24, .28); }
.paid-receipt-head { position: relative; display: grid; justify-items: center; gap: 10px; padding: 24px 20px 22px; border-bottom: 1.5px dashed #cfdcd3; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, #f4faf6 0%, #fff 100%); text-align: center; }
/* ticket notches where the perforation meets the edges */
.paid-receipt-head::before, .paid-receipt-head::after { content: ""; position: absolute; bottom: -12px; width: 22px; height: 22px; border: 1px solid #dfe8e1; border-radius: 50%; background: #fff; }
.paid-receipt-head::before { left: -12px; clip-path: inset(0 0 0 50%); }
.paid-receipt-head::after { right: -12px; clip-path: inset(0 50% 0 0); }
.paid-total { display: grid; gap: 2px; margin: 0; }
.paid-total span { color: #5c7062; font-size: 13px; }
.paid-total strong { color: #102a18; font: 800 clamp(34px, 9vw, 42px)/1 var(--font-title); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.paid-receipt-head .paid-chip { gap: 6px; padding: 5px 12px; background: #e2f3e7; color: #1c5a34; font-size: 13px; }
.paid-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; width: 100%; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid #e6eee8; text-align: left; }
.paid-meta:has(> div:only-child) { grid-template-columns: 1fr; text-align: center; }
.paid-meta div { display: grid; gap: 3px; min-width: 0; }
.paid-meta dt { color: #5c7062; font-size: 12px; }
.paid-meta dd { margin: 0; color: #102a18; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.paid-meta .paid-number { font-size: 13px; letter-spacing: .01em; }

.paid-block { display: grid; gap: 12px; padding: 22px 20px; }
.paid-block + .paid-block { border-top: 1px solid #e6eee8; }
.paid-block h2 { margin: 0; color: #102a18; font: 800 16.5px/1.25 var(--font-title); }
.paid-block .track-journey { margin: 2px 0 0; }
.paid-lines li { gap: 14px; }
.paid-lines b { line-height: 1.35; }
.paid-totals .is-discount dt, .paid-totals .is-discount dd { color: var(--forest-action); }
.paid-totals .is-total { margin-top: 2px; padding-top: 10px; border-top: 1px solid #e6eee8; font-size: 17px; }
.paid-ship-method { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; padding: 10px 12px; border-radius: 10px; background: #f4f8f5; color: #1c5a34; font-size: 13.5px; font-weight: 700; }
.paid-ship-method small { color: #5c7062; font-size: 12.5px; font-weight: 600; }

.paid-actions { margin-top: 2px; }
.paid-help { margin: 0; color: #5c7062; font-size: 13.5px; text-align: center; }
.paid-help a { color: var(--forest-action); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 640px) {
  .paid-receipt-head { padding: 30px 32px 26px; }
  .paid-block { padding: 24px 32px; }
  .paid-meta { max-width: 460px; }
}

/* One authored moment: the receipt settles in right after the check mark draws. */
.paid-receipt { animation: paid-receipt-in .6s .25s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes paid-receipt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .paid-receipt { animation: none; } }

.pix-payee dd { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.checkout.is-paid { overflow-x: clip; }

/* Small screens: form fields at 16px so iOS never zooms on focus; narrow-phone fits (320px). */
@media (max-width: 767px) { .newsletter input, .footer input, .buy-row .quantity input, .buy-qty .quantity input, .collection-toolbar select { font-size: 16px; } }
.shipment-form input { min-width: 0; }
@media (max-width: 380px) {
  .shipment-form { grid-template-columns: 1fr; }
  .cart-quantity { gap: 8px; }
  .cart-quantity .remove { margin-left: 0; }
}

/* Async pages (router LIVE_PAGE): keep the footer below the fold until their data renders. */
#main[data-live] { min-height: 100vh; min-height: 100svh; }

/* Turnstile bot check (src/lib/turnstile.js): interaction-only, takes no space until Cloudflare asks. */
.captcha-box { display: flex; justify-content: center; max-width: 100%; }
.captcha-box:not(:empty) { margin-top: 12px; }

/* Add to cart: the product photo lifts off the gallery, flies to the bag, and the bag acknowledges it. */
.fly-thumb { position: fixed; z-index: calc(var(--z-toast) + 10); left: 0; top: 0; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 14px 28px rgba(14, 7, 7, .24), 0 2px 6px rgba(14, 7, 7, .12); pointer-events: none; will-change: transform, opacity; }
.fly-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-bump svg { transform-origin: 50% 70%; animation: cart-bump .56s var(--ease-out); }
.cart-badge.is-ticking { animation: badge-tick .5s var(--ease-out); }
@keyframes cart-bump { 0% { scale: 1; rotate: 0deg; } 28% { scale: 1.24; rotate: -8deg; } 58% { scale: .94; rotate: 4deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes badge-tick { 0% { scale: .4; opacity: .25; } 55% { scale: 1.35; opacity: 1; } 100% { scale: 1; } }
@keyframes badge-flash { 0% { box-shadow: 0 0 0 0 rgba(40, 126, 67, .55); } 100% { box-shadow: 0 0 0 10px rgba(40, 126, 67, 0); } }
@media (prefers-reduced-motion: reduce) {
  .cart-bump svg { animation: none; }
  .cart-badge.is-ticking { animation: badge-flash .7s ease-out; }
}

/* Product page quantity: its own labelled row, large touch targets, live subtotal for 2+ units. */
.buy-qty { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); }
.buy-qty-label { font-size: 14px; font-weight: 700; color: var(--ink, #0e0707); }
.buy-qty .quantity { flex: 0 0 auto; margin: 0; }
.buy-qty .quantity button { min-width: 48px; min-height: 48px; font-size: 22px; line-height: 1; }
.buy-qty .quantity button:disabled { opacity: .35; cursor: not-allowed; }
.buy-qty .quantity input { width: 56px; min-width: 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.buy-subtotal { margin: var(--space-2) 0 0; font-size: 14px; color: var(--muted, #536258); text-align: right; }
.buy-subtotal strong { color: var(--ink, #0e0707); font-size: 15px; font-variant-numeric: tabular-nums; }
.buy-form .buy-row { margin-top: var(--space-3); }

/* Fixes from the mobile audit (320-768 px). */
.buy-qty .quantity { width: max-content; }
.buy-qty .quantity input { flex: 0 0 56px; align-self: stretch; min-height: 48px; }
/* Sign-in / sign-up: a field never wider than its card (320 px phones scrolled sideways). */
.customer-auth .field, .customer-auth .password-field { min-width: 0; max-width: 100%; }
.customer-auth .field input { width: 100%; min-width: 0; }
.customer-auth .password-field input { flex: 1 1 auto; }
/* Touch screens (iPad included) zoom into any field under 16px when it gets focus. */
@media (pointer: coarse) { .newsletter input, .footer input, .collection-toolbar select, .field input, .field select, .field textarea { font-size: 16px; } }
/* The sign-in / sign-up grid had one `auto` column that grew to the field's intrinsic 300px; it must fit the card. */
.customer-auth form { grid-template-columns: minmax(0, 1fr); }

/* Account access screens (sign-in, sign-up, recovery): clear next steps, 44px+ touch targets, fits 320-768px. */
.customer-auth-card [hidden] { display: none !important; }
.customer-auth-card .primary-button, .customer-auth-card .secondary-button { min-height: 52px; }
.auth-lead { margin: 0; color: #415747; font-size: 15px; line-height: 1.5; }
.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; }
.auth-link { display: inline-flex; align-items: center; min-height: 44px; color: #1d6235; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-link:hover { color: #14421f; }
.auth-first { display: grid; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #e3ebe4; }
.auth-first h2 { margin: 0; color: #173e26; font: 800 16px/1.3 var(--font-body); }
.auth-first p { margin: 0; color: #415747; font-size: 14px; line-height: 1.5; }
.auth-first .secondary-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; text-align: center; text-decoration: none; }
.auth-first.is-attention .secondary-button { border-color: var(--forest-action, #287e43); animation: auth-ring 1.2s var(--ease-out) 2; }
@keyframes auth-ring { 0% { box-shadow: 0 0 0 0 rgba(40, 126, 67, .45); } 100% { box-shadow: 0 0 0 12px rgba(40, 126, 67, 0); } }
.auth-create { margin: 14px 0 0; color: #415747; font-size: 14px; text-align: center; }
.auth-create .auth-link { min-height: 44px; }
.auth-sent { display: grid; gap: 12px; margin-top: 22px; }
.auth-sent h2 { margin: 0; color: #173e26; font: 800 22px/1.2 var(--font-body); letter-spacing: -.03em; }
.auth-sent h2:focus { outline: none; }
.auth-sent p { margin: 0; color: #415747; line-height: 1.5; }
.auth-sent strong { color: #173e26; overflow-wrap: anywhere; }
.auth-sent-tip { font-size: 14px; }
.auth-sent .primary-button, .auth-sent .secondary-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; text-align: center; text-decoration: none; }
.auth-sent .secondary-button:disabled { opacity: .6; cursor: not-allowed; }
.auth-sent .auth-link { justify-self: center; border: 0; background: none; cursor: pointer; }
.auth-expired { display: grid; gap: 14px; margin-top: 22px; }
.auth-expired .primary-button { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
@media (max-width: 380px) {
  .customer-auth-card { padding: 22px 16px; }
  .customer-auth-card h1 { font-size: 28px; }
}
/* The Cloudflare check is a fixed 300px wide: scale it down inside a narrow card instead of overflowing it. */
@media (max-width: 359px) { .customer-auth .captcha-box { zoom: .82; } }
@media (prefers-reduced-motion: reduce) { .auth-first.is-attention .secondary-button { animation: none; box-shadow: 0 0 0 4px rgba(40, 126, 67, .35); } }
.auth-sent .primary-button, .auth-expired .primary-button { border-color: var(--forest-action, #287e43); background: var(--forest-action, #287e43); color: #fff; }
.auth-sent h1:focus, .customer-auth-card h1:focus { outline: none; }
/* Touch screens have no hover: the second card photo is never shown, so it must not be downloaded (lazy images that are display:none are not fetched). */
@media (hover: none) { .product-image .hover-image { display: none; } }

/* Product page refinements. Loaded after ui.css; only adds what the shared styles do not cover. */

.product-details h1 { text-wrap: balance; }

/* Option chips that carry the variant's own photo (cor, acabamento). */
.variant-option.has-thumb span { display: inline-flex; align-items: center; gap: var(--space-2); padding: 4px var(--space-4) 4px 4px; }
.variant-thumb { flex: none; width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: cover; background: #fff; }
.variant-option.has-thumb input:checked + span { box-shadow: 0 1px 0 rgba(20, 53, 32, .06), 0 4px 10px -6px rgba(20, 53, 32, .35); }
.variant-option.has-thumb.is-unavailable .variant-thumb { opacity: .45; filter: grayscale(1); }
.thumbnails button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Description: more air above a heading than below it, and spec tables that read as a sheet. */
/* Headings inside the description are demoted at build time (h2 becomes h3, h3 becomes h4). */
.product-description h3, .product-description h4 { margin: var(--space-6) 0 var(--space-2); letter-spacing: -.01em; }
.product-description h4 { font-size: 17px; }
.product-description h3 + p, .product-description h4 + p, .product-description h4 + ul, .product-description h4 + table { margin-top: 0; }
.product-description table { font-variant-numeric: tabular-nums; font-size: 15px; }
.product-description th { width: 38%; background: var(--cream); color: var(--forest-dark); font-weight: 600; vertical-align: top; }
.product-description td { vertical-align: top; }

/* Store-owned products: consecutive photos sit two per row instead of one very tall column.
   Instruction diagrams (they carry small text) keep the full width. */
.product-description.is-own img { display: inline-block; width: calc(50% - 6px); margin: 0 12px 12px 0; vertical-align: top; }
.product-description.is-own img:nth-of-type(even) { margin-right: 0; }
.product-description.is-own img[alt^="Guia"], .product-description.is-own img[alt^="Porta de carregamento"] { display: block; width: min(100%, 800px); margin: 12px auto; }
.product-description.is-own img:last-of-type:nth-of-type(odd) { margin-right: 0; }

@media (prefers-reduced-motion: reduce) {
  .variant-option span { transition: none; }
}

/* Storefront fixes found in the responsive audit. Loaded after ui.css and product-page.css. */

/* The generic ".text-page form" rule (stacked grid, 100% inputs) was also hitting the search box on the 404 page:
   the field and its button stacked inside one pill. Keep the search box a single row. */
.text-page .large-search { display: flex; gap: 0; margin: var(--space-4) 0; max-width: 640px; }
.text-page .large-search input { flex: 1; width: auto; min-width: 0; min-height: 48px; padding: 0 var(--space-4); border: 0; border-radius: 0; background: transparent; }
.text-page .large-search button { flex: none; min-height: 48px; padding: 0 var(--space-5); }

/* Checkout: street suggestions under the address field (combobox listbox). */
.field:has(> .address-suggestions) { position: relative; }
.address-suggestions { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 304px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: #fff; box-shadow: 0 12px 28px -12px rgba(16, 42, 24, .28), 0 2px 6px rgba(16, 42, 24, .08); }
.address-suggestions[hidden] { display: none; }
.address-suggestions li { display: grid; gap: 2px; min-height: var(--touch); padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.address-suggestions li strong { font-size: 15px; font-weight: 600; color: var(--forest-dark); }
.address-suggestions li small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.address-suggestions li:hover, .address-suggestions li.is-active { background: var(--forest-soft); }
.address-suggestions li.is-active { outline: 2px solid var(--focus); outline-offset: -2px; }

/* Footer contact links are inline text 19px tall; the extra padding raises the hit area to the 24px minimum
   without moving the text (padding on an inline box does not change the line box). */
footer a[href^="mailto:"], footer a[href^="tel:"], footer a[href*="wa.me"] { padding-block: 3px; }

/* Newsletter heading: avoid a break inside "E-mail" on narrow screens. */
[class*="newsletter"] h2 { text-wrap: balance; }

/* ───────── Checkout, Pix and paid order: spacing and responsive pass (2026-10-05) ─────────
   Rhythm: 8-pt scale. Title block, stepper and card never touch; every step uses the same gutters on 360px to desktop. */
.checkout-main > h1 { margin-bottom: 8px; }
.checkout-main > .checkout-intro { margin: 0 0 4px; }
.checkout-main > .pix-stage { margin-top: 28px; }
.checkout-main > form { margin-top: 28px; }
.checkout .checkout-steps { margin: 0 0 24px; }
.pix-stage { gap: 0; }
.pix-stage > .checkout-steps { margin-bottom: 24px; }
.checkout .checkout-step > h2 { margin-bottom: 20px; }
.checkout .checkout-step fieldset + fieldset, .checkout .checkout-step fieldset + .field { margin-top: 8px; }
.checkout .shipping-methods { margin-top: 22px; padding-top: 6px; gap: 12px; }
.checkout .shipping-methods > legend { margin-bottom: 14px; }
.checkout .checkout-step .field + .checkout-actions, .checkout .checkout-step fieldset + .checkout-actions, .checkout .checkout-step .shipping-methods ~ .field { margin-top: 20px; }
.checkout .checkout-step [data-payment-detail] { margin-top: 20px; }
.checkout .pix-code-stage { margin-top: 18px; }
.checkout .pix-code-stage > p { margin: 0 0 4px; }
.checkout .pix-payment .field { margin-top: 16px; }
.checkout .field-error { margin: 2px 0 0; }
.checkout .form-note:not(:empty) { margin: 14px 0 0; }
.checkout .payment-methods { gap: 12px; }

/* Pix generated: facts as clean rows on phones, three columns from tablet up */
.pix-stage .pix-result { gap: 22px; padding: 22px 18px; }
.pix-head p { margin-top: 8px; }
.pix-facts { gap: 0; padding: 4px 16px 6px; }
.pix-facts > div { grid-template-columns: 1fr; padding: 12px 0; border-top: 1px solid #e1ebe4; }
.pix-facts > div:first-child { border-top: 0; padding-top: 12px; }
.pix-facts dd { font-size: 14.5px; }
.pix-facts .pix-status { white-space: nowrap; justify-self: start; }
.pix-left { color: #1f5a33; white-space: nowrap; }
@media (max-width: 719px) {
  .pix-facts { grid-template-columns: 1fr; }
  .pix-facts > div:not(.pix-facts-amount) { grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; }
  .pix-facts > div:not(.pix-facts-amount) dd { text-align: right; justify-self: end; }
  .pix-facts > .pix-facts-amount { padding-bottom: 14px; }
}
@media (min-width: 720px) {
  .pix-facts { padding: 16px 18px; gap: 14px 22px; }
  .pix-facts > div, .pix-facts > div:first-child { padding: 0; border: 0; }
}
.pix-qr-box { padding: 20px 16px 18px; }
.pix-qr-box > p { margin: 12px 16px 0; color: #4f6356; font-size: 13.5px; line-height: 1.5; text-wrap: balance; }
.pix-copy { gap: 12px; padding: 18px 16px; }
.pix-code { padding: 12px 14px; }
.pix-copy-button { min-height: 52px; }
.pix-payee { padding: 16px; }
.pix-howto { padding-top: 4px; }
.pix-howto h3 { margin-bottom: 14px; }
.pix-steps { gap: 14px; }
.pix-watch { padding: 14px 16px; }
.pix-note { margin: 0; padding-top: 2px; }

/* Customer data (summary aside and the review card above the payment choice) */
.summary-customer, .review-card { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e1ebe4; }
.summary-customer h3, .review-card h3 { margin: 0 0 12px; color: #173e26; font: 800 15px/1.3 var(--font-title); }
.summary-customer dl, .review-card dl { display: grid; gap: 12px; margin: 0; }
.summary-customer dl > div, .review-card dl > div { display: grid; gap: 2px; min-width: 0; }
.summary-customer dt, .review-card dt { color: #5c7062; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.summary-customer dd, .review-card dd { margin: 0; color: #173e26; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.summary-customer[hidden], .review-card[hidden] { display: none; }
.review-card { margin: 0 0 22px; padding: 18px 16px; border: 1px solid #d7eadb; border-radius: 12px; background: #f4faf6; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.review-head h3 { margin: 0; }
.review-edit { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }
.review-edit button { min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none; color: var(--forest-action); font: 700 13px/1.2 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (min-width: 900px) { .review-card { display: none; } }

/* Paid order: breathing room around the confirmation */
.checkout > .paid-page, .paid-page { padding-top: 8px; }
.paid-hero { gap: 14px; padding: 12px 0 12px; }
.paid-hero p { margin-top: 2px; }
.paid-block .track-journey { margin-top: 10px; }
.paid-receipt-head { gap: 12px; }
.paid-actions { margin-top: 6px; gap: 12px; }
.paid-help { margin-top: 6px; padding-bottom: 8px; line-height: 1.6; }

@media (max-width: 480px) {
  .checkout { width: min(100% - 32px, 1120px); padding-block: 32px 48px; }
  .checkout-main > h1 { font-size: 30px; }
}

/* Pix validity: the countdown sits on its own line; on desktop the three facts share one baseline */
.pix-left { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; }
.pix-facts dd { line-height: 1.3; }
@media (min-width: 720px) { .pix-facts { align-items: start; } .pix-facts .pix-status { margin-top: -2px; } }
@media (max-width: 719px) { .pix-facts > div:not(.pix-facts-amount) dd .pix-left { text-align: right; } }
.summary-customer dl { gap: 10px; }
.summary-customer dt { font-size: 11.5px; }

/* Delivery journey (paid page and tracking): equal columns, labels never touch, wrap instead of overflow */
.track-journey { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 2px; }
.track-journey li { padding: 0 1px; }
.track-step-label { max-width: 100%; font-size: 11.5px; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 400px) { .track-step-label { font-size: 10.5px; letter-spacing: -.01em; } }

/* ───────── Delivery tracking (public /rastreio, order detail, paid page): clearer hierarchy and rhythm ───────── */
.shipment-page { max-width: 760px; padding-block: 36px 72px; }
.shipment-hero h1 { margin-bottom: 8px; }
.shipment-hero > p { margin-bottom: 20px; max-width: 52ch; line-height: 1.55; }
.shipment-form { gap: 12px; }
.shipment-hint { margin-top: 14px; line-height: 1.55; }
.shipment-card { position: relative; margin-top: 28px; padding: 0 22px 22px; overflow: hidden; border-color: #dce8df; border-radius: 20px; box-shadow: 0 1px 2px rgba(16, 42, 24, .04), 0 24px 48px -28px rgba(16, 42, 24, .3); }
.shipment-card.is-loading { padding: 22px; }
.shipment-top { margin: 0 -22px; padding: 20px 22px 18px; border-bottom: 1px solid #e3ede6; background: linear-gradient(180deg, #f2f9f4 0%, #fff 100%); }
.shipment-top > div { gap: 10px; }
.shipment-card h2 { margin: 24px 0 6px; font-size: clamp(24px, 6vw, 30px); line-height: 1.15; text-wrap: balance; }
.shipment-lead { max-width: 52ch; line-height: 1.55; text-wrap: pretty; }
.shipment-eta { grid-template-columns: 1fr; gap: 4px; margin-top: 20px; padding: 16px 18px; border: 1px solid #d7eadb; border-left: 4px solid var(--forest-action); border-radius: 12px; background: #f4faf6; }
.shipment-eta span { letter-spacing: .04em; text-transform: uppercase; }
.shipment-eta.is-done { border-color: #173e26; border-left-color: #173e26; background: #173e26; }
.shipment-eta.is-done span { color: #bfe3c9; }
.shipment-eta.is-done strong { color: #fff; }
.shipment-card .track-journey { margin: 26px 0 8px; row-gap: 0; }
.shipment-card .track-dot { width: 32px; height: 32px; font-size: 13px; }
.shipment-card .track-journey li::before { top: 15px; height: 3px; border-radius: 3px; }
.shipment-card .track-journey { gap: 0 2px; }
.shipment-card .track-step-label { margin-top: 2px; }
.shipment-card .track-journey li[data-state="current"] .track-dot { animation: track-ring 2.2s ease-out infinite; }
@keyframes track-ring { 0% { box-shadow: 0 0 0 0 rgba(40, 126, 67, .35); } 70%, 100% { box-shadow: 0 0 0 9px rgba(40, 126, 67, 0); } }
@media (prefers-reduced-motion: reduce) { .shipment-card .track-journey li[data-state="current"] .track-dot { animation: none; box-shadow: 0 0 0 5px rgba(40, 126, 67, .14); } }
.shipment-facts { margin-top: 22px; padding: 18px 0; gap: 16px 24px; }
.shipment-facts dt { letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; font-weight: 700; }
.shipment-card h3 { margin: 28px 0 10px; }
.shipment-card .track-timeline { margin-top: 14px; }
.shipment-card .track-timeline li { gap: 14px; padding-bottom: 22px; }
.shipment-card .track-timeline strong { line-height: 1.4; }
.shipment-card .track-timeline small { margin-top: 5px; }
.shipment-card .track-forecast { margin-top: 10px; padding-bottom: 22px; }
.shipment-help { margin-top: 12px; padding-top: 18px; line-height: 1.6; }
@media (max-width: 480px) { .shipment-card { padding: 0 18px 18px; } .shipment-top { margin: 0 -18px; padding: 18px; } .shipment-page { padding-block: 24px 56px; } }

/* ───────── Horizontal rails never trap the vertical swipe ─────────
   "overflow-x: auto" makes the other axis auto too, so a rail with a hair of extra height became its own vertical scroller and
   swallowed the page's up/down drag on phones. Rails scroll sideways only, snap softly, and the page itself never pans sideways. */
html, body { overflow-x: clip; }
.product-section .product-grid, .category-grid, .thumbnails, .customer-filters, .customer .customer-nav nav { overflow-y: hidden; overscroll-behavior-x: contain; overscroll-behavior-y: auto; touch-action: pan-x pan-y pinch-zoom; }
.product-section .product-grid, .category-grid { scroll-snap-type: x proximity; }

/* Checkout field rows: columns can shrink (a long city name no longer pushes the select out of the card) and inputs share one baseline */
.checkout .field-row { align-items: end; }
.checkout .field-row > .field { min-width: 0; }
.checkout .field select, .checkout .field input { width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; }

/* Journey labels: whole words only (no automatic hyphenation); five columns stay legible down to 320px */
.track-step-label { hyphens: manual; overflow-wrap: normal; word-break: keep-all; }
@media (max-width: 400px) { .track-step-label { font-size: 10px; letter-spacing: -.02em; } .paid-block, .shipment-card { --journey-gap: 0; } }

/* ---------- back office (/admin): shell, shared components, orders, logistics, overview ----------
   Operate mode: dense, legible, consistent. Tables turn into cards when the content column is narrow
   (container queries on .admin-main, so the side menu is accounted for). Sections of other files: admin-sections.css. */
.admin-page { padding-block: 24px 64px; }
.admin-loading, .admin-empty p { color: var(--a-muted); }
.admin-muted { color: var(--a-muted); font-size: 13px; }
.admin-num { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ----- shell ----- */
.admin-root-shell { width: auto; max-width: none; margin: 0; padding: 0; }
body.admin-lock { overflow: hidden; }
.admin-app {
  color-scheme: light;
  --a-ink: #102a18; --a-text: #31473a; --a-muted: #54685a; --a-faint: #9aa99f; --a-bg: #f4f8f5; --a-mk-on: #1f8a49; --a-mk-on-ink: #ffffff; --a-mk-buy: #2b62d6; --a-mk-buy-ink: #ffffff; --a-mk-bad: #d4403a; --a-mk-bad-ink: #ffffff; --a-brand: #173e26; --a-brand-ink: #173e26; --a-on-action: #ffffff; --a-action: #287e43; --a-action-hover: #1f6b38; --a-solid: #173e26; --a-link-ink: #1f6a37;
  /* Design system (2026-10-04 rebuild): Stripe/Linear as the craft bar, one brand accent, data colours used only for state. */
  --a-surface: #fff; --a-surface-2: #f4f8f5; --a-surface-3: #eaf1ec; --a-border: #e3ebe4; --a-line: #e3ebe4; --a-border-soft: #eef3ef; --a-line-strong: #cddad1; --a-line-hover: #aac3b1;
  --a-success: #1f8a4c; --a-success-bg: #e5f5ea; --a-ok: #14602f; --a-warn: #9a6400; --a-warn-bg: #fff1c9; --a-danger: #b4261d; --a-danger-bg: #fdecea; --a-info: #2050b0; --a-info-bg: #e9f0ff;
  --a-nav-active-bg: #fff; --a-nav-active-ink: #173e26; --a-tooltip-bg: #17261c;
  --a-fn-0: #173e26; --a-fn-1: #1f5a35; --a-fn-2: #287e43; --a-fn-3: #3d9a5a; --a-fn-4: #5cb27a; --a-fn-5: #86cba0;
  --a-shadow-sm: 0 1px 2px rgba(16, 42, 24, .06); --a-shadow-md: 0 6px 20px rgba(16, 42, 24, .09);
  --a-radius-sm: 8px; --a-radius-md: 12px; --a-radius-lg: 16px;
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--a-bg); color: var(--a-text); font-size: 14px; line-height: 1.5;
}
.admin-app *, .admin-app *::before, .admin-app *::after { box-sizing: border-box; }
.admin-app :focus-visible { outline: 3px solid var(--a-action); outline-offset: 2px; }
.admin-app .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.admin-topbar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 12px; background: var(--a-brand); color: #fff; }
.admin-menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 10px; background: transparent; color: #fff; font-weight: 700; }
.admin-menu-btn:hover { background: rgba(255, 255, 255, .12); }
.admin-app .admin-topbar :focus-visible, .admin-side :focus-visible { outline-color: var(--a-surface); }
.admin-topbar-title { font: 700 16px/1.2 var(--font-title); }

.admin-backdrop { position: fixed; inset: 0; z-index: 2; background: rgba(3, 22, 9, .55); }
.admin-side { position: fixed; z-index: 3; top: 0; bottom: 0; left: 0; width: min(86vw, 300px); display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; overflow-y: auto; background: var(--a-brand); color: #fff; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease-out, visibility 0s linear .2s; }
.admin-side[data-open="true"] { transform: none; visibility: visible; transition: transform .2s ease-out; box-shadow: 12px 0 34px rgba(3, 22, 9, .25); }
.admin-brand { position: relative; display: grid; gap: 0; padding: 4px 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .16); margin-bottom: 6px; }
.admin-brand strong { font: 800 18px/1.2 var(--font-title); }
.admin-brand span { font-size: 13px; color: rgba(255, 255, 255, .78); }
.admin-collapse-btn { display: none; }
.admin-nav { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.admin-nav-group { margin: 14px 12px 2px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); font: 700 11px/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.admin-nav-group:first-child { margin-top: 2px; padding-top: 0; border-top: 0; }
.admin-nav-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: rgba(255, 255, 255, .88); font: 600 14px/1.2 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.admin-nav-link:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.admin-nav-link[aria-current="page"] { background: var(--a-nav-active-bg); color: var(--a-nav-active-ink); font-weight: 700; }
.admin-nav-link svg { flex: none; }
.admin-nav-text { flex: 1; min-width: 0; }
.admin-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #ffd666; color: #4a3200; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-badge[hidden] { display: none; }
.admin-signout { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .16); border-radius: 0 0 10px 10px; padding-top: 8px; }

.admin-main { min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 16px 56px; container: admin / inline-size; scroll-padding-top: 16px; }
.admin-main:focus { outline: none; }
.admin-main > * { max-width: 1280px; margin-inline: auto; }
.admin-page-title { margin: 0 0 16px; font: 800 24px/1.2 var(--font-title); letter-spacing: -.01em; color: var(--a-ink); }
.admin-section-host { min-width: 0; }
.admin-loading-block { display: flex; align-items: center; gap: 10px; padding: 24px 4px; color: var(--a-muted); }
.admin-spinner { width: 16px; height: 16px; border: 2.5px solid var(--a-line-strong); border-top-color: var(--a-action); border-radius: 50%; animation: admin-spin .8s linear infinite; }
@keyframes admin-spin { to { transform: rotate(360deg); } }

.admin-toast { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
.admin-toast[hidden] { display: none; }
.admin-toast p { margin: 0; max-width: 560px; padding: 12px 16px; border-radius: 12px; background: var(--a-ink); color: #fff; font-weight: 600; box-shadow: 0 8px 24px rgba(16, 42, 24, .22); }
.admin-toast[data-tone="erro"] p { background: #8f241c; }
.admin-toast p:empty { display: none; }

@media (min-width: 900px) {
  .admin-app { grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); transition: grid-template-columns .18s ease; }
  .admin-app.is-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
  .admin-topbar, .admin-backdrop { display: none; }
  .admin-side { position: static; grid-row: 1; grid-column: 1; width: auto; transform: none; visibility: visible; box-shadow: none; transition: none; }
  .admin-main { grid-column: 2; grid-row: 1; padding: 24px 32px 64px; }
  .admin-toast { left: 260px; }
  .admin-app.is-collapsed .admin-toast { left: 72px; }
  .admin-collapse-btn { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 2px; right: 0; width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85); cursor: pointer; }
  .admin-collapse-btn:hover { background: rgba(255, 255, 255, .14); }
  .admin-app.is-collapsed .admin-collapse-btn svg { transform: rotate(180deg); }
  .admin-app.is-collapsed .admin-brand span, .admin-app.is-collapsed .admin-nav-text, .admin-app.is-collapsed .admin-nav-group, .admin-app.is-collapsed .admin-signout .admin-nav-text { display: none; }
  .admin-app.is-collapsed .admin-brand { padding-inline: 10px; }
  .admin-app.is-collapsed .admin-brand strong { font-size: 0; }
  .admin-app.is-collapsed .admin-brand strong::first-letter { font-size: 18px; }
  .admin-app.is-collapsed .admin-nav-link { justify-content: center; padding: 0; position: relative; }
  .admin-app.is-collapsed .admin-nav-link .admin-badge { position: absolute; top: 2px; right: 10px; }
}
@media (max-width: 899px) { .admin-page-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; } .admin-breadcrumb { display: none; } }

/* ----- page head: breadcrumb/title + notifications + account ----- */
.admin-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.admin-breadcrumb { margin: 0 0 2px; font: 700 12px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--a-muted); }
.admin-page-head .admin-page-title { margin: 0; }
.admin-head-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.admin-icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--a-border); border-radius: var(--a-radius-sm); background: var(--a-surface); color: var(--a-text); cursor: pointer; list-style: none; }
.admin-icon-btn::-webkit-details-marker { display: none; }
.admin-icon-btn:hover { background: var(--a-surface-2); }
.admin-badge-dot { position: absolute; top: 6px; right: 7px; min-width: 8px; width: 8px; height: 8px; padding: 0; border-radius: 50%; background: #d64545; }
.admin-notifications, .admin-account { position: relative; }
.admin-notif-list { min-width: 260px; }
.admin-notif-list button { font-weight: 500; }
.admin-notif-empty { padding: 8px 12px; margin: 0; }
@media (max-width: 899px) { .admin-page-head { margin-bottom: 10px; } }

/* ----- placeholder sections (Recuperação, Clientes, Campanhas, ... — honest "no backend yet") ----- */
.admin-placeholder { display: grid; place-items: center; min-height: 50vh; padding: 24px; }
.admin-placeholder-card { max-width: 440px; padding: 32px 28px; border: 1px dashed var(--a-border); border-radius: var(--a-radius-lg); background: var(--a-surface); text-align: center; display: grid; gap: 10px; justify-items: center; }
.admin-placeholder-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--a-bg); color: var(--a-action); }
.admin-placeholder-title { margin: 0; font: 800 16px/1.3 var(--font-title); color: var(--a-ink); }
.admin-placeholder-why { margin: 0; color: var(--a-muted); font-size: 14px; line-height: 1.55; }

/* ----- shared pieces ----- */
.admin-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid transparent; font: 700 14px/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.admin-btn:hover { text-decoration: none; }
.admin-btn:disabled, .admin-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.admin-btn[aria-busy="true"] { opacity: .75; }
.admin-btn-primary { background: var(--forest-action, #287e43); color: #fff; }
.admin-btn-primary:hover:not(:disabled) { background: var(--a-action-hover); }
.admin-btn-secondary { background: var(--a-surface); border-color: var(--a-line-strong); color: var(--a-link-ink); }
.admin-btn-secondary:hover:not(:disabled) { background: var(--a-surface-2); }
.admin-btn-ghost { background: transparent; color: var(--a-link-ink); }
.admin-btn-ghost:hover:not(:disabled) { background: var(--a-surface-3); }
.admin-btn-warn { background: var(--a-warn-bg); border-color: var(--a-line-hover); color: var(--a-warn); }
.admin-btn-danger { background: var(--a-surface); border-color: var(--a-line-hover); color: var(--a-danger); }
.admin-btn-danger-solid { background: #a8281f; color: #fff; }
.admin-btn-danger-solid:hover:not(:disabled) { background: #8f241c; }
@media (min-width: 900px) and (pointer: fine) { .admin-btn-sm { min-height: 38px; padding: 0 12px; font-size: 13px; } }

.admin-chip { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--a-surface-3); color: var(--a-text); }
.admin-chip svg { flex: none; }
.admin-chip[data-tone="ok"] { background: var(--a-success-bg); color: var(--a-link-ink); }
.admin-chip[data-tone="warn"] { background: var(--a-warn-bg); color: var(--a-warn); }
.admin-chip[data-tone="bad"] { background: var(--a-danger-bg); color: var(--a-danger); }
.admin-chip[data-tone="info"] { background: var(--a-info-bg); color: var(--a-info); }
.admin-chip[data-tone="active"] { background: var(--a-solid); color: #fff; }
.admin-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.admin-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--a-text, var(--a-text)); }
.admin-field input, .admin-field textarea, .admin-search { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--a-line-strong); border-radius: 10px; font: inherit; font-size: 16px; font-weight: 400; background: var(--a-surface); color: var(--a-ink); }
.admin-field input:focus, .admin-field textarea:focus, .admin-search:focus { outline: 3px solid rgba(40, 126, 67, .35); outline-offset: 0; border-color: var(--forest-action, #287e43); }
.admin-search { padding-inline: 14px; }
.admin-action-feedback { margin: 0; min-height: 1.2em; font-size: 14px; font-weight: 600; color: var(--a-text); }
.admin-action-feedback:empty { display: none; }
.admin-action-feedback-error, .admin-action-feedback.is-error { color: var(--a-danger); }
.admin-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--a-warn-bg); color: var(--a-warn); font-size: 14px; }
.admin-empty { padding: 28px 16px; text-align: center; border: 1px dashed var(--a-line-strong); border-radius: 12px; background: var(--a-surface); }
.admin-empty p { margin: 0; }
.admin-error { padding: 14px 16px; border-radius: 12px; background: var(--a-danger-bg); color: var(--a-danger); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.admin-confirm { padding: 12px; border-radius: 12px; background: var(--a-danger-bg); color: var(--a-danger); }
.admin-confirm p { margin: 0 0 10px; font-weight: 600; }
.admin-confirm-buttons, .admin-action-buttons, .admin-action-secondary, .admin-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--a-muted, var(--a-muted)); }

.admin-section { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 16px; border: 1px solid var(--a-line, var(--a-border)); border-radius: 12px; background: var(--a-surface); }
.admin-section h2, .admin-section h3, .admin-preview h3 { margin: 0; font: 800 16px/1.3 var(--font-title); color: var(--a-ink); }
.admin-section p { margin: 0; overflow-wrap: anywhere; }
.admin-section a { color: var(--a-link-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.admin-skeleton-list { display: grid; gap: 8px; }
.admin-skel-block, .admin-skel-row { border-radius: 10px; background: linear-gradient(90deg, var(--a-surface-3), var(--a-surface-2), var(--a-surface-3)); background-size: 200% 100%; animation: track-shimmer 1.2s linear infinite; }
.admin-skel-block { min-height: 74px; }
.admin-skel-row { height: 44px; }
@media (prefers-reduced-motion: reduce) {
  .admin-skel-block, .admin-skel-row, .admin-spinner { animation: none; }
  .admin-side { transition: none; }
}

/* ----- KPIs, tabs, toolbar ----- */
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.admin-kpi { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border: 1px solid var(--a-line, var(--a-border)); border-radius: 12px; background: var(--a-surface); min-width: 0; }
.admin-kpi dt { order: 1; font-size: 13px; color: var(--a-muted); font-weight: 600; }
.admin-kpi dd { order: 0; margin: 0; font: 800 22px/1.15 var(--font-title); color: var(--a-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.admin-kpi .admin-muted { order: 2; font-size: 12px; }
.admin-kpi-to-ship { background: var(--a-solid); border-color: var(--a-solid); }
.admin-kpi-to-ship dt, .admin-kpi-to-ship dd { color: #fff; }
.admin-kpis-wide { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.admin-kpi-delta { order: 2; justify-self: start; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-kpi-delta[data-tone="ok"] { color: var(--a-success, var(--a-ok)); }
.admin-kpi-delta[data-tone="bad"] { color: var(--a-danger, var(--a-danger)); }
.admin-kpi-delta[data-tone="neutral"] { color: var(--a-muted, var(--a-muted)); }
.admin-kpis-secondary { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: -4px; }
.admin-kpis-secondary .admin-kpi { padding: 10px 12px; background: var(--a-bg); border-style: dashed; }
.admin-kpis-secondary .admin-kpi dd { font-size: 17px; }

.admin-toolbar { display: grid; gap: 12px; margin-bottom: 14px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--a-line-strong); border-radius: 999px; background: var(--a-surface); color: var(--a-text); font-weight: 600; font-size: 13px; }
.admin-tab:hover { background: var(--a-surface-2); }
.admin-tab[aria-selected="true"] { background: var(--a-solid); border-color: var(--a-solid); color: #fff; }
.admin-tab-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--a-surface-3); color: var(--a-link-ink); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.admin-tab-count[hidden] { display: none; }
.admin-tab[aria-selected="true"] .admin-tab-count { background: var(--a-surface); }
@container admin (min-width: 820px) { .admin-toolbar { grid-template-columns: minmax(0, 1fr) 320px; align-items: center; } }
.admin-tabpanel { min-width: 0; }

/* ----- data tables: cards by default, a real table when the column is wide ----- */
.admin-data-table { width: 100%; border-collapse: collapse; }
.admin-data-table thead { display: none; }
.admin-data-table tbody { display: grid; gap: 10px; }
.admin-data-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 14px; border: 1px solid var(--a-line, var(--a-border)); border-radius: 12px; background: var(--a-surface); }
.admin-data-table td { display: grid; gap: 2px; align-content: start; min-width: 0; font-size: 14px; color: var(--a-text); overflow-wrap: anywhere; }
.admin-data-table td[data-label]::before { content: attr(data-label); font-size: 12px; font-weight: 600; color: var(--a-muted); }
.admin-data-table td[data-label="Pedido"], .admin-data-table td[data-label="Cliente"] { grid-column: 1 / -1; }
.admin-data-table code { font-size: 13px; letter-spacing: .03em; }
.admin-orders-table tr[data-admin-order] { cursor: pointer; }
.admin-orders-table tr[data-admin-order]:hover { border-color: var(--a-line-hover); box-shadow: 0 4px 14px rgba(16, 42, 24, .06); }
.admin-order-link { justify-self: start; min-height: 44px; margin: -6px 0 -4px; padding: 0; border: 0; background: none; color: var(--a-link-ink); font: 800 15px/1.2 var(--font-body); text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.admin-table-wrap { min-width: 0; }
@container admin (min-width: 820px) {
  .admin-table-wrap { border: 1px solid var(--a-line, var(--a-border)); border-radius: 12px; background: var(--a-surface); }
  .admin-data-table thead { display: table-header-group; }
  .admin-data-table tbody { display: table-row-group; }
  .admin-data-table tr { display: table-row; padding: 0; border: 0; border-radius: 0; background: none; }
  .admin-data-table th { padding: 10px 14px; background: var(--a-surface-2); border-bottom: 1px solid var(--a-line, var(--a-border)); text-align: left; font-size: 12px; font-weight: 700; color: var(--a-muted); white-space: nowrap; }
  .admin-data-table th:first-child { border-top-left-radius: 11px; }
  .admin-data-table th:last-child { border-top-right-radius: 11px; }
  .admin-data-table td { display: table-cell; padding: 10px 14px; border-bottom: 1px solid var(--a-border-soft); vertical-align: middle; }
  .admin-data-table tr:last-child td { border-bottom: 0; }
  .admin-data-table td[data-label]::before { display: none; }
  .admin-data-table td > .admin-muted { display: block; }
  .admin-order-link { margin: 0; min-height: 28px; }
  .admin-orders-table tr[data-admin-order]:hover { box-shadow: none; }
  .admin-orders-table tr[data-admin-order]:hover td { background: var(--a-surface-2); }
}

/* ----- overdue steps (Etapas vencidas) ----- */
.admin-logi { display: grid; gap: 12px; }
.admin-logi-head { display: grid; gap: 12px; }
.admin-logi-lead { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--a-warn-bg); color: var(--a-warn); font-size: 14px; }
.admin-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-filter-chip { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--a-line-strong); border-radius: 999px; background: var(--a-surface); color: var(--a-link-ink); font: 600 13px/1.2 var(--font-body); }
.admin-filter-chip:hover { background: var(--a-surface-2); }
.admin-filter-chip[aria-pressed="true"] { background: var(--a-solid); border-color: var(--a-solid); color: #fff; }
.admin-logi-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-panel-slot[hidden] { display: none; }

.admin-menu { position: relative; }
.admin-menu > summary { list-style: none; }
.admin-menu > summary::-webkit-details-marker { display: none; }
.admin-menu-list { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; min-width: 220px; max-width: min(320px, 86vw); display: grid; gap: 2px; padding: 6px; border: 1px solid var(--a-line-strong); border-radius: 12px; background: var(--a-surface); box-shadow: 0 10px 28px rgba(16, 42, 24, .16); }
.admin-menu-list button { display: block; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--a-link-ink); font: 600 14px/1.3 var(--font-body); text-align: left; }
.admin-menu-list button:hover { background: var(--a-surface-3); }
.admin-more .admin-menu-list { min-width: 280px; }
.admin-shift .admin-menu-list { min-width: 120px; }

.admin-check { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.admin-check input { width: 20px; height: 20px; accent-color: #287e43; }
.admin-due-table td.admin-col-check, .admin-due-table th.admin-col-check { width: 1%; padding-inline: 4px; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-row-status { display: block; min-height: 0; font-size: 13px; color: var(--a-muted); }
.admin-row-status:empty { display: none; }
.admin-row-status.is-error { color: var(--a-danger); font-weight: 600; }
.admin-overdue { display: block; color: var(--a-warn); font-weight: 700; font-size: 13px; }
tr[data-busy] { opacity: .7; }
tr[data-selected] { background: var(--a-surface-2); }

/* due rows as cards (narrow): checkbox + info on top, actions below */
.admin-due-table tr { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.admin-due-table td.admin-col-check { grid-row: 1 / span 3; grid-column: 1; align-self: start; }
.admin-due-table td[data-label="Pedido"] { grid-column: 2 / -1; }
.admin-due-table td[data-label="Etapa"] { grid-column: 2 / -1; }
.admin-due-table td[data-label="Local"], .admin-due-table td[data-label="Vencimento"] { grid-column: 2 / span 1; }
.admin-due-table td[data-label="Vencimento"] { grid-column: 3; }
.admin-due-table td.admin-col-actions { grid-column: 1 / -1; }
.admin-due-table .admin-row-actions .admin-btn { flex: 1 1 96px; }
@container admin (min-width: 1000px) {
  .admin-due-table tr { grid-template-columns: none; }
  .admin-due-table td.admin-col-check, .admin-due-table td[data-label], .admin-due-table td.admin-col-actions { grid-column: auto; grid-row: auto; }
  .admin-due-table .admin-row-actions { flex-wrap: nowrap; }
  .admin-due-table .admin-row-actions .admin-btn { flex: none; }
  .admin-due-table td.admin-col-actions { white-space: nowrap; width: 1%; }
}

/* preview and result panels (inline, never a modal) */
.admin-preview { display: grid; gap: 10px; padding: 16px; border: 1.5px solid var(--a-line-strong); border-radius: 12px; background: var(--a-surface-2); }
.admin-preview.is-danger { border-color: var(--a-line-hover); background: var(--a-danger-bg); }
.admin-preview:focus, .admin-result:focus { outline: 3px solid rgba(40, 126, 67, .35); outline-offset: 2px; }
.admin-preview p { margin: 0; }
.admin-preview-count { font-size: 18px; color: var(--a-ink); }
.admin-preview-orders { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.admin-preview-orders li { padding: 2px 10px; border: 1px solid var(--a-line-strong); border-radius: 999px; background: var(--a-surface); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-preview-orders .admin-preview-more { border-style: dashed; color: var(--a-muted); font-weight: 600; }
.admin-preview-warning { font-weight: 700; color: var(--a-warn); }
.admin-result { display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--a-success-bg); color: var(--a-link-ink); }
.admin-result[data-tone="warn"] { background: var(--a-warn-bg); color: var(--a-warn); }
.admin-result[data-tone="erro"] { background: var(--a-danger-bg); color: var(--a-danger); }
.admin-result-head { margin: 0; font-weight: 700; font-size: 15px; }
.admin-result-list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 4px; font-size: 14px; }
.admin-ship-bar { display: grid; gap: 10px; margin-bottom: 14px; }
.admin-ship-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--a-line, var(--a-border)); border-radius: 12px; background: var(--a-surface); }
.admin-ship-row p { margin: 0; flex: 1 1 280px; font-size: 14px; }

/* ----- order detail ----- */
.admin-back { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--a-link-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.admin-detail { display: grid; gap: 16px; }
.admin-detail-head h2 { margin: 0; font: 800 clamp(22px, 5vw, 28px)/1.15 var(--font-title); letter-spacing: -.01em; color: var(--a-ink); }
.admin-detail-meta { margin: 6px 0 0; color: var(--a-muted); font-size: 14px; }
.admin-detail-cols { display: grid; gap: 16px; align-items: start; }
.admin-detail-main, .admin-detail-side { display: grid; gap: 16px; min-width: 0; container: dmain / inline-size; }
@container admin (min-width: 1000px) { .admin-detail-cols { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); } }
.admin-next-action { border-color: var(--a-line-hover); background: var(--a-surface-2); }
.admin-next-action-done { border-color: var(--a-line, var(--a-border)); background: var(--a-surface); }
.admin-action-buttons .admin-btn { flex: 1 1 180px; min-height: 52px; font-size: 15px; }
.admin-action-fields { display: grid; gap: 10px; }
.admin-tracking code { font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.admin-timeline { display: grid; gap: 10px; margin: 0; padding: 0 0 0 16px; list-style: none; border-left: 2px solid var(--a-border); }
.admin-timeline li { display: grid; gap: 2px; position: relative; }
.admin-timeline li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--a-line-hover); }
.admin-timeline li:first-child::before { background: #287e43; }
.admin-timeline strong { font-size: 14px; color: var(--a-ink); }
.admin-timeline span { font-size: 13px; color: var(--a-muted); }
.admin-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.admin-items li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 14px; }
.admin-items .admin-muted { display: block; }
.admin-items img, .admin-item-noimg { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--a-surface-2); border: 1px solid var(--a-border); display: block; }
.admin-totals dl { display: grid; gap: 6px; margin: 0; }
.admin-totals dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--a-muted); }
.admin-totals dd { margin: 0; color: var(--a-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-totals .admin-total-final { padding-top: 8px; border-top: 1px solid var(--a-border); font-size: 16px; color: var(--a-ink); }
.admin-total-final dd { font: 800 18px/1.2 var(--font-title); color: var(--a-ink); }

/* planned logistics timeline (order detail) */
.admin-plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.admin-route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.admin-route li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--a-link-ink); }
.admin-route li + li::before { content: "→"; color: var(--a-muted); font-weight: 400; }
.admin-route span { padding: 4px 10px; border: 1px solid var(--a-line-strong); border-radius: 999px; background: var(--a-surface-2); }
.admin-plan .admin-table-wrap { border: 0; background: none; }
.admin-steps { width: 100%; border-collapse: collapse; }
.admin-steps thead { display: none; }
.admin-steps tbody { display: grid; gap: 6px; }
.admin-steps tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--a-border); border-radius: 10px; background: var(--a-surface); }
.admin-steps tr[data-next] { padding: 14px; border-color: var(--a-line-hover); background: var(--a-surface-2); box-shadow: inset 3px 0 0 #287e43; }
.admin-steps tr[data-status="confirmed"] td, .admin-steps tr[data-status="skipped"] td, .admin-steps tr[data-status="cancelled"] td { color: var(--a-muted); }
.admin-steps td { display: grid; gap: 2px; align-content: start; min-width: 0; font-size: 14px; color: var(--a-text); overflow-wrap: anywhere; }
.admin-steps td[data-label="Etapa"] { grid-column: 1; grid-row: 1; }
.admin-steps td[data-label="Status"] { grid-column: 2; grid-row: 1; justify-items: end; text-align: right; }
.admin-steps td[data-label="Status"] .admin-muted { display: none; }
.admin-steps td[data-label="Local"], .admin-steps td[data-label="Previsto (Brasília)"] { grid-column: 1 / -1; display: inline; font-size: 13px; color: var(--a-muted); }
.admin-steps td[data-label="Previsto (Brasília)"]::before { content: "Previsto: "; }
.admin-steps td[data-label="Ações"] { grid-column: 1 / -1; }
.admin-steps td.admin-step-noaction { display: none; }
.admin-steps tr:not([data-next]) td[data-label="Etapa"] .admin-muted { display: none; }
.admin-steps strong { color: var(--a-ink); font-size: 14px; }
.admin-step-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.admin-step-actions .admin-btn { flex: 1 1 120px; }
.admin-plan-controls { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--a-border); }
.admin-plan-shift { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.admin-plan-shift .admin-field { flex: 0 1 110px; }
.admin-plan-shift .admin-btn { flex: 1 1 110px; }
@container dmain (min-width: 660px) {
  .admin-steps thead { display: table-header-group; }
  .admin-steps tbody { display: table-row-group; }
  .admin-steps tr, .admin-steps tr[data-next] { display: table-row; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .admin-steps tr[data-next] td { background: var(--a-surface-2); }
  .admin-steps th { padding: 8px 10px; background: var(--a-surface-2); border-bottom: 1px solid var(--a-border); text-align: left; font-size: 12px; font-weight: 700; color: var(--a-muted); }
  .admin-steps td, .admin-steps td[data-label="Local"], .admin-steps td[data-label="Previsto (Brasília)"], .admin-steps td[data-label="Status"], .admin-steps td[data-label="Etapa"], .admin-steps td[data-label="Ações"] { display: table-cell; padding: 8px 10px; border-bottom: 1px solid var(--a-border-soft); vertical-align: top; font-size: 14px; color: var(--a-text); text-align: left; }
  .admin-steps td[data-label="Previsto (Brasília)"]::before { content: none; }
  .admin-steps td[data-label="Status"] .admin-muted, .admin-steps tr:not([data-next]) td[data-label="Etapa"] .admin-muted { display: block; }
  .admin-steps td.admin-step-noaction { display: table-cell; }
  .admin-steps td[data-label="Ações"] { width: 1%; white-space: nowrap; }
  .admin-step-actions { flex-wrap: nowrap; margin-top: 0; }
  .admin-step-actions .admin-btn { flex: none; min-height: 40px; padding: 0 14px; }
}

/* ----- overview ----- */

/* ----- auth / 2FA (unchanged) ----- */
.admin-auth-card { max-width: 440px; margin: 40px auto; padding: 28px; border: 1px solid var(--a-border); border-radius: 18px; background: var(--a-surface); text-align: center; display: grid; gap: 10px; justify-items: center; }
.admin-auth-card h1 { margin: 0; font: 800 24px/1.2 var(--font-title); color: var(--a-ink); }
.admin-auth-card p { margin: 0 0 6px; color: var(--a-muted); }
.admin-error { padding: 16px; border-radius: 12px; background: var(--a-danger-bg); color: var(--a-danger); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Admin second factor (mfaGate in src/admin.js): numbered setup steps, then one big code field. */
.admin-mfa { width: 100%; max-width: 420px; padding: 28px 24px; gap: 16px; justify-items: stretch; text-align: left; }
.admin-mfa h1 { font-size: 22px; text-align: center; text-wrap: balance; }
.admin-mfa-lead { text-align: center; }
.admin-mfa-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: mfa; }
.admin-mfa-steps > li { counter-increment: mfa; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 12px; align-items: start; }
.admin-mfa-steps > li::before { content: counter(mfa); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--a-surface-3); color: var(--a-link-ink); font: 800 14px/1 var(--font-title); }
.admin-mfa-steps > li > * { grid-column: 2; }
.admin-mfa-steps > li > span { grid-row: 1; grid-column: 2; margin-top: 3px; color: var(--a-text); font-size: 15px; line-height: 1.45; }
.admin-mfa-qr { justify-self: start; width: 180px; height: 180px; padding: 8px; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-surface); }
.admin-mfa-manual summary { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--a-link-ink); cursor: pointer; }
.admin-mfa-manual p { margin: 0 0 8px; font-size: 14px; }
.admin-mfa-key { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-mfa-key code { flex: 1 1 170px; padding: 10px 12px; border-radius: 10px; background: var(--a-surface-2); color: var(--a-ink); font: 700 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; overflow-wrap: anywhere; }
.admin-mfa-key .admin-btn { min-height: 44px; }
.admin-mfa-form { display: grid; gap: 10px; width: 100%; }
.admin-mfa-form label { text-align: center; font-weight: 700; font-size: 14px; color: var(--a-text); }
.admin-mfa-form input { width: 100%; min-height: 56px; padding: 0 14px; border: 1.5px solid var(--a-line-strong); border-radius: 12px; font: 700 26px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .4em; text-indent: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.admin-mfa-form input::placeholder { color: var(--a-faint); }
.admin-mfa-form input:focus-visible { outline: 3px solid var(--forest-action, #287e43); outline-offset: 2px; border-color: transparent; }
.admin-mfa-form .admin-btn { width: 100%; min-height: 52px; }
.admin-mfa-form .admin-action-feedback { min-height: 1.4em; text-align: center; }
.admin-mfa-form .admin-action-feedback.is-error { color: var(--a-danger); }
.admin-mfa-signout { justify-self: center; min-height: 44px; padding: 10px 12px; border: 0; background: none; color: var(--a-muted); font: 600 14px/1 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.admin-mfa-signout:hover { color: var(--a-ink); }
@media (max-width: 380px) { .admin-mfa { padding: 24px 18px; } .admin-mfa-form input { font-size: 24px; letter-spacing: .25em; text-indent: .25em; } }

/* ---------- dark theme (admin only: the storefront keeps its own look) ----------
   Graphite with a green undertone. Four clear elevation steps (page < card < raised < overlay), borders that stay visible on a dark
   screen, softened pure white and a brighter accent so numbers and states read at a glance. */
.admin-app[data-theme="dark"] {
  color-scheme: dark;
  --a-ink: #f1f6f3; --a-text: #d3ddd7; --a-muted: #9fb1a6; --a-faint: #75877b; --a-bg: #0a0f0c; --a-mk-on: #4cc27c; --a-mk-on-ink: #04150b; --a-mk-buy: #7aa7ff; --a-mk-buy-ink: #06122b; --a-mk-bad: #ff8f84; --a-mk-bad-ink: #2b0a07; --a-brand: #060a08; --a-brand-ink: #d9efe2; --a-on-action: #04150b; --a-action: #4cc27c; --a-action-hover: #62d38e; --a-solid: #24744a; --a-link-ink: #9be3b4;
  --a-surface: #121a15; --a-surface-2: #17211b; --a-surface-3: #1f2c24; --a-border: #28372e; --a-line: #28372e; --a-border-soft: #1f2b24; --a-line-strong: #3a4f42; --a-line-hover: #547063;
  --a-success: #56cf88; --a-success-bg: #123221; --a-ok: #86e0a8; --a-warn: #f0bd57; --a-warn-bg: #3a2e0e; --a-danger: #ff9488; --a-danger-bg: #3f1c19; --a-info: #92b4ff; --a-info-bg: #18284a;
  --a-nav-active-bg: #1e3a2b; --a-nav-active-ink: #f1f6f3; --a-tooltip-bg: #2f4137;
  --a-fn-0: #2f8a53; --a-fn-1: #389a5e; --a-fn-2: #45ad6c; --a-fn-3: #5bbf80; --a-fn-4: #78d098; --a-fn-5: #9ce0b4;
  --a-shadow-sm: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .45); --a-shadow-md: 0 12px 32px rgba(0, 0, 0, .55);
  --a-focus: 0 0 0 2px #0a0f0c, 0 0 0 4px #62d38e;
}
.admin-app[data-theme="dark"] ::selection { background: #2a5a3b; color: #fff; }
.admin-app[data-theme="dark"] .admin-main { scrollbar-color: #3a4f42 transparent; }
.admin-app[data-theme="dark"] .admin-main ::-webkit-scrollbar-thumb { background: #3a4f42; border-color: var(--a-bg); }
.admin-app[data-theme="dark"] img { filter: brightness(.94); }
/* The sidebar sits one step below the page, separated by a hairline, instead of blending into it. */
.admin-app[data-theme="dark"] .admin-side { background: #060a08; border-right: 1px solid #1b2620; }
.admin-app[data-theme="dark"] .admin-nav-group { border-top-color: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .45); }
.admin-app[data-theme="dark"] .admin-nav-link { color: rgba(255, 255, 255, .8); }
.admin-app[data-theme="dark"] .admin-nav-link:hover { background: rgba(255, 255, 255, .07); }
.admin-app[data-theme="dark"] .admin-topbar { background: #060a08; border-bottom: 1px solid #1b2620; }
/* Raised surfaces: cards get a top highlight and a visible edge; inputs sit inside the card, one step darker. */
.admin-app[data-theme="dark"] .a-card, .admin-app[data-theme="dark"] .a-metric { background: linear-gradient(180deg, #151f19 0, #121a15 56px); border-color: #2a3a30; }
.admin-app[data-theme="dark"] .a-field, .admin-app[data-theme="dark"] .a-select, .admin-app[data-theme="dark"] .admin-field { background: #0d1410; border-color: #34483c; color: var(--a-ink); }
.admin-app[data-theme="dark"] .a-field::placeholder { color: var(--a-faint); }
.admin-app[data-theme="dark"] .a-table th { background: #151f19; color: #a9bbb0; }
.admin-app[data-theme="dark"] .a-table tbody tr:hover td { background: #172219; }
.admin-app[data-theme="dark"] .a-seg[aria-pressed="true"] { background: #25392d; color: #fff; box-shadow: inset 0 0 0 1px #3f5a49; }
.admin-app[data-theme="dark"] .a-segment { background: #0d1410; border: 1px solid #25342b; }

/* Sino: atividade recente (leads, Pix, segurança, anomalias) com preferências de som e de aviso no navegador. */
.admin-notif-panel { min-width: 300px; max-width: min(92vw, 380px); padding: 0; gap: 0; overflow: hidden; }
.admin-notif-list { display: grid; gap: 2px; padding: 6px; }
.admin-notif-list:has(.admin-notif-empty) { padding: 0; }
.admin-activity { border-top: 1px solid var(--a-border); }
.admin-activity-head { margin: 0; padding: 10px 12px 4px; font: 800 11.5px/1.3 var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: var(--a-muted); }
.admin-activity-list { margin: 0; padding: 0 4px; list-style: none; max-height: min(46vh, 340px); overflow-y: auto; }
.admin-activity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; width: 100%; min-height: 44px; padding: 8px; border: 0; border-radius: 8px; background: none; color: var(--a-text); font: inherit; text-align: left; cursor: pointer; }
.admin-activity-row:hover { background: var(--a-surface-2); } .admin-activity-row:focus-visible { outline: none; box-shadow: var(--a-focus); }
.admin-activity-main { display: grid; min-width: 0; } .admin-activity-main strong { color: var(--a-ink); font-size: 13.5px; } .admin-activity-main .admin-muted { font-size: 12.5px; overflow-wrap: anywhere; }
.admin-activity-when { font-size: 12px; color: var(--a-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-activity-row[data-level="bad"] .admin-activity-main strong { color: var(--a-danger); } .admin-activity-row[data-level="warn"] .admin-activity-main strong { color: var(--a-warn); } .admin-activity-row[data-level="ok"] .admin-activity-main strong { color: var(--a-success); }
.admin-activity-prefs { display: grid; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--a-border-soft); }
.admin-activity-opt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--a-text); }
.admin-activity-btn { min-height: 40px; padding: 0 12px; border: 1px solid var(--a-line-strong); border-radius: 8px; background: var(--a-surface); color: var(--a-brand-ink); font: 600 13px/1.2 var(--font-body); cursor: pointer; }
.admin-activity-btn:hover:not(:disabled) { background: var(--a-surface-2); } .admin-activity-btn:disabled { opacity: .6; cursor: not-allowed; } .admin-activity-btn[hidden] { display: none; }
.admin-badge-dot[data-count]:not([data-count=""])::after { content: attr(data-count); position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #d64545; color: #fff; font: 800 10px/16px var(--font-body); text-align: center; }
.admin-badge-dot[data-count]:not([data-count=""]) { width: 8px; height: 8px; }

/* ---------- admin data sections: compras, vendidos, ao-vivo, mapa, mensagens, catálogo ---------- */
.admin-s { display: grid; gap: 16px; min-width: 0; color: var(--a-text); }
.admin-s *, .admin-s *::before, .admin-s *::after { box-sizing: border-box; }
.admin-s [hidden] { display: none !important; }
.admin-s h3 { margin: 0 0 10px; font: 700 15px/1.3 var(--font-title, inherit); color: var(--a-ink); }
.admin-s code { font-size: 13px; overflow-wrap: anywhere; }

/* toolbar and controls */

.admin-s-period, .admin-s-searchbox, .admin-s-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.admin-s label { font-size: 13px; font-weight: 600; color: var(--a-text); }
.admin-s-field { min-height: 44px; min-width: 0; padding: 0 12px; border: 1.5px solid var(--a-line-strong); border-radius: 10px; background: var(--a-surface); color: var(--a-ink); font: inherit; font-size: 16px; }
.admin-s-field:focus-visible { outline: 2px solid var(--forest-action, #287e43); outline-offset: 2px; border-color: var(--forest-action, #287e43); }
.admin-s-field-error { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--a-danger); font-weight: 600; }
.admin-s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--a-line-strong); border-radius: 10px; background: var(--a-surface); color: var(--a-link-ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.admin-s-btn:hover:not(:disabled) { background: var(--forest-soft, var(--a-surface-3)); border-color: var(--a-line-hover); }
.admin-s-btn:focus-visible { outline: 2px solid var(--forest-action, #287e43); outline-offset: 2px; }
.admin-s-btn:disabled { opacity: .5; cursor: not-allowed; }
.admin-s-btn[aria-pressed="true"] { background: var(--a-solid); border-color: var(--a-solid); color: #fff; }
.admin-s-btn-primary { background: var(--a-solid); border-color: var(--a-solid); color: #fff; }
.admin-s-btn-primary:hover:not(:disabled) { background: var(--a-solid); color: #fff; }

/* states */
.admin-s-state { margin: 0; padding: 28px 16px; border: 1px dashed var(--a-line-strong); border-radius: 12px; text-align: center; color: var(--a-muted); font-size: 14px; }
.admin-s-state-error { display: grid; justify-items: center; gap: 12px; border-color: var(--a-line-hover); color: var(--a-danger); }
.admin-s-state-error p { margin: 0; }

/* pager */
.admin-s-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 14px; }
.admin-s-pager-btns { display: flex; gap: 8px; }

/* messages */
 /* the "● Não lida" chip is the real signal; this is a quiet wash, never a colour-only border */

@media (prefers-reduced-motion: reduce) {
  .admin-s *, .admin-s *::before, .admin-s *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Orders screen polish: wrapping tabs (no carousel), compact KPIs, compact order cards, safe thumbnails ---- */
[data-admin] img { aspect-ratio: 1; object-fit: cover; background: var(--a-surface-3); flex: none; }
.admin-tabs { flex-wrap: wrap; overflow: visible; gap: 8px; padding-bottom: 0; }
.admin-tab { min-height: 42px; padding: 0 12px; font-size: 14px; }
@media (max-width: 599px) { .admin-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-tab { justify-content: space-between; border-radius: 12px; } }
.admin-kpis { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
.admin-kpi { padding: 10px 12px; border-radius: 12px; }
.admin-kpi dd { font-size: 20px; }
.admin-kpi dt { font-size: 12.5px; line-height: 1.25; }
@media (max-width: 599px) { .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-kpi-sales { grid-column: 1 / -1; } }
.admin-order-items { display: flex; align-items: center; gap: 4px; margin-top: 6px; min-width: 0; }
.admin-order-items img, .admin-item-mini { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--a-border); }
.admin-order-items .admin-muted { margin-left: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
@media (max-width: 899px) {
  .admin-data-table tr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 12px; }
  .admin-data-table td[data-label="Pedido"] { grid-column: 1 / 2; }
  .admin-data-table td[data-label="Total"] { grid-column: 2 / 3; text-align: right; justify-items: end; }
  .admin-data-table td[data-label="Total"]::before, .admin-data-table td[data-label="Pagamento"]::before, .admin-data-table td[data-label="Entrega"]::before, .admin-data-table td[data-label="Cliente"]::before, .admin-data-table td[data-label="Pedido"]::before { display: none; }
  .admin-data-table td[data-label="Cliente"] { grid-column: 1 / -1; }
  .admin-data-table td[data-label="Rastreio"], .admin-data-table td[data-label="Frete"] { font-size: 13px; }
  .admin-data-table td[data-label="Rastreio"]:has(.admin-muted), .admin-data-table td[data-label="Frete"] { grid-column: auto; }
}

.admin-order-link { min-height: 40px; display: inline-flex; align-items: center; }

/* ---------- Admin design system (2026-10-04 rebuild) ----------
   One system for every section: neutral surfaces, one brand accent (forest green), colour only for state and data.
   Spacing steps 4 · 8 · 12 · 16 · 24 · 32 · 48. Type: page 26 / card 17 / KPI 28 and 22 / text 14 / caption 12.5.
   Layout responds to the width of the content column (container "admin"), so the sidebar is already accounted for. */
.admin-app {
  --a-s1: 4px; --a-s2: 8px; --a-s3: 12px; --a-s4: 16px; --a-s5: 24px; --a-s6: 32px; --a-s7: 48px;
  --a-fs-page: 26px; --a-fs-card: 17px; --a-fs-kpi: 28px; --a-fs-kpi-sm: 21px; --a-fs-text: 14px; --a-fs-cap: 12.5px;
  --a-chart-revenue: #1f8a4c; --a-chart-visitors: #2f6fdd; --a-chart-orders: #7a55d6; --a-chart-carts: #d08a12; --a-chart-abandon: #c2453b; --a-chart-recovered: #0f8f8f;
  --a-focus: 0 0 0 2px var(--a-surface), 0 0 0 4px var(--a-action);
}
.admin-app ::selection { background: #cfe9d6; color: var(--a-ink); }
.admin-main { scrollbar-width: thin; scrollbar-color: #c3d1c7 transparent; }
.admin-main ::-webkit-scrollbar { width: 10px; height: 10px; }
.admin-main ::-webkit-scrollbar-thumb { background: var(--a-line-strong); border-radius: 8px; border: 2px solid var(--a-bg); }
.a-muted { color: var(--a-muted); font-size: var(--a-fs-cap); }
.a-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.a-icon { flex: none; vertical-align: middle; }
.a-right { text-align: right; }
.a-num { font-variant-numeric: tabular-nums; }
.a-stack { display: grid; gap: var(--a-s4); min-width: 0; }
.a-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a-s3); }

/* ----- page head ----- */
.a-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--a-s3) var(--a-s5); margin-bottom: var(--a-s4); }
.a-pagetitle { margin: 0; font: 800 var(--a-fs-page)/1.15 var(--font-title); letter-spacing: -.012em; color: var(--a-ink); }
.a-pagehead .a-muted { margin: 4px 0 0; font-size: 14px; }
.a-pagehead-right { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a-s3); }

/* ----- 12-column grid ----- */
.a-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--a-s4); align-items: start; }
.a-grid > * { grid-column: span 12; min-width: 0; }
@container admin (min-width: 760px) { .a-grid > .a-c6, .a-grid > .a-c4, .a-grid > .a-c3 { grid-column: span 6; } }
@container admin (min-width: 1040px) {
  .a-grid > .a-c8 { grid-column: span 8; } .a-grid > .a-c7 { grid-column: span 7; } .a-grid > .a-c6 { grid-column: span 6; }
  .a-grid > .a-c5 { grid-column: span 5; } .a-grid > .a-c4 { grid-column: span 4; } .a-grid > .a-c3 { grid-column: span 3; }
}

/* ----- card ----- */
.a-card { min-width: 0; border: 1px solid var(--a-border); border-radius: var(--a-radius-md); background: var(--a-surface); box-shadow: var(--a-shadow-sm); }
.a-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--a-s2) var(--a-s4); padding: var(--a-s4) var(--a-s4) 0; }
.a-card-title { margin: 0; font: 800 var(--a-fs-card)/1.25 var(--font-title); color: var(--a-ink); letter-spacing: -.005em; }
.a-card-head .a-muted { margin: 2px 0 0; }
.a-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a-s2); }
.a-card-body { padding: var(--a-s4); min-width: 0; }
.a-card-flush .a-card-body { padding: 0; }
.a-card-flush .a-card-head { padding-bottom: var(--a-s3); }
/* Padded block inside a flush card (metrics above an edge-to-edge table). */
.a-card-pad { padding: 0 var(--a-s4) var(--a-s4); min-width: 0; }
.a-link { font-size: 13px; font-weight: 700; color: var(--a-link-ink); text-decoration: none; }
.a-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.a-link-btn { border: 0; background: none; padding: 0 var(--a-s1); color: var(--a-link-ink); font: 700 13px/1.2 var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ----- buttons, fields ----- */
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 var(--a-s4); border: 1px solid transparent; border-radius: var(--a-radius-sm); font: 700 13.5px/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.a-btn:focus-visible, .a-seg:focus-visible, .a-icon-btn:focus-visible, .a-th-btn:focus-visible, .a-chartcanvas:focus-visible { outline: none; box-shadow: var(--a-focus); }
.a-btn:disabled { opacity: .5; cursor: not-allowed; }
.a-btn-sm { min-height: 34px; padding: 0 var(--a-s3); font-size: 13px; }
.a-btn-primary { background: var(--a-action); color: var(--a-on-action, #fff); }
.a-btn-primary:hover:not(:disabled) { background: var(--a-action-hover); }
.a-btn-secondary { background: var(--a-surface); border-color: var(--a-line-strong); color: var(--a-brand-ink); }
.a-btn-secondary:hover:not(:disabled) { background: var(--a-surface-2); border-color: var(--a-line-hover); }
.a-btn-ghost { background: transparent; color: var(--a-link-ink); }
.a-btn-ghost:hover:not(:disabled) { background: var(--a-surface-3); }
.a-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid transparent; border-radius: var(--a-radius-sm); background: transparent; color: var(--a-muted); cursor: pointer; }
.a-icon-btn:hover { background: var(--a-surface-3); color: var(--a-ink); }
.a-field, .a-select { min-height: 40px; padding: 0 var(--a-s3); border: 1px solid var(--a-line-strong); border-radius: var(--a-radius-sm); background: var(--a-surface); color: var(--a-ink); font: 400 14px/1.2 var(--font-body); }
.a-field:focus, .a-select:focus { outline: none; border-color: var(--a-action); box-shadow: var(--a-focus); }
.a-search { position: relative; display: inline-flex; align-items: center; min-width: 0; flex: 1 1 220px; max-width: 360px; }
.a-search .a-icon { position: absolute; left: 12px; color: var(--a-muted); pointer-events: none; }
.a-search .a-field { width: 100%; padding-left: 36px; }
.a-field-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--a-muted); }
.a-field-inline input { min-height: 36px; padding: 0 var(--a-s2); border: 1px solid var(--a-line-strong); border-radius: var(--a-radius-sm); font: inherit; color: var(--a-ink); background: var(--a-surface); }
.a-field-error { margin: 0; color: var(--a-danger); font-size: 13px; font-weight: 600; }
.a-field-error[hidden] { display: none; }
.a-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--a-text); cursor: pointer; }
.a-check input { width: 16px; height: 16px; accent-color: var(--a-action); }

/* ----- period bar, segmented control ----- */
.a-periodbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a-s2) var(--a-s3); }
.a-segment { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--a-surface-3); }
.a-seg { min-height: 32px; padding: 0 var(--a-s3); border: 0; border-radius: 8px; background: transparent; color: var(--a-text); font: 600 13px/1.2 var(--font-body); cursor: pointer; transition: background-color .15s, color .15s; }
.a-seg:hover { background: rgba(255, 255, 255, .7); }
.a-seg[aria-pressed="true"] { background: var(--a-surface); color: var(--a-ink); box-shadow: 0 1px 2px rgba(16, 42, 24, .14); font-weight: 700; }
/* Phones: the eight periods stay on one swipeable line instead of stacking three rows above every screen. */
@media (max-width: 719px) {
  /* The swipeable strip has a wide min-content: every ancestor must be allowed to shrink below it, or it widens the whole page. */
  .a-stack { grid-template-columns: minmax(0, 1fr); }
  .a-pagehead-right { min-width: 0; max-width: 100%; flex: 1 1 100%; }
  .a-pagehead-right > [data-slot="period"] { display: block; min-width: 0; max-width: 100%; flex: 1 1 100%; }
  .a-periodbar { min-width: 0; max-width: 100%; flex: 1 1 100%; }
  .a-periodbar > .a-segment { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .a-periodbar > .a-segment::-webkit-scrollbar { display: none; }
  .a-periodbar > .a-segment .a-seg { flex: none; white-space: nowrap; scroll-snap-align: start; }
}
.a-period-custom { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--a-s2); }
.a-period-custom[hidden] { display: none; }

/* ----- metric card ----- */
.a-metrics { display: grid; gap: var(--a-s3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.a-metrics-sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@container admin (min-width: 1000px) { .a-metrics:not(.a-metrics-sm) { grid-template-columns: repeat(5, minmax(0, 1fr)); } .a-metrics-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.a-metric { position: relative; display: grid; align-content: start; gap: 2px; min-width: 0; padding: var(--a-s3) var(--a-s4); border: 1px solid var(--a-border); border-radius: var(--a-radius-md); background: var(--a-surface); box-shadow: var(--a-shadow-sm); }
.a-metric-head { display: flex; align-items: center; gap: 6px; color: var(--a-muted); font-size: 13px; font-weight: 600; }
.a-metric { container-type: inline-size; }
.a-metric-main { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--a-s2); min-width: 0; }
.a-metric-value { min-width: 0; white-space: nowrap; font: 800 clamp(19px, 12.5cqi, var(--a-fs-kpi))/1.15 var(--font-title); letter-spacing: -.015em; color: var(--a-ink); font-variant-numeric: tabular-nums; }
.a-metric-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--a-s2); min-height: 18px; }
.a-metric-hint { font-size: var(--a-fs-cap); color: var(--a-muted); }
.a-delta { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.a-delta[data-tone="ok"] { color: var(--a-success); } .a-delta[data-tone="bad"] { color: var(--a-danger); } .a-delta[data-tone="neutral"] { color: var(--a-muted); }
.a-spark { flex: none; margin-bottom: 3px; opacity: .95; }
/* Cartão estreito: o valor tem prioridade, o sparkline some em vez de sobrepor o número. */
@container (max-width: 200px) { .a-spark { display: none; } }
.a-spark path { fill: none; stroke: var(--a-chart-revenue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-metric-sm { padding: 10px var(--a-s3); box-shadow: none; background: var(--a-surface-2); }
.a-metric-sm .a-metric-value { font-size: clamp(17px, 11cqi, var(--a-fs-kpi-sm)); }
.a-metric[data-state="empty"] .a-metric-value, .a-metric[data-state="disabled"] .a-metric-value { color: var(--a-faint); }
.a-tip { position: relative; display: inline-grid; place-items: center; color: var(--a-faint); cursor: help; border-radius: 50%; }
.a-tip:hover, .a-tip:focus-visible { color: var(--a-action); outline: none; }
.a-tip::after { content: attr(data-tip); position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 8px); width: max-content; max-width: 240px; padding: 8px 10px; border-radius: 8px; background: var(--a-tooltip-bg); color: #fff; font: 500 12.5px/1.4 var(--font-body); text-align: left; box-shadow: var(--a-shadow-md); opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .14s, transform .14s; }
.a-tip:hover::after, .a-tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* ----- badges ----- */
.a-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 999px; background: var(--a-surface-3); color: var(--a-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.a-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.a-badge[data-tone="info"] { background: var(--a-info-bg); color: var(--a-info); }
.a-badge[data-tone="ok"] { background: var(--a-success-bg); color: var(--a-ok); }
.a-badge[data-tone="warn"] { background: var(--a-warn-bg); color: var(--a-warn); }
.a-badge[data-tone="bad"] { background: var(--a-danger-bg); color: var(--a-danger); }
.a-badge[data-tone="active"] { background: var(--a-surface-3); color: var(--a-link-ink); }
.a-badge[data-tone="neutral"] { background: var(--a-surface-3); color: var(--a-muted); }

/* ----- live indicator ----- */
.a-live { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--a-border); border-radius: 999px; background: var(--a-surface); font-size: 12.5px; font-weight: 600; color: var(--a-text); }
.a-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa99f; }
.a-live[data-tone="ok"] .a-live-dot { background: #1fbf5b; box-shadow: 0 0 0 0 rgba(31, 191, 91, .5); animation: a-pulse 2s ease-out infinite; }
.a-live[data-tone="bad"] { color: var(--a-danger); border-color: var(--a-line-hover); background: var(--a-danger-bg); }
.a-live[data-tone="bad"] .a-live-dot { background: var(--a-danger); }
@keyframes a-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 191, 91, .5); } 70% { box-shadow: 0 0 0 7px rgba(31, 191, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 191, 91, 0); } }

/* ----- states ----- */
.a-empty { display: grid; justify-items: center; gap: var(--a-s2); padding: var(--a-s6) var(--a-s4); text-align: center; }
.a-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--a-surface-3); color: var(--a-action); }
.a-empty-title { margin: 0; font-weight: 700; color: var(--a-ink); font-size: 15px; }
.a-empty-text { margin: 0; max-width: 420px; color: var(--a-muted); font-size: 14px; }
.a-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--a-s3); padding: var(--a-s3) var(--a-s4); border-radius: var(--a-radius-sm); background: var(--a-danger-bg); color: var(--a-danger); font-weight: 600; }
.a-error span { display: inline-flex; align-items: center; gap: 8px; }
.a-skel { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--a-surface-3) 25%, var(--a-surface-2) 50%, var(--a-surface-3) 75%); background-size: 200% 100%; animation: a-shimmer 1.3s linear infinite; }
.a-skel-line { height: 12px; } .a-skel-value { height: 28px; width: 62%; margin: 6px 0; } .a-skel-row { height: 42px; border-radius: 8px; }
.a-skel-rows { display: grid; gap: var(--a-s2); }
@keyframes a-shimmer { to { background-position: -200% 0; } }

/* ----- table ----- */
.a-tablewrap { overflow-x: auto; min-width: 0; }
.a-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--a-fs-text); }
.a-table th { position: sticky; top: 0; z-index: 1; padding: 10px var(--a-s3); background: var(--a-surface-2); border-bottom: 1px solid var(--a-border); text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--a-muted); white-space: nowrap; }
.a-table td { padding: 11px var(--a-s3); border-bottom: 1px solid var(--a-border-soft); vertical-align: middle; color: var(--a-text); }
.a-table tbody tr:last-child td { border-bottom: 0; }
.a-table tbody tr[data-open], .a-table tbody tr[data-row] { cursor: pointer; }
.a-table tbody tr:hover td { background: var(--a-surface-2); }
.a-table tbody tr[data-selected] td { background: var(--a-surface-3); }
.a-table th.a-right, .a-table td.a-right { text-align: right; }
/* Money and counts never break mid-value ("R$ / 20.705,20"); long ids wrap inside their own column instead of widening the table. */
.a-table td.a-right, .a-nowrap { white-space: nowrap; }
.a-table .a-ordno { display: block; max-width: 19ch; overflow-wrap: anywhere; font-size: 12.5px; letter-spacing: .01em; }
.a-table .a-cell-main { min-width: 190px; }
.a-th-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; border-radius: 4px; }
.a-th-btn:hover { color: var(--a-ink); }
.a-sort { min-width: 10px; color: var(--a-action); }
.a-cell-main { display: flex; align-items: center; gap: var(--a-s3); min-width: 0; }
.a-cell-main strong { display: block; color: var(--a-ink); font-weight: 700; overflow-wrap: anywhere; }
.a-cell-main .a-muted { display: block; }
.a-thumb { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: cover; background: var(--a-surface-2); border: 1px solid var(--a-border); }
.a-thumb-empty { display: inline-grid; place-items: center; color: var(--a-faint); }
.a-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--a-s3); padding: var(--a-s3) var(--a-s4); border-top: 1px solid var(--a-border-soft); }
.a-pager-btns { display: inline-flex; gap: var(--a-s2); }
@media (max-width: 719px) {
  /* Cabeçalho vira uma faixa de chips só com as colunas ordenáveis, para não perder a ordenação no celular. */
  .a-table thead, .a-table thead tr { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--a-s2) var(--a-s2) 0; border: 0; background: none; }
  .a-table thead th { position: static; display: block; padding: 0; border: 0; background: none; }
  .a-table thead th:not(:has(.a-th-btn)), .a-table thead:not(:has(.a-th-btn)) { display: none; }
  .a-table thead .a-th-btn { min-height: 36px; padding: 0 var(--a-s3); border: 1px solid var(--a-border); border-radius: 999px; background: var(--a-surface); }
  .a-table, .a-table tbody { display: block; }
  .a-table tbody { display: grid; gap: var(--a-s2); padding: var(--a-s2); }
  .a-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--a-s3); padding: var(--a-s3); border: 1px solid var(--a-border); border-radius: var(--a-radius-sm); background: var(--a-surface); }
  .a-table td { display: grid; gap: 1px; padding: 0; border: 0; min-width: 0; text-align: left !important; }
  .a-table td[data-label]::before { content: attr(data-label); font-size: 11.5px; font-weight: 700; color: var(--a-muted); }
  .a-table td:first-child { grid-column: 1 / -1; }
  .a-table tbody tr:hover td { background: none; }
}

/* ----- toolbar and chips ----- */
.a-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a-s2) var(--a-s3); padding: var(--a-s3) var(--a-s4); border-bottom: 1px solid var(--a-border-soft); }
.a-toolbar-spacer { flex: 1 1 auto; }
.a-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: var(--a-s2) var(--a-s4) 0; }
.a-chip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--a-surface-3); color: var(--a-link-ink); font-size: 12.5px; font-weight: 700; }
.a-chip-x { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.a-chip-x:hover { background: rgba(20, 80, 44, .14); }
.a-pop { position: relative; }
.a-pop > summary { list-style: none; cursor: pointer; }
.a-pop > summary::-webkit-details-marker { display: none; }
.a-pop-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(320px, 86vw); display: grid; gap: var(--a-s3); padding: var(--a-s4); border: 1px solid var(--a-border); border-radius: var(--a-radius-md); background: var(--a-surface); box-shadow: var(--a-shadow-md); }
.a-pop-panel label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--a-text); }

/* ----- charts ----- */
.a-chartbox { position: relative; }
.a-chartcanvas { position: relative; border-radius: var(--a-radius-sm); }
.a-chartcanvas:focus-visible { outline: none; box-shadow: var(--a-focus); }
.a-linechart, .a-barline { display: block; width: 100%; height: 260px; overflow: visible; }
.a-barline { height: 210px; }
.a-linechart .a-gl, .a-barline .a-gl { stroke: var(--a-border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.a-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.a-axis { fill: var(--a-muted); font: 500 11.5px var(--font-body); }
.a-cross { stroke: var(--a-line-hover); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.a-bar { fill: #7fbf95; transition: fill .15s; }
.a-bar:hover { fill: var(--a-action); }
.a-ticket-line { fill: none; stroke: var(--a-chart-carts); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.a-ticket-dot { fill: var(--a-surface); stroke: var(--a-chart-carts); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.a-tooltip { position: absolute; z-index: 15; top: 8px; min-width: 190px; padding: 10px 12px; border-radius: 10px; background: var(--a-tooltip-bg); color: #fff; box-shadow: var(--a-shadow-md); pointer-events: none; font-size: 12.5px; }
.a-tooltip[hidden] { display: none; }
.a-tooltip strong { display: block; margin-bottom: 4px; font-size: 13px; }
.a-tooltip dl { display: grid; gap: 3px; margin: 0; }
.a-tooltip dl div { display: flex; justify-content: space-between; gap: var(--a-s4); }
.a-tooltip dt { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .78); }
.a-tooltip dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.a-swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.a-legend { display: flex; flex-wrap: wrap; gap: var(--a-s2); margin-bottom: var(--a-s3); }
.a-legend-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 var(--a-s3) 0 10px; border: 1px solid var(--a-border); border-radius: 999px; background: var(--a-surface); color: var(--a-text); font: 600 12.5px/1 var(--font-body); cursor: pointer; transition: background-color .15s, border-color .15s, opacity .15s; }
.a-legend-btn:hover:not(:disabled) { background: var(--a-surface-2); }
.a-legend-btn[aria-pressed="false"] { opacity: .55; }
.a-legend-btn[aria-pressed="true"] { border-color: var(--a-line-hover); }
.a-legend-btn:disabled { cursor: not-allowed; opacity: .45; border-style: dashed; }
.a-legend-btn:focus-visible { outline: none; box-shadow: var(--a-focus); }
.a-chartnote { margin: var(--a-s2) 0 0; }

/* ----- checkout flow ----- */
.a-flow { display: grid; gap: var(--a-s2); margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.a-flow-step { position: relative; display: grid; align-content: start; gap: 4px; padding: var(--a-s3); border: 1px solid var(--a-border); border-radius: var(--a-radius-sm); background: var(--a-surface-2); }
.a-flow-label { font-size: 12.5px; font-weight: 700; color: var(--a-muted); }
.a-flow-count { font: 800 24px/1.1 var(--font-title); color: var(--a-ink); font-variant-numeric: tabular-nums; }
.a-flow-meter { height: 5px; border-radius: 3px; background: var(--a-surface-3); overflow: hidden; }
.a-flow-meter span { display: block; height: 100%; border-radius: 3px; background: var(--a-action); transition: transform .3s; transform-origin: left; }
.a-flow-meta { display: grid; gap: 1px; font-size: 12px; color: var(--a-text); }
.a-flow-drop { display: inline-flex; align-items: center; gap: 4px; color: var(--a-danger); font-weight: 700; }
@container admin (min-width: 1100px) {
  .a-flow { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; }
  .a-flow-step { border-radius: 0; border-right-width: 0; }
  .a-flow-step:first-child { border-radius: var(--a-radius-sm) 0 0 var(--a-radius-sm); }
  .a-flow-step:last-child { border-radius: 0 var(--a-radius-sm) var(--a-radius-sm) 0; border-right-width: 1px; }
  .a-flow-step + .a-flow-step::before { content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; background: var(--a-surface-2); border-top: 1px solid var(--a-border); border-right: 1px solid var(--a-border); transform: translateY(-50%) rotate(45deg); z-index: 1; }
}

/* ----- timeline ----- */
.a-timeline { --tl-w: 52px; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.a-tl-wide { --tl-w: 84px; }
.a-timeline li { position: relative; display: grid; grid-template-columns: var(--tl-w) minmax(0, 1fr); gap: var(--a-s3); padding: 0 0 var(--a-s4); }
.a-timeline li::before { content: ""; position: absolute; left: calc(var(--tl-w) + 12px); top: 18px; bottom: -2px; width: 2px; background: var(--a-border); }
.a-timeline li:last-child { padding-bottom: 0; } .a-timeline li:last-child::before { display: none; }
.a-tl-time { font-size: 12.5px; font-weight: 700; color: var(--a-muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.a-tl-body { position: relative; display: grid; gap: 1px; padding-left: var(--a-s4); }
.a-tl-body::before { content: ""; position: absolute; left: -5px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--a-line-hover); border: 2px solid var(--a-surface); box-sizing: content-box; margin-left: -2px; }
.a-timeline li[data-tone="ok"] .a-tl-body::before { background: var(--a-success); }
.a-timeline li[data-tone="warn"] .a-tl-body::before { background: #d08a12; }
.a-timeline li[data-tone="bad"] .a-tl-body::before { background: var(--a-danger); }
.a-timeline li[data-tone="active"] .a-tl-body::before { background: var(--a-action); }
.a-tl-body strong { color: var(--a-ink); font-size: 14px; }

/* ----- drawer ----- */
.a-drawer-wrap { position: fixed; inset: 0; z-index: 60; }
.a-drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 24, 14, .45); opacity: 0; transition: opacity .18s; }
.a-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 460px); display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--a-surface); box-shadow: -12px 0 40px rgba(8, 24, 14, .22); transform: translateX(24px); opacity: 0; transition: transform .2s cubic-bezier(.16, 1, .3, 1), opacity .18s; outline: none; }
.a-drawer-wrap.is-open .a-drawer-backdrop { opacity: 1; } .a-drawer-wrap.is-open .a-drawer { transform: none; opacity: 1; }
.a-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--a-s3); padding: var(--a-s4) var(--a-s4) var(--a-s3); border-bottom: 1px solid var(--a-border-soft); }
.a-drawer-head h2 { margin: 0; font: 800 18px/1.25 var(--font-title); color: var(--a-ink); }
.a-drawer-head p { margin: 2px 0 0; }
.a-drawer-body { overflow-y: auto; padding: var(--a-s4); display: grid; gap: var(--a-s4); align-content: start; }
.a-drawer-body h3 { margin: 0 0 var(--a-s2); font: 800 13px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--a-muted); }
.a-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--a-s4); margin: 0; font-size: 14px; }
.a-kv dt { color: var(--a-muted); } .a-kv dd { margin: 0; color: var(--a-ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
/* Status facts read as label → value on one line (Integrações); on phones the value drops under its label. */
.a-kv-left { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); margin: var(--a-s3) 0 0; } .a-kv-left dd { text-align: left; }
@media (max-width: 719px) { .a-kv-left { grid-template-columns: minmax(0, 1fr); gap: 0; } .a-kv-left dd { margin-bottom: var(--a-s2); } }
/* A titled group inside a card: more room above than below, so it belongs to what follows. -pad is for flush (table) cards. */
.a-subhead { margin: var(--a-s5) 0 var(--a-s2); font: 700 13px/1.3 var(--font-body); color: var(--a-ink); }
.a-subhead-first { margin-top: 0; }
.a-subhead-pad { margin: 0; padding: var(--a-s5) var(--a-s4) var(--a-s2); border-top: 1px solid var(--a-border-soft); }
.a-bullets { display: grid; gap: 4px; margin: 0 0 var(--a-s3); padding-left: 1.15em; color: var(--a-text); }
.a-bullets li::marker { color: var(--a-faint); }
/* An identifier under its human name (template ids): real code, so monospace, but quiet. */
.a-code { display: block; margin-top: 2px; font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--a-muted); overflow-wrap: anywhere; }

/* ----- two-pane / three-pane layouts, ranking, bars ----- */
.a-hbars { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.a-hbars li { display: grid; grid-template-columns: minmax(80px, 1.1fr) minmax(0, 2fr) auto; align-items: center; gap: var(--a-s3); font-size: 14px; }
.a-hbars .a-hb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--a-text); }
.a-hb-track { height: 8px; border-radius: 4px; background: var(--a-surface-3); overflow: hidden; }
.a-hb-track span { display: block; height: 100%; border-radius: 4px; background: var(--a-action); }
.a-stat-row { display: flex; flex-wrap: wrap; gap: var(--a-s2) var(--a-s5); }
.a-stat { display: grid; gap: 1px; } .a-stat b { font: 800 20px/1.15 var(--font-title); color: var(--a-ink); font-variant-numeric: tabular-nums; } .a-stat span { font-size: 12.5px; color: var(--a-muted); }

@media (prefers-reduced-motion: reduce) {
  .a-skel, .a-live-dot { animation: none !important; }
  .a-drawer, .a-drawer-backdrop, .a-flow-meter span, .a-bar, .a-tip::after { transition: none !important; }
}

/* ----- overview pieces ----- */
.a-lead { margin: 0; max-width: 520px; font-size: 14.5px; color: var(--a-muted); line-height: 1.5; }
.a-center { text-align: center; margin: 0; }
.a-rank { display: grid; gap: var(--a-s3); margin: 0; padding: 0; list-style: none; }
.a-rank li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: var(--a-s3); }
.a-rank-pos { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--a-surface-3); color: var(--a-link-ink); font-size: 12px; font-weight: 800; }
.a-rank-plain li { grid-template-columns: auto minmax(0, 1fr) auto; }
.a-rank-body { display: grid; min-width: 0; }
.a-rank-body strong { color: var(--a-ink); font-size: 14px; overflow-wrap: anywhere; }
.a-activity { display: grid; margin: 0; padding: 0; list-style: none; }
.a-activity li + li { border-top: 1px solid var(--a-border-soft); }
.a-activity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--a-s3); width: 100%; padding: 10px 6px; border: 0; border-radius: 8px; background: none; text-align: left; font: inherit; color: var(--a-text); cursor: pointer; }
.a-activity-row:hover { background: var(--a-surface-2); }
.a-activity-row:focus-visible { outline: none; box-shadow: var(--a-focus); }
.a-activity-main { display: grid; min-width: 0; } .a-activity-main strong { color: var(--a-ink); }
.a-activity-total { font-weight: 700; color: var(--a-ink); }
.a-insights { display: grid; gap: var(--a-s3); align-content: start; }
.a-flow-3 { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.a-statbar { padding-top: var(--a-s3); margin-top: var(--a-s2); border-top: 1px solid var(--a-border-soft); }

/* ----- tempo real: maps, stage tiles, feed ----- */
.a-mapbox { position: relative; }
.a-map { display: block; width: 100%; height: auto; }
.a-map-br { max-height: 540px; }
.a-sea { fill: var(--a-surface-2); }
.a-graticule { fill: none; stroke: var(--a-border); stroke-width: .5; vector-effect: non-scaling-stroke; }
.a-shape { stroke: var(--a-surface); stroke-width: .6; vector-effect: non-scaling-stroke; cursor: pointer; transition: opacity .12s; }
.a-shape:hover { stroke: var(--a-brand-ink); stroke-width: 1.4; }
.a-shape:focus-visible { outline: none; stroke: var(--a-brand-ink); stroke-width: 2; }
.a-shape.is-selected { stroke: var(--a-ink); stroke-width: 2; }
.a-map-label { font: 700 9.5px var(--font-body); fill: var(--a-ink); pointer-events: none; paint-order: stroke; stroke: rgba(255, 255, 255, .7); stroke-width: 2px; }
.a-legend-scale { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: var(--a-s2); font-size: 12px; color: var(--a-muted); }
.a-ls { width: 22px; height: 10px; border-radius: 2px; border: 1px solid rgba(16, 42, 24, .12); }
.a-maprank { margin-top: var(--a-s4); padding-top: var(--a-s3); border-top: 1px solid var(--a-border-soft); display: grid; gap: var(--a-s2); }
.a-maprank h3 { margin: 0; font: 800 12.5px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--a-muted); }
.a-maprank .a-row { justify-content: space-between; }
.a-maptip { position: absolute; z-index: 40; pointer-events: none; min-width: 180px; }
.a-realtime { position: relative; }
.a-stagetiles { display: grid; gap: var(--a-s2); margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.a-stagetile { display: grid; justify-items: start; gap: 6px; width: 100%; padding: var(--a-s3); border: 1px solid var(--a-border); border-radius: var(--a-radius-sm); background: var(--a-surface-2); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background-color .15s; }
.a-stagetile:hover { border-color: var(--a-line-hover); background: var(--a-surface-2); }
.a-stagetile:focus-visible { outline: none; box-shadow: var(--a-focus); }
.a-stagetile b { font: 800 24px/1.1 var(--font-title); color: var(--a-ink); font-variant-numeric: tabular-nums; }
.a-feed { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; max-height: 360px; overflow-y: auto; }
.a-feed li { display: grid; grid-template-columns: 48px 64px minmax(0, 1fr); gap: var(--a-s3); padding: 8px 4px; border-bottom: 1px solid var(--a-border-soft); font-size: 14px; }
.a-feed li:last-child { border-bottom: 0; }
.a-feed-who { font-weight: 700; color: var(--a-brand-ink); font-variant-numeric: tabular-nums; }
.a-feed li[data-tone="warn"] span:last-child { color: var(--a-warn); }
.a-feed li[data-tone="active"] span:last-child { color: var(--a-link-ink); font-weight: 600; }
.a-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

/* ----- product panel / cards / ranking ----- */
.a-product-head { display: flex; align-items: center; gap: var(--a-s4); }
.a-product-head .a-thumb { width: 72px; height: 72px; border-radius: 12px; }
.a-product-id { display: grid; gap: 4px; min-width: 0; }
.a-product-id h3 { margin: 0; font: 800 18px/1.25 var(--font-title); color: var(--a-ink); overflow-wrap: anywhere; letter-spacing: normal; text-transform: none; }
.a-metrics-3 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.a-h3 { margin: 0 0 var(--a-s2); font: 800 12.5px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--a-muted); }
.a-copyhost { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.a-linkbox { min-width: 220px; }
.a-productgrid { display: grid; gap: var(--a-s4); grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); padding: var(--a-s4); }
.a-pcard { position: relative; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--a-border); border-radius: var(--a-radius-md); background: var(--a-surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.a-pcard:hover { border-color: var(--a-line-hover); box-shadow: var(--a-shadow-md); }
.a-pcard-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--a-surface-2); border: 0; padding: 0; cursor: pointer; }
.a-pcard-img.a-thumb-empty { display: grid; place-items: center; color: var(--a-faint); }
.a-pcard-body { display: grid; gap: 6px; padding: var(--a-s3); align-content: start; }
.a-pcard-body strong { color: var(--a-ink); font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.a-pcard-price { font-weight: 800; color: var(--a-ink); }
.a-pcard-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--a-s3); margin: 0; font-size: 12.5px; }
.a-pcard-stats dt { color: var(--a-muted); } .a-pcard-stats dd { margin: 0; text-align: right; font-weight: 700; color: var(--a-ink); font-variant-numeric: tabular-nums; }
.a-pcard-menu { position: absolute; top: 8px; right: 8px; }
.a-rowmenu { position: relative; display: inline-block; }
.a-pcard-menu > summary, .a-rowmenu > summary { list-style: none; }
.a-pcard-menu > summary::-webkit-details-marker, .a-rowmenu > summary::-webkit-details-marker { display: none; }
.a-menu-list { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; min-width: 190px; display: grid; padding: 4px; border: 1px solid var(--a-border); border-radius: var(--a-radius-sm); background: var(--a-surface); box-shadow: var(--a-shadow-md); }
.a-menu-list button, .a-menu-list a { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 0 var(--a-s3); border: 0; border-radius: 6px; background: none; color: var(--a-text); font: 600 13px/1 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.a-menu-list button:hover, .a-menu-list a:hover { background: var(--a-surface-2); }
.a-pcard-menu .a-icon-btn { background: rgba(255, 255, 255, .92); border-color: var(--a-border); }
.a-viewtoggle { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--a-surface-3); }
.a-split { display: grid; gap: var(--a-s4); align-items: start; }
@container admin (min-width: 1040px) { .a-split { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); } }
.a-picklist { display: grid; gap: 2px; margin: 0; padding: var(--a-s2); list-style: none; max-height: 560px; overflow-y: auto; }
.a-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--a-s3); width: 100%; padding: 8px var(--a-s2); border: 1px solid transparent; border-radius: var(--a-radius-sm); background: none; text-align: left; font: inherit; color: var(--a-text); cursor: pointer; }
.a-pick:hover { background: var(--a-surface-2); } .a-pick[aria-current="true"] { background: var(--a-surface-3); border-color: var(--a-line-hover); }
.a-pick:focus-visible { outline: none; box-shadow: var(--a-focus); }
.a-pick strong { display: block; color: var(--a-ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-podium { display: grid; gap: var(--a-s3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.a-podium-card { position: relative; display: grid; gap: var(--a-s3); padding: var(--a-s4); border: 1px solid var(--a-border); border-radius: var(--a-radius-md); background: var(--a-surface); box-shadow: var(--a-shadow-sm); }
.a-podium-card[data-pos="1"] { border-color: #d8bf5a; background: #fffdf4; }
.a-podium-pos { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--a-surface-3); color: var(--a-link-ink); font: 800 14px/1 var(--font-title); }
.a-podium-card[data-pos="1"] .a-podium-pos { background: #f1e3a6; color: #6b5200; }
.a-podium-card[data-pos="2"] .a-podium-pos { background: var(--a-surface-3); color: var(--a-muted); }
.a-podium-card[data-pos="3"] .a-podium-pos { background: #f0dcc9; color: #6a4320; }
.a-podium-top { display: flex; align-items: center; gap: var(--a-s3); }
.a-podium-top .a-thumb { width: 56px; height: 56px; border-radius: 10px; }
.a-podium-name { display: grid; min-width: 0; } .a-podium-name strong { color: var(--a-ink); overflow-wrap: anywhere; }
.a-podium-revenue { font: 800 24px/1.1 var(--font-title); color: var(--a-ink); font-variant-numeric: tabular-nums; }

/* ----- pipeline, inbox, customers, reports ----- */
.a-table td > strong, .a-table td > .a-muted { display: block; }
.a-table td .a-cell-main strong, .a-table td .a-cell-main .a-muted { display: block; }
.a-pipeline { display: grid; gap: var(--a-s2); margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.a-pipe-step { display: grid; align-content: start; gap: 4px; padding: var(--a-s3); border: 1px solid var(--a-border); border-radius: var(--a-radius-sm); background: var(--a-surface-2); }
.a-pipe-step[data-available="false"] { border-style: dashed; background: transparent; }
.a-pipe-step[data-available="false"] .a-flow-count { color: var(--a-faint); }
.a-avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--a-surface-3); color: var(--a-link-ink); font: 800 13px/1 var(--font-title); }
.a-cust-head { display: flex; align-items: center; gap: var(--a-s4); }
.a-cust-head .a-avatar { width: 56px; height: 56px; font-size: 18px; }
.a-cust-id { display: grid; gap: 4px; min-width: 0; }
.a-cust-id h3 { margin: 0; font: 800 18px/1.25 var(--font-title); color: var(--a-ink); letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; }
.a-orderlist { display: grid; margin: 0; padding: 0; list-style: none; }
.a-orderlist li + li { border-top: 1px solid var(--a-border-soft); }
.a-orderrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--a-s3); width: 100%; padding: 10px 4px; border: 0; border-radius: 8px; background: none; text-align: left; font: inherit; color: var(--a-text); cursor: pointer; }
.a-orderrow:hover { background: var(--a-surface-2); }
.a-seg-help { margin: 0; padding: var(--a-s2) var(--a-s4) 0; }
.a-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--a-action); color: #fff; font-size: 11px; font-weight: 800; }
.a-count[hidden] { display: none; }
.a-reports { display: grid; gap: var(--a-s4); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.a-inbox { display: grid; gap: 0; border: 1px solid var(--a-border); border-radius: var(--a-radius-md); background: var(--a-surface); box-shadow: var(--a-shadow-sm); overflow: hidden; min-height: 560px; }
.a-inbox[hidden] { display: none; }
.a-inbox-count { margin: 0; padding: 0 var(--a-s4) var(--a-s2); font-size: 12.5px; }
/* WhatsApp conversation: the customer on the left, the store on the right; status is always a word under the bubble. */
.a-chat { display: grid; gap: var(--a-s3); align-content: start; max-height: 560px; margin: 0; padding: 0 2px 2px 0; overflow-y: auto; list-style: none; }
.a-chat-row { display: grid; gap: 3px; justify-items: start; max-width: min(82%, 560px); }
.a-chat-row[data-mine="true"] { justify-self: end; justify-items: end; }
.a-chat-bubble { padding: 9px 12px; border: 1px solid var(--a-border); border-radius: 14px 14px 14px 4px; background: var(--a-surface-2); color: var(--a-ink); }
.a-chat-row[data-mine="true"] .a-chat-bubble { border-color: transparent; border-radius: 14px 14px 4px 14px; background: var(--a-success-bg); }
.a-chat-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.a-chat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 12px; color: var(--a-muted); }
.a-chat-row[data-mine="true"] .a-chat-meta { justify-content: flex-end; text-align: right; }
.a-chat-error { color: var(--a-danger); }
.a-chat-note { margin: 0; font-size: 12.5px; }
.a-inbox-col { min-width: 0; }
.a-inbox-list { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; border-right: 1px solid var(--a-border-soft); }
.a-inbox-filters { margin: var(--a-s2) var(--a-s3); align-self: start; }
.a-msglist { display: grid; margin: 0; padding: 0; list-style: none; overflow-y: auto; max-height: 620px; }
.a-msg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--a-s3); width: 100%; padding: var(--a-s3) var(--a-s4); border: 0; border-bottom: 1px solid var(--a-border-soft); background: none; text-align: left; font: inherit; color: var(--a-text); cursor: pointer; }
.a-msg:hover { background: var(--a-surface-2); } .a-msg.is-unread { background: var(--a-surface-2); } .a-msg.is-open { background: var(--a-surface-3); }
.a-msg:focus-visible { outline: none; box-shadow: inset var(--a-focus); }
.a-msg-main { display: grid; gap: 3px; min-width: 0; } .a-msg-main > * { min-width: 0; }
.a-msg-top { display: flex; justify-content: space-between; gap: var(--a-s2); } .a-msg-top strong { color: var(--a-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-msg-top .a-muted { flex: none; white-space: nowrap; font-size: 12px; } .a-msg-top strong { min-width: 0; } .a-msg.is-unread .a-msg-top strong { font-weight: 800; } .a-msg.is-unread .a-msg-text { color: var(--a-text); }
.a-msg-text { font-size: 13px; color: var(--a-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.a-msg-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.a-msgdetail { display: grid; gap: var(--a-s4); padding: var(--a-s4); align-content: start; }
.a-msgdetail-head { display: grid; gap: var(--a-s2); } .a-msgdetail-head h3 { margin: 0; font: 800 18px/1.25 var(--font-title); color: var(--a-ink); }
.a-msg-back { display: none; justify-self: start; } .a-msg-back .a-icon { transform: rotate(180deg); }
.a-bubble-wrap { display: grid; gap: 4px; } .a-bubble-date { text-align: center; margin: 0; }
.a-bubble { max-width: 560px; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: var(--a-surface-3); color: var(--a-ink); font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.a-reply { display: grid; gap: var(--a-s2); padding-top: var(--a-s3); border-top: 1px solid var(--a-border-soft); }
.a-textarea { width: 100%; min-height: 96px; padding: var(--a-s3); line-height: 1.5; resize: vertical; font-size: 14px; }
.a-inbox-side { border-left: 1px solid var(--a-border-soft); overflow-y: auto; max-height: 700px; }
.a-inbox-side .a-card-body { display: grid; gap: var(--a-s4); }
@container admin (min-width: 1100px) { .a-inbox { grid-template-columns: 320px minmax(0, 1fr) 340px; } .a-inbox[data-has-open="false"] { grid-template-columns: 340px minmax(0, 1fr); } .a-inbox[data-has-open="false"] .a-inbox-side { display: none; } }
@container admin (min-width: 760px) and (max-width: 1099px) { .a-inbox { grid-template-columns: 300px minmax(0, 1fr); } .a-inbox-side { display: none; } }
@container admin (max-width: 759px) {
  .a-inbox { grid-template-columns: minmax(0, 1fr); }
  .a-inbox[data-has-open="true"] .a-inbox-list, .a-inbox[data-has-open="false"] .a-inbox-main, .a-inbox-side { display: none; }
  .a-msg-back { display: inline-flex; }
}
.a-barline { height: auto; max-height: 260px; }
.a-barline .a-axis { font-size: 11px; }

/* ----- funnel: one continuous silhouette, real widths ----- */
@container admin (max-width: 640px) {
}
.a-insight { padding: var(--a-s4); border: 1px solid var(--a-border); border-radius: var(--a-radius-md); background: var(--a-surface-2); }
.a-insight h3 { margin: 0 0 6px; font: 800 12px/1.3 var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: var(--a-muted); }
.a-insight p { margin: 0; font-size: 14px; color: var(--a-text); }
.a-insight .a-insight-value { margin-top: 4px; font: 800 26px/1.1 var(--font-title); color: var(--a-ink); }
.a-insight-value span { font: 600 13px var(--font-body); color: var(--a-muted); }
.a-insight-bad { background: var(--a-danger-bg); border-color: transparent; }
.a-insight-bad h3, .a-insight-bad p, .a-insight-bad .a-insight-value { color: var(--a-danger); }
.a-insight-bad .a-insight-value span { color: inherit; opacity: .8; }

/* ----- dark-theme specifics (tokens do the rest) ----- */
.admin-nav-link[aria-current="page"] { background: var(--a-nav-active-bg); color: var(--a-nav-active-ink); }
.admin-app[data-theme="dark"] .a-sea { fill: #0f1a14; }
.admin-app[data-theme="dark"] .a-graticule { stroke: #1d2a22; }
.admin-app[data-theme="dark"] .a-shape { stroke: #0d1410; }
.admin-app[data-theme="dark"] .a-shape:hover { stroke: #e9f1ec; }
.admin-app[data-theme="dark"] .a-map-label { fill: #0d1410; stroke: rgba(255, 255, 255, .55); }
.admin-app[data-theme="dark"] .a-bar { fill: #3f9d62; }
.admin-app[data-theme="dark"] .a-axis { fill: #8aa092; }
.admin-app[data-theme="dark"] .a-gl { stroke: #25332b; }
.admin-app[data-theme="dark"] .a-line-chart .a-cross, .admin-app[data-theme="dark"] .a-cross { stroke: #6b7d71; }
.admin-app[data-theme="dark"] .a-podium-card[data-pos="1"] { background: #26220f; border-color: #8a7420; }
.admin-app[data-theme="dark"] .a-live[data-tone="ok"] { color: var(--a-text); }
.a-themebtn .a-icon-sun { display: none; }
.admin-app[data-theme="dark"] .a-themebtn .a-icon-moon { display: none; }
.admin-app[data-theme="dark"] .a-themebtn .a-icon-sun { display: block; }

.a-pcard-img-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.a-pcard-img-btn .a-pcard-img { display: block; }
.a-tip::after { top: calc(100% + 8px); bottom: auto; transform: translate(-50%, -4px); }
.a-tip:hover::after, .a-tip:focus-visible::after { transform: translate(-50%, 0); }
.a-tip { color: var(--a-muted); }
/* Tooltip dos cartões de métrica ancorado no cartão: nunca passa da borda nem alarga a área rolável. */
.a-metric-head .a-tip { position: static; }
.a-metric-head .a-tip::after { left: var(--a-s3); right: var(--a-s3); width: auto; max-width: none; transform: translateY(-4px); }
.a-metric-head .a-tip:hover::after, .a-metric-head .a-tip:focus-visible::after { transform: none; }
.a-axis { fill: var(--a-muted); }
.a-delta[data-tone="ok"] { color: var(--a-ok); }
.admin-app[data-theme="dark"] .a-axis { fill: #a3b6aa; }

/* Menu lateral: grupos recolhíveis. O título vira botão; o ponto avisa de selo pendente dentro de um grupo fechado. */
.admin-nav-group { margin-block: 10px 0; padding: 8px 0 0; }
.admin-nav-grouptoggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.admin-nav-grouptoggle:hover { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); }
.admin-nav-grouptoggle:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.admin-nav-grouplabel { flex: 1; min-width: 0; }
.admin-nav-chevron { flex: none; transition: transform .16s; }
.admin-nav-grouptoggle[aria-expanded="false"] .admin-nav-chevron { transform: rotate(-90deg); }
.admin-nav-groupdot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--a-warn, #f5b942); }
.admin-nav-all { margin: 0 12px 6px auto; display: block; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: rgba(255, 255, 255, .6); font: 600 11.5px/1.2 var(--font-body); cursor: pointer; }
.admin-nav-all:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.admin-nav-all:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.admin-nav li[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .admin-nav-chevron { transition: none; } }
/* Menu em ícones: não há títulos de grupo, então nada fica escondido por um grupo fechado. */
@media (min-width: 900px) {
  .admin-app.is-collapsed .admin-nav li[data-group][hidden] { display: block; }
  .admin-app.is-collapsed .admin-nav-all { display: none; }
}

/* Toque (celular/tablet): alvos de pelo menos 40 px nos controles pequenos; no mouse nada muda. */
@media (pointer: coarse) {
  .a-btn-sm, .a-seg, .a-legend-btn { min-height: 40px; }
  .a-seg { padding: 0 var(--a-s4); }
}

/* Mensagens: respostas por e-mail enviadas do painel (com o estado de entrega) e o campo de assunto. */
.a-replies { display: grid; gap: var(--a-s3); margin: 0; padding: 0; list-style: none; }
.a-reply-sent { justify-self: end; width: min(100%, 560px); padding: 12px 14px; border: 1px solid var(--a-border); border-radius: 14px 4px 14px 14px; background: var(--a-surface); }
.a-reply-sent header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--a-s2); margin-bottom: 6px; }
.a-reply-sent header .a-muted { flex: 1 1 auto; min-width: 0; font-size: 12.5px; }
.a-reply-sent p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--a-text); line-height: 1.5; }
.a-field-block { display: grid; grid-template-columns: auto minmax(0, 1fr); width: 100%; }
.a-field-block input { width: 100%; }
.a-btn-danger { background: var(--a-danger); border-color: var(--a-danger); color: #fff; }
.a-btn-danger:hover:not(:disabled) { filter: brightness(1.08); }
/* Integrações: passos de configuração com o estado de cada um e a linha de endereço copiável. */
.a-steps { display: grid; gap: var(--a-s3); margin: var(--a-s3) 0 0; padding: 0; list-style: none; }
.a-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--a-s3); align-items: start; }
.a-step-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--a-line-strong); background: var(--a-surface); color: var(--a-muted); font: 700 13px/1 var(--font-body); }
.a-step[data-done="true"] .a-step-mark { border-color: var(--a-success); background: var(--a-success-bg); color: var(--a-success); }
.a-step p { margin: 4px 0 0; line-height: 1.5; }
.a-copyline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a-s2); margin-top: var(--a-s2); }
.a-copyline code { flex: 1 1 260px; min-width: 0; padding: 8px 10px; border: 1px dashed var(--a-line-strong); border-radius: var(--a-radius-sm); background: var(--a-surface-2); color: var(--a-ink); font-size: 12.5px; overflow-wrap: anywhere; }
.a-select-sm { min-height: 34px; padding: 0 var(--a-s2); font-size: 13px; }

/* Visão geral: desinteresse (barras por etapa em que a sessão parou) e tempos médios. */
.a-exits { margin: 0 0 var(--a-s3); }
.a-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a-s2) var(--a-s4); margin: 0 0 var(--a-s3); padding-top: var(--a-s3); border-top: 1px solid var(--a-border-soft); }
.a-times dt { font-size: var(--a-fs-cap); color: var(--a-muted); }
.a-times dd { margin: 2px 0 0; font: 800 17px/1.2 var(--font-title); color: var(--a-ink); font-variant-numeric: tabular-nums; }
.a-exits li { grid-template-columns: minmax(120px, 1.2fr) minmax(0, 1.4fr) auto; }
.a-exits .a-hb-name { white-space: normal; line-height: 1.25; }

/* Funil em linha: colunas por etapa, linha de perfil pelos topos das barras, taxa de avanço e perdas embaixo; no celular vira lista com barras horizontais. */
.a-fn-layout { display: grid; gap: var(--a-s4); align-items: start; }
.a-fn { min-width: 0; }
.a-lf { position: relative; container-type: inline-size; container-name: lf; }
.a-lf-stages { position: relative; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.a-lf-stage { position: relative; display: grid; grid-template-rows: auto auto 150px auto auto auto auto; justify-items: center; align-content: start; gap: 2px; min-width: 0; padding: 0 var(--a-s2); text-align: center; }
.a-lf-stage + .a-lf-stage::before { content: ""; position: absolute; left: 0; top: 40px; bottom: 6px; width: 1px; background: var(--a-border-soft); }
.a-lf-label { height: 32px; display: grid; align-items: end; font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--a-muted); text-wrap: balance; }
.a-lf-count { height: 32px; display: grid; align-items: center; font: 800 clamp(20px, 2.1cqi, 28px)/1 var(--font-title); letter-spacing: -.02em; color: var(--a-ink); font-variant-numeric: tabular-nums; }
.a-lf-bar { align-self: end; width: min(64%, 76px); height: var(--h); min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--a-fn, var(--a-action)); }
.a-lf-stage[data-tone="0"] { --a-fn: var(--a-fn-0); } .a-lf-stage[data-tone="1"] { --a-fn: var(--a-fn-1); } .a-lf-stage[data-tone="2"] { --a-fn: var(--a-fn-2); }
.a-lf-stage[data-tone="3"] { --a-fn: var(--a-fn-3); } .a-lf-stage[data-tone="4"] { --a-fn: var(--a-fn-4); } .a-lf-stage[data-tone="5"] { --a-fn: var(--a-fn-5); }
.a-lf-hbar { display: none; }
.a-lf-share { margin-top: var(--a-s2); font-size: 12px; color: var(--a-muted); font-variant-numeric: tabular-nums; }
.a-lf-step { font-size: 12.5px; color: var(--a-text); } .a-lf-step b { font-weight: 800; color: var(--a-ink); font-variant-numeric: tabular-nums; }
.a-lf-lost { font-size: 12px; font-weight: 700; color: var(--a-danger); font-variant-numeric: tabular-nums; }
.a-lf-flag { margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--a-danger-bg); color: var(--a-danger); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.a-lf-svg { position: absolute; left: 0; right: 0; top: 68px; height: 150px; width: 100%; pointer-events: none; overflow: visible; }
.a-lf-area { fill: url(#a-lf-grad); }
.a-lf-line { fill: none; stroke: var(--a-action); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.a-lf-note { margin: var(--a-s3) 0 0; font-size: 11.5px; color: var(--a-faint); }
.a-lf-stage[data-worst="true"] .a-lf-step b { color: var(--a-danger); }
@container lf (max-width: 680px) {
  .a-lf-svg, .a-lf-bar, .a-lf-stage + .a-lf-stage::before { display: none; }
  .a-lf-stages { grid-template-columns: 1fr; gap: var(--a-s2); }
  .a-lf-stage { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; grid-template-areas: "label count" "hbar hbar" "share step" "lost flag"; justify-items: start; align-items: center; column-gap: var(--a-s3); padding: var(--a-s3); border: 1px solid var(--a-border); border-radius: var(--a-radius-sm); background: var(--a-surface-2); text-align: left; }
  .a-lf-label { grid-area: label; min-height: 0; display: block; font-size: 13.5px; color: var(--a-text); }
  .a-lf-count { grid-area: count; justify-self: end; font-size: 22px; }
  .a-lf-hbar { grid-area: hbar; display: block; width: 100%; height: 8px; margin: 6px 0; border-radius: 4px; background: var(--a-surface-3); position: relative; overflow: hidden; }
  .a-lf-hbar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 3px; border-radius: 4px; background: var(--a-fn, var(--a-action)); }
  .a-lf-share { grid-area: share; margin: 0; } .a-lf-step { grid-area: step; justify-self: end; } .a-lf-lost { grid-area: lost; } .a-lf-flag { grid-area: flag; justify-self: end; margin: 0; }
}

/* Mapas em tempo real: marcadores (círculo = online, quadrado = compraram, triângulo = abandonaram), tabela por região e clientes do estado. */
.a-mk-on { fill: var(--a-mk-on); } .a-mk-buy { fill: var(--a-mk-buy); } .a-mk-bad { fill: var(--a-mk-bad); }
.a-mk-shape { stroke: var(--a-surface); stroke-width: .7; }
.a-mk-n { font-weight: 800; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.a-mk-on-n { fill: var(--a-mk-on-ink); } .a-mk-buy-n { fill: var(--a-mk-buy-ink); } .a-mk-bad-n { fill: var(--a-mk-bad-ink); }
.a-mk-pulse { fill: var(--a-mk-on); opacity: .3; transform-box: fill-box; transform-origin: center; animation: a-mk-pulse 2.6s cubic-bezier(.2, .7, .2, 1) infinite; }
@keyframes a-mk-pulse { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .a-mk-pulse { animation: none; opacity: .22; } }
.a-mk-legend { display: flex; flex-wrap: wrap; gap: var(--a-s2) var(--a-s4); margin-top: var(--a-s2); font-size: 12.5px; color: var(--a-text); }
.a-mkl { display: inline-flex; align-items: center; gap: 6px; }
.a-mkl svg .a-mk-shape { stroke: none; }
.a-grid-stretch { align-items: stretch; }
.a-grid-stretch > div > .a-card { height: 100%; }
.a-regiontable-wrap { overflow-x: auto; }
.a-regiontable tbody tr { cursor: pointer; }
.a-regiontable tbody tr:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--a-action); }
.a-regiontable .a-muted { display: block; font-size: 11.5px; }
.a-custlist { display: grid; margin: 0; padding: 0; list-style: none; }
.a-custlist li + li { border-top: 1px solid var(--a-border-soft); }
.a-custrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--a-s3); width: 100%; min-height: 44px; padding: 8px 6px; border: 0; border-radius: 8px; background: none; color: var(--a-text); font: inherit; text-align: left; cursor: pointer; }
.a-custrow:hover { background: var(--a-surface-2); } .a-custrow:focus-visible { outline: none; box-shadow: var(--a-focus); }
.a-custrow-main { display: grid; min-width: 0; } .a-custrow-main strong { color: var(--a-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .a-custrow-main .a-muted { font-size: 12.5px; }
.a-identity { display: grid; gap: var(--a-s2); padding: var(--a-s3); border: 1px solid var(--a-border); border-radius: var(--a-radius-sm); background: var(--a-surface-2); }
.a-identity h3 { margin: 0; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--a-muted); } .a-identity p { margin: 0; }
.a-map-label { fill: var(--a-ink); stroke: var(--a-surface); stroke-width: 2.6; paint-order: stroke; font-weight: 800; }
.admin-app[data-theme="dark"] .a-map-label { fill: #d9efe2; stroke: rgba(4, 9, 6, .85); }

@container admin (min-width: 760px) { .a-fn-layout .a-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.a-fn-layout .a-insights { display: grid; gap: var(--a-s3); }

/* Visão geral: campanhas e origens das vendas. */
.a-srcchips { display: flex; flex-wrap: wrap; gap: var(--a-s2); margin: 0 0 var(--a-s3); padding: 0; list-style: none; }
.a-srcchips li { display: grid; gap: 2px; padding: 8px 12px; border: 1px solid var(--a-border); border-radius: var(--a-radius-sm); background: var(--a-surface-2); min-width: 150px; }
.a-srcchips strong { color: var(--a-ink); text-transform: uppercase; font-size: 12px; letter-spacing: .04em; } .a-srcchips .a-muted { font-size: 12px; }
.a-camp-name { display: block; max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Barras de origem em telas estreitas: nome e valor na mesma linha, barra embaixo (o nome nunca é cortado). */
@container admin (max-width: 560px) {
  .a-hbars li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; }
  .a-hbars .a-hb-track { grid-column: 1 / -1; order: 3; }
  .a-hbars .a-hb-name { white-space: normal; }
  .a-exits li { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Listas compactas (substituem tabelas que no celular viravam cartão dentro de cartão): regiões do mapa e campanhas. */
.a-regionlist, .a-camprows { display: grid; margin: 0; padding: 0; list-style: none; }
.a-regionhead, .a-regionrow, .a-camphead, .a-camprow { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.a-regionhead, .a-regionrow { grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.2fr); }
.a-camphead, .a-camprow { grid-template-columns: minmax(0, 2.6fr) minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.1fr); }
.a-regionhead, .a-camphead { padding: 6px 8px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--a-muted); }
.a-regionhead span:not(:first-child), .a-camphead span:not(:first-child) { text-align: right; }
.a-regionrow { width: 100%; min-height: 48px; padding: 8px; border: 0; border-radius: 8px; background: none; color: var(--a-text); font: inherit; text-align: left; cursor: pointer; }
.a-regionrow:hover, .a-camprow:hover { background: var(--a-surface-2); } .a-regionrow:focus-visible { outline: none; box-shadow: var(--a-focus); }
.a-regionlist li + li, .a-camprows li + li { border-top: 1px solid var(--a-border-soft); }
.a-regionlist li.a-regionhead + li { border-top: 1px solid var(--a-border); }
.a-regionname { color: var(--a-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-regionstat { display: grid; justify-items: end; line-height: 1.15; font-variant-numeric: tabular-nums; } .a-regionstat b { color: var(--a-ink); font-weight: 800; } .a-regionstat small { font-size: 11.5px; color: var(--a-muted); }
.a-regionstat svg { display: none; }
.a-camprow { padding: 10px 8px; border-radius: 8px; }
.a-campname { display: grid; min-width: 0; } .a-campname strong { color: var(--a-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .a-campname .a-muted { font-size: 12px; }
.a-camprow .a-num { text-align: right; }
@container admin (max-width: 600px) {
  .a-regionhead, .a-camphead { display: none; }
  .a-regionrow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 4px; }
  .a-regionname { grid-column: 1 / -1; font-size: 15px; }
  .a-regionstat { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 2px 6px; } .a-regionstat svg { display: block; flex: none; }
  .a-regionstat small { flex-basis: 100%; }
  .a-camprow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 4px; }
  .a-campname { grid-column: 1 / -1; } .a-campname strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .a-camprow .a-num { text-align: left; } .a-camprow .a-num::before { content: attr(data-label); display: block; font: 600 11px/1.2 var(--font-body); color: var(--a-muted); }
  /* An odd last KPI would sit alone on its row: let it use the full width. */
  .a-metrics:not(.a-metrics-sm) > .a-metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.a-lf-lost:empty { display: none; }

/* ───────── Gateways de pagamento ───────── */
.a-gw-note { margin: 0; padding: 10px 14px; border: 1px solid var(--a-border); border-radius: var(--a-radius-md); background: var(--a-success-bg); color: var(--a-ok); font-weight: 600; }
.a-gw-note[data-tone="bad"] { background: var(--a-danger-bg); color: var(--a-danger); }
.a-gw-note[hidden] { display: none; }
.a-gw-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 32px; }
.a-gw-settings p { margin: 8px 0 0; max-width: 62ch; }
.a-gw-label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--a-ink); font-size: 13px; }
.a-gw-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; margin-top: 14px; }
.a-gw-fields label { display: grid; gap: 6px; font-size: 12.5px; color: var(--a-muted); }
.a-gw-fields input, .a-gw-weight input { width: 84px; min-height: 40px; padding: 0 10px; border: 1px solid var(--a-line-strong); border-radius: var(--a-radius-sm); background: var(--a-surface); color: var(--a-ink); font: 600 14px/1 inherit; font-variant-numeric: tabular-nums; }
.a-gw-fields input:focus-visible, .a-gw-weight input:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }
.a-gw-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-weight: 600; color: var(--a-ink); }
.a-gw-toggle input { width: 20px; height: 20px; accent-color: var(--a-action); cursor: pointer; }
.a-gw-toggle-lg { font-size: 15px; }
.a-gw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; gap: 16px; }
.a-gw-sub { margin: -6px 0 0; font-size: 12.5px; }
.a-gw-card { display: grid; align-content: start; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--a-border); border-radius: var(--a-radius-md); background: var(--a-surface); box-shadow: var(--a-shadow-sm); }
.a-gw-card[data-active="true"] { border-color: var(--a-action); box-shadow: 0 0 0 1px var(--a-action), var(--a-shadow-sm); }
.a-gw-card[data-state="pending_integration"], .a-gw-card[data-state="off"] { background: var(--a-surface-2); }
.a-gw-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.a-gw-head h3 { margin: 0; font-size: 15px; line-height: 1.3; color: var(--a-ink); overflow-wrap: anywhere; }
.a-gw-head p { margin: 2px 0 0; font-size: 12px; }
.a-gw-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--a-surface-3); color: var(--a-brand-ink); font: 800 13px/1 inherit; font-variant-numeric: tabular-nums; }
.a-gw-card[data-active="true"] .a-gw-num { background: var(--a-action); color: var(--a-on-action, #fff); }
.a-gw-hint { margin: 0; padding: 10px 12px; border-radius: var(--a-radius-sm); background: var(--a-warn-bg); color: var(--a-text); font-size: 13px; line-height: 1.5; }
.a-gw-card[data-state="pending_integration"] .a-gw-hint { background: var(--a-surface-3); }
.a-gw-card[data-state="tripped"] .a-gw-hint { background: var(--a-danger-bg); }
.a-gw-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.a-gw-winnote { margin: 0 0 -4px; font-size: 12px; line-height: 1.4; }
.a-gw-metrics div { display: grid; gap: 3px; min-width: 0; }
.a-gw-metrics dt { color: var(--a-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.a-gw-metrics dd { margin: 0; color: var(--a-ink); font: 700 15px/1.25 inherit; font-variant-numeric: tabular-nums; }
.a-gw-metrics small { display: block; color: var(--a-muted); font-size: 11.5px; font-weight: 500; }
.a-gw-rate[data-tone="ok"] { color: var(--a-ok); } .a-gw-rate[data-tone="warn"] { color: var(--a-warn); } .a-gw-rate[data-tone="bad"] { color: var(--a-danger); }
.a-gw-missing { margin: 0; font-size: 13px; line-height: 1.7; }
.a-gw-missing code, .a-gw-url { padding: 2px 6px; border-radius: 6px; background: var(--a-surface-3); color: var(--a-ink); font-size: 12px; overflow-wrap: anywhere; }
.a-gw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.a-gw-actions .a-btn { flex: 1 1 180px; }
.a-gw-weight { display: grid; gap: 6px; flex: 1 1 180px; font-size: 12.5px; color: var(--a-muted); }
.a-gw-weight b { color: var(--a-ink); font-size: 16px; }
.a-gw-webhook { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--a-border-soft); font-size: 12.5px; }
.a-gw-webhook .a-row { flex-wrap: wrap; align-items: center; gap: 8px; }
.a-gw-url { flex: 1 1 200px; min-width: 0; display: block; }
.a-gw-chain { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.a-gw-chain li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--a-border-soft); border-radius: var(--a-radius-sm); background: var(--a-surface-2); font-weight: 600; color: var(--a-ink); }
.a-gw-move { display: inline-flex; gap: 4px; }
@media (max-width: 560px) {
  .a-gw-metrics { grid-template-columns: 1fr 1fr; }
  .a-gw-metrics div:last-child { grid-column: 1 / -1; }
  .a-gw-head { grid-template-columns: auto minmax(0, 1fr); }
  .a-gw-head .a-badge { grid-column: 1 / -1; justify-self: start; }
  .a-gw-chain li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .a-gw-chain li .a-badge { display: none; }
}

/* ───────── Orquestração Pix (abas, modos, cartões ampliados, A/B, histórico, análises) ───────── */
.a-gw-tabs { align-self: start; max-width: 100%; overflow-x: auto; }
.a-gw-panel { display: grid; gap: 16px; min-width: 0; }
.a-gw-panel[hidden] { display: none; }
.a-gw-alerts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.a-gw-alerts li { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border: 1px solid var(--a-border); border-left-width: 4px; border-radius: var(--a-radius-md); background: var(--a-warn-bg); color: var(--a-text); font-size: 13.5px; line-height: 1.45; }
.a-gw-alerts li[data-tone="bad"] { background: var(--a-danger-bg); border-left-color: var(--a-danger); }
.a-gw-alerts li[data-tone="warn"] { border-left-color: var(--a-warn); }
.a-gw-alert-tag { flex: none; font-weight: 800; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.a-gw-modebar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 18px 28px; align-items: start; }
.a-gw-modes { max-width: 100%; }
.a-gw-modebar p { margin: 8px 0 0; max-width: 60ch; }
.a-gw-now { display: grid; gap: 10px; margin: 0; }
.a-gw-now div { display: grid; gap: 2px; }
.a-gw-now dt { color: var(--a-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.a-gw-now dd { margin: 0; color: var(--a-ink); font-size: 14px; }
.a-gw-winbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.a-gw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; min-height: 0; }
.a-gw-tags:empty { display: none; }
.a-gw-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--a-surface-3); color: var(--a-link-ink); font-size: 11.5px; font-weight: 700; }
.a-gw-tag[data-tag="Principal"], .a-gw-tag[data-tag="Vencedor"] { background: var(--a-success-bg); color: var(--a-ok); }
.a-gw-tag[data-tag="Testando"], .a-gw-tag[data-tag="Líder"] { background: var(--a-info-bg); color: var(--a-info); }
.a-gw-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px 12px; margin: 0; padding-top: 12px; border-top: 1px solid var(--a-border-soft); }
.a-gw-today div { display: grid; gap: 2px; min-width: 0; }
.a-gw-today dt { color: var(--a-muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.a-gw-today dd { margin: 0; color: var(--a-ink); font: 700 14px/1.25 inherit; font-variant-numeric: tabular-nums; }
.a-gw-traffic, .a-gw-bar { height: 8px; border-radius: 999px; background: var(--a-surface-3); overflow: hidden; }
.a-gw-traffic span, .a-gw-bar span { display: block; height: 100%; border-radius: 999px; background: var(--a-action); }
.a-gw-trafficlabel { margin: -6px 0 0; font-size: 12.5px; }
.a-gw-opts { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 10px; border-top: 1px solid var(--a-border-soft); }
.a-gw-opts .a-gw-toggle { min-height: 36px; font-size: 13px; font-weight: 500; }
.a-gw-abcard { display: grid; gap: 14px; }
.a-gw-abhead { flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.a-gw-progress { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.a-gw-progress > div { display: grid; gap: 6px; font-size: 12.5px; color: var(--a-muted); }
.a-gw-progress b { color: var(--a-ink); }
.a-gw-abform { display: grid; gap: 16px; margin-top: 8px; }
.a-gw-abform fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.a-gw-abform legend { margin-bottom: 8px; font-weight: 700; font-size: 13px; color: var(--a-ink); }
.a-gw-abpick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--a-border); border-radius: var(--a-radius-sm); background: var(--a-surface-2); font-weight: 600; color: var(--a-ink); }
.a-gw-abpick input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--a-action); }
.a-gw-abweight { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--a-muted); font-size: 12.5px; }
.a-gw-abform select, .a-gw-limit input { min-height: 40px; padding: 0 10px; border: 1px solid var(--a-line-strong); border-radius: var(--a-radius-sm); background: var(--a-surface); color: var(--a-ink); font: 600 14px/1 inherit; }
.a-gw-abform input[type="number"] { width: 92px; min-height: 40px; padding: 0 10px; border: 1px solid var(--a-line-strong); border-radius: var(--a-radius-sm); background: var(--a-surface); color: var(--a-ink); font: 600 14px/1 inherit; font-variant-numeric: tabular-nums; }
.a-gw-history { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.a-gw-history li { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--a-border-soft); }
.a-gw-history li:first-child { border-top: 0; padding-top: 0; }
.a-gw-history p { margin: 0; color: var(--a-ink); line-height: 1.5; }
.a-gw-hhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.a-gw-hmetrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 14px; margin: 8px 0 0; }
.a-gw-hmetrics div { display: grid; gap: 1px; }
.a-gw-hmetrics dt { color: var(--a-muted); font-size: 11.5px; }
.a-gw-hmetrics dd { margin: 0; font-weight: 700; color: var(--a-ink); }
.a-gw-history summary { cursor: pointer; color: var(--a-link-ink); font-size: 13px; min-height: 32px; display: flex; align-items: center; }
.a-gw-sumgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.a-gw-sumcard { padding: 16px; border: 1px solid var(--a-border); border-radius: var(--a-radius-md); background: var(--a-surface); }
.a-gw-sumcard h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--a-ink); }
.a-gw-sumcard dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin: 0; }
.a-gw-sumcard dt { color: var(--a-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.a-gw-sumcard dd { margin: 2px 0 0; color: var(--a-ink); font: 700 14px/1.2 inherit; font-variant-numeric: tabular-nums; }
.a-gw-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.a-gw-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--a-text); }
.a-gw-legend li { display: inline-flex; align-items: center; gap: 6px; }
.a-gw-dist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.a-gw-dist li { display: grid; grid-template-columns: auto minmax(70px, 120px) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; color: var(--a-ink); }
.a-gw-limits { display: grid; gap: 18px; }
.a-gw-limitgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 28px; }
.a-gw-limit { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--a-ink); }
.a-gw-limit small { font-weight: 400; line-height: 1.45; }
.a-gw-limit input { width: 120px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .a-gw-modebar { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .a-gw-sumcard dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-gw-dist li { grid-template-columns: auto minmax(60px, 90px) minmax(0, 1fr) auto; gap: 8px; }
  .a-gw-abpick { grid-template-columns: auto minmax(0, 1fr); }
  .a-gw-abpick .a-gw-abweight { grid-column: 2; }
  .a-gw-alerts li { flex-direction: column; gap: 2px; }
}

/* Segurança / Anti-Clonagem: só o que admin-ui.css ainda não cobre. Mesmos tokens --a-* do resto do painel,
   nada de cor fixa — tema claro/escuro herdados de admin-ui.css automaticamente. */

.a-btn-danger { background: var(--a-danger-bg); border-color: var(--a-danger); color: var(--a-danger); }
.a-btn-danger:hover:not(:disabled) { background: var(--a-danger); color: #fff; }

.a-ellipsis { display: inline-block; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.a-ualist { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--a-muted); word-break: break-all; }
.a-ualist li { padding: var(--a-s2) var(--a-s3); border: 1px solid var(--a-border); border-radius: var(--a-radius-sm); background: var(--a-surface-2); }

.a-inline-form { display: flex; flex-wrap: wrap; gap: var(--a-s3); align-items: center; }
.a-inline-form .a-field { flex: 1 1 180px; }

.a-security code { padding: 2px 6px; border-radius: 4px; background: var(--a-surface-2); font-size: 12px; }
