/* ===================================================
   SHOP — čistý design
=================================================== */

.shop-wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 48px var(--gutter) 88px;
}

/* Intro */
.shop-intro {
  max-width: 720px;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.shop-intro h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.04em;
  margin-top: 8px;
}

.shop-intro p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Boční panel */
.shop-side {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 16px;
  max-height: calc(100dvh - 110px);
  overflow: auto;
}

/* Kategorie */
.shop-cats {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: var(--panel);
}

.shop-cat {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 700 12px Outfit, Montserrat, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.shop-cat:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.shop-cat.is-active {
  background: var(--blue-dim);
  color: #fff;
  border-left: 3px solid var(--blue);
  padding-left: 11px;
  font-weight: 800;
}

/* Platba info */
.shop-pay {
  padding: 18px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: var(--panel);
}

.shop-pay h2 {
  margin-bottom: 10px;
  color: var(--blue-2);
  font: 800 10px/1 Outfit, Montserrat, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shop-pay-notes {
  margin: 0 0 12px 14px;
  color: var(--silver);
  font-size: 13px;
  line-height: 1.7;
}

.shop-pay-notes li + li { margin-top: 5px; }

.shop-pay-list { display: grid; gap: 6px; }

.shop-pay-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(0,106,249,0.2);
  border-radius: 10px;
  background: var(--blue-dim);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Sekce produktů */
.shop-section { margin-bottom: 52px; }

.shop-section h2 {
  margin-bottom: 18px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Grid karet */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Karta produktu */
.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 14px;
  transition: transform 0.25s, border-color 0.25s;
}

.shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,106,249,0.4);
}

/* Náhled obrázku */
.shop-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
  cursor: zoom-in;
}

.shop-card.is-ped .shop-card-media { aspect-ratio: 3 / 4; }

.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.shop-card:hover .shop-card-media img { transform: scale(1.06); }

/* Tag */
.shop-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  background: rgba(6,8,14,0.8);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Tělo karty */
.shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.shop-card h3 { font-size: 18px; color: #fff; }

.shop-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Cena */
.shop-price {
  margin-top: auto;
  padding-top: 8px;
  color: var(--blue-2);
  font: 800 20px Outfit, Montserrat, sans-serif;
  letter-spacing: -0.02em;
}

/* Tlačítka karty */
.shop-view,
.shop-buy {
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  font-size: 12px;
}

.shop-buy svg { width: 15px; height: 15px; }

.shop-empty { color: var(--muted); font-size: 15px; }

/* Detail produktu */
.shop-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 20px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: var(--panel);
}

.shop-detail[hidden] { display: none !important; }

.shop-gallery { display: grid; gap: 10px; }

.shop-gallery-main {
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
}

.shop-detail.is-ped .shop-gallery-main { aspect-ratio: 3 / 4; }

.shop-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.shop-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 7px;
}

.shop-thumbs button {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--bg);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  transition: border-color 0.2s;
}

.shop-thumbs button.is-active,
.shop-thumbs button:hover { border-color: var(--blue); }

.shop-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Detail copy */
.shop-detail-copy { display: grid; align-content: start; gap: 10px; }
.shop-detail-copy .kicker { margin: 0; }

.shop-detail-copy h2 { font-size: clamp(26px, 3vw, 38px); }

.shop-detail-copy p { color: var(--muted); line-height: 1.7; font-size: 14px; }

.shop-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.shop-detail-meta span {
  padding: 5px 10px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  color: var(--silver);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.shop-detail-copy .shop-price { margin: 6px 0 4px; font-size: 28px; }

.shop-detail-actions { display: grid; gap: 10px; margin-top: 8px; }

.shop-back { width: 100%; padding: 11px 14px; font-size: 12px; }

/* Lightbox navigace */
.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  background: var(--panel);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-nav:hover {
  border-color: var(--blue);
  background: var(--blue-dim);
}

.lightbox-nav[hidden] { display: none !important; }

/* ─── RESPONZIVITA ─── */
@media (max-width: 1100px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .shop-layout,
  .shop-detail { grid-template-columns: 1fr; }
  .shop-side { position: static; }
  .shop-cats { display: flex; flex-wrap: wrap; }
  .shop-cat { width: auto; }
}

@media (max-width: 640px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-card.is-ped .shop-card-media { aspect-ratio: 16 / 10; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
