/* =============================================
   MYA HAYES — STORE
   store.css
   ============================================= */

.store-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 5rem) 3rem 8rem;
}

/* ── Header ── */
.store-header {
  margin-bottom: 3rem;
}

.store-header .section-label {
  margin-bottom: 0.6rem;
}

.store-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.store-sub {
  font-size: 0.875rem;
  color: var(--warm-gray);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Filters ── */
.store-filters {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--warm-gray);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.filter-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
}

[data-theme="dark"] .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── Grid — 3 columns ── */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
  margin-bottom: 5rem;
}

/* ── Card ── */
.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ── Artwork container — aspect ratio matches diptych natural proportions ── */
.product-artwork {
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.product-card:hover .product-artwork {
  transform: translateY(-4px);
}

/* Shadow sits on the image/diptych, not the container */
.product-artwork--diptych,
.product-artwork--fixed img {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.35s cubic-bezier(0.4,0,0.2,1);
  border-radius: 2px;
}

.product-card:hover .product-artwork--diptych,
.product-card:hover .product-artwork--fixed img {
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Diptych — fills the container naturally (it's already 3:2) */
.product-artwork--diptych {
  display: flex;
  gap: 3px;
  width: 100%;
}

.product-artwork--diptych {
  line-height: 0;
  font-size: 0;
}

.product-artwork--diptych img {
  width: 50%;
  height: auto;
  display: block;
  box-shadow: none;
  border-radius: 0;
}

/* Single image — scales to fit the same height, full image visible, no crop */
.product-artwork--fixed img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
}

/* Empty placeholder — match diptych height by using same aspect ratio */
.product-artwork--empty {
  aspect-ratio: 5/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  box-shadow: none;
}

.product-artwork--empty span {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  opacity: 0.45;
}

.product-card--empty:hover .product-artwork {
  box-shadow: none;
  transform: none;
  opacity: 0.8;
}

/* ── Label beneath artwork ── */
.product-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0 0;
}

.product-label-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.3;
}

.product-medium {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--warm-gray);
  letter-spacing: 0.02em;
}

.product-type-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-status {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--warm-gray);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.product-status.sold {
  color: var(--accent);
}

/* ── Dark mode shadows ── */
[data-theme="dark"] .product-artwork {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .product-card:hover .product-artwork {
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.6), 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* ── Info strip ── */
.store-info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.store-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.info-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.info-text {
  font-size: 0.82rem;
  color: var(--warm-gray);
  line-height: 1.65;
}

.info-text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}

.info-text a:hover {
  text-decoration-color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .store-info-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .store-main {
    padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem;
  }
  .store-grid {
    grid-template-columns: 1fr;
  }
  .store-info-strip {
    grid-template-columns: 1fr;
  }
}

/* ── Subpage footer ── */
.subpage-footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--warm-gray);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.subpage-footer-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.3rem;
}

.subpage-footer-links a {
  color: var(--warm-gray);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.subpage-footer-links a:hover,
.subpage-footer-links a.active {
  color: var(--accent);
}
