.shop-head {
  padding: 46px 0 42px;
  border-bottom: 1px solid #e1e7ef;
  background: linear-gradient(135deg, #eef4fb, #fff 64%, #fff5ea);
}
.shop-head h1 {
  margin: 15px 0 10px;
  font-size: clamp(2.7rem, 6vw, 4.9rem);
}
.shop-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.shop-body {
  padding: 42px 0 85px;
}
.shop-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.filters {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(220, 240, 255, 0.38)),
    rgba(222, 240, 251, 0.42);
  padding: 14px;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.95),
    inset -2px -2px 0 rgba(80, 156, 210, 0.18),
    0 14px 32px rgba(7, 27, 61, 0.14),
    5px 6px 0 rgba(40, 116, 174, 0.1);
  backdrop-filter: blur(13px) saturate(135%);
}
.filters::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 62%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, rgba(255, 255, 255, 0));
  pointer-events: none;
}
.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 0;
}
.filter-title strong {
  color: var(--navy);
  font-size: 0.88rem;
}
.filter-title button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 750;
  cursor: pointer;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #35435a;
  cursor: pointer;
}
.filter-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.filter-option span {
  margin-left: auto;
  color: #8794a8;
  font-size: 0.78rem;
}
.filter-all {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(132, 190, 228, 0.7);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(224, 244, 255, 0.56));
  font-weight: 800;
  box-shadow: inset 0 1px 0 #fff, 2px 3px 0 rgba(41, 115, 168, 0.1);
}
.filter-group {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(115, 182, 226, 0.75);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(211, 238, 255, 0.42) 58%, rgba(255, 255, 255, 0.68));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.98),
    inset -1px -1px 0 rgba(33, 126, 190, 0.18),
    2px 3px 0 rgba(36, 112, 166, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.filter-group::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(26, 127, 199, 0.35), rgba(255, 126, 25, 0.45));
  pointer-events: none;
}
.filter-group:hover,
.filter-group[open] {
  transform: translate(-2px, -2px);
  border-color: rgba(45, 145, 210, 0.9);
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 rgba(22, 112, 176, 0.22),
    5px 7px 0 rgba(27, 104, 158, 0.13),
    0 12px 22px rgba(7, 27, 61, 0.1);
}
.filter-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  font-size: 0.86rem;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.filter-group summary::-webkit-details-marker {
  display: none;
}
.filter-group summary::after {
  content: "⌄";
  order: -1;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(145deg, rgba(34, 112, 169, 0.88), rgba(7, 44, 83, 0.92));
  color: #fff;
  font-size: 0.95rem;
  transition: transform 0.2s;
}
.filter-group[open] summary::after {
  transform: rotate(180deg);
  background: linear-gradient(145deg, var(--orange), #d95700);
}
.filter-group[open] > summary {
  color: var(--navy);
}
.filter-group summary span {
  margin-left: auto;
  color: #8794a8;
  font-size: 0.76rem;
  font-weight: 650;
}
.subcategory-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 0 8px 8px;
  border-top: 1px solid rgba(109, 177, 220, 0.48);
  background: rgba(255, 255, 255, 0.28);
}
.category-option {
  padding: 8px 2px 4px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 750;
}
.subcategory-option {
  display: block;
  width: 100%;
  padding: 4px 3px 4px 8px;
  border: 0;
  border-left: 2px solid #dce6f5;
  border-radius: 0 7px 7px 0;
  background: transparent;
  color: #56647a;
  text-align: left;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.35;
  cursor: pointer;
}
#filter-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
}
.results {
  margin-top: 0;
}
.help-box {
  max-width: 520px;
}
.subcategory-option:hover,
.subcategory-option:focus-visible,
.subcategory-option.active {
  border-left-color: var(--orange);
  background: #ffe4cd;
  color: var(--navy);
  outline: none;
}
.help-box {
  margin-top: 20px;
  padding: 17px;
  border-radius: 14px;
  background: #eef5ff;
}
.help-box strong {
  color: var(--navy);
}
.help-box p {
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}
.help-box a {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
}
.results-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.results-bar label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.results-bar select {
  width: auto;
  padding: 9px 34px 9px 12px;
  background: #fff;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 18px;
}
.shop-card {
  min-width: 0;
}
.shop-image {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  background-color: #edf1f5;
  background-repeat: no-repeat;
  background-size: 300% 200%;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-size 0.38s ease;
}
.shop-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(7, 27, 61, 0.12);
  background-size: 330% 220%;
}
.shop-image.standalone-image {
  background-color: #fff;
  background-position: center;
  background-size: 88% auto;
}
.shop-image.standalone-image:hover {
  background-size: 98% auto;
}
.shop-image.dual-image,
.lightbox-image.dual-image {
  background-color: #fff;
  background-position: left center, right center !important;
  background-size: 50% auto, 50% auto;
}
.shop-image.dual-image:hover {
  background-size: 54% auto, 54% auto;
}
.shop-image:after {
  content: "Ver detalhes";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px;
  border-radius: 5px;
  background: rgba(7, 27, 61, 0.9);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.25s;
}
.shop-image:hover:after {
  opacity: 1;
  transform: none;
}
.image-lightbox {
  width: min(880px, calc(100vw - 32px));
  max-width: none;
  padding: 16px 16px 18px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(7, 27, 61, 0.35);
}
.image-lightbox::backdrop {
  background: rgba(4, 14, 30, 0.78);
  backdrop-filter: blur(4px);
}
.lightbox-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 9px;
  background-color: #edf1f5;
  background-repeat: no-repeat;
  background-size: 300% 200%;
}
.lightbox-image.standalone-image {
  background-color: #fff;
  background-position: center;
  background-size: contain;
}
.image-lightbox strong {
  display: block;
  padding: 14px 4px 0;
  color: var(--navy);
  font-size: 1rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 27, 61, 0.9);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--orange);
  outline: 3px solid rgba(255, 122, 24, 0.3);
}
.lightbox-open {
  overflow: hidden;
}
.pos-1 {
  background-position: 0 0;
}
.pos-2 {
  background-position: 50% 0;
}
.pos-3 {
  background-position: 100% 0;
}
.pos-4 {
  background-position: 0 100%;
}
.pos-5 {
  background-position: 50% 100%;
}
.pos-6 {
  background-position: 100% 100%;
}
.shop-info {
  padding: 13px 2px;
}
.shop-category {
  display: block;
  margin-bottom: 4px;
  color: #8996aa;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.shop-info h2 {
  margin: 0;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.32;
  letter-spacing: 0;
}
.shop-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}
.shop-price strong {
  color: var(--blue);
  font-size: 0.88rem;
}
.shop-price a {
  color: #d95200;
  font-size: 0.8rem;
  font-weight: 850;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 48px;
}
.pagination button {
  width: 42px;
  height: 42px;
  border: 1px solid #d3dbe7;
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}
.pagination button:hover,
.pagination button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.mobile-filter-row {
  display: none;
}
.assistant-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 19px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), #084bb0);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 16px 36px rgba(7, 89, 217, 0.3);
}
.assistant-fab:before {
  content: "✦";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
}
@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .mobile-filter-row {
    display: block;
    margin-bottom: 18px;
  }
  .mobile-filter-row button {
    width: 100%;
    padding: 13px;
    border: 1px solid #ffc18e;
    border-radius: 10px;
    background: #fff1e4;
    color: var(--navy);
    font-weight: 800;
  }
  .filters {
    position: static;
    display: none;
  }
  .filters.open {
    display: block;
  }
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  #filter-options {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  #filter-options {
    grid-template-columns: 1fr;
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
  .results-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .results-bar label {
    width: 100%;
    justify-content: space-between;
  }
  .results-bar select {
    flex: 1;
  }
  .shop-head {
    padding-top: 34px;
  }
}
@media (max-width: 430px) {
  .shop-info h2 {
    font-size: 0.9rem;
  }
  .shop-category {
    font-size: 0.66rem;
  }
  .shop-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .assistant-fab {
    right: 13px;
    bottom: 13px;
    padding: 0 14px;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-image,
  .filter-group {
    transition: none;
  }
}
