/* Design System Variables */
:root {
    --primary-color: #FFFFFF;
    --accent-color: #FFB300;
    --bg-color: #3F51B5;
    --text-color: #FFFFFF   ;
    --white: #3F51B5;
    --font-main: 'Roboto', sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

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

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10000; /* Increased z-index to ensure it stays on top */
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0px;
    text-decoration: none;
}

.logo img {
    height: 2em; /* Matches the font-size */
    width: auto;
    display: block;
}

.tip-box {
    background-color: #E8EAF6; /* Очень светлый синий */
    border-left: 5px solid #3F51B5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}
        
.tip-title {
    font-weight: 700;
    color: #3F51B5;
    display: block;
    margin-bottom: 5px;
}

.product-highlight {
    background-color: #FFF8E1; /* Теплый светлый желтый */
    border: 2px solid #FFECB3;
    padding: 30px;
    margin: 30px 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    text-align: left;
}

.product-highlight-content {
    flex: 1;
}

.product-highlight-image {
    flex: 0 0 250px;
    max-width: 250px;
}

.product-highlight-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .product-highlight {
        flex-direction: column;
        text-align: center;
    }

    .product-highlight-image {
        max-width: 100%;
        flex: auto;
        margin-top: 20px;
    }

    .product-highlight-image img {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .product-list {
        text-align: left; /* Keep list left aligned even on mobile center text */
        display: inline-block; /* To center the list block itself if needed, or keep it full width */
    }

}

.product-highlight h3 {
    color: #F57C00;
    margin-top: 0;
}

.product-list {
    text-align: left;
    margin-bottom: 25px;
    list-style-type: disc;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--accent-color);
}

.nav-cta {
    background-color: var(--accent-color);
    color: black !important;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .prime-support-text2 {
        margin-left: 3.4rem;
    }
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 0;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hero Images */
.hero-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-image-main {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.hero-image-main:hover {
    transform: translateY(-4px);
}

.hero-image-side {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.hero-image-side:hover {
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .hero-image-side {
        display: none;
    }
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-card {
    padding: 2rem;
    background-color: var(--accent-color);
    border-radius: 8px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: block;
}

/* Best Sellers */
.best-sellers {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

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

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--accent-color)
}

.product-info p {
    margin-bottom: 1.5rem;
    color: #666;
    flex-grow: 1;
}

.amazon_btn {
    background-color: var(--accent-color); 
    color: black;
    padding: 8px 16px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.amazon_btn:hover {
    background-color: #e9a300;
}

.prime-support-text {
    font-size: 0.75rem;
    color: #555;
    text-align: center;
    margin-top: 5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.prime-support-text2 {
    font-size: 0.75rem;
    color: #555;
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.prime-support-text3 {
    font-size: 0.75rem;
    color: #555;
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.prime-logo {
    margin-top: 6px;
    height: 20px; /* Adjust height to match text size */
    width: auto;
    vertical-align: middle;
}

/* Product Description Section */
.product-description {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.description-list {
    list-style-type: disc;
    padding-left: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.description-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

/* Designs Section */
.designs-section {
    padding: 4rem 0;
    background-color: var(--white);
    text-align: center;
}

.designs-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.design-card {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
}

.design-image-placeholder {
    background-color: #ddd;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.designs-single-image {
    max-width: 500px;
    margin: 2rem auto 0;
}

.design-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-image-img {
    width: 100%;
    height: auto;
    display: block;
}

/* About Page */
.about-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-text-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-text-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #444;
}

@media (min-width: 769px) {
    .about-section {
        flex-direction: row;
        align-items: flex-start;
    }

    .about-image {
        flex: 1;
        margin: 0;
    }

    .about-text-content {
        flex: 1;
        padding-left: 2rem;
    }
}

/* Main Content Area (for other pages) */
.main-content {
    padding: 4rem 0;
    flex: 1;
}

/* Footer */
footer {
    background-color: #FFFFFF;
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    text-decoration: none;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.2s, color 0.2s;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Product Overview Section */
.product-overview {
    padding: 4rem 0;
    background-color: #FFFFFF;
    text-align: center;
}

.overview-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
}

/* Detailed Features Section */
.detailed-features {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.feature-block {
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block h3 {
    color: #333; /* Darker color for better readability on light bg, or use accent if preferred */
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-block p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

.feature-block ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.feature-block ul li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Styles */
.page-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.blog-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

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

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
    background-color: #eee;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.blog-card-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.blog-card-content h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--bg-color);
    line-height: 1.3;
}

.blog-card-content p {
    color: #444;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bg-color);
    font-weight: 600;
    margin-top: auto;
}

.read-more i {
    transition: transform 0.2s;
}

.blog-card:hover .read-more i {
    transform: translateX(4px);
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}

/* Blog Post Detail Styles */
.blog-post {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: none;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* Ensure image respects border radius */
    padding: 0; /* Remove padding from container */
    position: relative;
    z-index: 1;
}

.blog-hero-image {
    width: 100%;
    height: 400px;
    background-color: #eee;
    position: relative;
    z-index: 1;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-post-body {
    padding: 2rem 3rem; /* Add padding to content */
    position: relative;
    z-index: 2;
    background-color: #FFFFFF;
    margin-top: 0; /* Ensure no negative margin */
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color); /* Changed to white for better visibility on blue bg */
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-color);
}

.blog-header {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-header h1 {
    color: var(--bg-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2 {
    color: var(--bg-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .blog-hero-image {
        height: 250px;
    }
    
    .blog-post-body {
        padding: 1.5rem;
        z-index: 0;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
}

/* Contact Form Styles */
.contact-container {
    max-width: 600px;
    margin: 3rem auto;
}

.contact-form {
    background-color: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 179, 0, 0.1);
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 14px;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.g-recaptcha > div {
    margin: 0 auto !important;
}
