﻿/* Импорт уникальных шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');

/* Основные стили с уникальной цветовой палитрой */
:root {
    --primary-color: #e84342;
    --primary-light: #ff6b6b;
    --secondary-color: #2c3e50;
    --accent-color: #f8c3c3;
    --accent-gold: #c5a059;
    --text-color: #2c3e50;
    --light-bg: #fff9f9;
    --leaf-color: #88b04b;
    --gradient-primary: linear-gradient(135deg, #e84342 0%, #ff6b6b 100%);
    --gradient-soft: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    position: relative;
}

    body::before {
        content: '✽ ✾ ✿ ❀ ❁';
        position: fixed;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
        color: var(--accent-color);
        opacity: 0.3;
        transform: rotate(-10deg);
        pointer-events: none;
        z-index: 0;
    }

    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 10% 20%, rgba(248, 195, 195, 0.1) 0%, transparent 30%), radial-gradient(circle at 90% 80%, rgba(232, 67, 66, 0.05) 0%, transparent 40%);
        pointer-events: none;
        z-index: -1;
    }

main {
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
}

/* Навигация */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(232, 67, 66, 0.1);
    border-bottom: 2px solid var(--accent-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-left: 35px;
}

    .navbar-brand::before {
        content: '🌹';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.8rem;
        filter: drop-shadow(0 2px 5px rgba(232, 67, 66, 0.3));
        -webkit-text-fill-color: initial;
    }

    .navbar-brand i {
        display: none;
    }

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    transition: all 0.3s;
    white-space: nowrap;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        transition: width 0.3s;
    }

    .nav-link:hover::after {
        width: 80%;
    }

    .nav-link:hover {
        color: var(--primary-color) !important;
    }

    .nav-link.active {
        color: var(--primary-color) !important;
    }

        .nav-link.active::after {
            width: 80%;
        }

.navbar-nav {
    gap: 5px;
}

/* Кнопки */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(232, 67, 66, 0.3);
}

    .btn-primary::before {
        content: '✿';
        position: absolute;
        left: -20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem;
        opacity: 0;
        transition: all 0.3s;
    }

    .btn-primary:hover::before {
        left: 10px;
        opacity: 1;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(232, 67, 66, 0.4);
        padding-left: 35px;
    }

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.3s;
    background: transparent;
}

    .btn-outline-primary:hover {
        background: var(--gradient-primary);
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(232, 67, 66, 0.3);
    }

/* Карточки */
.card {
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: visible;
}

    .card::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        background: var(--gradient-soft);
        border-radius: 30px;
        z-index: -1;
        opacity: 0;
        transition: all 0.4s;
    }

    .card:hover::before {
        opacity: 1;
        transform: scale(1.02);
    }

    .card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px rgba(232, 67, 66, 0.15);
    }

.card-img-top {
    border-radius: 20px 20px 0 0;
    transition: all 0.6s;
    position: relative;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
    position: relative;
    background: white;
    border-radius: 0 0 20px 20px;
}

    .card-body::after {
        content: '❀';
        position: absolute;
        bottom: 10px;
        right: 15px;
        font-size: 1.2rem;
        color: var(--accent-color);
        opacity: 0;
        transition: opacity 0.3s;
    }

.card:hover .card-body::after {
    opacity: 1;
}

.card-footer {
    background: white;
    border-top: 1px dashed var(--accent-color);
    padding: 1rem 1.5rem;
    border-radius: 0 0 20px 20px;
}

/* Категории */
.category-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
    text-decoration: none;
    color: var(--text-color);
    display: block;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

    .category-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(248, 195, 195, 0.3) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s;
    }

    .category-card:hover::before {
        opacity: 1;
    }

    .category-card:hover {
        transform: translateY(-10px) rotate(1deg);
        border-color: var(--accent-color);
        box-shadow: 0 20px 40px rgba(232, 67, 66, 0.2);
    }

    .category-card i {
        font-size: 3rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 15px;
        transition: transform 0.4s;
    }

    .category-card:hover i {
        transform: scale(1.2) rotate(5deg);
    }

    .category-card h5 {
        font-family: 'Playfair Display', serif;
        font-weight: 600;
        margin-bottom: 5px;
    }

/* Hero секция */
.hero {
    background: var(--gradient-soft);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

    .hero::before {
        content: '✽ ✾ ✿ ❀ ❁';
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 40px;
        color: var(--accent-color);
        opacity: 0.2;
        transform: rotate(-15deg);
    }

    .hero::after {
        content: '';
        position: absolute;
        bottom: -50px;
        right: -50px;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(232, 67, 66, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .hero h1 {
        font-family: 'Playfair Display', serif;
        font-size: 4rem;
        font-weight: 700;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 20px;
        animation: fadeInUp 1s ease;
    }

    .hero .lead {
        font-size: 1.3rem;
        color: var(--secondary-color);
        margin-bottom: 30px;
        animation: fadeInUp 1s ease 0.2s both;
    }

    .hero .btn {
        animation: fadeInUp 1s ease 0.4s both;
    }

/* Корзина */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: all 0.3s;
    text-decoration: none;
}

    .cart-icon:hover {
        background: rgba(232, 67, 66, 0.1);
        transform: scale(1.1);
    }

        .cart-icon:hover i {
            transform: rotate(10deg);
        }

    .cart-icon i {
        transition: transform 0.3s;
    }

.cart-count {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--gradient-primary) !important;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item {
    transition: all 0.3s;
    padding: 15px;
    border-radius: 15px;
    position: relative;
}

    .cart-item:hover {
        background: linear-gradient(135deg, rgba(248, 195, 195, 0.2) 0%, rgba(255, 255, 255, 0.5) 100%);
        transform: translateX(5px);
    }

/* Формы */
.form-control, .form-select {
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 12px 20px;
    transition: all 0.3s;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(232, 67, 66, 0.1);
        transform: translateY(-2px);
    }

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Хлебные крошки */
.breadcrumb-wrapper {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    padding: 15px 0;
    border-bottom: 1px solid rgba(232, 67, 66, 0.1);
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: var(--accent-color);
    font-size: 1.2rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

    .breadcrumb-item a:hover {
        color: var(--secondary-color);
        text-decoration: underline;
    }

/* Пагинация */
.pagination {
    gap: 5px;
}

.page-link {
    border: none;
    border-radius: 50% !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-weight: 600;
    transition: all 0.3s;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .page-link:hover {
        background: var(--gradient-primary);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(232, 67, 66, 0.3);
    }

.page-item.active .page-link {
    background: var(--gradient-primary);
    color: white;
}

/* Уведомления */
.alert {
    border: none;
    border-radius: 15px;
    padding: 15px 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .alert::before {
        content: '❀';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem;
        opacity: 0.1;
    }

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Подвал */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding: 60px 0 20px;
}

    .footer::before {
        content: '✽ ✾ ✿ ❀ ❁';
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 60px;
        color: rgba(255, 255, 255, 0.1);
        transform: rotate(15deg);
    }

    .footer h5 {
        font-family: 'Playfair Display', serif;
        font-weight: 600;
        margin-bottom: 25px;
        color: white;
        position: relative;
        display: inline-block;
    }

        .footer h5::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 50px;
            height: 2px;
            background: var(--accent-color);
        }

    .footer .social-links a {
        transition: all 0.3s;
        display: inline-block;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        text-align: center;
        line-height: 40px;
        margin-right: 8px;
    }

        .footer .social-links a:hover {
            background: var(--primary-color);
            transform: translateY(-3px) rotate(360deg);
        }

    .footer ul li {
        margin-bottom: 12px;
    }

        .footer ul li a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: all 0.3s;
            position: relative;
            padding-left: 20px;
        }

            .footer ul li a::before {
                content: '❀';
                position: absolute;
                left: 0;
                color: var(--accent-color);
                opacity: 0.7;
                transition: all 0.3s;
            }

            .footer ul li a:hover {
                color: white;
                padding-left: 25px;
            }

                .footer ul li a:hover::before {
                    transform: rotate(15deg);
                    opacity: 1;
                }

.footer-about {
    padding-right: 30px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 25px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-contact a:hover {
        color: var(--accent-color);
    }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-flowers {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.5;
    pointer-events: none;
}

    .footer-flowers span {
        animation: float 4s ease-in-out infinite;
        animation-delay: calc(var(--i) * 0.5s);
    }

        .footer-flowers span:nth-child(1) {
            --i: 0;
        }

        .footer-flowers span:nth-child(2) {
            --i: 1;
        }

        .footer-flowers span:nth-child(3) {
            --i: 2;
        }

        .footer-flowers span:nth-child(4) {
            --i: 3;
        }

        .footer-flowers span:nth-child(5) {
            --i: 4;
        }

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes petalFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(100px) rotate(45deg);
        opacity: 0;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }
}

@keyframes loading {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Спиннер */
.spinner {
    border: 3px solid rgba(232, 67, 66, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: relative;
}

    .spinner::before {
        content: '✿';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 0.8rem;
        color: var(--primary-color);
    }

/* Бейджи */
.badge-sale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(232, 67, 66, 0.3);
    transform: rotate(-5deg);
}

    .badge-sale::before {
        content: '🔥';
        margin-right: 5px;
    }

.badge-new {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Цены */
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 10px;
}

.current-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

    .current-price::after {
        content: '🌹';
        position: absolute;
        right: -25px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.9rem;
        opacity: 0;
        transition: opacity 0.3s;
    }

.card:hover .current-price::after {
    opacity: 1;
}

/* Избранное */
.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

    .favorite-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(232, 67, 66, 0.3);
    }

    .favorite-btn i {
        color: #ff6b6b;
        font-size: 1.2rem;
        transition: all 0.3s;
    }

    .favorite-btn.active i {
        color: #ff0000;
        animation: heartbeat 1s;
    }

/* Рейтинг */
.rating {
    color: #ffd700;
    font-size: 0.9rem;
}

    .rating i {
        margin-right: 2px;
        transition: all 0.3s;
    }

        .rating i:hover {
            transform: scale(1.2);
            color: #ffa500;
        }

/* Заголовки секций */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

    .section-title::before {
        content: '❀';
        position: absolute;
        left: 50%;
        bottom: -10px;
        transform: translateX(-50%);
        font-size: 1.5rem;
        color: var(--primary-color);
        animation: float 3s ease-in-out infinite;
    }

    .section-title::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 100px;
        height: 2px;
        background: var(--gradient-primary);
    }

/* Страницы */
.page-header {
    padding: 40px 0 20px;
    text-align: center;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.page-subtitle {
    color: #999;
    font-size: 1.1rem;
}

/* Фильтры */
.filters-section {
    margin-bottom: 40px;
}

.filters-wrapper {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    padding: 8px 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(232, 67, 66, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

    .filter-chip:hover,
    .filter-chip.active {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(232, 67, 66, 0.3);
    }

.sort-wrapper {
    position: relative;
}

.sort-select {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid rgba(232, 67, 66, 0.2);
    border-radius: 30px;
    appearance: none;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
}

    .sort-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(232, 67, 66, 0.1);
    }

.sort-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

/* Товары */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(232, 67, 66, 0.15);
    }

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s;
    }

.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s;
}

.product-card:hover .product-image img:first-child {
    transform: scale(1.1);
}

.product-card:hover .product-image-hover {
    opacity: 1;
}

.product-info {
    padding: 20px;
    flex: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.product-category {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.reviews-count {
    color: #999;
    font-size: 0.85rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-add-to-cart {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

    .btn-add-to-cart:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(232, 67, 66, 0.3);
    }

.btn-quick-view {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 67, 66, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

    .btn-quick-view:hover {
        background: var(--primary-color);
        color: white;
        transform: scale(1.1);
    }

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 30px;
}

    .empty-state i {
        font-size: 5rem;
        color: var(--primary-color);
        margin-bottom: 20px;
        opacity: 0.5;
    }

    .empty-state h3 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        color: var(--text-color);
    }

    .empty-state p {
        color: #999;
        margin-bottom: 20px;
    }

    .empty-state.small {
        padding: 30px;
    }

        .empty-state.small i {
            font-size: 3rem;
        }

/* Пагинация */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

/* Детальная страница товара */
.product-detail {
    padding: 40px 0;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .main-image img {
        width: 100%;
        transition: transform 0.6s;
    }

    .main-image:hover img {
        transform: scale(1.05);
    }

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

    .thumbnail-item.active {
        border-color: var(--primary-color);
        transform: scale(1.05);
    }

    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(232, 67, 66, 0.2);
    border-radius: 30px;
    overflow: hidden;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, rgba(232, 67, 66, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    color: var(--primary-color);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
}

    .quantity-btn:hover {
        background: var(--primary-color);
        color: white;
    }

.quantity-input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
}

    .quantity-input::-webkit-outer-spin-button,
    .quantity-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.btn-favorite {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 67, 66, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-favorite:hover,
    .btn-favorite.active {
        background: var(--primary-color);
        color: white;
        transform: scale(1.1);
    }

.product-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .meta-item i {
        font-size: 1.5rem;
        color: var(--primary-color);
    }

    .meta-item strong {
        display: block;
        font-size: 0.9rem;
        color: var(--text-color);
    }

    .meta-item span {
        font-size: 0.8rem;
        color: #999;
    }

.occasion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.occasion-tag {
    padding: 5px 15px;
    background: linear-gradient(135deg, rgba(232, 67, 66, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border-radius: 25px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.product-full-description {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 30px;
}

    .product-full-description h3 {
        font-family: 'Playfair Display', serif;
        margin-bottom: 20px;
    }

.description-content {
    line-height: 1.8;
    color: var(--text-color);
}

.related-products {
    margin-top: 60px;
}

    .related-products .section-title {
        margin-bottom: 30px;
    }

/* Профиль */
.profile-nav-wrapper {
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.profile-nav {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

    .profile-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 25px;
        border-radius: 30px;
        color: var(--text-color);
        background: linear-gradient(135deg, rgba(232, 67, 66, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
        border: none;
        transition: all 0.3s;
    }

        .profile-nav .nav-link i {
            font-size: 1.2rem;
            color: var(--primary-color);
        }

        .profile-nav .nav-link:hover {
            transform: translateY(-2px);
            background: linear-gradient(135deg, rgba(232, 67, 66, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
        }

        .profile-nav .nav-link.active {
            background: var(--gradient-primary);
            color: white;
        }

            .profile-nav .nav-link.active i {
                color: white;
            }

.profile-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 67, 66, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .profile-avatar i {
        font-size: 3.5rem;
        color: var(--primary-color);
    }

.profile-info h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
}

.profile-info p {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-edit-profile {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(232, 67, 66, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

    .btn-edit-profile:hover {
        background: var(--primary-color);
        color: white;
        transform: scale(1.1);
    }

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(232, 67, 66, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: #999;
    font-size: 0.9rem;
}

.order-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

    .order-card:hover {
        transform: translateX(5px);
        box-shadow: 0 10px 25px rgba(232, 67, 66, 0.1);
    }

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(232, 67, 66, 0.1);
}

.order-info h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
}

.order-date {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-new {
    background: #e3f2fd;
    color: #1976d2;
}

.status-confirmed {
    background: #fff3e0;
    color: #f57c00;
}

.status-assembling {
    background: #e8f5e9;
    color: #388e3c;
}

.status-delivered {
    background: #e0f2f1;
    color: #00796b;
}

.status-cancelled {
    background: #ffebee;
    color: #d32f2f;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: var(--text-color);
}

.item-name {
    flex: 1;
}

.item-quantity {
    width: 80px;
    text-align: center;
    color: #999;
}

.item-price {
    width: 100px;
    text-align: right;
    font-weight: 500;
}

.order-total {
    text-align: right;
    padding-top: 10px;
    border-top: 1px dashed rgba(232, 67, 66, 0.2);
    font-size: 1.1rem;
}

    .order-total strong {
        color: var(--primary-color);
        margin-left: 10px;
    }

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(232, 67, 66, 0.1);
}

.btn-order-details {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

    .btn-order-details:hover {
        gap: 10px;
        color: var(--secondary-color);
    }

.btn-repeat-order {
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(232, 67, 66, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

    .btn-repeat-order:hover {
        background: var(--primary-color);
        color: white;
    }

.address-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid transparent;
    transition: all 0.3s;
}

    .address-card.default {
        border-color: var(--primary-color);
        background: linear-gradient(135deg, rgba(232, 67, 66, 0.02) 0%, rgba(255, 107, 107, 0.02) 100%);
    }

.address-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.badge-default {
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.address-content p {
    margin-bottom: 5px;
    padding-right: 100px;
}

.address-details {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
}

.address-comment {
    color: #666;
    font-style: italic;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(232, 67, 66, 0.2);
}

.address-actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
}

.btn-address-edit,
.btn-address-delete {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 67, 66, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

    .btn-address-edit:hover {
        background: #4ecdc4;
        color: white;
    }

    .btn-address-delete:hover {
        background: #ff5252;
        color: white;
    }

.btn-add-address,
.btn-add-event {
    width: 100%;
    padding: 15px;
    border: 2px dashed rgba(232, 67, 66, 0.3);
    border-radius: 15px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
    margin-top: 20px;
}

    .btn-add-address:hover,
    .btn-add-event:hover {
        border-color: var(--primary-color);
        background: rgba(232, 67, 66, 0.02);
    }

.address-form,
.event-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

    .address-form h4,
    .event-form h4 {
        font-family: 'Playfair Display', serif;
        margin-bottom: 20px;
    }

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s;
}

    .event-card:hover {
        transform: translateX(5px);
        box-shadow: 0 10px 25px rgba(232, 67, 66, 0.1);
    }

.event-date {
    text-align: center;
    min-width: 70px;
}

.event-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.event-month {
    display: block;
    color: #999;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.event-content {
    flex: 1;
}

    .event-content h4 {
        font-family: 'Playfair Display', serif;
        margin-bottom: 5px;
    }

    .event-content p {
        color: #666;
        margin-bottom: 5px;
    }

.event-notify {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #999;
}

.event-actions {
    display: flex;
    gap: 5px;
}

.btn-event-edit,
.btn-event-delete {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 67, 66, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

    .btn-event-edit:hover {
        background: #4ecdc4;
        color: white;
    }

    .btn-event-delete:hover {
        background: #ff5252;
        color: white;
    }

.bonus-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.bonus-header {
    margin-bottom: 30px;
}

    .bonus-header i {
        font-size: 3rem;
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    .bonus-header h3 {
        font-family: 'Playfair Display', serif;
    }

.bonus-balance {
    margin-bottom: 30px;
}

.balance-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.balance-label {
    display: block;
    color: #999;
    font-size: 1.1rem;
    margin-top: 5px;
}

.bonus-info {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
}

    .bonus-info p {
        margin-bottom: 8px;
        color: var(--text-color);
    }

.bonus-history {
    text-align: left;
}

    .bonus-history h4 {
        font-family: 'Playfair Display', serif;
        margin-bottom: 20px;
    }

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(232, 67, 66, 0.1);
}

.history-date {
    color: #999;
    width: 100px;
}

.history-description {
    flex: 1;
}

.history-amount {
    font-weight: 600;
    width: 80px;
    text-align: right;
}

    .history-amount.positive {
        color: #4ecdc4;
    }

    .history-amount.negative {
        color: #ff5252;
    }

/* Строка преимуществ */
.benefits-bar {
    background: white;
    padding: 15px 0;
    margin-top: 86px;
    border-bottom: 1px solid rgba(232, 67, 66, 0.1);
}

.benefits-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .benefit-item i {
        font-size: 2rem;
        color: var(--primary-color);
        background: linear-gradient(135deg, rgba(232, 67, 66, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s;
    }

    .benefit-item:hover i {
        transform: scale(1.1) rotate(360deg);
        background: var(--gradient-primary);
        color: white;
    }

.benefit-content {
    display: flex;
    flex-direction: column;
}

.benefit-title {
    font-weight: 600;
    color: var(--text-color);
}

.benefit-subtitle {
    font-size: 0.9rem;
    color: #999;
}

/* Поиск */
.search-form-static {
    margin-right: 15px;
}

.search-group {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(232, 67, 66, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    border-radius: 30px;
    border: 1px solid rgba(232, 67, 66, 0.2);
    transition: all 0.3s;
    width: 250px;
}

    .search-group:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(232, 67, 66, 0.1);
        background: white;
    }

.search-input-static {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 0.95rem;
    outline: none;
    color: var(--text-color);
    min-width: 0;
}

    .search-input-static::placeholder {
        color: #999;
        font-style: italic;
    }

.search-btn-static {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .search-btn-static:hover {
        color: white;
        background: var(--primary-color);
    }

    .search-btn-static i {
        font-size: 1.1rem;
    }

/* Меню пользователя */
.user-menu .user-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(232, 67, 66, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    color: var(--primary-color);
    transition: all 0.3s;
}

    .user-menu .user-btn:hover {
        background: rgba(232, 67, 66, 0.1);
        transform: translateY(-2px);
    }

.user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .dropdown-item:hover {
        background: linear-gradient(135deg, rgba(232, 67, 66, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
        color: var(--primary-color);
        padding-left: 25px;
    }

    .dropdown-item i {
        font-size: 1.1rem;
    }

/* Ссылка входа */
.login-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 25px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(232, 67, 66, 0.3);
}

    .login-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(232, 67, 66, 0.4);
        color: white;
    }

    .login-link i {
        font-size: 1.2rem;
        animation: float 3s ease-in-out infinite;
    }

.main-content {
    min-height: 60vh;
    padding: 40px 0;
}

/* Социальные ссылки */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

    .social-link:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-3px) rotate(360deg);
    }

/* Кнопка наверх */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(232, 67, 66, 0.3);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(232, 67, 66, 0.4);
    }

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.payment-methods {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
}

    .payment-methods i {
        transition: all 0.3s;
    }

        .payment-methods i:hover {
            color: var(--accent-color);
            transform: translateY(-3px);
        }

/* Скроллбар */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-bb--light-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 3px solid var(--light-bg);
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #ff5252 0%, #ff6b6b 100%);
    }

/* Прелоадер */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.preloader-text {
    margin-top: 20px;
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease-in-out infinite alternate;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .nav-link {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.6rem;
    }
}

@media (max-width: 1100px) and (min-width: 993px) {
    .nav-link {
        padding: 0.5rem 0.4rem !important;
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .benefits-bar {
        margin-top: 76px;
    }

    .search-group {
        width: 200px;
    }

    .user-name {
        display: none;
    }

    .navbar-nav {
        gap: 0;
    }

    .nav-link {
        white-space: normal;
        padding: 0.5rem 1rem !important;
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        text-align: center;
        padding: 50px 0;
    }

        .hero img {
            margin-top: 30px;
            animation: float 4s ease-in-out infinite;
        }

    .section-title {
        font-size: 2rem;
    }

    .footer {
        text-align: center;
    }

        .footer h5::after {
            left: 50%;
            transform: translateX(-50%);
        }

    .footer-flowers {
        display: none;
    }

    .payment-methods {
        justify-content: center;
        margin-top: 15px;
    }

    .copyright {
        text-align: center;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .benefits-grid {
        flex-direction: column;
        align-items: start;
    }

    .search-form-static {
        margin: 10px 0;
        width: 100%;
    }

    .search-group {
        width: 100%;
    }

    .profile-nav .nav-link span {
        display: none;
    }

    .profile-nav .nav-link i {
        font-size: 1.5rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-header {
        flex-direction: column;
        gap: 10px;
        align-items: start;
    }

    .order-item {
        flex-wrap: wrap;
    }

    .item-name {
        width: 100%;
        margin-bottom: 5px;
    }

    .event-card {
        flex-wrap: wrap;
    }

    .event-date {
        width: 100%;
        display: flex;
        gap: 5px;
        align-items: baseline;
    }

    .event-day {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .login-link span {
        display: none;
    }

    .login-link i {
        margin: 0;
    }
}
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 250px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 15px 20px;
}

    .notification-toast.show {
        opacity: 1;
        transform: translateX(0);
    }

    .notification-toast i {
        margin-right: 8px;
    }

/* Исправление для модальных окон */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

    .modal-backdrop.show {
        opacity: 0.5 !important;
    }

.modal-dialog {
    z-index: 1065 !important;
    margin: 1.75rem auto !important;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal.show {
    display: block !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-body {
    padding: 0 !important;
    position: relative;
}

    .modal-body .btn-close {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1070;
        background-color: white;
        border-radius: 50%;
        padding: 8px;
        opacity: 0.8;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

        .modal-body .btn-close:hover {
            opacity: 1;
            transform: scale(1.1);
        }

/* Специально для модального окна изображений */
#imageModal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

#imageModal .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

#imageModal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
/* Принудительное исправление для модального окна */
#imageModal {
    z-index: 99999 !important;
}

    #imageModal .modal-dialog {
        z-index: 100000 !important;
        pointer-events: auto !important;
    }

    #imageModal .modal-content {
        pointer-events: auto !important;
        background: transparent !important;
        border: none !important;
    }

    #imageModal .btn-close {
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 100010;
        background-color: white;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        opacity: 0.9;
        cursor: pointer !important;
        pointer-events: auto !important;
    }

        #imageModal .btn-close:hover {
            opacity: 1;
            transform: scale(1.1);
        }

    #imageModal img {
        max-width: 100%;
        max-height: 90vh;
        object-fit: contain;
        cursor: pointer;
    }

/* Убедимся, что затемнение работает правильно */
.modal-backdrop {
    z-index: 99990 !important;
}

    .modal-backdrop.show {
        opacity: 0.5 !important;
    }

/* Исправление для кликабельности */
.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
}

    .modal.show .modal-dialog {
        pointer-events: auto !important;
        margin: 0 auto !important;
    }