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

:root {
  --orange: #d63327;
  --orange-dim: #ae2920;
  --orange-light: #fef2f0;
  --bg-page: #f4f4f6;
  --bg-card: #ffffff;
  --border: #e5e5ea;
  --border-strong: #c7c7cc;
  --text: #1a1a1a;
  --text-2: #52525b;
  --text-3: #a1a1aa;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 28px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
  --radius: 14px;
  --sidebar-w: 252px;
  --amazon: #ff9900; --amazon-bg: #fff8ee;
  --shopee: #ee4d2d; --shopee-bg: #fff2ef;
  --ml: #f0b800;     --ml-bg: #fffbee;
  --mag: #e60014;    --mag-bg: #fff0f1;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; min-height: 64px; height: auto;
}
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-logo-img { width: 34px; height: 34px; border-radius: 10px; display: block; flex-shrink: 0; }
.nav-brand-name { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 200; color: var(--text); white-space: nowrap; letter-spacing: -.08em; }
.nav-brand-name span { color: var(--orange); font-weight: 700; }
.logo-gem {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.logo-text { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.logo-text span { color: var(--orange); }
.nav-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 1; min-width: 0; }
.btn-insta {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #405DE6 0%, #C13584 50%, #FD1D1D 100%); color: #fff;
  width: 34px; height: 34px; padding: 0; border-radius: 10px;
  text-decoration: none; flex-shrink: 0;
  transition: opacity .15s, transform .15s;
}
.btn-insta:hover { opacity: .82; transform: translateY(-1px); }
.btn-mag-nav {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-page); border: 1px solid var(--border);
  color: var(--text-2); padding: 7px 14px; border-radius: 8px;
  font-size: .82rem; font-weight: 500; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-mag-nav:hover { border-color: var(--border-strong); color: var(--text); }
.btn-nav-social {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  text-decoration: none; color: #fff;
  transition: opacity .15s, transform .15s;
  flex-shrink: 0;
}
.btn-nav-social:hover { opacity: .85; transform: translateY(-1px); }
.btn-nav-telegram  { background: #0088CC; }
.btn-nav-whatsapp  { background: #25D366; }
.nav-sep { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; align-self: center; }

/* ── HERO ── */
.hero-banner {
  background: linear-gradient(135deg, #111 0%, #1e1e1e 60%, #2a2a2a 100%);
  padding: 1.1rem 1.5rem;
}
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
}
.hero-text h1 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); font-weight: 700; color: #fff; line-height: 1.2; }
.hero-text h1 span { color: var(--orange); }
.hero-text p { font-size: .82rem; color: var(--text-3); margin-top: .25rem; max-width: 420px; }
.hero-badges { display: flex; gap: .45rem; margin-top: .6rem; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 100px;
  font-size: .72rem; font-weight: 600;
}
.hero-badge img { height: 16px; width: auto; display: block; }
.badge-amazon { background: var(--amazon-bg); }
.badge-shopee { background: var(--shopee-bg); }
.badge-ml     { background: var(--ml-bg); }
.badge-mag    { background: var(--mag-bg); }

/* Hero social buttons — compact horizontal row */
.hero-socials {
  display: flex; flex-direction: row; flex-wrap: wrap;
  gap: .4rem; min-width: auto; max-width: 310px;
}
.hero-social-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 9px; flex: 1; min-width: 85px;
  text-decoration: none; color: #fff;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.hero-social-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.hero-social-info { display: flex; flex-direction: column; }
.hero-social-label { font-size: .75rem; font-weight: 700; line-height: 1.2; }
.hero-social-sub   { display: none; }
.hero-social-arrow { display: none; }
.btn-social-telegram  { background: linear-gradient(135deg, #0088CC, #006aad); }
.btn-social-whatsapp  { background: linear-gradient(135deg, #25D366, #1aad55); }
.btn-social-instagram { background: linear-gradient(135deg, #405DE6 0%, #C13584 50%, #FD1D1D 100%); }

/* ── OVERLAY ── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 149;
}
.sidebar-overlay.open { display: block; }

/* ── PAGE LAYOUT ── */
.page-layout {
  display: flex;
  align-items: flex-start;
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky; top: 64px;
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: none;
  border-top: none;
  box-shadow: none;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1rem .75rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--bg-card);
  z-index: 1;
}
.sidebar-title {
  display: flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 700; color: var(--text);
}
.sidebar-reset-btn {
  font-size: .72rem; font-weight: 600; color: var(--orange);
  background: none; border: none; cursor: pointer; padding: 2px 4px;
  border-radius: 4px; font-family: 'Inter', sans-serif;
  transition: background .12s;
}
.sidebar-reset-btn:hover { background: var(--orange-light); }

.sidebar-section {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-section--last { border-bottom: none; }

.sidebar-section-title {
  font-size: .7rem; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .6rem;
}

/* Search */
.sidebar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  transition: border-color .15s;
}
.sidebar-search:focus-within { border-color: var(--orange); }
.sidebar-search svg { color: var(--text-3); flex-shrink: 0; }
.sidebar-search input {
  border: none; background: none; outline: none;
  font-size: .82rem; font-family: 'Inter', sans-serif; color: var(--text);
  width: 100%;
}
.sidebar-search input::placeholder { color: var(--text-3); }

/* Filter items */
.sidebar-item {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 8px; border-radius: 7px;
  cursor: pointer; transition: background .12s, color .12s;
  font-size: .82rem; color: var(--text-2);
  user-select: none;
}
.sidebar-item:hover { background: var(--bg-page); color: var(--text); }
.sidebar-item.ativo {
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 600;
}
.sidebar-item .sidebar-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-count {
  margin-left: auto; font-size: .7rem;
  color: var(--text-3); font-weight: 400;
  background: var(--bg-page); border-radius: 100px;
  padding: 1px 6px; flex-shrink: 0;
}
.sidebar-item.ativo .sidebar-count { background: rgba(232,64,28,0.12); color: var(--orange); }

.sidebar-item .check-icon { margin-left: auto; color: var(--orange); flex-shrink: 0; }

/* Category checkbox visual — exclude "Todas" item */
#catFilters .sidebar-item[data-value="todos"]::before { display: none; }
#catFilters .sidebar-item::before {
  content: '';
  width: 14px; height: 14px; flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-page);
  transition: background .12s, border-color .12s;
}
#catFilters .sidebar-item.ativo::before {
  background: var(--orange);
  border-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* Niche logo images */
.niche-logo-img {
  border-radius: 10px; width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; display: block;
}
.niche-logo-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: .72rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* Star rating filter */
.star-opt { display: inline-flex; align-items: center; flex-shrink: 0; font-size: .82rem; }
.star-on  { color: #f59e0b; }
.star-off { color: var(--border-strong); }


/* De / Até range inputs */
.range-inputs {
  display: flex; align-items: flex-end; gap: 6px;
}
.range-input-group {
  display: flex; flex-direction: column; flex: 1; gap: 3px;
}
.range-label {
  font-size: .7rem; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .05em;
}
.range-input-wrap {
  display: flex; align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s;
}
.range-input-wrap:focus-within { border-color: var(--orange); }
.range-prefix, .range-suffix {
  font-size: .75rem; font-weight: 600; color: var(--text-3);
  padding: 0 5px; flex-shrink: 0; user-select: none;
}
.range-input-wrap input[type="number"] {
  flex: 1; min-width: 0; width: 100%;
  border: none; background: none; outline: none;
  padding: 6px 4px;
  font-size: .8rem; font-family: 'Inter', sans-serif; color: var(--text);
  -moz-appearance: textfield;
  appearance: textfield;
}
.range-input-wrap input[type="number"]::-webkit-outer-spin-button,
.range-input-wrap input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.range-sep {
  font-size: .85rem; color: var(--text-3); flex-shrink: 0; padding-bottom: 7px;
}

/* Mobile toggle button */
.btn-filters-toggle {
  display: none; align-items: center; gap: 7px;
  background: var(--orange); border: 1px solid var(--border);
  color: white; padding: 7px 14px; border-radius: 10px;
  font-size: .82rem; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; margin-bottom: .85rem;
  transition: border-color .15s;
}
.btn-filters-toggle:hover { background: var(--orange-dim); }
.toggle-active-count {
  background: #fff; color: var(--orange);
  font-size: .65rem; font-weight: 700;
  padding: 1px 6px; border-radius: 100px;
  display: none;
}
.toggle-active-count.visible { display: inline-block; }

/* ── CONTENT ── */
.content {
  flex: 1;
  min-width: 0;
  padding: 0 1.5rem 2rem 1.25rem;
  padding-top: 1.25rem;
}

/* ── MAGAZINE FEATURED ── */
.mag-featured {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.mag-featured-inner {
  background: #0086FF;
  padding: 0 12px;
  height: 34px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  border-radius: 8px;
  position: relative; overflow: hidden;
  flex-shrink: 1; min-width: 0;
}
.mag-featured-inner::before,
.mag-featured-inner::after { display: none; }
.mag-featured-left { display: flex; align-items: center; }
.mag-featured-left img { max-height: 22px; width: auto; display: block; }
.mag-store-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: .75rem;
}
.mag-featured-title {
  font-size: clamp(.85rem, 2vw, 1.05rem);
  font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 0;
}
.mag-featured-title span { opacity: .82; font-weight: 600; }
.mag-featured-desc { font-size: .83rem; color: rgba(255,255,255,0.8); margin-bottom: 1rem; max-width: 380px; }
.mag-featured-perks { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.mag-featured-perks span { font-size: .78rem; color: rgba(255,255,255,0.9); font-weight: 500; }
.btn-mag-featured {
  display: flex; align-items: center; justify-content: center;
  background: #0086FF;
  padding: 0 12px; height: 34px; border-radius: 10px;
  text-decoration: none; flex-shrink: 0;
  transition: opacity .15s, transform .15s;
}
.btn-mag-featured:hover { opacity: .88; transform: translateY(-1px); }
.btn-brand-afil {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border);
  padding: 0 10px; height: 34px; border-radius: 10px;
  text-decoration: none; flex-shrink: 0;
  transition: opacity .15s, transform .15s, border-color .15s;
}
.btn-brand-afil:hover { opacity: .82; transform: translateY(-1px); border-color: var(--border-strong); }

/* ── TOOLBAR ── */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: .75rem;
}
.toolbar-count { font-size: .84rem; color: var(--text-2); }
.toolbar-count b { color: var(--text); font-weight: 600; }

/* Sort dropdown */
.sort-wrap { display: flex; align-items: center; gap: 6px; }
.sort-wrap svg { color: var(--text-3); flex-shrink: 0; }
#sortSelect {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-size: .83rem; font-weight: 500;
  font-family: 'Inter', sans-serif;
  padding: 6px 10px; border-radius: 10px;
  cursor: pointer; outline: none;
  transition: border-color .15s;
}
#sortSelect:hover, #sortSelect:focus { border-color: var(--orange); }

/* Price range slider */
.price-labels {
  display: flex; justify-content: space-between;
  font-size: .75rem; font-weight: 600; color: var(--orange);
  margin-bottom: 10px;
}
.price-slider-wrap {
  position: relative; height: 30px;
}
.price-track {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: 0; right: 0; height: 4px;
  background: var(--border); border-radius: 2px;
}
.price-fill {
  position: absolute; top: 0; height: 100%;
  background: var(--orange); border-radius: 2px;
}
.price-range {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; height: 30px; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; pointer-events: none;
}
.price-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer; pointer-events: all;
}
.price-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer; pointer-events: all;
  border: none;
}

/* Active filter chips */
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.active-filters:empty { margin-bottom: 0; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--orange-light); color: var(--orange);
  border: 1px solid currentColor; border-radius: 100px;
  padding: 3px 10px 3px 12px;
  font-size: .75rem; font-weight: 600;
}
.filter-chip button {
  background: none; border: none; color: inherit;
  cursor: pointer; font-size: .9rem; line-height: 1;
  padding: 0; display: flex; align-items: center;
  opacity: .65; transition: opacity .1s;
}
.filter-chip button:hover { opacity: 1; }

/* ── CONTENT SEARCH ── */
.content-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: .75rem;
  transition: border-color .15s, box-shadow .15s;
}
.content-search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(214,51,39,.07);
}
.content-search svg { color: var(--text-3); flex-shrink: 0; }
.content-search input {
  border: none; background: none; outline: none;
  font-size: .9rem; font-family: 'Inter', sans-serif; color: var(--text);
  width: 100%;
}
.content-search input::placeholder { color: var(--text-3); }

/* ── NICHO TABS ── */
.nicho-tabs {
  display: flex; gap: .4rem;
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: .85rem;
  -webkit-overflow-scrolling: touch;
}
.nicho-tabs::-webkit-scrollbar { display: none; }
.nicho-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: .8rem; font-weight: 500; color: var(--text-2);
  white-space: nowrap; cursor: pointer; flex-shrink: 0;
  transition: border-color .15s, background .15s, color .15s;
  user-select: none;
}
.nicho-tab:hover { border-color: var(--border-strong); color: var(--text); }
.nicho-tab.ativo { background: var(--orange); color: #fff; border-color: var(--orange); font-weight: 600; }
.nicho-tab .niche-logo-img { width: 16px; height: 16px; border-radius: 4px; }
.nicho-tab .niche-logo-fallback { width: 16px; height: 16px; font-size: .6rem; }
.nicho-count { font-size: .7rem; opacity: .7; font-weight: 400; }

/* ── GRID ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }

/* ── PRODUCT CARD ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.card-img {
  position: relative; aspect-ratio: 1/1;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-img > img { width: 100%; height: 100%; object-fit: contain; padding: 10px; padding-top: 40px; }
.card-img-placeholder { font-size: 3.5rem; opacity: .35; }

.discount-pill {
  display: inline-flex; align-items: center;
  font-size: .7rem; font-weight: 700; border-radius: 100px;
  padding: 2px 7px; flex-shrink: 0;
  background: rgba(21,128,61,.1); color: #15803d;
  letter-spacing: .01em;
}
/* ── FIRE DEAL (>50% desconto) ── */
.fire-banner {
  position: relative; overflow: hidden;
  background: #0f0f0f;
  color: rgba(255,255,255,.85);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 5px 12px;
  text-align: center;
  white-space: nowrap;
}
.fire-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 5px,
    rgba(255,255,255,0.13) 5px,
    rgba(255,255,255,0.13) 9px
  );
  animation: hatch-scroll 2s linear infinite;
  pointer-events: none;
}
@keyframes hatch-scroll {
  from { background-position: 0 0; }
  to   { background-position: 28px 28px; }
}
.card--fire {
  border-color: #0f0f0f;
  border-width: 2px;
  animation: fire-pulse 3s ease-in-out infinite;
}
@keyframes fire-pulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(0,0,0,.15), 0 0 0 0px rgba(15,15,15,0); }
  50%       { box-shadow: 0 6px 24px rgba(0,0,0,.22), 0 0 0 3px rgba(15,15,15,.1); }
}
.card--fire:hover {
  animation: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
}
.card--fire .btn-deal {
  background: #111;
  box-shadow: none;
}
.card--fire .btn-deal:hover {
  background: #2d2d2d;
  box-shadow: none;
}
/* ────────────────────────────────── */

.store-badge {
  position: absolute; top: 8px; right: 8px;
  display: flex; align-items: center; gap: 4px;
  font-size: .65rem; font-weight: 700; padding: 5px 7px; border-radius: 6px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.platform-logo-img { height: 14px; width: auto; display: block; }

/* Price change indicator */
.price-change {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 600; line-height: 1.3;
  border-radius: 5px; padding: 3px 8px;
  margin-bottom: .45rem; cursor: help;
  white-space: nowrap; overflow: hidden;
  max-width: 100%; align-self: flex-start;
}
.price-change-down { background: #f0fdf4; color: #16a34a; }
.price-change-up   { background: #fff1f2; color: #dc2626; }
.price-change-info { opacity: .6; font-size: .68rem; }

.card-body { padding: 1.1rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .7rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.card-name {
  font-size: .88rem; font-weight: 600; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: .65rem;
}
.card-rating { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--text-3); margin-bottom: .55rem; }
.rating-stars { color: #f59e0b; font-weight: 600; font-size: .78rem; }

.card-price { margin-bottom: .75rem; }
.price-current { font-size: 1.45rem; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -.02em; }
.price-original { font-size: .8rem; color: var(--text-3); text-decoration: line-through; margin-top: 2px; }
.price-saving { font-size: .75rem; font-weight: 600; color: #15803d; margin-top: 2px; }

.btn-deal {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--orange); color: #fff;
  padding: 11px 16px; border-radius: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .01em; text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  margin-top: auto;
}
.btn-deal:hover {
  background: var(--orange-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(214,51,39,.35);
}
.btn-deal svg { flex-shrink: 0; }

.card-footer {
  display: flex; align-items: center; gap: 5px; text-align: left;
  margin-bottom: .6rem;
  flex-wrap: wrap;
}
.card-date {
  display: flex; align-items: center; gap: 3px;
  font-size: .7rem; color: var(--text-3); margin-left: auto;
}

/* Origin pill in card footer */
.origin-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .7rem; font-weight: 600; border-radius: 100px;
  padding: 2px 7px 2px 5px; flex-shrink: 0;
}
.origin-telegram  { background: rgba(0,136,204,.12); color: #0088CC; }
.origin-whatsapp  { background: rgba(37,211,102,.12); color: #128C7E; }
.origin-instagram { background: rgba(193,53,132,.12); color: #C13584; }

/* ── SKELETON ── */
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skel {
  background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px;
}
.skel-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.skel-img { aspect-ratio: 1/1; border-radius: 0; }
.skel-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 8px; }
.skel-line { height: 11px; }
.w100{width:100%} .w80{width:80%} .w60{width:60%} .w40{width:40%}
.skel-price { height: 22px; width: 55%; }
.skel-btn { height: 34px; width: 100%; border-radius: 8px; }

/* ── EMPTY / ERROR ── */
.estado { grid-column: 1/-1; text-align: center; padding: 4rem 1rem; }
.estado-ico { font-size: 3rem; display: block; margin-bottom: .75rem; opacity: .4; }
.estado p { color: var(--text-2); font-size: .95rem; }
.estado small { color: var(--text-3); font-size: .8rem; display: block; margin-top: .35rem; }
.btn-retry {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1rem; padding: 8px 20px; border-radius: 10px;
  background: var(--orange); color: #fff; border: none;
  font-size: .85rem; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: background .15s;
}
.btn-retry:hover { background: var(--orange-dim); }

/* Cache banner */
.cache-banner {
  align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 10px; padding: 9px 14px;
  font-size: .78rem; color: var(--text-2);
  margin-bottom: .75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cache-banner svg { flex-shrink: 0; color: var(--orange); }
.cache-banner-msg { flex: 1; }
.cache-retry-btn {
  background: none; border: 1px solid var(--border-strong); color: var(--text-2);
  font-size: .73rem; font-weight: 600; font-family: 'Inter', sans-serif;
  padding: 3px 10px; border-radius: 6px; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.cache-retry-btn:hover { background: var(--bg-page); border-color: var(--orange); color: var(--orange); }
@keyframes spin { to { transform: rotate(360deg); } }
.cache-spinner { display: block; animation: spin 0.75s linear infinite; flex-shrink: 0; }
.load-ring {
  width: 38px; height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 1rem;
}

/* ── PAGINATION ── */
.paginacao { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 2rem; flex-wrap: wrap; }
.pag-btn {
  min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-2);
  font-size: .82rem; font-family: 'Inter', sans-serif; font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.pag-btn:hover:not(:disabled):not(.ativo) { border-color: var(--orange); color: var(--orange); }
.pag-btn.ativo { background: var(--orange); color: #fff; border-color: var(--orange); }
.pag-btn:disabled { opacity: .35; cursor: not-allowed; }
.pag-dots { color: var(--text-3); font-size: .82rem; line-height: 34px; padding: 0 3px; }

/* ── FOOTER ── */
.footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
   padding: 2.5rem 1.5rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; align-items: flex-start; }
.footer-brand .brand-logo { display: flex; align-items: center; gap: 9px; margin-bottom: .5rem; }
.footer-brand p { font-size: .8rem; color: var(--text-2); line-height: 1.65; max-width: 380px; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: .8rem; color: var(--text-2); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { max-width: 1280px; margin: 1.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .75rem; color: var(--text-3); }

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  :root { --sidebar-w: 220px; }
}

@media (max-width: 768px) {
  .page-layout { padding-top: 1rem; }
  .content { padding: 0 1rem 2rem; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .hero-socials { width: 100%; max-width: 100%; }
  .hero-social-btn { min-width: 80px; }
  .mag-featured-inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .footer-inner { flex-direction: column; }

  /* Sidebar becomes a fixed drawer on mobile */
  .sidebar {
    position: fixed;
    top: 0; left: -100%; bottom: 0;
    width: 280px;
    z-index: 150;
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    max-height: 100vh;
    transition: left .25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  }
  .sidebar.open { left: 0; }
  .btn-filters-toggle { display: flex; width: 100%; justify-content: center; }
  .btn-insta span { display: none; }
  /* Navbar mobile: oculta nome da marca para caber Magazine + sociais em uma linha */
  .nav-brand-name { display: none; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .card-name { font-size: .78rem; }
  .price-current { font-size: 1.2rem; }
  .btn-deal { font-size: .78rem; padding: 8px; }
  .card-body { padding: .7rem; }
}

@media (max-width: 360px) {
  .grid { gap: .45rem; }
  .card-body { padding: .55rem; }
  .price-current { font-size: 1.05rem; }
  .btn-deal { padding: 7px 5px; font-size: .75rem; }
  .card-name { font-size: .75rem; }
  .content { padding: 0 .6rem 2rem; }
}
