/* Warm, joyful palette: coral = energy and gifting, sunny yellow = happiness, teal = trust. */
:root {
  --bg: #fff7f0;
  --card: #ffffff;
  --ink: #23170f;
  --muted: #6e5d52;
  --line: #f0e1d4;
  --accent: #ff5a36;
  --accent-2: #ff8a3d;
  --accent-ink: #ffffff;
  --accent-soft: #ffe6dc;
  --sun: #ffc93c;
  --teal: #13a69b;
  --pink: #ff8fab;
  --ok: #1f9d55;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(60, 35, 20, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 850; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 750; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 241, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 850; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 26px; font: inherit; font-weight: 750;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s;
  box-shadow: 0 6px 18px rgba(255, 90, 54, 0.3);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: 0.92rem; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.9rem; text-decoration: underline; cursor: pointer; padding: 4px; }

/* cards & chips */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 16px;
  font: inherit; font-weight: 650; cursor: pointer; color: var(--ink);
}
.chip.on { border-color: var(--accent); background: var(--accent-soft); }
.chip:disabled { opacity: 0.4; cursor: not-allowed; }

/* home */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.pill { display: inline-block; background: var(--sun); border-radius: 999px; padding: 4px 12px; font-weight: 750; font-size: 0.85rem; margin-bottom: 14px; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tile {
  aspect-ratio: 1; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 3.4rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-tile { background: #f6efe7; }
.hero-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-tile small { position: absolute; left: 10px; bottom: 10px; font-size: 0.8rem; font-weight: 750; background: rgba(255,255,255,0.92); color: var(--ink); padding: 3px 10px; border-radius: 999px; }
.hero-tile:nth-child(odd) { transform: rotate(-1.5deg); }
.hero-tile:nth-child(even) { transform: rotate(1.5deg) translateY(10px); }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
section.block { padding: 48px 0; }
.cats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cat-card { padding: 0 0 18px; text-decoration: none; display: block; transition: transform 0.15s; overflow: hidden; }
.cat-card:hover { transform: translateY(-3px); }
.cat-card .cat-imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-bottom: 14px; }
.cat-card .cat-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cat-card h3, .cat-card p { padding: 0 18px; }
.steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.step { padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.products { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.product-card { padding: 18px; }
.product-card canvas { width: 100%; height: auto; border-radius: 12px; background: #f6efe7; margin-bottom: 12px; }
.price { font-weight: 800; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer a { color: var(--muted); }

/* create flow */
.create { padding: 26px 0 80px; }
.panel { padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.9rem; align-items: center; justify-content: center; flex: none; }
.panel.done .num { background: var(--ok); }
.panel.locked { opacity: 0.5; pointer-events: none; }
.drop {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px 18px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s; background: #fffdfb;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .big { font-size: 2.2rem; }
.photo-row { display: flex; gap: 16px; align-items: center; }
.photo-row img { width: 110px; height: 110px; object-fit: cover; border-radius: 14px; }
.styles { grid-template-columns: repeat(auto-fill, minmax(min(130px, 40%), 1fr)); gap: 12px; }
.style-card {
  border: 2.5px solid var(--line); border-radius: 16px; padding: 6px 6px 10px; text-align: center; background: var(--card);
  cursor: pointer; font: inherit; color: var(--ink); transition: border-color 0.15s, transform 0.15s;
}
.style-card:hover { transform: translateY(-2px); }
.style-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 11px; }
.style-card b { display: block; margin-top: 8px; font-size: 0.95rem; }
.style-card.on { border-color: var(--accent); background: var(--accent-soft); }
.gen-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.result { display: grid; gap: 18px; }
@media (min-width: 760px) { .result { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.result-img { position: relative; border-radius: var(--radius); overflow: hidden; background: #f6efe7; aspect-ratio: 1; }
.result-img img { width: 100%; height: 100%; object-fit: contain; position: relative; }
.result-img.cutout { background: radial-gradient(circle at 50% 40%, #fff7ef 0%, #ffe3d3 60%, #ffd2bd 100%); }
/* "PREVIEW" overlay so the clean art isn't simply screenshotted; the paid file has none. */
.wm { display: none; } /* the server already watermarks previews; no second layer */
.addon { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border: 1.5px dashed var(--line); border-radius: 14px; cursor: pointer; background: #fffdfb; }
.addon:has(input:checked) { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.addon input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.name-box { margin-top: 16px; display: grid; gap: 6px; }
.name-box input { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 1.05rem; background: #fff; }
.name-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.name-box.required input { border-color: var(--accent); }
.style-card { position: relative; }
.style-card .badge-pop { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 1; background: var(--sun); color: var(--ink); font-size: 0.7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.style-card .badge-name { position: absolute; top: 10px; right: 10px; background: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.style-card img.cut { background: radial-gradient(circle at 50% 40%, #fff7ef 0%, #ffe3d3 70%); }
.tag { position: absolute; left: 12px; top: 12px; background: rgba(31, 26, 23, 0.75); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; margin-top: 14px; }
.strip button { flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2.5px solid transparent; padding: 0; cursor: pointer; background: #f6efe7; }
.strip button.on { border-color: var(--accent); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.remaining { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }

.loading { text-align: center; padding: 36px 10px; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.9s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

.shop { display: grid; gap: 20px; }
@media (min-width: 760px) { .shop { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.mockup { width: 100%; height: auto; border-radius: var(--radius); background: #f6efe7; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.opt-label { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin: 14px 0 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatch.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.big-price { font-size: 1.7rem; font-weight: 850; }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: min(92vw, 520px);
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600;
}

dialog { border: 0; border-radius: var(--radius); padding: 24px; max-width: 420px; width: 92vw; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(31, 26, 23, 0.45); }
dialog label { display: flex; gap: 10px; align-items: center; padding: 8px 0; cursor: pointer; }
dialog textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; margin-top: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* admin */
.admin table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin th, .admin td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.admin th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.admin input { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; min-width: 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.badge.ok { background: #dcf5e6; color: #146c3b; }
.badge.no { background: #ffe1d9; color: #a3311a; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.thumb { font-size: 0.8rem; color: var(--muted); }
.thumb .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.thumb img, .thumb .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #f0e8df; }
.thumb .err { color: #a3311a; }
.scroll-x { overflow-x: auto; }

/* ---------------------------------------------------------------- home redesign */
.banner { background: linear-gradient(90deg, #16624f, #13a69b); color: #fff; text-align: center; font-weight: 700; font-size: 0.92rem; padding: 9px 14px; }
.btn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn.big { padding: 17px 32px; font-size: 1.08rem; }
.btn.light { background: #fff; color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.home .hero { position: relative; overflow: hidden; padding: 48px 0 56px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; z-index: 0; }
.blob.b1 { width: 420px; height: 420px; background: #ffc4a8; top: -120px; left: -80px; }
.blob.b2 { width: 380px; height: 380px; background: #ffe08a; top: 40px; right: -60px; }
.blob.b3 { width: 300px; height: 300px; background: #b9ece3; bottom: -140px; left: 40%; }
.home .hero-grid { position: relative; z-index: 1; }
.hl { background: linear-gradient(120deg, var(--accent), #ff2e88); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 6px 0 18px; }
.small-note { font-size: 0.88rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.95rem; }
.ba-card { background: #fff; border-radius: 26px; padding: 14px; box-shadow: 0 24px 60px rgba(120, 60, 30, 0.18); }
.ba { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff7ef, #ffd9c7); user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-after { object-fit: contain; padding: 4%; }
.ba-before { position: absolute; inset: 0; }
.ba-before img { object-fit: cover; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 10px rgba(0,0,0,.3); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; bottom: 12px; background: rgba(35,23,15,.72); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.ba-label.l { left: 12px; } .ba-label.r { right: 12px; }
.ba-tabs { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.example-note { text-align: center; font-size: .8rem; color: var(--muted); margin: 8px 0 2px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head .link { color: var(--accent); font-weight: 700; text-decoration: none; }
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
@media (min-width: 640px) { .showcase { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .showcase { grid-template-columns: repeat(6, 1fr); } }
.show-tile { position: relative; border-radius: 20px; aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; overflow: hidden; transition: transform .2s; box-shadow: 0 10px 26px rgba(80,40,20,.1); }
.show-tile:hover { transform: translateY(-4px) rotate(-1deg); }
.show-tile img { width: 82%; height: auto; }
.show-tile .show-name { position: absolute; bottom: 10px; background: #fff; color: var(--ink); font-weight: 800; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }
.show-tile .badge-pop { position: absolute; top: 10px; left: 10px; background: var(--sun); color: var(--ink); font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.block.tint { background: linear-gradient(180deg, #fff1e6, #fff7f0); }
.occasions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.occ { background: #fff; border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
.occ span { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.occ p { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }
.cta-band { background: linear-gradient(135deg, var(--accent), #ff2e88); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { color: #fff; } .cta-band p { opacity: .92; }

/* ---------------------------------------------------------------- product cards (real photos) */
.pgrid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 10px; }
@media (min-width: 560px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
.pcard { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 14px 34px rgba(90, 45, 20, 0.09); transition: transform .2s ease, box-shadow .2s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 22px 44px rgba(90, 45, 20, 0.16); }
.pphoto { position: relative; aspect-ratio: 1; background: #f3ede6; }
.pphoto canvas { width: 100%; height: 100%; display: block; }
.pbadge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: .74rem; font-weight: 800; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.pbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ptitle { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ptitle h3 { margin: 0; font-size: 1.08rem; }
.pprice { font-weight: 850; font-size: 1.08rem; white-space: nowrap; }
.pprice small { font-weight: 600; color: var(--muted); font-size: .78rem; }
.ppoints { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .9rem; color: var(--muted); }
.ppoints li::before { content: '✓'; color: var(--teal); font-weight: 900; margin-right: 8px; }
.pcta { margin-top: auto; font-weight: 800; color: var(--accent); }
.pcard:hover .pcta { text-decoration: underline; }

/* Logo image in the header */
.logo img { display: block; height: 36px; width: auto; }
@media (max-width: 480px) { .logo img { height: 30px; } }

/* Policy pages */
.legal { padding: 40px 0 70px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 4px; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
