/* Modern Luxury Swiss Bedding Design */
:root {
    --primary-color: #2C5530;
    --secondary-color: #8BA888;
    --accent-color: #D4B08C;
    --text-dark: #1A1A1A;
    --text-light: #6B7280;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    padding-top: 80px; /* Отступ для фиксированного хедера */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Header & Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    width: 100%;
}

.navbar {
    padding: 1rem 0;
    align-items: center;
}

.navbar-collapse {
    align-items: center;
    height: 100%;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-brand:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.navbar-nav {
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

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

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(139, 168, 136, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    transform: translateX(-50%);
}

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

/* Search Box */
.search-box {
    position: relative;
    width: 280px;
    display: flex;
    align-items: center;
}

.search-box .form-control {
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 25px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box .form-control:focus {
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Cart Button */
.cart-buttons {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Search Form */
.d-flex.me-3 {
    display: flex;
    align-items: center;
    height: 100%;
}

.snipcart-checkout {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.75rem;
    border-radius: 12px;
    color: white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.snipcart-checkout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.snipcart-items-count {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    display: none; /* Hidden by default, shown when items exist */
}

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

.carousel-item {
    height: 80vh;
    min-height: 600px;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.3), rgba(139, 168, 136, 0.2));
    z-index: 1;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.9);
}

.carousel-caption {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 20px;
    bottom: 50%;
    transform: translateY(50%);
    max-width: 700px;
    margin: 0 auto;
    left: 0;
    right: 0;
    z-index: 2;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-caption h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.carousel-caption p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-shadow: none;
}

/* Buttons */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Cards */
.category-card, .product-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    overflow: hidden;
    background: var(--bg-white);
}

.category-card:hover, .product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.category-card img, .product-card img {
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-body {
    padding: 2rem;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Price */
.price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--bg-light), rgba(139, 168, 136, 0.1));
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23A4C2A8" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23A4C2A8" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23A4C2A8" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.newsletter-form {
    position: relative;
    z-index: 2;
}

.newsletter-form .form-control {
    height: 60px;
    border-radius: 30px 0 0 30px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 0 2rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.newsletter-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.newsletter-form .btn {
    border-radius: 0 30px 30px 0;
    padding: 0 2.5rem;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
}

.newsletter-form .btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Quality Promise Section */
.quality-promise {
    padding: 4rem 0;
    background: var(--bg-white);
}

.quality-promise .card {
    border: none;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(145deg, var(--bg-white), var(--bg-light));
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
}

.quality-promise .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.quality-promise i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quality-promise h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.quality-promise p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grain)"/></svg>');
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1.2rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.footer-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.contact-item i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.2rem;
    width: 16px;
    text-align: center;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: white;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: var(--transition);
}

.footer-links a:hover::before {
    width: 100%;
}

/* Footer Newsletter */
.footer-newsletter .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-newsletter .form-control {
    border: none;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-size: 0.9rem;
}

.footer-newsletter .form-control:focus {
    box-shadow: none;
    background: white;
}

.footer-newsletter .btn {
    border: none;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.footer-newsletter .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Product Page Styles */
.product-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
}

.product-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.product-features h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-features ul {
    color: var(--text-light);
    padding-left: 1.5rem;
    line-height: 1.8;
}

.product-features li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

/* Contact Page Styles */
.contact-form-card {
    background: linear-gradient(145deg, var(--bg-white), var(--bg-light));
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info {
    background: linear-gradient(145deg, var(--bg-light), var(--bg-white));
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-form .form-label {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
    background: var(--bg-white);
}

/* FAQ Section */
.faq-section .accordion-button {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    font-weight: 600;
    padding: 1.5rem;
    background: linear-gradient(145deg, var(--bg-white), var(--bg-light));
    border: none;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: linear-gradient(145deg, var(--bg-light), var(--bg-white));
    box-shadow: var(--shadow-soft);
}

.faq-section .accordion-body {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    line-height: 1.8;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 0 0 12px 12px;
}

/* Animations */
@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);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.8rem;
    }
    
    .search-box {
        width: 100%;
        margin: 1rem 0;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-price {
        font-size: 2rem;
    }
    
    /* Footer responsive */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-newsletter .input-group {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 0.5rem;
    }
    
    /* Header responsive */
    body {
        padding-top: 70px; /* Меньший отступ для мобильных */
    }
    
    .navbar-brand {
        font-size: 1.6rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 60vh;
    }
    
    .carousel-caption {
        padding: 1.5rem;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Header responsive for small screens */
    body {
        padding-top: 65px; /* Еще меньший отступ для очень маленьких экранов */
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, var(--bg-light), rgba(139, 168, 136, 0.05));
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="testimonial-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23A4C2A8" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23A4C2A8" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23testimonial-grain)"/></svg>');
    opacity: 0.3;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stars {
    color: #FFD700;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

.testimonial-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

/* Social Links - Removed */

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

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

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

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}
