@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #FFF8FB;
  --pink: #FFB4D8;
  --lavender: #C7B8FF;
  --lavender-deep: #A48CFF;
  --mint: #AEEFDD;
  --mint-deep: #6FDCB8;
  --coral: #FF6F91;
  --coral-deep: #F2436A;
  --ink: #3A2A38;
  --ink-soft: #8A7887;
  --card: #FFFFFF;
  --line: #F3DCEB;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(180deg, #F3E9FB 0%, #FDF3FA 40%, #FFF8FB 100%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  min-height: 100vh;
}

h1, h2, h3 { font-family: 'Baloo 2', sans-serif; margin: 0; color: var(--ink); }

.brand { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 26px; }
.brand .dot { color: var(--coral); }

.eyebrow { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; max-width: 960px; margin: 0 auto;
}

.cart-icon-btn { position: relative; font-size: 22px; cursor: pointer; padding: 4px; }
.cart-badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--coral-deep); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 1;
  min-width: 17px; height: 17px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 24px 60px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 18px; }
.chip {
  flex-shrink: 0; padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line); cursor: pointer;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.toys.on { background: var(--coral-deep); border-color: var(--coral-deep); }

.trust-strip {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 24px; cursor: pointer;
}
.trust-strip img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--mint); }
.trust-strip .tt { font-size: 13px; font-weight: 700; }
.trust-strip .tt span { display: block; font-size: 11.5px; color: var(--ink-soft); font-weight: 600; margin-top: 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: 0 4px 14px rgba(122,73,110,0.1); cursor: pointer; }
.thumb { aspect-ratio: 3/4; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(160deg, var(--pink) 0%, var(--lavender) 100%); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.play { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.85); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.urgency-tag {
  position: absolute; top: 8px; left: 8px; background: rgba(58,42,56,0.85); color: #fff;
  font-family: 'Space Mono', monospace; font-size: 10px; padding: 5px 9px; border-radius: 999px; display: flex; align-items: center; gap: 5px;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,111,145,0.55);} 70%{box-shadow:0 0 0 8px rgba(255,111,145,0);} 100%{box-shadow:0 0 0 0 rgba(255,111,145,0);} }
.lock18 { position: absolute; inset: 0; background: rgba(58,42,56,0.55); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; pointer-events: none; }
.card-info { padding: 12px 14px 14px; }
.card-title { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.card-price { font-size: 14px; font-weight: 800; color: var(--coral-deep); }
.old { font-weight: 500; color: var(--ink-soft); text-decoration: line-through; font-size: 12px; margin-left: 6px; }

.btn {
  border: none; border-radius: 14px; padding: 14px 20px; font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.btn-primary { background: var(--coral-deep); color: #fff; box-shadow: 0 8px 18px -6px rgba(242,67,106,0.55); }
.btn-secondary { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost { background: transparent; color: var(--ink-soft); font-weight: 600; font-size: 13px; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(58,42,56,0.55); display: none;
  align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal { background: var(--card); border-radius: 24px; padding: 28px 26px; max-width: 420px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal.wide { max-width: 480px; }
.modal .emoji { font-size: 34px; margin-bottom: 10px; }
.modal h3 { font-size: 19px; margin-bottom: 8px; }
.modal p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; }
.modal-row { display: flex; gap: 10px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 13px;
  padding: 12px 14px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--lavender-deep); border-color: transparent; }

.variant-row { display: flex; gap: 6px; margin-bottom: 8px; align-items: center; }
.variant-row input { flex: 1; border: 1.5px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 10px; font-size: 12.5px; min-width: 0; }
.variant-row input.variant-label { flex: 1.6; }
.variant-row .variant-remove { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); cursor: pointer; font-size: 13px; color: var(--coral-deep); }
.variant-row .variant-photo-btn { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); cursor: pointer; font-size: 12px; overflow: hidden; padding: 0; position: relative; }
.variant-row .variant-photo-btn img { width: 100%; height: 100%; object-fit: cover; }

.extra-media-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.extra-media-row .em-thumb { width: 34px; height: 34px; border-radius: 8px; background: var(--line); flex-shrink: 0; overflow: hidden; }
.extra-media-row .em-thumb img, .extra-media-row .em-thumb video { width: 100%; height: 100%; object-fit: cover; }
.extra-media-row .em-status { flex: 1; font-size: 11.5px; color: var(--ink-soft); }
.extra-media-row input[type="file"] { flex: 1; font-size: 10.5px; }
.extra-media-row .em-remove { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); cursor: pointer; font-size: 12px; color: var(--coral-deep); }

.option-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-size: 12.5px; font-weight: 700; cursor: pointer; margin: 0 8px 8px 0; }
.option-pill.selected { border-color: var(--coral-deep); background: #FFEAF1; color: var(--coral-deep); }
.option-pill .opt-stock { font-weight: 500; color: var(--ink-soft); font-size: 11px; }
.option-pill .opt-thumb { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }

.gallery-strip { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); cursor: pointer; opacity: 0.7; }
.gallery-thumb.selected { border-color: var(--coral-deep); opacity: 1; }
.gallery-thumb img, .gallery-thumb video { width: 100%; height: 100%; object-fit: cover; }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none;
  font-size: 20px; font-weight: 800; color: var(--ink);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 5; line-height: 1; padding: 0 0 2px;
}
.gallery-arrow-left { left: 10px; }
.gallery-arrow-right { right: 10px; }

.soldout-ribbon {
  position: absolute; top: 12px; left: -32px;
  background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  padding: 4px 36px; transform: rotate(-40deg);
  z-index: 4; pointer-events: none;
}
.card-soldout .thumb img, .card-soldout .thumb video { opacity: 0.5; }
.soldout-badge-inline {
  display: inline-block; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  padding: 5px 12px; border-radius: 8px;
}
.btn.btn-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.option-pill.selected .opt-stock { color: var(--coral-deep); opacity: 0.75; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.trust-badge-item { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 11.5px; font-weight: 700; }

.scarcity-line { font-size: 12.5px; font-weight: 700; color: var(--coral-deep); background: #FFEAF1; border-radius: 10px; padding: 8px 12px; display: inline-block; }

.ugc-thumb { flex: none; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; background: var(--line); }
.ugc-thumb video, .ugc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ugc-thumb .ugc-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); color: #fff; font-size: 18px; }

.review-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.review-card .rv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.review-card .rv-name { font-weight: 700; font-size: 12.5px; }
.review-card .rv-stars { font-size: 11px; color: var(--coral-deep); }
.review-card .rv-comment { font-size: 12.5px; color: var(--ink); line-height: 1.5; }
.review-card .rv-media { margin-top: 8px; border-radius: 10px; overflow: hidden; max-width: 160px; }
.review-card .rv-media img, .review-card .rv-media video { width: 100%; display: block; }

.feature-badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-badge-item { display: inline-flex; align-items: center; gap: 5px; background: #E4FBF3; border: 1px solid #BFF0DE; border-radius: 10px; padding: 6px 10px; font-size: 11px; font-weight: 700; color: var(--ink); }

.bundle-pill { display: block; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.bundle-pill.selected { border-color: var(--coral-deep); background: #FFEAF1; }
.bundle-pill .bp-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; }
.bundle-pill .bp-save { font-size: 11px; font-weight: 700; color: var(--mint-deep); }
.bundle-pill.selected .bp-save { color: var(--coral-deep); }
.bundle-pill .bp-price { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }

.discount-banner { background: linear-gradient(120deg, var(--coral) 0%, var(--coral-deep) 100%); color: #fff; border-radius: 16px; padding: 12px 16px; font-size: 12.5px; font-weight: 700; text-align: center; }

.qty-stepper-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.qty-label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.4px; }
.qty-stepper { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 14px; }
.qty-stepper button { border: none; background: transparent; font-size: 18px; font-weight: 800; color: var(--coral-deep); cursor: pointer; width: 22px; }
.qty-stepper span { font-weight: 800; font-size: 14px; min-width: 22px; text-align: center; }

.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line .cl-thumb { width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; background: var(--line); overflow: hidden; }
.cart-line .cl-thumb img, .cart-line .cl-thumb video { width: 100%; height: 100%; object-fit: cover; }
.cart-line .cl-info { flex: 1; min-width: 0; }
.cart-line .cl-title { font-size: 12.5px; font-weight: 700; }
.cart-line .cl-meta { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.cart-line .cl-price { font-size: 12.5px; font-weight: 800; color: var(--coral-deep); white-space: nowrap; }
.cart-line .cl-remove { font-size: 11px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; margin-left: 10px; }

.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.step-dot { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.step-dot.done { background: var(--coral-deep); }

.bank-card { background: linear-gradient(135deg, var(--ink) 0%, #5a3f54 100%); color: #fff; border-radius: 20px; padding: 22px; margin-bottom: 18px; }
.bank-card .eyebrow { color: rgba(255,255,255,0.6); }
.bank-card .acct { font-family: 'Space Mono', monospace; font-size: 22px; font-weight: 700; margin: 10px 0 4px; letter-spacing: 1px; }
.copy-btn { display: inline-block; margin-top: 12px; background: rgba(255,255,255,0.15); padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; }

.wa-wrap { background: #E9E1D9; border-radius: 18px; padding: 16px; margin-bottom: 16px; }
.wa-wrap .wa-label { font-size: 11px; color: var(--ink-soft); font-weight: 700; margin-bottom: 8px; }
.wa-preview { background: #DCF8C6; border-radius: 16px 16px 4px 16px; padding: 14px 16px; font-size: 13px; line-height: 1.6; color: #1f2d22; white-space: pre-line; }

.urgency-banner { display: flex; align-items: center; gap: 10px; background: #FFEAF1; border: 1.5px solid #FFC9DC; border-radius: 16px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; font-weight: 700; }

/* Admin */
.admin-body { max-width: 640px; margin: 0 auto; padding: 20px 24px 60px; }
.admin-section { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.admin-section h4 { font-family: 'Baloo 2', sans-serif; font-size: 15px; margin-bottom: 12px; }
.notif-row { display: flex; align-items: center; gap: 12px; background: #FFF8FB; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; margin-bottom: 8px; font-size: 13px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-deep); flex-shrink: 0; }
.notif-time { margin-left: auto; color: var(--ink-soft); font-size: 11px; font-family: 'Space Mono', monospace; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.admin-card { background: #FFF8FB; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-align: center; }
.admin-card .lbl { font-size: 10px; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; }
.admin-card .val { font-family: 'Baloo 2', sans-serif; font-size: 20px; margin-top: 4px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.toggle-row:last-child { border-bottom: none; }
.switch { width: 40px; height: 23px; border-radius: 999px; background: var(--mint-deep); position: relative; flex-shrink: 0; cursor: pointer; }
.switch::after { content: ''; position: absolute; top: 2px; right: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; }
.switch.off { background: var(--line); }
.switch.off::after { left: 2px; right: auto; }
.manage-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.manage-row:last-child { border-bottom: none; }
.manage-row .thumb-sm { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; }
.manage-row .name { font-weight: 700; flex: 1; }
.manage-row .price { color: var(--ink-soft); font-family: 'Space Mono', monospace; font-size: 12px; }
.pill-btn { font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.notice { background: #FFF3D6; border: 1px solid #FFE29A; border-radius: 14px; padding: 14px 16px; font-size: 12px; line-height: 1.6; font-weight: 600; }

.hidden { display: none !important; }

/* Locks background scrolling while any modal is open — prevents the mobile
   tap-vs-scroll ambiguity that can make an overlay tap "fall through" to
   the page underneath on touchscreens. */
body.modal-open { overflow: hidden; }
