/* ================================================================
   KidsToy - estilos da loja
   As cores principais vem das configuracoes do painel (app.js).
   ================================================================ */

:root {
  --primary: #ff4d8d;
  --secondary: #2bb3f3;
  --accent: #ffd23f;
  --dark: #241b4f;

  --primary-dark: #e03a76;
  --text: #2c2c3a;
  --muted: #7b7f96;
  --line: #e9eaf2;
  --bg: #f7f7fb;
  --white: #fff;
  --green: #17a673;
  --red: #e5484d;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 2px 10px rgba(36, 27, 79, .06);
  --shadow-lg: 0 12px 34px rgba(36, 27, 79, .13);
  --container: 1280px;
  --header-h: 72px;
  --font: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- */
/* Botoes                                                            */
/* ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 100px; font-weight: 800; font-size: .95rem;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  border: 2px solid transparent; white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(255, 77, 141, .32); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; box-shadow: 0 6px 18px rgba(43, 179, 243, .3); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(23, 166, 115, .3); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--primary); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------- */
/* Topo                                                              */
/* ---------------------------------------------------------------- */

.announcement {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff; text-align: center; font-size: .84rem; font-weight: 700;
  padding: 9px 16px; letter-spacing: .2px;
}

.header { background: #fff; position: sticky; top: 0; z-index: 60; box-shadow: var(--shadow); }
.header-main {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h); padding: 12px 16px;
  max-width: var(--container); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
.logo-text { font-size: 1.6rem; font-weight: 900; color: var(--dark); letter-spacing: -.5px; }
.logo-text span { color: var(--primary); }

.search { flex: 1; position: relative; max-width: 620px; }
.search input {
  width: 100%; padding: 12px 50px 12px 20px; border: 2px solid var(--line);
  border-radius: 100px; background: var(--bg); font-size: .95rem; outline: none;
  transition: border-color .15s, background .15s;
}
.search input:focus { border-color: var(--primary); background: #fff; }
.search button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center;
}
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
  max-height: 400px; overflow-y: auto; display: none; z-index: 70;
}
.search-suggest.open { display: block; }
.search-suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; transition: background .12s; }
.search-suggest a:hover { background: var(--bg); }
.search-suggest img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.search-suggest .s-name { font-size: .88rem; font-weight: 700; }
.search-suggest .s-price { font-size: .85rem; color: var(--primary); font-weight: 800; }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
  font-size: .82rem; font-weight: 700; color: var(--text); transition: background .12s;
  position: relative;
}
.header-btn:hover { background: var(--bg); color: var(--primary); }
.header-btn small { display: block; font-size: .68rem; color: var(--muted); font-weight: 600; }
.header-btn strong { font-size: .84rem; }
.cart-count {
  position: absolute; top: 2px; left: 26px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--primary); color: #fff; border-radius: 100px; font-size: .68rem;
  display: grid; place-items: center; font-weight: 800; border: 2px solid #fff;
}
.menu-toggle { display: none; font-size: 1.5rem; padding: 6px 10px; }

/* Barra de categorias */
.nav-bar { background: var(--dark); }
.nav-bar .container { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-bar .container::-webkit-scrollbar { display: none; }
.nav-link {
  color: #fff; padding: 13px 15px; font-size: .87rem; font-weight: 700; white-space: nowrap;
  transition: color .15s; position: relative; display: flex; align-items: center; gap: 7px;
}
.nav-link:hover { color: var(--accent); }
.nav-link.highlight { color: var(--accent); }

/* Menu mobile */
.drawer {
  position: fixed; inset: 0 30% 0 0; background: #fff; z-index: 100; padding: 20px;
  transform: translateX(-105%); transition: transform .25s; overflow-y: auto; max-width: 340px;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer h4 { font-size: .78rem; text-transform: uppercase; color: var(--muted); letter-spacing: 1px; margin: 20px 0 8px; }
.drawer a { display: flex; align-items: center; gap: 10px; padding: 11px 8px; border-radius: 10px; font-weight: 700; font-size: .93rem; }
.drawer a:hover { background: var(--bg); color: var(--primary); }
.overlay { position: fixed; inset: 0; background: rgba(36, 27, 79, .5); z-index: 99; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.open { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------- */
/* Hero                                                              */
/* ---------------------------------------------------------------- */

.hero { position: relative; margin: 20px 0; }
.hero-track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.hero-slide { min-width: 100%; }
.hero-slide a, .hero-slide > div { display: block; border-radius: var(--radius-lg); overflow: hidden; }
.hero-slide img { width: 100%; aspect-ratio: 1600/752; object-fit: cover; }
.hero-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  background: rgba(255, 255, 255, .92); border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow); font-size: 1.2rem; color: var(--dark); z-index: 2; transition: background .15s;
}
.hero-nav:hover { background: #fff; color: var(--primary); }
.hero-nav.prev { left: 14px; }
.hero-nav.next { right: 14px; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: all .2s; }
.hero-dots button.active { background: var(--primary); width: 30px; border-radius: 10px; }

/* ---------------------------------------------------------------- */
/* Faixa de vantagens                                                */
/* ---------------------------------------------------------------- */

.benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0;
}
.benefit {
  background: #fff; border-radius: var(--radius); padding: 18px; display: flex; align-items: center;
  gap: 14px; box-shadow: var(--shadow); transition: transform .18s;
}
.benefit:hover { transform: translateY(-3px); }
.benefit-icon { font-size: 1.8rem; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--bg); flex-shrink: 0; }
.benefit strong { display: block; font-size: .92rem; }
.benefit span { font-size: .8rem; color: var(--muted); }

/* ---------------------------------------------------------------- */
/* Secoes                                                            */
/* ---------------------------------------------------------------- */

.section { margin: 46px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-title { font-size: 1.65rem; font-weight: 900; color: var(--dark); letter-spacing: -.5px; }
.section-title small { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.section-link { font-size: .88rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.section-link:hover { gap: 9px; }

/* Categorias circulares */
.category-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.category-item { text-align: center; transition: transform .18s; }
.category-item:hover { transform: translateY(-5px); }
.category-item .cat-img {
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 10px;
  box-shadow: var(--shadow); background: #fff; display: grid; place-items: center; font-size: 2.4rem;
}
.category-item .cat-img img { width: 100%; height: 100%; object-fit: cover; }
.category-item strong { font-size: .84rem; font-weight: 800; display: block; line-height: 1.25; }
.category-item span { font-size: .74rem; color: var(--muted); }

/* ---------------------------------------------------------------- */
/* Card de produto                                                   */
/* ---------------------------------------------------------------- */

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.shelf { position: relative; }
.shelf-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(25% - 14px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 6px; scrollbar-width: none;
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track > * { scroll-snap-align: start; }
.shelf-nav {
  position: absolute; top: 42%; width: 40px; height: 40px; background: #fff; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 3; font-size: 1.1rem;
  color: var(--dark); transition: color .15s;
}
.shelf-nav:hover { color: var(--primary); }
.shelf-nav.prev { left: -14px; }
.shelf-nav.next { right: -14px; }

.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow); height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-thumb { position: relative; background: var(--bg); aspect-ratio: 1; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-thumb img { transform: scale(1.06); }

.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.badge {
  font-size: .68rem; font-weight: 900; padding: 4px 10px; border-radius: 100px;
  color: #fff; text-transform: uppercase; letter-spacing: .4px;
}
.badge-discount { background: var(--red); }
.badge-free { background: var(--green); }
.badge-custom { background: var(--secondary); }
.badge-new { background: var(--accent); color: var(--dark); }
.badge-out { background: var(--muted); }

.product-info { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-cat { font-size: .7rem; color: var(--muted); text-transform: uppercase; font-weight: 800; letter-spacing: .5px; }
.product-name {
  font-size: .92rem; font-weight: 700; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.5em;
}
.product-card:hover .product-name { color: var(--primary); }
.rating { display: flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: -1px; font-size: .85rem; }
.product-price { margin-top: auto; }
.price-old { font-size: .8rem; color: var(--muted); text-decoration: line-through; }
.price-now { font-size: 1.32rem; font-weight: 900; color: var(--dark); letter-spacing: -.5px; }
.price-installment { font-size: .74rem; color: var(--muted); }
.price-pix { font-size: .76rem; color: var(--green); font-weight: 800; }
.product-actions { padding: 0 14px 14px; }

/* ---------------------------------------------------------------- */
/* Banner de video                                                   */
/* ---------------------------------------------------------------- */

.video-section {
  background: linear-gradient(135deg, var(--dark), #3b2d78); border-radius: var(--radius-lg);
  padding: 40px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; color: #fff;
}
.video-section h2 { font-size: 2rem; font-weight: 900; letter-spacing: -.6px; margin-bottom: 10px; }
.video-section p { opacity: .85; margin-bottom: 20px; }
.video-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #000; box-shadow: var(--shadow-lg); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* Banner do meio */
.mid-banner { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.mid-banner img { width: 100%; }

/* Newsletter */
.newsletter {
  background: linear-gradient(120deg, var(--primary), var(--secondary)); border-radius: var(--radius-lg);
  padding: 44px; text-align: center; color: #fff;
}
.newsletter h2 { font-size: 1.8rem; font-weight: 900; letter-spacing: -.5px; }
.newsletter p { opacity: .92; margin: 8px 0 22px; }
.newsletter form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; flex-wrap: wrap; }
.newsletter input {
  flex: 1; min-width: 220px; padding: 14px 20px; border-radius: 100px; border: 0; outline: none; font-size: .95rem;
}

/* ---------------------------------------------------------------- */
/* Rodape                                                            */
/* ---------------------------------------------------------------- */

.footer { background: var(--dark); color: #fff; margin-top: 60px; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 36px; }
.footer h5 { font-size: .95rem; font-weight: 900; margin-bottom: 14px; }
.footer ul li { margin-bottom: 9px; }
.footer a { font-size: .87rem; opacity: .78; transition: opacity .15s, color .15s; }
.footer a:hover { opacity: 1; color: var(--accent); }
.footer p { font-size: .87rem; opacity: .78; margin-bottom: 9px; }
.footer .logo-text { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12);
  display: grid; place-items: center; font-size: 1.05rem; opacity: 1;
}
.social a:hover { background: var(--primary); }
.payment-icons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.payment-icons span {
  background: rgba(255, 255, 255, .12); padding: 6px 11px; border-radius: 7px; font-size: .74rem; font-weight: 700;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; text-align: center;
  font-size: .8rem; opacity: .7;
}

.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45); z-index: 80; transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.09); }

/* ---------------------------------------------------------------- */
/* Listagem                                                          */
/* ---------------------------------------------------------------- */

.breadcrumb { display: flex; gap: 8px; font-size: .82rem; color: var(--muted); padding: 18px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }

.listing { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border: 0; margin: 0; padding: 0; }
.filter-group h4 { font-size: .88rem; font-weight: 900; margin-bottom: 12px; color: var(--dark); }
.filter-group label { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .87rem; cursor: pointer; }
.filter-group label:hover { color: var(--primary); }
.filter-group input[type=checkbox], .filter-group input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { width: 100%; padding: 9px 12px; border: 2px solid var(--line); border-radius: 10px; outline: none; font-size: .85rem; }
.price-inputs input:focus { border-color: var(--primary); }

.listing-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.listing-head .count { font-size: .88rem; color: var(--muted); }
.sort-select, .field-select {
  padding: 10px 16px; border: 2px solid var(--line); border-radius: 100px; background: #fff;
  font-size: .87rem; font-weight: 700; outline: none; cursor: pointer;
}
.filter-mobile-btn { display: none; }

.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination button {
  min-width: 42px; height: 42px; border-radius: 12px; background: #fff; font-weight: 800;
  box-shadow: var(--shadow); font-size: .9rem; padding: 0 12px; transition: all .15s;
}
.pagination button:hover:not(:disabled) { color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .emoji { font-size: 4.5rem; margin-bottom: 14px; }
.empty-state h3 { font-size: 1.4rem; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ---------------------------------------------------------------- */
/* Pagina de produto                                                 */
/* ---------------------------------------------------------------- */

.product-page { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; margin-bottom: 46px; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; position: sticky; top: 96px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button {
  border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: #fff; aspect-ratio: 1;
  transition: border-color .15s;
}
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .thumb-video { display: grid; place-items: center; font-size: 1.5rem; background: var(--dark); color: #fff; width: 100%; height: 100%; }
.gallery-main {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1;
  box-shadow: var(--shadow); display: grid; place-items: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main iframe { width: 100%; height: 100%; border: 0; }

.product-detail h1 { font-size: 1.85rem; font-weight: 900; color: var(--dark); letter-spacing: -.6px; line-height: 1.25; margin-bottom: 10px; }
.product-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.product-meta b { color: var(--text); }
.buy-box { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin: 20px 0; }
.buy-price .price-old { font-size: 1rem; }
.buy-price .price-now { font-size: 2.4rem; }
.buy-price .price-pix { font-size: .95rem; margin-top: 4px; }
.buy-price .price-installment { font-size: .9rem; }
.qty-row { display: flex; gap: 12px; align-items: center; margin: 20px 0 16px; }
.qty {
  display: flex; align-items: center; border: 2px solid var(--line); border-radius: 100px; overflow: hidden;
}
.qty button { width: 42px; height: 44px; font-size: 1.2rem; font-weight: 800; color: var(--muted); }
.qty button:hover { color: var(--primary); }
.qty input { width: 48px; text-align: center; border: 0; outline: none; font-weight: 800; }
.stock-info { font-size: .84rem; font-weight: 700; }
.stock-info.ok { color: var(--green); }
.stock-info.low { color: #e07b00; }
.stock-info.out { color: var(--red); }

.shipping-box { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.shipping-box h4 { font-size: .9rem; font-weight: 900; margin-bottom: 10px; }
.shipping-form { display: flex; gap: 8px; }
.shipping-form input { flex: 1; padding: 11px 16px; border: 2px solid var(--line); border-radius: 100px; outline: none; font-size: .9rem; }
.shipping-form input:focus { border-color: var(--primary); }
.shipping-result { margin-top: 12px; font-size: .87rem; }
.shipping-option { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.shipping-option:last-child { border: 0; }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.trust-item { text-align: center; font-size: .74rem; color: var(--muted); font-weight: 700; }
.trust-item div { font-size: 1.4rem; margin-bottom: 3px; }

/* Abas */
.tabs { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 46px; }
.tab-buttons { display: flex; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-buttons::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 17px 26px; font-weight: 800; font-size: .95rem; color: var(--muted); white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s;
}
.tab-btn.active { color: var(--primary); border-color: var(--primary); }
.tab-panel { padding: 30px; display: none; }
.tab-panel.active { display: block; }
.tab-panel h3 { font-size: 1.1rem; font-weight: 900; margin: 20px 0 10px; color: var(--dark); }
.tab-panel h3:first-child { margin-top: 0; }
.tab-panel p { margin-bottom: 12px; }
.tab-panel ul, .tab-panel ol { margin: 0 0 14px 22px; }
.tab-panel ul { list-style: disc; }
.tab-panel ol { list-style: decimal; }
.tab-panel li { margin-bottom: 6px; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(odd) { background: var(--bg); }
.specs-table td { padding: 12px 16px; font-size: .9rem; }
.specs-table td:first-child { font-weight: 800; width: 38%; color: var(--dark); }

/* Avaliacoes */
.reviews-summary { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.rating-big { text-align: center; }
.rating-big .num { font-size: 3.2rem; font-weight: 900; color: var(--dark); line-height: 1; }
.rating-big .stars { font-size: 1.2rem; }
.rating-big span { font-size: .82rem; color: var(--muted); }
.rating-bars { display: flex; flex-direction: column; gap: 6px; }
.rating-bar { display: flex; align-items: center; gap: 10px; font-size: .8rem; }
.rating-bar .bar { flex: 1; height: 9px; background: var(--line); border-radius: 100px; overflow: hidden; }
.rating-bar .bar i { display: block; height: 100%; background: var(--accent); border-radius: 100px; }

.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border: 0; }
.review-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.review-author { font-weight: 800; font-size: .92rem; }
.review-date { font-size: .78rem; color: var(--muted); }
.review-title { font-weight: 800; font-size: .93rem; margin: 4px 0; }
.review p { font-size: .9rem; color: #4a4a5c; }
.review-reply {
  background: var(--bg); border-left: 3px solid var(--primary); padding: 12px 16px;
  border-radius: 0 10px 10px 0; margin-top: 12px; font-size: .87rem;
}
.review-reply strong { color: var(--primary); display: block; font-size: .8rem; margin-bottom: 3px; }

.star-input { display: flex; gap: 4px; font-size: 1.7rem; color: var(--line); }
.star-input button { color: inherit; line-height: 1; }
.star-input button.on { color: var(--accent); }

/* ---------------------------------------------------------------- */
/* Formularios                                                       */
/* ---------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 800; color: var(--dark); }
.field input, .field select, .field textarea {
  padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; outline: none;
  font-size: .93rem; background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 100px; }
.field small { font-size: .76rem; color: var(--muted); }

.card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.2rem; font-weight: 900; color: var(--dark); margin-bottom: 18px; }
.card + .card { margin-top: 20px; }

/* ---------------------------------------------------------------- */
/* Carrinho e checkout                                               */
/* ---------------------------------------------------------------- */

.cart-layout { display: grid; grid-template-columns: 1fr 370px; gap: 26px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border: 0; }
.cart-item img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--bg); }
.cart-item-name { font-weight: 800; font-size: .95rem; margin-bottom: 4px; }
.cart-item-name:hover { color: var(--primary); }
.cart-item .qty { transform: scale(.88); transform-origin: left; margin-top: 8px; }
.cart-item-price { text-align: right; }
.cart-item-price strong { font-size: 1.15rem; font-weight: 900; color: var(--dark); display: block; }
.remove-btn { color: var(--muted); font-size: .8rem; font-weight: 700; margin-top: 8px; }
.remove-btn:hover { color: var(--red); }

.summary { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.summary h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: 18px; color: var(--dark); }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .92rem; }
.summary-row.discount { color: var(--green); font-weight: 700; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px;
  border-top: 2px solid var(--line); margin-top: 10px; font-weight: 900;
}
.summary-total span { font-size: 1rem; }
.summary-total strong { font-size: 1.7rem; color: var(--dark); }
.coupon-form { display: flex; gap: 8px; margin: 16px 0; }
.coupon-form input { flex: 1; padding: 11px 16px; border: 2px solid var(--line); border-radius: 100px; outline: none; font-size: .88rem; text-transform: uppercase; }
.coupon-form input:focus { border-color: var(--primary); }

.free-shipping-bar { background: var(--bg); border-radius: 12px; padding: 14px; margin-bottom: 18px; font-size: .84rem; }
.free-shipping-bar .bar { height: 8px; background: var(--line); border-radius: 100px; overflow: hidden; margin-top: 8px; }
.free-shipping-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--secondary), var(--green)); border-radius: 100px; transition: width .4s; }

.steps { display: flex; gap: 8px; margin-bottom: 26px; }
.step { flex: 1; text-align: center; font-size: .8rem; font-weight: 800; color: var(--muted); padding-bottom: 10px; border-bottom: 3px solid var(--line); }
.step.active { color: var(--primary); border-color: var(--primary); }
.step.done { color: var(--green); border-color: var(--green); }

.option-list { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--line);
  border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.option:hover { border-color: var(--secondary); }
.option.selected { border-color: var(--primary); background: rgba(255, 77, 141, .04); }
.option input { accent-color: var(--primary); width: 18px; height: 18px; }
.option-icon { font-size: 1.5rem; }
.option-body { flex: 1; }
.option-body strong { display: block; font-size: .93rem; }
.option-body small { color: var(--muted); font-size: .8rem; }
.option-price { font-weight: 900; color: var(--dark); }
.option-price.free { color: var(--green); }

.order-summary-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.order-summary-item img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.order-summary-item .n { flex: 1; font-size: .85rem; font-weight: 700; }
.order-summary-item .q { font-size: .78rem; color: var(--muted); }

/* Status do pedido */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 100px;
  font-size: .8rem; font-weight: 800; text-transform: capitalize;
}
.status-pendente { background: #fff4e0; color: #b06f00; }
.status-pago { background: #e3f6ee; color: #17a673; }
.status-separando { background: #e6f2ff; color: #1877cc; }
.status-enviado { background: #ede7ff; color: #6b46e5; }
.status-entregue { background: #e3f6ee; color: #0f7c56; }
.status-cancelado { background: #ffe9ea; color: #d13438; }

.timeline { display: flex; flex-direction: column; gap: 0; margin: 20px 0; }
.timeline-item { display: flex; gap: 14px; padding-bottom: 22px; position: relative; }
.timeline-item:not(:last-child)::before {
  content: ''; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line);
}
.timeline-item.done:not(:last-child)::before { background: var(--green); }
.timeline-dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--line); display: grid; place-items: center;
  color: #fff; font-size: .8rem; flex-shrink: 0; z-index: 1;
}
.timeline-item.done .timeline-dot { background: var(--green); }
.timeline-item.current .timeline-dot { background: var(--primary); }
.timeline-body strong { display: block; font-size: .93rem; }
.timeline-body small { color: var(--muted); font-size: .8rem; }

/* ---------------------------------------------------------------- */
/* Avisos                                                            */
/* ---------------------------------------------------------------- */

.alert { padding: 14px 18px; border-radius: 12px; font-size: .89rem; font-weight: 600; margin-bottom: 16px; }
.alert-success { background: #e3f6ee; color: #0f7c56; }
.alert-error { background: #ffe9ea; color: #c22a2f; }
.alert-info { background: #e6f2ff; color: #14649f; }
.alert-warn { background: #fff4e0; color: #a06400; }

.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--dark); color: #fff; padding: 14px 24px; border-radius: 100px; font-size: .9rem;
  font-weight: 700; box-shadow: var(--shadow-lg); animation: toastIn .3s; display: flex; align-items: center; gap: 10px;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } }

.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.skeleton-card { aspect-ratio: .72; }

.loading { text-align: center; padding: 60px; color: var(--muted); }
.spinner {
  width: 38px; height: 38px; border: 4px solid var(--line); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- */
/* Responsivo                                                        */
/* ---------------------------------------------------------------- */

@media (max-width: 1100px) {
  .category-strip { grid-template-columns: repeat(4, 1fr); }
  .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .shelf-track { grid-auto-columns: calc(33.33% - 12px); }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-mobile-btn { display: inline-flex; }
  .product-page { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .video-section { grid-template-columns: 1fr; padding: 28px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .menu-toggle { display: block; }
  .nav-bar { display: none; }
  .header-main { gap: 10px; flex-wrap: wrap; padding: 10px 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-btn span { display: none; }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .benefit { padding: 13px; gap: 10px; }
  .benefit-icon { width: 40px; height: 40px; font-size: 1.4rem; }
  .section-title { font-size: 1.3rem; }
  .section { margin: 34px 0; }
  .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shelf-track { grid-auto-columns: 46%; gap: 12px; }
  .shelf-nav { display: none; }
  .category-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; max-height: none; overflow-x: auto; }
  .gallery-thumbs button { width: 66px; flex-shrink: 0; }
  .product-detail h1 { font-size: 1.4rem; }
  .buy-price .price-now { font-size: 1.9rem; }
  .form-grid { grid-template-columns: 1fr; }
  .reviews-summary { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .newsletter, .card { padding: 22px; }
  .tab-panel { padding: 20px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 72px; }
  .cart-item-price { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .hero-nav { width: 34px; height: 34px; font-size: 1rem; }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-info { padding: 11px; }
  .price-now { font-size: 1.1rem; }
  .category-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media print {
  .header, .footer, .whatsapp-float, .announcement, .nav-bar, .btn { display: none !important; }
}
