/* ================================================
   BURGOS SHOP — PEDOVI (S3 tema)
   Ide uz shop-s3.css; koristi njegove --s3-* varijable.
   ================================================ */

/* ── topbar: pretraga / sort / brojac ── */
.ped-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ped-search-wrap { position: relative; flex: 1; min-width: 220px; }
.ped-search-icon {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  color: rgba(93,156,172,.5);
  pointer-events: none;
}
.ped-search {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  color: #fff;
  font-family: var(--fb);
  font-size: .88rem;
  outline: none;
  cursor: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.ped-search::placeholder { color: rgba(255,255,255,.22); }
.ped-search:focus {
  border-color: var(--s3-teal);
  background: rgba(93,156,172,.06);
  box-shadow: 0 0 0 3px rgba(93,156,172,.1);
}
.ped-sort {
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  color: rgba(255,255,255,.65);
  font-family: var(--fu);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  outline: none;
  cursor: none;
  transition: border-color .2s;
}
.ped-sort:focus { border-color: var(--s3-teal); }
.ped-sort option { background: #0d0d16; color: #fff; }
.ped-count {
  font-family: var(--fu);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(93,156,172,.7);
  white-space: nowrap;
}

/* ── filteri ── */
.ped-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}
.ped-flt {
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 99px;
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.4);
  font-family: var(--fu);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: none;
  transition: color .2s, border-color .2s, background .2s;
}
.ped-flt:hover {
  color: rgba(255,255,255,.75);
  border-color: rgba(93,156,172,.3);
}
.ped-flt.active {
  background: var(--s3-grad);
  border-color: transparent;
  color: #fff;
}

/* ── grid ── */
.ped-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.ped-card {
  background: rgba(255,255,255,.022);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  cursor: none;
  transition: transform .22s, border-color .22s, box-shadow .22s, background .22s;
}
.ped-card:hover {
  transform: translateY(-4px);
  border-color: rgba(93,156,172,.35);
  background: rgba(93,156,172,.03);
  box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(93,156,172,.06);
}
.ped-card-img {
  position: relative;
  aspect-ratio: 3/4;
  background: rgba(255,255,255,.03);
  overflow: hidden;
}
.ped-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ped-card:hover .ped-card-img img { transform: scale(1.05); }
.ped-card-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

/* PD oznaka */
.ped-pd-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(6,6,13,.75);
  border: 1px solid rgba(93,156,172,.4);
  backdrop-filter: blur(6px);
  color: var(--s3-teal);
  font-family: var(--fu);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
}

/* rezervisano / prodato */
.ped-reserved-overlay,
.ped-sold-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: grayscale(.85) blur(1px);
  background: rgba(6,6,13,.55);
}
.ped-reserved-label,
.ped-sold-label {
  padding: 7px 20px;
  border-radius: 99px;
  font-family: var(--fu);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  transform: rotate(-8deg);
}
.ped-reserved-label {
  background: rgba(139,123,200,.18);
  border: 1px solid rgba(139,123,200,.55);
  color: #b3a6e0;
}
.ped-sold-label {
  background: rgba(224,85,95,.15);
  border: 1px solid rgba(224,85,95,.5);
  color: #e0555f;
}

/* zoom hint */
.ped-zoom-hint {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 3;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(6,6,13,.7);
  border: 1px solid rgba(93,156,172,.25);
  backdrop-filter: blur(6px);
  color: var(--s3-teal);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .22s, transform .22s;
}
.ped-card:hover .ped-zoom-hint { opacity: 1; transform: translateY(0); }

/* telo kartice */
.ped-card-body { padding: 14px 16px 16px; }
.ped-card-name {
  font-family: var(--fu);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  margin-bottom: 5px;
}
.ped-card-opis {
  font-family: var(--fb);
  font-size: .74rem;
  line-height: 1.5;
  color: rgba(255,255,255,.3);
  min-height: 2.2em;
  margin-bottom: 12px;
}
.ped-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ped-card-price {
  font-family: var(--fd);
  font-size: 1.25rem;
  background: var(--s3-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ped-card-btn {
  padding: 7px 16px;
  border: 1px solid rgba(93,156,172,.3);
  border-radius: 8px;
  background: rgba(93,156,172,.07);
  color: var(--s3-teal);
  font-family: var(--fu);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .22s, color .22s, border-color .22s;
}
.ped-card-btn:hover {
  background: var(--s3-grad);
  border-color: transparent;
  color: #fff;
}

/* prazno stanje */
.ped-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 70px 20px;
  font-family: var(--fb);
  font-size: .88rem;
  color: rgba(255,255,255,.28);
}

/* ================================================
   LIGHTBOX
   ================================================ */
.ped-lb {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.ped-lb.open { display: flex; }
.ped-lb-bg {
  position: absolute;
  inset: 0;
  background: rgba(4,4,9,.85);
  backdrop-filter: blur(6px);
}
.ped-lb-box {
  position: relative; z-index: 1;
  display: flex;
  background: #0b0b14;
  border: 1px solid rgba(93,156,172,.16);
  border-radius: 18px;
  overflow: hidden;
  max-width: 860px; width: 100%;
  max-height: 90vh;
  box-shadow: 0 40px 100px rgba(0,0,0,.8), 0 0 60px rgba(93,156,172,.06);
}
.ped-lb-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  background: rgba(6,6,13,.7);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.55);
  cursor: none;
  transition: color .2s, border-color .2s, background .2s;
}
.ped-lb-close:hover {
  color: #fff;
  border-color: rgba(93,156,172,.5);
  background: rgba(93,156,172,.15);
}
.ped-lb-img {
  width: 360px; flex-shrink: 0;
  background: rgba(255,255,255,.03);
}
.ped-lb-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ped-lb-img-placeholder {
  width: 100%; height: 100%;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.ped-lb-info {
  flex: 1;
  padding: 34px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.ped-lb-badge-pd {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(93,156,172,.35);
  border-radius: 99px;
  background: rgba(93,156,172,.08);
  color: var(--s3-teal);
  font-family: var(--fu);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ped-lb-name {
  font-family: var(--fd);
  font-size: 2rem;
  letter-spacing: .06em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}
.ped-lb-price {
  font-family: var(--fd);
  font-size: 1.7rem;
  background: var(--s3-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ped-lb-divider {
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, var(--s3-teal), var(--s3-dark), transparent);
  opacity: .4;
}
.ped-lb-opis {
  font-family: var(--fb);
  font-size: .87rem;
  line-height: 1.75;
  color: rgba(255,255,255,.42);
  margin-bottom: 20px;
}
.ped-lb-video-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 9px 18px;
  border: 1px solid rgba(139,123,200,.3);
  border-radius: 9px;
  background: rgba(139,123,200,.07);
  color: var(--s3-lila);
  font-family: var(--fu);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .22s, color .22s;
}
.ped-lb-video-btn:hover { background: rgba(139,123,200,.16); color: #fff; }
.ped-lb-actions { margin-top: auto; }
.ped-lb-buy {
  display: block;
  text-align: center;
  padding: 13px 24px;
  border: 1px solid rgba(93,156,172,.3);
  border-radius: 10px;
  background: rgba(93,156,172,.07);
  color: var(--s3-teal);
  font-family: var(--fu);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .22s, color .22s, border-color .22s;
}
.ped-lb-buy:hover {
  background: var(--s3-grad);
  border-color: transparent;
  color: #fff;
}

/* ── disclaimer ── */
.ped-disclaimer {
  margin-top: 44px;
  padding: 24px 28px;
  border: 1px solid rgba(139,123,200,.18);
  border-radius: 12px;
  background: rgba(139,123,200,.04);
  font-family: var(--fb);
  font-size: .82rem;
  line-height: 1.75;
  color: rgba(255,255,255,.38);
}
.ped-disclaimer p { margin: 0 0 12px; }
.ped-disclaimer p:last-child { margin-bottom: 0; }
.ped-disclaimer strong { color: rgba(255,255,255,.62); }
.ped-disclaimer a { color: var(--s3-teal); text-decoration: none; }
.ped-disclaimer a:hover { text-decoration: underline; }
.ped-disclaimer-title {
  font-family: var(--fu);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(139,123,200,.9);
  margin-bottom: 12px;
}
.ped-disclaimer-divider {
  height: 1px;
  margin: 16px 0;
  background: rgba(255,255,255,.07);
}

/* ── responsive ── */
@media (max-width: 780px) {
  .ped-lb-box { flex-direction: column; max-height: 92vh; overflow-y: auto; }
  .ped-lb-img { width: 100%; height: 300px; }
  .ped-lb-info { padding: 26px 22px; }
}
@media (max-width: 560px) {
  .ped-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .ped-topbar { gap: 10px; }
  .ped-count { width: 100%; }
}
