:root {
    --primary-color: #FF3366;
    --secondary-color: #FF8C69;
    --tertiary-color: #2B86C5;
    --background-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
}

/* Основные стили */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Manrope', sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(43, 134, 197, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Шапка сайта */
.header {
    background: white;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.navbar {
    padding: 15px 0;
    background: white !important;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Категории */
.categories-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0;
    margin: 0 -15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: inline-block;
    text-align: center;
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.category-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

/* Слайдер баннеров */
.banner-slider {
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
}

.banner-slide {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
}

/* Карточки товаров */
.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.product-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: all 0.3s ease;
    cursor: zoom-in;
}

/* Отключаем эффекты при увеличении */
.product-image.zoomed,
.product-image.zoomed:hover,
.product-card:has(.product-image.zoomed) {
    transform: none;
    box-shadow: none;
}

.product-image.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    height: auto;
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1000;
    cursor: zoom-out;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5) !important;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Анимации */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.product-image.zoomed {
    animation: zoomIn 0.3s ease forwards;
}

.product-card a:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

/* Корзина */
.cart-count {
    background: var(--primary-color) !important;
}

/* Описание на главной */
.features-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-color);
    height: 100%;
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Стилизация корзины */
.cart-count {
    background: var(--primary-color) !important;
    border: 2px solid var(--background-color);
    box-shadow: 0 0 10px rgba(255, 60, 172, 0.5);
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

/* Эффект свечения для карточек */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(125deg, rgba(255, 60, 172, 0.2), rgba(43, 134, 197, 0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after {
    opacity: 1;
} 