/* ============ E-SHOP (merch.html) ============ */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.shop-hero { position: relative; overflow: hidden; background: var(--ink); padding: 130px 0 60px; border-bottom: 3px solid var(--yellow); }
.shop-hero .wrap { z-index: 3; }
.shop-hero__title {
  font-family: var(--display); font-weight: 900; color: var(--yellow); text-transform: uppercase;
  font-size: clamp(80px, 20vw, 240px); letter-spacing: -0.075em; line-height: .8; margin-left: -.04em;
}
.shop-hero__lead { max-width: 56ch; margin-top: 18px; color: #c9c7bd; }

/* připravujeme */
.shop-soon { padding: 80px 0 110px; }
.shop-soon__box {
  position: relative; max-width: 760px; margin: 0 auto; background: var(--yellow); color: var(--black);
  padding: clamp(28px, 5vw, 56px); box-shadow: 12px 12px 0 var(--red); transform: rotate(-.8deg);
}
.shop-soon__title { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.05em; line-height: .9; margin-bottom: 16px; }
.shop-soon__box p { margin-bottom: 22px; max-width: 52ch; }
.shop-soon__box .btn { border-color: var(--black); color: var(--black); }
.shop-soon__box .btn--yellow { background: var(--black); color: var(--yellow); }
.shop-soon__box .btn:hover { box-shadow: 3px 3px 0 var(--red); }

/* obchod */
.shop { padding: 60px 0 110px; }
.shop__preview { background: var(--red); color: var(--white); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; margin-bottom: 30px; }
.shop__layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }

.products { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product { border: 3px solid var(--yellow); display: flex; flex-direction: column; background: #0f0f0f; }
.product__img { position: relative; aspect-ratio: 1; background: var(--white); overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__img .sticker { top: 12px; right: 8px; bottom: auto; }
.product__ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, #ece13f 18px 36px); color: var(--black); text-align: center; padding: 16px;
}
.product__ph span { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -0.04em; line-height: .95; text-transform: uppercase; }
.product__ph small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.product__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product__name { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1.05; }
.product__desc { font-size: 12px; color: #c9c7bd; }
.product__price { font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--yellow); letter-spacing: -0.03em; margin-top: auto; }
.product.is-soldout { opacity: .55; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: grid; place-items: center; min-width: 40px; height: 36px; padding: 0 8px; border: 2px solid #555; font-size: 12px; font-weight: 700; cursor: pointer; }
.sizes label:hover span { border-color: var(--yellow); }
.sizes input:checked + span { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.sizes input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.product__row { display: flex; gap: 8px; margin-top: 4px; }
.qty input { width: 64px; height: 100%; min-height: 42px; background: transparent; border: 2px solid #555; color: var(--white); font: inherit; text-align: center; }
.product__add { flex: 1; }
.product__msg { font-size: 12px; min-height: 1.4em; color: var(--yellow); }
.product__msg.is-err { color: #ff6b6b; }

/* košík */
.cart { position: sticky; top: 76px; border: 3px solid var(--yellow); padding: 20px; background: var(--ink); box-shadow: 10px 10px 0 var(--yellow); scroll-margin-top: 80px; }
.cart__title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: -0.04em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.cart__title svg { width: 26px; height: 26px; }
.cart__items { list-style: none; }
.cart__item { display: grid; grid-template-columns: 1fr auto auto 24px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 2px solid #2b2b2b; font-size: 13px; }
.cart__name { font-weight: 700; text-transform: uppercase; line-height: 1.25; }
.cart__name em { font-style: normal; background: var(--yellow); color: var(--black); padding: 0 5px; margin-left: 4px; }
.cart__name small { display: block; font-weight: 400; color: var(--grey); text-transform: none; }
.cart__qty { display: flex; align-items: center; gap: 6px; }
.cart__qty button { width: 26px; height: 26px; border: 2px solid #555; font-weight: 700; line-height: 1; }
.cart__qty button:hover { border-color: var(--yellow); color: var(--yellow); }
.cart__line { font-weight: 700; white-space: nowrap; }
.cart__rm { font-size: 20px; color: var(--grey); line-height: 1; }
.cart__rm:hover { color: var(--red); }
.cart__empty { color: var(--grey); font-size: 13px; padding: 8px 0; }

.checkout fieldset { border: 0; margin-top: 20px; }
.checkout legend { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); font-weight: 700; margin-bottom: 8px; }
.checkout label { display: block; margin-bottom: 10px; font-size: 12px; }
.checkout label > span { display: block; margin-bottom: 3px; color: #c9c7bd; }
.checkout input:not([type=radio]):not([type=checkbox]), .checkout select, .checkout textarea {
  width: 100%; background: #0b0b0b; border: 2px solid #444; color: var(--white); font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 0;
}
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: none; border-color: var(--yellow); }
.checkout__row { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.checkout__hp { position: absolute !important; left: -9999px; }
.ship { display: grid !important; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 2px solid #444; padding: 10px; cursor: pointer; margin-bottom: 6px !important; }
.ship:has(input:checked) { border-color: var(--yellow); background: rgba(245,234,74,.08); }
.ship input { accent-color: var(--yellow); width: 18px; height: 18px; }
.ship__name { font-weight: 700; font-size: 13px; }
.ship__price { font-size: 12px; color: var(--yellow); white-space: nowrap; }
.cart__sum { margin-top: 16px; border-top: 3px solid var(--yellow); padding-top: 10px; font-size: 13px; }
.cart__sum > div { display: flex; justify-content: space-between; padding: 3px 0; }
.cart__total { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -0.03em; text-transform: uppercase; color: var(--yellow); }
.checkout__consent { display: flex !important; gap: 10px; align-items: flex-start; margin: 14px 0; }
.checkout__consent input { accent-color: var(--yellow); width: 18px; height: 18px; flex: none; margin-top: 2px; }
.checkout__consent a { color: var(--yellow); }
.checkout__error { background: var(--red); color: var(--white); padding: 10px 12px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.checkout__submit { padding: 14px 18px; font-size: 14px; }
.checkout__submit:disabled { opacity: .6; cursor: wait; }
.checkout__note { font-size: 11px; color: var(--grey); margin-top: 10px; }

/* po objednání */
.paid { padding: 70px 0 110px; outline: none; }
.paid__box { max-width: 820px; overflow-wrap: anywhere; margin: 0 auto; background: var(--yellow); color: var(--black); padding: clamp(24px, 5vw, 50px); box-shadow: 12px 12px 0 var(--red); }
.paid__title { word-spacing: .12em; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.05em; line-height: .9; margin-bottom: 12px; }
.paid__grid { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: center; margin: 24px 0; }
.paid__qr { background: #fff; border: 4px solid var(--black); padding: 6px; }
.paid__qr svg { width: 100%; height: auto; display: block; }
.paid__info dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-top: 10px; }
.paid__info dd { font-family: var(--display); font-weight: 900; font-size: clamp(22px, 3.4vw, 32px); letter-spacing: -0.03em; word-break: break-word; }
.paid__hint { max-width: 60ch; margin-bottom: 20px; }
.paid__box .btn { border-color: var(--black); color: var(--black); }

/* plovoucí košík (mobil) */
.cart-fab {
  position: fixed; z-index: 60; right: var(--gutter); bottom: 22px; display: none; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--black); border: 3px solid var(--black); padding: 10px 16px; font-weight: 700; text-decoration: none;
  box-shadow: 4px 4px 0 var(--red);
}
.cart-fab svg { width: 22px; height: 22px; }
.cart-fab.is-bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.2) rotate(-6deg); } }

@media (max-width: 900px) {
  .shop__layout { grid-template-columns: 1fr; }
  .cart { position: static; box-shadow: 6px 6px 0 var(--yellow); }
  .cart-fab { display: inline-flex; }
  .cart-fab[hidden] { display: none !important; }
  .paid__grid { grid-template-columns: 1fr; }
  .paid__qr { max-width: 260px; }
}
@media (max-width: 460px) {
  .products { grid-template-columns: 1fr; }
  .cart { padding: 14px; }
  .cart__item { grid-template-columns: 1fr auto 22px; }
  .cart__line { grid-column: 2; grid-row: 2; }
}
@media (max-width: 560px) { .paid__box, .shop-soon__box { box-shadow: 6px 6px 0 var(--red); } }
