:root {
  --ink: #1E1A3A; --ink-2: #3D3654; --muted: #5E5873; --line: #ECE6E9; --bg: #FFFDFB;
  --berry: #C2255C; --berry-dark: #8A1640; --sun: #FFF4D6; --yellow: #FFD23F; --pink: #FF6FA3;
  --orange: #FF9F1C; --red: #F0452B; --green: #3BB273; --blue: #1E9BD7; --purple: #8E6CEF; --plum: #3A1F7A;
  --mint: #E3F6EA; --radius: 22px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif; --body: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--berry); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px; z-index: 100; }
.skip:focus { left: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar + stripe */
.topbar { background: var(--ink); color: #fff; text-align: center; font-size: 14px; font-weight: 500; padding: 9px 16px; }
.stripe { display: flex; height: 6px; }
.stripe span { flex: 1; }

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header .wrap { display: flex; align-items: center; gap: 16px 28px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 8px 24px; font-weight: 500; flex: 1 1 auto; flex-wrap: wrap; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { color: var(--berry); }
.header-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; order: 2; }
.nav { order: 1; }
.cart-btn { height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 22px; background: #FFEFF3; text-decoration: none; font-weight: 700; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 22px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; order: 1; margin-left: auto; }
  .header-actions { margin-left: 0; order: 2; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-top: 1px solid var(--line); }
  .logo img { height: 28px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform .08s; }
.btn:active { transform: translateY(3px); }
.btn-primary { background: var(--berry); color: #fff; box-shadow: 0 5px 0 var(--berry-dark); }
.btn-primary:hover { color: #fff; background: #B01F52; }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn-paypal { background: #FFC439; color: #111; font-style: italic; font-weight: 800; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* Hero */
.hero { background: var(--sun); position: relative; overflow: hidden; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; display: block; }
.hero .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.chip { align-self: flex-start; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; transform: rotate(-2deg); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hl { background: var(--pink); padding: 0 12px; border-radius: 16px; display: inline-block; transform: rotate(-1.5deg); }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { flex: 1 1 440px; min-width: 0; position: relative; padding: 24px 24px 24px 36px; }
.frame { background: #fff; padding: 14px; border-radius: 30px; transform: rotate(2deg); box-shadow: 0 18px 40px rgba(30,26,58,.18); }
.frame img { border-radius: 20px; aspect-ratio: 5/4; object-fit: cover; width: 100%; }
.balloon { position: absolute; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.balloon b { display: block; border-radius: 50%; box-shadow: inset -10px -12px 0 rgba(0,0,0,.08); }
.balloon s { display: block; width: 2px; background: var(--ink); opacity: .4; text-decoration: none; }
.sticker { position: absolute; right: 0; top: 0; width: 118px; height: 118px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; text-align: center; transform: rotate(12deg); z-index: 3; font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.1; }
@media (max-width: 600px) { .sticker { width: 92px; height: 92px; font-size: 14px; } }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; padding-top: 28px; padding-bottom: 28px; }
.trust div { display: flex; gap: 14px; align-items: flex-start; }
.trust p { margin: 0; }
.trust small { color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: 64px 0; }
.eyebrow { margin: 0 0 6px; font-weight: 700; color: var(--berry); letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.section h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 26px; }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 26px; }
.row-head h2 { margin: 0; }

.occasions { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.occasion { text-decoration: none; border-radius: 24px; padding: 20px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 5px 0 rgba(30,26,58,.15); transition: transform .15s; }
.occasion:hover { transform: rotate(0deg) translateY(-3px) !important; color: var(--ink); }
.occasion span { font-family: var(--display); font-weight: 800; font-size: 21px; }
.dots { display: flex; }
.dots i { width: 32px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; display: block; }
.dots i + i { margin-left: -8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px 20px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.card .img { position: relative; }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 18px; background: #F4EEF0; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.card .meta { font-size: 13px; color: var(--muted); font-weight: 500; }
.card .name { font-weight: 700; font-size: 17px; line-height: 1.3; }
.card .price { font-weight: 700; font-size: 17px; color: var(--berry); }

.how { background: var(--plum); color: #fff; position: relative; overflow: hidden; }
.how .wrap { position: relative; }
.how p.sub { color: #E6DDFF; font-size: 18px; margin: -12px 0 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.step { background: #fff; color: var(--ink); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step .num { width: 58px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 30px; font-weight: 800; }
.step h3 { font-size: 21px; }
.step p { margin: 0; color: #4A4460; }

.boxcard { background: var(--yellow); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); border-radius: 26px; padding: 26px; }
.boxcard ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }

.reviews { background: var(--mint); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review { background: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.stars { color: #B5631A; letter-spacing: 2px; }
.review p { margin: 0; }
.review small { color: var(--muted); }

.newsletter { background: var(--berry); color: #fff; border-radius: 32px; padding: 48px 36px; display: flex; flex-wrap: wrap; gap: 22px 48px; align-items: center; position: relative; overflow: hidden; }
.newsletter > div:not(.confetti), .newsletter > form { position: relative; flex: 1 1 360px; min-width: 0; }
.newsletter h2 { font-size: 34px; margin-bottom: 8px; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter input { flex: 1 1 220px; min-width: 0; height: 52px; border-radius: 999px; border: 0; padding: 0 22px; font-size: 16px; font-family: inherit; }
.newsletter button { height: 52px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; font-family: inherit; cursor: pointer; }
.newsletter .msg { flex-basis: 100%; margin: 4px 0 0; font-weight: 700; }

/* Footer */
.footer { background: var(--ink); color: #D8D3E8; margin-top: 0; }
.footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; padding-top: 52px; padding-bottom: 28px; }
.footer a { color: #D8D3E8; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer h3 { color: #fff; font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer .legal { border-top: 1px solid #3A3463; padding: 18px 20px 28px; font-size: 14px; max-width: 1280px; margin: 0 auto; }

/* Page banner */
.banner { background: var(--sun); position: relative; overflow: hidden; }
.banner .wrap { position: relative; padding-top: 44px; padding-bottom: 36px; }
.banner h1 { font-size: clamp(34px, 5vw, 48px); margin: 6px 0 8px; }
.banner p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 640px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Shop filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Product page */
.product { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; padding: 24px 0 64px; }
.gallery { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery .main { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 24px; background: #F4EEF0; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.thumbs button { padding: 0; border: 3px solid transparent; border-radius: 14px; overflow: hidden; background: #F4EEF0; aspect-ratio: 1/1; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--berry); }
.thumbs img { width: 100%; height: 100% !important; object-fit: cover; }
.buy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.buy h1 { font-size: clamp(30px, 4vw, 40px); }
.big-price { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--berry); margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opts span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 2px solid #D9D2D6; background: #fff; font-weight: 700; font-size: 15px; }
.opts input:checked + span { border-color: var(--berry); background: #FFEFF3; }
.opts input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { min-height: 50px; border-radius: 14px; border: 1.5px solid #CFC7CC; padding: 10px 14px; font-family: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.field small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #D9D2D6; border-radius: 999px; height: 54px; }
.qty button { width: 50px; height: 50px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--ink); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; font-size: 17px; }
.addrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.addrow .btn { flex: 1 1 220px; }
.note { font-size: 15px; color: #4A4460; display: grid; gap: 6px; }
.warning { background: #FFF1E6; border: 1px solid #F3C9A4; border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.inbox { background: var(--yellow); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); border-radius: 22px; padding: 20px; }
.inbox h2 { font-size: 20px; margin-bottom: 10px; }
.inbox ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.inbox p { margin: 12px 0 0; font-size: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.swatches span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.swatches i { width: 26px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px #D9D2D6; display: block; }
details { border-top: 1px solid var(--line); }
details summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 22px; }
details[open] summary::after { content: '–'; }
details > div { padding-bottom: 16px; color: #4A4460; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 700; z-index: 50; display: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast a { color: var(--yellow); margin-left: 10px; }
.sticky-buy { display: none; }
@media (max-width: 760px) {
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center; z-index: 40; }
  .sticky-buy strong { font-family: var(--display); font-size: 22px; color: var(--berry); }
  .sticky-buy .btn { flex: 1; min-height: 48px; }
  body.has-sticky { padding-bottom: 76px; }
}

/* Cart */
.cart-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding: 8px 0 72px; }
.cart-items { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.line { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 110px; height: 110px; border-radius: 16px; object-fit: cover; flex: none; }
.line .info { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.line .info small { color: var(--muted); }
.line .linkbtn { align-self: flex-start; background: none; border: 0; padding: 6px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-family: inherit; font-size: 14px; }
.line .amt { font-weight: 700; font-size: 18px; min-width: 80px; text-align: right; }
.summary { flex: 1 1 340px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.summary h2 { font-size: 24px; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; }
.total { font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 14px; }
.or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.formgrid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .formgrid { grid-template-columns: 1fr; } }
.error { color: #B3261E; font-weight: 700; margin: 0; }
.empty { text-align: center; padding: 40px 0; display: grid; gap: 16px; justify-items: center; }

/* Prose pages */
.prose { max-width: 780px; padding: 40px 0 72px; font-size: 17px; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose h3 { font-size: 20px; margin: 22px 0 6px; }
.prose p, .prose li { color: #2E2945; }
.prose ul { padding-left: 22px; }

/* Admin / track */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; background: #EEE; }
.status.paid { background: #FFF1C2; } .status.packed { background: #E1ECFF; } .status.shipped { background: #DDF3E4; } .status.delivered { background: #CDEBD6; } .status.pending { background: #F2F2F2; } .status.cancelled, .status.refunded { background: #FBDADA; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.table-box { overflow-x: auto; }

@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .card .name { font-size: 15px; }
  .card .price { font-size: 15px; }
  .occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .occasion { min-height: 110px; padding: 16px; }
  .occasion span { font-size: 18px; }
  .hero .wrap { padding-top: 36px; padding-bottom: 48px; gap: 28px; }
  .section { padding: 44px 0; }
  .newsletter { padding: 32px 22px; }
}
