/* ===== CART ===== */
.screen--cart.screen--scene {
  padding-bottom: 40px;
}
.cart-layout {
  display: block;
}
.wrap--cart {
  padding: 24px 24px 48px;
  max-width: none;
}
.page-title.page-title--cart {
  margin: 22px 0 0;
}
.page-title.page-title--cart h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f8f6f1;
}
.page-title.page-title--cart .page-title__sub {
  margin: 12px 0 0;
  color: #c2c4c7;
  font-size: 1rem;
  line-height: 1.4;
}
.cart-items {
  margin-top: 22px;
}
.cart-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(18, 22, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
}
.cart-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  background: #0c1014;
}
.cart-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 750;
  color: #f8f6f1;
}
.cart-card p {
  margin: 0;
  color: #9ea2a7;
  font-size: 0.8rem;
  line-height: 1.35;
}
.cart-card .price {
  margin: 0;
  color: #f7ddb8;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}
.cart-card .rm {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ddd;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.cart-card .rm:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  background: #0c0c0c;
  border-radius: 999px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #222;
  color: #fff;
  cursor: pointer;
}
.qty span {
  min-width: 1.2em;
  text-align: center;
  font-weight: 700;
}

.cart-ship {
  margin-top: 28px;
}
.cart-ship__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 750;
  color: #f8f6f1;
}
.cart-ship__title svg {
  color: #f7ddb8;
}
.cart-ship__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.cart-ship__tab {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 20, 0.7);
  color: #c2c4c7;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
}
.cart-ship__tab.is-on {
  border-color: rgba(247, 221, 184, 0.75);
  color: #f7ddb8;
  background: rgba(247, 221, 184, 0.08);
  box-shadow: 0 0 0 1px rgba(247, 221, 184, 0.2);
}
.cart-carriers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(12, 16, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cart-carrier {
  display: grid;
  grid-template-columns: 18px 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}
.cart-carrier input {
  accent-color: #f7ddb8;
  width: 16px;
  height: 16px;
  margin: 0;
}
.cart-carrier.is-on {
  border-color: rgba(247, 221, 184, 0.45);
  background: rgba(247, 221, 184, 0.06);
}
.cart-carrier__logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #1a1f24;
  color: #f8f6f1;
}
.cart-carrier__logo--zasilkovna {
  background: #1a1a1a;
  color: #5eb32e;
  font-size: 1rem;
}
.cart-carrier__logo--ppl {
  color: #0a66c2;
}
.cart-carrier__logo--dpd {
  color: #dc0032;
}
.cart-carrier__logo--posta {
  color: #f5c400;
}
.cart-carrier__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cart-carrier__body strong {
  font-size: 0.92rem;
  color: #f8f6f1;
}
.cart-carrier__body span {
  font-size: 0.72rem;
  color: #9ea2a7;
  line-height: 1.3;
}
.cart-carrier__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.cart-carrier__meta em {
  font-style: normal;
  font-weight: 750;
  color: #f7ddb8;
  font-size: 0.88rem;
  white-space: nowrap;
}
.cart-carrier__meta span {
  font-size: 0.68rem;
  color: #9ea2a7;
}
.cart-pickup {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(18, 22, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cart-pickup[hidden] {
  display: none !important;
}
.cart-pickup__info strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.cart-pickup__info p {
  margin: 0;
  color: #9ea2a7;
  font-size: 0.8rem;
}
.cart-pickup .btn {
  height: 44px;
  padding: 0 16px;
  width: auto;
  flex: 0 0 auto;
}

.cart-aside {
  margin: 28px 24px 0;
}
.cart-script {
  font-family: Caveat, 'Segoe Script', cursive;
  font-weight: 700;
}
.cart-script--top {
  display: none;
  margin: 0 0 14px;
  text-align: right;
  color: rgba(248, 246, 241, 0.85);
  font-size: 1.35rem;
}
.cart-script--bottom {
  margin: 28px 0 0;
  color: #f7ddb8;
  font-size: 1.45rem;
}
.cart-summary {
  padding: 18px;
  border-radius: 20px;
  background: rgba(18, 22, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
.cart-summary__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 750;
}
.cart-summary__line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cart-summary__line img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #0c1014;
}
.cart-summary__line h3 {
  margin: 0 0 2px;
  font-size: 0.88rem;
}
.cart-summary__line p {
  margin: 0;
  color: #9ea2a7;
  font-size: 0.72rem;
  line-height: 1.3;
}
.cart-summary__line .price {
  color: #f7ddb8;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}
.cart-summary__rows {
  margin-bottom: 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  color: #ddd;
  font-size: 0.92rem;
}
.summary-row .free {
  color: var(--green);
  font-weight: 700;
}
.summary-row--total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8f6f1;
}
.summary-row--total span:last-child {
  color: #f7ddb8;
}
.cart-summary .btn {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 750;
  text-transform: none;
  letter-spacing: 0;
  gap: 8px;
}
.cart-summary__trust {
  margin-top: 12px;
  justify-content: center;
  font-size: 0.72rem;
  color: #a7aaad;
  gap: 10px;
}
.cart-usp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.cart-usp__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(18, 22, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.cart-usp__ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(247, 221, 184, 0.12);
  color: #f7ddb8;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.cart-usp__item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 750;
  color: #f8f6f1;
  line-height: 1.25;
}
.cart-usp__item > span:last-child {
  font-size: 0.7rem;
  color: #9ea2a7;
  line-height: 1.3;
}
@media (max-width: 420px) {
  .cart-usp {
    grid-template-columns: 1fr;
  }
  .cart-usp__item {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
  }
  .cart-usp__ico {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }
}

@media (max-width: 359px) {
  .wrap--cart {
    padding-left: 18px;
    padding-right: 18px;
  }
  .cart-aside {
    margin-left: 18px;
    margin-right: 18px;
  }
  .cart-carrier {
    grid-template-columns: 16px 36px 1fr;
  }
  .cart-carrier__meta {
    grid-column: 3;
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }
}

@media (min-width: 1025px) {
  .screen--cart.is-active,
  .screen--shipping.is-active {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .screen--cart .cart-layout,
  .screen--shipping .cart-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 28px 40px;
  }
  .screen--cart .wrap--cart,
  .screen--shipping .wrap--cart {
    padding: 8px 0 0;
  }
  .screen--cart .cart-aside,
  .screen--shipping .cart-aside {
    margin: 8px 0 0;
    position: sticky;
    top: 88px;
  }
  .screen--cart .cart-script--top {
    display: block;
  }
  .screen--cart .cart-script--bottom,
  .screen--shipping .cart-script--bottom {
    margin-top: 36px;
  }
  .app:has(.screen--cart.is-active),
  .app:has(.screen--shipping.is-active) {
    max-width: 1200px;
  }
  .app.has-sticky:has(.screen--cart.is-active),
  .app.has-sticky:has(.screen--shipping.is-active) {
    padding-bottom: 0;
  }
}

/* —— Shipping step —— */
.ship-block {
  margin: 0 0 22px;
}
.ship-block__label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ea2a7;
}
.ship-mode {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ship-mode__tab {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 22, 26, 0.85);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.ship-mode__tab strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 750;
}
.ship-mode__tab em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.78rem;
  color: #9ea2a7;
}
.ship-mode__tab.is-on {
  border-color: rgba(247, 221, 184, 0.5);
  background: rgba(247, 221, 184, 0.08);
}
.ship-mode__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 3px transparent;
}
.ship-mode__tab.is-on .ship-mode__check {
  border-color: #f7ddb8;
  box-shadow: inset 0 0 0 4px #f7ddb8;
  background: #0c1014;
}
.cart-carrier__logo--img {
  background: transparent !important;
  padding: 0;
  overflow: hidden;
}
.cart-carrier__logo--img img {
  display: block;
  width: 44px;
  height: 28px;
  object-fit: contain;
}
.ship-address-carrier {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(18, 22, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ship-address-carrier img {
  width: 120px;
  height: 40px;
  object-fit: contain;
}
.ship-address-carrier p {
  margin: 0;
  color: #9ea2a7;
  font-size: 0.86rem;
  line-height: 1.4;
}
.ship-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(18, 22, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ship-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ship-field--wide {
  grid-column: 1 / -1;
}
.ship-field span {
  font-size: 0.75rem;
  color: #9ea2a7;
  font-weight: 650;
}
.ship-field input {
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 12, 0.7);
  color: #f8f6f1;
  font: inherit;
  font-size: 0.92rem;
}
.ship-field input:focus {
  outline: none;
  border-color: rgba(247, 221, 184, 0.55);
  box-shadow: 0 0 0 3px rgba(247, 221, 184, 0.12);
}
.ship-field input.is-invalid {
  border-color: #e35d5d;
}
.ship-back {
  width: 100%;
  margin-top: 10px;
  height: 46px;
  border-radius: 14px;
}
#shipPickupPanel[hidden],
#shipAddressPanel[hidden] {
  display: none !important;
}

/* Balíkovna modal (stejný pattern jako původní web) */
.casento-balikovna-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
}
.casento-balikovna-modal__inner {
  width: min(960px, 100%);
  height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.casento-balikovna-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #1a1f24;
}
.casento-balikovna-modal__title {
  margin: 0;
  font-weight: 750;
  font-size: 0.95rem;
}
.casento-balikovna-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8f6f1;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.casento-balikovna-modal__body {
  flex: 1;
  min-height: 0;
}
.casento-balikovna-modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
html.casento-balikovna-open,
body.casento-balikovna-open,
html.casento-packeta-open,
body.casento-packeta-open {
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .ship-form {
    grid-template-columns: 1fr;
  }
  .ship-field--wide {
    grid-column: auto;
  }
}

