/* Предзаказы — витрина */
#po-page .po-muted{color:#888;font-size:13px}
#po-page .po-ok{color:#2e8b57;font-weight:600}
#po-page .po-note{margin:0 0 14px;text-align:center;font-size:16px;color:#555}
#po-page .po-h2{margin:30px 0 15px}

/* как это работает */
.po-how{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0 22px}
.po-how__step{flex:1 1 200px;display:flex;align-items:center;gap:10px;background:#f7f5f2;border-radius:10px;padding:12px 14px;font-size:14px;line-height:1.35}
.po-how__step>span{flex:0 0 28px;height:28px;border-radius:50%;background:#333;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.po-how--compact .po-how__step{flex-basis:100%;padding:8px 12px;font-size:13px}

/* прогресс */
.po-bar{height:8px;background:#ebe7e1;border-radius:4px;overflow:hidden}
.po-bar i{display:block;height:100%;background:#e0a33a;border-radius:4px;transition:width .3s}
.po-bar i.ok{background:#3aa66a}

/* список лотов: плитка, как карточки товаров */
.po-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:20px}
.po-card{border:1px solid #eee;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;background:#fff;transition:box-shadow .2s,border-color .2s}
.po-card:hover{box-shadow:0 6px 20px rgba(0,0,0,.08)}
.po-card--in{border-color:#3aa66a}
.po-card__img{position:relative;display:block}
.po-card__img img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.po-card__badge{position:absolute;left:10px;top:10px;background:#3aa66a;color:#fff;font-size:12px;padding:4px 9px;border-radius:20px;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.po-card__badge[hidden]{display:none}
.po-card__flag{position:absolute;right:10px;top:10px;background:#fff;color:#2e8b57;font-size:12px;font-weight:600;padding:4px 9px;border-radius:20px}
.po-card__body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.po-card__title{font-size:15px;font-weight:600;color:#222;line-height:1.3}
.po-card__meta{font-size:12px;color:#888;min-height:16px}
.po-card__price{font-size:18px;font-weight:700}
.po-card__price small{font-weight:400;color:#888}
.po-card__progress small,.po-card__sub{font-size:12px;color:#777}
.po-card__progress .po-bar{margin:4px 0 3px}
.po-card__swatches{display:flex;flex-wrap:wrap;gap:5px}
.po-sw{width:26px;height:26px;border-radius:50%;overflow:hidden;background:#eee;border:2px solid #fff;box-shadow:0 0 0 1px #ddd;display:flex;align-items:center;justify-content:center;font-size:11px;color:#666}
.po-sw img{width:100%;height:100%;object-fit:cover}
.po-sw--ok{box-shadow:0 0 0 2px #3aa66a}
.po-sw--more{background:#f5f3f0;font-weight:600}
.po-card__mine{font-size:13px;color:#2e8b57;font-weight:600}
.po-card__actions{margin-top:auto;padding-top:8px}
.po-card__inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.po-card__inline .po-qty{flex:0 0 auto}
.po-card__inline .po-card__btn{flex:1 1 auto}
.po-card__inline .po-qty__err{flex-basis:100%}
.po-card .po-qty__in{width:44px}

/* окно выбора цветов */
.po-modal{display:none;position:fixed;inset:0;z-index:1050;background:rgba(0,0,0,.45);align-items:center;justify-content:center;padding:20px}
.po-modal--open{display:flex}
.po-modal__box{position:relative;background:#fff;border-radius:14px;width:100%;max-width:620px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.po-modal__x{position:absolute;right:10px;top:6px;border:0;background:none;font-size:30px;line-height:1;color:#999;cursor:pointer}
.po-modal__head{display:flex;gap:12px;align-items:center;padding:16px 46px 12px 16px;border-bottom:1px solid #eee}
.po-modal__head img{width:56px;height:56px;border-radius:8px;object-fit:cover}
.po-modal__title{font-size:17px;font-weight:600}
.po-modal__body{padding:6px 16px;overflow:auto}
.po-modal__foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;border-top:1px solid #eee}
body.po-modal-lock{overflow:hidden}

/* уведомление */
.po-toast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,20px);background:#222;color:#fff;padding:12px 18px;border-radius:10px;font-size:14px;z-index:1100;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;max-width:90vw}
.po-toast a{color:#9be3b8;font-weight:600;margin-left:6px}
.po-toast--show{opacity:1;transform:translate(-50%,0);pointer-events:auto}

.po-lot__add{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px}

/* строка цвета (список, страница лота, запись) */
.po-vline{display:flex;align-items:center;gap:14px;padding:8px 0;border-top:1px solid #f3f1ee}
.po-vline:first-of-type{border-top:0}
.po-vline--off{opacity:.55}
.po-vline__img{flex:0 0 44px}
.po-vline__img img{width:44px;height:44px;border-radius:8px;object-fit:cover;display:block}
.po-vline__main{flex:1;min-width:0}
.po-vline__name{font-weight:600;margin-bottom:4px}
.po-vline__stat{font-size:12px;color:#777;margin-top:4px}
.po-vline__qty{flex:0 0 170px;text-align:right}
.po-vline--big{border:1px solid #eee;border-radius:12px;padding:12px;margin-bottom:10px}
.po-vline--big .po-vline__img{flex-basis:64px}
.po-vline--big .po-vline__img img{width:64px;height:64px}

/* выбор метража */
.po-qty{display:inline-flex;align-items:center;border:1px solid #ddd;border-radius:8px;overflow:hidden;background:#fff;transition:border-color .2s,box-shadow .2s}
.po-qty--on{border-color:#3aa66a;box-shadow:0 0 0 2px rgba(58,166,106,.15)}
.po-qty--err{border-color:#d9534f}
.po-qty--busy{opacity:.7}
.po-qty__btn{width:34px;height:36px;border:0;background:#f5f3f0;font-size:18px;line-height:1;cursor:pointer;color:#333}
.po-qty__btn:hover{background:#ebe7e1}
.po-qty__in{width:56px;height:36px;border:0;text-align:center;font-size:15px;font-weight:600;outline:none;padding:0 2px}
.po-qty__u{font-size:13px;color:#888;padding-right:6px}
.po-qty__err{display:none;font-size:12px;color:#d9534f;margin-top:3px}
.po-remove{display:inline-block;font-size:12px;color:#999;margin-top:4px}

/* нижняя плашка */
.po-cartbar{position:fixed;left:0;right:0;bottom:0;z-index:1000;background:#fff;box-shadow:0 -4px 16px rgba(0,0,0,.12);transform:translateY(110%);transition:transform .25s}
.po-cartbar--show{transform:none}
.po-cartbar__ico{display:inline-flex;width:20px;height:20px;border-radius:50%;background:#3aa66a;color:#fff;font-style:normal;font-size:12px;align-items:center;justify-content:center;margin-right:4px}
@keyframes po-pulse{0%{transform:none}40%{transform:translateY(-6px)}100%{transform:none}}
.po-cartbar--pulse.po-cartbar--show{animation:po-pulse .4s}
.po-cartbar__in{max-width:1170px;margin:0 auto;padding:12px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px}
body.po-has-cartbar{padding-bottom:70px}
.po-cartbar__right{display:flex;align-items:center;gap:16px}
.po-cartbar__mine{font-weight:600;white-space:nowrap}
.po-cartbar--empty .po-cartbar__list,.po-cartbar--empty .po-cartbar__go{display:none}
.po-cartbar--empty .po-cartbar__in{justify-content:flex-end}

/* страница лота */
.po-lot{display:flex;gap:30px;flex-wrap:wrap;margin-bottom:20px}
.po-lot__media{flex:1 1 320px;max-width:480px}
.po-lot__media img{width:100%;border-radius:12px}
.po-lot__info{flex:1 1 300px}
.po-lot__price{font-size:26px;font-weight:700}
.po-props{margin:15px 0;font-size:14px}
.po-props td{padding:4px 16px 4px 0;vertical-align:top}
.po-props td:first-child{color:#888}
.po-desc{margin:10px 0 20px}
.po-back{margin-top:25px}

/* страница записи */
.po-co-group{border:1px solid #eee;border-radius:12px;padding:12px 14px;margin-bottom:14px}
.po-co-group__head{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.po-co-group__head img{width:48px;height:48px;border-radius:8px;object-fit:cover}
.po-co-group__title{font-size:16px;font-weight:600}
.po-co-total{text-align:right;font-size:16px;margin:6px 0 18px}
.po-contact{padding:18px;background:#f7f5f2;border-radius:12px}
.po-contact label{font-weight:600}
.po-contact .row>div{margin-bottom:10px}
.po-agree label{font-weight:400}
.po-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* личный кабинет */
.po-acc{border:1px solid #eee;border-radius:12px;padding:14px;margin-bottom:16px}
.po-acc__head{display:flex;gap:12px;align-items:center;margin-bottom:10px}
.po-acc__head img{width:60px;height:60px;border-radius:8px;object-fit:cover}
.po-acc__title{font-size:16px;font-weight:600}
.po-acc__row{display:flex;gap:14px;align-items:center;padding:8px 0;border-top:1px solid #f2f2f2;flex-wrap:wrap}
.po-acc__color{flex:0 0 160px;display:flex;align-items:center;gap:8px}
.po-acc__color img{width:32px;height:32px;border-radius:50%;object-fit:cover}
.po-acc__progress{flex:1 1 200px}
.po-acc__actions{display:flex;align-items:center;gap:6px}
.po-acc__m{width:80px;display:inline-block}

@media (max-width:767px){
  .po-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .po-card__body{padding:10px}
  .po-card__title{font-size:14px}
  .po-card__price{font-size:16px}
  .po-modal{padding:0;align-items:flex-end}
  .po-modal__box{max-width:none;border-radius:14px 14px 0 0;max-height:92vh}
  .po-vline{flex-wrap:wrap}
  .po-vline__qty{flex:1 1 100%;text-align:left}
  .po-acc__color{flex-basis:100%}
  .po-cartbar__in{font-size:13px;padding:10px 12px}
  .po-cartbar__right{gap:10px}
  .po-cartbar__go{padding:6px 10px}
  .po-cartbar__ico{display:none}
  .po-how__step{padding:9px 12px;font-size:13px}
}
