/* Manako — rules the screens carried inline; shared by the React app and the Razor pages. */
.ws-side nav .group { margin: 18px 14px 4px; font-size: .72rem; opacity: .55; font-weight: 700; letter-spacing: .02em; }
.ws-side nav a { color: var(--cream); }
.menu-btn { display: inline-grid; }
@media (min-width: 1000px) { .menu-btn { display: none; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.grid3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.page { padding: 24px 0 40px; }
.phone-big { font-size: 1.6rem; font-weight: 900; letter-spacing: .08em; direction: ltr; text-align: center; padding: 14px; background: var(--sand-soft); border-radius: var(--radius); }
.alert { padding: 12px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--warn) 14%, var(--cream)); border: 1px solid var(--warn); }
.alert-error { background: color-mix(in srgb, var(--error) 10%, var(--cream)); border-color: var(--error); }
.alert-ok { background: color-mix(in srgb, var(--sage) 22%, var(--cream)); border-color: var(--sage); }

/* house */
.house-head { padding: 24px 0 8px; display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; flex: none; }
.avatar img { width: 34px; }
.switch { border: 0; background: transparent; padding: 0; cursor: pointer; text-align: start; }
.switch h1 { font-size: 1.6rem; margin: 0; display: flex; align-items: center; gap: 6px; }
.switch h1 svg { width: 20px; height: 20px; color: var(--muted); }
.age { color: var(--muted); font-size: .92rem; }
.companion { position: relative; padding: 18px 20px 18px 48px; margin: 16px 0 28px; background: var(--sand); border: 0; overflow: hidden; }
.companion p { margin: 0; font-size: 1.02rem; }
.companion .x { position: absolute; top: 10px; left: 10px; }
.companion::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 10px solid var(--rose); opacity: .35; left: -50px; bottom: -70px; pointer-events: none; }
.timeline { display: grid; gap: 14px; }
.month { font-size: .8rem; font-weight: 800; color: var(--muted); margin: 10px 0 2px; }
.mem { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px; align-items: center; text-decoration: none; }
@media (min-width: 640px) { .mem { grid-template-columns: 132px 1fr; } }
.mem .th { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #2b2420; position: relative; }
.mem .th img { width: 100%; height: 100%; object-fit: cover; }
.mem .th .kind { position: absolute; bottom: 6px; inset-inline-start: 6px; background: rgba(253, 246, 237, .9); border-radius: var(--pill); font-size: .7rem; padding: 0 8px; font-weight: 700; }
.mem .t { font-weight: 800; margin-bottom: 2px; }
.mem .meta { font-size: .82rem; color: var(--muted); }
.mem.note .th { background: var(--sand-soft); display: grid; place-items: center; color: var(--muted); }
.mem.pending { opacity: .85; }
.fab { position: fixed; bottom: 100px; left: 20px; z-index: 25; box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .fab { bottom: 32px; left: 32px; } }
.layout { display: grid; gap: 28px; }
@media (min-width: 1000px) { .layout { grid-template-columns: 1fr 320px; align-items: start; } .aside { position: sticky; top: 90px; } }

/* choices */
.pick { border: 1.5px solid var(--sand); border-radius: var(--radius); padding: 12px 16px; background: transparent; cursor: pointer; text-align: start; font: inherit; color: inherit; }
.pick.picked { border-color: var(--cocoa); background: var(--sand-soft); box-shadow: 0 0 0 3px rgba(101, 83, 73, .1); }
.pick.disabled, .pick:disabled { opacity: .45; cursor: not-allowed; }
.picks { display: flex; flex-wrap: wrap; gap: 10px; }

/* uploader */
.progress { height: 10px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--cocoa); transition: width .2s; }
.dropzone { border: 2px dashed var(--sand); border-radius: var(--radius-lg); padding: 28px 16px; text-align: center; cursor: pointer; }
.dropzone:hover { border-color: var(--cocoa); }

/* tables on phones */
.table-wrap { -webkit-overflow-scrolling: touch; }
.table td .btn { white-space: nowrap; }
.stat-grid.cols3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) { .stat-grid.cols3 { grid-template-columns: repeat(4, 1fr); } }

/* shipping timeline */
.steps { display: grid; gap: 0; position: relative; }
.step { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; position: relative; color: var(--muted); }
.step::before { content: ""; position: absolute; inset-inline-start: 11px; top: 24px; bottom: -2px; width: 2px; background: var(--sand); }
.step:last-child::before { display: none; }
.step .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--sand); flex: none; display: grid; place-items: center; z-index: 1; }
.step.done { color: var(--cocoa); }
.step.done .dot { background: var(--cocoa); color: var(--cream); }
.step.now { color: var(--cocoa); font-weight: 800; }
.step.now .dot { background: var(--rose); outline: 4px solid rgba(215, 180, 179, .35); }
.step svg { width: 14px; height: 14px; }

.notice-bar { background: var(--sand); text-align: center; padding: 8px 12px; font-size: .88rem; }
.footnote { font-size: .78rem; color: var(--muted); }
.qr-box { background: #fff; padding: 12px; border-radius: var(--radius); display: inline-block; }

.build-aside { position: static; }
@media (min-width: 900px) { .build-aside { position: sticky; top: 90px; } }

/* public header on phones: a menu button opens the links */
.menu-toggle { display: inline-grid; }
.mnav { display: grid; gap: 2px; padding: 8px 20px 14px; border-top: 1px solid var(--sand); background: var(--cream); }
.mnav[hidden] { display: none; }
.mnav a { padding: 12px 4px; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--sand-soft); }
@media (min-width: 900px) { .menu-toggle, .mnav { display: none !important; } }

/* tables: phone numbers stay inline so the row lines are not broken */
.table td .ltr, .table th .ltr { display: inline; }
.ws-side { overflow-y: auto; }
.ws-top .logout-top { margin-inline-start: auto; }
.table td.ltr, .table th.ltr { display: table-cell; direction: ltr; text-align: right; }

/* big edit forms: wide, and scrolls inside the window instead of running off the screen */
.modal { max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-wide { max-width: 760px; }
.modal-wide textarea.textarea { min-height: 260px; }

/* admin menu: groups open and close */
.ws-side nav button.group { display: flex; width: calc(100% - 28px); align-items: center; justify-content: space-between; margin: 14px 14px 2px; padding: 4px 0; background: none; border: 0; color: var(--cream); font: inherit; font-size: .78rem; font-weight: 700; opacity: .7; cursor: pointer; }
.ws-side nav button.group:hover { opacity: 1; }
.ws-side nav button.group .chev { transition: transform .15s; font-size: .7rem; }
.ws-side nav button.group.closed .chev { transform: rotate(90deg); }

/* messages page */
.msg-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.msg-list { display: grid; gap: 8px; }
.msg-card { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-md, 14px); overflow: hidden; }
.msg-card.dirty { border-color: var(--rose); }
.msg-head { display: flex; width: 100%; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; background: none; border: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.msg-head .title { font-weight: 700; font-size: .93rem; }
.msg-head .preview { color: var(--ink-soft, #7a6d60); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.msg-body { padding: 0 14px 14px; display: grid; gap: 10px; }
.msg-body textarea { min-height: 110px; }
.msg-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.filter-bar .input, .filter-bar .select { min-height: 38px; width: auto; }
.seg { display: inline-flex; gap: 4px; }
.msg-head { padding: 8px 12px; }
.msg-head > span:first-child { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-width: 0; }
.msg-head .preview { flex-basis: 100%; }

/* product gallery on the public page; category chips on the showcase */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.thumb-btn { width: 64px; height: 64px; padding: 0; border: 1px solid var(--sand); border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn:hover, .thumb-btn:focus-visible { border-color: var(--rose); }
nav.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
nav.chips a.chip { text-decoration: none; }

/* admin: product editor */
.pimg { display: flex; flex-wrap: wrap; gap: 10px; }
.pimg figure { margin: 0; width: 110px; display: grid; gap: 4px; justify-items: center; }
.pimg img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; border: 1px solid var(--sand); background: #fff; }
.pimg .cover { outline: 2px solid var(--rose); }
.opt-row { display: grid; grid-template-columns: minmax(90px, 1.4fr) repeat(3, minmax(70px, 1fr)) auto auto auto; gap: 8px; align-items: center; }
@media (max-width: 720px) { .opt-row { grid-template-columns: 1fr 1fr; } }
.opt-row .input { min-height: 36px; }
.pcard-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pcard-head img.cover-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--sand); background: #fff; }

.opt-head { align-items: end; }
@media (max-width: 720px) { .opt-head { display: none; } }

/* memory view and welcome */
.mview { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
.mview-head { text-align: center; display: grid; gap: 6px; justify-items: center; padding-top: 6px; }
.mview-head h1 { font-size: 1.55rem; margin: 0; }
.mview-head .chipline { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--sand-soft); font-size: .8rem; color: var(--muted); }
.pill svg { width: 14px; height: 14px; }
.mview-media { border-radius: 24px; overflow: hidden; background: #2b2420; box-shadow: var(--shadow-md, 0 10px 30px rgba(74, 63, 53, .15)); }
.mview-media img, .mview-media video { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #2b2420; }
.hb-card { background: linear-gradient(160deg, var(--sand-soft), var(--sand)); border-radius: 22px; padding: 18px 18px 14px; display: grid; gap: 12px; overflow: hidden; }
.hb-card .hb-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; }
.hb-card .hb-title svg { width: 18px; height: 18px; color: var(--rose-deep, #b86b6b); }
.dl-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dl-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--sand); background: #fff; color: var(--cocoa); font: inherit; font-size: .85rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.dl-btn svg { width: 15px; height: 15px; }
.dl-btn:hover { border-color: var(--cocoa); }
.mem .th .kind-ico { color: var(--cream); }

/* the new-memory button: a small one near the thumb on phones, an inline button on large screens */
.fab { position: fixed; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); inset-inline-start: auto; inset-inline-end: 16px; left: auto; padding: 0 18px; min-height: 46px; font-size: .92rem; box-shadow: var(--shadow-lg); gap: 6px; }
.fab svg { width: 18px; height: 18px; }
.page.has-fab { padding-bottom: 150px; }
.inline-new { display: none; }
@media (min-width: 900px) { .fab { display: none; } .inline-new { display: inline-flex; } .page.has-fab { padding-bottom: 40px; } }

/* upload list */
.ulist { display: grid; gap: 8px; }
.uitem { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; }
.uitem .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--sand-soft); display: grid; place-items: center; color: var(--cocoa); }
.uitem .ico svg { width: 20px; height: 20px; }
.uitem .name { font-size: .88rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }

/* kids */
.kid { display: grid; gap: 10px; }
.kid-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.kid-msgs { display: grid; gap: 8px; }
.kmsg { border-radius: 14px; padding: 10px 14px; background: var(--sand-soft); font-size: .92rem; }
.kmsg.now { background: var(--sand); outline: 2px solid var(--rose); }
.kmsg.past { opacity: .6; }
.kmsg .lab { font-weight: 800; font-size: .78rem; color: var(--muted); display: block; margin-bottom: 2px; }

/* magazine */
.mag-head { text-align: center; display: grid; gap: 6px; justify-items: center; padding: 18px 0 26px; }
.mag-head h1 { margin: 0; }
.mag-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 640px) { .mag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .mag-grid { grid-template-columns: repeat(3, 1fr); } }
.mag-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; animation: mag-rise .5s ease both; }
.mag-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mag-card:nth-child(2) { animation-delay: .06s; } .mag-card:nth-child(3) { animation-delay: .12s; } .mag-card:nth-child(4) { animation-delay: .18s; }
@keyframes mag-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mag-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-soft); }
.mag-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mag-card:hover .mag-cover img { transform: scale(1.04); }
.mag-ph { display: grid; place-items: center; background: linear-gradient(160deg, var(--sand-soft), var(--sand)); }
.mag-ph img { width: 64px; height: auto; object-fit: contain; opacity: .7; }
.mag-body { padding: 16px 18px 20px; display: grid; gap: 6px; }
.mag-body h2 { font-size: 1.1rem; margin: 0; }
.mag-body p { margin: 0; font-size: .92rem; }
.mag-meta { font-size: .8rem; color: var(--muted); }
.mag-more { color: var(--cocoa); font-weight: 800; font-size: .88rem; }
.mag-big { margin-top: 4px; }
@media (min-width: 820px) { .mag-big { flex-direction: row; } .mag-big .mag-cover { flex: 1.3; aspect-ratio: auto; min-height: 320px; } .mag-big .mag-body { flex: 1; align-content: center; padding: 28px; } .mag-big .mag-body h2 { font-size: 1.6rem; } }
.mag-hero { padding: 18px 0 8px; text-align: center; }
.mag-hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.5; margin: 6px 0; }
.mag-hero .lead { font-size: 1.1rem; color: var(--muted); margin: 6px 0 18px; }
.mag-hero .crumbs { justify-content: center; }
.mag-hero-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 24px; display: block; margin: 8px auto 0; animation: mag-rise .6s ease both; }
.prose { font-size: 1.08rem; line-height: 2.1; padding-top: 18px; padding-bottom: 12px; }
.prose h2 { margin-top: 2em; } .prose h3 { margin-top: 1.6em; }
.prose figure { margin: 1.6em 0; }
.prose figure img, .prose figure video { width: 100%; border-radius: 18px; display: block; background: #2b2420; }
.prose figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding: 14px 20px; border-inline-start: 4px solid var(--rose); background: var(--sand-soft); border-radius: 12px; font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--sand); margin: 2em 0; }
.mag-cta { margin: 24px 0 36px; }

/* admin: magazine editor */
.mag-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.mag-split { display: grid; gap: 16px; }
@media (min-width: 1100px) { .mag-split { grid-template-columns: 1fr 1fr; align-items: start; } }
.mag-preview { background: #fff; border: 1px solid var(--sand); border-radius: 16px; padding: 16px 20px; max-height: 70vh; overflow: auto; }
.mag-preview img, .mag-preview video { max-width: 100%; border-radius: 12px; }

/* home: slider, categories, personal band, trust strip */
.btn-light { background: var(--sand); color: var(--cocoa); border-color: var(--sand); }
.btn-light:hover { background: #fff; border-color: var(--cocoa); }
.home .site-header { position: absolute; inset-inline: 0; top: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; z-index: 20; }
.home .notice-bar { position: relative; z-index: 21; }
.search-bar { background: rgba(253, 246, 237, .97); border-top: 1px solid var(--sand); padding: 12px 0; }
.search-bar[hidden] { display: none; }
.search-bar .container { display: flex; gap: 10px; height: auto; }
.search-bar .input { flex: 1; }
.hero-slider { position: relative; overflow: hidden; background: var(--sand-soft); height: clamp(460px, 62vw, 680px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; display: flex; align-items: center; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1) scale(1.02); }
.hero-slide.is-active > img { animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scaleX(-1) scale(1.02); } to { transform: scaleX(-1) scale(1.09); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(253, 246, 237, .93) 0%, rgba(253, 246, 237, .72) 38%, rgba(253, 246, 237, 0) 72%); }
.hero-slide .container { position: relative; padding-top: 40px; }
.hero-copy { max-width: 480px; display: grid; gap: 18px; justify-items: start; color: var(--cocoa); }
.hero-copy h1, .hero-copy h2 { margin: 0; color: inherit; font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.3; font-weight: 600; }
.hero-copy p { margin: 0; font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--muted); }
.hero-controls { position: absolute; inset-inline: 0; bottom: 28px; }
.hero-controls .container { display: flex; align-items: center; gap: 12px; height: auto; }
.hero-count { display: flex; align-items: center; gap: 10px; color: var(--cocoa); font-weight: 600; margin-inline-end: 22px; }
.hero-count i { width: 44px; height: 1.5px; background: var(--cocoa); opacity: .6; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--cocoa); background: rgba(253, 246, 237, .6); color: var(--cocoa); font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.hero-arrow:hover { background: #fff; }
@media (max-width: 639px) { .hero-shade { background: linear-gradient(0deg, rgba(253, 246, 237, .95) 0%, rgba(253, 246, 237, .8) 50%, rgba(253, 246, 237, .1) 100%); } .hero-slide { align-items: flex-end; padding-bottom: 90px; } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } .hero-slide.is-active > img { animation: none; } }

.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 14px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-tile { display: grid; gap: 8px; text-decoration: none; text-align: center; }
.cat-pic { display: block; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-soft); border: 1px solid var(--sand); }
.cat-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover .cat-pic img { transform: scale(1.04); }
.cat-name { font-weight: 700; }

.personal { display: grid; gap: 16px; }
.personal > div { background: var(--sand-soft); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 10px; justify-items: start; align-content: start; }
.personal h2 { margin: 0; }
.personal p { margin: 0; }
@media (min-width: 760px) { .personal { grid-template-columns: 1fr 1fr; } }

.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust li { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 22px 12px 18px; background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.trust li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trust .ti { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-soft); color: var(--cocoa); margin-bottom: 6px; position: relative; }
.trust .ti::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--rose); opacity: 0; transform: scale(.85); }
.trust li:hover .ti::after { animation: trustring 1.2s ease-out infinite; }
@keyframes trustring { from { opacity: .8; transform: scale(.9); } to { opacity: 0; transform: scale(1.35); } }
.trust b { font-size: 1.02rem; }
.trust span:not(.ti) { color: var(--muted); font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { .trust li, .trust li:hover { transition: none; transform: none; } .trust li:hover .ti::after { animation: none; } }
.home .site-header .icon-btn:hover { background: rgba(255, 255, 255, .55); }
.home .site-header .icon-btn.cart-btn { background: transparent; }
.home .search-bar .input { color: var(--ink); }

/* product lists: picture first, name and price under it, a heart for the favourites */
.shop-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 8px 0 18px; }
.shop-bar nav.chips { margin: 0; }
nav.chips a.chip[aria-current="page"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
.sortf .select { width: auto; min-width: 150px; border-radius: var(--pill); padding-block: 8px; }
.pcard { position: relative; }
.pc-link { display: grid; gap: 10px; text-decoration: none; }
.pc-thumb { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-soft); display: grid; place-items: center; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pc-thumb.plain { padding: 16%; } .pc-thumb.plain img { object-fit: contain; }
.pc-link:hover .pc-thumb img { transform: scale(1.04); }
.pc-body { display: grid; gap: 2px; }
.pc-body .name { font-weight: 700; }
.fav { position: absolute; top: 10px; inset-inline-end: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(253, 246, 237, .85); color: var(--cocoa); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); transition: transform .15s, background .2s; }
.fav:hover { background: #fff; transform: scale(1.08); }
.fav[aria-pressed="true"] { color: #c0605f; }
.fav[aria-pressed="true"] svg { fill: currentColor; }
@media (min-width: 980px) { .product-grid:has(.pcard) { grid-template-columns: repeat(3, 1fr); } }
/* wide screens: the photo takes the left part and melts into the cream where the words are */
@media (min-width: 900px) {
  .hero-slider { background: #FBF3E8; }
  .hero-slide > img { inset-inline: auto; left: 0; width: 68%; -webkit-mask-image: linear-gradient(to left, #000 62%, transparent 100%); mask-image: linear-gradient(to left, #000 62%, transparent 100%); }
  .hero-shade { background: none; }
}
.home .site-header { background: linear-gradient(180deg, rgba(251, 243, 232, .85), rgba(251, 243, 232, 0)); }

/* product page: pictures with a thumbnail column, price and rating, tabs, reviews, related products */
.pdp { display: grid; gap: 28px; margin-top: 8px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.15fr 1fr; gap: 48px; } }
.pdp-gallery { display: flex; flex-direction: column-reverse; gap: 12px; min-width: 0; }
@media (min-width: 640px) { .pdp-gallery { flex-direction: row; align-items: flex-start; } }
.thumbs-col { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; margin: 0; justify-content: flex-start; }
@media (min-width: 640px) { .thumbs-col { flex-direction: column; flex-wrap: nowrap; } }
.thumbs-col .thumb-btn { width: 64px; height: 64px; flex: none; }
.thumbs-col .thumb-btn img { object-fit: contain; }
.thumb-btn.on { border-color: var(--cocoa); box-shadow: 0 0 0 1px var(--cocoa); }
.pdp-main { position: relative; width: 100%; min-width: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-soft); }
@media (min-width: 640px) { .pdp-main { flex: 1; width: auto; } }
.pdp-main > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.pdp-main > img[src$=".svg"] { padding: 12%; }
.pdp-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(253, 246, 237, .88); color: var(--cocoa); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pdp-arrow.prev { inset-inline-start: 10px; } .pdp-arrow.next { inset-inline-end: 10px; }
.pdp-arrow:hover { background: #fff; }
.pdp-info { display: grid; gap: 14px; align-content: start; }
.pdp-info h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.3; }
.pdp-price { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 6px; }
.pdp-price .price { font-size: 1.6rem; }
.pdp-rate { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star { fill: none; stroke: #c9a46a; } .star.on { fill: #d9a441; stroke: #d9a441; }
.trust.t3 { grid-template-columns: repeat(3, 1fr); margin: 36px 0 8px; }
.trust.t3 li { background: transparent; box-shadow: none; border: 0; border-inline-start: 1px solid var(--sand); border-radius: 0; }
.trust.t3 li:first-child { border-inline-start: 0; }
.trust.t3 li:hover { transform: none; box-shadow: none; }
.ptabs { margin-top: 28px; }
.ptab-list { display: flex; gap: 6px; border-bottom: 1px solid var(--sand); overflow-x: auto; }
.ptab-list button { border: 0; background: none; padding: 12px 18px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ptab-list button[aria-selected="true"] { color: var(--cocoa); border-bottom-color: var(--cocoa); font-weight: 800; }
.ptab-panel { padding: 22px 0 8px; }
.ptab-panel[hidden] { display: none; }
.ptab-desc { display: grid; gap: 22px; align-items: start; }
@media (min-width: 760px) { .ptab-desc:has(img) { grid-template-columns: 1.4fr 1fr; } }
.ptab-desc img { display: block; width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: contain; background: var(--sand-soft); }
.spec { list-style: none; margin: 0; padding: 0; display: grid; }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sand); }
.spec span { color: var(--muted); }
.rev-sum { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.rev-big { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.rev-list { display: grid; gap: 14px; margin-bottom: 26px; }
.rev { background: var(--sand-soft); border-radius: var(--radius); padding: 14px 18px; }
.rev-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rev p { margin: 8px 0 0; }
.rev-form { display: grid; gap: 12px; max-width: 560px; }
.rev-form h3 { margin: 0; }
.star-input { display: flex; gap: 4px; }
.star-input button { border: 0; background: none; padding: 2px; cursor: pointer; }
.star-input svg { width: 30px; height: 30px; }
.pdp-related { margin-top: 44px; padding-bottom: 20px; }

.about-story { display: grid; grid-template-areas: "title" "portraits" "copy"; align-items: start; gap: 20px; max-width: 1060px; }
.about-story h1 { grid-area: title; margin: 0; }
.about-copy { grid-area: copy; max-width: 62ch; line-height: 2; font-size: 1.1rem; }
.about-copy > p:first-child { margin-top: 0; }
.about-copy figure { margin-inline: 0; }
.about-copy img { max-width: 100%; height: auto; }
.about-portraits { grid-area: portraits; min-width: 0; margin: 0; padding: 10px; background: var(--sand-soft); border-radius: var(--radius-xl); }
.about-portrait-pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: end; gap: 8px; }
.about-portrait-pair img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: var(--radius-lg); }
.about-portrait-pair::before { content: ""; grid-area: 1 / 1; align-self: stretch; background: #fcf1de; border-radius: var(--radius-lg); }
.about-portrait-pair img:first-child { grid-area: 1 / 1; aspect-ratio: 1; border-start-start-radius: 0; border-start-end-radius: 0; mask-image: linear-gradient(to bottom, transparent, #000 7%); }
.about-portrait-pair img:last-child { grid-area: 1 / 2; }
@media (min-width: 800px) {
  .about-story { grid-template: "title portraits" auto "copy portraits" 1fr / minmax(0, 1fr) minmax(0, 42%); column-gap: clamp(32px, 5vw, 64px); }
}

/* ── the parent's own page: kid tabs, photos, codes, tickets ── */
.kid-tabs { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; }
.kid-tab { flex: 0 0 auto; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 2px solid transparent; border-radius: var(--radius); background: var(--card, #fff); color: inherit; text-decoration: none; cursor: pointer; font: inherit; }
.kid-tab.on { border-color: var(--cocoa); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.kid-tab b { font-size: .85rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kid-pic { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--cream, #f6efe7); display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: var(--cocoa); }
.kid-pic img { width: 100%; height: 100%; object-fit: cover; }
.kid-tab.add .kid-pic { border: 2px dashed currentColor; background: none; opacity: .6; }
.photo-pick { display: flex; align-items: center; gap: 14px; }
.photo-frame { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--cream, #f6efe7); display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--cocoa); flex: 0 0 auto; }
.photo-frame.sq { border-radius: 16px; }
.photo-frame.tap { cursor: pointer; user-select: none; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.house-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 6px 0 14px; }
.sugg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.sugg { display: flex; flex-direction: column; gap: 8px; padding: 10px; text-decoration: none; color: inherit; }
.sugg img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.code-box { font-size: 1.8rem; font-weight: 800; letter-spacing: .15em; text-align: center; padding: 14px; border: 2px dashed var(--cocoa); border-radius: var(--radius); }
.tmsg { padding: 10px 12px; border-radius: 12px; background: var(--cream, #f6efe7); }
.tmsg.admin { background: #e8f1ea; }
