/* Fotky u recenzí produktů: výběr v dotazníku a v účtu (.ph), miniatury u recenze (.rv__photos),
   pás „Fotky od zákazníků“ na produktu (.pd-photos), dlaždice recenze (.rcard__photo) a prohlížeč fotek (.lb). */

/* ---- výběr fotek ---- */
.ph{display:flex;flex-direction:column;gap:10px}
.ph__h{font-size:16px}
.ph__row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.ph__list{display:contents;list-style:none;margin:0;padding:0}
.ph__item{position:relative;width:88px;height:88px;flex:none;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--bg-soft)}
.ph__item img{width:100%;height:100%;object-fit:cover;display:block}
.ph__item.is-busy::after{content:'';position:absolute;inset:0;background:rgba(255,255,255,.55) no-repeat center/28px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%230f7a55' stroke-width='3' stroke-dasharray='40 20'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E")}
.ph__item.is-off img{opacity:.35}
.ph__del{position:absolute;top:4px;right:4px;width:28px;height:28px;border-radius:50%;border:0;background:rgba(12,42,34,.78);color:#fff;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.ph__del:hover{background:var(--danger)}
.ph__rm{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;gap:4px;padding:3px 0;background:rgba(255,255,255,.9);font-size:12px;cursor:pointer}
.ph__rm input{margin:0}
.ph__btns{display:flex;flex-wrap:wrap;gap:10px}
.ph__btn{position:relative;width:88px;height:88px;border:1.5px dashed var(--input);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:13px;font-weight:600;color:var(--text-2);cursor:pointer;text-align:center;line-height:1.15;padding:4px;transition:border-color .15s,background .15s}
.ph__btn:hover{border-color:var(--ink);background:var(--bg-soft)}
.ph__btn:focus-within{outline:2px solid var(--primary);outline-offset:2px}
.ph__btn input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.ph__msg{font-size:13px}
.ph__msg[data-state=error]{color:var(--danger)}
.qw-prod .ph__h{font-size:15px}

/* ---- miniatury u recenze ---- */
.rv__photos{display:flex;flex-wrap:wrap;gap:8px}
.rv__photo{display:block;width:96px;height:96px;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--bg-soft);cursor:zoom-in}
.rv__photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}
.rv__photo:hover img{transform:scale(1.04)}

/* ---- produkt: fotky od zákazníků ---- */
.pd-photos{display:flex;flex-direction:column;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.pd-photos__h{font-size:18px;font-weight:700}
.pd-photos__row{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.pd-photos__item{flex:none;width:120px;height:120px;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:var(--bg-soft);scroll-snap-align:start;cursor:zoom-in}
.pd-photos__item img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:600px){.pd-photos__item{width:96px;height:96px}}

/* ---- dlaždice recenze ---- */
.rcard__photo{width:64px;height:64px;border-radius:8px;object-fit:cover;border:1px solid var(--line)}

/* ---- prohlížeč fotek ---- */
.lb{border:0;padding:0;margin:0;width:100vw;height:100vh;max-width:none;max-height:none;background:rgba(8,20,16,.94);color:#fff}
.lb::backdrop{background:rgba(8,20,16,.94)}
.lb[open]{display:flex;flex-direction:column}
.lb__stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:56px 56px 8px}
.lb__img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:6px}
.lb__bar{display:flex;align-items:center;justify-content:center;gap:16px;padding:10px 16px 18px;font-size:14px;color:#cfdcd6;flex-wrap:wrap;text-align:center}
.lb__bar a{color:var(--mint)}
.lb__btn{position:absolute;border:0;background:rgba(255,255,255,.12);color:#fff;width:44px;height:44px;border-radius:50%;font-size:24px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lb__btn:hover{background:rgba(255,255,255,.24)}
.lb__close{top:10px;right:10px}
.lb__prev,.lb__next{top:50%;transform:translateY(-50%)}
.lb__prev{left:8px}
.lb__next{right:8px}
@media (max-width:600px){.lb__stage{padding:56px 8px 8px}.lb__prev,.lb__next{top:auto;bottom:8px;transform:none}}
