/* ============================================
   СТИЛИ ДЛЯ УВЕДОМЛЕНИЙ И ДОПОЛНИТЕЛЬНЫХ ЭЛЕМЕНТОВ
   ============================================ */

/* Уведомления - по центру вверху в темной теме */
.shop-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 18px 30px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.98), rgba(30, 30, 30, 0.98));
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.shop-notification.show {
    top: 110px; /* Между шапкой и товарами */
}

/* Типы уведомлений */
.notification-success {
    color: #fff;
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
    letter-spacing: 0.5px;
}

.notification-error {
    color: #fff;
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.25));
    letter-spacing: 0.5px;
}

.notification-info {
    color: #fff;
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.25));
    letter-spacing: 0.5px;
}

.notification-warning {
    color: #fff;
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
    letter-spacing: 0.5px;
}

/* Анимация счетчика корзины */
.cart-count {
    display: inline-block;
    background: #e8732e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.cart-count.bounce {
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* ============================================
   БЫСТРЫЙ ПРОСМОТР (QUICK VIEW)
   ============================================ */

.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-modal.show {
    opacity: 1;
    visibility: visible;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.quick-view-content {
    position: relative;
    background: #fff;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 30px;
    z-index: 1;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #e8732e;
    transform: rotate(90deg);
}

/* ============================================
   ЛИПКАЯ КНОПКА "КУПИТЬ" (МОБИЛЬНЫЕ)
   ============================================ */

.sticky-add-to-cart-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.3s ease;
}

.sticky-add-to-cart-bar.show {
    bottom: 0;
}

.product-info-sticky {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.product-info-sticky img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.product-details-sticky {
    display: flex;
    flex-direction: column;
}

.product-title-sticky {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.product-price-sticky {
    font-size: 16px;
    font-weight: 700;
    color: #e8732e;
}

.sticky-add-to-cart-bar .button {
    flex-shrink: 0;
    padding: 12px 20px !important;
    font-size: 14px !important;
}

/* ============================================
   СЧЕТЧИК КОЛИЧЕСТВА
   ============================================ */

.quantity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.quantity .minus,
.quantity .plus {
    width: 35px;
    height: 35px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity .minus:hover,
.quantity .plus:hover {
    background: #e8732e;
    color: #fff;
    border-color: #e8732e;
}

.quantity .qty {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   ПЕРЕКЛЮЧЕНИЕ ВИДА (СЕТКА/СПИСОК)
   ============================================ */

.view-toggle-wrapper {
    display: flex;
    gap: 8px;
}

.view-toggle {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-toggle:hover,
.view-toggle.active {
    background: #e8732e;
    border-color: #e8732e;
    color: #fff;
}

.view-toggle i {
    font-size: 16px;
}

/* Вид "Список" */
.products.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.products.list-view li.product {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
}

.products.list-view li.product .product-image {
    width: 250px;
    flex-shrink: 0;
}

.products.list-view li.product .product-info {
    flex: 1;
    padding: 20px;
}

/* ============================================
   ОБРАТНЫЙ ОТСЧЕТ
   ============================================ */

.sale-countdown {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ef4444;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sale-countdown::before {
    content: '⏰';
    margin-right: 5px;
}

/* ============================================
   КНОПКИ WISHLIST И COMPARE
   ============================================ */

.product-action-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.wishlist-button,
.compare-button,
.quick-view-button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-button:hover,
.compare-button:hover,
.quick-view-button:hover {
    background: #e8732e;
    color: #fff;
    transform: scale(1.1);
}

.wishlist-button.active {
    background: #ef4444;
    color: #fff;
}

.wishlist-button i,
.compare-button i,
.quick-view-button i {
    font-size: 16px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 768px) {
    .shop-notification {
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .shop-notification.show {
        top: 80px;
    }
    
    .quick-view-content {
        width: 95%;
        padding: 20px;
    }
    
    .products.list-view li.product {
        flex-direction: column !important;
    }
    
    .products.list-view li.product .product-image {
        width: 100%;
    }
}

/* ============================================
   ЗАГРУЗКА (LOADER)
   ============================================ */

.shop-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
}

.shop-loader::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e8732e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




