html.vapw-has-vitrine,
body.vapw-has-vitrine {
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

.vapw-vitrine {
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: none;
  --vapw-accent: #ff8a00;
  --vapw-btn-text: #ffffff;
  --vapw-card-bg: #ffffff;
  --vapw-card-text: #111827;
  --vapw-card-border: #e5e7eb;
  --vapw-radius: 18px;
  --vapw-col-desktop: 5;
  --vapw-col-tablet: 4;
  --vapw-col-mobile: 3;
  --vapw-grid-gap: 14px;
  --vapw-card-pad: 10px;
  --vapw-toolbar-gap: 14px;
  --vapw-title-desktop: 16px;
  --vapw-title-mobile: 13px;
  color: var(--vapw-card-text);
  width: 100%;
}

.vapw-vitrine.is-loading {
  opacity: 0.92;
}

.vapw-toolbar {
  display: grid;
  min-width: 0;
  gap: var(--vapw-toolbar-gap);
  margin-bottom: 26px;
  width: 100%;
}

.vapw-search-wrap {
  position: relative;
  min-width: 0;
}

.vapw-search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.76);
  padding: 0 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.vapw-search-icon {
  width: 22px;
  height: 22px;
  color: #cbd5e1;
  pointer-events: none;
  flex: 0 0 auto;
}

.vapw-search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.vapw-search-input {
  width: 100%;
  min-height: 36px;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  color: #ffffff;
  font-size: 16px;
}

.vapw-search-input::-webkit-search-decoration,
.vapw-search-input::-webkit-search-cancel-button,
.vapw-search-input::-webkit-search-results-button,
.vapw-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.vapw-search-input::placeholder {
  color: #cbd5e1;
  opacity: 0.92;
}

.vapw-search-shell:focus-within {
  outline: none;
  border-color: var(--vapw-accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.14);
}

.vapw-grid-wrap {
  transition: min-height 0.22s ease, opacity 0.2s ease;
  min-width: 0;
  width: 100%;
}

.vapw-sections {
  display: grid;
  gap: 26px;
  width: 100%;
}

.vapw-category-block {
  display: grid;
  gap: 12px;
}

.vapw-category-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vapw-category-block__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
  font-weight: 500;
}

.vapw-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(var(--vapw-col-desktop), minmax(0, 1fr));
  gap: var(--vapw-grid-gap);
  width: 100%;
  align-items: stretch;
}

.vapw-card {
  background: var(--vapw-card-bg);
  color: var(--vapw-card-text);
  border: 1px solid var(--vapw-card-border);
  border-radius: max(14px, calc(var(--vapw-radius) - 2px));
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.vapw-card-image-wrap {
  position: relative;
}

.vapw-card-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f9fafb;
  overflow: hidden;
}

.vapw-card-image img,
.vapw-card-image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vapw-card-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
  transform: scale(1.02);
  transform-origin: center;
}

.vapw-card-image-placeholder {
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #9ca3af;
}

.vapw-marketplace-badge,
.vapw-featured-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  font-size: 10px;
  font-weight: 500;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
}

.vapw-marketplace-badge {
  top: 8px;
  right: 8px;
  color: #b45309;
}

.vapw-marketplace-badge--logo {
  min-width: 42px;
  padding: 5px 9px;
}

.vapw-marketplace-badge--logo img {
  max-height: 15px;
  width: auto;
  display: block;
}

.vapw-featured-badge {
  top: 8px;
  left: 8px;
  background: rgba(255, 138, 0, 0.96);
  color: #fff;
}

.vapw-marketplace-shopee {
  color: #ea580c;
}

.vapw-marketplace-amazon {
  color: #111827;
}

.vapw-marketplace-mercado_livre {
  color: #1d4ed8;
}

.vapw-marketplace-outro {
  color: #4b5563;
}

.vapw-card-body {
  padding: var(--vapw-card-pad);
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 auto;
}

.vapw-card-title {
  font-size: 14px;
  line-height: 1.24;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vapw-card-desc {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

.vapw-card-button {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  width: 100%;
  border-radius: 10px;
  text-decoration: none;
  background: var(--vapw-accent);
  color: var(--vapw-btn-text);
  font-weight: 500;
  font-size: 13px;
  padding: 0 10px;
  box-sizing: border-box;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.vapw-card-button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
  color: inherit;
}

.vapw-empty-state {
  border: 1px dashed var(--vapw-card-border);
  border-radius: var(--vapw-radius);
  padding: 22px;
  text-align: center;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.95);
}

@media (min-width: 1025px) {
  .vapw-grid {
    grid-template-columns: repeat(var(--vapw-col-desktop), minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .vapw-grid {
    grid-template-columns: repeat(var(--vapw-col-tablet), minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .vapw-sections {
    gap: 20px;
  }

  .vapw-category-block {
    gap: 10px;
  }

  .vapw-category-block__title {
    font-size: 18px;
  }

  .vapw-grid {
    grid-template-columns: repeat(var(--vapw-col-mobile), minmax(0, 1fr));
    gap: 10px;
  }

  .vapw-card {
    border-radius: 14px;
  }

  .vapw-card-title {
    font-size: 12px;
    line-height: 1.2;
  }

  .vapw-card-desc {
    font-size: 11px;
    line-height: 1.28;
  }

  .vapw-card-body {
    gap: 4px;
    padding: 8px;
  }

  .vapw-card-button {
    min-height: 30px;
    font-size: 12px;
    border-radius: 9px;
    padding: 0 8px;
  }

  .vapw-search-shell {
    min-height: 46px;
    padding: 0 14px;
  }

  .vapw-search-input {
    font-size: 16px !important;
  }

  .vapw-marketplace-badge,
  .vapw-featured-badge {
    min-height: 22px;
    font-size: 9px;
    padding: 0 7px;
  }
}

@supports (overflow: clip) {
  .vapw-vitrine {
    overflow-x: clip;
  }
}
