:root {
    --primary-color: #00CFC1;
    --hover-color: #00B5A8;
    --secondary-color: #667eea;
    --accent-color: #764ba2;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #f44336;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --medium-text: #5a6c7d;
    --light-text: #8e9aaf;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #00CFC1 0%, #00B5A8 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark-text);
    line-height: 1.6;
    font-size: 16px;
}

/* Улучшенная типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    color: var(--medium-text);
    margin-bottom: 1rem;
}

.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    position: sticky !important;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 20px var(--shadow-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input {
    min-width: 300px;
    border-radius: 25px 0 0 25px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 207, 193, 0.1);
    border-color: var(--primary-color);
    background: var(--white);
    transform: translateY(-1px);
}

.search-input + .btn {
    border-radius: 0 25px 25px 0;
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.search-input + .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 207, 193, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-carousel {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-medium);
    max-height: 500px;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 400px;
    background: var(--gradient-card);
}

.hero-image {
    width: 50%;
    height: 400px;
    object-fit: cover;
    border-radius: 0;
}

.hero-content {
    width: 50%;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--medium-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-btn {
    align-self: flex-start;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 207, 193, 0.3);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 207, 193, 0.4);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--gradient-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 207, 193, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--white);
}


/* Info Section */
.info-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(0, 207, 193, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-radius: 25px;
    margin: 2rem 0;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--gradient-card);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.info-card:hover::before {
    opacity: 1;
}

.info-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 207, 193, 0.3);
}

.info-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.info-content p {
    color: var(--medium-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.categories-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    border-top: none;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-heading {
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.footer-links a:hover::before {
    width: 4px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Payment Methods */
.payment-methods {
    gap: 1.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
    height: 60px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-method:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.payment-method i {
    transition: all 0.3s ease;
}

.payment-method:hover i {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

.payment-method:first-child:hover i {
    color: #1a1f71 !important;
}

.payment-method:nth-child(2):hover i {
    color: #eb001b !important;
}

.payment-method:nth-child(3):hover i {
    color: #006fcf !important;
}

.payment-method:nth-child(4):hover i {
    color: #0070ba !important;
}

.payment-method:nth-child(5):hover i {
    color: #00d4aa !important;
}

.payment-method:nth-child(6):hover i {
    color: #4caf50 !important;
}

/* Contact Page Styles */
.contact-info-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    border: none;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact-form-section .card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form-section .form-control,
.contact-form-section .form-select {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px;
    transition: all 0.3s ease;
}

.contact-form-section .form-control:focus,
.contact-form-section .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 207, 193, 0.25);
}

.contact-form-section .btn-primary {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contact-form-section .btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 207, 193, 0.3);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
    padding: 0.75rem 1rem !important;
    text-align: center;
    min-width: 100px;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Выравнивание элементов меню */
.navbar-nav {
    flex: 1;
    justify-content: space-between;
    align-items: center;
}

.navbar-nav .nav-item {
    flex: 1;
    text-align: center;
}

.btn-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-color);
}

.breadcrumb {
    margin: 1rem 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Animation for cart and user icons */
.btn-link i {
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: scale(1.1);
}

/* Стили для корзины */
.snipcart-checkout {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white !important;
    border: none;
    transition: all 0.3s ease;
}

.snipcart-checkout:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 207, 193, 0.3);
}

.snipcart-checkout i {
    margin-right: 0.5rem;
}

.snipcart-items-count {
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
}

.snipcart-total-price {
    display: none;
}

/* Улучшенные карточки товаров */
.card {
    border: none;
    border-radius: 20px;
    background: var(--gradient-card);
    box-shadow: 0 8px 32px var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.card:hover::before {
    opacity: 1;
}

.card-img-top {
    border-radius: 20px 20px 0 0;
    transition: transform 0.3s ease;
    height: 250px;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--medium-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Улучшенные кнопки */
.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 207, 193, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 207, 193, 0.4);
    background: var(--gradient-primary);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: var(--gradient-secondary);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 207, 193, 0.3);
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 991.98px) {
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        min-width: auto;
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .snipcart-checkout {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* Анимации и переходы */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Анимации для элементов */
.card {
    animation: fadeInUp 0.6s ease-out;
}

.nav-link {
    animation: fadeInLeft 0.6s ease-out;
}

.btn {
    animation: fadeInRight 0.6s ease-out;
}

/* Улучшенные формы */
.form-control,
.form-select {
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 207, 193, 0.1);
    background: var(--white);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

/* Улучшенные секции */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 207, 193, 0.02) 0%, rgba(102, 126, 234, 0.02) 100%);
    pointer-events: none;
}

/* Breadcrumb улучшения */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--hover-color);
}

.breadcrumb-item.active {
    color: var(--medium-text);
    font-weight: 500;
}

/* Cookie consent улучшения */
.cookie-consent {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -4px 20px var(--shadow-medium);
}

.cookie-consent .btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

/* Адаптивные стили для карусели */
@media (max-width: 768px) {
    .hero-slide {
        flex-direction: column;
        min-height: 350px;
    }
    
    .hero-image {
        width: 100%;
        height: 200px;
        order: 1;
    }
    
    .hero-content {
        width: 100%;
        padding: 2rem;
        order: 2;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .search-input {
        min-width: 200px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-carousel {
        max-height: 400px;
    }
    
    .hero-slide {
        min-height: 300px;
    }
    
    .hero-image {
        height: 150px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .payment-methods {
        gap: 1rem;
    }
    
    .payment-method {
        min-width: 50px;
        height: 50px;
        padding: 0.5rem;
    }
    
    .payment-method i {
        font-size: 1.5rem !important;
    }
    
    .info-section {
        padding: 2rem 0;
        margin: 1rem 0;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto;
    }
    
    .info-content h3 {
        font-size: 1.1rem;
    }
    
    .info-content p {
        font-size: 0.9rem;
    }
}
