/* =========================================================
   CAMELA BOLSAS — Editorial Warm Monochrome UI
   Structure:
   1. Design tokens
   2. Base
   3. Header / navigation
   4. Catalog / product cards
   5. Product detail
   6. Cart / order / quote
   7. Drawers / modals / overlays
   8. Frete
   9. Admin
   10. Mobile rules
   ========================================================= */

/* 1. Design tokens */
:root {
  --bg: #f2efeb;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --surface-muted: #ece7e1;
  --ink: #111111;
  --ink-soft: #2d2b29;
  --muted: #716c66;
  --muted-light: #9a948d;
  --line: #ddd7cf;
  --line-strong: #c9c1b8;
  --mocha: #9a8575;
  --gold: #b49a63;
  --gold-dark: #8b7346;
  --success: #157a4b;
  --danger: #b13b3b;
  --warning: #8b6721;
  --white: #ffffff;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 8px 22px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 18px 48px rgba(17, 17, 17, 0.09);
  --shadow-lg: 0 28px 90px rgba(17, 17, 17, 0.16);
  --header-height: 58px;
  --mobile-nav-height: 70px;

  /* Compatibility aliases used by legacy public/admin markup. */
  --paper: var(--surface);
  --card: var(--surface-strong);
  --coffee: var(--ink);
  --soft: var(--surface-muted);
  --radius: var(--radius-md);
  --shadow: var(--shadow-sm);
  --shadow2: var(--shadow-md);
}

/* 2. Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f8f6f3 0%, var(--bg) 42%, #eeeae5 100%);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-enter {
  animation: pageFadeIn 0.28s ease both;
}

body.category-menu-open,
body.quick-preview-open,
body.mini-cart-open,
body.frete-modal-open {
  overflow: hidden;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

::selection {
  background: var(--ink);
  color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

button,
input,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

input,
textarea {
  user-select: text;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

[hidden] {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 22px 72px;
  flex: 1 0 auto;
}

svg {
  display: block;
}

.eyebrow,
.hero-kicker {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.btn,
.btn-main,
.page-btn-gold,
.filters button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
  line-height: 1;
  text-align: center;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.btn:hover,
.btn-main:hover,
.page-btn-gold:hover,
.filters button:hover {
  background: #292929;
  border-color: #292929;
  transform: translateY(-1px);
}

.btn:active,
.btn-main:active,
.page-btn-gold:active,
.filters button:active {
  transform: translateY(0);
}

.btn:disabled,
.btn-main:disabled,
button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.btn.secondary {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  color: var(--ink);
}

.btn.secondary:hover {
  border-color: var(--ink);
  background: var(--surface-muted);
}

.btn-whatsapp,
.btn.whatsapp,
.whatsapp {
  border-color: #167a4c;
  background: #167a4c;
  color: var(--white);
}

.btn-whatsapp:hover,
.btn.whatsapp:hover,
.whatsapp:hover {
  border-color: #11673f;
  background: #11673f;
}

.wide {
  width: 100%;
  margin-top: 12px;
}

.empty,
.notice,
.error,
.alert {
  max-width: 760px;
  margin: 26px auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-weight: 650;
  text-align: center;
}

.notice {
  border-color: rgba(21, 122, 75, 0.24);
  background: #f0faf5;
  color: #0e6039;
}

.error {
  border-color: rgba(177, 59, 59, 0.24);
  background: #fff4f4;
  color: var(--danger);
}

.no-image {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.no-image.big {
  min-height: 560px;
}

/* 3. Header / navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 12px;
}

.brand-wordmark,
.brand > span:not(.brand-caption):not(.brand-mark) {
  overflow: hidden;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-caption {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.topbar-actions,
.topbar > nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar > nav:not(.topbar-actions) a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.topbar > nav:not(.topbar-actions) a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.topbar-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.topbar-icon:hover,
.topbar-icon.is-active {
  border-color: var(--line);
  background: var(--surface-muted);
}

.topbar-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cart-badge,
.mobile-cart-count,
.favorite-count {
  position: absolute;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.cart-badge {
  top: 1px;
  right: -1px;
}

.cart-bounce {
  animation: cartBounce 0.45s ease;
}

@keyframes cartBounce {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.28);
  }
}

.mobile-bottom-nav {
  display: none;
}

.category-overlay,
.mini-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  visibility: hidden;
  background: rgba(17, 17, 17, 0.42);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.category-overlay.active,
.mini-cart-backdrop.active {
  visibility: visible;
  opacity: 1;
}

.category-drawer,
.mini-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  display: flex;
  width: min(410px, 94vw);
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 0.26s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.category-drawer.active,
.mini-cart-panel.active {
  transform: translateX(0);
}

.category-drawer-header,
.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.category-drawer-header p,
.mini-cart-header p {
  margin: 0;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.category-drawer-header h3,
.mini-cart-header h3 {
  margin: 3px 0 0;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.category-drawer-header button,
.mini-cart-header button,
.quick-preview-close,
.lightbox-close,
.cart-preview-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.category-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-section-title {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.category-drawer-list {
  display: grid;
  gap: 2px;
  margin: 0 0 26px;
}

.category-drawer-list a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
}

.category-drawer-list a b {
  color: var(--gold-dark);
  font-weight: 500;
}

.category-drawer-list a:hover {
  color: var(--gold-dark);
}

.drawer-service-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  padding: 0 14px;
  background: var(--surface-strong);
}

/* 4. Catalog / product cards */
.catalog-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 0 22px;
  text-align: center;
}

.catalog-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(31px, 4.4vw, 56px);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.catalog-intro > p:last-child {
  max-width: 660px;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.hero {
  padding: 28px 0 22px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.hero-lead {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--muted);
}


.catalog-toolbar {
  position: sticky;
  top: calc(var(--header-height) + 10px);
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px 104px;
  gap: 10px;
  width: min(900px, 100%);
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.search-field {
  display: flex;
  min-width: 0;
  height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.search-field:focus-within,
.sort-field:focus-within {
  border-color: var(--ink);
}

.search-field svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search-field input::placeholder {
  color: var(--muted-light);
}

.sort-field {
  display: block;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.sort-select {
  width: 100%;
  height: 100%;
  padding: 0 34px 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.search-submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.search-submit:hover {
  border-color: #292929;
  background: #292929;
  transform: translateY(-1px);
}

.search-submit:active {
  transform: translateY(0);
}

.category-chips {
  display: flex;
  width: min(1040px, 100%);
  gap: 8px;
  margin: 0 auto;
  padding: 5px 2px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.category-chips a {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.category-chips a:hover,
.category-chips a.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.catalog-status,
.result-summary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.catalog-status a,
.result-summary a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card,
.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.card:hover,
.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.card-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #f7f5f2;
  color: inherit;
  text-align: left;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.02);
}

.card-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.86);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.card:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.favorite-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.favorite-toggle:hover,
.favorite-toggle.active {
  border-color: rgba(177, 59, 59, 0.32);
  background: var(--surface-strong);
  color: var(--danger);
}

.card-body {
  padding: 15px 15px 16px;
}

.product-card-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
}

.product-card-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.product-card-heading small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-total-price {
  display: grid;
  gap: 1px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-total-price span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-total-price strong {
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.product-unit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.product-unit-meta span:last-child {
  color: var(--gold-dark);
  font-weight: 700;
  white-space: nowrap;
}

.tag-row,
.sku-row,
.price-line {
  display: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 6px;
  flex-wrap: wrap;
}

.page-btn-gold {
  min-height: 42px;
  border-color: var(--line-strong);
  background: var(--surface-strong);
  color: var(--ink);
}

.page-btn-gold:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.page-btn-gold.disabled {
  pointer-events: none;
  opacity: 0.38;
}

.page-info-gold {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* 5. Product detail */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 28px;
  align-items: start;
}

.product-photo,
.product-panel,
.cart-box,
.login-card,
.admin-card,
.pedido-card,
.order-card,
.customer-whatsapp-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.product-photo {
  overflow: hidden;
  padding: 12px;
}

.zoom-box {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #f7f5f2;
  cursor: zoom-in;
}

.zoom-img {
  width: 100%;
  height: auto;
}

.product-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  padding: 28px;
}

.product-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.product-intro {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-price-hero {
  display: grid;
  gap: 4px;
  margin: 22px 0 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.product-price-hero > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-price-hero strong {
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.product-price-hero small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.price-table {
  display: grid;
  gap: 0;
  margin: 8px 0 20px;
  border-top: 1px solid var(--line);
}

.price-table > div {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.price-table span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.price-table strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.price-table .highlight {
  background: transparent;
}

.buy-form {
  display: grid;
  gap: 11px;
  margin: 18px 0 0;
}

.buy-form label,
.customer-whatsapp-form label,
.pedido-search label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.quantity-control {
  display: grid;
  grid-template-columns: 46px minmax(54px, 1fr) 46px;
  width: 100%;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.quantity-control button {
  border: 0;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.quantity-control button:hover {
  background: var(--line);
}

.quantity-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  outline: 0;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 750;
  text-align: center;
  -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.mobile-product-buybar {
  display: none;
}

.image-lightbox,
.cart-image-preview {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(245, 242, 238, 0.98);
}

.image-lightbox.active,
.cart-image-preview.active {
  display: flex;
}

.image-lightbox img,
.cart-image-preview img {
  max-width: min(94vw, 1100px);
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close,
.cart-preview-close {
  position: fixed;
  top: 18px;
  right: 18px;
}

/* 6. Cart / order / quote */
.cart-box {
  overflow-x: auto;
}

.cart-table,
.pedido-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td,
.pedido-table th,
.pedido-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.cart-table th,
.pedido-table th {
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-qty-input {
  width: 84px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  outline: 0;
  background: var(--surface-strong);
  font-weight: 750;
  text-align: center;
}

.cart-qty-input:focus {
  border-color: var(--ink);
}

.cart-sku-preview {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 750;
}

.cart-sku-preview::before {
  content: "◫";
  color: var(--gold-dark);
  font-size: 14px;
}

.cart-sku-preview:hover {
  border-color: var(--ink);
}

.cart-remove-btn {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-total,
.pedido-summary {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
  font-size: 23px;
  font-weight: 800;
  text-align: right;
}

.cart-auto-save-status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.cart-auto-save-status::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

.cart-auto-save-status.saving::before {
  content: "…";
  color: var(--gold-dark);
}

.cart-auto-save-status.error {
  color: var(--danger);
}

.cart-auto-save-status.error::before {
  content: "!";
  color: var(--danger);
}

.cart-autosave-enabled .cart-update-btn {
  display: none;
}

.customer-whatsapp-form {
  display: grid;
  max-width: 560px;
  gap: 10px;
  margin: 16px 0;
  padding: 20px;
}

.customer-whatsapp-form input,
.pedido-search input,
.login-card input,
.admin-card input,
.admin-card select,
.admin-card textarea {
  width: 100%;
  height: 50px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--surface-strong);
}

.customer-whatsapp-form input:focus,
.pedido-search input:focus,
.login-card input:focus,
.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus {
  border-color: var(--ink);
}

.actions {
  display: flex;
  gap: 10px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.pedido-page {
  padding: 12px 0 28px;
}

.pedido-card {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px);
}

.pedido-card > h1,
.pedido-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.pedido-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 22px;
}

.pedido-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.pedido-date {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pedido-total {
  flex: 0 0 auto;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
}

.pedido-items-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

/* 7. Drawers / modals / overlays */
.quick-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.54);
  opacity: 0;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.quick-preview-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.quick-preview-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  width: min(920px, 96vw);
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.22s ease;
}

.quick-preview-overlay.active .quick-preview-dialog {
  transform: translateY(0) scale(1);
}

.bottom-sheet-handle {
  display: none;
}

.quick-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}

.quick-preview-favorite {
  top: 14px;
  right: 64px;
}

.quick-preview-image {
  display: grid;
  min-height: 560px;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #f5f3f0;
}

.quick-preview-image.is-empty::before {
  content: "SEM IMAGEM";
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.quick-preview-image img {
  width: 100%;
  height: 100%;
  max-height: 700px;
  padding: 16px;
  object-fit: contain;
}

.quick-preview-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px;
}

.quick-preview-heading {
  display: grid;
  gap: 14px;
  padding-right: 78px;
}

.quick-preview-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.quick-preview-heading small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.quick-detail-link {
  justify-self: start;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quick-price-summary {
  display: grid;
  gap: 14px;
  margin: 26px 0 auto;
}

.quick-price-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.quick-price-meta b {
  color: var(--ink);
  font-weight: 750;
}

.quick-price-total {
  display: grid;
  gap: 3px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.quick-price-total span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-price-total strong {
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.quick-buy-form {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.quick-buy-form .quantity-control {
  grid-template-columns: 40px minmax(42px, 1fr) 40px;
}

.quick-add-button {
  min-height: 48px;
}

.mini-cart-backdrop {
  z-index: 205;
}

.mini-cart-panel {
  z-index: 210;
}

.mini-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.mini-cart-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.mini-cart-item img {
  width: 56px;
  height: 72px;
  border-radius: var(--radius-xs);
  background: var(--surface-muted);
  object-fit: cover;
}

.mini-cart-item strong,
.mini-cart-item small {
  display: block;
}

.mini-cart-item strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.mini-cart-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.mini-cart-item b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.mini-cart-empty {
  padding: 26px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.mini-cart-footer {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
}

.mini-cart-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-cart-footer span {
  color: var(--muted);
  font-size: 12px;
}

.mini-cart-footer strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.cart-fly-image {
  position: fixed;
  z-index: 280;
  border-radius: var(--radius-md);
  object-fit: cover;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  will-change: transform, opacity;
  transition:
    transform 0.68s cubic-bezier(0.18, 0.86, 0.22, 1),
    opacity 0.68s ease,
    border-radius 0.68s ease;
}

.cart-fly-image.is-flying {
  border-radius: var(--radius-xs);
}

.mini-cart-panel.cart-receive-pulse {
  animation: miniCartReceive 0.5s ease;
}

@keyframes miniCartReceive {
  0%,
  100% {
    box-shadow: var(--shadow-lg);
  }
  50% {
    box-shadow: -30px 0 96px rgba(180, 154, 99, 0.32);
  }
}

.added-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 300;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.added-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.recently-viewed-section {
  width: 100%;
  max-width: 1280px;
  margin: 14px auto 0;
  padding: 0 22px 24px;
}

.recently-viewed-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.recently-viewed-header p {
  margin: 0 0 3px;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.recently-viewed-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.recently-viewed-clear {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recently-viewed-track {
  display: grid;
  grid-auto-columns: 166px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.recently-viewed-track::-webkit-scrollbar {
  display: none;
}

.recent-product-card {
  display: grid;
  grid-template-rows: 128px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  scroll-snap-align: start;
}

.recent-product-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.recent-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-product-info {
  display: grid;
  gap: 2px;
  padding: 9px 10px 11px;
}

.recent-product-info strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.recent-product-info small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-product-info b {
  margin-top: 2px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 750;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.whatsapp-float span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-nav a {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer strong {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.03em;
}

/* 8. Frete */
.frete-hero {
  padding: 26px 0 20px;
}

.frete-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: start;
  margin: 0 auto 22px;
}

.frete-layout-single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.frete-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.frete-card-head,
.frete-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}

.frete-card-head h2,
.frete-results-head h2,
.frete-share-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 33px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.frete-badge,
.frete-results-head > span,
.frete-provider-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.frete-grid-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.frete-form label {
  display: grid;
  gap: 6px;
}

.frete-form label span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.frete-form label small {
  color: var(--muted);
  font-size: 11px;
}

.frete-form input {
  width: 100%;
  height: 50px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 650;
}

.frete-form input:focus {
  border-color: var(--ink);
}

.frete-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 17px;
}

.frete-calculate-btn,
.frete-reverse-btn {
  min-height: 50px;
}

.frete-calculate-btn {
  position: relative;
  overflow: hidden;
}

.frete-btn-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: freteSpin 0.72s linear infinite;
}

.frete-calculate-btn.is-loading .frete-btn-spinner {
  display: inline-block;
}

.frete-calculate-btn.is-loading {
  cursor: progress;
}

.frete-hint-box,
.frete-source-note {
  margin-top: 13px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.frete-hint-box strong,
.frete-source-note b,
.frete-source-note code {
  color: var(--ink);
}

.frete-source-note code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.frete-alert {
  margin: 0 0 15px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  font-weight: 650;
  line-height: 1.55;
}

.frete-alert-danger {
  border: 1px solid rgba(177, 59, 59, 0.24);
  background: #fff4f4;
  color: var(--danger);
}

.frete-alert-warning {
  border: 1px solid rgba(139, 103, 33, 0.24);
  background: #fff9ed;
  color: var(--warning);
}

.frete-results {
  margin: 0 auto 22px;
}

.frete-result-meta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.frete-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.frete-result-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.frete-result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gold);
}

.frete-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.frete-result-top span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.frete-result-top small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.frete-result-card > strong {
  display: block;
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.frete-result-card p,
.frete-result-card ul {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.frete-result-card p {
  margin: 10px 0 0;
}

.frete-result-card ul {
  margin: 10px 0 0;
  padding-left: 17px;
}

.frete-result-card p b {
  color: var(--ink);
}

.frete-result-card.is-error::before {
  background: var(--danger);
}

.frete-result-card.is-error > strong {
  color: var(--danger);
  font-size: 25px;
}

.frete-share-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  margin-top: 17px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.frete-share-panel p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.frete-share-panel textarea {
  width: 100%;
  min-height: 174px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}

.frete-share-actions {
  display: flex;
  grid-column: 2;
  gap: 9px;
  flex-wrap: wrap;
}

.frete-copy-whatsapp-btn {
  border-color: var(--success);
  background: var(--success);
}

.frete-copy-whatsapp-btn.is-copied {
  border-color: var(--gold-dark);
  background: var(--gold-dark);
}

.frete-error-detail {
  display: grid;
  gap: 6px;
}

.frete-error-detail small {
  color: var(--warning);
  font-size: 11px;
  font-weight: 650;
  word-break: break-word;
}

.frete-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.48);
  opacity: 0;
  backdrop-filter: blur(7px);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.frete-loading-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.frete-loading-card {
  width: min(420px, 92vw);
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.frete-loading-spinner {
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  border: 4px solid var(--surface-muted);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: freteSpin 0.78s linear infinite;
}

.frete-loading-card h2 {
  margin: 3px 0 7px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.frete-loading-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.frete-loading-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 17px;
}

.frete-loading-steps span {
  display: grid;
  min-height: 40px;
  place-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

@keyframes freteSpin {
  to {
    transform: rotate(360deg);
  }
}

.frete-result-modal {
  position: fixed;
  inset: 0;
  z-index: 330;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.frete-result-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.frete-result-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.58);
  backdrop-filter: blur(8px);
}

.frete-result-dialog {
  position: relative;
  width: min(980px, calc(100vw - 26px));
  max-height: min(88vh, 880px);
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.22s ease;
}

.frete-result-modal.is-open .frete-result-dialog {
  transform: translateY(0) scale(1);
}

.frete-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 25px;
}

.frete-modal-head {
  padding-right: 48px;
}

.frete-modal-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.frete-modal-actions {
  display: flex;
  gap: 9px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* 9. Admin */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-card {
  padding: 20px;
}

.admin-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.admin-card p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-card form {
  display: grid;
  gap: 10px;
}

.admin-card input[type="file"] {
  height: auto;
  padding: 12px;
}

.admin-bg {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: var(--bg);
}

.admin-login-shell {
  width: min(100%, 450px);
}

.admin-bg .login-card {
  width: 100%;
  padding: clamp(24px, 5vw, 36px);
  box-shadow: var(--shadow-md);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}

.login-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.login-brand small,
.login-brand strong {
  display: block;
}

.login-brand small {
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.login-brand strong {
  margin-top: 2px;
  font-weight: 750;
}

.login-card h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.login-card > p {
  color: var(--muted);
}

.login-card form {
  display: grid;
  gap: 9px;
}

.login-card label {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
}

.login-back-link {
  display: inline-flex;
  margin-top: 17px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

/* 10. Responsive / mobile rules */
@media (max-width: 1060px) {
  .product-grid,
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-panel {
    position: static;
  }

  .frete-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 58px;
    --mobile-nav-height: 68px;
  }

  body {
    padding-bottom: calc(
      var(--mobile-nav-height) + env(safe-area-inset-bottom)
    );
    font-size: 14px;
  }

  .container {
    padding: 0 12px 34px;
  }

  .topbar {
    min-height: var(--header-height);
    padding: max(0px, env(safe-area-inset-top)) 12px 0;
  }

  .brand {
    display: grid;
    gap: 1px;
  }

  .brand-wordmark,
  .brand > span:not(.brand-caption):not(.brand-mark) {
    font-size: 18px;
  }

  .brand-caption {
    font-size: 7.5px;
    letter-spacing: 0.13em;
  }

  .topbar-icon {
    width: 40px;
    height: 40px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 180;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 249, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 54px;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--muted);
  }

  .mobile-bottom-nav a::before,
  .mobile-bottom-nav button::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    transform: translateX(-50%);
  }

  .mobile-bottom-nav a.is-active,
  .mobile-bottom-nav button.is-active {
    color: var(--ink);
  }

  .mobile-bottom-nav a.is-active::before,
  .mobile-bottom-nav button.is-active::before {
    background: var(--gold);
  }

  .mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }

  .mobile-bottom-nav small {
    overflow: hidden;
    max-width: 100%;
    font-size: 9.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .favorite-count,
  .mobile-cart-count {
    top: 4px;
    right: calc(50% - 21px);
  }

  .catalog-intro {
    padding: 20px 10px 15px;
  }

  .catalog-intro h1 {
    font-size: 26px;
    letter-spacing: -0.045em;
  }

  .catalog-intro > p:last-child {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.5;
  }

  .hero-kicker {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .hero {
    padding: 20px 0 15px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 12px;
  }

  .catalog-toolbar {
    top: calc(var(--header-height) + env(safe-area-inset-top));
    grid-template-columns: minmax(0, 1fr) 45px 78px;
    gap: 7px;
    width: calc(100% + 8px);
    margin: 0 -4px 8px;
    padding: 8px 4px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .search-field {
    height: 45px;
  }

  .sort-field {
    grid-column: 2;
    grid-row: 1;
    width: 45px;
    height: 45px;
    color: transparent;
  }

  .sort-field::before {
    content: "↕";
    position: absolute;
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    color: var(--ink);
    font-size: 19px;
    pointer-events: none;
  }

  .sort-field {
    position: relative;
  }

  .sort-select {
    width: 45px;
    padding: 0;
    color: transparent;
  }

  .sort-select option {
    color: var(--ink);
  }

  .search-submit {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    min-height: 45px;
    height: 45px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
  }

  .category-chips {
    margin-bottom: 2px;
    padding: 4px 0 8px;
  }

  .category-chips a {
    min-height: 34px;
    padding: 0 13px;
    font-size: 11px;
  }

  .catalog-status {
    margin: 5px 1px 12px;
  }

  .product-grid,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card,
  .product-card {
    border-radius: 15px;
  }

  .card:hover,
  .product-card:hover {
    box-shadow: none;
    transform: none;
  }

  .card-overlay {
    display: none;
  }

  .card-body {
    padding: 11px 10px 12px;
  }

  .product-card-heading {
    gap: 2px;
    margin-bottom: 9px;
  }

  .product-card-heading h2 {
    font-size: 16px;
  }

  .product-card-heading small {
    font-size: 10px;
  }

  .product-total-price {
    padding-top: 9px;
  }

  .product-total-price span {
    font-size: 8.5px;
  }

  .product-total-price strong {
    font-size: 17px;
  }

  .product-unit-meta {
    display: grid;
    gap: 1px;
    margin-top: 6px;
    font-size: 9.5px;
  }

  .product-unit-meta span:last-child {
    justify-self: start;
  }

  .product-card > .favorite-toggle {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .pagination {
    margin-top: 24px;
  }

  .page-btn-gold {
    min-height: 40px;
    padding: 0 13px;
    font-size: 11px;
  }

  .product-layout {
    gap: 12px;
    padding-top: 12px;
  }

  .product-photo,
  .product-panel {
    border-radius: var(--radius-md);
  }

  .product-photo {
    padding: 7px;
  }

  .zoom-box {
    border-radius: var(--radius-sm);
  }

  .product-panel {
    padding: 19px 16px 20px;
  }

  .product-panel h1 {
    font-size: 34px;
  }

  .product-intro {
    font-size: 13px;
  }

  .product-price-hero strong {
    font-size: 29px;
  }

  .page-product .container {
    padding-bottom: 120px;
  }

  .mobile-product-buybar {
    position: fixed;
    right: 0;
    bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    left: 0;
    z-index: 175;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.9fr);
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 -10px 28px rgba(17, 17, 17, 0.06);
    backdrop-filter: blur(16px);
  }

  .mobile-product-buybar > div {
    display: grid;
    gap: 1px;
  }

  .mobile-product-buybar span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-product-buybar strong {
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
  }

  .mobile-product-buybar .btn-main {
    min-height: 45px;
    padding: 0 12px;
  }

  .quick-preview-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .quick-preview-dialog {
    display: flex;
    width: 100%;
    max-height: min(91vh, 820px);
    flex-direction: column;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
  }

  .quick-preview-overlay.active .quick-preview-dialog {
    transform: translateY(0);
  }

  .bottom-sheet-handle {
    position: absolute;
    top: 7px;
    left: 50%;
    z-index: 6;
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: var(--line-strong);
    transform: translateX(-50%);
  }

  .quick-preview-close {
    top: 14px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 23px;
  }

  .quick-preview-favorite {
    top: 14px;
    right: auto;
    left: 12px;
    width: 38px;
    height: 38px;
  }

  .quick-preview-image {
    min-height: 0;
    height: min(42vh, 340px);
    flex: 0 0 min(42vh, 340px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-preview-image img {
    padding: 12px;
  }

  .quick-preview-info {
    flex: 1;
    padding: 18px 14px max(14px, env(safe-area-inset-bottom));
  }

  .quick-preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-right: 0;
  }

  .quick-preview-heading h3 {
    font-size: 28px;
  }

  .quick-detail-link {
    flex: 0 0 auto;
    margin-top: 22px;
    font-size: 10px;
  }

  .quick-price-summary {
    gap: 10px;
    margin: 16px 0 0;
  }

  .quick-price-total {
    padding: 13px 14px;
  }

  .quick-price-total strong {
    font-size: 26px;
  }

  .quick-buy-form {
    position: sticky;
    bottom: 0;
    grid-template-columns: 120px minmax(0, 1fr);
    margin-top: 12px;
    padding-top: 10px;
    background: var(--surface);
  }

  .quick-buy-form .quantity-control {
    grid-template-columns: 36px minmax(38px, 1fr) 36px;
  }

  .mini-cart-panel,
  .category-drawer {
    width: min(380px, 94vw);
  }

  .added-toast {
    bottom: calc(var(--mobile-nav-height) + 18px + env(safe-area-inset-bottom));
  }

  .whatsapp-float {
    display: none;
  }

  .footer {
    display: grid;
    gap: 6px;
    padding-bottom: 20px;
    text-align: center;
  }

  .footer-nav {
    gap: 10px;
    flex-wrap: wrap;
  }

  .recently-viewed-section {
    padding: 0 12px 18px;
  }

  .recently-viewed-header h2 {
    font-size: 20px;
  }

  .recently-viewed-track {
    grid-auto-columns: 140px;
  }

  .recent-product-card {
    grid-template-rows: 106px auto;
    border-radius: var(--radius-sm);
  }

  .cart-box {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .cart-table {
    display: block;
    min-width: 0;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tbody {
    display: grid;
    gap: 11px;
  }

  .cart-table tr.cart-row {
    display: grid;
    gap: 0;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
  }

  .cart-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .cart-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .cart-table td:last-child {
    border-bottom: 0;
  }

  .cart-table .cart-product-cell {
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 11px;
  }

  .cart-table .cart-product-cell::before,
  .cart-table .cart-action-cell::before {
    display: none;
  }

  .cart-product-cell .cart-sku-preview {
    max-width: 100%;
  }

  .cart-table .cart-qty-input {
    width: 96px;
  }

  .cart-action-cell {
    justify-content: center;
    padding-top: 11px;
  }

  .cart-remove-btn {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    background: #fff3f3;
    text-decoration: none;
  }

  .cart-total,
  .pedido-summary {
    font-size: 20px;
    text-align: left;
  }

  .customer-whatsapp-form {
    max-width: none;
  }

  .pedido-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .pedido-search {
    grid-template-columns: 1fr;
  }

  .pedido-head {
    display: grid;
  }

  .pedido-total {
    justify-self: start;
  }

  .pedido-table {
    min-width: 720px;
  }

  .frete-layout {
    gap: 12px;
  }

  .frete-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  .frete-card-head,
  .frete-results-head {
    display: grid;
    gap: 10px;
  }

  .frete-badge,
  .frete-results-head > span {
    justify-self: start;
    white-space: normal;
  }

  .frete-grid-fields,
  .frete-result-grid {
    grid-template-columns: 1fr;
  }

  .frete-actions-row {
    grid-template-columns: 1fr;
  }

  .frete-share-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .frete-share-actions {
    display: grid;
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .frete-result-dialog {
    align-self: end;
    width: 100%;
    max-height: 90vh;
    padding: 18px 14px;
    border-radius: 22px 22px 0 0;
  }

  .frete-result-modal {
    align-items: end;
    padding: 0;
  }

  .frete-loading-steps {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-bg {
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .brand-caption {
    display: none;
  }

  .topbar-actions {
    gap: 2px;
  }

  .product-grid,
  .grid {
    gap: 8px;
  }

  .card-body {
    padding: 10px 9px 11px;
  }

  .product-total-price strong {
    font-size: 16px;
  }

  .quick-buy-form {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .mobile-product-buybar {
    grid-template-columns: minmax(0, 1fr) 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

@media (display-mode: standalone) {
  .topbar {
    padding-top: env(safe-area-inset-top);
  }
}

/* Final state helpers must stay after component and responsive rules. */
.favorite-count:empty {
  display: none;
}

[hidden] {
  display: none;
}


/* Search action remains visible on narrow mobile screens. */
@media (max-width: 359px) {
  .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr) 42px 70px;
    gap: 5px;
  }

  .sort-field,
  .sort-field::before,
  .sort-select {
    width: 42px;
  }

  .search-submit {
    padding: 0 7px;
    font-size: 11px;
  }
}

/* ==========================================================
   V2.0 — Venda híbrida Atacado + Pacote
   ========================================================== */
.product-sale-badges{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 10px}.product-sale-badges span{display:inline-flex;align-items:center;min-height:25px;padding:4px 9px;border:1px solid #ded7cb;border-radius:999px;background:#fffdf9;color:#665b4b;font-size:10px;font-weight:800;letter-spacing:.02em}.product-total-price strong{font-size:clamp(18px,2vw,24px)}
.hybrid-buy-form{display:grid;gap:14px}.sale-mode-list{display:grid;gap:9px;margin-top:2px}.sale-mode-option{width:100%;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:11px;align-items:center;text-align:left;border:1px solid #dedbd5;background:#fff;border-radius:15px;padding:13px 14px;color:#171717;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.sale-mode-option:hover{border-color:#bca16d;transform:translateY(-1px)}.sale-mode-option.is-active{border-color:#111;box-shadow:0 0 0 1px #111,0 10px 26px rgba(0,0,0,.07)}.sale-mode-option.is-disabled{opacity:.48;cursor:not-allowed;transform:none}.sale-mode-radio{width:17px;height:17px;border:1.5px solid #aaa;border-radius:50%;position:relative}.sale-mode-option.is-active .sale-mode-radio{border-color:#111}.sale-mode-option.is-active .sale-mode-radio:after{content:"";position:absolute;inset:3px;border-radius:50%;background:#111}.sale-mode-copy{display:grid;gap:2px;min-width:0}.sale-mode-copy strong{font-size:15px}.sale-mode-copy small{font-size:11px;color:#716b64;line-height:1.25}.sale-mode-option>b{font-size:12px;white-space:nowrap;color:#2e2923}.sale-mode-panel{display:none}.sale-mode-panel.is-active{display:block}.atacado-panel{padding:13px;border:1px solid #ece6dc;border-radius:16px;background:#fbfaf7}.wholesale-panel-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.wholesale-panel-heading>div{display:grid;gap:2px}.wholesale-panel-heading strong{font-size:14px}.wholesale-panel-heading small{font-size:11px;color:#777}.wholesale-panel-heading>span{padding:5px 8px;border-radius:999px;background:#111;color:#fff;font-size:10px;font-weight:800;white-space:nowrap}.color-variation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.color-variation-card{border:1px solid #e5e1da;border-radius:13px;background:#fff;padding:7px;display:grid;gap:6px;transition:border-color .2s ease,box-shadow .2s ease}.color-variation-card.has-quantity{border-color:#111;box-shadow:0 0 0 1px #111}.color-image-button{display:block;width:100%;aspect-ratio:1/1;border:0;border-radius:9px;background:#fff;overflow:hidden;padding:0;cursor:pointer}.color-image-button img{width:100%;height:100%;object-fit:contain;display:block;background:#fff}.color-variation-card>strong{font-size:10px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.color-qty-control{display:grid;grid-template-columns:28px minmax(32px,1fr) 28px;height:29px;border:1px solid #ddd8cf;border-radius:9px;overflow:hidden}.color-qty-control button{border:0;background:#f4f1ec;font-size:17px;cursor:pointer}.color-qty-control input{min-width:0;width:100%;border:0;text-align:center;font-weight:800;font-size:12px;appearance:textfield}.color-qty-control input::-webkit-outer-spin-button,.color-qty-control input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.atacado-live-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}.atacado-live-summary>div{border-radius:12px;background:#111;color:#fff;padding:10px 11px;display:grid;gap:2px}.atacado-live-summary span{font-size:10px;color:#cfcfcf}.atacado-live-summary strong{font-size:18px}.sale-mode-error{margin:10px 0 0;padding:9px 10px;border-radius:10px;background:#fff0f0;color:#991b1b;font-size:12px;font-weight:700}.atacado-unavailable{display:grid;gap:4px;padding:14px;border-radius:12px;background:#f4f2ee;color:#706a61}.atacado-unavailable strong{font-size:13px}.atacado-unavailable span{font-size:11px}.compact-package-price{margin:0}.package-quantity-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #ece7df;border-radius:14px;background:#fff}.package-quantity-row label{font-size:12px;font-weight:800}.hybrid-add-button{width:100%;min-height:48px}
.quick-preview-dialog{max-width:900px}.quick-preview-info{overflow-y:auto}.quick-sale-mode-list{margin-top:8px}.quick-color-variation-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:250px;overflow:auto;padding-right:2px}.quick-buy-form{display:grid;gap:11px}.quick-buy-form .quick-price-summary{display:flex;justify-content:space-between;align-items:center;margin:0;padding:10px 12px}.quick-buy-form .quantity-control{flex:0 0 auto}.quick-buy-form .sale-mode-option{padding:11px 12px}.quick-buy-form .sale-mode-copy strong{font-size:14px}.quick-buy-form .sale-mode-copy small{font-size:10px}
.cart-mode-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:900}.cart-mode-atacado{background:#111;color:#fff}.cart-mode-pacote{background:#eee8dd;color:#514736}.hybrid-cart-table small{display:block;margin-top:4px;color:#777}.cart-color-editor{display:grid;gap:7px;min-width:210px}.cart-color-line{display:flex;justify-content:space-between;align-items:center;gap:10px}.cart-color-line>span{display:flex;align-items:center;gap:7px}.cart-color-line img{width:34px;height:34px;border-radius:8px;object-fit:contain;background:#fff;border:1px solid #eee}.cart-color-line b{font-size:11px}.cart-color-line input{width:62px;height:34px;border:1px solid #ddd;border-radius:8px;text-align:center;font-weight:800}.cart-atacado-count{font-size:12px;text-align:right}.order-color-summary{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.order-color-summary span{display:inline-flex;padding:4px 7px;border-radius:999px;background:#f0ece5;font-size:10px;font-weight:700}.hybrid-order-table small{display:block;color:#777;margin-top:4px}
.admin-color-count{display:inline-flex;min-width:30px;justify-content:center;padding:4px 8px;border-radius:999px;background:#111;color:#fff;font-size:11px;font-weight:900}.admin-colors-link{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:10px 12px;background:#7c5d2f;color:#fff;font-weight:800;font-size:12px}
@media(max-width:900px){.quick-preview-dialog{max-width:none}.quick-color-variation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.color-variation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sale-mode-option{grid-template-columns:18px minmax(0,1fr) auto}.sale-mode-option>b{font-size:11px}.hybrid-cart-table{min-width:850px}}
@media(max-width:560px){.color-variation-grid,.quick-color-variation-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.color-variation-card{padding:5px}.sale-mode-option{padding:11px 10px;gap:8px}.sale-mode-copy small{font-size:10px}.sale-mode-option>b{font-size:10px}.atacado-live-summary strong{font-size:16px}.wholesale-panel-heading{align-items:center}.product-sale-badges{margin-top:2px}}


/* ==========================================================
   V3.8.2 — Prévia rápida legível + mobile-first
   Corrige a grade herdada que comprimía seletor e variações.
   ========================================================== */
.quick-preview-dialog{
  width:min(1120px,96vw);
  max-width:1120px;
  grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);
}
.quick-preview-image{
  min-height:620px;
}
.quick-preview-info{
  padding:30px 30px 24px;
  scrollbar-gutter:stable;
}
.quick-buy-form{
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  gap:14px;
  margin-top:18px;
}
.quick-sale-mode-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:0;
}
.quick-buy-form .sale-mode-option{
  min-height:88px;
  grid-template-columns:20px minmax(0,1fr);
  align-content:center;
  padding:14px;
}
.quick-buy-form .sale-mode-option>b{
  grid-column:2;
  justify-self:start;
  white-space:normal;
  font-size:12px;
  line-height:1.25;
}
.quick-buy-form .sale-mode-copy strong{
  font-size:16px;
}
.quick-buy-form .sale-mode-copy small{
  font-size:12px;
  line-height:1.4;
}
.quick-buy-form .atacado-panel,
.quick-buy-form .pacote-panel,
.quick-buy-form .quick-add-button{
  grid-column:1/-1;
}
.quick-buy-form .atacado-panel{
  padding:15px;
}
.quick-color-variation-grid{
  grid-template-columns:repeat(4,minmax(82px,1fr));
  gap:10px;
  max-height:330px;
  padding:2px 4px 4px 2px;
}
.quick-color-variation-grid .color-variation-card{
  min-width:0;
  padding:8px;
  gap:7px;
}
.quick-color-variation-grid .color-image-button{
  aspect-ratio:4/3;
  min-height:68px;
  border:1px solid #eee9e1;
}
.quick-color-variation-grid .color-image-button img{
  padding:3px;
}
.quick-color-variation-grid .color-variation-card>strong{
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  font-size:11px;
  line-height:1.2;
}
.quick-color-variation-grid .color-qty-control{
  height:34px;
  grid-template-columns:31px minmax(34px,1fr) 31px;
}
.quick-color-variation-grid .color-qty-control button{
  font-size:19px;
}
.quick-color-variation-grid .color-qty-control input{
  font-size:13px;
}
.quick-buy-form .quick-price-summary{
  min-height:62px;
  padding:12px 14px;
  border:1px solid #ece7df;
  border-radius:14px;
  background:#fff;
}
.quick-add-button{
  width:100%;
  min-height:52px;
  font-size:15px;
}

@media (max-width:900px){
  .quick-preview-dialog{
    width:100%;
    max-width:none;
    max-height:min(94dvh,900px);
  }
  .quick-preview-image{
    height:clamp(220px,32dvh,330px);
    min-height:220px;
    flex-basis:clamp(220px,32dvh,330px);
  }
  .quick-preview-image img{
    padding:10px 14px;
  }
  .quick-preview-info{
    overflow:visible;
    padding:16px 14px calc(16px + env(safe-area-inset-bottom));
  }
  .quick-preview-heading{
    padding:0 46px;
  }
  .quick-preview-heading h3{
    font-size:30px;
  }
  .quick-detail-link{
    margin-top:20px;
    font-size:12px;
    white-space:nowrap;
  }
  .quick-sale-mode-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .quick-color-variation-grid{
    grid-template-columns:repeat(3,minmax(92px,1fr));
    max-height:none;
    overflow:visible;
  }
  .quick-buy-form{
    position:static;
    padding-top:0;
  }
  .quick-add-button{
    position:sticky;
    bottom:calc(env(safe-area-inset-bottom) * -1);
    z-index:4;
    box-shadow:0 -8px 18px rgba(255,255,255,.92);
  }
}

@media (max-width:560px){
  .quick-preview-dialog{
    max-height:96dvh;
    border-radius:20px 20px 0 0;
  }
  .quick-preview-image{
    height:clamp(190px,28dvh,270px);
    min-height:190px;
    flex-basis:clamp(190px,28dvh,270px);
  }
  .quick-preview-info{
    padding:14px 12px calc(14px + env(safe-area-inset-bottom));
  }
  .quick-preview-heading{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:8px;
    padding:0 44px 0 0;
  }
  .quick-preview-heading .eyebrow{
    font-size:10px;
  }
  .quick-preview-heading h3{
    font-size:27px;
  }
  .quick-preview-heading small{
    font-size:12px;
  }
  .quick-detail-link{
    margin:0 0 3px;
    font-size:11px;
  }
  .quick-buy-form{
    gap:11px;
    margin-top:13px;
  }
  .quick-sale-mode-list{
    grid-template-columns:1fr;
    gap:8px;
  }
  .quick-buy-form .sale-mode-option{
    min-height:70px;
    grid-template-columns:18px minmax(0,1fr) auto;
    padding:11px 12px;
  }
  .quick-buy-form .sale-mode-option>b{
    grid-column:3;
    grid-row:1;
    align-self:center;
    justify-self:end;
    max-width:96px;
    text-align:right;
    font-size:11px;
  }
  .quick-buy-form .sale-mode-copy strong{
    font-size:15px;
  }
  .quick-buy-form .sale-mode-copy small{
    font-size:11px;
  }
  .quick-buy-form .atacado-panel{
    padding:12px;
    border-radius:14px;
  }
  .wholesale-panel-heading{
    margin-bottom:10px;
  }
  .wholesale-panel-heading strong{
    font-size:15px;
  }
  .wholesale-panel-heading small{
    font-size:12px;
  }
  .quick-color-variation-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .quick-color-variation-grid .color-variation-card{
    grid-template-columns:74px minmax(0,1fr);
    grid-template-rows:auto auto;
    align-items:center;
    padding:7px;
  }
  .quick-color-variation-grid .color-image-button{
    grid-row:1/3;
    min-height:70px;
    aspect-ratio:1/1;
  }
  .quick-color-variation-grid .color-variation-card>strong{
    min-height:0;
    justify-content:flex-start;
    text-align:left;
    font-size:12px;
  }
  .quick-color-variation-grid .color-qty-control{
    height:35px;
  }
  .atacado-live-summary>div{
    padding:10px;
  }
  .atacado-live-summary span{
    font-size:10px;
  }
  .atacado-live-summary strong{
    font-size:18px;
  }
  .quick-buy-form .quick-price-summary{
    min-height:58px;
    padding:10px 12px;
  }
  .quick-add-button{
    min-height:52px;
  }
}

@media (max-width:380px){
  .quick-color-variation-grid{
    grid-template-columns:1fr;
  }
  .quick-preview-heading{
    grid-template-columns:1fr;
    padding-right:42px;
  }
  .quick-detail-link{
    justify-self:start;
  }
}

/* ==========================================================
   V3.8.3 — Prévia rápida: grade responsiva + controles − / +
   Mantém os botões dentro do cartão em desktop e mobile.
   ========================================================== */
.quick-preview-dialog{
  width:min(1180px,calc(100vw - 32px));
  max-width:1180px;
  max-height:94dvh;
  grid-template-columns:minmax(0,1.12fr) minmax(500px,.88fr);
}
.quick-preview-info{
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:28px 28px 22px;
}
.quick-preview-image img{
  box-sizing:border-box;
}
.quick-buy-form{
  min-width:0;
  gap:12px;
}
.quick-buy-form .atacado-panel{
  min-width:0;
  overflow:hidden;
  padding:15px;
}
.quick-color-variation-grid{
  width:100%;
  min-width:0;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  max-height:360px;
  overflow-x:hidden;
  overflow-y:auto;
  padding:2px 6px 5px 2px;
  scrollbar-gutter:stable;
}
.quick-color-variation-grid .color-variation-card{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto minmax(28px,auto) 38px;
  align-content:start;
  padding:8px;
  gap:7px;
  overflow:hidden;
}
.quick-color-variation-grid .color-image-button{
  width:100%;
  min-width:0;
  min-height:82px;
  aspect-ratio:4/3;
}
.quick-color-variation-grid .color-variation-card>strong{
  width:100%;
  min-width:0;
  min-height:28px;
  padding:0 2px;
  overflow-wrap:anywhere;
}
.quick-color-variation-grid .color-qty-control{
  display:grid;
  width:100%;
  min-width:0;
  height:38px;
  box-sizing:border-box;
  grid-template-columns:36px minmax(0,1fr) 36px;
  align-items:stretch;
  overflow:hidden;
  border:1px solid #d8d2c9;
  border-radius:10px;
  background:#fff;
}
.quick-color-variation-grid .color-qty-control button{
  display:grid;
  width:100%;
  min-width:0;
  height:100%;
  place-items:center;
  padding:0;
  border:0;
  border-radius:0;
  background:#f5f2ed;
  color:#111;
  font-size:20px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.quick-color-variation-grid .color-qty-control button:first-child{
  border-right:1px solid #e2ddd5;
}
.quick-color-variation-grid .color-qty-control button:last-child{
  border-left:1px solid #e2ddd5;
}
.quick-color-variation-grid .color-qty-control button:hover{
  background:#ece7df;
}
.quick-color-variation-grid .color-qty-control button:active{
  background:#ded7cd;
  transform:none;
}
.quick-color-variation-grid .color-qty-control button:focus-visible{
  position:relative;
  z-index:2;
  outline:2px solid #111;
  outline-offset:-2px;
}
.quick-color-variation-grid .color-qty-control input{
  width:100%;
  min-width:0;
  height:100%;
  box-sizing:border-box;
  padding:0 2px;
  border:0;
  border-radius:0;
  background:#fff;
  color:#111;
  font-size:14px;
  font-weight:850;
  line-height:38px;
  text-align:center;
}
.quick-color-variation-grid .color-qty-control input:focus{
  outline:none;
  background:#fffdf8;
}

@media (max-width:1100px) and (min-width:901px){
  .quick-preview-dialog{
    width:min(1040px,calc(100vw - 24px));
    grid-template-columns:minmax(0,1fr) minmax(470px,.95fr);
  }
  .quick-preview-info{
    padding:24px 22px 20px;
  }
}

@media (max-width:900px){
  .quick-preview-dialog{
    width:100%;
    max-width:none;
    max-height:96dvh;
    overflow:hidden;
  }
  .quick-preview-image{
    height:clamp(190px,28dvh,290px);
    min-height:190px;
    flex:0 0 clamp(190px,28dvh,290px);
  }
  .quick-preview-image img{
    width:auto;
    height:auto;
    max-width:calc(100% - 24px);
    max-height:calc(clamp(190px,28dvh,290px) - 20px);
    padding:0;
    margin:auto;
    object-fit:contain;
  }
  .quick-preview-info{
    flex:1 1 auto;
    min-height:0;
    overflow-x:hidden;
    overflow-y:auto;
    padding:16px 14px calc(14px + env(safe-area-inset-bottom));
  }
  .quick-buy-form{
    position:static;
    min-width:0;
    margin-top:13px;
    padding-top:0;
  }
  .quick-sale-mode-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .quick-color-variation-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    max-height:none;
    overflow:visible;
    padding:1px;
    scrollbar-gutter:auto;
  }
  .quick-color-variation-grid .color-variation-card{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto minmax(27px,auto) 38px;
    padding:7px;
    gap:6px;
  }
  .quick-color-variation-grid .color-image-button{
    grid-row:auto;
    min-height:76px;
    aspect-ratio:4/3;
  }
  .quick-color-variation-grid .color-variation-card>strong{
    min-height:27px;
    justify-content:center;
    text-align:center;
    font-size:12px;
  }
  .quick-color-variation-grid .color-qty-control{
    width:100%;
    height:38px;
    grid-template-columns:36px minmax(0,1fr) 36px;
  }
  .quick-add-button{
    position:static;
    bottom:auto;
    box-shadow:none;
  }
}

@media (max-width:560px){
  .quick-preview-image{
    height:clamp(175px,25dvh,245px);
    min-height:175px;
    flex-basis:clamp(175px,25dvh,245px);
  }
  .quick-preview-image img{
    max-width:calc(100% - 20px);
    max-height:calc(clamp(175px,25dvh,245px) - 16px);
  }
  .quick-preview-info{
    padding:14px 12px calc(12px + env(safe-area-inset-bottom));
  }
  .quick-sale-mode-list{
    grid-template-columns:1fr;
  }
  .quick-buy-form .sale-mode-option{
    min-height:68px;
  }
  .quick-buy-form .atacado-panel{
    padding:12px;
  }
  .quick-color-variation-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .quick-color-variation-grid .color-image-button{
    min-height:68px;
  }
  .quick-color-variation-grid .color-qty-control{
    grid-template-columns:34px minmax(0,1fr) 34px;
    height:37px;
  }
  .quick-color-variation-grid .color-qty-control button{
    font-size:19px;
  }
  .quick-color-variation-grid .color-qty-control input{
    font-size:14px;
    line-height:37px;
  }
}

@media (max-width:340px){
  .quick-color-variation-grid{
    grid-template-columns:1fr;
  }
}

/* ==========================================================
   V3.8.4 — Carrinho mobile em largura real
   Remove a largura mínima herdada da tabela híbrida e melhora
   leitura, toque e organização do checkout em telas pequenas.
   ========================================================== */
@media (max-width: 760px) {
  html,
  body.page-cart {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.page-cart .topbar,
  body.page-cart .container,
  body.page-cart .hybrid-cart-form,
  body.page-cart .cart-box,
  body.page-cart .hybrid-cart-table,
  body.page-cart .cart-table,
  body.page-cart .cart-table tbody,
  body.page-cart .cart-table tr.cart-row,
  body.page-cart .cart-total,
  body.page-cart .customer-whatsapp-form,
  body.page-cart .actions {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  body.page-cart .container {
    overflow: visible;
    padding: 14px 10px 34px;
  }

  body.page-cart .page-title {
    margin-bottom: 14px;
    font-size: 29px;
    line-height: 1;
  }

  body.page-cart .cart-auto-save-status {
    display: flex;
    width: 100%;
    min-height: 42px;
    margin-bottom: 10px;
    padding: 9px 12px;
    border-radius: 13px;
    font-size: 10.5px;
    line-height: 1.35;
    white-space: normal;
  }

  body.page-cart .cart-box {
    overflow: hidden;
  }

  /* Must override the late V2 rule: .hybrid-cart-table{min-width:850px}. */
  body.page-cart .hybrid-cart-table,
  body.page-cart .cart-table {
    display: block;
    min-width: 0 !important;
    table-layout: fixed;
  }

  body.page-cart .cart-table tbody {
    display: grid;
    gap: 12px;
  }

  body.page-cart .cart-table tr.cart-row {
    display: block;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface-strong);
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.035);
  }

  body.page-cart .cart-table td {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(88px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  body.page-cart .cart-table td::before {
    align-self: start;
    padding-top: 3px;
    font-size: 9px;
    line-height: 1.25;
  }


  body.page-cart .cart-table .cart-product-cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: stretch;
    padding: 12px 13px;
    background: #fffdfa;
  }

  body.page-cart .cart-product-cell .cart-sku-preview {
    justify-self: start;
    min-height: 38px;
    max-width: 100%;
    padding: 0 12px;
    font-size: 13px;
  }

  body.page-cart .cart-product-cell > small {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.page-cart .cart-mode-badge {
    justify-self: end;
    min-height: 28px;
    padding: 6px 11px;
    font-size: 10px;
  }

  body.page-cart .cart-table td[data-label="Preço"] > strong,
  body.page-cart .cart-item-subtotal > strong {
    justify-self: end;
    font-size: 15px;
  }

  body.page-cart .cart-table td[data-label="Preço"] > small {
    grid-column: 2;
    justify-self: end;
    margin-top: -9px;
    font-size: 10px;
  }

  body.page-cart .cart-table td[data-label="Quantidade / Cores"] {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  body.page-cart .cart-table td[data-label="Quantidade / Cores"]::before {
    padding-top: 0;
  }

  body.page-cart .cart-qty-cell {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 84px;
    align-items: center;
    gap: 10px;
  }

  body.page-cart .cart-qty-cell .cart-qty-input {
    grid-column: 2;
    grid-row: 1;
    width: 84px;
    height: 42px;
    justify-self: end;
    font-size: 16px;
  }

  body.page-cart .cart-qty-cell small {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 10.5px;
    line-height: 1.3;
  }

  body.page-cart .cart-color-editor {
    width: 100%;
    min-width: 0;
    gap: 7px;
  }

  body.page-cart .cart-color-line {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 76px;
    align-items: center;
    gap: 10px;
    padding: 7px;
    border: 1px solid #ebe5dc;
    border-radius: 11px;
    background: #fbf9f6;
  }

  body.page-cart .cart-color-line > span {
    display: grid;
    min-width: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  body.page-cart .cart-color-line img {
    width: 42px;
    height: 42px;
    border-radius: 9px;
  }

  body.page-cart .cart-color-line b {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.25;
  }

  body.page-cart .cart-color-line input {
    width: 76px;
    height: 42px;
    justify-self: end;
    padding: 0 5px;
    font-size: 16px;
  }

  body.page-cart .cart-atacado-count {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1px;
    padding: 0 4px;
    font-size: 12px;
  }

  body.page-cart .cart-item-subtotal > strong {
    font-size: 17px;
    letter-spacing: -0.02em;
  }

  body.page-cart .cart-action-cell {
    display: block;
    padding: 10px 13px 12px;
    border-bottom: 0;
  }

  body.page-cart .cart-remove-btn {
    display: flex;
    width: 100%;
    min-height: 40px;
    border: 1px solid #f0dede;
    border-radius: 11px;
    background: #fff5f5;
    font-size: 11px;
  }

  body.page-cart .cart-update-btn {
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
  }

  body.page-cart .cart-total {
    margin: 12px 0;
    padding: 17px 16px;
    border-radius: 15px;
    font-size: 21px;
    line-height: 1.15;
    text-align: left;
  }

  body.page-cart .customer-whatsapp-form {
    gap: 9px;
    margin: 12px 0;
    padding: 16px;
    border-radius: 16px;
  }

  body.page-cart .customer-whatsapp-form label {
    font-size: 11px;
  }

  body.page-cart .customer-whatsapp-form input {
    height: 50px;
    font-size: 16px;
  }

  body.page-cart .customer-whatsapp-form .btn,
  body.page-cart .actions .btn {
    width: 100%;
    min-height: 48px;
  }

  body.page-cart .actions {
    margin: 12px 0 4px;
  }

  body.page-cart .recently-viewed-section {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  body.page-cart .container {
    padding-right: 8px;
    padding-left: 8px;
  }

  body.page-cart .cart-table td {
    grid-template-columns: minmax(78px, 0.68fr) minmax(0, 1.32fr);
    padding-right: 11px;
    padding-left: 11px;
  }

  body.page-cart .cart-color-line {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  body.page-cart .cart-color-line input {
    width: 70px;
  }
}

/* V3.8.4 final specificity fixes for the action row and piece count. */
@media (max-width: 760px) {
  body.page-cart .cart-table td.cart-action-cell {
    display: block;
    width: 100%;
    padding: 10px 13px 12px;
  }

  body.page-cart .cart-table td.cart-action-cell .cart-remove-btn {
    width: 100%;
    max-width: none;
  }

  body.page-cart .cart-atacado-count {
    gap: 4px;
  }
}

/* =========================================================
   V3.8.5 — Home banner carousel
   ========================================================= */
.home-banner-slider {
  position: relative;
  width: min(1600px, calc(100vw - 24px));
  margin: 0 50% 18px;
  border: 1px solid rgba(96, 78, 51, 0.13);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(42, 32, 20, 0.08);
  transform: translateX(-50%);
  isolation: isolate;
}

.home-banner-viewport {
  position: relative;
  overflow: hidden;
  height: clamp(330px, 33.333vw, 520px);
  border-radius: inherit;
  background: #eee7dc;
}

.home-banner-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.62s step-end;
}

.home-banner-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s step-start;
}

.home-banner-slide.theme-cream {
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(125deg, #f8f4ed 0%, #eee4d6 52%, #d7c1a5 100%);
}

.home-banner-slide.theme-mocha {
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 250, 242, 0.38), transparent 27%),
    linear-gradient(120deg, #f3e7d8 0%, #d6b997 52%, #a77f58 100%);
}

.home-banner-slide.theme-rose {
  background:
    radial-gradient(circle at 80% 24%, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(125deg, #fff6f4 0%, #ead3d0 52%, #c99e99 100%);
}

.home-banner-slide.theme-charcoal {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(125deg, #35312c 0%, #1e1c19 58%, #090909 100%);
}

.home-banner-slide::before {
  content: "";
  position: absolute;
  right: -7%;
  bottom: -52%;
  z-index: 0;
  width: min(46vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(255, 255, 255, 0.035),
    0 0 0 108px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.home-banner-media,
.home-banner-media img,
.home-banner-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-banner-media {
  z-index: 0;
}

.home-banner-media img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.002);
  transition: transform 7s ease;
}

.home-banner-slide.is-active .home-banner-media img {
  transform: scale(1.035);
}

.home-banner-shade {
  z-index: 1;
  background: rgb(0 0 0 / var(--banner-overlay-opacity, 0.15));
  pointer-events: none;
}

.home-banner-slide.align-left .home-banner-shade {
  background:
    linear-gradient(90deg, rgb(0 0 0 / calc(var(--banner-overlay-opacity, 0.15) + 0.14)) 0%, rgb(0 0 0 / var(--banner-overlay-opacity, 0.15)) 48%, transparent 100%);
}

.home-banner-slide.align-right .home-banner-shade {
  background:
    linear-gradient(270deg, rgb(0 0 0 / calc(var(--banner-overlay-opacity, 0.15) + 0.14)) 0%, rgb(0 0 0 / var(--banner-overlay-opacity, 0.15)) 48%, transparent 100%);
}

.home-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1180px, calc(100% - 120px));
  height: 100%;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 42px 0 72px;
  color: #111;
}

.home-banner-slide.align-center .home-banner-content {
  align-items: center;
  text-align: center;
}

.home-banner-slide.align-right .home-banner-content {
  align-items: flex-end;
  text-align: right;
}

.home-banner-slide.text-light .home-banner-content {
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}

.home-banner-slide.text-dark .home-banner-content {
  text-shadow: 0 1px 20px rgba(255, 255, 255, 0.36);
}

.home-banner-kicker {
  margin: 0 0 13px;
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
  opacity: 0.78;
}

.home-banner-title {
  max-width: 820px;
  margin: 0;
  color: currentColor;
  font-size: clamp(38px, 4.6vw, 68px);
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 0.99;
  text-wrap: balance;
}

.home-banner-subtitle {
  max-width: 650px;
  margin: 18px 0 0;
  color: currentColor;
  font-size: clamp(14px, 1.18vw, 18px);
  line-height: 1.55;
  opacity: 0.78;
  text-wrap: balance;
}

.home-banner-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 24px;
  padding: 0 19px;
  border: 1px solid #111;
  border-radius: 11px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-shadow: none;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.home-banner-slide.text-light .home-banner-button {
  border-color: rgba(255, 255, 255, 0.82);
  background: #fff;
  color: #111;
}

.home-banner-button:hover {
  transform: translateY(-2px);
}

.home-banner-button span {
  font-size: 18px;
  font-weight: 500;
}

.home-banner-controls {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 8px 25px rgba(23, 18, 12, 0.13);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-banner-arrow,
.home-banner-pause {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.home-banner-arrow:hover,
.home-banner-pause:hover {
  background: rgba(17, 17, 17, 0.08);
}

.home-banner-pause {
  font-size: 10px;
}

.home-banner-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-banner-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(17, 17, 17, 0.3);
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.home-banner-dots button.is-active {
  width: 23px;
  background: #111;
}

@media (max-width: 900px) {
  .home-banner-slider {
    width: calc(100vw - 20px);
    border-radius: 18px;
  }

  .home-banner-content {
    width: calc(100% - 64px);
  }

  .home-banner-title {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .home-banner-slider {
    width: calc(100vw - 16px);
    margin-top: 8px;
    margin-bottom: 12px;
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(42, 32, 20, 0.09);
    touch-action: pan-y;
  }

  .home-banner-viewport {
    height: clamp(420px, 125vw, 560px);
  }

  .home-banner-slide::before {
    right: -38%;
    bottom: -20%;
    width: 110vw;
  }

  .home-banner-media img {
    object-position: center;
  }

  .home-banner-content {
    width: 100%;
    padding: 34px 24px 86px;
  }

  .home-banner-slide.align-center .home-banner-content {
    padding-right: 28px;
    padding-left: 28px;
  }

  .home-banner-kicker {
    margin-bottom: 11px;
    font-size: 9.5px;
  }

  .home-banner-title {
    max-width: 100%;
    font-size: clamp(31px, 9.3vw, 43px);
    line-height: 1.02;
  }

  .home-banner-subtitle {
    max-width: 94%;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
  }

  .home-banner-button {
    min-height: 46px;
    margin-top: 20px;
    padding: 0 17px;
    font-size: 12px;
  }

  .home-banner-controls {
    right: 14px;
    bottom: 14px;
    gap: 4px;
    padding: 4px;
  }

  .home-banner-arrow,
  .home-banner-pause {
    width: 34px;
    height: 34px;
  }

  .home-banner-dots {
    gap: 5px;
  }
}

@media (max-width: 390px) {
  .home-banner-viewport {
    height: 465px;
  }

  .home-banner-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-banner-title {
    font-size: 31px;
  }

  .home-banner-controls {
    right: 10px;
    bottom: 10px;
  }

  .home-banner-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-banner-slide,
  .home-banner-media img,
  .home-banner-button,
  .home-banner-dots button {
    transition: none !important;
  }
}

/* ==========================================================
   V3.8.6 — CTA "Ver detalhes" mais visível na prévia rápida
   Botão compacto, profissional e responsivo para desktop/mobile.
   ========================================================== */
.quick-detail-link{
  position:relative;
  display:inline-grid;
  grid-template-columns:minmax(0,1fr) 28px;
  align-items:center;
  gap:8px;
  min-width:132px;
  min-height:44px;
  padding:6px 7px 6px 12px;
  overflow:hidden;
  border:1px solid #111;
  border-radius:999px;
  background:#111;
  color:#fff;
  box-shadow:0 8px 22px rgba(17,17,17,.16);
  text-decoration:none;
  text-underline-offset:0;
  isolation:isolate;
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.quick-detail-link::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:-46%;
  z-index:0;
  width:32%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.19),transparent);
  transform:skewX(-20deg);
  animation:quick-detail-attention 3.4s ease-in-out infinite;
  pointer-events:none;
}
.quick-detail-link-copy{
  position:relative;
  z-index:1;
  display:grid;
  min-width:0;
  gap:1px;
  line-height:1.05;
}
.quick-detail-link-copy small{
  margin:0;
  color:#d8bd86;
  font-size:8px;
  font-weight:850;
  letter-spacing:.09em;
  line-height:1.05;
  text-transform:uppercase;
  white-space:nowrap;
}
.quick-detail-link-copy strong{
  color:#fff;
  font-size:13px;
  font-weight:850;
  letter-spacing:-.01em;
  line-height:1.15;
  white-space:nowrap;
}
.quick-detail-link-icon{
  position:relative;
  z-index:1;
  display:grid;
  width:28px;
  height:28px;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#111;
  font-size:16px;
  font-weight:900;
  line-height:1;
  transition:transform .18s ease;
}
.quick-detail-link:hover{
  background:#27231f;
  color:#fff;
  box-shadow:0 11px 28px rgba(17,17,17,.22);
  transform:translateY(-1px);
}
.quick-detail-link:hover .quick-detail-link-icon{
  transform:translateX(2px);
}
.quick-detail-link:focus-visible{
  outline:3px solid rgba(188,161,109,.42);
  outline-offset:3px;
}
@keyframes quick-detail-attention{
  0%,62%{left:-46%}
  82%,100%{left:122%}
}
@media (prefers-reduced-motion:reduce){
  .quick-detail-link::before{animation:none}
  .quick-detail-link,.quick-detail-link-icon{transition:none}
}
@media (max-width:900px){
  .quick-detail-link{
    min-width:126px;
    min-height:42px;
    margin-top:14px;
    padding:5px 6px 5px 10px;
    gap:7px;
  }
  .quick-detail-link-copy small{font-size:7.5px}
  .quick-detail-link-copy strong{font-size:12px}
  .quick-detail-link-icon{width:27px;height:27px;font-size:15px}
}
@media (max-width:560px){
  .quick-preview-heading{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
  }
  .quick-detail-link{
    align-self:end;
    justify-self:end;
    min-width:122px;
    max-width:128px;
    min-height:40px;
    margin:0 0 1px;
    padding:5px 6px 5px 9px;
  }
  .quick-detail-link-copy small{font-size:7px;letter-spacing:.075em}
  .quick-detail-link-copy strong{font-size:11.5px}
  .quick-detail-link-icon{width:25px;height:25px;font-size:14px}
}
@media (max-width:340px){
  .quick-preview-heading{
    grid-template-columns:1fr;
    align-items:start;
  }
  .quick-detail-link{
    justify-self:start;
    margin-top:6px;
  }
}


/* ==========================================================
   V3.9.0 — prévia mobile ampliada + pedido mínimo
   ========================================================== */
.order-minimum-notice{
  display:grid;
  gap:4px;
  margin:14px 0;
  padding:14px 16px;
  border:1px solid #e0c58e;
  border-radius:14px;
  background:#fff8e8;
  color:#6f4e00;
  line-height:1.4;
}
.order-minimum-notice strong{font-size:14px;font-weight:900}
.order-minimum-notice span{font-size:12px;font-weight:650}
.order-minimum-notice.is-met{
  border-color:#a9dfc1;
  background:#effcf5;
  color:#087943;
}
.order-submit-button.is-below-minimum{
  box-shadow:0 0 0 3px rgba(225,170,50,.22),0 10px 24px rgba(0,0,0,.08);
}

@media (max-width:900px){
  /* Mostra a metade superior da arte original em largura total,
     em vez de reduzir a imagem inteira dentro de uma caixa pequena. */
  .quick-preview-image{
    height:clamp(255px,36dvh,355px);
    min-height:255px;
    flex:0 0 clamp(255px,36dvh,355px);
    place-items:start center;
    background:#f5f3f0;
  }
  .quick-preview-image img{
    width:100%;
    height:auto;
    max-width:none;
    max-height:none;
    margin:0;
    padding:0;
    object-fit:initial;
    object-position:top center;
  }
}

@media (max-width:560px){
  .quick-preview-image{
    height:clamp(245px,35dvh,330px);
    min-height:245px;
    flex-basis:clamp(245px,35dvh,330px);
  }
  .order-minimum-notice{margin:12px 0;padding:13px 14px}
}

@media (max-width:360px){
  .quick-preview-image{
    height:clamp(225px,34dvh,300px);
    min-height:225px;
    flex-basis:clamp(225px,34dvh,300px);
  }
}

/* ==========================================================
   V3.9.1 — Galeria de produtos (separada das variações de cor)
   ========================================================== */
body.gallery-lightbox-open{overflow:hidden}
.product-gallery{position:relative;display:grid;gap:12px;min-width:0}
.gallery-stage{position:relative;overflow:hidden;aspect-ratio:3/4;border:1px solid rgba(75,63,48,.12);border-radius:24px;background:#f8f5ef;isolation:isolate}
.gallery-main-button{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.gallery-main-button img{display:block;width:100%;height:100%;object-fit:contain;background:#fff;transition:opacity .2s ease;user-select:none;-webkit-user-select:none}
.gallery-main-button img.is-loading{opacity:.55}
.product-gallery.is-empty .gallery-stage:after{content:"SEM IMAGEM";position:absolute;inset:0;display:grid;place-items:center;color:#8a8178;font-weight:900;letter-spacing:.08em}
.gallery-arrow{position:absolute;top:50%;z-index:3;display:grid;width:44px;height:44px;place-items:center;transform:translateY(-50%);border:1px solid rgba(0,0,0,.12);border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 8px 24px rgba(0,0,0,.12);font-size:25px;line-height:1;cursor:pointer}
.gallery-arrow:hover{background:#111;color:#fff}
.gallery-arrow.prev{left:14px}.gallery-arrow.next{right:14px}
.gallery-counter{position:absolute;right:14px;bottom:14px;z-index:3;padding:7px 11px;border-radius:999px;background:rgba(17,17,17,.78);color:#fff;font-size:12px;font-weight:850;letter-spacing:.04em;backdrop-filter:blur(8px)}
.gallery-loading-badge{position:absolute;left:14px;bottom:14px;z-index:3;display:none;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.9);font-size:11px;font-weight:800}
.product-gallery.is-loading-gallery .gallery-loading-badge{display:inline-flex}
.gallery-thumbnails{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:9px;max-height:178px;overflow:auto;padding:2px}
.gallery-thumbnail{position:relative;overflow:hidden;aspect-ratio:3/4;padding:0;border:2px solid transparent;border-radius:12px;background:#fff;cursor:pointer}
.gallery-thumbnail img{width:100%;height:100%;object-fit:cover;display:block}
.gallery-thumbnail.is-active{border-color:#111;box-shadow:0 0 0 2px rgba(201,181,141,.45)}
.gallery-thumbnail span{position:absolute;left:4px;right:4px;bottom:4px;padding:3px 4px;border-radius:6px;background:rgba(17,17,17,.78);color:#fff;font-size:8px;font-weight:850;text-align:center}
.gallery-mobile-pagination{display:none;align-items:center;justify-content:center;gap:10px;min-height:24px}
.gallery-dots{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
.gallery-dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#c7c2bb;cursor:pointer;transition:.18s ease}
.gallery-dot.is-active{width:19px;border-radius:999px;background:#111}
.gallery-mobile-counter{font-size:12px;font-weight:850;color:#6a6259}
.product-gallery-lightbox{position:fixed;inset:0;z-index:5000;display:none;align-items:center;justify-content:center;padding:28px;background:rgba(7,7,7,.94);backdrop-filter:blur(12px)}
.product-gallery-lightbox.active{display:flex}
.product-gallery-lightbox img{display:block;max-width:min(92vw,1200px);max-height:90vh;object-fit:contain;border-radius:10px;background:#fff}
.gallery-lightbox-close,.gallery-lightbox-arrow{position:absolute;z-index:3;display:grid;place-items:center;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.12);color:#fff;cursor:pointer;backdrop-filter:blur(10px)}
.gallery-lightbox-close{top:18px;right:18px;width:48px;height:48px;border-radius:50%;font-size:30px}
.gallery-lightbox-arrow{top:50%;width:50px;height:64px;transform:translateY(-50%);border-radius:14px;font-size:32px}
.gallery-lightbox-arrow.prev{left:20px}.gallery-lightbox-arrow.next{right:20px}
.product-gallery-lightbox.single-image .gallery-lightbox-arrow{display:none}
.gallery-lightbox-counter{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:12px;font-weight:850}
.product-detail-gallery{width:100%;max-width:680px;margin-inline:auto}
.quick-preview-gallery{height:100%;align-content:center;padding:18px}
.quick-preview-gallery .gallery-stage{max-height:calc(100vh - 160px);margin:auto;box-shadow:0 14px 38px rgba(0,0,0,.08)}
.quick-preview-gallery .gallery-main-button img{object-fit:contain}
.quick-preview-gallery .gallery-thumbnails{grid-template-columns:repeat(auto-fit,minmax(60px,78px));justify-content:center}

@media(max-width:900px){
  .gallery-stage{border-radius:0;border-left:0;border-right:0}
  .gallery-thumbnails{display:none!important}
  .gallery-mobile-pagination{display:flex}
  .gallery-arrow{display:none!important}
  .gallery-counter{display:none}
  .quick-preview-gallery{height:auto;padding:0;background:#fff}
  .quick-preview-gallery .gallery-stage{width:100%;max-height:none;margin:0;border-radius:0;box-shadow:none}
  .quick-preview-gallery .gallery-main-button img{object-fit:cover;object-position:center top}
  .quick-preview-gallery .gallery-mobile-pagination{padding:8px 12px 5px;background:#fff}
  .product-detail-gallery .gallery-stage{border-radius:18px}
  .product-gallery-lightbox{padding:10px}
  .product-gallery-lightbox img{max-width:100%;max-height:86vh;border-radius:4px}
  .gallery-lightbox-arrow{width:42px;height:54px;font-size:26px}
  .gallery-lightbox-arrow.prev{left:8px}.gallery-lightbox-arrow.next{right:8px}
  .gallery-lightbox-close{top:10px;right:10px;width:44px;height:44px}
}

/* Ajustes de integração da galeria com a prévia rápida existente */
.quick-preview-gallery .gallery-stage{width:min(100%,420px)}
.quick-preview-image.quick-preview-gallery-wrap{overflow-y:auto}
.quick-preview-image.quick-preview-gallery-wrap> .quick-preview-gallery{width:100%}
@media(max-width:900px){
  .quick-preview-image.quick-preview-gallery-wrap{
    display:block;
    height:auto;
    min-height:0;
    flex:0 0 auto;
    overflow:visible;
    border-bottom:1px solid var(--line);
  }
  .quick-preview-image.quick-preview-gallery-wrap .quick-preview-gallery{width:100%}
  .quick-preview-image.quick-preview-gallery-wrap .gallery-stage{width:100%;aspect-ratio:3/4}
  .quick-preview-image.quick-preview-gallery-wrap img{
    width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;
    object-fit:cover;object-position:center top;
  }
}

/* V3.9.1: respeita o atributo hidden quando a galeria possui somente uma imagem. */
.product-gallery .gallery-arrow[hidden],
.product-gallery .gallery-thumbnails[hidden],
.product-gallery .gallery-dots[hidden]{display:none!important}

/* ==========================================================
   V4.0.4 — Prévia rápida: quantidade de Pacote sem overflow
   Mantém rótulo e seletor dentro do painel em desktop/mobile.
   ========================================================== */
.quick-buy-form .pacote-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.quick-buy-form .pacote-panel .quick-price-summary {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: minmax(105px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
  align-items: center;
  justify-content: stretch;
}

.quick-buy-form .pacote-panel .quick-price-meta {
  min-width: 0;
}

.quick-buy-form .pacote-panel .quick-price-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quick-buy-form .pacote-panel .quantity-control {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
}

@media (max-width: 560px) {
  .quick-buy-form .pacote-panel .quick-price-summary {
    grid-template-columns: minmax(76px, 0.65fr) minmax(0, 1.35fr);
    gap: 9px;
  }

  .quick-buy-form .pacote-panel .quantity-control {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }
}

@media (max-width: 340px) {
  .quick-buy-form .pacote-panel .quick-price-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* =========================================================
   CAMELA V4.0.5 — SKU claramente clicável no carrinho/pedido
   ========================================================= */
.cart-sku-preview {
  min-height: 42px;
  max-width: 100%;
  cursor: pointer;
  border: 1px solid #b9d6fb;
  border-radius: 11px;
  background: #f1f7ff;
  color: #075fbd;
  box-shadow: 0 5px 14px rgba(11, 99, 206, 0.08);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cart-sku-preview::before {
  content: "▣";
  color: #075fbd;
  font-size: 14px;
}

.cart-sku-preview .cart-sku-code {
  color: #075fbd;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.cart-sku-preview .cart-sku-action {
  color: #43698f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.cart-sku-preview:hover {
  border-color: #0b63ce;
  background: #e8f3ff;
  box-shadow: 0 8px 18px rgba(11, 99, 206, 0.14);
  transform: translateY(-1px);
}

.cart-sku-preview:focus-visible {
  outline: 3px solid rgba(11, 99, 206, 0.22);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .cart-sku-preview {
    min-height: 40px;
    padding: 0 10px;
    gap: 7px;
  }

  .cart-sku-preview .cart-sku-action {
    font-size: 9px;
  }
}

/* ==========================================================
   CAMELA V4.0.6 — Prévia rápida mobile compacta
   Limita a altura da capa, mantém o foco superior e antecipa
   a visualização das opções Atacado e Pacote.
   ========================================================== */
@media (max-width: 900px) {
  .quick-preview-dialog {
    max-height: min(96dvh, 900px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .quick-preview-image.quick-preview-gallery-wrap {
    display: grid;
    height: clamp(190px, 26dvh, 245px);
    min-height: 190px;
    flex: 0 0 clamp(190px, 26dvh, 245px);
    place-items: stretch;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #f6f3ee;
  }

  .quick-preview-image.quick-preview-gallery-wrap > .quick-preview-gallery {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
    padding: 0;
    background: #fff;
  }

  .quick-preview-image.quick-preview-gallery-wrap .gallery-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .quick-preview-image.quick-preview-gallery-wrap .gallery-main-button {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #fff;
  }

  .quick-preview-image.quick-preview-gallery-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center top;
    background: #fff;
  }

  .quick-preview-image.quick-preview-gallery-wrap .gallery-mobile-pagination {
    min-height: 27px;
    padding: 4px 10px 5px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .quick-preview-info {
    flex: 0 0 auto;
    padding: 11px 12px calc(12px + env(safe-area-inset-bottom));
  }

  .quick-preview-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    padding-right: 0;
  }

  .quick-preview-heading .eyebrow {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .quick-preview-heading h3 {
    font-size: 26px;
    line-height: 0.98;
  }

  .quick-preview-heading small {
    margin-top: 3px;
    font-size: 11px;
  }

  .quick-detail-link {
    align-self: end;
    min-width: 112px;
    max-width: 122px;
    min-height: 38px;
    margin: 0;
    padding: 4px 5px 4px 8px;
  }

  .quick-detail-link-copy small {
    font-size: 6.5px;
  }

  .quick-detail-link-copy strong {
    font-size: 11px;
  }

  .quick-detail-link-icon {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .quick-buy-form {
    gap: 8px;
    margin-top: 8px;
  }

  .quick-sale-mode-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
  }

  .quick-buy-form .sale-mode-option {
    min-width: 0;
    min-height: 62px;
    grid-template-columns: 15px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 7px;
    align-content: center;
    padding: 8px;
    border-radius: 13px;
  }

  .quick-buy-form .sale-mode-radio {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 15px;
    height: 15px;
  }

  .quick-buy-form .sale-mode-copy {
    grid-column: 2;
    grid-row: 1;
    gap: 1px;
  }

  .quick-buy-form .sale-mode-copy strong {
    font-size: 13px;
    line-height: 1.15;
  }

  .quick-buy-form .sale-mode-copy small {
    font-size: 9px;
    line-height: 1.22;
  }

  .quick-buy-form .sale-mode-option > b {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.15;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .quick-preview-image.quick-preview-gallery-wrap {
    height: clamp(180px, 24dvh, 220px);
    min-height: 180px;
    flex-basis: clamp(180px, 24dvh, 220px);
  }
}

@media (max-width: 360px) {
  .quick-preview-image.quick-preview-gallery-wrap {
    height: clamp(165px, 23dvh, 195px);
    min-height: 165px;
    flex-basis: clamp(165px, 23dvh, 195px);
  }

  .quick-preview-info {
    padding-right: 9px;
    padding-left: 9px;
  }

  .quick-detail-link {
    min-width: 105px;
    max-width: 110px;
  }

  .quick-sale-mode-list {
    gap: 5px;
  }

  .quick-buy-form .sale-mode-option {
    padding: 7px 6px;
  }
}

@media (max-height: 700px) and (max-width: 560px) and (orientation: portrait) {
  .quick-preview-image.quick-preview-gallery-wrap {
    height: clamp(150px, 22dvh, 175px);
    min-height: 150px;
    flex-basis: clamp(150px, 22dvh, 175px);
  }

  .quick-preview-info {
    padding-top: 9px;
  }

  .quick-preview-heading h3 {
    font-size: 24px;
  }
}

/* Celular em paisagem: imagem à esquerda e compra à direita. */
@media (max-width: 1024px) and (max-height: 560px) and (orientation: landscape) {
  .quick-preview-overlay {
    align-items: center;
    padding: 8px;
  }

  .quick-preview-dialog {
    display: grid;
    width: min(960px, calc(100vw - 16px));
    height: min(96dvh, 520px);
    max-height: min(96dvh, 520px);
    grid-template-columns: minmax(230px, 42%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    transform: translateY(12px) scale(0.985);
  }

  .quick-preview-overlay.active .quick-preview-dialog {
    transform: translateY(0) scale(1);
  }

  .bottom-sheet-handle {
    display: none;
  }

  .quick-preview-favorite {
    top: 12px;
    right: auto;
    left: 12px;
  }

  .quick-preview-close {
    top: 12px;
    right: 12px;
  }

  .quick-preview-image.quick-preview-gallery-wrap {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: none;
    place-items: stretch;
    overflow: hidden;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .quick-preview-image.quick-preview-gallery-wrap > .quick-preview-gallery {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
    padding: 0;
    background: #fff;
  }

  .quick-preview-image.quick-preview-gallery-wrap .gallery-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .quick-preview-image.quick-preview-gallery-wrap .gallery-main-button,
  .quick-preview-image.quick-preview-gallery-wrap img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
  }

  .quick-preview-image.quick-preview-gallery-wrap img {
    object-fit: cover;
    object-position: center top;
  }

  .quick-preview-image.quick-preview-gallery-wrap .gallery-mobile-pagination {
    display: flex;
    min-height: 27px;
    padding: 4px 10px 5px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .quick-preview-image.quick-preview-gallery-wrap .gallery-thumbnails,
  .quick-preview-image.quick-preview-gallery-wrap .gallery-arrow,
  .quick-preview-image.quick-preview-gallery-wrap .gallery-counter {
    display: none !important;
  }

  .quick-preview-info {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px 48px 12px 12px;
  }

  .quick-preview-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    padding-right: 0;
  }

  .quick-preview-heading .eyebrow {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .quick-preview-heading h3 {
    font-size: 25px;
    line-height: 0.98;
  }

  .quick-preview-heading small {
    margin-top: 3px;
    font-size: 11px;
  }

  .quick-detail-link {
    align-self: end;
    min-width: 105px;
    max-width: 112px;
    min-height: 38px;
    margin: 0;
    padding: 4px 5px 4px 8px;
  }

  .quick-detail-link-copy small {
    font-size: 6.5px;
  }

  .quick-detail-link-copy strong {
    font-size: 11px;
  }

  .quick-detail-link-icon {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .quick-buy-form {
    gap: 8px;
    margin-top: 8px;
  }

  .quick-sale-mode-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
  }

  .quick-buy-form .sale-mode-option {
    min-width: 0;
    min-height: 58px;
    grid-template-columns: 15px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 7px;
    align-content: center;
    padding: 8px;
  }

  .quick-buy-form .sale-mode-radio {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .quick-buy-form .sale-mode-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .quick-buy-form .sale-mode-option > b {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}


/* ==========================================================
   CAMELA V4.0.7 — Prévia rápida: recorte de meia capa
   Exibe aproximadamente a metade superior da imagem 3:4 no
   celular, sem voltar ao tamanho que ocupava a tela inteira.
   ========================================================== */
@media (max-width: 560px) and (orientation: portrait) {
  .quick-preview-image.quick-preview-gallery-wrap {
    height: clamp(210px, 66.666vw, 300px);
    min-height: 0;
    flex: 0 0 clamp(210px, 66.666vw, 300px);
  }

  .quick-preview-image.quick-preview-gallery-wrap .gallery-stage,
  .quick-preview-image.quick-preview-gallery-wrap .gallery-main-button {
    height: 100%;
    min-height: 0;
  }

  .quick-preview-image.quick-preview-gallery-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

/* Tablets estreitos em retrato: mantém uma leitura maior da capa,
   mas limita o bloco para preservar as opções de compra na abertura. */
@media (min-width: 561px) and (max-width: 900px) and (orientation: portrait) {
  .quick-preview-image.quick-preview-gallery-wrap {
    height: clamp(300px, 52vw, 420px);
    min-height: 0;
    flex: 0 0 clamp(300px, 52vw, 420px);
  }
}

/* ==========================================================
   CAMELA V4.0.8 — Recorte móvel configurável da prévia rápida
   O valor vem de data/settings.json e é publicado pelo header
   como --quick-preview-mobile-cover-height. Desktop e tablet
   permanecem com o layout anterior.
   ========================================================== */
@media (max-width: 560px) and (orientation: portrait) {
  .quick-preview-image.quick-preview-gallery-wrap {
    height: var(--quick-preview-mobile-cover-height, 66.667vw);
    min-height: 0;
    flex: 0 0 var(--quick-preview-mobile-cover-height, 66.667vw);
  }
}

/* =========================================================
   V4.0.9 — Cartões da página inicial: preço de atacado direto
   - remove o bloco "A partir de / peça" do catálogo
   - prioriza ATACADO; se indisponível, usa PACOTE com total
   ========================================================= */
.page-index .product-card .product-card-heading {
  margin-bottom: 0;
}

.page-index .product-card .product-sale-badges {
  display: flex;
  align-items: center;
  margin: 13px 0 0;
}

.page-index .product-card .product-sale-badges .product-card-mode-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  width: auto;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #d9d1c4;
  border-radius: 999px;
  background: #fffdf8;
  color: #2e2923;
  box-shadow: 0 2px 8px rgba(36, 30, 22, 0.05);
  line-height: 1.15;
  white-space: nowrap;
}

.page-index .product-card .product-sale-badges .product-card-mode-price b {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.055em;
}

.page-index .product-card .product-sale-badges .product-card-mode-price strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.page-index .product-card .product-sale-badges .product-card-mode-price.is-atacado {
  border-color: #cdbf9f;
  background: #fffaf0;
}

.page-index .product-card .product-sale-badges .product-card-mode-price.is-pacote {
  border-color: #d7d2c8;
  background: #f7f4ee;
}

.page-index .product-card .product-sale-badges .product-card-mode-price.is-unavailable {
  color: #77716a;
  background: #f3f1ed;
}

@media (max-width: 760px) {
  .page-index .product-card .card-body {
    padding-bottom: 13px;
  }

  .page-index .product-card .product-sale-badges {
    margin-top: 10px;
  }

  .page-index .product-card .product-sale-badges .product-card-mode-price {
    min-height: 32px;
    padding: 7px 10px;
    gap: 5px;
  }

  .page-index .product-card .product-sale-badges .product-card-mode-price b {
    font-size: 11px;
  }

  .page-index .product-card .product-sale-badges .product-card-mode-price strong {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .page-index .product-card .product-sale-badges .product-card-mode-price {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 2px;
    padding-inline: 7px;
    white-space: normal;
  }

  .page-index .product-card .product-sale-badges .product-card-mode-price b,
  .page-index .product-card .product-sale-badges .product-card-mode-price strong {
    white-space: nowrap;
  }

  .page-index .product-card .product-sale-badges .product-card-mode-price b,
  .page-index .product-card .product-sale-badges .product-card-mode-price strong {
    font-size: 10.5px;
  }
}



/* =========================================================
   V4.0.12 — Forma de entrega obrigatória no carrinho
   ========================================================= */
.delivery-choice-fieldset {
  min-width: 0;
  margin: 5px 0 2px;
  padding: 0;
  border: 0;
}

.delivery-choice-fieldset legend {
  padding: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.delivery-choice-fieldset legend span {
  color: var(--danger);
}

.delivery-choice-help {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.delivery-choice-grid {
  display: grid;
  gap: 10px;
}

.delivery-choice-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fffdfa;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.delivery-choice-card:hover {
  border-color: #9f8c70;
  box-shadow: 0 8px 22px rgba(56, 43, 26, 0.07);
}

.delivery-choice-card:has(input:checked) {
  border-color: var(--ink);
  background: #f8f4ed;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.06);
}

.delivery-choice-card input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}

.delivery-choice-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.delivery-choice-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.delivery-choice-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.pedido-delivery-card {
  display: grid;
  gap: 5px;
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid #dfd5c8;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: #fbf8f3;
}

.pedido-delivery-card > span {
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pedido-delivery-card > strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.pedido-delivery-card > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

@media (min-width: 980px) {
  body.page-cart .customer-whatsapp-form {
    max-width: 760px;
  }

  body.page-cart .delivery-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  body.page-cart .delivery-choice-card {
    height: 100%;
  }
}

@media (max-width: 760px) {
  body.page-cart .delivery-choice-fieldset,
  body.page-cart .delivery-choice-grid,
  body.page-cart .delivery-choice-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  body.page-cart .delivery-choice-card {
    padding: 13px;
    border-radius: 13px;
  }

  body.page-cart .delivery-choice-copy strong {
    font-size: 13px;
  }

  body.page-cart .delivery-choice-copy small {
    font-size: 10.5px;
    line-height: 1.5;
  }
}

/* =========================================================
   CAMELA V4.0.13 — Pedido com imagens de variações e
   contagem real de peças/pacotes
   ========================================================= */
.order-quantity-banner {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #e1d8cc;
  border-radius: 13px;
  background: #fbf8f3;
}

.order-quantity-banner > span {
  flex: 0 0 auto;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.order-quantity-banner > strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

body.page-cart .cart-order-quantity {
  width: 100%;
  margin: -4px 0 14px;
}

body.page-pedido .pedido-card {
  width: min(100%, 1180px);
}

body.page-pedido .pedido-head-v413 {
  align-items: flex-start;
  margin-bottom: 16px;
}

body.page-pedido .pedido-heading-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
}

body.page-pedido .pedido-head-v413 h1 {
  overflow-wrap: anywhere;
}

body.page-pedido .pedido-meta-line {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

body.page-pedido .pedido-meta-line strong {
  color: var(--ink);
}

body.page-pedido .pedido-order-quantity {
  width: fit-content;
  max-width: 100%;
  margin-top: 3px;
}

body.page-pedido .pedido-items-v413 {
  overflow: hidden;
}

body.page-pedido .pedido-variant-table {
  min-width: 980px;
  table-layout: fixed;
}

body.page-pedido .pedido-variant-table th:nth-child(1) { width: 18%; }
body.page-pedido .pedido-variant-table th:nth-child(2) { width: 11%; }
body.page-pedido .pedido-variant-table th:nth-child(3) { width: 19%; }
body.page-pedido .pedido-variant-table th:nth-child(4) { width: 39%; }
body.page-pedido .pedido-variant-table th:nth-child(5) { width: 13%; }

body.page-pedido .pedido-variant-table td {
  vertical-align: top;
}

body.page-pedido .pedido-product-cell {
  display: grid;
  gap: 7px;
}

body.page-pedido .pedido-product-preview {
  width: 100%;
  min-height: 66px;
  justify-content: flex-start;
  padding: 6px 9px;
  border-radius: 13px;
}

body.page-pedido .pedido-product-preview::before,
body.page-pedido .pedido-variant-card::before {
  display: none;
}

body.page-pedido .pedido-product-preview > img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid #e5ded4;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

body.page-pedido .pedido-product-preview > span {
  display: grid;
  min-width: 0;
  gap: 5px;
  text-align: left;
}

body.page-pedido .pedido-product-preview .cart-sku-code {
  overflow-wrap: anywhere;
  font-size: 15px;
}

body.page-pedido .pedido-product-category {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

body.page-pedido .pedido-mode-cell,
body.page-pedido .pedido-price-cell,
body.page-pedido .pedido-subtotal-cell {
  padding-top: 18px;
}

body.page-pedido .pedido-price-cell {
  display: grid;
  gap: 5px;
}

body.page-pedido .pedido-price-cell > strong,
body.page-pedido .pedido-subtotal-cell > strong {
  color: var(--ink);
  font-size: 14px;
}

body.page-pedido .pedido-price-cell > small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

body.page-pedido .pedido-variant-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

body.page-pedido .pedido-variant-card {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border: 1px solid #e5ded4;
  border-radius: 11px;
  background: #fbf9f6;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}

body.page-pedido .pedido-variant-card:hover {
  border-color: #9fc6f5;
  background: #f0f7ff;
  box-shadow: 0 5px 12px rgba(11, 99, 206, .08);
}

body.page-pedido .pedido-variant-card > img {
  width: 46px;
  height: 46px;
  border: 1px solid #e4ddd3;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

body.page-pedido .pedido-variant-card > span,
body.page-pedido .pedido-package-card > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body.page-pedido .pedido-variant-card b,
body.page-pedido .pedido-package-card b {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.25;
}

body.page-pedido .pedido-variant-card small,
body.page-pedido .pedido-package-card small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

body.page-pedido .pedido-package-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid #e5ded4;
  border-radius: 11px;
  background: #fbf9f6;
}

body.page-pedido .pedido-package-card > img {
  width: 54px;
  height: 54px;
  border: 1px solid #e4ddd3;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

body.page-pedido .pedido-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

body.page-pedido .pedido-summary > span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
}

body.page-pedido .pedido-summary > strong {
  font-size: 22px;
}

@media (max-width: 760px) {
  body.page-cart .cart-order-quantity {
    margin: -2px 0 12px;
    padding: 11px 12px;
  }

  body.page-cart .cart-order-quantity > strong {
    font-size: 13px;
  }

  body.page-pedido {
    overflow-x: hidden;
  }

  body.page-pedido .container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px 8px 108px;
  }

  body.page-pedido .pedido-page,
  body.page-pedido .pedido-card,
  body.page-pedido .pedido-items-v413,
  body.page-pedido .pedido-variant-table,
  body.page-pedido .pedido-variant-table tbody,
  body.page-pedido .pedido-product-row {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
  }

  body.page-pedido .pedido-card {
    padding: 15px 10px;
    border-radius: 18px;
  }

  body.page-pedido .pedido-head-v413 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    margin-bottom: 12px;
  }

  body.page-pedido .pedido-heading-copy {
    gap: 7px;
  }

  body.page-pedido .pedido-head-v413 h1 {
    font-size: clamp(25px, 8vw, 32px);
    line-height: 1.02;
    letter-spacing: -.045em;
  }

  body.page-pedido .pedido-meta-line {
    display: grid;
    gap: 4px;
    font-size: 11px;
    line-height: 1.3;
  }

  body.page-pedido .pedido-total {
    padding: 9px 11px;
    border-radius: 11px;
    font-size: 16px;
    white-space: nowrap;
  }

  body.page-pedido .pedido-order-quantity {
    grid-column: 1 / -1;
    width: 100%;
    padding: 9px 11px;
  }

  body.page-pedido .pedido-order-quantity > strong {
    font-size: 12px;
  }

  body.page-pedido .pedido-items-v413 {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  body.page-pedido .pedido-variant-table {
    display: block;
    table-layout: auto;
  }

  body.page-pedido .pedido-variant-table thead {
    display: none;
  }

  body.page-pedido .pedido-variant-table tbody {
    display: grid;
    gap: 10px;
  }

  body.page-pedido .pedido-product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    overflow: hidden;
    border: 1px solid #e1d9cf;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(17,17,17,.035);
  }

  body.page-pedido .pedido-variant-table td {
    display: grid;
    min-width: 0;
    padding: 10px 11px;
    border: 0;
    border-bottom: 1px solid #ece6de;
  }

  body.page-pedido .pedido-variant-table td::before {
    content: attr(data-label);
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  body.page-pedido .pedido-product-cell {
    grid-column: 1;
    grid-row: 1;
    gap: 5px;
    background: #fffdfa;
  }

  body.page-pedido .pedido-product-cell::before,
  body.page-pedido .pedido-mode-cell::before {
    display: none;
  }

  body.page-pedido .pedido-product-preview {
    min-height: 58px;
    padding: 5px 7px;
  }

  body.page-pedido .pedido-product-preview > img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  body.page-pedido .pedido-product-preview .cart-sku-code {
    font-size: 14px;
  }

  body.page-pedido .pedido-mode-cell {
    grid-column: 2;
    grid-row: 1;
    align-content: center;
    justify-items: end;
    padding: 10px 10px 10px 4px;
    background: #fffdfa;
  }

  body.page-pedido .pedido-mode-cell .cart-mode-badge {
    min-height: 29px;
    padding: 6px 10px;
    font-size: 10px;
  }

  body.page-pedido .pedido-price-cell {
    grid-column: 1;
    grid-row: 2;
    align-content: center;
    padding-top: 9px;
  }

  body.page-pedido .pedido-price-cell > strong {
    font-size: 13px;
  }

  body.page-pedido .pedido-price-cell > small {
    font-size: 10px;
  }

  body.page-pedido .pedido-subtotal-cell {
    grid-column: 2;
    grid-row: 2;
    align-content: center;
    justify-items: end;
    padding: 9px 11px 9px 4px;
  }

  body.page-pedido .pedido-subtotal-cell::before {
    text-align: right;
  }

  body.page-pedido .pedido-subtotal-cell > strong {
    font-size: 15px;
    white-space: nowrap;
  }

  body.page-pedido .pedido-variant-cell {
    grid-column: 1 / -1;
    grid-row: 3;
    border-bottom: 0 !important;
  }

  body.page-pedido .pedido-variant-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.page-pedido .pedido-variant-card {
    min-height: 54px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 7px;
    padding: 5px 6px;
  }

  body.page-pedido .pedido-variant-card > img {
    width: 42px;
    height: 42px;
  }

  body.page-pedido .pedido-variant-card b {
    font-size: 10px;
  }

  body.page-pedido .pedido-package-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  body.page-pedido .pedido-package-card > img {
    width: 48px;
    height: 48px;
  }

  body.page-pedido .pedido-delivery-card {
    margin: 12px 0;
    padding: 13px 14px;
  }

  body.page-pedido .pedido-summary {
    margin: 12px 0;
    padding: 15px 14px;
  }

  body.page-pedido .pedido-summary > strong {
    font-size: 19px;
  }

  body.page-pedido .whatsapp.wide {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 370px) {
  body.page-pedido .pedido-head-v413 {
    grid-template-columns: 1fr;
  }

  body.page-pedido .pedido-total {
    justify-self: start;
  }

  body.page-pedido .pedido-variant-list {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   CAMELA V4.0.14 — SKU sem miniatura + entrega compacta/CEP
   ========================================================= */
body.page-pedido .pedido-product-preview{width:auto;min-width:0;min-height:42px;justify-self:start;padding:0 12px}
body.page-pedido .pedido-product-preview>span{display:inline}
body.page-pedido .pedido-package-card-text-only{display:block;min-height:54px;padding:11px 12px}
body.page-pedido .pedido-package-card-text-only>span{display:grid;gap:4px}
body.page-pedido .pedido-delivery-card>em{color:#075fbd;font-size:12px;font-style:normal;font-weight:850}
.delivery-select-section{display:grid;min-width:0;gap:7px;margin:6px 0 2px}
.delivery-select-section>label,.delivery-cep-field>label{color:var(--ink-soft);font-size:12px;font-weight:850}
.delivery-select-section>label span,.delivery-cep-field>label span{color:var(--danger)}
.delivery-select-section select,.delivery-cep-field input{width:100%;min-width:0;height:48px;border:1px solid var(--line-strong);border-radius:12px;background:#fff;color:var(--ink);outline:0;padding:0 13px;font-size:14px;font-weight:750}
.delivery-select-section select:focus,.delivery-cep-field input:focus{border-color:#0b63ce;box-shadow:0 0 0 3px rgba(11,99,206,.1)}
.delivery-select-description{margin:0;padding:10px 12px;border:1px solid #e5ddd2;border-radius:11px;background:#fbf8f3;color:var(--muted);font-size:11px;line-height:1.5}
.delivery-select-description.is-selected{border-left:3px solid var(--gold);color:#554c42}
.delivery-cep-field{display:grid;gap:6px;padding:11px 12px;border:1px solid #b9d6fb;border-radius:12px;background:#f1f7ff}
.delivery-cep-field[hidden]{display:none!important}
.delivery-cep-field small{color:#43698f;font-size:10.5px;line-height:1.45}
.admin-order-product-preview{min-height:34px;padding:0 9px;border-radius:9px;box-shadow:none}
.admin-order-product-preview .cart-sku-action{font-size:9px}
.order-delivery-meta{margin-top:8px;padding:7px 9px;border:1px solid #e5ddd2;border-radius:9px;background:#fff;color:#675e55;font-size:11px;line-height:1.45}
@media(max-width:760px){body.page-cart .delivery-select-section{gap:6px;margin-top:4px}body.page-cart .delivery-select-section select,body.page-cart .delivery-cep-field input{height:44px;font-size:13px}body.page-cart .delivery-select-description{max-height:62px;overflow-y:auto;padding:7px 9px;font-size:10px;line-height:1.35}body.page-cart .delivery-cep-field{padding:10px}body.page-pedido .pedido-product-preview{width:auto;min-height:40px;padding:0 10px}}

/* V4.0.14 responsive delivery selector: cards on desktop, dropdown on mobile */
.delivery-mobile-options{display:none}
.delivery-desktop-options{display:block}
@media(max-width:760px){
  body.page-cart .delivery-desktop-options{display:none!important}
  body.page-cart .delivery-mobile-options{display:grid}
}
