/* Minimal bridges so MegaGroup theme works under Django */

.site-info__logo a { display: inline-block; }

.product-list.thumbs .shop2-product-item,
.product-list.thumbs .product-item {
  display: block;
}

.login-form__row input,
.login-form__row textarea,
.cabinet-form .gr-field-style input,
.cabinet-form .gr-field-style textarea,
.cabinet-form .gr-field-style select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #cfd8e3;
}

.shop2-product-amount input {
  width: 48px;
  text-align: center;
}

.buy-btn,
.cabinet-block__btn,
.help-block__btn1,
.help-block__btn2 {
  cursor: pointer;
}

.help-block__btn1,
.help-block__btn2 {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.product-flags__item {
  /* theme.scss.css styles .new_item / .action_item — don't override colors */
}

.django-messages,
.shop2-warning {
  margin: 8px 0;
}

.s3-cookie-message {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(15, 30, 50, 0.95);
  color: #fff;
  padding: 14px 20px;
}

.s3-cookie-message__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.s3-cookie-message a { color: #9fd0ff; }

.folders-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.folders-list__item a {
  text-decoration: none;
}

.shop2-pagelist {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

/* Remodal readability */
.remodal .login-form__header {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}
.remodal .login-form__row {
  margin-bottom: 10px;
}
.remodal .login-form__row > label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Keep left catalog panel usable if theme expects fixed layout */
.left-folders__list a {
  text-decoration: none;
}

.card-slider__image img {
  max-width: 100%;
  height: auto;
}

.form-additional__btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-additional__btns .buy-one-click {
  text-align: center;
  text-decoration: none;
}

/* Режим без магазина: запасное скрытие, если что-то осталось в разметке */
body.shop-disabled .cart-overlay,
body.shop-disabled .cart-popup-block,
body.shop-disabled .fixed-cart-panel,
body.shop-disabled .header-panel__cart,
body.shop-disabled .header-panel__cabinet,
body.shop-disabled .cabinet-block,
body.shop-disabled .cart-block,
body.shop-disabled .compare-block,
body.shop-disabled .burger-block__cabinet,
body.shop-disabled .product-amount,
body.shop-disabled .product-compare,
body.shop-disabled .js-add-cart {
  display: none !important;
}

body.shop-disabled .gr-product-additional .buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

/* Хедер: название без переноса; меню компактное слева (без огромных пробелов) */
@media (min-width: 1261px) {
  body .site-header__left {
    max-width: 460px;
  }

  body .site-header .site-info__name {
    white-space: nowrap;
  }

  body .site-header__center {
    margin: 0 10px 0 16px;
    text-align: left;
    min-width: 0;
  }

  body .site-header .top-menu {
    display: flex !important;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 18px;
    gap: 0;
  }

  body .site-header .top-menu > li > a {
    padding: 0 10px;
    white-space: nowrap;
  }

  body .site-header .top-menu > li:first-child > a {
    padding-left: 0;
  }
}

/* Слайдер на главной: кнопка «ПРОДАЖИ ОТКРЫТЫ!» внутри синего блока.
   site_addons задаёт .top-slider__body { height: 166px !important } — кнопка
   вылезает наружу; lightSlider (overflow:hidden) и белый .site-main её перекрывают. */
@media (min-width: 1024px) {
  body .top-slider {
    overflow: visible !important;
    max-height: none !important;
    position: relative;
    z-index: 4;
  }

  body .top-slider .lSSlideOuter,
  body .top-slider .lSSlideWrapper,
  body .top-slider .lightSlider,
  body .top-slider__items {
    overflow: visible !important;
  }

  body .top-slider__item {
    height: auto !important;
    min-height: 520px;
    padding-bottom: 48px;
    align-items: flex-end;
    box-sizing: border-box;
  }

  body .top-slider__body {
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 32px !important;
    padding-bottom: 40px !important;
  }

  body .top-slider__body .top-slider__btn,
  body .top-slider__btn {
    margin: 24px 0 0 0 !important;
    position: relative;
    z-index: 5;
  }

  body .site-main.main_mode {
    position: relative;
    z-index: 1;
  }
}

/* Формы заявок: отступ от синего меню, читаемая вёрстка */
.lead-form-page {
  padding-top: 8px;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.lead-form-page__form {
  max-width: 480px;
}

.lead-form-page .login-form__row > label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1a1a1a;
}

@media (min-width: 1261px) {
  body.lead-page .site-main.block_padding {
    padding-left: 64px;
  }
}

