/* Страница товара*/

/*Скрываем 5 характеристику «Hidden»*/
.js-store-prod-all-charcs p:nth-child(5),
.js-product-edition-option-name {
    display: none !important;
}

/* Скрываем надпись «Подходит к плитам»*/
.js-product-edition-option-name {
    display: none !important;
}

/* Галерея: Надписи в сплит-вью */
.split-view-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 100px !important;
    font-family: 'Geologica' !important;
    font-size: 14px;
    font-weight: 600 !important;
    z-index: 999;
    max-width: 90%;
    text-align: center;
    word-wrap: break-word;
    box-shadow: none !important;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.1) !important;
}

.split-view-label-edge {
    top: 8px !important;
    color: #fff;
}

.split-view-label-plate {
    bottom: 8px !important;
    color: #fff;
}

/* Увеличиваем шрифт описания */
.t-store__prod-popup__info .t-descr_xxs {
font-size: 16px;
line-height: 1.33;
}

/* Скрываем выбор Производителя плиты */
.js-product-edition-option[data-edition-option-id="Производитель плиты"] {
  display: none;
}

/* Уменьшаем отступ перед шапкой */
.t-store__prod-snippet__container {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Скрываем краткое описание */
.js-store-prod-all-text {
    display: none;
}

/* Кнопка «← В Каталог» */
.t393.t393__positionstatic {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

/* Заголовок и цена */
.t-name_xs {
    font-size: 16px;
}

/*Походит к плитам → Иконки*/
.js-product .t-product__option-variants_buttons .t-product__option-checkmark_image {
    border-radius: 6px;
}



/* Сплит-вью галерея */

/* Main container for split-view comparison */
.split-view-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: inherit;
}

/* Top half - Edge image (static) */
.split-view-top {
    width: 100%;
    height: 50%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    flex: 0 0 50%;
    overflow: hidden;
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Bottom half - Board image (changes with variants) */
.split-view-bottom {
    width: 100%;
    height: 50%;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    position: relative;
    flex: 0 0 50%;
    overflow: hidden;
    border-radius: inherit;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Divider line between the two halves */
.split-view-divider {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.01);
    z-index: 10;
    transform: translateY(-50%);
}

/* Ensure wrapper has overflow hidden for safety */
.t-slds__imgwrapper[data-split-view="true"] {
    overflow: hidden !important;
}

/* Fix for any potential z-index issues */
.split-view-container {
    z-index: 1;
}

/* Label positioning and visibility */
.split-view-top,
.split-view-bottom {
    position: relative;
}

.split-view-container .split-view-label {
    z-index: 20;
    position: absolute;
    pointer-events: none;
}

.split-view-label-edge {
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
}

.split-view-label-plate {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
}

/* Label styling */
.split-view-label {
    padding: 8px 16px;
    border-radius: 100px !important;
    font-family: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px;
    font-weight: 600 !important;
    max-width: 90%;
    text-align: center;
    word-wrap: break-word;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .split-view-container {
        border-radius: 8px;
    }
    
    .split-view-top {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
    
    .split-view-bottom {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }
}


/* Каталог */

/* Фильтр: Увеличиваем размер шрифта */
.t-descr_xxs {
    font-size: 14px !important;
}
.js-product .t-product__option-variants_buttons .t-product__option-input:checked+.t-product__option-checkmark_image:before {
    border: 2px solid #f34723;
    height: calc(100% + 4px);
    left: -4px;
    top: -4px;
    width: calc(100% + 4px);
    border-radius: 8px;
}

/* Фильтр «Подходит к плитам»: Добавляем поле поиска */
.custom-search-input {
    width: 100%;
    margin-bottom: 15px;
    margin-top: 0px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    display: block;
}

.custom-search-input:hover {
    outline: none;
    border-color: #bbb;
    box-shadow: none;
}

.custom-search-input:focus {
    outline: none;
    border-color: #4c4c4c;
    box-shadow: none;
}

.custom-search-input::placeholder {
    color: #999;
}

/* Фиксим смещение ссылки «Показать все» при взаимодействии с Поиском*/
.t-store__filter__item.active .t-store__filter__item-controls-wrap {
    flex-wrap: wrap !important;
}


/* Листинг: Отключение смены фото при наведении на товары */
.t-store__card__img_second,
.t-store__card__bgimg_second {
  display: none !important;
}

.t-store__card:hover .t-store__card__img_hover,
.t-store__card:hover .t-store__card__bgimg_hover {
  opacity: 1 !important;
}

.t-store__card:hover .t-store__card__img_second,
.t-store__card:hover .t-store__card__bgimg_second {
  opacity: 0 !important;
  display: none !important;
}
/*У товаров*/
.t951 .js-product-price:before {content: "от "}

/*Корзина*/

/* Скрытие стандартных элементов корзины Tilda */
.t706__carticon, .t706__cartwin, .t706__sidebar, .t706__bubble-container { display: none !important; }

/* Иконка корзины */
.custom-cart-icon {
  position: fixed;
  top: 150px;
  right: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0px 15px 30px -10px rgba(0,11,48,0.2);
  cursor: pointer;
  z-index: 1000;
}

@media (max-width: 768px) {
    .custom-cart-icon {
        right: 10px;
    }
}

.custom-cart-icon-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-cart-counter {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #f44336;
    color: #fff;
    border-radius: 50%;
    /*padding: 2px 6px;*/
    width: 26px;
    height: 26px;
    text-align: center;
    line-height: 26px;
    font-family: 'Geologica';
    font-size: 12px;
}

/* Модальное окно корзины */
.custom-cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.custom-cart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.custom-cart-modal-content {
  position: relative;
  max-width: 420px;
  margin: 50px auto;
  background: #fff;
  border-radius: 20px;
  padding: 16px 40px 40px 40px;
  box-shadow: 0px 15px 30px -10px rgba(0,11,48,0.2);
  font-family: 'Geologica';
}
@media (max-width: 768px) {
    .custom-cart-modal-content {
      margin: 8px auto;
      border-radius: 16px;
      padding: 16px 20px 40px 20px;
      box-shadow: 0 2px 30px rgba(0,0,0,0.3);
    }
}

.custom-cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.custom-cart-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
  width: 40px;
  height: 40px;
}

/* Содержимое корзины */
.custom-cart-items {
  margin: 20px 0;
}

.custom-cart-item {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.custom-cart-item-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 4px;
}

.custom-cart-item-details {
  flex: 1;
  font-size: 15px;
  font-weight: 300;
}

.custom-cart-item-name {
  font-weight: 600;
}

.custom-cart-item-options {
  color: #808080;
  margin-top: 4px;
}

.custom-cart-item-bundle-info {
  margin-top: 12px;
}

.custom-cart-item-bundle-loading {
  color: #999;
  margin-top: 8px;
}

.custom-cart-item-bundle-error {
  color: #f44336;
  margin-top: 8px;
}

.custom-cart-item-quantity {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.custom-cart-item-minus, .custom-cart-item-plus {
  width: 20px;
  height: 30px;
  background: #fff;
  border: 1px solid #D2DADA;
  border-radius: 50%;
  color: #949e9e;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-weight: 500;
}
@media (max-width: 768px) {
    .custom-cart-item-minus, .custom-cart-item-plus {
        font-size: 14px;
        width: 20px;
        height: 32px;
    }
}

.custom-cart-item-minus:focus, .custom-cart-item-plus:focus {
  background-color: #E3E8E8;
  border-color: #E3E8E8;
}
.custom-cart-item-minus:hover, .custom-cart-item-plus:hover {
  background-color: #E3E8E8;
  border-color: #E3E8E8;
}

.custom-cart-item-quantity span {
  margin: 0 10px;
  min-width: 20px;
}

/* Пустая корзина */
.custom-cart-empty {
  text-align: center;
  color: #666;
  display: none;
  padding: 50px 0px 45px 0
}

/* Итоги и форма оформления заказа */
.custom-cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
}

.custom-cart-form {
  margin-top: 24px;
}

.custom-cart-form-group {
  margin-bottom: 12px;
}

.custom-cart-form-group input {
  width: 100%;
  padding: 18px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Geologica';
  font-weight: 300;
  font-size: 1em;
  box-sizing: border-box;
}

.custom-cart-checkout {
  width: 100%;
  padding: 16px;
  background: #f34723;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Geologica';
  font-size: 1em;
  border-radius: 100px;
  box-sizing: border-box;
}

.custom-cart-checkout:hover {
  background: #ff5f3d;
}

.custom-cart-shop-link {
  color: #3f51b5;
  text-decoration: underline;
}

/* Уведомление о добавлении товара */
.custom-cart-added-notification {
  position: fixed;
  font-family: 'Geologica';
  bottom: 80px;
  right: 20px;
  background: #f34723;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.custom-cart-added-notification.visible {
  opacity: 1;
}

/* Чекбокс согласия на обработку данных */
.custom-cart-checkbox-group {
  margin-bottom: 12px !important;
}

.custom-cart-checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  text-align: left !important;
  cursor: pointer !important;
  width: auto !important;
}

.custom-cart-checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin-right: 8px !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.custom-cart-checkbox-text {
  flex: 1 !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
}


/*Формы*/
/*Текст чек-боксов*/
@media screen and (max-width: 640px) {
    .t-text_xs {
        font-size: 14px;
        line-height: 1.55;
    }
}
@media screen and (max-width: 560px) {
    .t702 .t-popup__block-close {
        background: rgba(255, 255, 255, 0.1);
    }
}
/*Заголовок 1 на внутренних страницах*/
@media screen and (max-width: 960px) {
    .t050__title {
        text-align: center !important;
    }
}