/* Korpa, telefon i Viber porudžbina — 1.12.0 */
.shop-dock {
  position: fixed;
  z-index: 40;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  align-items: center;
}
.shop-dock__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(255, 243, 223, .6);
  border-radius: 999px;
  background: rgba(35, 22, 12, .82);
  color: #fff7e5;
  font: 14px var(--sans);
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(20, 10, 4, .3);
  backdrop-filter: blur(6px);
}
.shop-dock__icon { font-size: 17px; line-height: 1; }
.shop-dock__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 99px;
  background: var(--gold);
  color: #2b1d14;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 340px) {
  .shop-dock__call .shop-dock__label { display: none; }
}
.has-cart-dialog .journey-scroll { overflow-y: hidden !important; }

.cart-dialog {
  width: min(100% - 16px, 560px);
  max-height: calc(100svh - 16px);
  margin: auto auto 0;
  padding: 18px clamp(14px, 4vw, 26px) calc(20px + env(safe-area-inset-bottom));
  border: 1px solid #d9c5a6;
  border-bottom: 0;
  border-radius: 19px 19px 0 0;
  background: #f8f1e5;
  color: #3c291b;
  overflow: auto;
  overscroll-behavior: contain;
  font-family: var(--sans);
}
@media (min-width: 700px) {
  .cart-dialog { margin: auto; border-bottom: 1px solid #d9c5a6; border-radius: 19px; }
}
.cart-dialog::backdrop { background: rgba(23, 15, 9, .62); }
.cart-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.cart-heading h2 { font: 400 clamp(1.4rem, 6vw, 1.8rem) / 1.1 var(--serif); }
.cart-close {
  width: 44px; height: 44px; flex-shrink: 0; padding: 0;
  border: 1px solid #ceb599; border-radius: 50%; background: transparent; color: inherit;
  font: 1.7rem / 1 var(--sans);
}
.cart-empty { padding: 18px 0 8px; line-height: 1.5; }
.cart-empty p:first-child { font: 1.15rem var(--serif); margin-bottom: 6px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { padding: 12px 0; border-bottom: 1px solid #e3d4bd; display: grid; gap: 8px; }
.cart-line__name { display: flex; flex-direction: column; gap: 2px; }
.cart-line__name strong { font: 400 1.08rem / 1.25 var(--serif); }
.cart-line__name span { font-size: 13px; color: #6a503a; }
.cart-line__controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cart-quantity { display: flex; align-items: center; border: 1px solid #c1a887; border-radius: 99px; }
.cart-quantity > span { min-width: 4.5rem; padding: 0 6px; text-align: center; font-size: 14px; white-space: nowrap; }
.cart-step {
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: #eadbc4; color: inherit; font-size: 1.2rem;
}
.cart-step:disabled { opacity: .4; cursor: default; }
.cart-line__total { margin-left: auto; font-size: 15px; white-space: nowrap; }
.cart-remove { border: 0; background: transparent; color: #8a4a2c; font-size: 13px; padding: 8px 2px; text-decoration: underline; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; font-size: 15px; }
.cart-total strong { font: 400 1.6rem / 1 var(--serif); }
.cart-form { margin-top: 10px; padding-top: 12px; border-top: 1px solid #e3d4bd; display: grid; gap: 10px; }
.cart-form h3 { font: 400 1.15rem var(--serif); margin: 0 0 2px; }
.cart-field { display: grid; gap: 4px; font-size: 13px; color: #634d37; }
.cart-field input, .cart-field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid #c5b394; border-radius: 8px; background: #fffaf0; color: #3c291b;
  font: 16px var(--sans);
}
.cart-field textarea { resize: vertical; min-height: 60px; }
.cart-field input[aria-invalid="true"] { border-color: #a23422; box-shadow: 0 0 0 1px #a23422; }
.cart-field-error { color: #a23422; font-size: 12px; }
.cart-note { font-size: 12px; line-height: 1.5; color: #6a503a; }
.cart-actions { display: grid; gap: 8px; }
.cart-send {
  min-height: 48px; padding: 12px 18px; border-radius: 99px; font-size: 15px;
  border: 1px solid #294330; background: transparent; color: #294330;
}
.cart-send--viber { background: #665cac; border-color: #665cac; color: #fff; font-weight: 600; }
.cart-status { font-size: 13px; line-height: 1.55; color: #3f5133; min-height: 1em; }
.cart-clear { justify-self: start; border: 1px solid #a28b6c; background: transparent; color: #5d4633; border-radius: 99px; padding: 10px 14px; font-size: 13px; }
.cart-contact { margin-top: 14px; font-size: 13px; color: #6a503a; }
.cart-contact a { color: #294330; font-weight: 600; white-space: nowrap; }

/* "Dodato u korpu" u prozorima proizvoda */
.added-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.added-row:has(button[hidden]) p:empty { display: none; }
.added-row p { font-size: 12px; color: #3f5133; }
.added-open-cart { border: 1px solid #294330; background: #294330; color: #fff8e8; border-radius: 99px; padding: 9px 14px; font-size: 13px; }
.syrup-order-dock { max-height: 34svh; }
.seed-add {
  width: 100%; min-height: 48px; margin-top: 14px; border: 1px solid #503323; border-radius: 99px;
  background: #503323; color: #fff6e5; font-size: 15px;
}
.seed-dialog .added-row p { color: #503323; }
.seed-dialog .added-open-cart { background: #503323; border-color: #503323; }
.seed-quantity > span { min-width: 7.5rem; font-size: .9rem; }
.site-footer a { color: inherit; }
.site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
.cart-gift { margin: 14px 0; padding: 12px 14px; border: 1px solid #d9c2a0; border-radius: 12px; background: #fffaf0; display: grid; gap: 10px; }
.cart-gift summary { cursor: pointer; font-size: 15px; color: #3c2819; list-style-position: inside; }
.cart-gift[open] { gap: 10px; }
.cart-gift select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #cdb592; border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: #2c1d10; }
.cart-send { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.cart-send__icon { display: inline-flex; width: 22px; height: 22px; flex: none; }
.cart-send__icon svg { width: 100%; height: 100%; }
.cart-send--whatsapp { background: #25d366; border-color: #1fb457; color: #0b3d1f; font-weight: 600; }
