/* Loja / Categorias page */

.loja-page {
  background: #fffdf9;
}

.loja-hero {
  padding: 36px 0 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(135, 89, 221, 0.16), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255, 194, 46, 0.18), transparent 38%),
    linear-gradient(180deg, #f6f1ff 0%, #fffdf9 100%);
}

.loja-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ece4f8;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(104, 64, 186, 0.08);
}

.loja-title {
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  font-weight: 900;
  color: var(--purple);
  margin: 0 0 8px;
  line-height: 1.12;
}

.loja-sub {
  margin: 0;
  color: #7a7583;
  font-size: 1rem;
  font-weight: 700;
  max-width: 560px;
  line-height: 1.5;
}

.loja-wrap {
  padding-top: 8px;
}

.loja-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(65, 44, 28, 0.06);
}

.loja-search-wide {
  flex: 1;
  min-width: 220px;
  max-width: none;
}

.loja-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.loja-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #ece4f8;
  background: #fff;
  color: #4b445c;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.loja-chip .bi {
  font-size: 0.9rem;
}

.loja-chip:hover {
  border-color: #d8c8f4;
  color: var(--purple);
  background: #f8f3ff;
}

.loja-chip.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 8px 16px rgba(104, 64, 186, 0.22);
}

.loja-empty {
  text-align: center;
  padding: 48px 20px;
  border-radius: 22px;
  border: 1px dashed #e4dee8;
  background: #fff;
  color: #7a7583;
}

.loja-empty .bi {
  font-size: 1.8rem;
  color: var(--purple);
  display: block;
  margin-bottom: 8px;
}

.loja-empty p {
  margin: 0;
  font-weight: 700;
}

.loja-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}

.loja-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #b8b3bc;
  font-size: 0.95rem;
  pointer-events: none;
}

.loja-search {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #ece7e3;
  padding: 0 18px 0 42px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  color: #3a3348;
  box-shadow: none;
}

.loja-search::placeholder {
  color: #b8b3bc;
  font-weight: 700;
}

.loja-search:focus {
  border-color: #ddd6e0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(135, 89, 221, 0.08);
}

.loja-sort-wrap {
  position: relative;
  flex-shrink: 0;
}

.loja-sort {
  appearance: none;
  -webkit-appearance: none;
  min-width: 210px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #ece7e3;
  background: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  color: #3a3348;
  padding: 0 36px 0 16px;
  cursor: pointer;
  box-shadow: none;
}

.loja-sort:focus {
  border-color: #ddd6e0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(135, 89, 221, 0.08);
}

.loja-sort-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9a94a3;
  font-size: 0.72rem;
  pointer-events: none;
}

.loja-sidebar {
  font-size: 0.82rem;
}

/* Filter sidebar — matches design reference */
.filter-panel {
  background: #fff;
  border: 1px solid #e8e2ec;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.filter-panel-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  background: #fff;
  color: var(--purple);
  font-weight: 900;
  font-size: 0.84rem;
  cursor: pointer;
  text-align: left;
}

.filter-panel-head-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-head-icon {
  font-size: 0.95rem;
  color: var(--purple);
}

.filter-chevron {
  font-size: 0.72rem;
  color: var(--purple);
  flex-shrink: 0;
}

.filter-panel-body {
  display: none;
  padding: 0 14px 14px;
}

.filter-panel.is-open .filter-panel-body {
  display: block;
}

.filter-panel.is-open .filter-chevron {
  transform: none;
}

/* Category rows — icon left, radio right */
.filter-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  margin: 0;
  cursor: pointer;
  font-weight: 700;
  color: #3a3348;
  line-height: 1.25;
}

.filter-cat-icon {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a94a3;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.filter-cat-label {
  flex: 1;
  min-width: 0;
  font-size: 0.76rem;
}

.filter-cat-row input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #cfc8d6;
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  background: #fff;
}

.filter-cat-row input[type="radio"]:checked {
  border-color: var(--purple);
  background: radial-gradient(circle, var(--purple) 42%, #fff 44%);
}

/* Age / price fields */
.filter-field-row,
.filter-price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.filter-field {
  flex: 1;
  min-width: 0;
}

.filter-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #6f6b79;
  margin-bottom: 4px;
}

.filter-select {
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e4dee8;
  font-size: 0.72rem;
  font-weight: 700;
  color: #3a3348;
  padding: 0 8px;
  box-shadow: none;
}

.filter-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(135, 89, 221, 0.15);
}

.filter-dash {
  color: #9a94a3;
  font-weight: 700;
  padding-bottom: 8px;
  flex-shrink: 0;
}

.filter-price-row .filter-select {
  flex: 1;
}

/* Dual range slider */
.filter-range-wrap {
  position: relative;
  height: 28px;
  margin-top: 2px;
}

.filter-range-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 999px;
  background: #ece6f4;
  pointer-events: none;
  z-index: 0;
}

.filter-range-wrap::after {
  content: "";
  position: absolute;
  left: var(--range-left, 0%);
  width: var(--range-width, 100%);
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 999px;
  background: var(--purple);
  pointer-events: none;
  z-index: 1;
}

.filter-range {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  margin: 0;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
}

.filter-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(104, 64, 186, 0.35);
  cursor: pointer;
  pointer-events: auto;
}

.filter-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(104, 64, 186, 0.35);
  cursor: pointer;
  pointer-events: auto;
}

.filter-range-max {
  z-index: 3;
}

.filter-range-min {
  z-index: 2;
}

/* Gender, delivery, generic options */
.filter-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  margin: 0;
  cursor: pointer;
  font-weight: 700;
  color: #3a3348;
  font-size: 0.76rem;
}

.filter-option-row input[type="radio"],
.filter-option-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #cfc8d6;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  background: #fff;
}

.filter-option-row input[type="radio"] {
  border-radius: 50%;
}

.filter-option-row input[type="checkbox"] {
  border-radius: 4px;
}

.filter-option-row input[type="radio"]:checked {
  border-color: var(--purple);
  background: radial-gradient(circle, var(--purple) 42%, #fff 44%);
}

.filter-option-row input[type="checkbox"]:checked {
  border-color: var(--purple);
  background: var(--purple);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.filter-delivery-row {
  font-size: 0.74rem;
  line-height: 1.35;
}

/* Rating rows */
.filter-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  margin: 0;
  cursor: pointer;
  font-weight: 700;
}

.filter-rating-row input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #cfc8d6;
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  background: #fff;
}

.filter-rating-row input[type="radio"]:checked {
  border-color: var(--purple);
  background: radial-gradient(circle, var(--purple) 42%, #fff 44%);
}

.filter-rating-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 0.72rem;
  line-height: 1;
}

.filter-rating-stars .bi-star-fill {
  color: #ffb000;
}

.filter-rating-stars .bi-star {
  color: #d5d0da;
}

.filter-rating-more {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6f6b79;
}

.btn-clear-filters {
  border: 2px solid var(--purple);
  color: var(--purple);
  background: #fff;
  font-weight: 900;
  border-radius: 999px;
  padding: 11px 10px;
  font-size: 0.82rem;
  margin-top: 4px;
}

.btn-clear-filters:hover {
  background: #f8f3ff;
  color: var(--purple-dark);
  border-color: var(--purple-dark);
}

/* Product cards — matches design reference */
#productGrid .col {
  display: flex;
}

.loja-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 22px;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(65, 44, 28, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.loja-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(65, 44, 28, 0.1);
}

.loja-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 50% 20%, #fff 0%, transparent 55%),
    linear-gradient(180deg, #f7f3ff 0%, #fff8ef 100%);
  overflow: hidden;
  margin: 0;
}

.loja-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 14px;
  margin: 0;
}

.loja-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: var(--purple);
  background: #f4edff;
}

.loja-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #b8b3bc;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loja-wish .bi-heart {
  font-size: 1.08rem;
}

.loja-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 13px 16px 15px;
}

.loja-tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
}

.loja-tag {
  font-size: 0.625rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}

.loja-tag.cat-default,
.loja-tag.cat-esportivos {
  background: #d4e4ff;
  color: #3b6fd9;
}

.loja-tag.cat-musicais {
  background: #d8f5e8;
  color: #2a9d63;
}

.loja-tag.cat-meninas {
  background: #fde4ef;
  color: #d64d8c;
}

.loja-tag.cat-eletronicos {
  background: #ebe4ff;
  color: #6840ba;
}

.loja-tag.cat-plasticos {
  background: #ffecd9;
  color: #d9782a;
}

.loja-tag.cat-pelucia {
  background: #fce4ec;
  color: #c74b7a;
}

.loja-tag.cat-montagem {
  background: #e3f0ff;
  color: #3b7fd9;
}

.loja-tag.cat-avioes {
  background: #e3ebff;
  color: #4a6fd9;
}

.loja-tag.cat-eletricos {
  background: #fff0d9;
  color: #c9861a;
}

.loja-tag.cat-bolas {
  background: #dff5ea;
  color: #2d9a68;
}

.loja-tag.cat-bebe {
  background: #ffe8f0;
  color: #d85a8a;
}

.loja-tag.age {
  background: #f1eef2;
  color: #5c5766;
  font-weight: 700;
  flex-shrink: 0;
}

.loja-tag.code {
  margin-left: auto;
  background: #d4e4ff;
  color: #3b6fd9;
  width: 23px;
  height: 23px;
  min-width: 23px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 900;
  flex-shrink: 0;
}

.loja-card h3 {
  font-size: 0.86rem;
  font-weight: 800;
  color: #121018;
  margin: 0 0 5px;
  line-height: 1.35;
  min-height: 2.72em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loja-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.loja-rating-stars {
  display: inline-flex;
  gap: 1px;
  color: #ffc107;
  font-size: 0.74rem;
  line-height: 1;
}

.loja-rating-count {
  color: #9a94a3;
  font-size: 0.72rem;
  font-weight: 700;
}

.loja-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: #8759dd;
  margin-bottom: 11px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.loja-card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.btn-loja-cart {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #8759dd;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.btn-loja-cart .bi-bag-fill {
  font-size: 0.84rem;
}

.btn-loja-cart:hover {
  color: #fff;
  background: #6840ba;
}

.loja-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #25a244;
  border: 2px solid #25d366;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  line-height: 1;
}

.loja-wa .bi-whatsapp {
  font-size: 0.98rem;
  color: #25d366;
}

.loja-wa:hover {
  color: #1d8a38;
  background: #f3fff7;
  border-color: #25d366;
}

.loja-page .store-pagination {
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(65, 44, 28, 0.06);
}

.loja-page .store-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.loja-page .store-pager-info {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.loja-page .store-pager-info strong {
  color: var(--ink);
  font-weight: 900;
}

.loja-page .store-pager-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.loja-page .store-pager-list li {
  display: flex;
}

.loja-page .store-pager-list a,
.loja-page .store-pager-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid #ece4f8;
  background: #fffdf9;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.loja-page .store-pager-list a:hover {
  border-color: #d8c8f4;
  color: var(--purple);
  background: #f8f3ff;
}

.loja-page .store-pager-list .is-active span {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 8px 16px rgba(104, 64, 186, 0.22);
}

.loja-page .store-pager-list .is-disabled span {
  background: #f6f2ee;
  color: #b7b1bd;
}

@media (max-width: 991.98px) {
  .loja-search-wrap {
    max-width: 100%;
  }

  .loja-sort-wrap {
    width: 100%;
  }

  .loja-sort {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .loja-hero {
    padding: 26px 0 18px;
    text-align: center;
  }

  .loja-sub {
    margin-inline: auto;
  }

  .loja-controls {
    justify-content: stretch;
  }

  .loja-chips {
    justify-content: center;
  }
}
