/* home.css — hero header + category chips + product grid, matches HOME
   section of the approved design. */

.home-hero {
  position: relative; flex: none; padding: 14px 18px 18px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, #FF7A2F 52%, #FFA766 100%);
}
.home-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .16;
  background: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 13px); pointer-events: none;
}
.home-hero-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-hero-lockup { display: flex; align-items: center; gap: 10px; }
.home-hero-actions { display: flex; align-items: center; gap: 10px; }
/* brand-tinted (near-white bg, brand-d icon) so it reads as a distinct
   "manage" badge, not another translucent icon button like back/close. */
.home-admin-btn {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .94); border: 1px solid rgba(255, 255, 255, .5); color: var(--brand-d);
  box-shadow: var(--sh1);
}
.home-title { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-hero); letter-spacing: -.4px; }
.home-sub { font-size: var(--fs-label); opacity: .92; margin-top: 3px; }
.cat-chips { position: relative; display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; padding-bottom: 2px; }

.home-scroll { flex: 1; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.p-card { overflow: hidden; display: flex; flex-direction: column; animation: riseIn 220ms ease both; }
.p-card-media { display: block; position: relative; }
.p-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--neutral-50); }
.p-card-stock {
  position: absolute; top: 8px; left: 8px; padding: 4px 9px; border-radius: 999px; font-size: var(--fs-micro); font-weight: 600;
  backdrop-filter: blur(4px);
}
.p-card-stock.ok { background: rgba(255, 255, 255, .92); color: var(--ok-fg); }
.p-card-stock.out { background: rgba(26, 22, 20, .78); color: #fff; }
.p-card-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.p-card-name { font-weight: 600; font-size: var(--fs-body-lg); line-height: 1.3; text-wrap: pretty; }
.p-card-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.p-card-price .now { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-heading-sm); color: var(--brand-d); }
.p-card-price .old { font-size: var(--fs-caption); color: var(--muted); text-decoration: line-through; }
.p-card-tier { font-size: var(--fs-pill); color: var(--muted); line-height: var(--lh-snug); min-height: 15px; }
.p-card-cta { margin-top: auto; padding-top: 4px; }
.p-card-cta .btn-primary { min-height: 44px; font-size: var(--fs-body); }

.skel { background: linear-gradient(90deg, #F1ECE6 25%, #F8F5F1 50%, #F1ECE6 75%); background-size: 320px 100%; animation: shimmer 1.2s linear infinite; }
.skel-card { overflow: hidden; }
.skel-media { width: 100%; aspect-ratio: 16 / 9; }
.skel-body { padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.skel-line { height: 12px; border-radius: 6px; }
.skel-line.w1 { width: 85%; }
.skel-line.w2 { width: 55%; background: var(--neutral-50); animation: none; }
.skel-btn { height: 44px; border-radius: var(--r1); background: #F4F0EB; }
