/* Shop Online: the full catalog plus buttons for every store topic. */

/* ---- Search inside the product listing ---- */
.catalog-frame > .shopping-tools.catalog-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.catalog-search__label {
  color: #40d9ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-frame .catalog-search .shopping-search {
  flex: 1 1 360px;
  width: auto;
  max-width: 680px;
}

/* ---- Filters row: room for the Show (rows per page) control ---- */
@media (min-width: 761px) {
  .catalog-frame .product-controls {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 0.9fr) auto auto;
  }
}

/* ---- Page heading (the hero picture was removed from this page) ---- */
.shop-topics__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 0 12px;
}

.shop-topics__head h1 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.1;
}

.shop-topics__head p {
  margin: 0;
  color: #a9cbd9;
  font-size: 14px;
}

.shop-topics {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(116, 205, 235, 0.2);
  border-radius: 8px;
  background: radial-gradient(circle at 100% 0%, rgba(64, 217, 255, 0.08), transparent 34%), rgba(7, 26, 39, 0.86);
  box-shadow: -10px 14px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* One row of ten on desktop: picture on top, label below. */
.shop-topics__departments {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.shop-topic {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
  padding: 5px 5px 9px;
  border: 1px solid rgba(116, 205, 235, 0.22);
  border-radius: 8px;
  color: #e2f7fc;
  background: rgba(2, 19, 32, 0.72);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.shop-topic img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  object-fit: cover;
  object-position: var(--focus, center);
  background: #052137;
}

.shop-topic span {
  min-width: 0;
  padding: 0 2px;
}

.shop-topic:hover,
.shop-topic:focus-visible {
  border-color: rgba(64, 217, 255, 0.6);
  background: rgba(18, 83, 108, 0.6);
  outline: none;
  text-decoration: none;
}

.shop-topic.is-active {
  border-color: #40d9ff;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 167, 183, 0.32), rgba(42, 111, 214, 0.28));
  box-shadow: 0 0 0 1px rgba(64, 217, 255, 0.35);
}

.shop-topics__more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(116, 205, 235, 0.14);
}

.shop-topics .shop-topic-button {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 0;
  min-height: 38px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(116, 205, 235, 0.3);
  border-radius: 999px;
  color: #dff8ff;
  background: rgba(5, 28, 45, 0.78);
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.shop-topics .shop-topic-button span {
  position: static;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  font-size: 15px;
}

.shop-topics .cart-button.shop-topic-button span {
  padding: 0 5px;
  color: #02111f;
  background: #40d9ff;
  font-size: 10px;
  font-weight: 950;
}

.shop-topics .shop-topic-button strong {
  font: inherit;
}

.shop-topics .shop-topic-button:hover,
.shop-topics .shop-topic-button:focus-visible {
  border-color: rgba(64, 217, 255, 0.6);
  background: rgba(18, 83, 108, 0.82);
  outline: none;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .shop-topics__departments {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shop-topics {
    padding: 12px;
  }

  .shop-topics__departments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .shop-topic {
    font-size: 12px;
  }

  /* Phones: "All products" spans the row as a slim bar above a 3 x 3 grid. */
  .shop-topics__departments > .shop-topic[data-cat=""] {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    text-align: left;
  }

  .shop-topics__departments > .shop-topic[data-cat=""] img {
    flex: 0 0 64px;
    width: 64px;
  }

  .shop-topics .shop-topic-button {
    flex: 1 1 calc(33% - 8px);
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-topic {
    transition: none;
  }
}
