/* Pendaneni — shared styles for the company site, the shop and Cards.
   Brand: plum lettering and buttons, orchid highlights, ivory paper.
   Cards swaps the paper for cream with lavender and coral accents. */
:root {
  --plum: #6b1442;
  --plum-deep: #4f0e31;
  --orchid: #c2559a;
  --blush: #f6e3ea;
  --blush-2: #f1d3de;
  --ivory: #fbf7f1;
  --paper: #ffffff;
  --ink: #33121f;
  --muted: #7a6470;
  --line: #ecdde3;
  --coral: #ef7f6c;
  --lavender: #b8a2de;
  --cream: #fbeee2;
  --ok: #1d7a4f;
  --warn: #9a5b00;
  --bad: #b3261e;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(79, 14, 49, .08);
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body.site-cards { --ivory: #fcf1e8; --blush: #f7e4dc; --line: #efd9cf; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 17px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--plum); }
h1, h2, h3 { font-family: var(--display); color: var(--plum); line-height: 1.12; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orchid); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 480px; }
.narrow-wide { max-width: 860px; padding-block: 40px 64px; }
.section { padding-block: clamp(36px, 6vw, 72px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lede { font-size: 1.12rem; color: #5b4350; }
.eyebrow { font-family: var(--display); color: var(--orchid); font-weight: 600; letter-spacing: .02em; margin-bottom: .4em; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--paper); padding: 8px 14px; }
[hidden] { display: none !important; }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .78em 1.5em; border: 2px solid var(--plum); border-radius: 999px; background: var(--plum); color: #fff; font: 600 1rem var(--display); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--plum-deep); border-color: var(--plum-deep); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--plum); }
.btn-ghost:hover { background: var(--blush); color: var(--plum); border-color: var(--plum); }
.btn-small { padding: .45em 1.1em; font-size: .92rem; }
.btn-lg { padding: .9em 1.8em; font-size: 1.2rem; }
.btn-block { width: 100%; margin-top: 8px; }
.link-button { border: 0; background: none; padding: 0; color: var(--plum); font: inherit; text-decoration: underline; cursor: pointer; }
.inline-form { display: inline; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: .5em 1.3em; border-radius: 999px; background: var(--blush); color: var(--plum); text-decoration: none; font: 500 1.02rem var(--display); white-space: nowrap; }
.pill:hover { background: var(--blush-2); }
.pill[aria-current] { background: var(--plum); color: #fff; }
.badge { display: inline-block; vertical-align: middle; font-size: .75rem; padding: .1em .55em; border-radius: 999px; background: #ffe14d; color: var(--plum-deep); border: 2px solid var(--plum-deep); }

/* Top bar */
.topbar { background: var(--ivory); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); margin-left: auto; font: 500 1.05rem var(--display); }
.nav a { color: var(--plum); text-decoration: none; padding-block: 6px; border-bottom: 3px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current] { border-bottom-color: var(--plum); }
.nav .btn { color: #fff; border-bottom: 2px solid var(--plum); }
.nav .link-button { font: inherit; text-decoration: none; }
.nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-search { display: flex; align-items: center; gap: 6px; color: var(--plum); }
.nav-search input { width: 130px; border: 0; border-bottom: 2px solid transparent; background: transparent; font: 500 1.05rem var(--display); color: var(--plum); padding: 4px 0; }
.nav-search input::placeholder { color: var(--plum); opacity: 1; }
.nav-search input:focus { outline: none; border-bottom-color: var(--orchid); }
.bag-link { display: inline-flex; align-items: center; gap: 6px; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: none; color: var(--plum); padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Flash messages */
.flash-stack { padding-top: 16px; }
.flash { margin: 0 0 8px; padding: 12px 18px; border-radius: 12px; background: var(--blush); color: var(--plum-deep); font-weight: 600; }
.flash-error { background: #fde8e6; color: var(--bad); }

/* Forms */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.auth { margin-block: 48px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font: 600 1.15rem var(--display); color: var(--plum); margin-bottom: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 700; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .filter-bar select, .copy-row input {
  width: 100%; padding: .7em .9em; border: 1.5px solid #dcc6d0; border-radius: 12px; background: #fff; font: inherit; color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orchid); box-shadow: 0 0 0 3px rgba(194, 85, 154, .18); }
.field .help { color: var(--muted); font-size: .84rem; }
.field .error, .error { color: var(--bad); font-size: .88rem; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad) !important; }
.field ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.field ul label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.field-check { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px; }
.form-errors { background: #fde8e6; color: var(--bad); border-radius: 12px; padding: 10px 16px; margin-bottom: 16px; font-weight: 600; }
.form-errors p { margin: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label, .network { position: relative; cursor: pointer; }
.segmented input, .network input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span, .network span { display: inline-block; padding: .5em 1.15em; border-radius: 999px; border: 1.5px solid #dcc6d0; background: #fff; font-weight: 700; }
.segmented input:checked + span, .network input:checked + span { background: var(--plum); border-color: var(--plum); color: #fff; }
.segmented input:focus-visible + span, .network input:focus-visible + span { outline: 3px solid var(--orchid); outline-offset: 2px; }
.network-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.network span { display: block; text-align: center; padding: .9em; border-radius: 14px; }

/* Status */
.status { display: inline-block; padding: .25em .8em; border-radius: 999px; font-size: .82rem; font-weight: 800; background: var(--blush); color: var(--plum); white-space: nowrap; }
.status-paid, .status-sent, .status-fulfilled { background: #e3f4ea; color: var(--ok); }
.status-pending, .status-scheduled, .status-sending { background: #fff1d6; color: var(--warn); }
.status-failed, .status-cancelled { background: #fde8e6; color: var(--bad); }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand b { display: block; font: 600 1.2rem var(--display); color: var(--plum); }
.footer-brand span { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }
.footer-links a { text-decoration: none; }

/* ===== Company site ===== */
.hero-company { background: radial-gradient(1200px 500px at 85% 20%, var(--blush), transparent 60%), var(--ivory); }
.hero-company-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero-company h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero-company h1 span { color: var(--orchid); display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-collage { position: relative; aspect-ratio: 1 / .85; }
.hero-collage img { position: absolute; border-radius: 22px; box-shadow: 0 18px 40px rgba(79, 14, 49, .18); object-fit: cover; border: 6px solid #fff; }
.hero-collage .c1 { width: 62%; top: 0; left: 0; aspect-ratio: 4/3; transform: rotate(-3deg); }
.hero-collage .c2 { width: 46%; right: 0; top: 14%; aspect-ratio: 5/4; transform: rotate(4deg); }
.hero-collage .c3 { width: 50%; left: 22%; bottom: 0; aspect-ratio: 4/3; transform: rotate(-1deg); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.app-card .app-logo { height: 58px; width: auto; margin-bottom: 18px; object-fit: contain; object-position: left; }
.app-card p { flex: 1; color: #5b4350; }
.app-card .btn { align-self: flex-start; }
.app-cards { background: linear-gradient(160deg, #fff, var(--cream)); }
.app-kukutana { background: radial-gradient(circle at 1px 1px, rgba(194, 85, 154, .14) 1.2px, transparent 1.4px) 0 0 / 12px 12px, #fff; }
.story { background: var(--paper); border-block: 1px solid var(--line); }
.story-inner { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.story-inner > img { width: 100%; height: auto; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 28px; }
.facts b { display: block; font: 600 2.4rem var(--display); color: var(--orchid); line-height: 1; }
.facts span { color: var(--muted); font-size: .92rem; }
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.contact-box { background: var(--plum); color: #fff; border-radius: 24px; padding: 32px; }
.contact-box h3, .contact-box a { color: #fff; }

/* ===== Shop ===== */
.banner img { width: 100%; height: auto; max-height: 440px; object-fit: cover; }
.collection { padding-block: 36px 60px; }
.collection-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.collection-head h1 { margin: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 22px 0 6px; }
.filter-bar label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--plum); }
.filter-bar select { width: auto; padding: .45em .8em; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 0; }
.chip { background: var(--orchid); color: #fff; padding: .35em 1em; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .92rem; }
.chip span { margin-left: 4px; }
.clear { font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 22px; margin-top: 28px; }
.product-link { text-decoration: none; color: inherit; display: block; text-align: center; }
.product-img { position: relative; border-radius: 14px; overflow: hidden; background: var(--blush); aspect-ratio: 375 / 225; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-link:hover .product-img img { transform: scale(1.04); }
.product-card h3 { font: 600 1.15rem var(--display); color: var(--plum); margin: 12px 0 2px; }
.price { font-weight: 800; color: var(--plum); font-size: 1.1rem; margin: 0; }
.price.big { font-size: 1.6rem; margin-bottom: 14px; }
.sold-out { position: absolute; top: 10px; left: 10px; background: var(--plum); color: #fff; font-weight: 800; font-size: .8rem; padding: .2em .7em; border-radius: 999px; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 24px 0; }
.crumbs { margin: 24px 0 18px; font-weight: 700; font-size: .95rem; }
.crumbs a { text-decoration: none; }
.product-page { padding-bottom: 60px; }
.product-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.product-photo img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); }
.meta-list { padding-left: 1.1em; color: #5b4350; }
.add-form { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 22px 0; }
.qty { display: flex; flex-direction: column; font-weight: 700; font-size: .9rem; }
.qty input { width: 90px; padding: .6em .8em; border: 1.5px solid #dcc6d0; border-radius: 12px; font: inherit; }
.card-upsell { display: block; padding: 16px 18px; border-radius: 16px; background: linear-gradient(120deg, var(--cream), #efe4fb); text-decoration: none; color: var(--ink); border: 1px dashed var(--lavender); }
.card-upsell b { color: var(--plum); }
.sold-note { font-weight: 700; color: var(--bad); }
.related-title { margin-top: 56px; }
.bag-lines { list-style: none; padding: 0; margin: 24px 0; }
.bag-line { display: grid; grid-template-columns: 96px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-line img { width: 96px; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.bag-line-info { display: flex; flex-direction: column; }
.bag-line-info a { text-decoration: none; }
.bag-qty input { width: 72px; padding: .5em; border: 1.5px solid #dcc6d0; border-radius: 10px; font: inherit; }
.bag-card { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; background: var(--cream); margin-bottom: 18px; }
.bag-card img { width: 80px; border-radius: 8px; }
.bag-card div { flex: 1; display: flex; flex-direction: column; }
.bag-summary { text-align: right; }
.bag-summary p:first-child { font-size: 1.3rem; }
.checkout { padding-block: 36px 64px; }
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.summary { position: sticky; top: 104px; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.summary-lines li, .summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.summary-row.total { border: 0; font-size: 1.25rem; color: var(--plum); }
.payment-wait { margin-block: 48px; }
.phone-icon { font-size: 3.4rem; animation: buzz 1.6s infinite; }
@keyframes buzz { 0%, 70%, 100% { transform: none; } 75% { transform: rotate(-8deg); } 85% { transform: rotate(8deg); } }
.sandbox { margin: 20px 0; padding: 18px; border: 2px dashed var(--orchid); border-radius: 16px; background: var(--blush); }
.sandbox-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 16px; }
.order-head h1, .order-head h2 { margin: 0; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 20px; }
.details dt { font-weight: 800; color: var(--plum); }
.details dd { margin: 0; }
.order-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.steps { padding-left: 1.2em; }
.steps li { margin-bottom: 12px; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--blush); color: var(--plum); }
.seller { padding-bottom: 60px; }
.seller-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.seller-product { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; }
.seller-product img { width: 80px; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }

/* ===== Cards ===== */
.site-cards h1, .site-cards .card-headline { font-family: var(--serif); }
.cards-hero { position: relative; background: linear-gradient(90deg, var(--cream) 0 40%, transparent 60%), #f3b9a4; overflow: hidden; }
.cards-hero-art { position: absolute; inset: 0 0 0 auto; width: 62%; }
.cards-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: left center; mask-image: linear-gradient(90deg, transparent, #000 18%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); }
.cards-hero-copy { position: relative; padding-block: clamp(48px, 8vw, 110px); }
.cards-hero h1 { font-size: clamp(3rem, 7.5vw, 6.2rem); line-height: .98; letter-spacing: -.03em; max-width: 7ch; }
.cards-hero .lede { max-width: 30ch; }
.shelf-wrap { background: linear-gradient(var(--ivory) 78%, #e9a08c 78%); }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 3vw, 40px); padding-top: 36px; }
.shelf-card { text-decoration: none; text-align: center; }
.shelf-card h2 { font: 600 clamp(1.1rem, 2vw, 1.7rem) var(--display); }
.shelf-card img { border-radius: 4px; box-shadow: 8px 10px 18px rgba(120, 50, 40, .18); transition: transform .25s; }
.shelf-card:hover img { transform: translateY(-6px) rotate(-1deg); }
.how-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.how-step span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--lavender); color: #fff; font: 600 1.2rem var(--display); margin-bottom: 10px; }
.reminder-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(120deg, #efe4fb, var(--cream)); border-radius: 28px; padding: clamp(24px, 4vw, 44px); margin-bottom: 40px; }
.reminder-promo div { max-width: 620px; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; margin-top: 28px; }
.template-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.template-tile img { border-radius: 6px; box-shadow: 6px 8px 16px rgba(120, 50, 40, .15); margin-bottom: 8px; transition: transform .2s; }
.template-tile:hover img { transform: translateY(-4px); }
.template-name { font: 600 1.15rem var(--display); color: var(--plum); }
.editor { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.editor-preview { position: sticky; top: 104px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.card-spread { --ink: var(--plum); display: grid; grid-template-columns: 1fr 1fr; background: #fffaf3; border-radius: 6px; box-shadow: 0 24px 50px rgba(120, 50, 40, .18); overflow: hidden; }
.card-front img { width: 100%; height: 100%; object-fit: cover; }
.card-inside { padding: clamp(18px, 3vw, 34px); color: var(--ink); background: linear-gradient(90deg, rgba(0,0,0,.05), transparent 12px), #fffaf3; display: flex; flex-direction: column; }
.card-headline { font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--ink); font-weight: 700; line-height: 1.05; margin-bottom: .6em; }
.card-to { font-weight: 700; color: var(--ink); }
.card-message { white-space: pre-line; flex: 1; font-size: 1.02rem; color: #3d2a33; }
.card-from { margin: 0; color: var(--ink); font-weight: 700; }
.copy-row { display: flex; gap: 8px; margin-bottom: 10px; }
.opened { margin: 10px 0 0; font-weight: 700; color: var(--ok); }
.delivery-list { list-style: none; padding: 0; margin: 0; }
.delivery-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.delivery-list li > span:first-child { flex: 1 1 200px; }
.my-cards { display: grid; gap: 14px; margin-bottom: 36px; }
.my-card { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.my-card img { border-radius: 6px; }
.my-card h2 { font-size: 1.2rem; margin: 0 0 2px; }
.my-card h2 a { text-decoration: none; }
.my-card p { margin: 0; }
.open-card { display: grid; place-items: center; min-height: 60vh; }
.opened-card { width: min(860px, 100%); }
.envelope { position: relative; width: min(460px, 90vw); aspect-ratio: 3/2; border: 0; border-radius: 10px; background: linear-gradient(150deg, #c9b6ea, var(--lavender)); box-shadow: 0 24px 50px rgba(80, 50, 120, .25); cursor: pointer; overflow: hidden; transition: transform .5s, opacity .5s; }
.envelope-flap { position: absolute; inset: 0 0 auto; height: 58%; background: #a98fd6; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .5s; }
.envelope-label { position: absolute; inset: auto 0 18%; text-align: center; font: 700 1.6rem var(--serif); color: var(--plum); }
.envelope-label small { font: 600 .95rem var(--body); color: #fff; }
.envelope.is-open { transform: translateY(20px) scale(.96); opacity: 0; }
.envelope.is-open .envelope-flap { transform: rotateX(180deg); }
.reply-cta { margin-top: 28px; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: 1fr; }
  .how-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav > a, .nav > form { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-search input { width: 100%; }
  .nav .btn { margin-top: 12px; }
  .topbar-inner { min-height: 68px; }
  .logo img { height: 48px; }
  .hero-company-inner, .story-inner, .contact, .product-layout, .checkout-layout, .editor { grid-template-columns: 1fr; }
  .story-inner > img { width: 200px; }
  .summary, .editor-preview { position: static; }
  .cards-hero-art { position: relative; width: 100%; height: 240px; }
  .cards-hero-art img { mask-image: none; -webkit-mask-image: none; }
  .cards-hero { background: var(--cream); display: flex; flex-direction: column-reverse; }
  .cards-hero-copy { padding-block: 28px 36px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .product-card h3 { font-size: 1rem; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .collection-head .pills, .section > .pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .how-cards { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .bag-line { grid-template-columns: 72px 1fr auto; }
  .bag-line img { width: 72px; }
  .bag-line-total { grid-column: 2; }
  .order-row { grid-template-columns: 1fr auto; }
  .card-spread { grid-template-columns: 1fr; }
  .my-card { grid-template-columns: 80px 1fr; }
  .my-card form { grid-column: 2; }
  .table { display: block; overflow-x: auto; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 8px; }
}
