/* --- Global Styles & Variables --- */
:root {
    --primary-color-start: #4a90e2; /* A bright, clean blue */
    --primary-color-end: #2e6ab1;   /* A deeper, professional blue */
    --secondary-color: #f4f7f6;     /* Light grey for backgrounds */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --white-color: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--white-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

ul {
    list-style: none;
}

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

/* --- Header --- */
.site-header {
    background-color: var(--white-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color-end);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color-dark);
    transition: color 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color-start);
}

.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    order: 2;
    z-index: 1001; /* Ensure it's on top */
}

/* --- Snipcart Icon Customization --- */
.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
}

.cart-icon {
    width: 28px;
    height: 28px;
    stroke: var(--text-color-dark);
    transition: stroke 0.3s ease;
}

.cart-icon-wrapper:hover .cart-icon {
    stroke: var(--primary-color-start);
}

.snipcart-items-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--primary-color-start);
    color: var(--white-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white-color);
}


/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    color: var(--text-color-light);
    text-align: center;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--white-color);
    color: var(--primary-color-end);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.btn-secondary {
    background-color: var(--primary-color-end);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--primary-color-start);
    border-color: var(--primary-color-start);
}


/* --- General Section Styling --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color-end);
}

.featured-products, .why-choose-us, .page-content {
    padding: 4rem 0;
}

.why-choose-us {
    background-color: var(--secondary-color);
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

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

.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color-end);
}

.product-description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.feature-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color-end);
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--text-color-dark);
    color: var(--text-color-light);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-color-light);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copy {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* --- Responsive Styles (Mobile-First) --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .header-right {
        gap: 1.5rem;
    }

    .main-nav {
        /* This is the corrected rule. It is now hidden with transform only. */
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100%;
        background-color: var(--white-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .main-nav.active {
        /* This rule slides the menu into view */
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 4rem 0;
        gap: 1.5rem;
    }

    .mobile-nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-color-dark);
        position: relative;
        transition: background-color 0.1s ease-in-out;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background-color: var(--text-color-dark);
        left: 0;
        transition: transform 0.3s ease-in-out;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }
    
    /* Hamburger animation for active state */
    .mobile-nav-toggle.active .hamburger {
        background-color: transparent; /* Middle bar disappears */
    }

    .mobile-nav-toggle.active .hamburger::before {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-nav-toggle.active .hamburger::after {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- Page Specific Styles --- */
.page-header {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    color: var(--text-color-light);
    text-align: center;
    padding: 4rem 0;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
}

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

.page-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color-end);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content p, .page-content ul {
    margin-bottom: 1rem;
}

.page-content ul {
    list-style: disc;
    padding-left: 20px;
}

.page-content a {
    color: var(--primary-color-start);
    text-decoration: underline;
}

/* --- Form, Contact, Policy Pages etc. --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.faq-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color-end);
    margin-bottom: 0.5rem;
}

.about-image {
    border-radius: 8px;
    margin-bottom: 2rem;
    width: 100%;
}

.footer-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.blog-post-excerpt {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.blog-post-excerpt:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.blog-post-excerpt h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.blog-post-excerpt h2 a {
    color: var(--primary-color-end);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-excerpt h2 a:hover {
    color: var(--primary-color-start);
}

.post-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.page-header .post-meta {
    color: var(--text-color-light);
    opacity: 0.8;
    margin-bottom: 0;
}

.blog-post-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color-end);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.contact-details {
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form + .contact-details {
    margin-top: 3rem;
}

.contact-details h3 {
    margin-bottom: 1rem;
    color: var(--primary-color-end);
}

.footer-contact {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.thank-you-content {
    text-align: center;
}

.thank-you-content .btn {
    margin-top: 2rem;
}
/* --- Testimonials Section --- */
.testimonials {
    background-color: var(--secondary-color); /* Light grey background */
}

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

.testimonial-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
}

.review-stars {
    font-size: 1.5rem;
    color: #FFC107; /* A vibrant gold/yellow */
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes the author to the bottom */
}

.review-author {
    font-weight: 700;
    color: var(--text-color-dark);
}

.review-source {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}
/* --- Footer Newsletter Signup --- */
.footer-signup {
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Full border */
    border-radius: var(--border-radius); /* Rounded corners */
    padding: 2rem; /* Spacing inside the box */
}

.footer-signup h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-signup p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-signup .signup-form-container {
    display: flex;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-signup input[type="email"] {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    color: var(--white-color);
    font-family: var(--font-family);
}

.footer-signup input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-signup input[type="email"]:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.footer-signup .button {
    background-color: var(--primary-color-start);
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-signup .button:hover {
    background-color: var(--primary-color-end);
}

.footer-signup .button svg {
    stroke: var(--white-color);
}
/* --- Announcement Bar --- */
.announcement-bar {
    background-color: var(--primary-color-end);
    color: var(--white-color);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Product Shipping Info --- */
.product-shipping-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: #28a745; /* A pleasant green */
    margin-bottom: 1.5rem;
}
/* --- Individual Product Page --- */
.product-page-content {
    padding: 4rem 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.main-product-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.product-thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.product-thumbnails .thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-thumbnails .thumbnail:hover,
.product-thumbnails .thumbnail.active {
    border-color: var(--primary-color-start);
}

.product-purchase-info h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color-end);
}

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

.product-purchase-info .short-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.key-features {
    list-style: '✓';
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.key-features li {
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-purchase-info .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
}

.product-long-description h2,
.product-specs h2 {
    font-size: 2rem;
    color: var(--primary-color-end);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--secondary-color);
}

.specs-table tr td:first-child {
    font-weight: 600;
    width: 30%;
}

/* Responsive adjustments for product page */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
    .product-purchase-info h1 {
        font-size: 2rem;
    }
}
/* --- Search Icon in Header --- */
.search-icon-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-icon {
    width: 24px;
    height: 24px;
    stroke: var(--text-color-dark);
    transition: stroke 0.3s ease;
}

.search-icon-wrapper:hover .search-icon {
    stroke: var(--primary-color-start);
}

/* --- Search Page Styling --- */
.search-page-container {
    padding-top: 2rem;
}