/* Pâtisserie storefront: restrained surfaces, clear buying hierarchy. */
:root { --commerce-border: #d8cbbb; --commerce-text: #65564b; }
html { scroll-padding-top: 108px; }
body .skip-link:not(:focus) { clip-path: inset(100%); }
body.body-lock .vb-chat { visibility: hidden; }
body:has(#cart-overlay.open) #toast-container { visibility: hidden; }
body:has(#checkout-form) .vb-chat { display: none; }
/* Poradce je i na detailu jedna plovouci bublina, ne tlacitko vsazene do
   nakupniho bloku; panel se otevira nad ni. */
.product-detail-copy .vb-chat-panel { position: fixed; right: 16px; bottom: 152px; z-index: 150; }
:where(input,select,textarea,button,a):focus-visible { outline: 2px solid #975a18; outline-offset: 4px; }
:where(button,.button)[disabled], a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.product-detail-copy h1 { font-size: clamp(38px,4vw,60px); margin-bottom: 20px; }
.product-detail-description { max-width: 48ch; color: var(--commerce-text); }
.product-detail-purchase { margin-top: 24px; padding: 24px; background: #f0e8da; border: 1px solid var(--commerce-border); border-radius: 12px; }
.product-detail-purchase select { background: #fffdf8; border-color: #a99b8b; }
.product-detail-purchase .variant-picker { gap: 12px; }
.product-detail-purchase .variant-picker-group { display: grid; gap: 7px; }
.product-detail-purchase .variant-picker-group legend { margin: 0; color: var(--commerce-text); font-size: 11px; letter-spacing: .04em; text-transform: none; }
.product-detail-purchase .variant-choice-button { min-height: 44px; border-radius: 10px; background: #fffdf8; border-color: #b9aa98; font-size: 13px; }
.product-detail-purchase .variant-choice-button.is-selected { background: #24160f !important; border-color: #24160f !important; color: #fffaf2 !important; }
.product-detail-purchase .variant-choice-button.is-selected:focus { background: #24160f !important; border-color: #24160f !important; color: #fffaf2 !important; }
.product-detail-purchase .variant-choice-button:focus-visible { border-color: #975a18; }
.product-detail-price { margin: 18px 0; }
.product-detail-price strong { font-size: 40px; }
.product-detail-highlights { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0; color: var(--commerce-text); }
.product-detail-highlights li { line-height: 1.6; font-size: 13px; }
.product-detail-highlights li::before { content: '✓'; margin-right: 7px; color: #925c21; }
.product-detail-note a, .summary-edit { text-decoration: underline; text-underline-offset: 4px; }
.product-detail-gallery { min-height: 510px; padding: 32px; border-radius: 12px; }
.product-detail-gallery img { height: 400px; }
.product-facts dd,.product-detail-information p,.product-detail-note { color: var(--commerce-text); }
.shop-page .product-card { display: flex; flex-direction: column; border-radius: 14px; background: #fffdf8; }
.shop-page .product-info { flex: 1; display: flex; flex-direction: column; }
.shop-page .product-card-title { font-size: clamp(26px,2.3vw,34px); min-height: 2.3em; }
.shop-page .product-card-desc { min-height: 4.8em; color: var(--commerce-text); }
.shop-page .product-price { margin-top: auto; }
.shop-page .product-card-buy { align-items: end; }
.shop-page .product-variant-select { min-height: 48px; }
.filter-row { gap: 8px; }
.filter-pill { min-height: 44px; }
.cart-panel { display: flex; flex-direction: column; height: 100dvh; max-height: 100dvh; overflow: hidden; padding-bottom: 0; }
.cart-panel > .eyebrow,.cart-panel > h2,.cart-panel > #shipping-text,.cart-panel > .shipping-bar { flex-shrink: 0; }
.cart-panel h2 { font-size: 48px; margin-bottom: 18px; }
#shipping-text { font-size: 13px; line-height: 1.6; }
#cart-items-list { flex: 1; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; padding-right: 5px; }
.cart-item-row { align-items: center; }
.cart-item-details { min-width: 0; }
.cart-item-details h4 { font-size: 19px; }
.cart-panel .qty-btn { min-width: 40px; min-height: 40px; }
.cart-checkout-area { flex-shrink: 0; padding: 0 0 max(20px,env(safe-area-inset-bottom)); background: var(--cream); }
.cart-checkout-area .cart-total { margin-top: 12px; padding-top: 16px; }
.cart-checkout-area .cart-total span { text-transform: none; font-size: 14px; }
.cart-checkout-area .cart-total strong { font-size: 30px; }
.cart-checkout-area .checkout-link { width: 100%; min-height: 52px; }
.cart-checkout-area .checkout-preview-note { margin-bottom: 0; }
.checkout-main { max-width: 1160px; padding-top: 112px; }
.checkout-main h1 { font-size: clamp(38px,5vw,60px); margin: 24px 0 12px; }
.checkout-intro { max-width: 65ch; color: var(--commerce-text); margin-bottom: 32px; }
.checkout-layout { grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: 56px; align-items: start; }
.checkout-layout aside { background: #f0e8da; border: 1px solid var(--commerce-border); border-radius: 12px; padding: 28px; }
.checkout-layout aside h2 { font: 400 32px var(--serif); margin: 0 0 24px; }
.checkout-review > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.checkout-review > summary::-webkit-details-marker { display: none; }
.checkout-review-title { font: 400 32px var(--serif); }
.checkout-review-total { display: none; }
.checkout-review > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.checkout-review-body { margin-top: 18px; }
.checkout-fields .address-field:has([name="address_1"]) { grid-column: 1 / -1; }
.checkout-main legend { font-size: 25px; }
.checkout-main input:not([type="checkbox"]), .checkout-main select { background: #fffdf8; border-color: #b9aa98; font-size: 16px; }
.checkout-main input[aria-invalid="true"] { border-color: #a23524; }
.field-error { color: #a23524; font-size: 12px; line-height: 1.4; }
.checkout-terms { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 14px; line-height: 1.7; }
.checkout-terms input { flex-shrink: 0; align-self: center; }
#delivery-status { font-size: 13px; color: var(--commerce-text); }
#checkout-state:not(:empty) { padding: 14px 18px; border-left: 3px solid #aa722b; background: #f0e8da; }
.checkout-summary-item { padding: 16px 0; border-bottom: 1px solid var(--commerce-border); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14px; }
.checkout-summary-item span { grid-column: 1; color: var(--commerce-text); font-size: 12px; }
.checkout-summary-item b { font-weight: 500; grid-column: 2; grid-row: 1; white-space: nowrap; }
.summary-charge { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; margin: 14px 0; }
.summary-edit { display: inline-block; font-size: 13px; margin-top: 18px; }
.checkout-coupon { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--commerce-border); }
.checkout-coupon h3 { margin: 0 0 10px; font: 400 24px/1.2 var(--serif); }
.checkout-coupon > form > label { display: block; margin-bottom: 8px; color: var(--commerce-text); font-size: 12px; }
.checkout-coupon-row { display: flex; gap: 8px; align-items: stretch; }
.checkout-coupon-row input { min-width: 0; flex: 1; }
.checkout-coupon-row .button { flex: 0 0 auto; min-height: 48px; margin: 0; padding-inline: 16px; }
#checkout-coupon-status { min-height: 20px; margin: 8px 0 0; color: var(--commerce-text); font-size: 12px; line-height: 1.45; }
.checkout-coupon-applied { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 10px; padding: 10px 12px; background: #e8f0df; color: #36552b; font-size: 12px; }
.checkout-coupon-remove { padding: 4px 0; color: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
#checkout-form > .button { width: 100%; min-height: 56px; }
@media(max-width:760px) {
 html { scroll-padding-top: 82px; }
 .product-breadcrumb { padding: 18px 0; font-size: 11px; }
 .product-detail { gap: 20px; }
 .product-detail-gallery { min-height: 0; padding: 16px; }
 .product-detail-gallery img { height: 240px; }
 .product-detail-gallery > span { margin-top: 10px; }
 .product-detail-copy { padding-top: 0; }
 .product-detail-copy h1 { font-size: 38px; }
 .product-detail-purchase { padding: 18px; }
 .product-detail-purchase .variant-picker { gap: 10px; }
 .product-detail-purchase .variant-choice-button { min-height: 42px; font-size: 12px; }
 .product-detail-information { gap: 28px; }
 .shop-page .product-card-title,.shop-page .product-card-desc { min-height: 0; }
 .cart-panel { padding-top: 52px; }
 .cart-panel h2 { font-size: 38px; margin: 10px 0 14px; }
 .cart-checkout-area .checkout-preview-note { font-size: 11px; line-height: 1.45; }
 .checkout-main { padding: 88px 20px 48px; }
 .checkout-layout { display: flex; flex-direction: column; gap: 28px; }
 .checkout-layout > * { width: 100%; }
 .checkout-layout aside { order: -1; padding: 20px; }
 .checkout-layout aside h2 { font-size: 28px; margin-bottom: 12px; }
 .checkout-review-title { font-size: 24px; }
 .checkout-review-total { display: inline; flex: none; font-size: 15px; font-weight: 700; }
 .checkout-review > summary::after { content: ''; width: 9px; height: 9px; margin: 0 4px 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .18s; align-self: center; }
 .checkout-review[open] > summary::after { transform: translateY(2px) rotate(225deg); }
 .checkout-review-body { margin-top: 12px; }
 .checkout-fields { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
 .checkout-fields label { grid-column: 1 / -1; }
 .checkout-fields label:has([name="first_name"]),.checkout-fields label:has([name="last_name"]) { grid-column: auto; }
 .checkout-main fieldset { padding: 22px 0; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
/* Final editorial rhythm: concise product reading and a balanced seven-item assortment. */
.product-reading { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(32px,7vw,100px); border-top: 1px solid var(--commerce-border); padding: 48px 0; }
.product-reading h2 { font: 400 clamp(28px,3vw,40px)/1.15 var(--serif); letter-spacing: -.025em; margin: 14px 0 24px; }
.product-reading h3 { font: 400 24px/1.3 var(--serif); margin: 0 0 10px; }
.product-reading p { font-size: 15px; line-height: 1.8; color: #65564b; max-width: 56ch; }
.product-storage { margin-top: 28px; }
.product-recipe-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; margin-top: 28px; border-top: 1px solid var(--commerce-border); border-bottom: 1px solid var(--commerce-border); font-size: 14px; line-height: 1.5; }
.product-recipe-link:hover { color: #925c21; }
.product-specification dl { margin: 0; }
.product-specification dl > div { display: grid; grid-template-columns: minmax(85px,.32fr) 1fr; gap: 20px; border-bottom: 1px solid var(--commerce-border); padding: 16px 0; font-size: 14px; line-height: 1.7; }
.product-specification dt { font-weight: 600; }
.product-specification dd { margin: 0; color: #65564b; }
.product-specification table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 14px; }
.product-specification caption { text-align: left; font-weight: 600; margin-bottom: 12px; }
.product-specification th,.product-specification td { padding: 10px 0; border-bottom: 1px solid var(--commerce-border); text-align: left; }
.product-specification th { font-weight: 400; padding-right: 16px; }
.product-specification td { white-space: nowrap; }
.product-provenance { margin-top: 22px; border-bottom: 1px solid var(--commerce-border); }
.product-provenance summary { cursor: pointer; padding: 16px 0; font-size: 13px; min-height: 48px; }
.product-provenance p { font-size: 13px; }
.product-provenance a { text-decoration: underline; text-underline-offset: 3px; }
.set-contents { list-style: none; margin: 0; padding: 0; }
.set-contents li { padding: 12px 0; border-bottom: 1px solid var(--commerce-border); font-size: 14px; }
.product-detail { padding-bottom: 40px; }
.product-detail-gallery { background: #fff; overflow: hidden; }
.product-detail-gallery img { width: 100%; max-width: 470px; }
.product-back-link { padding-bottom: 40px; }
.shop-page .product-visual { background: #fff; }
.shop-page .product-card-kicker { font-size: 11px; line-height: 1.6; }
.shop-page .product-price > span { font-size: 12px; }
.shop-page .product-card .product-card-image { height: 290px; width: 100%; max-width: 340px; padding: 24px; margin: auto; }
.shop-page .product-card[data-category="balicky"] .product-card-image { max-width: 420px; padding: 20px; }
.shop-page .product-card[data-category="lusky"] .product-card-image { padding: 16px; }
@media(min-width:1101px) {
 .shop-page .products-grid[data-count="7"] .product-card:nth-child(-n+4) { grid-column: span 3; }
 .shop-page .products-grid[data-count="7"] .product-card:nth-child(n+5) { grid-column: span 4; }
 .shop-page .products-grid[data-count="7"] .product-card:nth-child(-n+4) .product-card-title { font-size: 28px; }
 .shop-page .products-grid[data-count="7"] .product-card:nth-child(-n+4) .product-card-buy { grid-template-columns: 1fr; }
 .shop-page .products-grid[data-count="7"] .product-card:nth-child(-n+4) .product-card-buy > .button { width: 100%; }
}
@media(min-width:761px) and (max-width:1100px) {
 .shop-page .products-grid[data-count="7"] .product-card:last-child { grid-column: 1 / -1; flex-direction: row; }
 .shop-page .products-grid[data-count="7"] .product-card:last-child > * { width: 50%; }
}
@media(max-width:760px) {
 .product-reading { grid-template-columns: 1fr; gap: 36px; padding: 30px 0; }
 .product-reading h2 { font-size: 30px; margin-bottom: 20px; }
 .product-specification dl > div { gap: 14px; grid-template-columns: 90px 1fr; }
 .product-detail-highlights { gap: 8px 16px; }
 .product-detail { padding-bottom: 30px; }
 .shop-page .product-card .product-card-image { height: 260px; }
}
.billing-toggle { margin: 24px 0 16px; font-size: 14px; line-height: 1.6; }
.billing-toggle label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.billing-toggle input { flex-shrink: 0; }
.billing-fields { border-left: 2px solid var(--commerce-border); padding: 4px 0 8px 20px; margin-bottom: 20px; }
.billing-fields[hidden] { display: none; }
.billing-fields h3 { grid-column: 1 / -1; margin: 12px 0; font: 400 26px var(--serif); }
.billing-fields label:has([name="billing_address_1"]) { grid-column: 1 / -1; }
.cart-status:empty { display: none; }
.cart-status { flex-shrink: 0; padding: 10px 12px; margin: 10px 0 0; background: #f0e8da; border-left: 2px solid #975a18; color: #493a2f; font-size: 13px; line-height: 1.5; }
.cart-item-details h4 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
body:has(#checkout-form) .desktop-nav,body:has(#checkout-form) .menu-button { display: none; }
body:has(#checkout-form) .footer-main { display: none; }
body:has(#checkout-form) .site-footer { padding-block: 28px; }
body:has(#checkout-form) .footer-bottom { padding-top: 0; border-top: 0; }
.product-thumbnails { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.product-thumbnails button { width: 72px; height: 72px; padding: 5px; border: 1px solid #d8cbbb; background: #fff; border-radius: 8px; cursor: pointer; }
.product-thumbnails button[aria-pressed="true"] { border: 2px solid #975a18; }
.product-thumbnails button img { width: 100%; height: 100%; object-fit: contain; }
[data-gallery-caption] { text-align: center; line-height: 1.5; }
@media(max-width:760px){.product-thumbnails button{width:60px;height:60px}.product-thumbnails{gap:8px}}

/* Oblibene v hlavicce: stejny jazyk jako kosik vedle. */
.fav-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.fav-button:hover, .fav-button.is-active { background: rgba(47, 33, 25, .06); }
.fav-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.fav-button.has-items svg { fill: currentColor; }
.fav-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c98a3f;
  color: #fff;
  font: 700 10px/1 var(--sans, 'DM Sans', sans-serif);
  box-shadow: 0 0 0 2px var(--cream-soft, #faf6ef);
}
.fav-count[hidden] { display: none; }
.site-header .header-actions:has(.fav-button) { gap: 10px; }
@media (max-width: 800px) {
  .fav-button { width: 42px; height: 42px; }
  .fav-button svg { width: 17px; height: 17px; }
  .site-header .header-actions:has(.fav-button) { gap: 6px; }
}

/* ==================================================================
   Mobilni hlavicka: logo vlevo, vpravo kosik a menu.
   Oblibene jsou na mobilu v menu (srdicka zustavaji na kartach).
   ================================================================== */
@media (max-width: 760px) {
  body:not(.checkout-page) .site-header {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    column-gap: 4px;
  }
  body:not(.checkout-page) .site-header .header-actions { display: contents; }
  body:not(.checkout-page) .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: auto;
  }
  body:not(.checkout-page) .site-header .brand img { width: auto; height: 46px; max-height: 46px; }
  body:not(.checkout-page) .site-header .menu-button.sm-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
    margin: 0 -8px 0 0;
    padding: 0 8px;
  }
  body:not(.checkout-page) .site-header .cart-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
  }
  body:not(.checkout-page) .site-header .cart-button svg { width: 23px; height: 23px; stroke-width: 1.6; }
  body:not(.checkout-page) .site-header .fav-button { display: none; }
  .site-header .cart-count {
    position: absolute;
    top: 4px;
    right: 1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #c98a3f;
    color: #fff;
    font: 700 10px/17px var(--sans, 'DM Sans', sans-serif);
    text-align: center;
    box-shadow: 0 0 0 2px var(--cream-soft, #faf6ef);
  }
  .site-header .cart-count.is-empty { display: none; }
}

/* Oblibene jako polozka mobilniho menu. */
.sm-fav-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: #c98a3f;
  color: #fff;
  font: 700 12px/1 var(--sans, 'DM Sans', sans-serif);
  vertical-align: middle;
}
.sm-fav-count[hidden] { display: none; }

/* Pokladna: jen logo vlevo. Kosik ani oblibene tu nemaji smysl. */
body.checkout-page .site-header .fav-button,
body.checkout-page .site-header .cart-button { display: none; }
@media (max-width: 760px) {
  body.page-site.checkout-page .site-header { justify-content: flex-start; }
  body.page-site.checkout-page .site-header .header-actions { display: none; }
  body.checkout-page .site-header .brand { width: auto; }
  body.checkout-page .site-header .brand img { width: auto; height: 46px; max-height: 46px; }
}

/* Mobilni menu: prostor na diakritiku velkych pismen (OBLÍBENÉ), animace
   polozek potrebuje overflow: hidden, takze misto musi byt uvnitr polozky. */
.sm-panel-item { padding-top: .16em; }
.sm-panel-list { gap: .15rem; }

/* Muj ucet v hlavicce: stejny jazyk jako oblibene a kosik. */
.account-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
  transition: background-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.account-button:hover { background: rgba(47, 33, 25, .06); }
.account-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.account-button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.account-button.is-signed-in::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5f8a4a;
  box-shadow: 0 0 0 2px var(--cream-soft, #faf6ef);
}
.site-header .header-actions:has(.account-button) { gap: 10px; }
@media (max-width: 800px) {
  .account-button { width: 42px; height: 42px; }
  .account-button svg { width: 17px; height: 17px; }
  .site-header .header-actions:has(.account-button) { gap: 6px; }
}
@media (max-width: 760px) {
  body:not(.checkout-page) .site-header { grid-template-columns: 1fr auto auto auto; }
  body:not(.checkout-page) .site-header .account-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }
  body:not(.checkout-page) .site-header .account-button svg { width: 22px; height: 22px; }
  body:not(.checkout-page) .site-header .account-button.is-signed-in::after { right: 7px; bottom: 8px; width: 8px; height: 8px; }
  body:not(.checkout-page) .site-header:has(.account-button) .cart-button { grid-column: 3; }
  body:not(.checkout-page) .site-header:has(.account-button) .menu-button.sm-toggle { grid-column: 4; }
}
.checkout-terms { flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
.checkout-terms input { margin-top: 5px; align-self: flex-start; }
.checkout-terms span { flex: 1; }
.checkout-terms a { text-decoration: underline; text-underline-offset: 3px; }
.mobile-filter-trigger-icon { display: inline-flex; align-items: center; }
/* Doprava se overuje sama po vyplneni adresy; tlacitko zustava jen jako zaloha. */
#checkout-address-update.is-auto { display: none; }
/* 404 a dalsi akce: textovy odkaz zarovnany s tlacitkem. */
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.page-actions .text-link { display: inline-flex; align-items: center; min-height: 52px; padding: 0; margin: 0; border: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
