/* Красивый светлый градиент на фон */
body {
    background: linear-gradient(135deg, #f8faff 0%, #e8f4fd 25%, #f0f8ff 50%, #f5f9ff 75%, #fafcff 100%);
    min-height: 100vh;
    padding-top: 80px; /* Отступ для фиксированного меню */
}

.navbar {
    background: linear-gradient(135deg, #121C2A 0%, #1E2D40 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #A3E4FB !important;
    letter-spacing: 1px;
}

/* Улучшенная навигация с выравниванием по высоте и ширине */
.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    color: #F1F3F6 !important;
    font-weight: 400;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 6px;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: #A3E4FB !important;
    background-color: rgba(163,228,251,0.1);
    transform: translateY(-1px);
}

.search-input {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #F1F3F6;
    width: 220px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 0.9rem;
}

.search-input:focus {
    background-color: rgba(255,255,255,0.15);
    border-color: #A3E4FB;
    color: #F1F3F6;
    box-shadow: 0 0 0 0.2rem rgba(163,228,251,0.25);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: rgba(241,243,246,0.6);
    font-size: 0.9rem;
}

.site-footer {
    background-color: #121C2A;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cart-buttons {
    display: flex;
    align-items: center;
}

.cart-buttons button {
    background: transparent;
    border: none;
    color: #F1F3F6;
    padding: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.cart-buttons button:hover {
    color: #A3E4FB;
    background-color: rgba(163,228,251,0.1);
    transform: translateY(-1px);
}

/* Стили для счетчика товаров в корзине */
.snipcart-items-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #1B9CCF;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
}

.breadcrumb {
    background: linear-gradient(135deg, #CCEFFF 0%, #E8F4FD 100%);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 1rem;
}

.breadcrumb-item a {
    color: #1B9CCF;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #121C2A;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px; /* Меньший отступ для мобильных */
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        margin: 1rem 0;
    }
    
    .nav-item {
        height: auto;
        margin: 0.25rem 0;
    }
    
    .nav-link {
        min-width: auto;
        width: 100%;
        margin: 0;
        padding: 1rem !important;
        border-radius: 8px;
    }
    
    .search-input {
        width: 100%;
        margin: 1rem 0;
    }
    
    .cart-buttons {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 65px; /* Еще меньший отступ для очень маленьких экранов */
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.875rem !important;
    }
    
    .search-input {
        font-size: 0.85rem;
        padding: 0.625rem 0.875rem;
    }
}

/* Product page styles */
.product-image {
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.02);
}

.btn-primary {
    background: linear-gradient(135deg, #1B9CCF 0%, #167AA3 100%);
    border: none;
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(27,156,207,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #167AA3 0%, #1B9CCF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(27,156,207,0.4);
}

.card.bg-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%) !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.text-primary {
    color: #1B9CCF !important;
}

/* Hero Section */
.hero-section {
    margin-top: -1rem;
}

.carousel-item {
    height: 600px;
    background: linear-gradient(135deg, #f8faff 0%, #e8f4fd 100%);
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Category Cards */
.category-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.category-card img {
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Featured Products - Улучшенные карточки товаров */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 50%, #f0f8ff 100%);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B9CCF, #A3E4FB, #1B9CCF);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(27,156,207,0.3);
}

.card:hover::before {
    animation: shimmer 1s infinite;
}

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

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

.card-body {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    position: relative;
    z-index: 1;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #121C2A;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
    font-weight: 600;
}

.card:hover .card-title {
    color: #1B9CCF;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B9CCF;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-family: 'Playfair Display', serif;
}

/* Улучшенные кнопки в карточках */
.card .btn-primary {
    background: linear-gradient(135deg, #1B9CCF 0%, #167AA3 100%);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(27,156,207,0.3);
    width: 100%;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.card .btn-primary:hover {
    background: linear-gradient(135deg, #167AA3 0%, #1B9CCF 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(27,156,207,0.4);
}

/* Эффект стекла для карточек */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    border-radius: 20px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #121C2A, #1E2D40);
    color: #F1F3F6;
}

.newsletter-form .form-control {
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #F1F3F6;
    padding: 0.8rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(241,243,246,0.6);
}

/* About Section */
.about-section img {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.contact-info i {
    font-size: 1.5rem;
    color: #1B9CCF;
    transition: all 0.3s ease;
}

.contact-info:hover i {
    transform: scale(1.2);
}

.opening-hours {
    background: linear-gradient(135deg, #CCEFFF 0%, #F1F3F6 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.map-section .card {
    background: linear-gradient(135deg, #F1F3F6 0%, #ffffff 100%);
    border-radius: 12px;
}

.accordion-button {
    background: linear-gradient(135deg, #F1F3F6 0%, #ffffff 100%);
    border: none;
    color: #121C2A;
    border-radius: 8px;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #CCEFFF 0%, #F1F3F6 100%);
    color: #1B9CCF;
}

/* Дополнительные улучшения для секций */
.categories-section, .featured-products {
    background: linear-gradient(135deg, rgba(248,250,255,0.5) 0%, rgba(232,244,253,0.5) 100%);
    padding: 4rem 0;
    border-radius: 0;
}

/* Анимация для карточек при загрузке */
.card {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенные стили для заголовков */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #121C2A;
}

.text-center h2 {
    position: relative;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.text-center h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1B9CCF, #A3E4FB);
    border-radius: 2px;
}

/* Дополнительные эффекты для карточек */
.card .text-decoration-none {
    transition: all 0.3s ease;
}

.card:hover .text-decoration-none {
    color: #1B9CCF !important;
}

/* Эффект пульсации для кнопок */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.card .btn-primary:active {
    animation: pulse 0.3s ease-in-out;
}
