/* Tessera Prism — Shop gallery */

.a79-flux-hero {
  margin: 0;
  padding: clamp(2rem, 4.5vw, 3rem) 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse 50% 70% at 92% 15%, rgba(45, 212, 191, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(255, 77, 61, 0.22), transparent 50%),
    var(--a79-void);
  color: #fff;
}

.a79-flux-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--a79-signal);
}

.a79-flux-hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.05;
}

.a79-flux-brand {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.a79-flux-hero h1 strong {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: rgba(243, 245, 247, 0.88);
}

.a79-flux-search-note {
  margin: 0.65rem 0 0;
  color: rgba(243, 245, 247, 0.9);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.55;
}

.a79-flux-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 17rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
  align-items: start;
}

.a79-flux-filter-toggle {
  display: none;
  width: 100%;
  border: 0;
  background: var(--a79-void);
  color: #fff;
  padding: 0.85rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.a79-flux-filters {
  position: sticky;
  top: 5.5rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.a79-flux-filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--a79-line);
}

.a79-flux-filters-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--a79-void);
}

.a79-flux-filters-head a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--a79-coral);
  text-decoration: none !important;
}

.a79-flux-block {
  border-top: 1px solid var(--a79-line);
  padding: 0.7rem 0;
}

.a79-flux-block:first-of-type {
  border-top: 0;
}

.a79-flux-block-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--a79-void);
}

.a79-flux-block-head span {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--a79-chalk);
  position: relative;
}

.a79-flux-block-head span::before,
.a79-flux-block-head span::after {
  content: '';
  position: absolute;
  background: var(--a79-void);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.a79-flux-block-head span::before {
  width: 0.5rem;
  height: 1.5px;
}

.a79-flux-block-head span::after {
  width: 1.5px;
  height: 0.5rem;
}

.a79-flux-block.is-open .a79-flux-block-head span::after {
  display: none;
}

.a79-flux-block-panel {
  padding-top: 0.55rem;
}

.a79-flux-block-panel[hidden] {
  display: none !important;
}

.a79-flux-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.84rem;
  color: #3A4550;
  margin-bottom: 0.45rem;
  cursor: pointer;
  transition: color 0.15s;
}

.a79-flux-check:hover {
  color: var(--a79-void);
}

.a79-flux-check input {
  accent-color: var(--a79-coral);
  margin-top: 0.15rem;
}

.a79-flux-note {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  color: var(--a79-muted);
}

.a79-flux-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.a79-flux-price-row label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--a79-muted);
}

.a79-flux-price-row input {
  border: 1.5px solid var(--a79-line-strong);
  border-radius: var(--a79-radius-sm);
  padding: 0.55rem 0.6rem;
  font: inherit;
  color: var(--a79-void);
  background: #fff;
}

.a79-flux-apply {
  margin-top: 0.55rem;
  width: 100%;
  border: 0;
  background: var(--a79-coral);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.a79-flux-apply:hover {
  background: var(--a79-coral-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--a79-glow);
}

.a79-flux-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--a79-line);
}

.a79-flux-toolbar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--a79-void);
}

.a79-flux-toolbar strong {
  color: var(--a79-coral);
}

.a79-flux-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--a79-void);
}

.a79-flux-sort select {
  border: 1.5px solid var(--a79-void);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  background: #fff;
  color: var(--a79-void);
}

.a79-view-switch {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--a79-chalk);
  padding: 0.25rem;
  border-radius: 999px;
}

.a79-view-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--a79-muted);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.a79-view-btn.is-active,
.a79-view-btn:hover {
  background: var(--a79-void);
  color: #fff;
  transform: scale(1.05);
}

.a79-flux-grid {
  display: grid;
  gap: 1.1rem 0.95rem;
}

.a79-flux-grid[data-cols="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.a79-flux-grid[data-cols="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.a79-flux-grid[data-cols="5"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.a79-flux-tile {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.3s;
}

.a79-flux-tile:hover {
  transform: translateY(-5px);
  box-shadow: none;
  border-color: transparent;
}

.a79-flux-tile.is-sold-out {
  opacity: 0.55;
}

.a79-flux-tile-link {
  color: var(--a79-void);
  text-decoration: none !important;
  display: block;
}

.a79-flux-tile-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--a79-photo-bg);
  overflow: hidden;
  border-radius: var(--a79-radius);
}

.a79-flux-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}

.a79-flux-tile:hover .a79-flux-tile-media img {
  transform: scale(1.06);
}

.a79-flux-sale,
.a79-flux-sold {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: #fff;
  background: var(--a79-coral);
}

.a79-flux-sold {
  background: var(--a79-graphite);
  left: auto;
  right: 0.65rem;
}

.a79-flux-sku {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(14, 17, 22, 0.75);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}

.a79-flux-tile:hover .a79-flux-sku {
  opacity: 1;
  transform: translateY(0);
}

.a79-flux-tile-copy {
  padding: 0.75rem 0.1rem 0.2rem;
}

.a79-flux-tile-copy h3 {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--a79-void);
}

.a79-flux-tile-copy p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--a79-void);
}

.a79-flux-tile-copy s {
  color: var(--a79-muted);
  margin-right: 0.35rem;
  font-weight: 500;
}

.a79-flux-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: transparent;
  border-radius: 0;
  border: 1px dashed var(--a79-mist);
}

.a79-flux-empty p {
  color: var(--a79-muted);
  margin: 0 0 1rem;
}

.a79-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 17, 22, 0.45);
  z-index: 1100;
}

.a79-filter-backdrop[hidden] {
  display: none !important;
}

.a79-shop-pagination,
.a79-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.a79-shop-pagination a,
.a79-pagination a,
.a79-shop-pagination span,
.a79-pagination span {
  min-width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--a79-line-strong);
  color: var(--a79-void);
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.a79-shop-pagination a:hover,
.a79-pagination a:hover,
.a79-shop-pagination .is-active,
.a79-pagination .is-active {
  background: var(--a79-void);
  color: #fff;
  border-color: var(--a79-void);
}

@media (max-width: 980px) {
  .a79-flux-layout {
    grid-template-columns: 1fr;
  }

  .a79-flux-filter-toggle {
    display: block;
  }

  .a79-flux-filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(92vw, 320px);
    z-index: 1110;
    transform: translateX(-105%);
    transition: transform 0.3s;
    overflow: auto;
    border-radius: 0;
    background: #fff;
    color: var(--a79-void);
    box-shadow: 8px 0 32px rgba(14, 17, 22, 0.28);
    padding: 1.25rem;
  }

  body.a79-filters-open .a79-flux-filters {
    transform: translateX(0);
  }

  body.a79-filters-open {
    overflow: hidden;
  }

  .a79-flux-grid[data-cols="4"],
  .a79-flux-grid[data-cols="5"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .a79-flux-grid[data-cols="3"],
  .a79-flux-grid[data-cols="4"],
  .a79-flux-grid[data-cols="5"] {
    grid-template-columns: 1fr 1fr;
  }

  .a79-flux-sort {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a79-flux-tile:hover {
    transform: none;
  }
}
