/* ---------- RESET ---------- */
.product__content { box-sizing: border-box; }
.product__content {
  margin: 0;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a1f25;
  background: #f5f6f8;
}

.box-1 div.specimg{
  display: none;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
[x-cloak] { display: none !important; }

/* ---------- TOPBAR ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px; background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 50;
}
.topbar__logo { font-weight: 700; font-size: 18px; color: #1a6dff; letter-spacing: .5px; }

/* ---------- MINI CART ---------- */
.minicart { position: relative; margin-top: 5px;}
.minicart__btn {
  background: #1a6dff; color: #fff; border: 0;
  padding: 8px 16px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 8px;
}
.minicart__badge {
  background: #fff; color: #1a6dff;
  border-radius: 999px; padding: 1px 7px;
  font-size: 12px; font-weight: 700;
}
.minicart__drop {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 340px; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 12px; z-index: 104;
}
.minicart__empty { color: #7a8590; text-align: center; padding: 20px 0; }
.minicart__row {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  gap: 10px; align-items: start;
  padding: 8px 0; border-bottom: 1px solid #f0f2f5;
}
.minicart__row:last-of-type { border-bottom: 0; }
.minicart__img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.minicart__name { font-weight: 600; font-size: 13px; }
.minicart__props { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.minicart__prop {
  font-size: 11px; background: #eef3ff; color: #1a6dff;
  padding: 1px 6px; border-radius: 4px;
}
.minicart__price { font-size: 13px; color: #7a8590; }
.minicart__price span, .order-modal__item-price span{display: inline; margin: none;} 
span.minicart__badge{margin: 0!important;} 
.minicart__info div, .order-modal__item-info div, .order-modal__section div,order-modal__section div,.order-modal__title, .order-form label{text-align: left;}
.minicart__remove {
  background: transparent; border: 0; color: #b0b7bf;
  font-size: 18px; line-height: 1; padding: 0;
}
.minicart__remove:hover { color: #e5484d; }
.minicart__total {
  border-top: 1px solid #e5e7eb; margin-top: 8px; padding-top: 10px;
  text-align: right;
}
.minicart__checkout {
  display: block; width: 100%; margin-top: 10px;
  background: #16a34a; color: #fff; border: 0;
  padding: 10px 14px; border-radius: 6px; font-weight: 600;
}
.minicart__checkout:hover { background: #15803d; }

/* ---------- ORDER MODAL ---------- */
.order-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.order-modal__box {
  position: relative;
  width: 100%; max-width: 440px; max-height: 90vh;
  overflow-y: auto;
  background: #fff; border-radius: 12px;
  padding: 24px 22px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.order-modal__close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #f0f2f5; color: #7a8590; font-size: 20px; line-height: 1;
}
.order-modal__close:hover { background: #e5e7eb; color: #1a1f25; }
.order-modal__title {
  margin: 0 0 18px; font-size: 20px; font-weight: 700;
}
.order-modal__section { margin-bottom: 18px; }
.order-modal__label {
  font-weight: 600; font-size: 13px; color: #7a8590;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: .03em;
}
.order-modal__items {
  border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 8px 10px; max-height: 180px; overflow-y: auto;
  background: #fafbfc;
}
.order-modal__item {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 10px; align-items: start;
  padding: 8px 0; border-bottom: 1px solid #eef0f3;
}
.order-modal__item:last-child { border-bottom: 0; }
.order-modal__img {
  width: 40px; height: 40px; object-fit: cover; border-radius: 6px;
}
.order-modal__item-name { font-weight: 600; font-size: 13px; }
.order-modal__item-props { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }
.order-modal__prop {
  font-size: 11px; background: #eef3ff; color: #1a6dff;
  padding: 1px 6px; border-radius: 4px;
}
.order-modal__item-price { font-size: 12px; color: #7a8590; }
.order-modal__sum {
  text-align: right; margin-top: 8px; font-size: 15px;
}

.order-form__field { margin-bottom: 12px; }
.order-form__field label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px;
}
.order-form__field label span { color: #e5484d; }
.order-form__field input,
.order-form__field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid #d8dde3; border-radius: 6px;
  font: inherit; background: #fff;
  box-sizing: border-box;
}
.order-form__field textarea {
  resize: vertical; min-height: 96px; line-height: 1.45;
}
.order-form__field input:focus,
.order-form__field textarea:focus {
  outline: none; border-color: #1a6dff;
  box-shadow: 0 0 0 3px rgba(26,109,255,.15);
}
.order-form__error {
  color: #e5484d; font-size: 13px; margin: 0 0 10px;
}
.order-form__ok {
  color: #16a34a; font-size: 13px; margin: 0 0 10px; font-weight: 500;
}
.order-form__submit {
  width: 100%; padding: 12px 16px;
  background: #1a6dff; color: #fff; border: 0;
  border-radius: 6px; font-weight: 600; font-size: 15px;
}
.order-form__submit:hover:not(:disabled) { background: #1557d0; }
.order-form__submit:disabled { opacity: .65; cursor: wait; }

/* ---------- PRODUCT LAYOUT ---------- */
.product { max-width: 1180px; margin: 24px auto; padding: 0 16px; }
.product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  background: #fff; border-radius: 12px;
  padding: 24px;
}
@media (max-width: 860px) {
  .product__grid { grid-template-columns: 1fr; }
}

.state { padding: 60px 20px; text-align: center; color: #7a8590; }
.state--error { color: #e5484d; }

/* ---------- GALLERY ---------- */
.gallery__main {
  position: relative; background: #fafbfc;
  border-radius: 10px; overflow: hidden;
}
.gallery__img {
  width: 100%; aspect-ratio: 1/1; object-fit: contain;
  cursor: zoom-in; padding: 20px;
}
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid #e5e7eb;
  font-size: 22px; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.gallery__nav:disabled { opacity: .3; cursor: default; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }

.gallery__thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px; margin-top: 12px;
}
.gallery__thumb {
  padding: 4px; border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fff;
}
.gallery__thumb.is-active { border-color: #1a6dff; box-shadow: 0 0 0 1px #1a6dff inset; }
.gallery__thumb img { aspect-ratio: 1/1; object-fit: contain; }

/* ---------- INFO ---------- */
.info__title { margin: 0 0 8px; font-size: 26px; }
.info__meta { color: #7a8590; font-size: 13px; margin-bottom: 8px; }
.info__meta .sep { margin: 0 6px; }
.link { color: #1a6dff; text-decoration: none; }
.info__sku { font-size: 13px; color: #7a8590; margin-bottom: 20px; }
.stock { margin-left: 12px; font-weight: 500; }
.stock--in  { color: #16a34a; }
.stock--out { color: #d97706; }

/* свойства */
.prop { margin-bottom: 18px; }
.prop__label { font-weight: 600; margin-bottom: 8px; font-size: 14px; }

.prop__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-opt {
  padding: 8px 18px; background: #fff;
  border: 1px solid #d8dde3; border-radius: 6px;
  transition: .15s;
}
.btn-opt:hover:not(:disabled) { border-color: #1a6dff; }
.btn-opt.is-active { background: #1a6dff; color: #fff; border-color: #1a6dff; }
.btn-opt.is-disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.prop__cards { display: flex; flex-direction: column; gap: 8px; }
.card-opt {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid #d8dde3; border-radius: 8px;
  cursor: pointer; transition: .15s;
}
.card-opt:hover:not(.is-disabled) { border-color: #1a6dff; }
.card-opt.is-active { border-color: #1a6dff; box-shadow: 0 0 0 1px #1a6dff inset; background: #f7faff; }
.card-opt.is-disabled { opacity: .4; cursor: not-allowed; }
.card-opt input { margin-top: 3px; accent-color: #1a6dff; }
.card-opt__body { display: flex; flex-direction: column; gap: 2px; }
.card-opt__title { font-weight: 600; }
.card-opt__desc { font-size: 12px; color: #7a8590; }

/* цена */
.price { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 16px; }
.price__value { font-size: 30px; font-weight: 700; }
.price__cur { font-size: 20px; font-weight: 700; }
.price__note { color: #7a8590; font-size: 13px; margin-left: 6px; }

/* кнопки */
.actions { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.btn {
  padding: 12px 24px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; transition: .15s;
}
.btn--primary { background: #1a6dff; color: #fff; }
.btn--primary:hover:not(:disabled) { background: #0d5ce8; }
.btn--primary:disabled { background: #b8c6dd; cursor: not-allowed; }
.btn--outline { background: #fff; color: #1a6dff; border-color: #1a6dff; }
.btn--outline:hover { background: #f0f5ff; }

/* specs */
.specs {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
  border-top: 1px solid #eef0f3; padding-top: 18px;
}
@media (max-width: 560px) { .specs { grid-template-columns: 1fr; } 
.product{padding: 0px!important;}
.minicart__btn{padding: 5px 13px!important;padding-bottom:8px!important;}
}
.specs__item { display: grid; grid-template-columns: 18px auto 1fr; gap: 6px; font-size: 13px!important; }
.specs__icon { color: #1a6dff; }
.specs__label { color: #7a8590; }
.specs__value { color: #1a1f25; }

/* ---------- BOTTOM ---------- */
.product__bottom {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px;
  margin-top: 24px;
}
@media (max-width: 860px) { .product__bottom { grid-template-columns: 1fr; } }

.video, .included {
  background: #fff; border-radius: 12px; padding: 20px;
}
.section__title { font-size: 18px; margin: 0 0 14px; }
.video__el { width: 100%; border-radius: 8px; background: #000; }

.included__list { list-style: none; padding: 0; margin: 0; }
.included__item {
  display: flex; gap: 10px; padding: 6px 0;
  border-bottom: 1px dashed #eef0f3;
}
.included__item:last-child { border-bottom: 0; }
.included__check { color: #16a34a; font-weight: 700; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox__img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 8px; background: #fff;
}
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: #fff;
  font-size: 24px; line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: #fff;
  font-size: 28px; line-height: 1;
}
.lightbox__nav:hover:not(:disabled) { background: rgba(255,255,255,.3); }
.lightbox__nav:disabled { opacity: .25; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #16a34a; color: #fff; padding: 12px 22px;
  border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
  z-index: 200; font-weight: 500;
}