/* Vitrine limpa, compacta e orientada ao produto. */
#loja .store-top {
  align-items: flex-end;
}

.shop-bar.cep-removed .site-search {
  max-width: none;
}

#loja .store-controls:empty {
  display: none;
}

#loja .store-subfilters {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
  margin: 22px 0 24px;
  padding: 9px 11px;
  overflow: hidden;
  border-color: #dbe8f5;
  border-radius: 16px;
  background: #f8fbff;
  box-shadow: 0 8px 24px rgba(24, 77, 128, .055);
  scrollbar-width: none;
}

#loja .store-subfilters::-webkit-scrollbar {
  display: none;
}

#loja .store-subfilters-label {
  grid-row: 1 / 3;
  min-width: max-content;
  padding-right: 3px;
}

#loja .store-subfilters-label i {
  width: 28px;
  height: 28px;
}

#loja .store-subfilters .filters,
#loja .store-subfilters-options {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 1px;
  scrollbar-width: none;
}

#loja .store-subfilters .filters::-webkit-scrollbar,
#loja .store-subfilters-options::-webkit-scrollbar {
  display: none;
}

#loja .store-subfilters .filters {
  padding-bottom: 8px;
  border-bottom: 1px solid #d8e5f2;
}

#loja .store-subfilters button {
  min-height: 34px;
  padding: 8px 12px;
  border-color: #d5e2ef;
  background: #fff;
  box-shadow: 0 2px 7px rgba(20, 58, 97, .035);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, opacity .18s ease;
}

#loja .store-subfilters button.selected {
  border-color: #087ff2;
  background: #087ff2;
  color: #fff;
  box-shadow: 0 6px 14px rgba(8, 127, 242, .2);
}

#loja .store-subfilters button.unavailable,
#loja .store-subfilters button:disabled {
  opacity: .34;
  color: #7e8b9d;
  background: #f2f5f8;
  border-style: dashed;
  cursor: default;
  box-shadow: none;
  transform: none;
}

#loja .product-grid {
  align-items: stretch;
  gap: 20px;
}

#loja .product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-bottom: 16px;
  border-color: #dce6f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(19, 52, 85, .06);
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

#loja .product[hidden],
#loja .product.is-filtered-out {
  display: none !important;
}

#loja .product:hover,
#loja .product:focus-visible {
  transform: translateY(-5px);
  border-color: #9dccf7;
  box-shadow: 0 18px 38px rgba(24, 83, 139, .13);
}

#loja .product:active {
  transform: translateY(-2px) scale(.995);
}

#loja .product-image.generic-product {
  height: 252px;
  margin-bottom: 0;
  border-bottom: 1px solid #e5edf5;
  background: linear-gradient(145deg, #f4f7fa, #e9eef4);
}

#loja .product .card-variant-picker {
  min-height: 48px;
  margin: 0;
  padding: 9px 17px 7px;
  border-bottom: 1px solid #edf2f7;
  background: rgba(249, 252, 255, .94);
}

#loja .product .card-selected-color {
  max-width: 118px;
  overflow: hidden;
  color: #52657c;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
}

#loja .product .card-variant-swatches {
  gap: 8px;
}

#loja .product .card-swatch {
  width: 21px;
  height: 21px;
  min-width: 21px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #becddd, 0 3px 7px rgba(31, 55, 82, .13);
}

#loja .product .card-swatch:hover {
  transform: translateY(-1px) scale(1.08);
}

#loja .product .card-swatch.selected {
  box-shadow: 0 0 0 2px #087ff2, 0 4px 9px rgba(8, 127, 242, .2);
  transform: scale(1.08);
}

#loja .product > p {
  margin-top: 14px;
  margin-bottom: 7px;
  min-height: 13px;
}

#loja .product h2 {
  display: -webkit-box;
  min-height: 45px;
  margin-top: 0;
  margin-bottom: 10px;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.17;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#loja .product .card-price {
  min-height: 48px;
  margin-bottom: 14px;
}

#loja .product .card-price small {
  display: block;
  margin-bottom: 2px;
  color: #101828;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

#loja .product .card-price strong {
  display: block;
  min-height: 27px;
  color: #075fb9;
  font: 800 24px/1.08 "Outfit", sans-serif;
  letter-spacing: -.025em;
}

#loja .store-result-count {
  margin: 5px 2px 22px;
  color: #52647a;
  font-size: 11px;
  font-weight: 700;
}

.detail-description-secondary {
  margin: -7px 2px 19px;
  color: #66758a;
  font-size: 14px;
  line-height: 1.62;
}

#loja .product > button[data-product] {
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid #c9e2fa;
  background: linear-gradient(135deg, #edf7ff, #e4f2ff);
  color: #0875df;
  text-align: center;
  box-shadow: 0 6px 16px rgba(8, 127, 242, .075);
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

#loja .product > button[data-product]:hover,
#loja .product > button[data-product]:focus-visible {
  background: linear-gradient(135deg, #087ff2, #0568cf);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 127, 242, .22);
  transform: translateY(-1px);
}

#loja .product > button[data-product] span {
  font-size: 17px;
}

/* Comparador sob demanda, acessado somente pelo menu. */
.comparison-open {
  overflow: hidden;
}

.client-comparison-modal[aria-hidden="true"] {
  display: none;
}

.client-comparison-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.client-comparison-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  background: rgba(9, 24, 43, .58);
  backdrop-filter: blur(8px);
}

.client-comparison-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1080px, 100%);
  max-height: min(820px, 92vh);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(203, 220, 237, .9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(3, 24, 48, .28);
}

.client-comparison-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid #e7eef6;
  background: linear-gradient(135deg, #f4f9ff, #fff);
}

.client-comparison-dialog > header small {
  color: #087ff2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.client-comparison-dialog > header h2 {
  margin: 5px 0 4px;
  font: 800 29px/1.05 "Outfit", sans-serif;
  letter-spacing: -.035em;
}

.client-comparison-dialog > header p {
  margin: 0;
  color: #68778c;
  font-size: 13px;
}

.client-comparison-dialog > header > button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: #eaf2fa;
  color: #3a4d63;
  cursor: pointer;
}

.client-comparison-dialog > header svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.client-comparison-picker-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 24px 11px;
}

.client-comparison-picker-tools label {
  width: min(470px, 100%);
  margin: 0;
}

.client-comparison-picker-tools label span {
  display: block;
  margin-bottom: 5px;
  color: #52647a;
  font-size: 10px;
  font-weight: 800;
}

.client-comparison-picker-tools input {
  margin: 0;
  border-radius: 12px;
  background: #fbfdff;
}

.client-comparison-picker-tools > strong {
  color: #0875df;
  font-size: 11px;
  white-space: nowrap;
}

.client-comparison-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 170px;
  padding: 8px 24px 22px;
  overflow-y: auto;
}

.client-comparison-option {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 28px;
  gap: 11px;
  align-items: center;
  min-height: 88px;
  padding: 9px;
  border: 1px solid #dfe8f1;
  border-radius: 15px;
  background: #fff;
  color: #1e2f45;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.client-comparison-option:hover:not(:disabled) {
  border-color: #9bcdf9;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(22, 66, 108, .09);
}

.client-comparison-option.selected {
  border-color: #087ff2;
  background: #f1f8ff;
  box-shadow: inset 0 0 0 1px rgba(8, 127, 242, .08);
}

.client-comparison-option:disabled {
  opacity: .42;
  cursor: default;
}

.client-comparison-option-image {
  display: grid;
  width: 64px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: #edf2f6;
}

.client-comparison-option-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.client-comparison-option small,
.client-comparison-option b,
.client-comparison-option strong {
  display: block;
}

.client-comparison-option small {
  overflow: hidden;
  color: #728095;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-comparison-option b {
  display: -webkit-box;
  margin: 4px 0;
  overflow: hidden;
  font: 700 12px/1.18 "Outfit", sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.client-comparison-option strong {
  color: #0875df;
  font-size: 11px;
}

.client-comparison-option > i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #ccdae8;
  border-radius: 50%;
  color: #087ff2;
  font-style: normal;
  font-weight: 800;
}

.client-comparison-option.selected > i {
  border-color: #087ff2;
  background: #087ff2;
  color: #fff;
}

.client-comparison-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 160px;
  place-content: center;
  color: #718095;
  text-align: center;
}

.client-comparison-empty b,
.client-comparison-empty span {
  display: block;
}

.client-comparison-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 24px;
  border-top: 1px solid #e5edf5;
  background: #fbfdff;
}

.client-comparison-dialog > footer > span {
  color: #78869a;
  font-size: 10px;
}

.client-comparison-dialog > footer .button:disabled {
  opacity: .45;
  cursor: default;
  transform: none;
}

.client-comparison-scroll {
  overflow: auto;
}

.client-comparison-scroll table {
  width: 100%;
  min-width: 730px;
  border-collapse: separate;
  border-spacing: 0;
}

.client-comparison-scroll th,
.client-comparison-scroll td {
  min-width: 185px;
  padding: 13px 16px;
  border-right: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
  color: #42546a;
  font-size: 11px;
  text-align: left;
  vertical-align: top;
}

.client-comparison-scroll tr > :first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  min-width: 145px;
  color: #23364d;
  background: #f7faff;
  font-weight: 800;
}

.client-comparison-scroll thead th {
  background: #fff;
}

.client-comparison-scroll thead th:not(:first-child) b,
.client-comparison-scroll thead th:not(:first-child) small,
.client-comparison-scroll thead th:not(:first-child) a,
.client-comparison-scroll thead th:not(:first-child) button {
  display: block;
}

.client-comparison-scroll thead th b {
  margin-top: 7px;
  color: #16283d;
  font: 700 14px/1.15 "Outfit", sans-serif;
}

.client-comparison-scroll thead th small {
  margin: 3px 0 7px;
  color: #748398;
}

.client-comparison-scroll thead th a,
.client-comparison-scroll thead th button {
  width: auto;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #087ff2;
  font: 700 9px "DM Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.client-comparison-scroll thead th button {
  color: #8995a7;
}

.client-comparison-product-image {
  width: 100%;
  height: 105px;
  object-fit: contain;
  border-radius: 12px;
  background: #edf2f6;
}

@media (max-width: 900px) {
  #loja .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-comparison-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #loja .store-subfilters {
    gap: 7px;
    margin: 14px 0 18px;
    padding: 8px;
    border-radius: 14px;
  }

  #loja .store-subfilters-label {
    display: none;
  }

  #loja .store-subfilters {
    grid-template-columns: minmax(0, 1fr);
  }

  #loja .store-subfilters .filters {
    width: 100%;
    padding: 0 0 7px;
  }

  #loja .store-subfilters-options {
    width: 100%;
  }

  #loja .store-subfilters button {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 9px;
  }

  #loja .product-grid {
    gap: 12px;
  }

  #loja .product {
    padding-bottom: 11px;
    border-radius: 15px;
    box-shadow: 0 6px 17px rgba(19, 52, 85, .055);
  }

  #loja .product:hover,
  #loja .product:focus-visible {
    transform: none;
  }

  #loja .product-image.generic-product {
    height: clamp(158px, 43vw, 188px);
  }

  #loja .product .card-variant-picker {
    min-height: 43px;
    padding: 8px 10px 6px;
  }

  #loja .product .card-selected-color {
    max-width: 78px;
    font-size: 8px;
  }

  #loja .product .card-variant-swatches {
    gap: 6px;
  }

  #loja .product .card-swatch {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-width: 2px;
  }

  #loja .product > p {
    min-height: 11px;
    margin-top: 11px;
    margin-bottom: 6px;
    font-size: 8px;
  }

  #loja .product h2 {
    min-height: 37px;
    margin-bottom: 7px;
    font-size: 15px;
    line-height: 1.18;
  }

  #loja .product .card-price {
    min-height: 40px;
    margin-bottom: 10px;
  }

  #loja .product .card-price small {
    font-size: 8px;
  }

  #loja .product .card-price strong {
    min-height: 22px;
    font-size: 19px;
  }

  #loja .product > button[data-product] {
    min-height: 39px;
    gap: 7px;
    padding: 8px 5px;
    border-color: #bcdcf8;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f8ff, #e5f3ff);
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
  }

  #loja .product > button[data-product] span {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #087ff2;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
  }

  .client-comparison-modal {
    align-items: end;
    padding: 0;
  }

  .client-comparison-dialog {
    width: 100%;
    max-height: 94dvh;
    border-radius: 24px 24px 0 0;
  }

  .client-comparison-dialog > header {
    padding: 20px 18px 16px;
  }

  .client-comparison-dialog > header h2 {
    font-size: 24px;
  }

  .client-comparison-dialog > header p {
    font-size: 11px;
    line-height: 1.45;
  }

  .client-comparison-picker-tools {
    align-items: stretch;
    padding: 13px 16px 8px;
  }

  .client-comparison-picker-tools > strong {
    display: none;
  }

  .client-comparison-products {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 6px 16px 16px;
  }

  .client-comparison-option {
    min-height: 78px;
  }

  .client-comparison-option-image {
    height: 60px;
  }

  .client-comparison-dialog > footer {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }

  .client-comparison-dialog > footer .button {
    width: 100%;
  }
}

@media (max-width: 350px) {
  #loja .product-grid {
    grid-template-columns: 1fr;
  }

  #loja .product-image.generic-product {
    height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #loja .product,
  #loja .product > button[data-product],
  .client-comparison-option {
    transition: none;
  }
}

/* Página do produto: ação discreta no topo e galeria móvel compacta. */
.product-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  margin-bottom: 18px;
}

.product-page-toolbar .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

#product-share-anchor {
  display: flex;
  justify-content: flex-end;
}

#product-share-anchor .client-detail-actions {
  margin: 0;
}

#product-share-anchor .client-detail-actions button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #0875df;
  background: #f5faff;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

#product-share-anchor .client-detail-actions button:hover,
#product-share-anchor .client-detail-actions button:focus-visible {
  border-color: #8bc6fb;
  color: #fff;
  background: #087ff2;
  transform: translateY(-1px);
}

.client-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.product-page .detail-layout {
  margin-top: 0;
}

.product-carousel .carousel-stage,
.product-carousel .detail-art.has-managed-photo,
.product-carousel .carousel-thumbs button,
.gallery-lightbox-stage {
  background: #fff !important;
}

.shop-bar ~ main #loja.page,
.shop-bar ~ main #produto.page {
  padding-top: 16px;
}

.carousel-mobile-controls {
  display: none;
}

@media (max-width: 800px) {
  .shop-bar ~ main #loja.page,
  .shop-bar ~ main #produto.page {
    padding-top: 10px;
  }

  .product-page-toolbar {
    min-height: 36px;
    margin: 0 0 11px;
  }

  .product-page-toolbar .back-link {
    min-height: 32px;
    font-size: 11px;
  }

  #product-share-anchor .client-detail-actions {
    justify-content: flex-end;
    margin: 0;
  }

  #product-share-anchor .client-detail-actions button {
    width: 34px;
    height: 34px;
  }

  .product-carousel .carousel-thumbs {
    display: none;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 9px;
    padding: 2px 11px 7px 1px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-carousel .carousel-stage {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }

  .product-carousel .carousel-thumbs::-webkit-scrollbar {
    display: none;
  }

  .product-carousel .carousel-thumbs button {
    width: 76px;
    height: 68px;
    min-width: 76px;
    flex: 0 0 76px;
    scroll-snap-align: center;
    border-radius: 11px;
  }

  .product-carousel .carousel-thumbs button > span {
    display: none;
  }

  .product-carousel .carousel-thumbs button.selected {
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(8, 124, 255, .13);
  }

  .carousel-mobile-controls:not([hidden]) {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: flex-end;
    min-height: 38px;
    margin-top: 3px;
  }

  .carousel-mobile-controls > button.carousel-gallery-toggle {
    display: inline-flex;
    width: auto;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border: 1px solid #dce6f1;
    border-radius: 999px;
    color: #0875df;
    background: #fff;
    box-shadow: 0 5px 14px rgba(20, 61, 105, .06);
    font: 700 10px "DM Sans", sans-serif;
  }

  .carousel-mobile-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 154px;
  }

  .carousel-mobile-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c4cfdb;
    transition: width .18s ease, background .18s ease;
  }

  .carousel-mobile-dots button.selected {
    width: 17px;
    background: #087ff2;
  }

  .carousel-slide-label {
    bottom: 10px;
    left: 10px;
    padding: 5px 7px;
    font-size: 8px;
  }
}

body.gallery-lightbox-open {
  overflow: hidden;
  touch-action: none;
}

.gallery-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 17, 31, .76);
  backdrop-filter: blur(12px);
}

.gallery-lightbox-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(960px, 100%);
  height: min(820px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}

.gallery-lightbox-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #e7edf4;
}

.gallery-lightbox-panel header > div {
  display: grid;
  gap: 2px;
}

.gallery-lightbox-panel header strong {
  color: #101c31;
  font: 800 14px "DM Sans", sans-serif;
}

.gallery-lightbox-panel header span {
  color: #6b7b90;
  font: 600 10px "DM Sans", sans-serif;
}

.gallery-lightbox-panel [data-lightbox-close] {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid #dce6f1;
  border-radius: 50%;
  color: #29415e;
  background: #f4f8fc;
}

.gallery-lightbox-panel [data-lightbox-close] svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.gallery-lightbox-stage {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: 16px;
  background: #f4f6f8;
  touch-action: pan-y;
}

.gallery-lightbox-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-lightbox-thumbs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 12px 14px 15px;
  border-top: 1px solid #e7edf4;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-lightbox-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-lightbox-thumbs button {
  width: 72px;
  height: 64px;
  min-width: 72px;
  overflow: hidden;
  padding: 3px;
  border: 1px solid #dbe4ed;
  border-radius: 11px;
  background: #f4f6f8;
  scroll-snap-align: center;
}

.gallery-lightbox-thumbs button.selected {
  border: 2px solid #087ff2;
  box-shadow: 0 0 0 2px rgba(8,127,242,.13);
}

.gallery-lightbox-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 800px) {
  .gallery-lightbox {
    padding: 0;
    background: #fff;
    backdrop-filter: none;
  }

  .gallery-lightbox-panel {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .gallery-lightbox-panel header {
    padding: max(14px, env(safe-area-inset-top)) 15px 12px;
  }

  .gallery-lightbox-stage {
    padding: 10px;
  }

  .gallery-lightbox-thumbs {
    padding-bottom: max(15px, env(safe-area-inset-bottom));
  }
}
