/* ── Store header ──────────────────────────────────────────────────────────── */
.store-header {
  padding: var(--space-lg) 0 var(--space-md);
}

.store-title {
  font-size: clamp(2rem, 7vw, 3.8rem);
  font-weight: var(--weight-light);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.store-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.7;
}

/* ── Store section ─────────────────────────────────────────────────────────── */
.store-section {
  padding: var(--space-lg) 0;
}

/* ── Product grid ──────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* ── Product card ──────────────────────────────────────────────────────────── */
.product-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}

.product-card:hover {
  background: var(--surface);
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #e8e4df;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
}

.product-img--custom {
  background-color: #e8e4df;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-img--custom::after {
  content: '— custom —';
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  position: absolute;
}

.product-info {
  padding: var(--space-sm) var(--space-sm) var(--space-xs);
  flex: 1;
}

.product-info h3 {
  font-size: 0.85rem;
  font-weight: var(--weight-mid);
  color: var(--text);
  margin-bottom: 4px;
}

.product-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-buy {
  display: block;
  padding: var(--space-sm);
  font-size: 0.75rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1px solid var(--line);
  transition: background 0.15s;
}

.product-buy:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Sold out state ────────────────────────────────────────────────────────── */
.product-card--sold-out {
  pointer-events: none;
}

.product-card--sold-out .product-img {
  background-image: none;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img__sold-out-label {
  font-size: 0.7rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
}

.product-card--sold-out .product-info h3 {
  color: var(--text-muted);
}

.product-card--sold-out .product-buy {
  color: var(--text-muted);
  pointer-events: none;
}

.product-card--sold-out .product-buy:hover {
  background: none;
  color: var(--text-muted);
}

/* ── Drop banner ───────────────────────────────────────────────────────────── */
.drop-banner {
  padding: var(--space-md) 0;
}

.drop-banner-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

@media (min-width: 600px) {
  .drop-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.drop-banner p {
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 52ch;
}

.drop-banner-btn {
  flex-shrink: 0;
  background: #fff;
  color: var(--accent);
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.drop-banner-btn:hover {
  opacity: 0.85;
}

/* ── Email signup modal ────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: #fff;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 8px;
  z-index: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: var(--space-md);
}

/* ── Nav active state ──────────────────────────────────────────────────────── */
.nav-active {
  color: var(--accent) !important;
}

/* ── Desktop ───────────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
