/* ======================
   🛍️ HOME - VITRINE
====================== */

/* ======================
   🎨 DESIGN TOKENS
====================== */

:root {

  --primary-color: #2563eb;
  --secondary-color: #0f172a;

  --surface-page: #f5f5f5;
  --surface-card: #ffffff;
  --surface-raised: #ffffff;
  --surface-input: #ffffff;
  --surface-subtle: #f3f4f6;
  --surface-footer: #0f172a;
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  --text-inverse-muted: rgba(255, 255, 255, 0.72);
  --border-color: #e5e7eb;
  --border-strong: #d1d5db;
  --focus-ring: color-mix(in srgb, var(--primary-color) 22%, transparent);

  /* backgrounds */
  --nv-bg-card: var(--surface-card);

  /* borders */
  --nv-border-light: var(--border-color);
  --nv-border-hover: var(--border-strong);

  /* text */
  --nv-text-main: var(--text-main);
  --nv-text-soft: var(--text-muted);

  /* success */
  --nv-green: #16a34a;
  --nv-green-light: #22c55e;

  /* marketplace */
   --nv-amazon-dark: #ea580c;
   --nv-shopee-dark: #ea580c;
   --nv-ml-dark: #facc15;
   --nv-amazon: #f59e0b;
   --nv-shopee: #f97316;
   --nv-ml: #fde047;

  /* shadows */
  --nv-shadow-card:
    0 2px 8px rgba(0,0,0,0.06);

  --nv-shadow-hover:
    0 14px 28px rgba(0,0,0,0.14);

  /* radius */
  --nv-radius-card: 16px;

  /* transitions */
  --nv-transition-fast: 0.18s ease;
}

/* ======================
   🌎 BASE
====================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

body.dark-mode {
  --surface-page: var(--secondary-color);
  --surface-card: #111827;
  --surface-raised: #172033;
  --surface-input: #1e293b;
  --surface-subtle: #1e293b;
  --surface-footer: #020617;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-inverse: #ffffff;
  --text-inverse-muted: rgba(255, 255, 255, 0.72);
  --border-color: #334155;
  --border-strong: #475569;
  --focus-ring: color-mix(in srgb, var(--primary-color) 34%, transparent);

  background: var(--surface-page);
  color: var(--text-main);
}

/* ======================
   🧩 GRID 
   ====================== */

#products,
.grid,
.skeleton-wrapper {
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(180px, 1fr));

  gap: 16px;

  align-items: stretch;

  overflow: visible;

  padding-right: 6px;

  padding-bottom: 24px;
}

/* ======================
   🧩 CARD LAYOUT BASE
====================== */

.card-product,
.premium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  isolation: isolate;
  backface-visibility: hidden;
}

/* ======================
   🚀 SMART RENDER PIPELINE
====================== */

.card-product,
.premium-card {

  will-change: transform;

  transform:
    translateZ(0);

  contain:
    layout paint style;
}

.home-banner,
.feed-banner {

  contain:
    layout paint style;
}

.carousel-arrow {

  will-change:
    opacity,
    transform;
}

/* ======================
   🎨 CARD VISUAL BASE
====================== */

.card-product,
.premium-card {

  border: 1px solid var(--nv-border-light);
  background: var(--surface-card);
  color: var(--text-main);

  transition:
    transform .22s cubic-bezier(.22,.61,.36,1),
    box-shadow .22s ease,
    border-color .22s ease,
    opacity .22s ease;

  box-shadow:
    var(--nv-shadow-card);
}

/* ======================
   🛒 CARD PRODUCT
====================== */

.card-product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  cursor: pointer;
  overflow: visible;
  min-height: 320px;
  z-index: 1;
 isolation: isolate;
}


.card-product::before,
.premium-card::before {

  content: "";

  position: absolute;

  inset: 0;

  border-radius: inherit;

  pointer-events: none;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.18),
      rgba(255,255,255,0.04) 35%,
      transparent 60%
    );

  opacity: 0;

  transition:
    opacity .35s ease,
    transform .35s ease;

  transform:
    translateY(10px);

  z-index: 1;
}

.card-product:hover::before,
.premium-card:hover::before {

  opacity: 1;

  transform:
    translateY(0);
}
.card-product:hover,
.premium-card:hover {

  transform:
    translateY(-8px)
    scale(1.012);

  box-shadow:
    0 18px 36px rgba(0,0,0,0.14),
    0 6px 14px rgba(0,0,0,0.08);

  border-color: var(--nv-border-hover);

  z-index: 12;
}
.card-product:active {
  transform: scale(0.985);
}

.card-product img {
  width: 100%;
  height: 180px;
  margin-top: 22px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  image-rendering: auto;
 
}

.card-product:hover img,
.premium-card:hover img {

  transform:
    scale(1.045)
    translate3d(0,-2px,0);
}

.card-product h4 {
  margin-top: 10px;

  min-height: 42px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;

  color: var(--nv-text-main);

  overflow: hidden;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price {
  margin-top: 8px;

 color: var(--nv-green);

  font-size: 22px;
  font-weight: 800;

  letter-spacing: -0.5px;

  transition: transform 0.18s ease;
}

.card-product:hover .price {
  transform: scale(1.03);
}

.card-meta {
  margin-top: 6px;

  font-size: 12px;
  font-weight: 500;

  color: var(--nv-text-soft);
}

.card-product button {
  width: 100%;
  margin-top: auto;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );
  
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-shadow:
  0 1px 2px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.card-product button:hover,
.premium-card button:hover {
  opacity: 0.96;
  transform:
    translateY(-2px)
    scale(1.025);
  box-shadow:
    0 10px 20px rgba(0,0,0,0.14);
}

.card-product button::before {

  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 80%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.28),
      transparent
    );

  transition:
    left .55s ease;
}

.card-product button:hover::before {

  left: 140%;
}

/* ======================
   🏷️ BADGES
====================== */

.card-badge,
.premium-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
}

.card-badge {
  background: rgba(17,24,39,0.88);

  backdrop-filter: blur(4px);
}

.card-badge.amazon,
.premium-badge.amazon {
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #ea580c
    );
}

.card-badge.shopee,
.premium-badge.shopee {
  background:
    linear-gradient(
      135deg,
      #f97316,
      #ea580c
    );
}

.card-badge.mercadolivre,
.premium-badge.mercadolivre {
background:
  linear-gradient(
    135deg,
    var(--nv-ml),
    var(--nv-ml-dark)
  );

  color: #111827;
}

/* ======================
   🔍 SEARCH
====================== */

.search-box {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(
      135deg,
      var(--secondary-color, #0f172a),
      var(--primary-color, #2563eb)
    );
  border-bottom: 3px solid var(--primary-color, #2563eb);
}

.header-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 60px;
}

.header-top h1 {
  position: absolute;
  left: 0;
  margin: 0;
  white-space: nowrap;
}

.header-top input {
  width: 100%;
  max-width: 600px;
}

#global-search {
  width: 100%;
  max-width: 620px;
  height: 46px;
  margin: 0 auto;
  display: block;

  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-input);
  color: var(--text-main);

  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

.header-top h1 {
  position: static;
  white-space: normal;
}

@media (min-width: 769px) {
  .header-top h1 {
    position: absolute;
    left: 0;
    white-space: nowrap;
  }
}

.search-buttons button {
  width: 100%;
  max-width: 360px;
  min-width: 0;
}

#global-search:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.search-box input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;

  border: 1px solid var(--border-strong);
  background: var(--surface-input);
  color: var(--text-main);
}

/* ======================
   LOJAS PARCEIRAS
====================== */

.store-platforms {
  --store-platform-min-width: 104px;
  --store-platform-max-width: 190px;
  --store-platform-grid-gap: 8px;
  --store-platform-grid-max-width: 920px;
  --store-platform-logo-size: 28px;
  --store-platform-count: 1;
  --store-rail-padding: 12px;
  --store-rail-control-size: 40px;
  --store-rail-edge-size: 34px;
  --store-rail-edge-color: rgba(15, 76, 129, 0.92);
  --store-overflow-item-width: clamp(104px, 28vw, 144px);

  order: 5;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.store-platforms__header {
  width: min(920px, calc(100% - 32px));
  text-align: center;
}

.store-platforms__header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
}

.store-platforms__status,
.store-platforms__interaction-message {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.store-platforms__interaction-message {
  width: min(620px, calc(100% - 32px));
  min-height: 18px;
  font-weight: 700;
}

.store-platforms__status:empty,
.store-platforms__interaction-message:empty {
  display: none;
}

.store-platforms__rail,
.store-platforms__list-region {
  width: 100%;
}

.store-platforms__item {
  display: flex;
  min-width: 0;
}

.store-platforms[data-state="loading"] .store-platforms__rail,
.store-platforms[data-state="empty"] .store-platforms__rail,
.store-platforms[data-state="error"]:not([data-has-stale-data]) .store-platforms__rail {
  display: none;
}

.store-platforms[data-state="empty"] .store-platforms__status {
  color: rgba(255, 255, 255, 0.92);
}

.store-platforms[data-state="error"] .store-platforms__status {
  color: #fee2e2;
  font-weight: 700;
}

.store-platforms__control,
.store-platforms__expand {
  display: none;
}

.search-buttons button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.55);
}

.search-buttons {
  margin-top: 10px;
  order: 5;

  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.search-buttons button svg {
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.search-buttons button:hover svg {

  transform:
    scale(1.08);

}
.search-buttons button {
  width: 190px;
  min-width: 190px;
  height: 48px;
  min-height: 44px;
  padding: 0 14px;

  border: 1px solid var(--primary-color);
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;

  cursor: pointer;

  background: var(--surface-raised);
  color: var(--text-main);

  backdrop-filter: blur(8px);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;

  position: relative;

  overflow: hidden;
}

.search-buttons .store-medal {
  flex: 0 0 20px;
  text-align: center;
  font-size: 16px;
  line-height: 1;
}

.search-buttons .store-medal.store-price-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  z-index: 1;
  width: auto;
  max-width: calc(100% - 12px);
  padding: 2px 5px;
  border: 1px solid #d97706;
  border-radius: 999px;
  background: #fef3c7;
  color: #713f12;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.search-buttons
  button.has-store-logo
  .store-medal.store-price-badge {
  right: 2px;
  box-sizing: border-box;
  width: 34px;
  max-width: 34px;
  padding: 1px 2px;
  text-align: center;
  font-size: 8px;
  white-space: normal;
  line-height: 1.05;
}

.search-buttons button.rank-lowest-price {
  border-color: #d97706;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.search-buttons button.rank-lowest-price .store-name {
  color: #111827;
}

.search-buttons button[data-availability="FALLBACK_ONLY"],
.search-buttons button[data-availability="DIRECT_OFFER_PRICE_UNAVAILABLE"] {
  opacity: 0.76;
}

.search-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.search-buttons .store-logo {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.search-buttons button.has-store-logo {
  width: 88px;
  min-width: 88px;
  justify-content: center;
  padding: 0 12px;
}

.search-buttons button.has-store-logo .store-medal {
  flex-basis: 18px;
}

.search-buttons button.has-store-logo .store-logo {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
}

.search-buttons button.has-store-logo .store-name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.search-buttons .store-name {
  color: #00e5ff;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-buttons button .store-name {
  color: var(--text-main);
}

@media (max-width: 420px) {
  #global-search {
    max-width: 92%;
    height: 44px;
    font-size: 14px;
    padding: 0 14px;
  }
}

#global-search::placeholder {
    font-size: 14px;
    color: var(--text-muted);
    opacity: 1;
  }


.search-buttons button:hover {
  background: var(--primary-color);
  color: #fff;
}

.search-buttons button:hover .store-name {
  color: #fff;
}

.search-buttons button:active {

  transform:
    scale(0.96);

}

.search-hint {
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.hero .search-hint {
  color: rgba(255,255,255,0.78);
}

/* ======================
   🏆 RANKING
====================== */

.post-search-featured-offer {
  order: 3;
  width: min(920px, calc(100% - 32px));
  margin: 2px auto 0;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.post-search-featured-offer[hidden] {
  display: none;
}

.post-search-featured-offer__media {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-subtle);
  border: 1px solid var(--border-color);
}

.post-search-featured-offer__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.post-search-featured-offer__body {
  min-width: 0;
}

.post-search-featured-offer__eyebrow {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.post-search-featured-offer h2 {
  margin: 3px 0 8px;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.post-search-featured-offer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

.post-search-featured-offer__meta strong {
  color: #047857;
  font-size: 18px;
}

.post-search-featured-offer__meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--text-main);
  font-weight: 700;
}

.post-search-featured-offer__cta {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
}

.post-search-featured-offer__cta:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

.post-search-featured-offer__cta:active {
  transform: scale(0.98);
}

.post-search-offer-comparator {
  order: 4;
  width: min(920px, calc(100% - 32px));
  margin: -6px auto 0;
  border-radius: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.post-search-offer-comparator[hidden] {
  display: none;
}

.post-search-offer-comparator__toggle {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.post-search-offer-comparator__chevron {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.post-search-offer-comparator__chevron:empty {
  display: none;
}

.post-search-offer-comparator__count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.post-search-offer-comparator__list {
  list-style: none;
  margin: 0;
  padding: 0 12px 12px;
  display: grid;
  gap: 8px;
}

.post-search-offer-comparator__list[hidden] {
  display: none;
}

.post-search-offer-comparator__row {
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-subtle);
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.post-search-offer-comparator__rank {
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.post-search-offer-comparator__store {
  min-width: 0;
  color: var(--text-main);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-search-offer-comparator__price {
  color: #047857;
  white-space: nowrap;
}

.post-search-offer-comparator__cta {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.post-search-offer-comparator__cta:hover {
  background: var(--secondary-color);
}

.post-search-offer-comparator__cta:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

[data-platform] {
  transition:
  transform 0.2s ease,
  opacity 0.2s ease,
  background-color 0.2s ease;
}

[data-platform]:hover {
  transform: scale(1.05);
}

[data-platform]:hover .store-name {
  color: #000000;
}

.rank-1 {
  background: rgba(255, 251, 235, 0.96);

  color: #111827;

  font-weight: bold;

  border-color: rgba(245, 158, 11, 0.72);

  box-shadow:
    0 4px 12px rgba(245, 158, 11, 0.16);
}

.rank-2 {
  background: rgba(248, 250, 252, 0.96);

  color: #111827;

  border-color: rgba(148, 163, 184, 0.78);

  box-shadow:
    0 4px 12px rgba(100, 116, 139, 0.12);
}

.rank-3 {
  background: rgba(239, 246, 255, 0.96);

  color: #111827;

  border-color: rgba(37, 99, 235, 0.58);

  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.12);
}

.rank-1 .store-name,
.rank-2 .store-name {
  color: #111827;
}

.rank-3 .store-name {
  color: #111827;
}

.rank-badge {
  margin-left: 8px;

  font-size: 22px;

  line-height: 1;
}

/* ======================
   🎯 HERO
====================== */
.hero-content {
  padding: 28px 20px;

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      #111827,
      #1f2937
    );

  color: white;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.12);
}

/* ======================
   🧹 HERO LEGACY OFF
====================== */

.hero {
  display: none;
}

.hero-badge {
  display: inline-block;

  padding: 8px 14px;

  margin-bottom: 14px;

  border-radius: 999px;

  background:
    rgba(255,255,255,0.12);

  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  margin-bottom: 10px;

  font-size: 32px;

  line-height: 1.1;
}

.hero-subtitle {
  margin-bottom: 12px;

  color: rgba(255,255,255,0.8);

  font-size: 15px;
}

/* ======================
   📦 SECTIONS
====================== */

.feed-section {
  margin-top: 30px;
  }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 24px;

  color: var(--nv-text-main);
}

.section-tag {
  display: inline-block;

  padding: 6px 12px;

  margin-bottom: 8px;

  border-radius: 999px;

  background: var(--surface-subtle);

  color: var(--text-muted);

  font-size: 12px;
  font-weight: 700;
}

/* ======================
   🎠 PREMIUM CAROUSEL
====================== */

.premium-carousel-section {
  margin-top: 28px;
  margin-bottom: 30px;

  overflow: visible;
}

.premium-carousel {
 display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 20px 10px 40px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-left: 10px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
  will-change: scroll-position;
 
}
.premium-carousel::-webkit-scrollbar {
  display: none;
}

.premium-carousel::after {
  content: "";
  min-width: 2px;
  flex-shrink: 0;
}

/* ======================
   💎 PREMIUM CARD
====================== */

.premium-card {
  position: relative;

 flex: 0 0 180px;
width: 180px;
min-width: 180px;

  height: 320px;

  display: flex;
  flex-direction: column;

  flex-shrink: 0;

  padding: 12px;
  
  transform: translateZ(0);

  z-index: 1;
}

.premium-card:active {
  transform: scale(0.985);
}

.premium-card img {
  width: 100%;
  height: 140px;
  margin-top: 20px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.premium-title {
  margin-top: 10px;

  height: 38px;

  overflow: hidden;

  display: -webkit-box;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  font-size: 13px;
  font-weight: 600;

  line-height: 1.4;

  color: var(--text-main);
}

.premium-price {
  margin-top: 8px;

  color: var(--nv-green);

  font-size: 20px;
  font-weight: 800;
}

.premium-card button {
  width: 100%;

  margin-top: auto;

  padding: 10px;

  border: none;
  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );

  color: white;

  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.premium-card button:hover {
  opacity: 0.95;

  transform: scale(1.02);
}

/* ======================
   🧠 CARD STATES
====================== */

.card-hot,
.card-viewed,
.card-recommended {

  position: relative;

  overflow: visible;
}

/* ======================
   🔥 HOT
====================== */

.card-hot {

  border-color:
    rgba(34,197,94,0.35);

  box-shadow:
    0 10px 24px rgba(34,197,94,0.12);
}

.card-hot::after {

  content: "";

  position: absolute;

  inset: 0;

  border-radius: inherit;

  pointer-events: none;

  border:
    1px solid rgba(34,197,94,0.35);
}

/* ======================
   👀 VIEWED
====================== */

.card-viewed {

  border-color:
    rgba(34,197,94,0.55);

  box-shadow:
    0 10px 24px rgba(34,197,94,0.18);
}

/* ======================
   🏆 RECOMMENDED
====================== */

.card-recommended {

  border-color:
    rgba(59,130,246,0.22);

  box-shadow:
    0 10px 24px rgba(59,130,246,0.10);
}
/* ======================
   🔥 TRENDING SEARCHES
====================== */

.trending-searches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

#dynamic-chips {
  display: none;
}

.trending-searches button {
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--text-main);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trending-searches button:hover {
  background: var(--secondary-color);

  color: var(--text-inverse);

  transform: translateY(-2px);
}

/* ======================
   🧠 RECOMMENDATION
====================== */

#recommended-products .card-product {
  border:
    1px solid var(--border-color);

  background:
    linear-gradient(
      180deg,
      var(--surface-card),
      var(--surface-subtle)
    );
}

#recommended-products .card-product:hover {
  border-color: var(--border-strong);
}

/* ======================
   ⚡ SKELETON
====================== */

.skeleton-card {
  min-height: 280px;

  border-radius: 18px;

  background:
    linear-gradient(
      90deg,
      var(--surface-subtle) 25%,
      var(--border-color) 37%,
      var(--surface-subtle) 63%
    );

  background-size:
    400% 100%;

  animation:
    skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position:
      100% 50%;
  }

  100% {
    background-position:
      0 50%;
  }
}

/* ======================
   📱 MOBILE
====================== */

@media (max-width: 768px) {


body.home-products-layout-auto #products,
body.home-products-layout-auto .grid,
body.home-products-layout-one #products,
body.home-products-layout-one .grid {
  grid-template-columns: 1fr;
}

body.home-products-layout-two #products,
body.home-products-layout-two .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 328px;
  margin: 10px 16px 0;
}

.search-buttons button {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.search-buttons button.has-store-logo {
  width: 100%;
  min-width: 0;
}

.post-search-featured-offer {
  width: calc(100% - 32px);
  max-width: 328px;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.post-search-featured-offer__media {
  width: 64px;
  height: 64px;
}

.post-search-featured-offer h2 {
  font-size: 15px;
  margin-bottom: 7px;
}

.post-search-featured-offer__meta {
  gap: 6px;
}

.post-search-featured-offer__meta strong {
  width: 100%;
  font-size: 17px;
}

.post-search-featured-offer__meta span {
  font-size: 12px;
}

.post-search-featured-offer__cta {
  grid-column: 1 / -1;
  width: 100%;
}

.post-search-offer-comparator {
  width: calc(100% - 32px);
  max-width: 328px;
  margin-top: -4px;
}

.post-search-offer-comparator__toggle {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

.post-search-offer-comparator__list {
  padding: 0 8px 8px;
  gap: 7px;
}

.post-search-offer-comparator__row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
}

.post-search-offer-comparator__rank {
  grid-column: 1 / -1;
}

.post-search-offer-comparator__store {
  font-size: 13px;
}

.post-search-offer-comparator__price {
  font-size: 13px;
}

.post-search-offer-comparator__cta {
  grid-column: 1 / -1;
  width: 100%;
}

  .header-top {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  #brand-title {
    text-align: center;
    margin-bottom: 4px;
  }

  #global-search {
    width: 92%;
    max-width: 360px;
    height: 44px;
    margin: 0 auto;
  }

.header-top h1 {
  position: static;
  white-space: normal;
}

.search-buttons button {
  width: 100%;
  max-width: 360px;
  min-width: 0;
}

  .hero-content {
    padding: 22px 16px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .premium-card {
    min-width: 160px;
    width: 160px;
  }
} 
/* 🔥 FIX ONLY TREND OVERFLOW */

#trend-products {
  overflow: hidden !important;
}

/* ======================
   🔥 FORCE CAROUSEL
====================== */

/* 🔥 libera ancestrais */

.feed-section,
.container,
main,
body {

  overflow-x: visible !important;
}

/* ======================
   🎠 WRAPPER
====================== */

.premium-carousel-wrapper {

  position: relative;

  overflow: hidden;
}

/* ====================== */
/* ⬅️➡️ SETAS */
/* ====================== */

.carousel-arrow {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  border-radius: 50%;

  border: none;

  background: rgba(0,0,0,0.45);

  color: #fff;

  font-size: 28px;

  cursor: pointer;

  z-index: 30;

  opacity: 0.18;

transition:
  opacity .25s ease,
  background .25s ease,
  transform .2s ease;
}

/* mostra quando mouse entra na área */

/* mostra quando mouse entra na área */

/* mostra quando mouse entra na área */

.premium-carousel-wrapper:hover
.carousel-arrow {

  opacity: 1;
}

/* hover da seta */

.carousel-arrow:hover {

  background: rgba(0,0,0,0.75);
}

.carousel-arrow.left {

  left: 10px;
}

.carousel-arrow.right {

  right: 10px;
}
/* hover */

.carousel-arrow:hover {
  transform:
    translateY(-50%)
    scale(1.08);
}

/* mobile */

@media (max-width: 768px) {

  .carousel-arrow {
    display: none;
  }
}

/* ======================
   📢 HOME BANNER SYSTEM
====================== */
/* animação fade */

#banner-home {

  opacity: 1;

  transition:
    opacity .45s ease,
    transform .45s ease;
}

#banner-home.banner-changing {

  opacity: 0;

  transform: translateY(6px);
}

.home-banner-section {

  margin-top: 32px;

  width: 100%;
}

.home-banner-container {

  width: 100%;

  display: flex;

  justify-content: center;
}

/* slot dinâmico */

#banner-home {

  width: 100%;

  min-height: 140px;

  border-radius: 20px;

  overflow: hidden;

  position: relative;
}

/* ======================
   🎯 DEFAULT BANNER
====================== */

.home-banner {

  width: 100%;

  min-height: 140px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 24px;

  padding: 28px;

  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      #111827,
      #1f2937
    );

  color: white;

  overflow: hidden;

  position: relative;
}

/* glow decorativo */

.home-banner::before {

  content: "";

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at top right,
      rgba(255,255,255,0.16),
      transparent 30%
    ),

    radial-gradient(
      circle at bottom left,
      rgba(255,255,255,0.08),
      transparent 35%
    );

  pointer-events: none;

  mix-blend-mode: screen;
}


.home-banner-content {

  position: relative;

  z-index: 2;

  max-width: 520px;
}

.home-banner-tag {

  display: inline-block;

  margin-bottom: 12px;

  padding: 6px 12px;

  border-radius: 999px;

  background:
    rgba(255,255,255,0.12);

  font-size: 12px;
  font-weight: 700;
}

.home-banner-title {

  font-size: 32px;

  font-weight: 800;

  line-height: 1.1;

  margin-bottom: 12px;
}

.home-banner-text {

  color:
    rgba(255,255,255,0.82);

  line-height: 1.5;

  font-size: 15px;
}

.home-banner-cta {

  position: relative;

  z-index: 2;

  display: flex;

  align-items: center;
  justify-content: center;
}

.home-banner-button {

  border: none;

  padding:
    14px 22px;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );

  color: white;

  font-weight: 700;

  cursor: pointer;

  transition:
    transform .18s ease,
    opacity .18s ease;
}

.home-banner-button:hover {

  opacity: 0.95;

  transform: translateY(-2px);
}

/* ======================
   📱 MOBILE
====================== */

@media (max-width: 768px) {

  .home-banner {

    flex-direction: column;

    align-items: flex-start;

    padding: 22px;

    gap: 18px;
  }

  .home-banner-title {

    font-size: 24px;
  }

  .home-banner-button {

    width: 100%;
  }

  .home-banner-cta {

    width: 100%;
  }
}

/* ======================
   🎯 TOP HERO BANNER
====================== */

#banner-home {

  margin-bottom: 28px;
}


/* ======================
📢 FEED BANNER
====================== */

.feed-banner {

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 24px;

  padding: 28px;

  margin: 28px 0;

  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      #111,
      #1b1b1b
    );

  border:
    1px solid rgba(255,255,255,0.06);

  overflow: hidden;
}

.feed-banner-content {
  flex: 1;
}

.feed-banner-tag {

  display: inline-block;

  margin-bottom: 12px;

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;

  background:
    rgba(255,255,255,0.08);

  color: #fff;
}

.feed-banner-title {

  font-size: 28px;
  font-weight: 800;

  color: white;

  margin-bottom: 12px;
}

.feed-banner-text {

  color: rgba(255,255,255,0.72);

  line-height: 1.5;
}

.feed-banner-button {

  border: none;

  padding: 14px 22px;

  border-radius: 14px;

  font-weight: 700;

  cursor: pointer;

  background: white;
  color: black;

  transition: 0.2s;
}

.feed-banner-button:hover {

  transform: scale(1.04);
}

/* ======================
📱 MOBILE
====================== */

@media (max-width: 768px) {

  .feed-banner {

    flex-direction: column;
    align-items: flex-start;
  }

  .feed-banner-title {
    font-size: 22px;
  }
}

/* ======================
   🎬 CINEMATIC REVEAL
====================== */

.reveal-section {

  opacity: 0;

  transform:
    translate3d(0, 38px, 0)
    scale(0.985);

  transition:
    opacity 0.7s cubic-bezier(.22,.61,.36,1),
    transform 0.7s cubic-bezier(.22,.61,.36,1);

  will-change:
    opacity,
    transform;
}

.reveal-section.is-visible {

  opacity: 1;

  transform:
    translate3d(0,0,0)
    scale(1);
}

/* ======================
   🎴 CARD STAGGER
====================== */

.reveal-card {

  opacity: 0;

  transform:
    translate3d(0,24px,0);

  transition:
    opacity .55s ease,
    transform .55s ease;

  will-change:
    opacity,
    transform;
}

.reveal-card.is-visible {

  opacity: 1;

  transform:
    translate3d(0,0,0);
}

/* ======================
   ✨ CURSOR AURA SYSTEM
====================== */

.card-product,
.premium-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  overflow: hidden;
 background: var(--nv-bg-card);
  border-radius: var(--nv-radius-card);
 isolation: isolate;
}

/* glow dinâmico */


/* ======================
   🌌 ADAPTIVE DEPTH PARALLAX
====================== */
  .card-product::after,
  .premium-card::after {

    content: "";

    position: absolute;

    inset: -1px;

    border-radius: inherit;

    pointer-events: none;

    background:
      radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%)
        rgba(255,255,255,0.16),
        transparent 42%
      );

    opacity: 0;

    transition:
      opacity .25s ease;

    z-index: 2;
  }

  .card-product:hover::after,
  .premium-card:hover::after {
    opacity: 1;
  }
  

/* ======================
   🎬 INTELLIGENT MOTION SYSTEM
====================== */

.motion-hidden {

  opacity: 0;

  transform:
    translateY(26px)
    scale(0.985);

  transition:
    opacity .7s ease,
    transform .5s cubic-bezier(.2,.8,.2,1);

  will-change:
    transform,
    opacity;
}

.motion-visible {

  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

/* stagger */

.motion-visible.card-product:nth-child(1) {
  transition-delay: .02s;
}

.motion-visible.card-product:nth-child(2) {
  transition-delay: .05s;
}

.motion-visible.card-product:nth-child(3) {
  transition-delay: .08s;
}

.motion-visible.card-product:nth-child(4) {
  transition-delay: .11s;
}

.motion-visible.card-product:nth-child(5) {
  transition-delay: .14s;
}

.motion-visible.card-product:nth-child(6) {
  transition-delay: .17s;
}

/* sections */

.feed-section {

  transition:
    opacity .8s ease,
    transform .8s ease;
}

/* ======================
   🌌 CINEMATIC SCROLL REACTOR
====================== */

body.scrolling .home-banner,
body.scrolling .feed-banner {

  transform:
    translateY(-2px)
    scale(1.003);

  transition:
    transform .35s ease;
}

body.scrolling .premium-carousel {

  transform:
    translateY(-1px);
}

body.scrolling .card-product:hover,
body.scrolling .premium-card:hover {

  box-shadow:
    0 24px 46px rgba(0,0,0,0.18);
}

/* ambient depth */

.home-banner,
.feed-banner,
.premium-carousel {

  transition:
    transform .45s ease,
    box-shadow .45s ease,
    filter .45s ease;
}

/* cinematic softness */

body.scrolling {

  --nv-scroll-depth:
    1;
}

/* ======================
   🎯 HERO IMAGE
====================== */

.home-banner-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.home-banner-image {
  max-width: 320px;
  max-height: 220px;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 12px;
}

body.home {
  overflow-x: hidden !important;
}

body.home .premium-carousel {
  overflow-x: auto !important;
}

/* ======================
   LOJAS — TODAS VISÍVEIS
====================== */

.store-platforms--all-visible .search-buttons {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(
        min(100%, var(--store-platform-min-width)),
        1fr
      )
    );
  gap: var(--store-platform-grid-gap);
  width: min(
    var(--store-platform-grid-max-width),
    calc(100vw - 32px),
    calc(
      var(--store-platform-count) * var(--store-platform-max-width) +
      (var(--store-platform-count) - 1) * var(--store-platform-grid-gap)
    )
  );
  max-width: var(--store-platform-grid-max-width);
  margin: 10px auto 0;
  align-items: stretch;
  justify-content: center;
}

.store-platforms--all-visible .store-platforms__item {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.store-platforms--all-visible .search-buttons button,
.store-platforms--all-visible .search-buttons button.has-store-logo {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: var(--store-platform-max-width);
  min-height: 44px;
  padding-right: 10px;
  padding-left: 10px;
}

.store-platforms--all-visible .search-buttons .store-logo,
.store-platforms--all-visible .search-buttons button.has-store-logo .store-logo {
  flex: 0 0 var(--store-platform-logo-size);
  width: var(--store-platform-logo-size);
  height: var(--store-platform-logo-size);
  max-width: var(--store-platform-logo-size);
  max-height: var(--store-platform-logo-size);
  object-fit: contain;
}

.store-platforms--all-visible
  .search-buttons
  button.has-store-logo.rank-lowest-price {
  justify-content: flex-start;
  padding-right: 6px;
  padding-left: 8px;
}

/* ======================
   LOJAS — FAIXA HORIZONTAL
====================== */

.store-platforms--overflow .store-platforms__rail {
  position: relative;
  width: min(
    var(--store-platform-grid-max-width),
    calc(100vw - 32px)
  );
  margin: 10px auto 0;
}

.store-platforms--overflow .store-platforms__list-region {
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--store-rail-padding);
  scroll-behavior: smooth;
  touch-action: pan-x pan-y pinch-zoom;
  padding: 4px var(--store-rail-padding) 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.55) transparent;
}

.store-platforms--overflow .store-platforms__list-region::-webkit-scrollbar {
  height: 6px;
}

.store-platforms--overflow .store-platforms__list-region::-webkit-scrollbar-track {
  background: transparent;
}

.store-platforms--overflow .store-platforms__list-region::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.store-platforms--overflow .search-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--store-platform-grid-gap);
  width: max-content;
  max-width: none;
  margin: 0;
  justify-content: flex-start;
}

.store-platforms--overflow .store-platforms__item {
  flex: 0 0 var(--store-overflow-item-width);
  width: var(--store-overflow-item-width);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.store-platforms--overflow .search-buttons button,
.store-platforms--overflow .search-buttons button.has-store-logo {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 44px;
  padding-right: 10px;
  padding-left: 10px;
}

.store-platforms--overflow .search-buttons .store-logo,
.store-platforms--overflow .search-buttons button.has-store-logo .store-logo {
  flex: 0 0 var(--store-platform-logo-size);
  width: var(--store-platform-logo-size);
  height: var(--store-platform-logo-size);
  max-width: var(--store-platform-logo-size);
  max-height: var(--store-platform-logo-size);
  object-fit: contain;
}

.store-platforms--overflow
  .search-buttons
  button.has-store-logo.rank-lowest-price {
  justify-content: flex-start;
  padding-right: 6px;
  padding-left: 8px;
}

.store-platforms--overflow .store-platforms__rail::before,
.store-platforms--overflow .store-platforms__rail::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 6px;
  width: var(--store-rail-edge-size);
  opacity: 0;
  pointer-events: none;
  content: "";
  transition: opacity 0.18s ease;
}

.store-platforms--overflow .store-platforms__rail::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--store-rail-edge-color),
    transparent
  );
}

.store-platforms--overflow .store-platforms__rail::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--store-rail-edge-color),
    transparent
  );
}

.store-platforms--overflow[data-can-scroll-previous]
  .store-platforms__rail::before,
.store-platforms--overflow[data-can-scroll-next]
  .store-platforms__rail::after {
  opacity: 1;
}

.store-platforms__control:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.55);
}

@media (min-width: 769px) {
  .store-platforms--overflow {
    --store-rail-padding: 48px;
    --store-rail-edge-size: 52px;
  }

  .store-platforms--overflow
    .store-platforms__control:not([hidden]) {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: flex;
    width: var(--store-rail-control-size);
    height: var(--store-rail-control-size);
    min-height: 40px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.86);
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-58%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
  }

  .store-platforms--overflow
    .store-platforms__control:disabled {
    cursor: default;
    opacity: 0.42;
  }

  .store-platforms--overflow
    .store-platforms__control--previous {
    left: 4px;
  }

  .store-platforms--overflow
    .store-platforms__control--next {
    right: 4px;
  }

  .store-platforms--overflow
    .store-platforms__control::before {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
  }

  .store-platforms--overflow
    .store-platforms__control--previous::before {
    content: "‹";
  }

  .store-platforms--overflow
    .store-platforms__control--next::before {
    content: "›";
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-platforms--overflow .store-platforms__list-region {
    scroll-behavior: auto;
  }

  .store-platforms--overflow .store-platforms__rail::before,
  .store-platforms--overflow .store-platforms__rail::after {
    transition: none;
  }
}

/* ======================
   LOJAS — EXPANSÃO
====================== */

.store-platforms__item[hidden] {
  display: none !important;
}

.store-platforms__expand:not([hidden]) {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.store-platforms__expand:not([hidden]):hover {
  border-color: #ffffff;
  background: rgba(15, 76, 129, 0.96);
}

.store-platforms__expand:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.55);
}

.store-platforms--expanded .store-platforms__rail {
  width: min(
    var(--store-platform-grid-max-width),
    calc(100vw - 32px)
  );
  margin: 10px auto 0;
}

.store-platforms--expanded .store-platforms__list-region {
  overflow-x: visible;
  overflow-y: visible;
  padding: 0;
  scroll-snap-type: none;
  touch-action: auto;
}

.store-platforms--expanded .search-buttons {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(
        min(100%, var(--store-platform-min-width)),
        1fr
      )
    );
  gap: var(--store-platform-grid-gap);
  width: 100%;
  max-width: var(--store-platform-grid-max-width);
  margin: 0;
  align-items: stretch;
  justify-content: center;
}

.store-platforms--expanded .store-platforms__item {
  width: 100%;
  min-width: 0;
  justify-content: center;
  scroll-snap-align: none;
}

.store-platforms--expanded .search-buttons button,
.store-platforms--expanded .search-buttons button.has-store-logo {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: var(--store-platform-max-width);
  height: auto;
  min-height: 76px;
  padding: 8px 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

.store-platforms--expanded .search-buttons .store-logo,
.store-platforms--expanded
  .search-buttons
  button.has-store-logo
  .store-logo {
  flex: 0 0 var(--store-platform-logo-size);
  width: var(--store-platform-logo-size);
  height: var(--store-platform-logo-size);
  max-width: var(--store-platform-logo-size);
  max-height: var(--store-platform-logo-size);
  object-fit: contain;
}

.store-platforms--expanded
  .search-buttons
  button.has-store-logo
  .store-name {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: auto;
  clip-path: none;
  border: 0;
  white-space: normal;
}

.store-platforms--expanded .search-buttons .store-name {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.store-platforms--expanded
  .search-buttons
  button.has-store-logo
  .store-medal.store-price-badge {
  position: static;
  width: auto;
  max-width: 100%;
  padding: 2px 5px;
  flex-basis: auto;
  align-self: center;
  font-size: 9px;
  white-space: nowrap;
  line-height: 1;
}

.store-platforms--expanded .store-platforms__control {
  display: none !important;
}

.store-platforms--expanded .store-platforms__rail::before,
.store-platforms--expanded .store-platforms__rail::after {
  display: none;
  opacity: 0;
}
