/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  background: var(--hero-glow), linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: #fff; padding: 60px 24px;
}
.page-hero .container { max-width: 1300px; margin: 0 auto; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; display:flex; align-items:center; gap:8px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color:#fff; }
.page-hero h1 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; margin-bottom: 8px; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1rem; }

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 18px; border: 1.5px solid var(--border);
  border-radius: 50px; font-weight: 600; font-size: 0.85rem;
  cursor: pointer; background: #fff; color: var(--text);
  transition: var(--transition);
}
.filter-tab .fc {
  background: var(--light); color: var(--brand);
  border-radius: 20px; padding: 1px 7px; font-size: 0.75rem; font-weight: 700;
}
.filter-tab:hover { border-color: var(--brand); color: var(--brand); }
.filter-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter-tab.active .fc { background: rgba(255,255,255,0.2); color: #fff; }
/* phones: one swipeable row of category chips instead of a tall stack */
@media (max-width: 600px) {
  .filter-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .filter-tabs { min-width: 0; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex: none; white-space: nowrap; scroll-snap-align: start; }
}

.sort-wrap { display: flex; align-items: center; gap: 8px; }
.sort-wrap label { color: var(--gray); }
.sort-wrap select {
  padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  background: #fff; cursor: pointer; outline: none; transition: var(--transition);
}
.sort-wrap select:focus { border-color: var(--brand); }

.result-count { font-size: 0.88rem; color: var(--gray); margin-bottom: 24px; }
.result-count strong { color: var(--brand); }

/* ── PRODUCT PAGE (products/show.blade.php) ── */
.pd-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--topbar-height, 104px) + 20px); }
.pd-main-img {
  position: relative; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden;
  background: #F5F4F3; display: flex; align-items: center; justify-content: center;
}
.pd-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 28px; mix-blend-mode: multiply; }
.pd-main-img .product-badge { top: 18px; left: 18px; }
.pd-placeholder { font-size: 7rem; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumb {
  width: 82px; height: 82px; padding: 6px; border-radius: 14px; cursor: pointer;
  background: #F5F4F3; border: 2px solid transparent; transition: border-color .2s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--brand); }

.pd-info h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.25; margin: 6px 0 14px; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 10px; }
.pd-price .new { font-size: 2rem; font-weight: 800; color: var(--brand); }
.pd-price .old { font-size: 1.05rem; color: var(--gray); text-decoration: line-through; }
.pd-save { padding: 4px 10px; border-radius: 50px; background: #e8f8f1; color: #0f8a63; font-size: .78rem; font-weight: 700; }
.pd-stock { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; margin-bottom: 16px; }
.pd-stock.in { color: #0f8a63; }
.pd-stock.out { color: var(--accent2, #ff3b5c); }
.pd-desc { color: #55565A; line-height: 1.8; margin-bottom: 24px; }

.pd-buy { padding: 20px; border-radius: 18px; background: #fff; border: 1.5px solid var(--border); box-shadow: var(--card-shadow); }
.pd-qty-label { display: block; font-size: .8rem; font-weight: 700; color: var(--gray); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .8px; }
.pd-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.pd-qty button { width: 44px; height: 46px; border: none; background: #f5f6fb; color: var(--brand); cursor: pointer; font-size: .85rem; }
.pd-qty button:hover { background: var(--light); }
.pd-qty input {
  width: 60px; height: 46px; border: none; text-align: center; font-weight: 700; font-size: 1rem;
  -moz-appearance: textfield; outline: none;
}
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-actions .btn { justify-content: center; padding: 15px 18px; font-size: .95rem; }
.pd-btn-cart { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.pd-btn-cart:hover { background: var(--light); }
.pd-btn-buy { background: var(--brand); border-color: var(--brand); box-shadow: 0 10px 24px rgba(255, 99, 0, .35); }
.pd-btn-buy:hover { background: #d9590f; }
.pd-actions .btn:disabled { opacity: .5; cursor: not-allowed; }

.pd-secondary { margin: 14px 0 22px; }
.pd-link-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; font: inherit; font-weight: 600; color: var(--accent2, #ff3b5c); }
.pd-perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-perks li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: #f7f8fc; font-size: .84rem; font-weight: 500; color: #33385a;
}
.pd-perks i { color: var(--brand); width: 18px; text-align: center; }
.pd-related { margin-top: 64px; }
.pd-related h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 22px; }

@media (max-width: 900px) {
  .pd-layout { grid-template-columns: 1fr; gap: 28px; }
  .pd-gallery { position: static; }
}
@media (max-width: 480px) {
  .pd-actions, .pd-perks { grid-template-columns: 1fr; }
  .pd-thumb { width: 68px; height: 68px; }
}