/* Appel Home — clone mobile-first da coleção Cama / Edredom */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #007a3d;
  --green-dark: #006131;
  --gold: #c4a047;
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --text: #2b2b2b;
  --text-soft: #6b6b6b;
  --border: #e2e2e2;
  --price: #1a1a1a;
  --pix: #007a3d;
  --whatsapp: #25d366;
}

html, body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}
button, input, select, textarea {
  font-family: inherit;
}

/* Mobile: força font-size >= 16px em qualquer input/select/textarea pra evitar
   o auto-zoom do iOS Safari ao focar. Em telas >= 720px, cada componente decide. */
@media (max-width: 719.98px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === FREE SHIPPING BAR === */
.bar-frete {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  letter-spacing: .2px;
}

/* === HEADER === */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  background: none;
  border: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}
.icon-btn svg { width: 22px; height: 22px; stroke: #333; fill: none; stroke-width: 2; }
.logo { flex: 1; display: flex; justify-content: center; }
.logo img { height: 40px; }
.cart-badge {
  position: absolute; top: -2px; right: -4px;
  background: #d8d8d8; color: #444;
  font-size: 11px; font-weight: 700;
  border-radius: 999px;
  min-width: 18px; height: 18px;
  display: grid; place-items: center;
  padding: 0 5px;
}

/* === SEARCH === */
.search {
  padding: 10px 16px 14px;
  background: #fff;
}
.search-box {
  display: flex; align-items: center;
  background: #f4f4f4;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid #ececec;
}
.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  /* 16px no mobile pra evitar auto-zoom do iOS Safari */
  font-size: 16px;
  color: var(--text);
}
@media (min-width: 720px) {
  .search-box input { font-size: 14px; }
}
.search-box input::placeholder { color: #b9a8a8; }
.search-box .ic-mic, .search-box .ic-search {
  width: 18px; height: 18px;
  color: #b96b6b; opacity: .65;
}
.search-box .ic-search { color: #888; opacity: .9; }

/* === BREADCRUMB === */
.breadcrumb {
  padding: 6px 16px 12px;
  font-size: 12.5px;
  color: var(--text-soft);
  display: flex; gap: 6px; align-items: center;
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* === HERO BANNER === */
.hero {
  position: relative;
  margin: 0 16px 18px;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #d8c8b8, #b8a896);
}
.hero-img {
  position: absolute; inset: 0;
  background: url('../images/banner-3447-mb01.png') center/cover no-repeat,
              linear-gradient(135deg, #c2a78d 0%, #8b7359 100%);
}
@media (min-width: 768px) {
  .hero-img { background-image: url('../images/banner-3444-dsk01.png'); }
}
.hero-text {
  position: absolute; left: 18px; bottom: 22px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.hero-text small { display: block; font-weight: 300; font-size: 16px; opacity: .9; }
.hero-text strong { font-size: 38px; font-weight: 800; letter-spacing: .5px; line-height: 1; }

/* === PAGE TITLE === */
.page-title {
  padding: 6px 16px 14px;
}
.page-title h1 {
  font-size: 20px; font-weight: 800; color: #1a1a1a;
}
.page-title hr { border: 0; border-top: 1px solid #e8e8e8; margin-top: 16px; }

/* === FILTERS BAR === */
.filters {
  margin: 0 16px;
  background: #f1f1f1;
  border-radius: 4px;
  padding: 14px;
}
.filters .count {
  text-align: center;
  color: #4a4a4a;
  font-size: 13.5px;
  margin-bottom: 12px;
}
.filters-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}
.filters select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23333'/></svg>")
    no-repeat right 12px center;
  border: 1px solid #d4d4d4;
  border-radius: 3px;
  padding: 11px 30px 11px 12px;
  font-size: 13px;
  color: #333;
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.filters .filter-btn {
  background: #1f2a36;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

/* === PRODUCT GRID === */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 18px 16px 28px;
}
.card {
  background: #fff;
  display: flex; flex-direction: column;
  text-align: left;
  padding: 8px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.card .thumb {
  aspect-ratio: 1/1;
  background: #f7f7f7;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .thumb img { transform: scale(1.05); }
.card .name {
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 10px;
  color: #2a2a2a;
  line-height: 1.3;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .stars {
  display: flex; align-items: center; gap: 4px;
  margin: 6px 0 4px;
  font-size: 12px;
}
.card .stars .star-icons { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.card .stars .count { color: #888; font-size: 11.5px; }
.card .pricing { margin-top: 4px; }
.card .price-old { color: #999; text-decoration: line-through; font-size: 11px; margin-bottom: 1px; }
.card .price-now {
  color: var(--price);
  font-size: 16px;
  font-weight: 800;
}
.card .price-pix {
  font-size: 11px; color: var(--pix); font-weight: 600; margin-top: 2px;
}
.card .install {
  font-size: 10.5px; color: #6a6a6a; margin-top: 1px;
}
.card .badge-frete {
  position: absolute; top: 8px; left: 8px;
  background: #ffea7d;
  color: #5a4400;
  font-size: 10px; font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: .3px;
}

/* === FLOATING WHATSAPP === */
.whats {
  position: fixed;
  bottom: 18px; right: 16px;
  width: 56px; height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(37, 211, 102, .55);
  z-index: 60;
  transition: transform .2s;
}
.whats:hover { transform: scale(1.08); }
.whats svg { width: 30px; height: 30px; fill: #fff; }

/* === FOOTER === */
.footer {
  background: #1a2128;
  color: #cfd2d6;
  margin-top: 36px;
  padding: 24px 16px 80px;
  font-size: 12.5px;
}
.footer h4 { color: #fff; font-size: 13px; margin-bottom: 10px; letter-spacing: .5px; text-transform: uppercase; }
.footer .col { margin-bottom: 22px; }
.footer a { color: #cfd2d6; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .credit {
  border-top: 1px solid #2a323a;
  padding-top: 14px; margin-top: 8px;
  text-align: center; color: #8b8b8b; font-size: 11.5px;
}

/* === PAGINATION === */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 16px 22px;
}
.pagination button {
  background: #fff; border: 1px solid #d4d4d4;
  width: 36px; height: 36px; border-radius: 3px;
  font-size: 13px; font-weight: 600; cursor: pointer; color: #444;
}
.pagination button.active { background: var(--green); color: #fff; border-color: var(--green); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* === CART DRAWER === */
.cart-drawer {
  position: fixed; inset: 0;
  z-index: 200;
  pointer-events: none;
}
.cart-drawer.open { pointer-events: auto; }
.cart-drawer .cd-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .25s ease;
}
.cart-drawer.open .cd-overlay { opacity: 1; }
.cart-drawer .cd-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 460px;
  background: #f4f4f4;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.32, .72, 0, 1);
  box-shadow: -8px 0 24px rgba(0,0,0,.18);
  will-change: transform;
}
.cart-drawer.open .cd-panel { transform: translateX(0); }

.cart-drawer .cd-head {
  flex-shrink: 0;
  display: flex; align-items: center;
  background: #fff;
  padding: 12px 14px;
  border-bottom: 2px solid #1a1a1a;
  gap: 8px;
}
.cart-drawer .cd-logo { flex: 1; }
.cart-drawer .cd-logo img { height: 36px; }
.cart-drawer .cd-secure {
  display: flex; align-items: center; gap: 6px;
  background: #e8f5ec;
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
}
.cart-drawer .cd-shield {
  width: 22px; height: 22px;
  background: #007a3d;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
}
.cart-drawer .cd-secure-text {
  font-size: 9.5px;
  color: #007a3d;
  line-height: 1.1;
  font-weight: 600;
}
.cart-drawer .cd-secure-text strong { font-size: 10px; font-weight: 800; }
.cart-drawer .cd-close {
  background: transparent; border: 0;
  font-size: 22px; color: #444;
  cursor: pointer;
  padding: 0 4px;
}

.cart-drawer .cd-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 100px;
}

.cart-drawer .cd-section {
  background: transparent;
  margin-bottom: 12px;
}
.cart-drawer .cd-section[open] {}
.cart-drawer .cd-sec-head {
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
  padding: 8px 4px 12px;
  font-size: 14px; font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
}
.cart-drawer .cd-sec-head::-webkit-details-marker { display: none; }
.cart-drawer .cd-sec-ic { margin-right: 6px; font-size: 18px; }
.cart-drawer .cd-chev { color: #1a73e8; font-size: 14px; transform: rotate(180deg); }
.cart-drawer details[open] .cd-chev { transform: rotate(0deg); }

.cart-drawer .cd-empty {
  background: #fff; border-radius: 6px;
  padding: 24px; text-align: center;
  color: #888; font-size: 13px;
}

.cart-drawer .cd-prods {
  background: #fff; border-radius: 6px;
  padding: 4px;
}
.cart-drawer .cd-row {
  position: relative;
  display: flex; gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #ececec;
}
.cart-drawer .cd-row:last-child { border-bottom: 0; }
.cart-drawer .cd-thumb {
  width: 70px; height: 70px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-drawer .cd-meta { flex: 1; padding-right: 22px; min-width: 0; }
.cart-drawer .cd-prod-label { color: #888; font-size: 11px; display: block; margin-bottom: 2px; }
.cart-drawer .cd-name {
  font-size: 12.5px; color: #1a1a1a; font-weight: 500;
  line-height: 1.3;
}
.cart-drawer .cd-color { font-size: 12px; color: #444; margin-top: 4px; }
.cart-drawer .cd-row-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
}
.cart-drawer .cd-qty {
  display: flex; align-items: center; gap: 4px;
  border: 1px solid #d4d4d4;
  border-radius: 3px;
  background: #fff;
  height: 28px;
}
.cart-drawer .cd-qty button {
  width: 26px; height: 26px;
  background: #f4f4f4;
  border: 0;
  font-size: 14px; font-weight: 700; color: #444;
  cursor: pointer;
}
.cart-drawer .cd-qty span {
  width: 26px; text-align: center;
  font-size: 13px; font-weight: 700;
}
.cart-drawer .cd-price {
  text-align: right;
}
.cart-drawer .cd-price strong {
  display: block;
  color: #00b386; font-weight: 800; font-size: 14px;
}
.cart-drawer .cd-price small { color: #888; font-size: 11px; }
.cart-drawer .cd-trash {
  position: absolute; top: 10px; right: 10px;
  background: transparent; border: 0;
  cursor: pointer;
  padding: 4px;
}
.cart-drawer .cd-trash svg { width: 18px; height: 18px; }

.cart-drawer .cd-summary {
  background: #fff; border-radius: 6px;
  padding: 14px;
}
.cart-drawer .cd-line {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: 13.5px;
  color: #1a1a1a;
}
.cart-drawer .cd-summary hr { border: 0; border-top: 1px solid #ececec; margin: 12px 0; }
.cart-drawer .cd-frete, .cart-drawer .cd-cupom { margin: 12px 0; }
.cart-drawer .cd-frete strong, .cart-drawer .cd-cupom strong {
  font-size: 13px; color: #1a1a1a; display: block;
}
.cart-drawer .cd-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.cart-drawer .cd-cep-link {
  color: #1a3354; font-size: 12px; text-decoration: underline;
}
.cart-drawer .cd-input-row {
  display: flex; gap: 8px;
  margin-top: 6px;
}
.cart-drawer .cd-input-row input {
  flex: 1;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  padding: 9px 10px;
  /* 16px no mobile pra evitar auto-zoom do iOS Safari */
  font-size: 16px;
  outline: 0;
  font-family: inherit;
}
@media (min-width: 720px) {
  .cart-drawer .cd-input-row input { font-size: 13px; }
}
.cart-drawer .cd-input-row button {
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  padding: 0 16px;
  font-size: 13px; font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  font-family: inherit;
}
.cart-drawer .cd-banner {
  background: #f4f4f4;
  text-align: center;
  padding: 16px;
  margin-top: 12px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #777;
}

/* CEP result */
.cart-drawer .cd-cep-result { min-height: 0; margin-top: 8px; font-size: 12.5px; }
.cart-drawer .cd-cep-loading { color: #888; font-style: italic; }
.cart-drawer .cd-cep-err { color: #c00; }
.cart-drawer .cd-cep-found {
  display: flex; align-items: center; gap: 6px;
  background: #e8f5ec;
  border: 1px solid #c2e6cd;
  border-radius: 4px;
  padding: 8px 10px;
  color: #1a3354;
  line-height: 1.3;
}
.cart-drawer .cd-cep-found .cd-cep-pin { font-size: 14px; }
.cart-drawer .cd-cep-found strong { color: #007a3d; }

/* Shipping options */
.cart-drawer .cd-shipping {
  margin-top: 12px;
}
.cart-drawer .cd-ship-row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #c2e6cd;
  background: #f4faf6;
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
}
.cart-drawer .cd-ship-row input { accent-color: #007a3d; }
.cart-drawer .cd-ship-name { flex: 1; line-height: 1.25; }
.cart-drawer .cd-ship-name strong { display: block; font-size: 13px; color: #1a1a1a; }
.cart-drawer .cd-ship-name small { font-size: 11px; color: #666; }
.cart-drawer .cd-ship-free {
  background: #007a3d; color: #fff;
  font-weight: 800; font-size: 11px;
  letter-spacing: .5px;
  padding: 4px 9px;
  border-radius: 3px;
}

/* Total summary */
.cart-drawer .cd-total {
  margin-top: 8px;
}
.cart-drawer .cd-total .cd-line {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: 13px; color: #444;
}
.cart-drawer .cd-total .cd-free { color: #007a3d; font-weight: 700; }
.cart-drawer .cd-total .cd-grand {
  border-top: 1px solid #ececec;
  margin-top: 6px; padding-top: 8px;
}
.cart-drawer .cd-total .cd-grand strong {
  font-size: 16px; color: #1a1a1a;
}
.cart-drawer .cd-more {
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  color: #1a73e8;
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
  margin: 0;
}

.cart-drawer .cd-foot {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #f4f4f4;
  padding: 10px 14px 14px;
  border-top: 1px solid #ececec;
}
.cart-drawer .cd-finish {
  width: 100%;
  background: #008940;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 14px;
  font-size: 14px; font-weight: 800;
  cursor: pointer;
  letter-spacing: .3px;
  font-family: inherit;
}
.cart-drawer .cd-finish:hover { background: #007a3d; }
.cart-drawer .cd-finish:disabled { opacity: .7; cursor: wait; }

/* Sucesso do pedido */
.cart-drawer .cd-success {
  background: #fff; border-radius: 6px;
  padding: 30px 20px;
  text-align: center;
}
.cart-drawer .cd-success-ic {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #007a3d;
  color: #fff;
  font-size: 28px;
  display: grid; place-items: center;
  margin: 0 auto 14px;
}
.cart-drawer .cd-success h3 {
  font-size: 16px; font-weight: 800; color: #1a1a1a;
  margin-bottom: 12px;
}
.cart-drawer .cd-success p { font-size: 12px; color: #666; margin: 4px 0; }
.cart-drawer .cd-success code {
  display: inline-block;
  background: #f4f4f4;
  padding: 8px 12px; border-radius: 4px;
  font-size: 11.5px; color: #1a1a1a;
  margin: 6px 0 14px;
  word-break: break-all;
  max-width: 100%;
}
.cart-drawer .cd-success-msg { color: #444 !important; font-size: 13px !important; line-height: 1.5; }

/* === Top bar Cashback === */
.bar-cashback {
  background: #fde8e0;
  color: #4a3328;
  text-align: center;
  font-size: 12.5px;
  padding: 8px 14px;
}
.bar-cashback .bag { margin-right: 6px; }
.bar-cashback a { color: #4a3328; text-decoration: underline; }

.cart-badge.dark { background: #2a2a2a; color: #fff; }

/* === PRODUCT PAGE — réplica fiel do print === */
.product { padding: 0 0 8px; background: #fff; }

/* Imagem principal grande */
.product .hero-photo {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f0f0f0;
}
.product .hero-photo img { width:100%; height:100%; object-fit: cover; }

/* Tira de thumbs com setas */
.product .thumbs-strip {
  display: flex; align-items: center;
  padding: 12px 8px 14px;
  background: #fff;
}
.product .thumbs-strip .arrow {
  width: 30px; height: 50px;
  background: transparent; border: 0;
  font-size: 24px; color: #888;
  cursor: pointer;
  flex-shrink: 0;
}
.product .thumbs-strip .arrow:hover { color: #444; }
.product .thumb-row {
  display: flex; gap: 8px;
  overflow-x: auto;
  flex: 1;
  padding: 0 4px;
}
.product .thumb-row::-webkit-scrollbar { display: none; }
.product .thumb-cell {
  width: 100px; height: 100px;
  flex-shrink: 0;
  border: 1.5px solid #e5e5e5;
  border-radius: 3px; padding: 0; background: #fff;
  cursor: pointer; overflow: hidden;
  transition: border-color .15s;
}
.product .thumb-cell.active { border-color: #1a1a1a; border-width: 2px; }
.product .thumb-cell img { width:100%; height:100%; object-fit: cover; }

/* Info area */
.product .info { padding: 6px 16px 18px; }

/* Quality badge */
.product .quality-badge {
  display: inline-flex; align-items: center;
  border-radius: 999px;
  margin-bottom: 14px;
  color: #fff;
  overflow: hidden;
  height: 26px;
  background: #1f2a36;
}
.product .quality-badge .ck {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: #007a3d;
  border-radius: 50%;
  margin-right: 4px;
}
.product .quality-badge .ck svg { width: 14px; height: 14px; }
.product .quality-badge .lbl {
  height: 100%;
  display: flex; align-items: center;
  padding: 0 14px 0 4px;
  font-size: 11.5px; letter-spacing: .4px;
  font-weight: 600;
}
.product .quality-badge .lbl strong { font-weight: 800; margin-left: 4px; }

/* Title */
.product .info h1 {
  font-size: 17px; font-weight: 700;
  line-height: 1.25;
  color: #1a3354;
  margin-bottom: 4px;
}
.product .sku { font-size: 11.5px; color: #888; margin-bottom: 8px; }

/* Rating */
.product .rating-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.product .rating-row .star-icons { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.product .rating-row .reviews-link {
  color: #888; font-size: 11.5px; text-decoration: underline;
}

/* Price card */
.product .price-card {
  display: flex; flex-direction: column;
  margin-bottom: 8px;
}
.product .price-line {
  display: flex; align-items: center; gap: 8px;
}
/* Ícone CSS-only do cartão — replicando classes Tailwind do site original
   .icon.icon-card relative mr-[5px] mt-[9px] h-[13px] w-[18px] min-w-[18px]
   rounded-[3px] border-[2px] border-solid
   before:mt-[2px] before:block before:h-[2px] before:border-t-[2px] before:border-t-color-black before:content-['']
   after:absolute after:right-[1px] after:top-[6px] after:h-[1px] after:w-[4px] after:bg-color-black after:content-[''] */
.product .icon.icon-card {
  position: relative;
  display: inline-block;
  margin-right: 5px;
  margin-top: 9px;
  height: 13px;
  width: 18px;
  min-width: 18px;
  border-radius: 3px;
  border: 2px solid #000;
  flex-shrink: 0;
}
.product .icon.icon-card::before {
  content: '';
  display: block;
  margin-top: 2px;
  height: 2px;
  border-top: 2px solid #000;
}
.product .icon.icon-card::after {
  content: '';
  position: absolute;
  right: 1px;
  top: 6px;
  height: 1px;
  width: 4px;
  background: #000;
}
.product .price-now {
  font-size: 22px; font-weight: 800; color: #1a1a1a;
}
.product .price-sub {
  margin-top: 2px; padding-left: 30px;
  font-size: 11.5px; color: #888;
}
.product .price-sub strong { color: #444; font-weight: 700; }

/* PIX */
.product .pix-card {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 0 10px;
}
.product .pix-card .ic-pix { width: 22px; height: 22px; flex-shrink: 0; }
.product .pix-price {
  font-size: 18px; font-weight: 800; color: #00b386;
  line-height: 1.1;
}
.product .pix-sub { font-size: 11.5px; color: #888; }

.product .payment-link {
  background: transparent; border: 1px solid #d4d4d4;
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 11px; color: #666;
  cursor: pointer;
  margin-bottom: 16px;
}
.product .payment-link:hover { color: #444; border-color: #aaa; }

/* Color swatches */
.product .color-block { margin-bottom: 14px; }
.product .color-label {
  font-size: 12.5px; font-weight: 700; color: #1a1a1a;
  display: block; margin-bottom: 8px;
}
.product .swatch-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.product .swatch {
  width: calc(33.333% - 6px);
  background: #fff;
  border: 1.5px solid #e5e5e5;
  border-radius: 4px;
  padding: 8px 4px 8px;
  cursor: pointer;
  transition: border-color .15s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 0;
}
.product .swatch.active { border-color: #1a1a1a; border-width: 2px; padding: 7px 3px; }
.product .swatch:hover { border-color: #999; }
.product .swatch .sw-img {
  width: 50px; height: 50px;
  border-radius: 3px; overflow: hidden;
  background: #f4f4f4;
  opacity: .55;
}
.product .swatch.active .sw-img { opacity: 1; }
.product .swatch .sw-img img { width:100%; height:100%; object-fit: cover; }
.product .swatch .sw-name {
  font-size: 11px; color: #888;
  text-align: center;
  width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product .swatch.active .sw-name { color: #1a1a1a; font-weight: 700; }

/* Estoque */
.product .stock-row {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0;
  font-size: 12px; color: #444;
}
.product .stock-row svg { width: 22px; height: 22px; flex-shrink: 0; }
.product .stock-row strong { color: #00b386; font-weight: 700; }

/* Cashback */
.product .cashback-card {
  display: flex; align-items: center; gap: 10px;
  background: #f4f4f4;
  border-radius: 4px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.product .cashback-card .cb-coin {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #c4a047;
  color: #c4a047;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
  font-family: Georgia, serif;
}
.product .cashback-card .cb-top {
  font-size: 11px; color: #888;
}
.product .cashback-card .cb-val {
  font-size: 13.5px; font-weight: 800; color: #1a1a1a;
}
.product .cashback-card .cb-val span { font-weight: 600; color: #444; font-size: 11.5px; }

.product .warranty-row {
  font-size: 12px; color: #444;
  margin-bottom: 10px;
}
.product .warranty-row strong { font-weight: 700; }

/* Qty + cart */
.product .qty-cart {
  display: flex; gap: 8px;
  margin-bottom: 8px;
  height: 40px;
}
.product .qty {
  display: flex; align-items: stretch;
  border: 1.5px solid #d4d4d4;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
}
.product .qty button {
  width: 32px;
  background: transparent; border: 0;
  font-size: 18px; font-weight: 600; color: #444;
  cursor: pointer;
}
.product .qty input {
  width: 32px; border: 0; outline: 0;
  text-align: center; font-size: 13px; font-weight: 700;
  background: transparent;
}
.product .btn-cart {
  flex: 1;
  background: #00b386;
  color: #fff;
  border: 0; border-radius: 4px;
  padding: 0 12px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  letter-spacing: .2px;
}
.product .btn-cart:hover { background: #00997a; }

.product .favorite {
  background: transparent; border: 0;
  padding: 6px 0;
  display: flex; align-items: center; gap: 6px;
  color: #d35; font-size: 11.5px;
  cursor: pointer;
  margin-bottom: 10px;
  width: 100%;
  justify-content: center;
}
.product .favorite .heart { font-size: 14px; }

.product .btn-buy {
  width: 100%;
  background: #00b386;
  color: #fff;
  border: 0; border-radius: 4px;
  padding: 14px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
  margin-bottom: 18px;
}
.product .btn-buy:hover { background: #00997a; }

.product .desc-block { margin-top: 18px; }

/* === CTA fixo: Comprar (mobile) === */
.buy-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 12px rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform .28s ease;
  opacity: 0;
  pointer-events: none;
}
.buy-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.buy-bar .buy-bar-price {
  display: flex; flex-direction: column; line-height: 1.1;
}
.buy-bar .buy-bar-price small {
  font-size: 10.5px; color: #888; font-weight: 600;
}
.buy-bar .buy-bar-price strong {
  font-size: 17px; color: #00b386; font-weight: 800;
}
.buy-bar .buy-bar-btn {
  flex: 1;
  background: #00b386;
  color: #fff;
  border: 0; border-radius: 4px;
  padding: 14px;
  font-size: 14px; font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: .3px;
}
.buy-bar .buy-bar-btn:hover { background: #00997a; }

/* Quando a buy-bar fixa está montada na página de produto, todo conteúdo
   (incluindo o footer) precisa de espaço extra no final pra não ficar atrás dela */
body:has(.buy-bar) { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0)); }
@media (min-width: 768px) {
  .buy-bar { display: none; }
  body:has(.buy-bar) { padding-bottom: 0; }
}

/* WhatsApp Promo */
.product .whats-promo {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #007a3d 0%, #0a8f47 100%);
  border-radius: 4px;
  padding: 14px 14px;
  margin: 8px 0 16px;
  color: #fff;
  text-decoration: none;
}
.product .whats-promo .wp-text small {
  display: block;
  font-size: 11px; font-weight: 600; opacity: .9;
  margin-bottom: 2px;
}
.product .whats-promo .wp-text strong {
  font-size: 16px; line-height: 1.15;
  font-weight: 800;
  color: #ffd56a;
}
.product .whats-promo .wp-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.product .whats-promo .wp-icon svg { width: 24px; height: 24px; }

/* Accordions */
.product details.acc {
  border-top: 1px solid #e5e5e5;
  padding: 12px 0;
}
.product details.acc:last-of-type { border-bottom: 1px solid #e5e5e5; }
.product details.acc summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 700; color: #1a1a1a;
  cursor: pointer;
}
.product details.acc summary::-webkit-details-marker { display: none; }
.product details.acc .acc-ic {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: #f0f0f0; color: #444;
  font-size: 14px; font-weight: 700;
}
.product details.acc[open] .acc-ic { background: #1a1a1a; color: #fff; }
.product details.acc .acc-body {
  padding: 10px 0 4px;
  font-size: 12.5px; color: #444; line-height: 1.6;
}
.product details.acc .box-list { padding: 4px 0 0 18px; }

/* Block titles */
.product .block-h {
  font-size: 14px; font-weight: 800;
  margin: 20px 0 10px;
  color: #1a1a1a;
  border-top: 1px solid #e5e5e5;
  padding-top: 16px;
}

/* Specs table */
.product .specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 12px;
}
.product .specs-table th, .product .specs-table td {
  text-align: left;
  padding: 9px 6px;
  vertical-align: top;
  border-bottom: 1px solid #ececec;
}
.product .specs-table th {
  width: 42%;
  font-weight: 700; color: #1a1a1a;
  background: transparent;
}
.product .specs-table td { color: #444; }

/* Video card */
.product .video-card {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.product .video-card .vc-frame {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.product .video-card .vc-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.product .video-card .vc-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  font-size: 11px; color: #666;
  border-top: 1px solid #ececec;
}
.product .video-card .vc-foot .ms {
  margin-left: auto;
  font-weight: 700; color: #c00;
  text-decoration: none;
}

/* Produtos relacionados */
.product .rel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.product .rel-card {
  background: #fff;
  display: flex; flex-direction: column;
  font-size: 11px;
}
.product .rel-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 3px;
}
.product .rel-card .rel-name {
  font-weight: 700; color: #2a2a2a;
  font-size: 11.5px;
  line-height: 1.25;
  margin: 7px 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
}
.product .rel-card .rel-price {
  font-size: 13.5px; font-weight: 800; color: #1a1a1a;
}
.product .rel-card .rel-install { color: #888; font-size: 10px; margin-top: 1px; }
.product .rel-card .rel-pix { color: var(--pix); font-size: 10.5px; font-weight: 600; margin-top: 1px; }
.product .rel-card .rel-cta {
  display: block;
  margin-top: 8px;
  background: #00b386; color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  font-size: 11.5px; font-weight: 700;
  text-decoration: none;
}

/* Avaliação geral */
.product .rev-summary {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.product .rev-num strong {
  font-size: 34px; font-weight: 800; color: #1a1a1a;
  display: block; line-height: 1;
}
.product .rev-num .star-icons {
  color: var(--gold); font-size: 12px; letter-spacing: 1px;
  display: block; margin: 3px 0;
}
.product .rev-num small { color: #888; font-size: 11px; }
.product .rev-btn {
  margin-left: auto;
  background: #1a3354; color: #fff;
  border: 0; border-radius: 3px;
  padding: 8px 12px;
  font-size: 11px; font-weight: 700;
  cursor: pointer;
}
.product .rev-filter strong {
  display: block;
  font-size: 12px; font-weight: 700;
  margin-bottom: 7px;
}
.product .rev-filter .chips {
  display: flex; gap: 5px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.product .rev-filter .chip {
  background: #fff; border: 1px solid #d4d4d4;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  color: #555;
}
.product .rev-filter .chip.on { background: #f4f4f4; border-color: #1a1a1a; color: #1a1a1a; font-weight: 700; }
.product .rev-filter .chip span { color: #888; margin-left: 2px; }

.product .rev-list { list-style: none; padding: 0; margin: 0; }
.product .rev-list > li {
  border-top: 1px solid #ececec;
  padding: 12px 0;
  font-size: 12px;
}
.product .rev-list .rev-stars { color: var(--gold); font-size: 12.5px; letter-spacing: 1px; }
.product .rev-list .rev-author { margin: 3px 0 2px; color: #1a1a1a; font-size: 12.5px; }
.product .rev-list .rev-meta { color: #888; font-size: 11px; margin-bottom: 5px; }
.product .rev-list p { color: #444; margin: 4px 0; font-size: 12px; }
.product .rev-list .rev-rec {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: #00b386;
  font-weight: 600;
}

/* Footer custom (apenas página de produto / global) */
.footer-app {
  background: #fff;
  border-top: 1px solid #ececec;
  padding: 20px 16px 24px;
  text-align: center;
  font-size: 12.5px;
  color: #555;
  margin-top: 16px;
}
.footer-app .footer-logo img { height: 50px; margin: 0 auto 14px; }
.footer-app .socials {
  display: flex; justify-content: center; gap: 14px;
  margin-bottom: 14px;
}
.footer-app .socials a {
  width: 32px; height: 32px;
  border-radius: 50%; background: #f4f4f4;
  display: grid; place-items: center;
  text-decoration: none; color: #333; font-size: 13px; font-weight: 700;
}
.footer-app .acc-list { list-style: none; padding: 0; margin: 0 0 14px; }
.footer-app .acc-list li { border-top: 1px solid #ececec; }
.footer-app .acc-list li:last-child { border-bottom: 1px solid #ececec; }
.footer-app .acc-list button {
  background: transparent; border: 0;
  width: 100%;
  text-align: left;
  padding: 14px 4px;
  font-size: 13px; font-weight: 700;
  display: flex; justify-content: space-between;
  color: #1a1a1a;
  cursor: pointer;
  letter-spacing: .3px;
}
.footer-app .pay-row {
  display: flex; justify-content: center; gap: 8px;
  margin: 16px 0 14px;
  flex-wrap: wrap;
}
.footer-app .pay {
  width: 40px; height: 26px;
  object-fit: contain;
  border-radius: 3px;
  border: 1px solid #ececec;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
}
.footer-app .footer-info { color: #777; font-size: 11.5px; line-height: 1.6; }
.footer-app .footer-info p { margin: 2px 0; }
.footer-app .footer-info .copy { margin-top: 8px; color: #999; }
.footer-app .footer-info .dev { margin-top: 6px; font-size: 11px; }
.footer-app .footer-info .dev strong { color: #c00; }
.product .desc-block h2 {
  background: #f4f4f4; padding: 14px 16px;
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  border-radius: 4px;
  display: flex; justify-content: space-between; align-items: center;
}
.product .desc-block h2::after { content: '▾'; color: #888; }
.product .desc-block .body { padding: 16px 4px; font-size: 13.5px; line-height: 1.65; color: #444; }
.product .desc-block ul { padding: 8px 0 8px 18px; }
.product .desc-block li { margin: 4px 0; }
.product .specs {
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-top: 14px;
  overflow: hidden;
}
.product .specs .row { display: flex; }
.product .specs .row + .row { border-top: 1px solid var(--border); }
.product .specs .key {
  width: 42%; padding: 11px 12px;
  background: #fafafa;
  font-weight: 700; font-size: 12.5px; color: #555;
}
.product .specs .val {
  flex: 1; padding: 11px 12px;
  font-size: 12.5px; color: #333;
}

/* === SIDE MENU === */
.side-menu {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 100;
  display: none;
}
.side-menu.open { display: block; }
.side-menu .panel {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 86%; max-width: 340px;
  background: #fff;
  overflow-y: auto;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.side-menu .panel-head {
  padding: 18px 16px;
  background: var(--green); color: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.side-menu .panel-head strong { font-size: 15px; }
.side-menu .panel-head button { background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }
.side-menu nav a {
  display: block; padding: 14px 18px;
  font-size: 14.5px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}
.side-menu nav a:hover { background: #f9f9f9; color: var(--green); }

/* desktop tweaks (não é o foco mas evita quebra ruim) */
@media (min-width: 768px) {
  body { font-size: 15px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 24px 32px 40px; max-width: 1200px; margin: 0 auto; }
  .hero { margin: 0 32px 22px; aspect-ratio: 21/7; }
  .hero-text strong { font-size: 56px; }
  .filters { max-width: 1200px; margin: 0 auto; }
  .breadcrumb, .page-title { max-width: 1200px; margin-left: auto; margin-right: auto; }
  .product { max-width: 1100px; margin: 0 auto; padding: 22px 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
  .product .gallery { padding: 0; }
  .product .info { padding: 0; }
  .product .desc-block { grid-column: 1 / -1; }
}
