/* ==========================================================================
   PERFECTOO PROTECTOR — PRODUCT GRID  (grid, pagination, empty state)
   Inherits its tokens from .products-page (see products.css).
   ========================================================================== */

/* ---------- 1. Grid ---------- */
.products-page .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

/* ---------- 2. Pagination ---------- */
.products-page .pagination {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(36px, 5vw, 64px); padding-top: 24px;
  border-top: 1px solid var(--line);
}
.products-page .page-status {
  padding: 12px 22px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
}
.products-page .page-link {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 6px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font: 600 .9375rem/1 var(--font-body);
  box-shadow: 0 10px 24px -12px rgba(10,107,120,.7);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.products-page .page-link:hover { background: var(--accent-hover); }
.products-page .page-link:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.products-page .page-link[data-page]::before,
.products-page .page-link[data-page]::after {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.18); font-size: .9rem; line-height: 1;
  transition: transform .3s var(--ease);
}
/* Previous gets a left arrow, Next a right arrow */
.products-page .page-link:first-child:not(:last-child)::before { content: "←"; }
.products-page .page-link:first-child:not(:last-child) { padding-left: 8px; }
.products-page .page-link:last-child:not(:first-child)::after { content: "→"; }
.products-page .page-link:last-child:not(:first-child) { padding-right: 8px; }
.products-page .page-link:last-child:not(:first-child):hover::after { transform: translateX(2px); }
.products-page .page-link:first-child:not(:last-child):hover::before { transform: translateX(-2px); }

/* ---------- 3. Empty state: a switched-off screen ---------- */
.products-page .empty-state {
  display: grid; justify-items: center; gap: 22px;
  padding: clamp(48px, 7vw, 96px) 24px;
  border-radius: var(--r-xl); text-align: center;
  background: var(--bg); border: 1px dashed #BFD3DF;
}
.products-page .empty-state::before {
  content: "PP"; display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(160deg, var(--deep-2), var(--deep)); color: #fff;
  font: 800 1.25rem/1 var(--font-display);
  box-shadow: 0 0 0 10px var(--accent-soft);
}
.products-page .empty-state p {
  margin: 0; max-width: 34ch;
  font: 700 clamp(1.2rem, 2vw, 1.55rem)/1.3 var(--font-display); letter-spacing: -.02em;
  color: var(--ink); text-wrap: balance;
}

/* ---------- 4. Responsive ---------- */
@media (max-width: 620px) {
  .products-page .product-grid { grid-template-columns: 1fr; }
  .products-page .empty-state { border-radius: 26px; }
}

/* ---------- 5. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .products-page .page-link, .products-page .page-link::before, .products-page .page-link::after { transition: none; }
}