* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Roboto, sans-serif;
	background: #f8fafc;
	min-width: 768px;
}

/* Шапка */
.header {
	background: #ffffff;
	padding: 16px 32px;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 4px 8px #b8b8b8;
}

.header-container {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.logo img {
	height: 52px;
	width: auto;
	display: block;
}

/* Поиск */
.search {
	flex: 2;
	max-width: 500px;
}
.search form {
	display: flex;
	width: 100%;
}
.search-input {
	width: 100%;
	padding: 12px 20px;
	border: 1px solid #e2e8f0;
	border-radius: 48px 0 0 48px;
	font-size: 1rem;
	outline: none;
	background: #f9fafb;
}
.search-input:focus {
	border-color: #3b82f6;
	background: white;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.search-btn {
	background: #3b82f6;
	border: none;
	border-radius: 0 48px 48px 0;
	padding: 0 24px;
	cursor: pointer;
	color: white;
	font-size: 1.2rem;
}
.search-btn:hover {
	background: #2563eb;
}

/* Блок кнопок справа */
.actions {
	flex-shrink: 0;
	display: flex;
	gap: 28px;
}
.action-item {
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 500;
	color: #334155;
	transition: color 0.2s;
	padding: 4px 8px;
	border-radius: 40px;
	position: relative;
}
.action-item i {
	font-size: 1.8rem;
	color: #475569;
}
.action-item span {
	font-weight: 500;
}
.action-item:hover {
	color: #1e293b;
}
.action-item:hover i {
	color: #3b82f6;
}
.a-fff {
	color: #fff;
}

/* Обёртка для popup */
.action-item-wrapper {
	position: relative;
}

/* Всплывающее окно авторизации */
.auth-popup {
	position: absolute;
	top: calc(100% + 8px);
	left: -110px;
	width: 280px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 12px 28px rgba(0,0,0,0.15);
	padding: 20px;
	z-index: 200;
	border: 1px solid #e2e8f0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s;
}

.auth-popup.show {
	opacity: 1;
	visibility: visible;
}

.popup-title {
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 18px;
	color: #1e293b;
	text-align: center;
}

.input-group {
	display: flex;
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 48px;
	padding: 10px 14px;
	margin-bottom: 14px;
	transition: 0.2s;
}
.input-group i {
	color: #94a3b8;
	font-size: 1rem;
	margin-right: 10px;
}
.input-group input {
	border: none;
	background: transparent;
	width: 100%;
	font-size: 0.9rem;
	outline: none;
}
.input-group:focus-within {
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.login-btn {
	width: 100%;
	background: #3b82f6;
	color: white;
	border: none;
	border-radius: 48px;
	padding: 10px 0;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 8px;
	font-size: 0.9rem;
}
.login-btn:hover {
	background: #2563eb;
}

.menu-badge {
	position: absolute;
	top: -8px;
	right: -4px;
	background-color: #e63946;
	color: white;
	font-size: 0.7rem;
	font-weight: bold;
	min-width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.menu-badge.hidden {
	display: none;
}
.menu-badge.pulse {
	animation: pulse 0.3s ease;
}
@keyframes pulse {
	0% { transform: translateY(-50%) scale(1); }
	50% { transform: translateY(-50%) scale(1.3); }
	100% { transform: translateY(-50%) scale(1); }
}















#loginError {
    display: none;
    color: #e63946;
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
}


.container {
	max-width: 1400px;
	margin: 0 auto;
}

.category-header {
    margin: 20px 0;
    background: #f8fafc;
    border-radius: 20px;
    box-shadow: 0 4px 24px #9E9E9E;
    padding: 20px;
}
.category-header h1 {
	font-size: 2.2rem;
	color: #1e466e;
	margin-bottom: 8px;
}
.category-description {
	color: #475569;
	font-size: 1rem;
	max-width: 800px;
}

/* Сетка карточек (3:4) */
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 28px;
}

@media (min-width: 1200px) {
	.products-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}
@media (max-width: 1199px) and (min-width: 992px) {
	.products-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
@media (max-width: 991px) and (min-width: 768px) {
	.products-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 767px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}




/* -------------------- Хлебные крошки -------------------- */
.breadcrumbs {
	font-size: 14px;
	color: #6b7280;
	padding-bottom: 10px;
	border-bottom: 1px solid #eef1f5;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 4px 6px;
}

.breadcrumbs li {
	display: flex;
	align-items: center;
}

/* Разделитель между крошками */
.breadcrumbs li:not(:last-child)::after {
	content: '/';
	margin-left: 6px;
	color: #9ca3af;
	font-size: 14px;
}

.breadcrumbs a {
	color: #1e40af;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s, text-decoration 0.2s;
}

.breadcrumbs a:hover {
	color: #1e3a8a;
	text-decoration: underline;
}

.breadcrumbs .current {
	color: #1f2937;
	font-weight: 600;
	cursor: default;
}




/* ===== КАРТОЧКА ===== */
        .product-card {
            position: relative;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            aspect-ratio: 3 / 4;
            background-color: #2d2d2d;
        }

        .product-card:hover {
            transform: translateY(-6px);
        }

        /* Затемнение */
        .product-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.20) 50%, rgba(0, 0, 0, 0.05) 100%);
            z-index: 1;
            pointer-events: none;
        }

        /* ===== БЕЙДЖИ ===== */
        .badges {
            position: absolute;
            top: 14px;
            left: 14px;
            z-index: 4;
            display: flex;
            flex-direction: column;
            gap: 6px;
            pointer-events: none;
        }

        .badge-2 {
            display: inline-block;
            background: rgba(0, 0, 0, 0.75);
            color: #fff;
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.4px;
            text-transform: uppercase;
            padding: 4px 12px;
            border-radius: 30px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            width: fit-content;
        }

        .badge-2.hit { background: #e67e22; }
        .badge-2.new { background: #22c55e; }
        .badge-2.discount { background: #ef4444; }
        .badge-2.bestseller { background: #8b5cf6; }

        /* ===== ОВЕРЛЕЙ ===== */
        .card-overlay {
            position: relative;
            z-index: 2;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 16px 16px 10px;
            color: #fff;
        }

        /* ===== КНОПКА КОРЗИНЫ (справа вверху) ===== */
        .cart-top {
            position: absolute;
            top: 14px;
            right: 14px;
            z-index: 4;
        }

        .cart-btn {
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            cursor: pointer;
            transition: background 0.25s ease, transform 0.2s ease;
            color: #fff;
            font-size: 1.1rem;
            border: 1px solid rgba(255, 255, 255, 0.10);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
        }

        .cart-btn:hover {
            background: #ff9800;
            transform: scale(1.08);
            border-color: #ff9800;
        }

        .cart-btn.in-cart {
            background: #22c55e;
            border-color: #22c55e;
        }

        .cart-btn i {
            pointer-events: none;
        }

        /* ===== НИЖНИЙ БЛОК (стили убраны) ===== */
        .card-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        /* Левая часть (наличие + семена) */
        .card-bottom .left {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
            /*flex: 1;*/
            background: rgba(0, 0, 0, 0.55);
            padding: 6px 12px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
        }

        .stock {
            font-size: 0.7rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 5px;
            color: #86efac;
        }

        .stock i {
            font-size: 0.75rem;
        }

        .stock.out-of-stock {
            color: #fca5a5;
        }

        .specs {
            font-size: 0.65rem;
            color: #d1d5db;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .specs i {
            font-size: 0.7rem;
            color: #9ca3af;
        }

        /* Цена */
        .card-bottom .price-tag {
            font-weight: 700;
            font-size: 1rem;
            color: #ffd966;
            white-space: nowrap;
            flex-shrink: 0;
            background: rgba(0, 0, 0, 0.55);
            padding: 10px 14px;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
        }

        /* ===== НАЗВАНИЕ ТОВАРА (в самом низу) ===== */
        .product-title {
            text-align: center;
            background: rgba(0, 0, 0, 0.45);
            padding: 8px 14px;
            border-radius: 40px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .product-title a {
            color: #fff;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.2s ease;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.40);
        }

        .product-title a:hover {
            color: #ffd966;
            text-decoration: underline;
        }

        /* ===== КНОПКА БЫСТРОГО ПРОСМОТРА (появляется при наведении) ===== */
        .quick-view {
            position: absolute;
            top: 62%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            background: rgba(0, 0, 0, 0.75);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #fff;
            padding: 10px 20px;
            border-radius: 40px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            letter-spacing: 0.3px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
            opacity: 0;
            visibility: hidden;
            z-index: 5;
            white-space: nowrap;
            pointer-events: none;
        }

        .quick-view i {
            margin-right: 8px;
        }

        .product-card:hover .quick-view {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
            pointer-events: auto;
        }

        .quick-view:hover {
            background: #ff9800;
            border-color: #ff9800;
        }

        /* ===== АДАПТИВ ===== */
        @media (max-width: 400px) {
            .card-bottom {
                flex-direction: column;
                align-items: stretch;
            }
            .card-bottom .left {
                flex: none;
            }
            .card-bottom .price-tag {
                text-align: center;
            }
            .price-tag {
                font-size: 0.95rem;
            }
            .product-title a {
                font-size: 0.8rem;
            }
            .quick-view {
                font-size: 0.7rem;
                padding: 8px 16px;
            }
            .cart-btn {
                width: 34px;
                height: 34px;
                font-size: 0.95rem;
            }
        }






.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 10px 0px;
    align-items: center;
}
.filter-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 22%;
	flex: 1 0 auto;
}
.filter-group select {
	padding: 10px 14px;
	border-radius: 14px;
	border: 1px solid #d1d5db;
	background: white;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: 0.2s;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}
.filter-group select:hover {
	border-color: #9ca3af;
}
.filter-group select:focus {
	outline: 2px solid #2563eb;
	border-color: transparent;
}
.filter-group select:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background-color: #f3f4f6;
}

.content-placeholder {
	background: #f9fafc;
	border-radius: 18px;
	padding: 40px;
	text-align: center;
	color: #6b7280;
	border: 1px dashed #d1d5db;
	font-size: 16px;
}
.content-placeholder i {
	font-size: 32px;
	display: block;
	margin-bottom: 12px;
	color: #9ca3af;
}

@media (max-width: 700px) {
	.category-page { padding: 20px; }
	.filters { flex-direction: column; align-items: stretch; }
	.filter-group { min-width: unset; }
}