#cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: bold;
    font-size: 14px;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#cart-icon:hover {
    background-color: #e7e7e7;
}

#cart-icon a {
    text-decoration: none;
    color: #333;
}


/* НОВЫЕ АНИМАЦИИ ДЛЯ КОРЗИНЫ */
.cart-fly-element {
    animation: flyToCart 0.8s forwards;
}

@keyframes flyToCart {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

/* Анимация кнопки добавления в корзину */
.add-to-cart-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

/* Пульсация счетчика корзины */
#cart-count.pulse {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        color: #333;
    }
    50% { 
        transform: scale(1.3); 
        color: #e74c3c;
    }
    100% { 
        transform: scale(1); 
        color: #333;
    }
}

/* Анимация для элементов корзины на странице cart.html */
.cart-item-enter {
    animation: slideInFromRight 0.5s ease-out;
}

.cart-item-exit {
    animation: slideOutToLeft 0.3s ease-in;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* Анимация загрузки для кнопки */
.add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Улучшенные стили для кнопки добавления в корзину */
.add-to-cart-btn {
    background: linear-gradient(135deg, #2f2f2f 0%, #010101 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn .btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.add-to-cart-btn:hover .btn-icon {
    transform: scale(1.2);
}

/* === НОВЫЕ АНИМАЦИИ ДЛЯ КОРЗИНЫ === */

@keyframes pulse {
    0% { 
        transform: scale(1); 
        color: #333;
    }
    50% { 
        transform: scale(1.5); 
        color: #e74c3c;
        font-weight: bold;
    }
    100% { 
        transform: scale(1); 
        color: #333;
    }
}

/* Стиль для кнопки добавления в корзину */
.add-to-cart-btn {
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:active {
    transform: scale(0.95) !important;
}

/* Иконка корзины в хедере */
#cart-icon {
    transition: all 0.3s ease;
}

#cart-icon:hover {
    transform: scale(1.1);
}

/* === СТИЛИ ДЛЯ СТРАНИЦЫ КОРЗИНЫ === */

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Georgia', serif;
}

.cart-header {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    
    text-align: center;
}

.cart-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Таблица корзины */
.cart-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: linear-gradient(135deg, #343434, #000000);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 500;
    font-size: 1.1rem;
}

.cart-table td {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-table tr:hover {
    background: #f8f9fa;
}

/* Управление количеством */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #2d2d2d;
    background: white;
    color: #000000;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #000000;
    color: white;
    transform: scale(1.1);
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.quantity-input:focus {
    outline: none;
    border-color: #0f0f0f;
}

/* Цены */
.item-price {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
}

.item-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000;
}

/* Кнопки действий */
.remove-btn {
    background: linear-gradient(135deg, #2c2c2c, #000000);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Итоговая сумма */
.cart-summary {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #161515;
    padding: 20px 0;
    border-top: 2px solid #e0e0e0;
}

/* Кнопки оформления заказа */
.cart-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.continue-shopping {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
    color: white;
}

.checkout-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
    color: white;
}

/* Пустая корзина */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Гостевые варианты */
.guest-options {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.guest-options h3 {
    color: #161515;
    margin-bottom: 15px;
    text-align: center;
}

.guest-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.guest-link {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.guest-link:hover {
    border-color: #000000;
    transform: translateY(-2px);
    color: #2c3e50;
}

/* Адаптивность для корзины */
@media (max-width: 768px) {
    .cart-container {
        padding: 10px;
    }
    
    .cart-header {
        padding: 20px;
    }
    
    .cart-header h1 {
        font-size: 2rem;
    }
    
    .cart-table-container {
        overflow-x: auto;
    }
    
    .cart-table {
        min-width: 600px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 15px 10px;
    }
    
    .cart-actions {
        grid-template-columns: 1fr;
    }
    
    .quantity-controls {
        justify-content: center;
    }
}

/* Стили для остальных страниц корзины */
.order-form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.address-selection {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.success-message {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border-radius: 15px;
    margin-bottom: 30px;
}

.success-message h1 {
    margin: 0 0 15px 0;
    font-size: 2.5rem;
}

/* Кнопки для форм */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #363636, #000000);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #363636, #000000);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* === СТИЛИ ДЛЯ СТРАНИЦ ОФОРМЛЕНИЯ ЗАКАЗА === */

.order-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Georgia', serif;
}

.order-header {
    /* background: linear-gradient(135deg, #000000 0%, #272727 100%); */
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
    text-align: center;
}

.order-header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: black;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Карточка заказа */
.order-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #0a0a0a;
}

.order-summary h3 {
    color: #0b0b0b;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin: 15px 0;
}

/* Адрес доставки */
.address-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
}

.address-section h3 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.address-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.address-action-btn {
    background: linear-gradient(135deg, #383837, #000000);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.address-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    color: white;
}

/* Форма заказа */
.order-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #8B4513;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Кнопка отправки заказа */
.submit-order-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

/* Страница успешного заказа */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #27ae60;
}

.success-message {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

.success-message h1 {
    margin: 0 0 15px 0;
    font-size: 2.5rem;
    font-weight: 300;
}

.order-number {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: inline-block;
}

/* Страница выбора адреса */
.addresses-list {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.address-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-option:hover {
    border-color: #000000;
    background: #f9f5f0;
}

.address-option.selected {
    border-color: #000000;
    background: linear-gradient(135deg, #fff, #f9f5f0);
}

.address-radio {
    margin-top: 5px;
}

.address-content {
    flex: 1;
}

.address-default {
    background: #000000;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .order-container {
        padding: 10px;
    }
    
    .order-header {
        padding: 20px;
    }
    
    .order-header h1 {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .address-actions {
        flex-direction: column;
    }
    
    .address-action-btn {
        text-align: center;
    }
    
    .order-card,
    .order-form {
        padding: 20px;
    }
}

/* Сообщения об ошибках */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Информационные сообщения */
.info-message {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #bee5eb;
}

/* === СТИЛИ ДЛЯ ОСТАВШИХСЯ ШАБЛОНОВ КОРЗИНЫ === */

/* address_add.html */
.address-add-container {
    max-width: 600px;
    margin: 0 auto;
}

/* address_select.html */
.addresses-selection {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.address-option-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-option-card:hover {
    border-color: #343434;
    background: #f9f5f0;
}

.address-option-card.selected {
    border-color: #181818;
    background: linear-gradient(135deg, #fff, #f9f5f0);
}

.address-radio {
    margin-top: 5px;
}

.address-details {
    flex: 1;
}

.address-details strong {
    color: #101010;
    font-size: 1.1rem;
}

.default-badge {
    background: #000000;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

.no-addresses {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* guest_order_create.html */
.guest-order-container {
    max-width: 600px;
    margin: 0 auto;
}

.guest-notice {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #2196f3;
}

.guest-benefits {
    background: #f3e5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #9c27b0;
}

.guest-benefits ul {
    margin: 10px 0;
    padding-left: 20px;
}

.guest-benefits li {
    margin-bottom: 8px;
}

/* order_cancel_confirm.html */
.confirm-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.warning-icon {
    font-size: 3rem;
    color: #f31212;
    margin-bottom: 15px;
}

.order-info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* order_detail.html (корзины) */
.order-details-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.meta-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item strong {
    display: block;
    color: #000000;
    margin-bottom: 5px;
}

.order-items-list {
    margin: 25px 0;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-total-row {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000000;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    margin-top: 20px;
}

/* order_history.html (корзины) */
.orders-history-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.orders-table th {
    background: linear-gradient(135deg, #2f2f2f, #000000);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 500;
}

.orders-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.orders-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce7ff; color: #004085; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* order_success.html */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #27ae60;
}

.success-message {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

.success-message h1 {
    margin: 0 0 15px 0;
    font-size: 2.5rem;
    font-weight: 300;
}

.order-number {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: inline-block;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* order_tracking.html */
.tracking-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.tracking-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
}

.info-card strong {
    color: #8B4513;
    display: block;
    margin-bottom: 8px;
}

.tracking-items {
    margin: 25px 0;
}

.tracking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.tracking-item:last-child {
    border-bottom: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .address-option-card {
        flex-direction: column;
    }
    
    .order-meta,
    .tracking-info {
        grid-template-columns: 1fr;
    }
    
    .orders-table {
        font-size: 14px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 10px;
    }
    
    .confirm-actions,
    .success-actions {
        flex-direction: column;
    }
    
    .order-item-row,
    .tracking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Анимация пульсации для счетчика корзины */
#cart-count.pulse {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        background-color: transparent;
    }
    50% { 
        transform: scale(1.3); 
        background-color: #ff4444;
        color: white;
        border-radius: 50%;
        padding: 2px 6px;
    }
    100% { 
        transform: scale(1); 
        background-color: transparent;
    }
}

/* Стили для иконки корзины в навигации */
.nav-cart {
    position: relative;
}

#cart-icon a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 8px 12px;
    /* border-radius: 6px; */
    transition: background-color 0.3s ease;
}

#cart-icon a:hover {
    background-color: rgba(177, 63, 185, 0.05);
}

#cart-count {
    font-weight: bold;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Стили для блока купона в оформлении заказа */
.coupon-info {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    margin-bottom: 20px;
}

.coupon-info p {
    margin: 5px 0;
}

.final-total {
    font-size: 1.2em;
    font-weight: bold;
    color: #e74c3c;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Стили для форм заказа */
.order-container {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.summary-item {
    transition: background-color 0.3s ease;
}

.summary-item:hover {
    background-color: rgba(0,0,0,0.02);
}

.coupon-applied {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-10px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Стили для уведомлений о скидках */
.alert-success {
    border-left: 4px solid #28a745;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.text-success {
    color: #28a745 !important;
}

/* Анимация для привлечения внимания */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.highlight-discount {
    animation: pulse 2s ease-in-out;
    border: 2px solid #28a745;
}

/* Cart Popup Styles - SIDEBAR VERSION */
.cart-popup-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.cart-popup-overlay.active {
    opacity: 1;
}

.cart-popup {
    background: white;
    width: 450px;
    max-width: 90vw;
    height: 100vh;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
}

.cart-popup-overlay.active .cart-popup {
    transform: translateX(0);
}

.cart-popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 10;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

.cart-popup__close:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

.cart-popup__close_mobile {
    display: none;
}

.cart-popup__close_desktop {
    display: block;
}

.cart-popup__heading {
    padding: 30px 25px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #8B4513, #654321);
    color: white;
    margin: 0;
    flex-shrink: 0;
}

.cart-popup__heading span {
    font-size: 20px;
    font-weight: 600;
}

.cart-popup__content-scrollable {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-popup__product {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cart-popup__product-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
    background: #f8f9fa;
}

.cart-popup__product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-popup__product-info {
    flex: 1;
    min-width: 0;
}

.cart-popup__product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
}

.cart-popup__product-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cart-popup__product-pricing span {
    font-size: 20px;
    font-weight: 700;
    color: #8B4513;
}

.cart-popup__product-pricing s {
    font-size: 16px;
    color: #999;
}

.cart-popup__discount-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

.cart-popup__buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.cart-popup__button {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cart-popup__button-to-cart {
    background: linear-gradient(135deg, #8B4513, #654321);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.cart-popup__button-to-cart:hover {
    background: linear-gradient(135deg, #654321, #8B4513);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.cart-popup__button-continue {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.cart-popup__button-continue:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Бейдж счетчика корзины */
.cart-counter-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    animation: pulse 0.6s ease-in-out;
}

/* Анимация пульсации для счетчика */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .cart-popup {
        width: 100%;
        max-width: 100vw;
    }
    
    .cart-popup__close_mobile {
        display: block;
    }
    
    .cart-popup__close_desktop {
        display: none;
    }
    
    .cart-popup__product {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cart-popup__product-image-wrapper {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .cart-popup__content-scrollable {
        padding: 20px;
    }
    
    .cart-popup__heading {
        padding: 25px 20px 15px;
    }
    
    .cart-popup__heading span {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .cart-popup__content-scrollable {
        padding: 15px;
    }
    
    .cart-popup__button {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .cart-popup__product-name {
        font-size: 16px;
    }
}

/* Отключаем скролл body когда popup открыт */
body.popup-open {
    overflow: hidden;
}

.recommendation-image {
width: 60px !important;
height: 60px !important;
border-radius: 10px;
overflow: hidden;
flex-shrink: 0;
border: 2px solid #e9ecef;
background: white;
}

.recommendation-image img {
width: 60px !important;
height: 60px !important;
object-fit: cover !important;
border-radius: 8px;
}

/* СТИЛИ ДЛЯ КНОПОК POP-UP КОРЗИНЫ */
.cart-popup__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cart-popup__button {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    min-height: 48px;
}

.cart-popup__button-to-cart {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
}

.cart-popup__button-to-cart:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-popup__button-continue {
    background: #ffffff;
    color: #000000;
    border: 2px solid #e0e0e0;
}

.cart-popup__button-continue:hover {
    background: #f8f9fa;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Убираем смайлики из текста кнопок */
.cart-popup__button-to-cart::before,
.cart-popup__button-continue::before {
    display: none;
}

/* Бейдж счетчика корзины */
.cart-counter-badge {
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-weight: 600;
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .cart-popup__button {
        padding: 12px 18px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .cart-popup__buttons {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cart-popup__button {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 42px;
    }
}

/* Стили для фото товара в корзине с !important */
.cart-item-with-image {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.cart-item-image {
    width: 80px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #e0e0e0 !important;
}

.cart-item-image .product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.cart-item-info {
    flex: 1 !important;
}

.cart-item-name {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 5px !important;
    line-height: 1.3 !important;
}

.cart-item-category {
    font-size: 0.85em !important;
    color: #7f8c8d !important;
}

/* Принудительные стили для всех изображений в корзине */
.cart-table img {
    max-width: 80px !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover !important;
}

/* Дополнительные принудительные стили */
.cart-item-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Адаптивность для мобильных с !important */
@media (max-width: 768px) {
    .cart-item-with-image {
        gap: 10px !important;
    }
    
    .cart-item-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    .cart-item-name {
        font-size: 0.9em !important;
    }
    
    .cart-table img {
        max-width: 60px !important;
        max-height: 60px !important;
    }
}

/* Адаптивность для самых маленьких экранов */
@media (max-width: 480px) {
    .cart-item-with-image {
        gap: 10px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .cart-item-image {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
    }
    
    .cart-item-name {
        font-size: 14px !important;
    }
    
    .cart-table {
        font-size: 12px !important;
    }
    
    .quantity-input {
        width: 60px !important;
        font-size: 12px !important;
    }
    
    .remove-btn {
        font-size: 11px !important;
        padding: 5px 8px !important;
    }
}

@media (max-width: 360px) {
    .cart-item-image {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }
    
    .cart-item-with-image {
        gap: 8px !important;
    }
    
    .cart-table {
        font-size: 11px !important;
    }
}