html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Общие стили для всего сайта */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Дополнительные стили для навигации */
.navbar-brand {
    font-weight: bold;
}

/* Стили для карточек товаров */
.product-card {
    transition: transform 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
    }

/* Стили для изображений товаров */
.product-image-container {
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

.product-image {
    transition: all 0.3s ease;
    background: white;
}

.image-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 0.875rem;
}

/* Стили для состояний наличия */
.stock-badge {
    font-size: 0.75rem;
}

.available {
    color: #198754;
}

.low-stock {
    color: #fd7e14;
}

.out-of-stock {
    color: #6c757d;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Кастомные стили для кнопок */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }

/* Стили для уведомлений */
.toast {
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-form .btn span {
        display: none;
    }

    .product-image-container {
        height: 150px !important;
    }
}

/* Стили для загрузки */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Стили для пагинации */
.pagination {
    margin-bottom: 0;
}

.page-link {
    border-radius: 0.375rem;
    margin: 0 2px;
}

/* Стили для поиска */
.search-highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 0.2rem;
}

/* === Стили для адаптивного футера === */

.footer-mobile {
    padding: 1rem 0;
}

.footer-content {
    text-align: center;
    line-height: 1.5;
}

.footer-break {
    display: inline;
}

/* На очень маленьких экранах делаем переносы */
@media (max-width: 576px) {
    .footer-break::before {
        content: "\A";
        white-space: pre;
    }

    .footer-content {
        font-size: 0.9rem;
    }
}

/* На средних мобильных экранах */
@media (min-width: 577px) and (max-width: 767px) {
    .footer-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        align-items: center;
    }
}
