.checkout-link{
    text-decoration: none;
}
.cart-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

@media (max-width: 768px) {
    .cart-container {
        margin: 50px 25px;
        padding: 15px;
        border-radius: 16px;
    }}

@media (max-width: 480) {
    .cart-container {
        margin: 60px 30px;
        padding: 15px;
        border-radius: 16px;
    }}

.cart-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 16px;
    transition: box-shadow 0.3s;
}

.cart-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.quantity-price {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 16px;
    color: #444;
}

.cart-summary {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-btn {
    display: flex;
    align-items: center;
    gap: 8px; /* расстояние между иконкой и текстом */
    padding: 12px 24px;
    background-image: linear-gradient(to right, #f6911d, #d47713);
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

/* При наведении */
.checkout-btn:hover {
    background-color: #be7119;
}

/* Долгое, яркое свечение */
.checkout-btn.glow {
    animation: long-glow 3s ease-in-out;
}

.checkout-btn .btn-icon {
    width: 20px;
    height: 20px;
    text-decoration: none;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transform: translateY(-2px); /* Сдвиг вверх */
}

@keyframes long-glow {
    0% {
        box-shadow: 0 0 0px orange;
    }
    30% {
        box-shadow: 0 0 90px 40px orange;
    }
    100% {
        box-shadow: 0 0 0px orange;
    }
}

.empty-cart {
    font-size: 20px;
    text-align: center;
    color: #888;
    margin: 40px 0;
}

.cart-controls button {
    padding: 4px 8px;
    font-size: 16px;
    margin: 0 5px;
    background: #eee;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.cart-controls .quantity {
    min-width: 10px;
    display: inline-block;
    text-align: center;
}

.empty-cart-img {
    display: block;
    max-width: 200px; /* Фиксируем максимальную ширину */
    width: 100%; /* Для адаптивности */
    height: auto;
    margin: 20px auto; /* Уменьшаем отступы */
    border-radius: 12px;
}


.active-promos {
    background: linear-gradient(to right, #fff8f0, #fff3e0);
    border-left: 6px solid #f6911d;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.active-promos h4 {
    margin: 0 0 10px;
    color: #d97706;
    font-size: 18px;
    font-weight: bold;
}

.promo-item {
    font-size: 15px;
    color: #444;
    margin-bottom: 6px;
    list-style: disc inside;
}

.cart-summary {
    background-color: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    font-family: 'Montserrat', sans-serif;
    max-width: 480px;
    margin: 0 auto;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.discounted {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.old-price {
    font-size: 18px;
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
}

.new-price {
    font-size: 26px;
    font-weight: 700;
    color: #ff9d00;
}

.discount-badge {
    background-color: #fef1dd;
    color: #ff9d00;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 8px;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

h3 b {
    font-size: 26px;
    font-weight: 700;
    color: #222;
}

.cart-container h2{
    color: #222;
}

.item-info h3 {
    white-space: nowrap;       /* Запрещаем перенос строк */
    overflow: hidden;          /* Скрываем текст, выходящий за пределы */
    text-overflow: ellipsis;   /* Добавляем многоточие */
    max-width: 200px;          /* Устанавливаем максимальную ширину (настройте под ваш дизайн) */
}

/* ============= Цвета для текстовых + / − (карточки и корзина) ============= */

/* Основные правила — центрируем текст внутри кнопок и задаём нормальный line-height */
.product-card .action-wrapper .cart-controls > button,
.cart-container .cart-controls > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;           /* чтобы не смещал внутренний текст */
  min-width: 18px;
  min-height: 18px;
  font-size: 13px;      /* подгони при необходимости */
  background: #eee;     /* сохраняем текущий фон */
  border: none;         /* если хочешь границу — добавь отдельно */
  cursor: pointer;
}

/* Зелёный плюс (текст) */
.product-card .action-wrapper .cart-controls > button.increase,
.cart-container .cart-controls > button.increase {
  color: #19bd04;
  -webkit-text-fill-color: #19bd04; /* для WebKit (Safari/Chrome) */
  font-weight: 600;
}

/* Красный минус (текст) */
.product-card .action-wrapper .cart-controls > button.decrease,
.cart-container .cart-controls > button.decrease {
  color: #c21212;
  -webkit-text-fill-color: #c21212;
  font-weight: 600;
}

/* Hover / focus — лёгкая подсветка без смены цвета текста */
.product-card .action-wrapper .cart-controls > button.increase:hover,
.cart-container .cart-controls > button.increase:hover {
  filter: brightness(0.98);
  outline: none;
}

.product-card .action-wrapper .cart-controls > button.decrease:hover,
.cart-container .cart-controls > button.decrease:hover {
  filter: brightness(0.98);
  outline: none;
}

/* Мобильные размеры */
@media (max-width: 480px) {
  .product-card .action-wrapper .cart-controls > button,
  .cart-container .cart-controls > button {
    min-width: 16px;
    min-height: 16px;
    font-size: 11px;
  }
}

/* ============= ВАЖНО =============
Если после добавления этот цвет не применяется, значит есть более «тяжёлое» правило (например с !important или более специфичным селектором).
В таком случае можно временно повысить приоритет — используйте это только при необходимости: */


.product-card .action-wrapper .cart-controls > button.increase { color: #19bd04 !important; -webkit-text-fill-color: #19bd04 !important; }
.product-card .action-wrapper .cart-controls > button.decrease { color: #c21212 !important; -webkit-text-fill-color: #c21212 !important; }

