/* ═══════════════════════════════════════════
   Closet Dobrável Inteligente
   style.css
   ═══════════════════════════════════════════ */

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #F9FAFB;
  --bg-alt: #F3F4F6;
  --bg-white: #FFFFFF;
  --border: #E5E7EB;
  --text: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --red: #C00000;
  --red-light: rgba(192, 0, 0, 0.12);
  --green: #059669;
  --green-light: #F0FDF4;
  --green-border: #A7F3D0;
  --yellow: #FBBF24;
  --blue: #1F2937;
  --blue-light: rgba(31, 41, 55, 0.10);
  --accent: #1a1a1a;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  --font: 'Roboto', sans-serif;
  --max: 500px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: var(--max);
  margin: 0 auto;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

ul {
  list-style: none;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════
   TOP BANNER
══════════════════════════════════════════ */
.top-banner {
  background: #1F2937;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
  color: #ffffff !important;
}

.top-banner__scroll {
  display: inline-flex;
  gap: 48px;
  animation: marquee 28s linear infinite;
}

.top-banner__scroll span {
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff !important;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.menu-toggle {
  display: flex;
  align-items: center;
  color: #111827;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}

.menu-toggle:hover { background: rgba(0, 0, 0, 0.05); }

.site-header__logo img { height: 52px; width: auto; }

/* ── SIDE MENU (DRAWER) ── */
.side-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  backdrop-filter: blur(2px);
}

.side-menu-overlay.open { display: block; }

.side-menu {
  position: fixed;
  top: 0; left: 0;
  width: 280px; height: 100%;
  background: var(--bg-white);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.side-menu.open { transform: translateX(0); }

.side-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #ffffff;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

.side-menu__close {
  font-size: 26px;
  color: #111827;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.side-menu__close:hover { background: rgba(0, 0, 0, 0.05); }

.side-menu__body { padding: 20px 16px; flex: 1; }

.side-menu__section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.side-menu__nav { display: flex; flex-direction: column; gap: 4px; }

.side-menu__link {
  display: block;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.18s;
}

.side-menu__link:hover { background: var(--bg-alt); }

.side-menu__divider { height: 1px; background: var(--border); margin: 16px 0; }

.side-menu__support p { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.side-menu__support a { color: var(--blue); font-weight: 500; }

/* ══════════════════════════════════════════
   PRODUCT HERO
══════════════════════════════════════════ */
.product-hero { background: var(--bg-white); padding: 0 0 24px; }

.gallery { background: var(--bg-alt); }

.gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__hint {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.gallery__main img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.gallery__main img.fading { opacity: 0; }

.gallery__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  background: var(--bg-alt);
  scrollbar-width: none;
}

.gallery__thumbs::-webkit-scrollbar { display: none; }

.gallery__thumb {
  flex-shrink: 0;
  width: 68px; height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.active { border-color: var(--blue); }
.gallery__thumb:hover { border-color: var(--text-muted); }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: white; border: none;
  border-radius: 50%; width: 40px; height: 40px;
  font-size: 20px; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}

.gallery-arrow:hover { background: rgba(0,0,0,0.8); }
.gallery-arrow.left { left: 10px; }
.gallery-arrow.right { right: 10px; }

/* ── PRODUCT INFO ── */
.product-info { padding: 18px 16px 0; }

.product-header__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.product-header__verified-icon { color: var(--blue); font-size: 16px; }

.badges-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge--red   { background: var(--blue-light); color: var(--blue);  border-color: rgba(2, 74, 180, 0.25); }
.badge--green { background: var(--green-light); color: var(--green); border-color: var(--green-border); }
.badge--blue  { background: var(--blue-light); color: var(--blue);  border-color: rgba(2, 74, 180, 0.25); }

.stars-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  cursor: pointer;
}

.stars { display: flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; }
.stars-score { font-size: 14px; font-weight: 700; color: var(--text); }
.stars-count  { font-size: 12px; color: var(--text-muted); }

/* ── Preço principal ── */
.price-main-block { margin-bottom: 12px; }

.price-old-line { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.price-old-line s { color: var(--text-muted); }

.price-current-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.price-current { font-size: 32px; font-weight: 900; color: var(--text); line-height: 1; }

.price-badge-save {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
}

.pix-reveal-wrap {
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1.5px dashed var(--green);
  overflow: hidden;
}

.pix-reveal-wrap .price-pix-block {
  margin: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--green-border);
}

.price-pix-block {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--green-light);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-pix-icon   { font-size: 22px; }
.price-pix-main   { font-size: 22px; font-weight: 900; color: var(--green); }
.price-pix-label  { font-size: 13px; font-weight: 600; color: var(--green); }
.price-pix-note   { font-size: 12px; color: var(--green); margin-top: 2px; }
.price-installment{ font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.shipping-block {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.shipping-block svg { color: var(--text-muted); width: 22px; height: 22px; flex-shrink: 0; }
.shipping-label  { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; }
.shipping-city   { font-weight: 700; color: var(--text); }
.shipping-days   { font-size: 15px; font-weight: 800; color: var(--green); }

.buy-btn {
  display: block;
  width: 100%;
  background: #1F2937;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 17px 20px;
  border-radius: 10px;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(31, 41, 55, 0.35);
  color: #ffffff !important;
}

.buy-btn:hover { background: #374151; transform: translateY(-1px); }
.buy-btn:active{ transform: translateY(0); }

/* ══════════════════════════════════════════
   TRUST STRIP
══════════════════════════════════════════ */
.trust-strip {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 20px 16px;
  background: var(--bg-white);
  border-top: 1px solid var(--bg-alt);
  border-bottom: 1px solid var(--bg-alt);
  margin-top: 24px;
  text-align: center;
  gap: 8px;
}

.trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.trust-icon  { font-size: 26px; line-height: 1; }
.trust-label { font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.3; }
.trust-sublabel { font-size: 10px; color: var(--text-muted); line-height: 1.3; }

/* ══════════════════════════════════════════
   SECTION GENERIC
══════════════════════════════════════════ */
.section { padding: 36px 16px; }
.section--alt   { background: var(--bg-alt); }
.section--white { background: var(--bg-white); }

.section-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════
   SPECS BOX
══════════════════════════════════════════ */
.specs-box {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px 16px;
  margin-bottom: 16px;
}

.specs-box h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.specs-list { display: flex; flex-direction: column; gap: 10px; }

.specs-list li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
  border-left: 3px solid var(--green);
  padding-left: 10px;
}

.specs-list li strong { color: var(--text); }

/* ══════════════════════════════════════════
   WHY CHEAP
══════════════════════════════════════════ */
.why-cheap-grid { display: flex; flex-direction: column; gap: 12px; }

.why-cheap-card {
  background: var(--bg-white);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.why-cheap-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-cheap-content h3 { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.why-cheap-content p  { font-size: 15px; color: var(--text-muted); line-height: 1.55; }

/* ══════════════════════════════════════════
   REVIEWS
══════════════════════════════════════════ */
.reviews-rating { text-align: center; margin-bottom: 20px; }
.reviews-rating__stars { font-size: 26px; color: var(--yellow); letter-spacing: 4px; margin-bottom: 6px; }
.reviews-rating p { font-size: 15px; color: var(--text-muted); margin: 0; }

.reviews-list { display: flex; flex-direction: column; gap: 14px; }

.review-card {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.review-name    { font-size: 15px; font-weight: 800; color: var(--text); }
.review-meta    { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.review-stars   { font-size: 16px; color: var(--yellow); letter-spacing: 2px; margin-bottom: 6px; }
.review-text    { font-size: 16px; color: #444; line-height: 1.6; }

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  border-radius: 12px;
  padding: 2px 8px;
  margin-top: 8px;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--text);
  color: #e5e7eb;
  padding: 28px 20px 36px;
  text-align: center;
}

/* ── DESKTOP CENTER ── */
@media (min-width: 501px) {
  body {
    max-width: var(--max);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
  }
  html { background: #e9eaec; }
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
