/* Keramika Zdeňka Orlíková – dark, warm theme carried over from the old site */
:root {
  --bg: #1b1b1b;
  --bg-2: #232323;
  --bg-3: #2c2b29;
  --line: #3a3835;
  --text: #ece8e1;
  --muted: #a8a299;
  --gold: #e4d295;
  --gold-2: #c9b46f;
  --danger: #e88b7a;
  --ok: #a9d18e;
  --radius: 14px;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff3c4; }
h1, h2, h3, .h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3, .h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: #d8d2c7; max-width: 46rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2:not(:first-child) { margin-top: 2rem; }
.note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--gold); color: #1b1b1b; border: 1px solid var(--gold);
  font: 500 1rem/1 var(--sans); letter-spacing: .02em; padding: .95em 1.6em; border-radius: 999px;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: #f1e3b2; color: #111; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: rgba(228, 210, 149, .12); color: var(--gold); }
.btn--small { padding: .7em 1.2em; font-size: .95rem; }
.link-arrow { text-decoration: none; font-weight: 400; white-space: nowrap; }
.link-arrow::after { content: ' →'; }
.link-arrow--back { display: inline-block; margin-top: 1.5rem; }
.link-arrow--back::after { content: ''; }
.link-arrow--back::before { content: '← '; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(27, 27, 27, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.topbar.is-scrolled { border-color: var(--line); background: rgba(27, 27, 27, .95); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.25; }
.brand img { height: 42px; width: auto; }
.brand strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; letter-spacing: .02em; text-transform: none; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; padding: .55em .9em; border-radius: 999px; font-weight: 400; }
.nav a:hover, .nav a[aria-current] { color: var(--gold); background: rgba(255, 255, 255, .05); }
.nav__cart { display: inline-flex; align-items: center; gap: .4em; border: 1px solid var(--line); margin-left: 6px; }
.cart-count { background: var(--gold); color: #111; font-size: .75rem; font-weight: 600; min-width: 1.5em; height: 1.5em; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 .35em; }
.cart-count[hidden] { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); content: ''; transition: transform .2s;
}
.nav-toggle span:first-child { top: 21px; }
.nav-toggle span:first-child::before { left: 0; top: -7px; }
.nav-toggle span:first-child::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded='true'] span:first-child { background: transparent; }
.nav-toggle[aria-expanded='true'] span:first-child::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .js .nav-toggle { display: block; }
  .js .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 20px 20px; background: #1b1b1b; border-bottom: 1px solid var(--line); display: flex;
    visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0);
    transition: clip-path .32s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, visibility 0s linear .32s; }
  .js .nav.is-open { visibility: visible; opacity: 1; clip-path: inset(0 0 -2px 0); transition: clip-path .38s cubic-bezier(.2, .7, .2, 1), opacity .2s ease, visibility 0s; }
  /* menu items slide in one after another when the panel opens */
  .js .nav a { opacity: 0; transform: translateY(-8px); transition: opacity .15s ease, transform .15s ease; }
  .js .nav.is-open a { opacity: 1; transform: none; transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1), color .2s, background .2s; }
  .js .nav.is-open a:nth-child(1) { transition-delay: .06s, .06s, 0s, 0s; }
  .js .nav.is-open a:nth-child(2) { transition-delay: .1s, .1s, 0s, 0s; }
  .js .nav.is-open a:nth-child(3) { transition-delay: .14s, .14s, 0s, 0s; }
  .js .nav.is-open a:nth-child(4) { transition-delay: .18s, .18s, 0s, 0s; }
  .js .nav.is-open a:nth-child(5) { transition-delay: .22s, .22s, 0s, 0s; }
  .nav a { padding: .85em 1em; }
  .nav__cart { margin: 6px 0 0; justify-content: center; }
  .brand span { font-size: .7rem; }
  .brand strong { font-size: 1rem; }
  .nav { flex-wrap: wrap; }
}

/* ---- hero ---- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; margin-top: -72px; padding-top: 72px; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(27,27,27,.55) 0%, rgba(27,27,27,.1) 35%, rgba(27,27,27,.85) 85%, var(--bg) 100%); }
.hero__content { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 72px; }
.hero h1, .hero__lead, .hero .eyebrow { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero__text { max-width: 640px; }
.hero h1 { max-width: 14ch; font-size: clamp(2.5rem, 7vw, 5rem); }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 34rem; color: #e6e0d6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
/* light parallax: native scroll-driven animation where supported (smooth in Safari), site.js fallback otherwise */
@media (prefers-reduced-motion: no-preference) {
  .hero__bg, .hero__text { will-change: transform; }
  @supports (animation-timeline: scroll()) {
    .hero__bg, .hero__text { animation: linear both; animation-timeline: scroll(root); animation-range: 0 min(88vh, 760px); }
    .hero__bg { animation-name: hero-bg; }
    .hero__text { animation-name: hero-text; }
  }
}
@keyframes hero-bg { to { transform: translate3d(0, 30%, 0); } }
@keyframes hero-text { to { transform: translate3d(0, -10vh, 0); } }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--gold); font-weight: 500; margin-bottom: 1rem; }

/* ---- sections ---- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section--alt { background: var(--bg-2); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.page-head { padding: clamp(40px, 7vw, 80px) 0 0; }
.page-head--center { text-align: center; padding-bottom: 40px; }
.page-head--center .lead { margin-left: auto; margin-right: auto; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 .35em; opacity: .6; }

.about { padding: clamp(56px, 8vw, 104px) 0; }
.about__grid, .feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__img img, .feature figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__img, .feature figure { margin: 0; }
.about__sub { margin-top: 2rem; color: var(--gold); }
.feature { padding: clamp(56px, 8vw, 104px) 0; background: radial-gradient(ellipse at 20% 30%, #2b2722 0%, var(--bg) 70%); }
.feature .btn { margin-top: 1.5rem; }
@media (max-width: 820px) {
  .about__grid, .feature__grid { grid-template-columns: 1fr; }
}

/* ---- grids & cards ---- */
.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

.cat { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-3); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; filter: brightness(.78); }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.75)); }
.cat__name { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; font-family: var(--serif); font-size: 1.5rem; color: #fff; line-height: 1.15; }
.cat:hover img { transform: scale(1.05); filter: brightness(.95); }

.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.section--alt .card { background: var(--bg-3); }
.card:hover { border-color: #57524a; transform: translateY(-2px); }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-family: var(--sans); font-weight: 400; font-size: 1.08rem; line-height: 1.35; margin: 0; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--gold); }
.card__price { color: var(--gold); margin: 0 0 6px; font-weight: 400; }
.card .add { margin-top: auto; }
.card__link { margin-top: auto; align-self: flex-start; }
.card__desc { color: #cfc9be; font-size: .95rem; line-height: 1.5; margin: 0 0 8px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

/* ---- add to cart ---- */
.add { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.add select, .add input { flex: 1 1 140px; }
.add--compact .btn { flex: 0 0 auto; }
.add--compact select { flex-basis: 100%; }
.add__qty { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.add__qty input { width: 90px; flex: none; }
/* Detail page: the button matches the fields' height (same font, line-height, padding and border as inputs). */
.add:not(.add--compact) .btn { font-size: 1rem; line-height: 1.4; padding: .75em 1.4em; }
@media (max-width: 560px) {
  .add:not(.add--compact) select { flex-basis: 100%; }
  .add:not(.add--compact) .btn { flex: 1 1 auto; }
}

/* ---- forms ---- */
input, select, textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--text); background: #151515; border: 1px solid var(--line);
  border-radius: 10px; padding: .75em .9em; width: 100%; min-height: 46px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2em; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-2); outline: none; box-shadow: 0 0 0 3px rgba(228, 210, 149, .15); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .92rem; color: #cfc9be; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { justify-self: start; }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice legend { font-size: .92rem; color: #cfc9be; margin-bottom: 6px; padding: 0; }
.form .choice label { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--text); cursor: pointer; }
.choice input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--gold-2); }
/* The address is asked for only when shipping is chosen; without :has() support it simply stays visible. */
.cart__form:not(:has([name="delivery"][value="ship"]:checked)) .cart__address { display: none; }
.hp { position: absolute !important; left: -5000px; }
.alert { padding: .8em 1em; border-radius: 10px; border: 1px solid; }
.alert--error { border-color: var(--danger); color: var(--danger); background: rgba(232, 139, 122, .08); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---- product detail ---- */
.product__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.product__media { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.product__img { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--bg-3); }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__media > img { grid-column: 1 / -1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.product__img--main { grid-column: 1 / -1; aspect-ratio: 3 / 2; border-radius: var(--radius); }
.product__info { position: sticky; top: 96px; }
.product__info h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.product__price { font-size: 1.35rem; color: var(--gold); margin-bottom: 1.2rem; }
.product__info .add { margin: 1.5rem 0 0; }
.product__more { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.product__more summary { cursor: pointer; color: var(--gold); }
.product__more .prose { margin-top: .8rem; color: #cfc9be; }
.attrs { margin: 1.2rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.attrs div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: .55em 0; border-bottom: 1px solid var(--line); }
.attrs dt { color: var(--muted); }
.attrs dd { margin: 0; }
@media (max-width: 860px) {
  .product__grid { grid-template-columns: 1fr; }
  .product__info { position: static; }
}

/* ---- gallery ---- */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery__item { display: block; margin-bottom: 16px; border-radius: 10px; overflow: hidden; break-inside: avoid; }
.gallery__item img { width: 100%; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__cta { text-align: center; margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: .5em 1.1em; color: var(--text); text-decoration: none; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.empty { color: var(--muted); }

/* ---- cart ---- */
.cart__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cart__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.cart__item { display: grid; grid-template-columns: 96px 1fr 80px 100px 36px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart__item img { border-radius: 8px; width: 96px; height: 64px; object-fit: cover; }
.cart__name { display: grid; gap: 2px; }
.cart__name a { color: var(--text); text-decoration: none; }
.cart__name .muted { font-size: .88rem; }
.cart__qty input { text-align: center; padding: .5em; min-height: 40px; }
.cart__line { text-align: right; font-weight: 400; color: var(--gold); }
.cart__total { text-align: right; font-size: 1.2rem; margin-top: 1rem; }
.cart__form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.cart__empty { text-align: center; padding: 40px 0; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--muted); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }
@media (max-width: 900px) {
  .cart__grid { grid-template-columns: 1fr; }
  .cart__form { position: static; }
}
@media (max-width: 560px) {
  .cart__item { grid-template-columns: 72px 1fr 36px; grid-template-areas: 'img name x' 'img qty line'; row-gap: 8px; }
  .cart__item > a { grid-area: img; }
  .cart__item img { width: 72px; height: 72px; }
  .cart__name { grid-area: name; }
  .cart__qty { grid-area: qty; max-width: 80px; }
  .cart__line { grid-area: line; }
  .cart__item .icon-btn { grid-area: x; }
}

/* ---- contact & footer ---- */
.contact { background: var(--bg-2); padding: clamp(56px, 8vw, 96px) 0 0; border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); }
.contact__list { margin: 1.5rem 0 0; display: grid; gap: 14px; }
.contact__list dt { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--muted); }
.contact__list dd { margin: 2px 0 0; font-size: 1.15rem; }
.contact__list a { color: var(--text); text-decoration: none; }
.contact__list a:hover { color: var(--gold); }
.map { position: relative; margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; height: 340px; border: 1px solid var(--line); border-bottom: 0; }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(90%) hue-rotate(180deg) sepia(35%) saturate(60%) brightness(95%) contrast(90%); } /* dark, warm tint to match the site */
.map__links { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.map__links a { background: rgba(27,27,27,.9); padding: .45em .9em; border-radius: 999px; font-size: .9rem; text-decoration: none; }
.footer { background: #141414; color: var(--muted); font-size: .9rem; padding: 22px 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold); }
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: #2a2825; border: 1px solid var(--gold-2); color: var(--text); padding: .6em 1em; border-radius: 12px; box-shadow: var(--shadow); transition: opacity .25s, transform .25s; width: max-content; max-width: min(360px, calc(100% - 32px)); font-size: .9rem; line-height: 1.35; text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast__title { display: block; font-size: .8em; color: var(--muted); }
.toast__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.toast__link { display: block; margin-top: .3em; white-space: nowrap; }

/* ---- floating cart (bottom right, only while the cart has items) ---- */
.cart-fab { position: fixed; right: 20px; bottom: 20px; z-index: 85; display: inline-flex; align-items: center; gap: .7em; padding: .55em 1.1em .55em .6em; background: #2a2825; color: var(--text); border: 1px solid var(--gold-2); border-radius: 999px; box-shadow: var(--shadow); text-decoration: none; line-height: 1.2;
  transform: translateY(24px) scale(.6); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), opacity .25s, background .2s; }
.cart-fab[hidden] { display: none; }
.cart-fab.is-on { transform: none; opacity: 1; pointer-events: auto; }
.cart-fab.is-on.is-tucked { transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .2s; }
.cart-fab:hover { background: #34312c; color: var(--gold); }
.cart-fab__icon { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #111; }
.cart-fab__count { position: absolute; top: -5px; right: -7px; min-width: 1.45em; height: 1.45em; padding: 0 .35em; border-radius: 999px; background: var(--text); color: #111; font-size: .72rem; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 2px #2a2825; }
.cart-fab__text { display: flex; flex-direction: column; font-weight: 500; }
.cart-fab__total { font-size: .8rem; color: var(--muted); font-weight: 400; }
.cart-fab__total:empty { display: none; }
.cart-fab.is-bump .cart-fab__icon { animation: cart-bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cart-bump { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-8deg); } 100% { transform: scale(1); } }
@media (min-width: 761px) { .cart-fab { display: none !important; } } /* desktop has the cart in the top bar */
@media (max-width: 760px) {
  .cart-fab { right: 14px; bottom: 14px; padding: 0; border-radius: 50%; }
  .cart-fab__icon { width: 54px; height: 54px; }
  .cart-fab__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* toast sits left of the floating cart, same height, slides in from the left and out towards the cart */
  body.has-cart-fab .toast { z-index: 84; left: 14px; right: 80px; bottom: 14px; width: auto; max-width: none; height: 56px; padding: 0 1em 0 1.4em; border-radius: 28px; display: flex; flex-direction: column; justify-content: center; text-align: left; transform: translateX(-24px); transition: opacity .3s, transform .35s ease-out; }
  body.has-cart-fab .toast.is-on { transform: none; }
  body.has-cart-fab .toast.is-leaving { transform: translateX(48px); transition: opacity .3s, transform .35s ease-in; }
  body.has-cart-fab .toast__name { display: block; white-space: nowrap; text-overflow: ellipsis; }
  body.has-cart-fab .toast__link { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cart-fab.is-bump .cart-fab__icon { animation: none; } }

/* ---- lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, .94); display: none; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #d8d2c7; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox__nav { display: none; }
@media (max-width: 600px) { .lightbox { padding: 56px 8px; } .lightbox__nav { top: auto !important; bottom: 12px; transform: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- blog ---- */
.wrap--narrow { max-width: 820px; }
.post-card__date, .post__date { color: var(--muted); font-size: .88rem; letter-spacing: .04em; }
.post-card__teaser { color: #cfc9be; font-size: .97rem; margin: 0 0 .4rem; }
.post-card .link-arrow { margin-top: auto; }
.post h1 { margin-top: .3rem; }
.post__cover { display: block; margin: 1.5rem 0 2rem; border-radius: var(--radius); overflow: hidden; }
.post__cover img { width: 100%; }
.post__body { font-size: 1.1rem; }
.post__body p { margin-bottom: 1.1em; }
.post__gallery { margin-top: 2rem; columns: 2 220px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 2rem; }
