﻿/* Shop –PAF-inspired minimal collection layout */

.page-shop {
  min-height: 100%;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
}

.page-shop .global-nav a,
.page-shop .global-nav button {
  text-shadow: none;
  color: var(--ink);
}

.page-shop .nav-instagram {
  z-index: 2;
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.shop-header__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: var(--mute);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: background 0.25s var(--ease);
}

.shop-chip:hover,
.shop-chip.is-active {
  background: #e4e4e4;
}

.shop-chip__caret {
  font-size: 0.65em;
  opacity: 0.55;
}

.shop-brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.25s var(--ease);
}

.shop-brand:hover {
  opacity: 0.65;
}

.shop-brand__logo {
  /* Match previous header text height */
  height: clamp(0.9rem, 1.45vw, 1.1rem);
  width: auto;
  filter: brightness(0);
}

.shop-header__right {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 2rem;
}

.shop-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem var(--pad) 1.25rem;
}

.shop-sort {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(17, 17, 17, 0.65);
  background: transparent;
  border: none;
  padding: 0.25rem 0;
  cursor: pointer;
}

.shop-main {
  padding: 0.5rem clamp(2rem, 6vw, 5rem) 5.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4rem clamp(2.5rem, 5vw, 5rem);
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  display: block;
  color: inherit;
}

.product-card:hover .product-card__name {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: transparent;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-card__img {
  position: absolute;
  inset: 8%;
  width: auto;
  height: auto;
  max-width: 84%;
  max-height: 84%;
  margin: auto;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.35s var(--ease), transform 0.6s var(--ease);
}

.product-card__img--primary {
  opacity: 1;
  z-index: 1;
}

.product-card__img--secondary {
  opacity: 0;
  z-index: 2;
}

.product-card:hover .product-card__img--primary {
  opacity: 0;
  transform: scale(1.02);
}

.product-card:hover .product-card__img--secondary {
  opacity: 1;
  transform: scale(1.02);
}

.product-card__media img.is-missing {
  display: none;
}

.product-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
  text-align: center;
  color: rgba(17, 17, 17, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  pointer-events: none;
}

.product-card__placeholder code {
  font-family: var(--font);
  font-size: 0.78rem;
  color: rgba(17, 17, 17, 0.55);
  word-break: break-all;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-card__name {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.product-card__price {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: rgba(17, 17, 17, 0.72);
}

.shop-cols {
  position: fixed;
  left: var(--pad);
  bottom: calc(var(--pad) + 2.75rem);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(17, 17, 17, 0.55);
  pointer-events: auto;
}

.shop-cols input[type="range"] {
  width: 72px;
  accent-color: #111;
  cursor: pointer;
}

.shop-filter {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 10rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  display: none;
  z-index: 50;
}

.shop-filter.is-open {
  display: grid;
  gap: 0.15rem;
}

.shop-filter a {
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.shop-filter a:hover,
.shop-filter a.is-active {
  background: var(--mute);
}

.shop-filter-wrap {
  position: relative;
}

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

@media (max-width: 800px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
  }

  .product-card__img {
    inset: 10%;
    max-width: 80%;
    max-height: 80%;
  }

  .shop-header {
    grid-template-columns: 1fr auto;
  }

  .shop-brand {
    justify-self: end;
  }

  .shop-header__right {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

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



