/* Grid System */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem auto;
    max-width: 1400px;
    padding: 0 1rem;
}

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

/* Layout Components */
.main-nav {
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.affiliate-tag {
    font-size: 0.8rem;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .main-nav .container {
        padding: 0.5rem 1rem;
    }

    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        margin-left: auto;
    }

    .menu-icon {
        font-size: 1.8rem;
        color: var(--primary-color);
    }

    .nav-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-container.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links.main-links,
    .nav-links.account-links {
        margin-bottom: 1rem;
    }

    .product-links {
        display: none;
        margin-top: 0.5rem;
        padding-left: 1rem;
    }

    .nav-link:hover + .product-links,
    .product-links:hover {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none;
    }

    .nav-container {
        display: flex !important;
    }

    .product-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        min-width: 200px;
    }

    .nav-links li {
        position: relative;
    }

    .nav-links li:hover .product-links {
        display: block;
    }
}

/* Footer Layout */
.main-footer {
    background-color: var(--secondary-color);
    padding: 4rem 0 2rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

/* FAQ Layout */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Content Box Layout */
.content-box {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Layout Adjustments */
@media screen and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
} 