body {
  background-image: url("../images/bg-image.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-color: #f5f5f5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dropdown-toggle::after {
  content: none;
}

.custom-shadow {
  box-shadow: 5px 5px 25px 19px #000000;
}

.product-size {
  color: gray;
  font-size: 15px;
}

.badge.bg-warning.text-dark {
  position: absolute;
  top: 10px;
  right: 5px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 1rem;
  box-shadow: 2px 2px 15px 9px #000000;
}

.badge-banner {
  top: 80%;
  border-radius: 15px;
  font-size: 0.7rem;
}

.in-stock {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1em;
}

.out-of-stock {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.1em;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
}

.about-hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.about-hero p {
    font-size: 1.1em;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.advantage-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.advantage-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.advantage-card p {
    color: #666;
    font-size: 0.95em;
}

/* Stats Section */
.stats {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
}

.stats h2 {
    margin-bottom: 30px;
    color: #333;
}

.stat-item {
    display: inline-block;
    margin: 0 30px;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #666;
    margin-top: 10px;
    font-size: 0.95em;
}

/* Categories Section */
.categories-section {
    margin: 40px 0;
}

.categories-section h2 {
    margin-bottom: 20px;
    color: #333;
}

/* Единый размер изображений в карточках каталога */
.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Единый размер миниатюры на странице товара */
.product-thumb {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.category-item {
    background: white;
    padding: 20px;
    border-left: 4px solid #667eea;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.category-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 8px;
}

.category-item p {
    color: #999;
    margin: 0;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 1.8em;
    }

    .stat-item {
        display: block;
        margin: 20px 0;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .category-list {
        grid-template-columns: 1fr;
    }
}

.category-item {
    display: block;
    background: white;
    padding: 20px;
    border-left: 4px solid #667eea;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
    text-decoration: none;
    color: inherit;
}

:root {
            --primary-color: #212529;
            --secondary-color: #6c757d;
            --success-color: #198754;
            --danger-color: #dc3545;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --border-radius: 8px;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }


        /* ===== НАВИГАЦИЯ ===== */
        .navbar {
            position: sticky;
            top: 0;
            z-index: 999;
            background: linear-gradient(135deg, #212529 0%, #343a40 100%);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .navbar-brand {
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 1px;
            color: white !important;
            transition: var(--transition);
        }

        .navbar-brand:hover {
            color: #ffc107 !important;
        }

        .nav-link {
            transition: var(--transition);
            position: relative;
            font-weight: 500;
        }

        .nav-link:hover {
            color: #ffc107 !important;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #ffc107;
            transition: var(--transition);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .dropdown-menu {
            border: none;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
            border-radius: var(--border-radius);
        }

        .dropdown-item:hover {
            background-color: #343a40;
            color: #ffc107 !important;
        }

        /* ===== ПОИСК ===== */
        .search-form {
            margin-top: 12px;
        }

        .form-control {
            border-radius: var(--border-radius);
            border: 2px solid #495057;
            transition: var(--transition);
            font-size: 14px;
        }

        .form-control:focus {
            border-color: #ffc107;
            box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
            background-color: #fff;
        }

        .btn-search {
            border-radius: var(--border-radius);
            background-color: #ffc107;
            color: #212529;
            font-weight: 600;
            transition: var(--transition);
            border: none;
        }

        .btn-search:hover {
            background-color: #ffb300;
            color: #212529;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
        }

        /* ===== БОКОВОЕ МЕНЮ ===== */
        .sidebar-wrapper {
            position: sticky;
            top: 80px;
            height: fit-content;
        }

        .catalog-btn {
            width: 100%;
            background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
            border: none;
            border-radius: var(--border-radius);
            color: white;
            font-weight: 600;
            padding: 10px;
            transition: var(--transition);
            margin-bottom: 12px;
        }

        .catalog-btn:hover {
            background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
            transform: translateX(5px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .catalog-btn::before {
            content: '📁';
            margin-right: 8px;
        }

        .dropdown-menu.catalog-menu {
            min-width: 180px;
        }

        .catalog-menu .dropdown-item {
            padding: 10px 16px;
            font-weight: 500;
            border-left: 3px solid transparent;
            transition: var(--transition);
        }

        .catalog-menu .dropdown-item:hover {
            border-left-color: #ffc107;
            padding-left: 20px;
        }

        /* ===== КНОПКА КОРЗИНЫ ===== */
        .cart-btn {
            width: 100%;
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            border: none;
            border-radius: var(--border-radius);
            color: white;
            font-weight: 600;
            padding: 10px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .cart-btn:hover {
            background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
        }

        .cart-btn::before {
            content: '🛒';
            margin-right: 8px;
        }

        .cart-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: #ffc107;
            color: #212529;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .cart-empty .cart-badge {
            display: none;
        }

        /* ===== ОСНОВНОЙ КОНТЕНТ ===== */
        .main-content {
            margin-top: 20px;
            margin-bottom: 40px;
            flex: 1 0 auto;
        }

        .content-wrapper {
            background-color: white;
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        /* ===== УВЕДОМЛЕНИЯ ===== */
        .alert {
            border: none;
            border-radius: var(--border-radius);
            border-left: 4px solid;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        }

        .alert-success {
            border-left-color: var(--success-color);
            background-color: #d1e7dd;
        }

        .alert-danger {
            border-left-color: var(--danger-color);
            background-color: #f8d7da;
        }

        .alert-info {
            border-left-color: #0dcaf0;
            background-color: #cfe2ff;
        }

        /* ===== FOOTER ===== */
        footer {
            background: linear-gradient(135deg, #212529 0%, #343a40 100%);
            color: white;
            margin-top: 40px;
            padding: 30px 0 20px;
            border-top: 2px solid #ffc107;
        }

        footer p {
            transition: var(--transition);
        }

        footer a {
            color: #ffc107;
            text-decoration: none;
            transition: var(--transition);
        }

        footer a:hover {
            color: #ffb300;
            text-decoration: underline;
        }

        /* ===== КНОПКА SCROLL-TO-TOP ===== */
        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
            color: #212529;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: none;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 98;
            transition: var(--transition);
            box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
            font-size: 24px;
            font-weight: bold;
        }

        .scroll-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
            background: linear-gradient(135deg, #ffb300 0%, #ffc107 100%);
        }

        .scroll-to-top.show {
            display: flex;
        }

        /* ===== АДАПТИВНОСТЬ ===== */
        @media (max-width: 992px) {
            .sidebar-wrapper {
                position: static;
                top: auto;
                margin-bottom: 20px;
            }

            .catalog-btn,
            .cart-btn {
                margin-bottom: 10px;
            }

            .search-form {
                margin-top: 10px;
                width: 100%;
            }

            .form-control {
                margin-bottom: 10px;
            }
        }

        @media (max-width: 768px) {
            .navbar-brand {
                font-size: 20px;
            }

            .scroll-to-top {
                width: 45px;
                height: 45px;
                font-size: 20px;
                bottom: 20px;
                right: 20px;
            }

            .content-wrapper {
                padding: 15px;
            }
        }

        /* ===== УТИЛИТЫ ===== */
        .text-gradient {
            background: linear-gradient(135deg, #ffc107, #ffb300);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .box-shadow-hover {
            transition: var(--transition);
        }

        .box-shadow-hover:hover {
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
        }

        /* Плавные переходы */
        a, button {
            transition: var(--transition);
        }