:root {
  --ivory: #fcf8f2;
  --blush: #f5e4e0;
  --blush-deep: #ecc9c6;
  --rose: #b4707a;
  --rose-dark: #94525d;
  --champagne: #eadbc0;
  --ink: #4a3b3d;
  --muted: #7d6b6c;
  --line: rgba(74, 59, 61, .14);
  --display: "Playfair Display", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --sans: "Nunito Sans", system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--rose); }
p { margin: 0; }
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.script { font-family: var(--script); font-size: 30px; line-height: 1; color: var(--rose); margin-bottom: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 14px/1 var(--sans); letter-spacing: .04em; padding: 16px 32px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn--rose { background: var(--rose); color: #fff; }
.btn--rose:hover { background: var(--rose-dark); }
.btn--line { border-color: var(--rose); color: var(--rose-dark); background: transparent; }
.btn--line:hover { background: var(--rose); color: #fff; }
.btn--small { padding: 11px 20px; font-size: 13px; background: var(--blush); color: var(--rose-dark); }
.btn--small:hover { background: var(--rose); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--rose-dark); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow .icon { width: 16px; height: 16px; }

/* Header */
.topbar { background: var(--blush); color: var(--rose-dark); text-align: center; font-size: 13px; padding: 9px 16px; letter-spacing: .02em; }
.header { background: var(--ivory); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 22px 8px; }
.header__side { display: flex; gap: 4px; }
.header__side--right { justify-self: end; }
.logo { display: grid; justify-items: center; line-height: 1; }
.logo__script { font-family: var(--script); font-size: 56px; color: var(--rose-dark); line-height: .9; }
.logo__sub { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.logo--footer { justify-items: start; }
.icon-btn { position: relative; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: var(--blush); }
.cart-btn__count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.menu-btn { display: none; }
.nav { display: flex; justify-content: center; gap: 44px; padding-block: 14px 20px; font-size: 14px; letter-spacing: .06em; }
.nav a { padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover { color: var(--rose-dark); border-color: var(--rose); }
.mobile-nav { display: none; }

/* Hero */
.hero { padding: 16px 0 96px; }
.hero__frame { position: relative; }
.hero__img { width: 100%; height: clamp(440px, 52vw, 640px); object-fit: cover; object-position: center 60%; border-radius: 220px 220px 36px 36px; }
.hero__card { position: absolute; left: 48px; bottom: -56px; width: min(100%, 500px); background: var(--ivory); padding: 44px 44px 40px; border-radius: 32px; box-shadow: 0 24px 60px -24px rgba(110, 60, 70, .35); }
.hero__card h1 { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 16px; }
.hero__card > p:not(.script) { color: var(--muted); margin-bottom: 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 110px 0; }
.head { text-align: center; margin: 0 auto 60px; max-width: 640px; display: grid; justify-items: center; gap: 6px; }
.head h2 { font-size: clamp(32px, 3.8vw, 48px); }
.head__sub { color: var(--muted); margin-top: 10px; }
.flourish { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; color: var(--rose); }
.flourish i { width: 64px; height: 1px; background: var(--blush-deep); }

.favorites { background: linear-gradient(180deg, var(--ivory), var(--blush) 140%); padding-top: 140px; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.product { background: #fff; border-radius: 28px; padding: 14px 14px 22px; box-shadow: 0 10px 34px -22px rgba(110, 60, 70, .35); transition: transform .3s; display: flex; flex-direction: column; }
.product:hover { transform: translateY(-4px); }
.product__img { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 18px; background: var(--blush); }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.fav { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(252, 248, 242, .92); color: var(--rose-dark); display: grid; place-items: center; cursor: pointer; }
.fav:hover { background: var(--rose); color: #fff; }
.fav .icon { width: 18px; height: 18px; }
.product h3 { font-size: 21px; padding-inline: 8px; }
.product__meta { color: var(--muted); font-size: 13.5px; padding-inline: 8px; margin: 2px 0 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.product__bottom { margin-top: auto; }
.product__variants { min-height: 16px; margin-bottom: 10px; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline: 8px; }
.price { font-family: var(--display); font-size: 20px; color: var(--rose-dark); }

.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.gift { display: block; }
.gift--offset { margin-top: 56px; }
.gift__img { display: block; aspect-ratio: 3 / 4; border-radius: 200px 200px 28px 28px; overflow: hidden; background: var(--champagne); }
.gift__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gift:hover img { transform: scale(1.05); }
.gift__body { display: grid; justify-items: center; text-align: center; padding-top: 20px; }
.gift__body strong { font: 400 24px/1.2 var(--display); }
.gift__body small { color: var(--rose-dark); font-size: 14px; margin-top: 4px; }

.craft { background: var(--champagne); background: linear-gradient(180deg, #f0e3cb, #f6ecda); }
.craft__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.craft__media { position: relative; padding-bottom: 56px; }
.craft__main { width: 82%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px 140px 28px 28px; }
.craft__small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid #f3e8d3; }
.craft h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 20px; }
.craft__text > p:not(.script) { color: var(--muted); margin-bottom: 26px; max-width: 480px; }
.ticks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; align-items: center; gap: 14px; }
.ticks .icon { color: var(--rose); }

.monogram { padding: 110px 0; }
.monogram__grid { display: grid; grid-template-columns: .8fr 1.2fr .8fr; gap: 56px; align-items: center; background: var(--blush); border-radius: 48px; padding: 64px; width: min(100% - 48px, var(--container)); }
.ring { position: relative; width: min(100%, 260px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; border: 1px dashed var(--rose); display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--ivory); }
.ring__letters { position: relative; font-family: var(--script); font-size: 76px; color: var(--rose-dark); display: inline-flex; align-items: baseline; gap: 6px; }
.ring__letters small { font-size: 36px; color: var(--rose); }
.ring__f { position: absolute; width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--blush); color: var(--rose-dark); }
.ring__f--1 { top: -6px; left: 50%; transform: translateX(-50%); }
.ring__f--2 { bottom: 14%; left: -10px; }
.ring__f--3 { bottom: 14%; right: -10px; }
.monogram__text h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.monogram__text > p:not(.script) { color: var(--muted); margin-bottom: 24px; }
.monogram__photo { aspect-ratio: 4 / 5; border-radius: 160px 160px 24px 24px; overflow: hidden; }
.monogram__photo img { width: 100%; height: 100%; object-fit: cover; }

.reviews { padding-top: 40px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; background: #fff; border-radius: 28px; padding: 36px 32px; border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
.stars { display: flex; gap: 3px; color: #c79a5b; }
.stars { --icon-fill: currentColor; }
.stars .icon { width: 16px; height: 16px; }
.review blockquote { margin: 0; font: italic 400 19px/1.55 var(--display); }
.review figcaption { font-size: 14px; color: var(--muted); }
.note { text-align: center; margin-top: 28px; font-size: 13px; color: var(--muted); }

.newsletter { background: var(--blush); padding: 96px 0; text-align: center; }
.newsletter__inner { display: grid; justify-items: center; gap: 10px; max-width: 640px; }
.newsletter h2 { font-size: clamp(28px, 3.4vw, 42px); }
.newsletter p:not(.script) { color: var(--muted); }
.newsletter__form { display: flex; gap: 8px; width: 100%; margin-top: 22px; background: #fff; padding: 8px; border-radius: 999px; }
.newsletter__form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 0 22px; color: var(--ink); }
.newsletter__form input:focus { outline: none; }

/* Footer */
.footer { background: var(--ivory); padding: 80px 0 0; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; }
.footer__brand p { margin: 16px 0 22px; max-width: 290px; color: var(--muted); font-size: 15px; }
.footer h3 { font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose-dark); margin-bottom: 20px; }
.footer nav { display: grid; align-content: start; gap: 10px; font-size: 15px; }
.footer nav h3 { margin-bottom: 10px; }
.footer a:hover { color: var(--rose-dark); }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border: 1px solid var(--blush-deep); border-radius: 50%; display: grid; place-items: center; color: var(--rose-dark); }
.social a:hover { background: var(--blush); }
.contact { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 12px; }
.contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--rose); }
.contact.small { font-size: 13.5px; color: var(--muted); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Tablet */
@media (max-width: 1080px) {
  .nav { gap: 28px; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .craft__grid { gap: 48px; }
  .monogram__grid { grid-template-columns: 1fr 1fr; padding: 48px; }
  .monogram__photo { display: none; }
  .review-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header__inner { grid-template-columns: 44px 1fr auto; padding-block: 14px; }
  .menu-btn { display: grid; }
  .header__side--left { display: none; }
  .logo { grid-column: 2; }
  .logo__script { font-size: 44px; }
  .logo__sub { font-size: 10px; letter-spacing: .2em; }
  .nav { display: none; }
  .mobile-nav { display: grid; max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 24px; background: var(--ivory); }
  .nav-open .mobile-nav { max-height: 340px; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 14px 0; font: 400 20px/1 var(--display); border-bottom: 1px solid var(--line); }
  .hero { padding-bottom: 40px; }
  .hero__img { height: 420px; border-radius: 160px 160px 28px 28px; }
  .hero__card { position: relative; left: auto; bottom: auto; margin: -72px 12px 0; width: auto; padding: 32px 26px; }
  .section { padding: 80px 0; }
  .favorites { padding-top: 72px; }
  .gift-grid { grid-template-columns: 1fr; gap: 36px; max-width: 420px; margin-inline: auto; }
  .gift--offset { margin-top: 0; }
  .craft__grid { grid-template-columns: 1fr; }
  .craft__media { max-width: 460px; }
  .monogram { padding: 60px 0; }
  .monogram__grid { grid-template-columns: 1fr; border-radius: 32px; padding: 40px 28px; gap: 32px; text-align: center; }
  .monogram__text > p:not(.script) { margin-inline: auto; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--container)); }
  .monogram__grid { width: calc(100% - 32px); }
  .topbar { font-size: 12px; }
  .products { gap: 16px 12px; }
  .product { padding: 8px 8px 16px; border-radius: 22px; }
  .product__img { border-radius: 16px; }
  .product h3 { font-size: 18px; padding-inline: 4px; }
  .product__meta { font-size: 12.5px; padding-inline: 4px; }
  .product__foot { flex-direction: column; align-items: stretch; padding-inline: 4px; }
  .price { font-size: 18px; }
  .hero__actions .btn { flex: 1 1 100%; padding-inline: 18px; }
  .review { padding: 28px 24px; }
  .newsletter__form { flex-direction: column; border-radius: 24px; padding: 12px; }
  .newsletter__form input { padding: 14px 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Katalog a detail produktu; využívá proměnné z app.css */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 28px 0 8px; }
.breadcrumb a:hover { color: var(--rose-dark); }

.catalog { padding-bottom: 110px; }
.catalog__head { margin: 8px auto 28px; max-width: 880px; gap: 0; }
.catalog__head h1 { font-size: clamp(26px, 3.2vw, 40px); }
.catalog__intro { width: 100%; }
.catalog__head .head__sub { margin-top: 8px; }
.catalog__intro.is-clamped:not(.is-open) .head__sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.catalog__intro.is-open .head__sub { text-align: left; }
.catalog__more { margin-top: 6px; padding: 6px 4px; background: none; border: 0; font: inherit; font-size: 14px; color: var(--rose); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.catalog__more:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 700px) { .catalog__head { margin: 0 auto 18px; } .catalog__head .head__sub { font-size: 14.5px; } }
.catalog__count { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.catalog__empty { text-align: center; padding: 60px 0; color: var(--muted); }
.catalog__empty a { color: var(--rose-dark); text-decoration: underline; }

.filters { display: grid; gap: 14px; padding: 4px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.filters__label { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Obrázkové karty kategorií: na desktopu fotka nad názvem, na mobilu kompaktní horizontální karta */
.cats__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.cats__grid > li { width: 172px; display: flex; }
.cat { position: relative; display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(74, 59, 61, .12); border-color: var(--rose); }
.cat:focus-visible { outline: 2px solid var(--rose-dark); outline-offset: 3px; }
.cat__img { display: block; aspect-ratio: 4 / 3; background: var(--blush); overflow: hidden; }
.cat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat__img--ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--blush), var(--champagne)); color: var(--rose); }
.cat__img--ph .icon { width: 36%; height: 36%; opacity: .55; }
.cat__body { display: block; padding: 9px 8px 11px; text-align: center; min-width: 0; }
.cat__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font: 500 15px/1.25 var(--display); }
.cat__count { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.cat.is-active { border-color: var(--rose); box-shadow: 0 0 0 2px var(--rose); }
.cat.is-active .cat__name { color: var(--rose-dark); }
.cat.is-active::after { content: ""; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23fff%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12.5l4.5 4.5L19 7.5%27/%3E%3C/svg%3E") center / 14px no-repeat; }

.subcats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.subcats .filters__label { margin-right: 4px; }
.subcats .chip { padding: 6px 13px; font-size: 13px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.toolbar__field { display: flex; align-items: center; gap: 10px; }
.toolbar label { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toolbar select { padding: 9px 36px 9px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background-color: #fff; font: inherit; font-size: 13.5px; color: var(--ink); max-width: 100%; }
.toolbar select:focus-visible { outline: 2px solid var(--rose-dark); outline-offset: 2px; }

@media (max-width: 700px) {
  .cats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cats__grid > li { width: auto; }
  .cat { flex-direction: row; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; min-height: 56px; }
  .cat:hover { transform: none; box-shadow: none; }
  .cat__img { flex: none; width: 48px; height: 48px; aspect-ratio: 1; border-radius: 9px; }
  .cat__body { padding: 0; text-align: left; flex: 1; }
  .cat__name { font-size: 13.5px; -webkit-line-clamp: 3; }
  .cat.is-active { box-shadow: none; background: var(--blush); }
  .cat.is-active::after { top: 6px; right: 6px; width: 16px; height: 16px; background-size: 10px; }
  .toolbar { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .toolbar__field { flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
  .toolbar select { width: 100%; }
}
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; background: #fff; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--rose); color: var(--rose-dark); }
.chip.is-active { background: var(--rose); border-color: var(--rose); color: #fff; }
.chip--child::before { content: "– "; }

.swatches { display: flex; gap: 6px; list-style: none; padding: 0 8px; margin: 0; }
.swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(74, 59, 61, .22); }
.price small { font: 400 13px var(--sans); color: var(--muted); }
.stock { font-size: 12.5px; color: var(--muted); text-align: right; }
.stock--in_stock { color: #5a7d5a; }
.stock--unavailable { color: #a0615a; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pagination__item { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.pagination__item:hover { border-color: var(--rose); }
.pagination__item.is-active { background: var(--rose); border-color: var(--rose); color: #fff; }

.detail { padding-bottom: 110px; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; padding-top: 24px; align-items: start; }
.gallery { position: sticky; top: 24px; }
.gallery__main { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--blush); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 12px; list-style: none; padding: 0; margin: 14px 0 0; }
.thumb { width: 72px; aspect-ratio: 1; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--blush); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.is-active { border-color: var(--rose); }

.detail__info h1 { font-size: clamp(32px, 3.6vw, 46px); }
.detail__price { font: 500 28px var(--display); color: var(--rose-dark); margin: 10px 0 16px; }
.detail__lead { color: var(--muted); max-width: 46ch; }
.variants { border: 0; padding: 0; margin: 28px 0 0; }
.variants legend { padding: 0; font-size: 14px; margin-bottom: 12px; }
.variants__list { display: flex; flex-wrap: wrap; gap: 12px; }
.variant { width: 38px; height: 38px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(74, 59, 61, .22); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
.variant:hover { outline-color: var(--blush-deep); }
.variant.is-active { outline-color: var(--rose); }
.variant.is-unavailable { opacity: .45; }
.variant--text { width: auto; height: auto; padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.variant--text.is-active { background: var(--rose); color: #fff; }

.availability { display: flex; align-items: center; gap: 10px; margin: 26px 0 18px; font-size: 15px; }
.availability__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.availability--in_stock .availability__dot { background: #6c9a6c; }
.availability--made_to_order .availability__dot { background: #c9a45c; }
.availability--unavailable .availability__dot { background: #b46a64; }
.detail__cta { min-width: 240px; }
.detail__cta:disabled { background: var(--blush-deep); cursor: not-allowed; }
.detail__sku { color: var(--muted); font-size: 13px; margin-top: 14px; }
.detail__desc { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.detail__desc h2 { font-size: 22px; margin-bottom: 10px; }

@media (max-width: 900px) {
  .detail__grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery { position: static; }
  .detail__cta { width: 100%; }
}

#cart-widget, .cart-widget { display: contents; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link-btn { border: 1px solid var(--rose); background: transparent; padding: 4px 12px; border-radius: 999px; font: 600 13px/1.4 var(--sans); color: var(--rose-dark); cursor: pointer; transition: background .2s, color .2s; }
.link-btn:hover { background: var(--rose); color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 13px; gap: 8px; }
.btn--sm .icon { width: 16px; height: 16px; }
.btn--ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn--ghost:hover { background: var(--blush); color: var(--rose-dark); }

.flash { position: relative; }
.flash:empty { display: none; }
.flash__item { margin: 16px 0 0; padding: 12px 18px; border-radius: 12px; background: var(--blush); color: var(--ink); font-size: 15px; }
.flash__item--error { background: #fbe9e9; color: #8a2f2f; }

.detail__buy { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.detail__qty { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.detail__qty input { width: 76px; padding: 12px; border: 1px solid var(--blush); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; }
.detail__buy .detail__cta { flex: 1 1 200px; align-self: flex-end; }

.mini-cart__backdrop { position: fixed; inset: 0; background: rgba(74, 59, 61, .35); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.mini-cart__backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.mini-cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); background: #fff; z-index: 100; padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; box-shadow: -8px 0 30px rgba(0, 0, 0, .12); transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.22, 1, .36, 1), visibility 0s .35s; }
.mini-cart.is-open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) { .mini-cart, .mini-cart__backdrop { transition: none; } }
.mini-cart__head { display: flex; justify-content: space-between; align-items: center; }
.mini-cart__head h2 { margin: 0; font: 500 24px var(--display); }
.mini-cart__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mini-cart__item { display: flex; gap: 12px; font-size: 14px; }
.mini-cart__item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.mini-cart__item div { display: flex; flex-direction: column; }
.mini-cart__variant { color: var(--muted); }
.mini-cart__warn { color: #8a2f2f; }
.mini-cart__total { display: flex; justify-content: space-between; margin: 0; }
.mini-cart__empty { color: var(--muted); }

.cart-page__title { font: 500 36px var(--display); margin: 20px 0 24px; }
.cart__empty { text-align: center; padding: 60px 0; display: grid; gap: 20px; justify-items: center; }
.cart__notice { padding: 12px 18px; border-radius: 12px; background: #fbe9e9; color: #8a2f2f; }
.cart__layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.cart__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 16px; background: #fff; border-radius: 16px; border: 1px solid transparent; }
.cart-line.has-problem { border-color: #e3b4b4; }
.cart-line__img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.cart-line__name { font: 500 20px var(--display); margin: 0; }
.cart-line__name a { color: inherit; text-decoration: none; }
.cart-line p { margin: 2px 0 0; font-size: 14px; }
.cart-line__variant, .cart-line__unit, .cart__hint { color: var(--muted); }
.cart-line p.cart-line__avail { margin: 4px 0 0; gap: 8px; font-size: 14px; }
.cart-line__warn { color: #8a2f2f; }
.cart-line__price-note { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--blush); font-size: 14px; }
.cart-line__side { display: grid; gap: 8px; justify-items: end; align-content: center; }
.cart-line__controls { display: flex; align-items: center; gap: 6px; }
.cart-line__controls form { margin: 0; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--blush); border-radius: 999px; background: #fff; }
.qty__btn { width: 36px; height: 36px; border: 0; background: transparent; color: var(--rose-dark); border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.qty__btn .icon { width: 16px; height: 16px; }
.qty__btn:hover:not(:disabled) { background: var(--blush); }
.qty__btn:disabled { color: var(--muted); opacity: .4; cursor: not-allowed; }
.qty__value { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty[aria-busy="true"] { opacity: .6; pointer-events: none; }
.icon-action { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.icon-action .icon { width: 18px; height: 18px; }
.icon-action:hover { background: var(--blush); color: var(--rose-dark); }
.cart__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 20px; }
.cart__clear summary { list-style: none; display: inline-flex; cursor: pointer; }
.cart__clear summary::-webkit-details-marker { display: none; }
.cart__clear form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; }
.cart__summary { background: #fff; border-radius: 16px; padding: 24px; display: grid; gap: 16px; position: sticky; top: 16px; align-self: start; }
.cart__summary h2 { margin: 0; font: 500 24px var(--display); }
.cart__rows { margin: 0; display: grid; gap: 10px; font-size: 15px; }
.cart__rows div { display: flex; justify-content: space-between; gap: 12px; }
.cart__rows dt { color: var(--muted); }
.cart__rows dd { margin: 0; }
.cart__tbd { color: var(--muted); font-style: italic; }
.cart__subtotal { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-top: 16px; border-top: 1px solid var(--blush); }
.cart__subtotal strong { font: 500 26px var(--display); }
.cart__cta { gap: 10px; }
.cart__cta .icon { width: 16px; height: 16px; }
.cart__summary .btn[disabled] { opacity: .55; cursor: not-allowed; }
.cart__hint { margin: 0; font-size: 13px; text-align: center; }

.cart-page.section { padding: 30px 0 70px; }
.checkout { display: grid; gap: 20px; }
.checkout__group { margin: 0; }
.checkout__group fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.checkout__group legend { padding: 0; margin-bottom: 10px; font: 500 22px var(--display); float: left; width: 100%; }
.checkout__group legend + * { clear: both; }
.checkout__hint, .checkout__empty { margin: 0; color: var(--muted); font-size: 14px; }
.choice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid transparent; border-radius: 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.choice:hover { border-color: var(--blush); }
.choice:has(.choice__input:checked) { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.choice:has(.choice__input:focus-visible) { outline: 2px solid var(--rose-dark); outline-offset: 2px; }
.choice.is-disabled { opacity: .55; cursor: not-allowed; }
.choice__input { appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--rose); border-radius: 50%; display: grid; place-items: center; background: #fff; }
.choice__input::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); transform: scale(0); transition: transform .15s; }
.choice__input:checked::before { transform: scale(1); }
.choice__body { display: grid; gap: 2px; }
.choice__name { font-weight: 600; }
.choice__desc { color: var(--muted); font-size: 14px; }
.choice__price { font-weight: 600; white-space: nowrap; }
.checkout [aria-busy='true'] .choice { cursor: progress; }

.cart__totals { display: grid; gap: 16px; }
.cart__goods { font-size: 15px; margin-bottom: -6px; }
.cart__goods summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; transition: background .2s; }
.cart__goods summary::-webkit-details-marker { display: none; }
.cart__goods summary:hover { background: var(--blush); }
.cart__goods summary:focus-visible { outline: 2px solid var(--rose-dark); outline-offset: 2px; }
.cart__goods-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.cart__goods-label .icon { width: 16px; height: 16px; transition: transform .2s; }
.cart__goods[open] .cart__goods-label .icon { transform: rotate(180deg); }
.cart__goods-list { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 12px; max-height: 320px; overflow-y: auto; }
.cart__goods-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.cart__goods-list img, .cart__goods-ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--blush); }
.cart__goods-name { display: grid; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.cart__goods-name small { color: var(--muted); font-size: 13px; }
.cart__goods-price { font-size: 14px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .cart__goods summary, .cart__goods-label .icon { transition: none; } }
.steps { margin: 0 0 8px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.steps__item { flex: 1; position: relative; display: flex; justify-content: center; }
.steps__item + .steps__item::before { content: ''; position: absolute; top: 17px; right: 50%; width: 100%; height: 1px; background: var(--blush); z-index: 0; }
.steps__item--done + .steps__item::before, .steps__item--current::before { background: var(--rose); }
.steps__link { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted); text-decoration: none; font-size: 14px; }
.steps__num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--ivory); border: 1px solid var(--blush); color: var(--muted); transition: background .2s, color .2s; }
.steps__num .icon { width: 16px; height: 16px; }
.steps__item--current .steps__num { background: var(--rose); border-color: var(--rose); color: #fff; }
.steps__item--current .steps__link { color: var(--ink); font-weight: 600; }
.steps__item--done .steps__num { background: var(--blush); border-color: var(--rose); color: var(--rose-dark); }
a.steps__link:hover .steps__num { background: var(--rose); color: #fff; }
@media (max-width: 520px) { .steps__link { font-size: 12px; } .steps__num { width: 30px; height: 30px; } .steps__item + .steps__item::before { top: 15px; } }
@media (max-width: 800px) {
  .cart__layout { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line__img { width: 72px; height: 72px; }
  .cart-line__side { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: start; align-items: center; }
  .cart-line__total { justify-self: end; }
  .cart__summary { position: static; }
  .cart__actions { flex-direction: column; align-items: stretch; }
  .cart__actions .btn { width: 100%; }
}

/* Krok 3: údaje a potvrzení */
.order-form .cart__main { gap: 20px; }
.order-section { background: #fff; border: 0; border-radius: 16px; padding: 24px; margin: 0; min-width: 0; display: grid; gap: 14px; }
.order-section legend, .order-section > h2 { float: left; width: 100%; padding: 0; margin: 0 0 4px; font: 500 22px var(--display); }
.order-section legend + * { clear: both; }
.order-section h3 { margin: 0 0 4px; font-size: 14px; color: var(--muted); font-weight: 600; }
.order-section p { margin: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--rose-dark); outline-offset: 1px; border-color: var(--rose); }
.field.has-error input, .field.has-error textarea { border-color: #c25b5b; }
.field__error { margin: 0; font-size: 13px; color: #8a2f2f; }
.order-country { color: var(--ink); font-size: 15px; }
.order-country span { color: var(--muted); font-size: 14px; margin-right: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rose); flex: none; }
.check label { font-size: 15px; line-height: 1.4; }
.check a, .order-terms a { color: var(--rose-dark); }
.order-terms { background: #fff; border-radius: 16px; padding: 20px 24px; display: grid; gap: 8px; }
.order-terms.has-error { box-shadow: 0 0 0 1px #c25b5b; }
.order-pickup-note { padding: 0 4px; }
/* Přepínání sekcí bez JS: skryté, pokud je "shodná s dodací" / není firma zaškrtnuto */
.order-section:has(#checkout_details_billingSameAsDelivery:checked) .order-billing { display: none; }
.order-section:not(:has(#checkout_details_isCompany:checked)) .order-company { display: none; }
.order-recap { max-height: none; }
.order-done { max-width: 1040px; }
.order-done__badge { width: 56px; height: 56px; margin: 0 0 12px; border-radius: 50%; background: var(--blush); color: var(--rose-dark); display: grid; place-items: center; }
.order-done__badge .icon { width: 26px; height: 26px; }
.order-done__number { margin: 0 0 24px; font-size: 18px; }
.order-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; overflow-wrap: anywhere; }
.cart__summary .btn.is-busy { opacity: .6; pointer-events: none; }
.legal { max-width: 760px; display: grid; gap: 16px; }
@media (max-width: 860px) {
    .field-grid, .order-data { grid-template-columns: 1fr; }
    .order-section { padding: 18px; }
}
.order-done .cart__summary { position: static; }

/* Plovoucí košík */
.cart-fab { position: fixed; right: max(48px, calc(env(safe-area-inset-right) + 24px)); bottom: max(56px, calc(env(safe-area-inset-bottom) + 28px)); z-index: 80; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(74, 59, 61, .35); transition: transform .2s ease, background .2s; }
.cart-fab:hover { background: var(--rose-dark); transform: translateY(-2px); }
.cart-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cart-fab .icon { width: 26px; height: 26px; }
.cart-fab__count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 11px; background: #fff; color: var(--rose-dark); border: 2px solid var(--rose); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
body[data-cart-fab="off"] .cart-fab { display: none; }
/* Místo pro tlačítko, aby nepřekrývalo konec stránky */
body[data-cart-fab="on"]:has(.cart-fab) { padding-bottom: calc(128px + env(safe-area-inset-bottom)); }
.cart-toast { position: fixed; right: max(48px, calc(env(safe-area-inset-right) + 24px)); bottom: calc(132px + env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); margin-left: auto; width: fit-content; max-width: calc(100vw - 32px); z-index: 85; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); pointer-events: none; animation: cart-toast 3.2s ease forwards; }
@keyframes cart-toast { 0% { opacity: 0; transform: translateY(8px); } 8%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .cart-toast { animation-name: cart-toast-rm; } .cart-fab { transition: none; } @keyframes cart-toast-rm { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } } }
body[data-cart-fab="off"] .cart-toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
.mini-cart { height: 100vh; height: 100dvh; padding-bottom: max(20px, env(safe-area-inset-bottom)); box-sizing: border-box; }
.mini-cart__actions { display: grid; gap: 10px; margin-top: auto; }
.mini-cart__actions .btn { min-height: 48px; justify-content: center; text-align: center; }
.mini-cart__head .icon-btn { min-width: 44px; min-height: 44px; }
.mini-cart__continue { border-color: var(--rose); color: var(--rose-dark); }
@media (max-width: 600px) { .cart-fab { right: max(28px, calc(env(safe-area-inset-right) + 12px)); bottom: max(40px, calc(env(safe-area-inset-bottom) + 20px)); } .cart-toast { right: max(28px, calc(env(safe-area-inset-right) + 12px)); bottom: calc(112px + env(safe-area-inset-bottom)); } }

