/* Nugátovník — add-to-cart popup */

.nug-ov {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.nug-ov.o { opacity: 1; pointer-events: auto; }

.nug-m {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  background: #fff;
  border-radius: 8px;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  font-family: inherit;
}
.nug-m.o {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.nug-x {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0;
  font-size: 28px; line-height: 1;
  cursor: pointer; color: #999;
  padding: 4px 8px;
}
.nug-x:hover { color: #333; }

.nug-h {
  padding: 18px 22px 10px;
  border-bottom: 1px solid #eee;
  margin: 0;
  font-size: 17px; font-weight: 700;
  color: #2d8c2d;
  display: flex; align-items: center; gap: 8px;
}
.nug-h::before {
  content: '✓';
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #2d8c2d; color: #fff;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}

.nug-p {
  display: flex; gap: 12px;
  padding: 14px 22px;
  background: #fafafa;
  align-items: center;
}
.nug-p img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
}
.nug-p b { font-size: 14px; display: block; }
.nug-p span { color: #666; font-size: 12px; }

.nug-t { padding: 14px 22px; }
.nug-tl { font-size: 13px; margin-bottom: 6px; }
.nug-tl b { color: #2d8c2d; }
.nug-tb {
  background: #eee;
  border-radius: 99px;
  height: 9px;
  overflow: hidden;
}
.nug-tf {
  height: 100%;
  background: linear-gradient(90deg, #f5a623, #2d8c2d);
  width: 0%;
  transition: width 0.4s ease;
}

/* Stav "máte dopravu zdarma" — výrazný */
.nug-t.is-free {
  margin: 6px 22px 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 8px;
  text-align: center;
}
.nug-t.is-free .nug-tl {
  font-size: 16px;
  color: #1b5e20;
  margin: 0;
}
.nug-t.is-free .nug-tl b { color: #1b5e20; }
.nug-t.is-free .nug-tb { display: none; }

.nug-c { padding: 8px 22px 14px; }
.nug-c h3 {
  font-size: 12px;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
  font-weight: 600;
}
.nug-cg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.nug-ci {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s;
}
.nug-ci:hover { border-color: #2d8c2d; }
.nug-ci img {
  width: 100%; height: 80px;
  object-fit: cover;
  border-radius: 4px;
}
.nug-ci div {
  font-size: 12px;
  margin: 6px 0 2px;
  line-height: 1.3;
}
.nug-ci b {
  font-size: 13px;
  color: #2d8c2d;
}

.nug-a {
  display: flex;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid #eee;
}
.nug-b {
  flex: 1;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
}
.nug-b1 { background: #f3f3f3; color: #333; }
.nug-b1:hover { background: #e7e7e7; }
.nug-b2 { background: #2d8c2d; color: #fff; }
.nug-b2:hover { opacity: 0.9; color: #fff; }

@media (max-width: 520px) {
  .nug-cg { grid-template-columns: repeat(2, 1fr); }
  .nug-a { flex-direction: column; }
}
