/* ============================================================
   ABC Gabig — Store / Products grid
   Builds on book.css custom properties.
   ============================================================ */

/* ---------- Store header ---------- */
.store-hero {
  background: transparent;
  padding: 130px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(77, 208, 225, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(213, 190, 118, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.store-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.store-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.store-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
  color: var(--cream-light);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.store-hero__subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 48ch;
}

/* ---------- Products section ---------- */
.store-products {
  width: 100%;
  max-width: none;
  margin: 0;
  background: transparent;
  padding: 64px 24px 88px;
  position: relative;
  overflow: hidden;
  --band-fill: var(--band-fill-light);
}

.store-products::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--red), var(--gold), var(--red)) top / 100% 4px no-repeat,
    linear-gradient(
      to right,
      transparent 0%,
      rgba(255, 255, 255, var(--band-fill)) var(--band-edge-fade),
      rgba(255, 255, 255, var(--band-fill)) calc(100% - var(--band-edge-fade)),
      transparent 100%
    );
}

.store-products::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: var(--band-edge-fade);
  right: var(--band-edge-fade);
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--band-border) 25%,
    var(--band-border) 75%,
    transparent 100%
  );
}

.store-products > * {
  position: relative;
  z-index: 1;
}

/* Responsive grid: large on desktop (auto-fills columns), 1–2 columns on mobile.
   auto-fill + capped column width keeps cards a sensible size and centers them
   when there are only a few products, while still scaling to a full grid. */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
  justify-content: center;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ---------- Product card ---------- */
.store-card {
  display: flex;
  flex-direction: column;
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  will-change: transform;
}

.store-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(213, 190, 118, 0.25);
}

.store-card__media {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  padding: 28px 28px 20px;
  position: relative;
}

.store-card__media img {
  width: auto;
  max-width: 100%;
  max-height: 240px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 3px 3px 0 rgba(213, 190, 118, 0.15);
  transition: transform var(--transition);
}

.store-card:hover .store-card__media img {
  transform: translateY(-4px);
}

/* Attachments and other store-only items: no product page, add from card only. */
.store-card--add-only:hover {
  transform: translateY(-4px) scale(1.01);
}

.store-card__media--static {
  cursor: default;
}

.store-card--add-only .store-card__media--static img {
  pointer-events: none;
}

.store-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 24px;
  flex: 1;
}

.store-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--cream-light);
}

.store-card__title .product-name__arm {
  font-family: var(--font-armenian-bold);
}

/* Fixed-Armenian product title uses the standard system Armenian sans-serif,
   not the decorative Armenian bold display font. */
.store-card__title--arm {
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

.store-card__subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.store-card__desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 2px;
}

.store-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.store-card__actions .btn {
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.95rem;
}

/* Add-to-cart button + cart-nav animations and the "View Cart" toast are shared
   across the store and book landing pages — see book-cart.css. */

/* ---------- Continue browsing footer-cta ---------- */
.store-back {
  background: transparent;
  text-align: center;
  padding: 8px 24px 56px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .store-hero {
    padding: 110px 20px 44px;
  }

  .store-products {
    padding: 48px 18px 64px;
  }

  .store-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  /* Disable lift-scale on touch where hover is sticky */
  .store-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
}
