/* ========================================
   PRODUCTS PAGE
   Basket-centered layout with floating product icons
   Matches hub page pattern (full viewport, paper texture)
   ======================================== */

.products-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-8) var(--space-8) var(--space-12);
  background: transparent;
  position: relative;
  z-index: 3;
}

/* ---- Back button (matches about page) ---- */
.products-back {
  position: fixed;
  top: var(--space-6);
  left: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-muted);
  z-index: 10;
  transition: color var(--duration-fast) var(--ease-out);
}

.products-back:hover {
  color: var(--accent);
}

.products-back svg {
  flex-shrink: 0;
}

/* ---- Page heading ---- */
.products-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--green-dark);
  text-align: center;
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.products-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-faint);
  text-align: center;
  line-height: 1.5;
  margin-bottom: var(--space-12);
  opacity: 0.5;
  letter-spacing: 0.02em;
}

/* ---- Basket area ---- */
/* The basket sits at the bottom as a stage.
   Product icons float in the space above it (positioned by products-float.js). */
.products-basket-area {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 60vh;
}

.products-basket-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

/* ---- Product icons (size + style; positioning handled by products-float.js) ---- */
.product-icon {
  display: block;
  cursor: grab;
  z-index: 10;
}

.product-icon:active {
  cursor: grabbing;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .products-page {
    padding: var(--space-16) var(--space-4) var(--space-16);
  }

  .products-title {
    font-size: var(--text-2xl);
  }

  .products-subtitle {
    margin-bottom: var(--space-8);
  }

  .products-basket-img {
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .products-basket-img {
    max-width: 280px;
  }
}
