/* Molly shortcodes ([molly_products], [molly_catalog], [molly_discount_tiers], [molly_howto_button]) */
.molly-cat, .molly-catalog {
  --plum:#302333; --pink:#FF3B93; --cream:#FFF9F6; --white:#fff; --blush:#FCE6EF;
  --line:rgba(48,35,51,.10); --muted:#6b5a6e; --soft:#8a748d;
  --radius:10px; --shadow:0 1px 2px rgba(48,35,51,.04);
  font-family:"Molly Prompt","IBM Plex Sans Thai","Noto Sans Thai",sans-serif;
  color:var(--plum); font-size:calc(1rem * var(--molly-fs,1));
}
body.molly-catalog-page { background: var(--cream, #FFF9F6); }
body.molly-catalog-page #main, body.molly-catalog-page .content, body.molly-catalog-page .wf-container,
body.molly-catalog-page .content-wrap, body.molly-catalog-page .main-content { background: transparent; }
.molly-catalog { max-width: 1180px; margin: 0 auto; }
.molly-catalog-intro { margin: 0 0 16px; }
.molly-catalog-intro h1, .molly-catalog-page .entry-title, .molly-catalog-page h1.entry-title {
  font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: var(--plum, #302333);
}
.molly-filters { display:flex; flex-wrap:wrap; gap:8px; margin: 0 0 18px; }
.molly-chip {
  background:#fff; color:#302333; border:1px solid rgba(48,35,51,.10); border-radius:999px;
  padding:8px 16px; font-family:inherit; font-size:.92rem; font-weight:500; cursor:pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.molly-chip:hover { border-color:#302333; }
.molly-chip.is-on { background:#FCE6EF; border-color:transparent; font-weight:600; }
.molly-chip:focus-visible { outline:2px solid #FF3B93; outline-offset:2px; }
.molly-chip .filter-count { color:#8a748d; font-weight:400; font-size:.84em; margin-left:4px; }

.molly-cat-grid {
  display:grid;
  grid-template-columns:repeat(var(--molly-cols-d, 3), minmax(0,1fr));
  gap:22px;
}
@media (max-width:900px) {
  .molly-cat-grid { grid-template-columns:repeat(var(--molly-cols-m, 2), minmax(0,1fr)); gap:14px; }
}
.molly-cat .molly-card, .molly-catalog .molly-card {
  display:flex; flex-direction:column; background:#fff;
  border:1px solid rgba(48,35,51,.10); border-radius:10px; overflow:hidden;
  text-decoration:none !important; color:#302333 !important;
  box-shadow:0 1px 2px rgba(48,35,51,.04);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.molly-card[hidden] { display:none !important; }
.molly-cat .molly-card:hover, .molly-catalog .molly-card:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(48,35,51,.08);
  border-color:rgba(48,35,51,.28);
}
.molly-card-img { display:block; aspect-ratio:1/1; background:#faf6f8; overflow:hidden; }
.molly-card-img img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.molly-card-body { display:flex; flex-direction:column; gap:6px; padding:14px 16px 16px; flex:1; }
.molly-card-sku { font-size:.75rem; letter-spacing:.04em; color:#8a748d; font-weight:500; }
.molly-card-name { font-size:1.02rem; font-weight:600; line-height:1.35; color:#302333; }
.molly-card-meta { margin-top:auto; padding-top:10px; display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 12px; }
.molly-card-price { font-size:1.02rem; font-weight:600; color:#302333; }
.molly-card-stock {
  font-size:.75rem; font-weight:500; padding:2px 8px; border-radius:999px;
  background:#f3eef2; color:#302333;
}
.molly-card-stock.is-out { background:#eeeaf0; color:#6b5a6e; }
.molly-card-draft { font-size:.7em; color:#9a5b00; }
.molly-cat-empty { color:#6b5a6e; padding:24px 0; }

.molly-cat .molly-tiers { background:var(--white); border-radius:calc(var(--radius) + 4px); padding:22px; }
.molly-cat .molly-tiers h2 { font-size:1.2em; margin:0 0 14px; color:var(--plum); }
.molly-cat .molly-tiers-cols { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:640px) { .molly-cat .molly-tiers-cols { grid-template-columns:1fr; } }
.molly-cat .molly-tiers table { width:100%; border-collapse:collapse; font-size:.9em; margin:0; }
.molly-cat .molly-tiers th { text-align:left; background:var(--blush); padding:8px 10px; font-weight:600; border:0; }
.molly-cat .molly-tiers td { padding:8px 10px; border:0; border-bottom:1px solid rgba(48,35,51,.08); }
.molly-cat .molly-tiers tr.is-free td { color:var(--pink); }
.molly-cat .molly-tiers-note { font-size:.82em; color:var(--muted); margin:12px 0 0; }
