/* BLOOM concept · shared base for the inner pages (shop, product, checkout, success) and the cart drawer on every page */
:root {
  --bg: #fbf6f2; --blush: #f3e1dc; --rose: #c98b8b; --rose-deep: #8f4f53; --sage: #dfe8dc; --ink: #3d3236; --muted: #66585b; --line: #eadbd5;
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: "Be Vietnam Pro", sans-serif; font-size: 16px; line-height: 1.6; overflow-x: clip; }
.wrap { width: 1240px; max-width: calc(100% - 64px); margin: 0 auto; position: relative; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: "Playfair Display", serif; font-weight: 500; }
em { font-style: italic; color: var(--rose-deep); }
.mask { display: block; overflow: hidden; padding-bottom: .08em; } .mask > span { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 16px 34px; font-weight: 600; font-size: 15px; letter-spacing: .04em;
  background: var(--rose-deep); color: #fff; border: 0; cursor: pointer; transition: translate .35s var(--ease), box-shadow .35s var(--ease), background .25s, opacity .2s; }
.btn:hover { translate: 0 -2px; box-shadow: 0 12px 28px rgba(143,79,83,.28); background: #7d4246; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--rose-deep); box-shadow: inset 0 0 0 1.5px var(--rose-deep); }
.btn.ghost:hover { background: var(--blush); box-shadow: inset 0 0 0 1.5px var(--rose-deep); }
.btn.full { width: 100%; }

/* header (inner pages) */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(251,246,242,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--rose-deep); display: grid; place-items: center; font-family: "Playfair Display", serif; font-size: 12px; letter-spacing: .16em; color: var(--rose-deep); background: var(--blush); }
.hd nav { display: flex; align-items: center; gap: 40px; } .hd nav a { font-size: 15px; font-weight: 500; } .hd nav a:hover, .hd nav a[aria-current] { color: var(--rose-deep); }
.bag { position: relative; display: flex; margin-left: 8px; background: none; border: 0; cursor: pointer; padding: 4px; }
.count { position: absolute; top: -4px; right: -8px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--rose-deep); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; transform: scale(0); }

/* footer (inner pages) */
.ft { margin-top: 120px; background: var(--blush); }
.ft .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 0 36px; }
.ft b { font: 500 44px/1 "Playfair Display"; color: var(--rose-deep); }
.ft h4 { font-size: 18px; margin-bottom: 8px; } .ft p { color: var(--muted); font-size: 15px; }
.ft .copy { text-align: center; font-size: 13px; color: var(--muted); padding: 16px 0 26px; border-top: 1px solid rgba(143,79,83,.18); }

/* page title */
.ptitle { padding: 72px 0 40px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; } .crumbs a:hover { color: var(--rose-deep); }
.ptitle h1 { font-size: 76px; line-height: 1.04; letter-spacing: -.02em; }

/* cart drawer */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(61,50,54,.35); opacity: 0; visibility: hidden; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: 460px; max-width: 100vw; background: var(--bg); box-shadow: -30px 0 80px rgba(61,50,54,.2);
  display: flex; flex-direction: column; transform: translateX(105%); visibility: hidden; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 30px; } .drawer header h2 small { font: 500 15px "Be Vietnam Pro"; color: var(--muted); margin-left: 6px; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blush); cursor: pointer; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.lines { flex: 1; overflow-y: auto; padding: 8px 28px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line .im { width: 84px; height: 100px; border-radius: 12px; overflow: hidden; background: var(--blush); }
.line h3 { font-size: 20px; line-height: 1.2; } .line small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.line .pr { font-weight: 600; color: var(--rose-deep); white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); margin-top: 10px; background: #fff; }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 18px; border-radius: 50%; }
.qty button:hover { background: var(--blush); } .qty span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }
.rm { display: block; margin-top: 8px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; }
.empty { text-align: center; padding: 70px 10px; color: var(--muted); }
.empty b { display: block; font: italic 500 30px "Playfair Display"; color: var(--ink); margin-bottom: 8px; }
.drawer footer { padding: 22px 28px 28px; border-top: 1px solid var(--line); background: #fff; }
.sum { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.sum.total { color: var(--ink); font-weight: 600; font-size: 19px; margin: 10px 0 18px; }
.free { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.free i { display: block; height: 6px; border-radius: 3px; background: var(--blush); margin-top: 8px; overflow: hidden; } .free i b { display: block; height: 100%; background: var(--rose-deep); border-radius: 3px; transform-origin: 0 50%; }

/* page transition curtain + toast + flying thumbnail */
.curtain { position: fixed; inset: 0; z-index: 90; background: var(--blush); pointer-events: none; display: grid; place-items: center; visibility: hidden; }
.curtain span { font: italic 500 64px "Playfair Display"; color: var(--rose-deep); }
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 80; translate: -50% 0; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; opacity: 0; pointer-events: none; }
.fly { position: fixed; left: 0; top: 0; z-index: 70; width: 76px; height: 76px; border-radius: 50%; border: 3px solid #fff; overflow: hidden; pointer-events: none; box-shadow: 0 8px 20px rgba(61,50,54,.25); }

/* product card (shop + related) */
.pcard { position: relative; display: block; background: #fff; border-radius: 24px; padding: 14px 14px 22px; transition: translate .5s var(--ease), box-shadow .5s var(--ease); }
.pcard:hover { translate: 0 -6px; box-shadow: 0 24px 50px rgba(61,50,54,.10); }
.pcard .im { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--blush); margin-bottom: 18px; }
.pcard .im img { transition: scale .9s var(--ease); } .pcard:hover .im img { scale: 1.06; }
.pcard .tag { position: absolute; left: 28px; top: 28px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rose-deep); }
.pcard h3 { font-size: 26px; padding: 0 8px; } .pcard p { color: var(--muted); font-size: 14px; padding: 0 8px; min-height: 44px; }
.pcard .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px 0; }
.pcard .row b { font-weight: 600; font-size: 19px; color: var(--rose-deep); }
.pcard .go { width: 44px; height: 44px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; transition: background .3s, color .3s, rotate .4s var(--ease); }
.pcard:hover .go { background: var(--rose-deep); color: #fff; rotate: -45deg; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose-deep); box-shadow: 0 0 0 4px rgba(143,79,83,.12); }
.field.bad input, .field.bad select { border-color: #c0392b; }
.field em.err { display: none; font-style: normal; color: #b03a2e; font-size: 13px; margin-top: 6px; } .field.bad em.err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; font-size: 14px; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--rose); } .chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.chip small { display: block; font-size: 12px; opacity: .8; font-weight: 400; }

@media (max-width: 900px) {
  .hd nav a:not(.bag) { display: none; } .ptitle h1 { font-size: 48px; } .ft .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; } }
