:root {
    --primary-color: #A3D900;
    --background-color: #F5F5F5;
    --text-color: #2C3E50;
    --border-color: #E5E5E5;
    --footer-bg: #F8F9FA;
}

body {
    background-color: var(--background-color);
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-color);
    padding-top: 80px;
}

/* Header Styles */
.navbar {
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 400;
    color: var(--text-color) !important;
    padding: 0.75rem 1rem;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    text-align: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Search Form Styles */
.search-input {
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    width: 200px;
}

.btn-search {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.5rem;
    margin-left: -40px;
}

.nav-buttons .btn {
    padding: 0.75rem 1rem;
    margin-left: 0.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-buttons .btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.nav-buttons .snipcart-items-count {
    margin-left: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Выравнивание элементов навигации */
.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    white-space: nowrap;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
    }
    
    .nav-buttons {
        margin-top: 1rem;
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--footer-bg);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.footer-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-contact {
    color: #666;
    font-style: normal;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #666;
    text-decoration: none;
}

/* Payment Methods Styles */
.payment-methods {
    margin-top: 1.5rem;
}

.payment-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.payment-icon {
    font-size: 1.5rem;
    color: #666;
    transition: color 0.3s ease;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.payment-icon:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.payment-icon.fab.fa-cc-visa:hover {
    color: #1A1F71;
}

.payment-icon.fab.fa-cc-mastercard:hover {
    color: #EB001B;
}

.payment-icon.fab.fa-cc-paypal:hover {
    color: #0070BA;
}

.payment-icon.fab.fa-apple-pay:hover {
    color: #000;
}

.payment-icon.fab.fa-google-pay:hover {
    color: #4285F4;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    color: #888;
    margin: 0;
}

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

/* Карусель - базовые стили */
.carousel {
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Убираем дублирующиеся стили */

/* Адаптивные размеры карусели */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .carousel-item img {
        height: 200px;
    }
}

.carousel-caption {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    color: var(--text-color);
    max-width: 500px;
    margin: 0 auto;
}

.carousel-caption h1,
.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.carousel-caption p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Responsive captions */
@media (max-width: 768px) {
    .carousel-caption {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        padding: 1rem;
        max-width: 95%;
    }
    
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* Кнопки управления каруселью */
.carousel-indicators {
    display: none;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    color: #fff;
    text-align: center;
    background: 0 0;
    border: 0;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: 0.9;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}

/* Адаптивные кнопки управления */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}

/* Info Blocks Styles */
.info-blocks-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.info-block {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.info-block:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #8fb800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.info-block h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-block p {
    color: #666;
    line-height: 1.6;
}

/* Features Section Styles */
.features-section {
    background: white;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.feature-list i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.feature-image img,
.custom-image img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Custom Design Section Styles */
.custom-design-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.custom-features {
    margin: 1.5rem 0;
}

.custom-feature {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.custom-feature:last-child {
    border-bottom: none;
}

.custom-feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
}

.custom-feature span {
    font-weight: 500;
    color: var(--text-color);
}

/* Category Section Styles */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: white;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.category-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.category-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    min-height: 2.8rem;
}

.category-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.category-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Адаптивные размеры для категорий */
@media (max-width: 768px) {
    .category-card img {
        height: 280px;
    }
    
    .category-content {
        padding: 1.5rem;
    }
    
    .category-content h3 {
        font-size: 1.3rem;
        min-height: 2.6rem;
    }
}

@media (max-width: 576px) {
    .category-card img {
        height: 250px;
    }
    
    .category-content {
        padding: 1.25rem;
    }
    
    .category-content h3 {
        font-size: 1.2rem;
        min-height: 2.4rem;
    }
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Принудительное одинаковое отображение всех изображений товаров */
.product-card img {
    width: 100% !important;
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

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

.product-image {
    width: 100% !important;
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
    display: block !important;
}

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

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.6rem;
}

.product-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-content h3 a:hover {
    color: var(--primary-color);
}

.product-content .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-content .description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.product-link {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    overflow: hidden;
}

/* Адаптивные размеры для карточек товаров */
@media (max-width: 768px) {
    .product-image {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
    }
    
    .product-content {
        padding: 1.25rem;
    }
    
    .product-content h3 {
        font-size: 1.2rem;
    }
    
    .product-content .price {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .product-image {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-content h3 {
        font-size: 1.1rem;
        min-height: 2.2rem;
    }
    
    .product-content .price {
        font-size: 1.2rem;
    }
    
    .product-content .description {
        font-size: 0.9rem;
    }
}

/* Newsletter Section Styles */
.newsletter-section {
    background-color: white;
}

.newsletter-form .form-control {
    border-radius: 25px 0 0 25px;
    padding: 0.75rem 1.5rem;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
}

/* About Section Styles */
.about-section {
    background-color: #f8f9fa;
}

.about-image-grid {
    border-radius: 8px;
    overflow: hidden;
}

/* Product Page Styles */
.product-image-container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.product-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #8fb800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Специальные стили для кнопок в карточках товаров */
.product-card .btn-primary {
    margin-top: auto;
    align-self: center;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    width: auto;
    min-width: 140px;
}

@media (max-width: 576px) {
    .product-card .btn-primary {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        min-width: 120px;
    }
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin: 0;
}

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

.breadcrumb-item.active {
    color: #666;
}
/* Contact Page Styles */
.contact-main-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-info {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-details {
    color: #2C3E50;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    margin-bottom: 0.5rem;
    color: #2C3E50;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    font-size: 1rem;
    color: #2C3E50;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

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

.contact-form .form-label {
    color: #2C3E50;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form .btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form .form-check-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.contact-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* FAQ Section Styles */
.faq-section .accordion-button {
    background: white;
    color: #2C3E50;
    font-weight: 600;
    padding: 1.25rem;
    border: none;
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: linear-gradient(to right, rgba(163, 217, 0, 0.1), white);
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(163, 217, 0, 0.5);
}

.faq-section .accordion-body {
    color: #2C3E50;
    line-height: 1.6;
    padding: 1.25rem;
}
