.elementor-44 .elementor-element.elementor-element-304864f{--display:flex;--margin-top:0px;--margin-bottom:160px;--margin-left:0px;--margin-right:0px;}:root{--page-title-display:none;}/* Start custom CSS for container, class: .elementor-element-304864f *//***********************************************************
* ФИНАЛЬНЫЙ ДИЗАЙН КОРЗИНЫ (ПК + МОБИЛЬНАЯ ВЕРСИЯ)
* ИСПРАВЛЕНО: Убран ТОЛЬКО блок .wc-block-cart-item__total на мобильных.
************************************************************/

/* --- ПЕРЕМЕННЫЕ (Цвета и стили) --- */
:root {
    --commercial-color: #c93425; /* Фирменный красный */
    --commercial-color-hover: #a12a1e; /* Красный при наведении */
    --light-gray-bg: #f9f9f9; /* Фон для блоков */
    --border-color: #e8e8e8; /* Цвет рамок */
    --text-color: #1d1d1f; /* Основной цвет текста */
    --secondary-text-color: #888888; /* Вторичный текст */
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    --transition: all 0.2s ease-in-out;
}

/* --- ОБЩИЕ СТИЛИ (ПК + МОБИЛЬНАЯ) --- */

/* Скрываем ненужный блок купонов */
.wp-block-woocommerce-cart-order-summary-coupon-form-block {
    display: none !important;
}

/* Общий вид товаров в корзине */
.wc-block-cart-items {
    border: none;
}

/* Изображение товара */
.wc-block-cart-item__image img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

/* Название товара */
.wc-block-components-product-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

/* Цены */
.wc-block-components-product-price__value,
.wc-block-cart-item__total .price,
.wc-block-components-totals-item__value {
    color: var(--text-color) !important;
    font-weight: 700;
    font-size: 18px;
}

/* Зачеркнутая цена */
.wc-block-components-product-price del {
    color: var(--secondary-text-color) !important;
    font-weight: 400;
    margin-right: 8px;
}

/* Шильдик "Сэкономьте" */
.wc-block-components-product-sale-badge {
    background-color: transparent !important;
    color: var(--commercial-color) !important;
    border: 1px solid var(--commercial-color);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px !important;
    font-weight: 600;
    margin-top: 8px;
    display: inline-block;
}

/* Счетчик количества (стиль Apple) */
.wc-block-components-quantity-.elementor-44 .elementor-element.elementor-element-304864f {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--white);
    max-width: 120px;
}

.wc-block-components-quantity-.elementor-44 .elementor-element.elementor-element-304864f__input {
    width: 40px !important;
    text-align: center;
    border: none !important;
    padding: 8px 0 !important;
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
}

.wc-block-components-quantity-.elementor-44 .elementor-element.elementor-element-304864f__button {
    background-color: transparent;
    border: none;
    color: var(--secondary-text-color);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}
.wc-block-components-quantity-.elementor-44 .elementor-element.elementor-element-304864f__button:hover {
    color: var(--commercial-color);
}

/* Кнопка удаления (текст "Удалить товар") */
.wc-block-cart-item__remove-link {
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    padding: 6px 10px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    color: var(--commercial-color);
    font-size: 0 !important;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1;
}
.wc-block-cart-item__remove-link:hover {
    color: var(--commercial-color-hover);
}
.wc-block-cart-item__remove-link svg {
    display: none !important;
}
/* Показываем текст "Удалить товар" */
.wc-block-cart-item__remove-link::after {
    content: "Удалить товар";
    font-size: 14px;
}


/* --- Сайдбар с итогами (ПК) --- */
.wc-block-cart__sidebar {
    background-color: var(--light-gray-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.wc-block-components-totals-item__label {
    font-size: 16px;
    color: var(--secondary-text-color);
}

.wc-block-components-totals-item__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--commercial-color) !important;
}

/* Кнопка "Оформить заказ" */
.wc-block-cart__submit-button {
    width: 100%;
    background-color: var(--commercial-color) !important;
    color: var(--white) !important;
    border-radius: 12px;
    padding: 18px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(201, 52, 37, 0.3);
}
.wc-block-cart__submit-button:hover {
    background-color: var(--commercial-color-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(201, 52, 37, 0.4);
}


/* ======================================= */
/* --- АДАПТИВ ДЛЯ МОБИЛЬНЫХ (до 782px) --- */
/* ======================================= */
@media (max-width: 782px) {
    
    /* === 1. ГЛАВНЫЙ КОНТЕЙНЕР: ФИКСИРУЕМ ШИРИНУ И ЦЕНТРИРУЕМ === */
    .wp-block-woocommerce-cart {
        max-width: 450px; 
        margin-left: auto; 
        margin-right: auto;
        padding-bottom: 180px !important; /* Увеличен отступ снизу для футера */
        padding-left: 15px; 
        padding-right: 15px;
        box-sizing: border-box; 
    }
    /* ========================================================== */

    /* Убираем лишние элементы для чистоты */
    .wc-block-cart-items thead,
    .wc-block-cart-item__image {
        display: none !important;
    }
    
    /* Цена товара в блоке "Продукт": оставляем как есть */
    /* Убрано: .wc-block-components-product-price__value { display: none !important; } */
    
    /* Весь макет в одну колонку */
    .wc-block-components-sidebar-layout {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    /* --- КОРРЕКТИРОВКА КАРТОЧКИ ТОВАРА --- */
    .wc-block-cart-items__row {
        padding: 0 !important;
        margin-bottom: 20px !important;
        display: flex;
        flex-direction: column; 
        border: 1px solid var(--border-color); 
        border-radius: 12px;
        padding: 15px !important; 
        box-shadow: var(--shadow); 
    }
    .wc-block-cart-items__row td {
        padding: 0 !important;
        display: block; 
    }

    /* Блок с названием и ценой */
    .wc-block-cart-item__product {
        width: 100%;
        margin-bottom: 10px;
    }
    .wc-block-components-product-price {
        margin-top: 5px;
    }
    
    /* Дополнительный контейнер для счетчика и удаления */
    .wc-block-cart-item__quantity-wrapper {
        display: flex;
        justify-content: space-between; 
        align-items: center;
        width: 100%; 
        margin-top: 15px; 
    }
    
    /* Блок счетчика */
    .wc-block-cart-item__quantity {
        width: auto;
        flex-grow: 0; 
    }
    
    /* === 3. СКРЫВАЕМ ВЕСЬ БЛОК ИТОГОВОЙ ЦЕНЫ ТОВАРА (ВАШ ЗАПРОС) === */
    .wc-block-cart-item__total {
        display: none !important; 
    }
    /* =============================================================== */
    
    /* Кнопка удаления */
    .wc-block-cart-item__remove-link {
        order: 2; 
    }
    
    /* --- ПЛАВАЮЩИЙ БЛОК С ИТОГАМИ --- */
    .wc-block-cart__sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: var(--white);
        border-radius: 16px 16px 0 0;
        border: none;
        padding: 12px 20px 8px 20px !important;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
        margin: 0 !important;
    }

    /* Внутренности плавающего блока */
    .wc-block-components-totals-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px !important;
    }
    .wc-block-components-totals-item__label {
        margin: 0;
        font-size: 14px !important;
    }
    .wc-block-components-totals-item__value {
        font-size: 20px !important;
    }
    .wc-block-cart__submit-button {
        margin-top: 0;
        padding: 14px 18px !important;
        font-size: 15px !important;
    }
    .wc-block-formatted-money-amount wc-block-components-formatted-money-amount wc-block-components-totals-footer-item-tax-value{
        font-size: 15px !important;
    }
}


/* ========================================
   СЕТКА ТОВАРОВ
   ======================================== */

/* Карточка товара */
.wc-block-grid__product {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wc-block-grid__product:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(231, 76, 60, 0.15);
}

/* Ссылка на товар */
.wc-block-grid__product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Изображение товара */
.wc-block-grid__product-image {
  position: relative;
  overflow: hidden;
  background: #f7fafc;
  aspect-ratio: 1 / 1;
}

.wc-block-grid__product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.08);
}

/* Overlay эффект при наведении */
.wc-block-grid__product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wc-block-grid__product:hover .wc-block-grid__product-image::after {
  opacity: 1;
}

/* Название товара */
.wc-block-grid__product-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  padding: 16px 16px 8px 16px;
  line-height: 1.4;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 50px;
}

.wc-block-grid__product:hover .wc-block-grid__product-title {
  color: #E74C3C;
}

/* Цена товара */
.wc-block-grid__product-price {
  padding: 0 16px 16px 16px;
  margin: 0;
}

.wc-block-grid__product-price .woocommerce-Price-amount {
  font-size: 20px;
  font-weight: 700;
  color: #E74C3C;
  display: block;
}

.wc-block-grid__product-price .woocommerce-Price-currencySymbol {
  font-size: 18px;
}

/* Старая цена (если есть скидка) */
.wc-block-grid__product-price del {
  display: block;
  color: #a0aec0;
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 400;
}

.wc-block-grid__product-price ins {
  text-decoration: none;
}

/* Кнопка "В корзину" */
.wc-block-grid__product-add-to-cart {
  padding: 0 16px 16px 16px;
  margin-top: auto;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 6px rgba(231, 76, 60, 0.2);
}

.wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(231, 76, 60, 0.4);
  background: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%);
}

.wc-block-grid__product-add-to-cart .wp-block-button__link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

/* Состояние "Добавлено в корзину" */
.wc-block-grid__product-add-to-cart .added_to_cart {
  display: inline-block;
  margin-top: 8px;
  color: #38a169;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}

/* Бейдж "Распродажа" или "Нет в наличии" */
.wc-block-grid__product .onsale,
.wc-block-grid__product .out-of-stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #E74C3C;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.wc-block-grid__product .out-of-stock-badge {
  background: #718096;
}

/* Анимация появления карточек */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wc-block-grid__product {
  animation: fadeInScale 0.5s ease;
}

.wc-block-grid__product:nth-child(2) {
  animation-delay: 0.1s;
}

.wc-block-grid__product:nth-child(3) {
  animation-delay: 0.2s;
}

.wc-block-grid__product:nth-child(4) {
  animation-delay: 0.3s;
}

/* Адаптивность сетки товаров */
@media screen and (max-width: 768px) {
  .wc-block-grid__product-title {
    font-size: 20px !important;
    padding: 12px 12px 8px 12px;
  }
  
  .wc-block-grid__product-price {
    padding: 0 12px 12px 12px;
  }
  
  .wc-block-grid__product-price .woocommerce-Price-amount {
    font-size: 18px;
  }
  
  .wc-block-grid__product-add-to-cart {
    padding: 0 12px 12px 12px;
  }
  
  .wc-block-grid__product-add-to-cart .wp-block-button__link {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* Состояние загрузки (при добавлении в корзину) */
.wc-block-grid__product-add-to-cart .wp-block-button__link.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Сетка товаров - общий контейнер */
.wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

@media screen and (max-width: 768px) {
  .wc-block-grid__products {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    row-gap: 10px;
  }
}/* End custom CSS */