/* assets/css/cart-page.css */

.lr-cart-title{
  font-family: var(--lr-font-head);
  font-weight: 800;
  color: var(--lr-heading-color);
  letter-spacing: .2px;
  margin: 0 0 18px;
  font-size: 30px;
}

.lr-cart-layout{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap: 22px;
  align-items:start;
}

.lr-cart-left,
.lr-cart-right{
  background: var(--lr-bg);
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
  box-shadow: var(--lr-shadow);
  padding: 18px;
}

.lr-field{
  margin: 0 0 14px;
}

.lr-field label,
.lr-field__label{
  display:block;
  font-weight: 700;
  color: var(--lr-text);
  margin-bottom: 8px;
}

.lr-field__hint{
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--lr-muted);
}

.lr-field input,
.lr-field textarea,
.lr-field select{
  width:100%;
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius-sm);
  padding: 12px 14px;
  background: #fff;
  outline: none;
  color: var(--lr-text);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.lr-field textarea{
  min-height: 112px;
  resize: vertical;
}

.lr-field input::placeholder,
.lr-field textarea::placeholder{
  color: rgba(0,0,0,.42);
}

.lr-field input:focus,
.lr-field textarea:focus,
.lr-field select:focus{
  border-color: rgba(0,0,0,.28);
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}

.lr-field select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 44px;
}

.lr-select-wrap{
  position: relative;
}

.lr-select-wrap::after{
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid rgba(0,0,0,.45);
  border-bottom: 2px solid rgba(0,0,0,.45);
  transform: rotate(45deg);
  pointer-events: none;
}

.lr-muted{
  color: var(--lr-muted);
}

/* Способ получения */
.lr-ship-toggle{
  display:flex;
  gap: 10px;
}

.lr-ship-toggle .lr-radio{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  min-height: 52px;
  padding:12px 14px;
  border:1px solid var(--lr-line);
  border-radius: var(--lr-radius-sm);
  background: #fff;
  cursor:pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.lr-ship-toggle .lr-radio:hover{
  border-color: rgba(0,0,0,.20);
  background: rgba(0,0,0,.015);
}

.lr-ship-toggle .lr-radio span{
  font-weight:700;
  color: var(--lr-text);
}

.lr-ship-toggle .lr-radio input{
  appearance:none;
  -webkit-appearance:none;
  width:16px;
  height:16px;
  border:2px solid rgba(0,0,0,.25);
  border-radius:50%;
  position:relative;
  margin:0;
  flex:0 0 auto;
  background:#fff;
}

.lr-ship-toggle .lr-radio input:checked{
  border-color: rgba(0,0,0,.45);
}

.lr-ship-toggle .lr-radio input:checked::after{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:50%;
  background: rgba(0,0,0,.55);
}

.lr-ship-toggle .lr-radio:has(input:checked){
  border-color: rgba(0,0,0,.25);
  background: rgba(0,0,0,.03);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

/* Самовывоз */
.lr-pickup-card{
  margin: 6px 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
  background: linear-gradient(180deg, rgba(0,0,0,.018), rgba(0,0,0,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.lr-pickup-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.lr-pickup-card__title{
  font-family: var(--lr-font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--lr-text);
  letter-spacing: .01em;
}

.lr-pickup-card__badge{
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  color: rgba(0,0,0,.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lr-pickup-card__row{
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
  margin: 0 0 6px;
  line-height: 1.45;
}

.lr-pickup-card__row:last-child{
  margin-bottom: 0;
}

.lr-pickup-card__label{
  font-weight: 700;
  color: rgba(0,0,0,.62);
}

.lr-pickup-card__value{
  color: var(--lr-text);
}

.lr-field--schedule{
  margin-top: 0;
}

.lr-inline-fields--schedule{
  align-items:start;
}

.lr-inline-fields--schedule .lr-select-wrap{
  width:100%;
}

.lr-field input:disabled,
.lr-field select:disabled{
  opacity:.65;
  cursor:not-allowed;
  background:rgba(0,0,0,.035);
}

/* Товары */
.lr-cart-items{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.lr-cart-item{
  display:grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items:start;
  padding: 12px;
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
}

.lr-cart-item__img{
  width:56px;
  height:56px;
  border-radius: var(--lr-radius-sm);
  overflow:hidden;
  background: rgba(0,0,0,.04);
}

.lr-cart-item__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.lr-cart-item__name{
  font-weight: 800;
  font-size: 14px;
  margin: 2px 0 8px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.lr-cart-item__price{
  font-weight: 800;
  white-space: nowrap;
}

.lr-cart-item__rm{
  font-size: 12px;
  color: var(--lr-muted);
  text-decoration:none;
}

.lr-cart-item__rm:hover{
  opacity: .8;
}

.lr-cart-summary{
  margin-top: 14px;
  border-top: 1px solid var(--lr-line);
  padding-top: 14px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.lr-srow{
  display:flex;
  justify-content:space-between;
  gap: 10px;
}

.lr-srow__l{
  color: var(--lr-muted);
}

.lr-srow__r{
  font-weight: 700;
}

.lr-srow--total .lr-srow__l{
  color: var(--lr-text);
  font-weight: 800;
}

.lr-srow--total .lr-srow__r{
  font-family: var(--lr-font-head);
  font-weight: 900;
  font-size: 20px;
}

.lr-bonus-box{
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
  background: rgba(0,0,0,.03);
}

.lr-bonus-btn{
  width:100%;
  padding: 12px 14px;
  border-radius: var(--lr-radius);
  border: 0;
  background: #4b4b4b;
  color: #fff;
  font-weight: 800;
  cursor:pointer;
}

.lr-bonus-btn:hover{
  opacity:.9;
}

/* PROMOCODE */
.lr-coupon{
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
  background: rgba(0,0,0,.02);
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}

.lr-coupon__input{
  flex: 1 1 180px;
  min-width: 160px;
  border: 1px solid var(--lr-line);
  border-radius: 999px;
  padding: 10px 12px;
  background:#fff;
}

.lr-coupon__btn{
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.18);
  background:#fff;
  cursor:pointer;
  font-weight: 700;
}

.lr-coupon__msg{
  width: 100%;
  font-size: 12px;
  color: var(--lr-muted);
  margin-top: 4px;
}

/* BONUSES */
.lr-bonuses{
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
  background: rgba(0,0,0,.02);
}

.lr-bonuses__top{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.lr-bonuses__label{
  color: var(--lr-muted);
}

.lr-bonuses__toggle{
  display:flex;
  align-items:center;
  gap: 10px;
  cursor:pointer;
  user-select:none;
}

.lr-bonuses__toggle input{
  width: 16px;
  height: 16px;
}

/* + бонусов за заказ */
.lr-srow--earn{
  margin-top: 6px;
}

.lr-earn{
  font-size: 12px;
  color: var(--lr-muted);
  font-weight: 600;
}

/* PRIMARY CTA */
.lr-checkout-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top: 14px;
  width:100%;
  padding: 14px 14px;
  border-radius: var(--lr-radius);
  background: #4b4b4b;
  color:#fff;
  font-weight: 900;
  text-decoration:none;
  border: 0;
  cursor: pointer;
}

.lr-checkout-btn:hover{
  opacity:.92;
}

.lr-page-title{
  font-family: var(--lr-font-head);
  font-weight: 900;
  margin: 0 0 18px;
}

.lr-page-title--center{
  text-align:center;
}

.lr-checkout-btn.lr-disabled{
  pointer-events:none;
  opacity:.55;
  cursor:not-allowed;
}

/* =========================
   ADDONS (tiles + overlay)
   ========================= */

.lr-addons{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.lr-addon-tile{
  height: 96px;
  border-radius: 14px;
  border: 1px solid var(--lr-line);
  background: #fff;
  box-shadow: var(--lr-shadow);
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 10px;
  cursor: pointer;
}

.lr-addon-tile__icon{
  width: 28px;
  height: 28px;
  display: block;
}

.lr-addon-tile__text{
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(0,0,0,.62);
  line-height: 1.15;
}

/* overlay */
:root{
  --lr-addon-top: var(--header-height, 0px);
}

body.lr-addon-open{
  overflow: hidden;
}

.lr-addon{
  position: fixed;
  left: 0;
  right: 0;
  top: var(--lr-addon-top);
  bottom: 0;
  background: rgba(255,255,255,.98);
  z-index: 1490;
  display: none;
}

.lr-addon.is-open{
  display: block;
}

.lr-addon__panel{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 40px 16px 60px;
}

.lr-addon__close{
  position: sticky;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  color: rgba(0,0,0,.65);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}

.lr-addon__wrap{
  width: min(1160px, 100%);
  margin: 0 auto;
}

.lr-addon__title{
  text-align: center;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(0,0,0,.60);
  font-size: 34px;
  margin: 0 0 10px;
}

.lr-addon__subtitle{
  text-align: center;
  font-weight: 700;
  color: rgba(0,0,0,.45);
  margin: 0 0 26px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.lr-addon__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.lr-addon-card{
  text-align: center;
}

.lr-addon-card__img{
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
}

.lr-addon-card__img img{
  width: 100%;
  height: auto;
  display: block;
}

.lr-addon-card__name{
  margin: 12px 0 8px;
  font-weight: 700;
}

.lr-addon-card__price{
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 500;
}

.lr-addon-card__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 180px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: #4b4b4b;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lr-addon-card__btn--disabled{
  opacity: .45;
  pointer-events: none;
}

.lr-addon__empty{
  text-align: center;
  color: var(--lr-muted);
}

@media (max-width: 980px){
  .lr-cart-layout{
    grid-template-columns: 1fr;
  }

  .lr-addon__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lr-addon__title{
    font-size: 24px;
  }

  .lr-addons{
    gap: 10px;
  }

  .lr-addon-tile{
    height: 88px;
  }

  .lr-addon-tile__text{
    font-size: 13px;
  }

  .lr-ship-toggle{
    flex-direction: column;
  }

  .lr-pickup-card__head{
    flex-direction: column;
    align-items: flex-start;
  }
}

.lr-inline-fields{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
}

.lr-field .lr-same-person-tile{
  display:flex !important;
  align-items:center !important;
  gap:12px;
  min-height:52px;
  margin:0;
  padding:12px 14px;
  border:1px solid var(--lr-line);
  border-radius:var(--lr-radius-sm);
  background:#fff;
  cursor:pointer;
}

.lr-same-person-tile input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.lr-same-person-tile__control{
  flex:0 0 22px;
  width:22px;
  height:22px;
  border-radius:999px;
  border:1.5px solid rgba(0,0,0,.24);
  background:#fff;
  position:relative;
  display:block;
}

.lr-same-person-tile__text{
  display:block;
  font-weight:700;
  color:var(--lr-text);
  line-height:1.2;
}

.lr-same-person-tile input:checked + .lr-same-person-tile__control::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:999px;
  background:#4b4b4b;
}

@media (max-width: 980px){
  .lr-inline-fields{
    grid-template-columns:1fr;
  }
}


