/* ============================================================
   PRODUCTS PAGE — scoped styles
   Built on the site's existing CSS variables (main.css :root),
   so it matches the navy + gold theme and adapts to dark mode.
   ============================================================ */

/* ---------- Grid ---------- */
.product-grid{
  display:grid;
  gap:24px;
  grid-template-columns:repeat(1,1fr);
}
@media(min-width:640px){ .product-grid{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:1024px){ .product-grid{ grid-template-columns:repeat(3,1fr); } }

/* ---------- Card ---------- */
.product-card{
  position:relative;
  display:flex;
  flex-direction:column;
  background:var(--bg-surface);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.product-card::before{
  content:'';
  position:absolute; left:0; top:0; height:3px; width:100%; z-index:3;
  background:linear-gradient(90deg,var(--gold),var(--gold-soft));
  transform:scaleX(0); transform-origin:left;
  transition:transform .4s var(--ease);
}

/* ---------- Image / media ---------- */
.product-media{
  position:relative; aspect-ratio:4/3; overflow:hidden;
  background:var(--bg-alt);
}
.product-media img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .5s var(--ease);
}
.product-card:hover .product-media img{ transform:scale(1.05); }
.product-media-ph{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:var(--navy); opacity:.4;
}
[data-theme="dark"] .product-media-ph{ color:var(--gold); }
.product-media-ph svg{ width:52px; height:52px; }

/* ---------- Body (text area) ---------- */
.product-body{ display:flex; flex-direction:column; flex:1; padding:20px 22px 22px; }
.product-body .product-cat{ display:block; margin-bottom:10px; }
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 44px -22px rgba(6,20,39,.45);
  border-color:transparent;
}
.product-card:hover::before{ transform:scaleX(1); }

/* ---------- Top row: category + status ---------- */
.product-top{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-bottom:18px;
}
.product-cat{
  font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--walnut);
}
[data-theme="dark"] .product-cat{ color:var(--gold-soft); }

.product-status{
  display:inline-flex; align-items:center; gap:6px;
  font-size:11px; font-weight:600; letter-spacing:.04em;
  padding:5px 11px; border-radius:999px; white-space:nowrap;
}
.product-status .dot{ width:7px; height:7px; border-radius:50%; }
.product-status.is-available{ background:rgba(46,139,87,.12); color:#2E8B57; }
.product-status.is-available .dot{ background:#2E8B57; }
.product-status.is-unavailable{ background:rgba(150,150,150,.16); color:var(--text-muted); }
.product-status.is-unavailable .dot{ background:var(--text-muted); }
/* When shown over the product image, float it and give it a solid backdrop. */
.product-media .product-status{
  position:absolute; top:12px; right:12px; z-index:2;
  background:var(--bg-surface); box-shadow:0 4px 12px rgba(6,20,39,.18);
}

/* ---------- Decorative icon ---------- */
.product-icon{
  width:56px; height:56px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-alt);
  color:var(--navy);
  margin-bottom:18px;
  transition:background .35s var(--ease), color .35s var(--ease);
}
[data-theme="dark"] .product-icon{ background:var(--bg-page); color:var(--gold); }
.product-card:hover .product-icon{ background:var(--gold); color:var(--navy-deep); }
.product-icon svg{ width:28px; height:28px; }

/* ---------- Text ---------- */
.product-name{
  font-family:var(--font-display);
  font-size:1.2rem; line-height:1.3; color:var(--text-main);
  margin-bottom:10px;
}
.product-desc{
  font-size:.9rem; line-height:1.6; color:var(--text-muted);
  margin-bottom:18px; flex:1;
}

/* ---------- Price ---------- */
.product-foot{
  display:flex; align-items:baseline; gap:6px;
  padding-top:16px; margin-bottom:18px;
  border-top:1px solid var(--border-soft);
}
.product-price{
  font-family:var(--font-display);
  font-weight:700; font-size:1.5rem; color:var(--navy);
}
[data-theme="dark"] .product-price{ color:var(--text-inverse); }
.product-price .cur{ font-size:1rem; color:var(--gold); margin-right:2px; }

/* ---------- Actions ---------- */
.product-actions{ display:flex; gap:10px; }
.btn-wa{
  flex:1;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 16px; border-radius:8px;
  background:#25D366; color:#fff;
  font-size:13px; font-weight:600; letter-spacing:.03em;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.btn-wa:hover{ filter:brightness(1.05); transform:translateY(-2px); box-shadow:0 10px 22px -10px rgba(37,211,102,.7); }
.btn-wa svg{ width:18px; height:18px; }

/* Add-to-Cart style kept ready for when you enable it later */
.btn-cart{
  flex:1; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 16px; border-radius:8px;
  background:var(--navy); color:var(--text-inverse); border:none;
  font-size:13px; font-weight:600; letter-spacing:.03em;
  transition:transform .25s var(--ease), background .25s var(--ease);
}
.btn-cart:hover{ transform:translateY(-2px); }
[data-theme="dark"] .btn-cart{ background:var(--gold); color:var(--navy-deep); }
.btn-cart svg{ width:18px; height:18px; }

/* ---------- Pagination ---------- */
.pagination{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:8px; margin-top:56px;
}
.page-link{
  min-width:42px; height:42px; padding:0 12px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border-soft); border-radius:8px;
  font-size:14px; font-weight:600; color:var(--text-muted);
  transition:all .25s var(--ease);
}
.page-link:hover{ border-color:var(--navy); color:var(--navy); }
[data-theme="dark"] .page-link:hover{ border-color:var(--gold); color:var(--gold); }
.page-link.active{
  background:var(--navy); color:var(--text-inverse); border-color:var(--navy); cursor:default;
}
[data-theme="dark"] .page-link.active{ background:var(--gold); color:var(--navy-deep); border-color:var(--gold); }
.page-link.disabled{ opacity:.4; pointer-events:none; }

/* ---------- Empty state ---------- */
.product-empty{
  text-align:center; max-width:460px; margin:20px auto 0;
  padding:48px 24px;
}
.product-empty svg{ width:54px; height:54px; color:var(--gold); margin-bottom:18px; }
.product-empty h3{ font-family:var(--font-display); font-size:1.4rem; margin-bottom:10px; color:var(--text-main); }
.product-empty p{ color:var(--text-muted); line-height:1.6; }
