/* Kawaii Charms Co, catalog grid.
   Shared by shop.html and the category pages (coasters.html, magnets.html). */
/* ---- Title + filter row ---- */
.shop-top { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-6) 0 var(--s-4); border-bottom: 1.5px solid var(--ink-100); }
.shop-h { font-family: var(--serif); font-weight: 800; font-size: clamp(36px, 4.5vw, 52px); line-height: 1.02; letter-spacing: -0.02em; margin: 6px 0 0; }
.shop-h em { font-style: normal; color: var(--terracotta-700); }
.fbar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.fchips { display: flex; gap: 8px; min-width: 0; }
.fchips button { border: 1.5px solid var(--ink-100); background: var(--paper); border-radius: var(--r-pill); padding: 10px 20px; font-family: var(--sans); font-weight: 800; font-size: 13px; color: var(--ink-700); cursor: pointer; display: flex; gap: 8px; align-items: center; transition: all .15s; }
.fchips button:hover { border-color: var(--terracotta-500); }
.fchips button.on { background: var(--terracotta-600); border-color: var(--terracotta-600); color: var(--paper); }
.fchips button .n { font-size: 11px; opacity: .7; font-weight: 700; }
.fsort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-500); font-weight: 600; }
.fsort select { border: 1.5px solid var(--ink-100); background: var(--paper); border-radius: var(--r-pill); padding: 9px 16px; font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--ink-900); cursor: pointer; }

/* ---- Groups ---- */
.grp { margin-top: var(--s-6); scroll-margin-top: 90px; }
.grp-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.grp-h h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.01em; margin: 0; }
.grp-h h2 em { font-style: normal; color: var(--terracotta-700); }
.grp-h .cnt { font-family: var(--sans); font-weight: 800; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3); }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 880px)  { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .pgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Product card (small) ---- */
.pcard { cursor: pointer; text-decoration: none; color: inherit; transition: transform .18s; display: block; }
.pcard:hover { transform: translateY(-3px); }
.pcard:focus-visible { outline: 2px solid var(--terracotta-600); outline-offset: 4px; border-radius: var(--r-md); }
.pcard .art { border-radius: var(--r-md); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1/1; }
.pcard .art.fridge { background: linear-gradient(180deg, #F0E4D2, #E0CDB6); }
.pcard .art.fridge::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 4px, rgba(255,255,255,.22) 4px 5px); opacity: .4; }
.pcard .art.table { background: linear-gradient(135deg, #C9A57B, #A07748); }
.pcard .art.photo { background: #F2EAD9; }
.pcard .art .full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .mag { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-2deg); width: 56%; border-radius: 4px; box-shadow: var(--shadow-fridge); overflow: hidden; }
.pcard .mag .ph { aspect-ratio: 1/1; background-size: cover; background-position: center; }
.pcard .mag .cp { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 10px; color: var(--paper); padding: 3px 5px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); }
.pcard .badge { position: absolute; top: 10px; left: 10px; background: var(--terracotta-600); color: var(--paper); font-family: var(--sans); font-weight: 800; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill); z-index: 3; }
.pcard .badge.new { background: oklch(0.78 0.075 305); }
.pcard .info { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 11px; padding: 0 3px; }
.pcard .nm { font-family: var(--serif); font-weight: 800; font-size: 15px; margin: 0; }
.pcard .pr { font-family: var(--serif); font-weight: 800; font-size: 14px; white-space: nowrap; }
.pcard .mt { font-size: 11.5px; line-height: 1.35; color: var(--ink-500); padding: 0 3px; margin-top: 2px; }
/* ---- Empty state ---- */
.shop-empty { padding: var(--s-7) 0; text-align: center; color: var(--ink-500); }

/* ---- CTA band ---- */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); background: var(--rose-200); border-radius: var(--r-xl); padding: var(--s-5) var(--s-6); margin: var(--s-7) 0; flex-wrap: wrap; }
.cta-band h3 { font-family: var(--serif); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); margin: 4px 0 0; }

/* ---- Tablet and phone ---- */
@media (max-width: 700px) {
  .shop-top { align-items: flex-start; padding-top: var(--s-5); }
  /* min-width:0 lets the chip strip shrink so its own scrollbar takes over,
     instead of forcing the whole page wider than the viewport. */
  .fbar { width: 100%; justify-content: space-between; gap: var(--s-2); min-width: 0; }
  .fchips { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .fchips::-webkit-scrollbar { display: none; }
  .fchips button { flex: 0 0 auto; padding: 9px 15px; }
  .fsort { flex: 0 0 auto; }
}
@media (max-width: 600px) {
  .cta-band { padding: var(--s-4); text-align: center; justify-content: center; }
  .cta-band .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .pgrid { gap: var(--s-2); }
  .pcard .nm { font-size: 14px; }
}
