/* main.css - Styles for the main page and multi-page layout */

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header Styles */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition-speed) ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 15px;
    transition: all var(--transition-speed) ease;
    position: relative;
    padding: 10px 15px;
    border-radius: 8px;
    display: block;
}

.main-nav a:hover,
.main-nav .active a {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
}

.main-nav .active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.main-nav a:hover::after,
.main-nav .active a::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 60px 0; /* Reduced padding from 80px to 60px */
    background-color: var(--bg-light);
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px; /* Limit container width */
    margin: 0 auto;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Styled Hero CTA */
.hero-cta {
    display: flex;
    gap: 20px;
}

/* Hero image adjustments */
.hero-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--card-radius);
    box-shadow: var(--box-shadow);
}

/* Smaller hero images */
.hero-image.small {
    width: 350px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.2);
    transition: all 0.5s ease;
}

.hero-image.small:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.3);
}

.hero-image.small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stylish Category Links */
.product-categories {
    margin-top: 30px;
}

.product-categories h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.category-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.1);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.category-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(67, 97, 238, 0.2);
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.category-link i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--primary-color);
    background-color: var(--primary-light);
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.category-link:hover i {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: white;
}

.category-link span {
    font-size: 1rem;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--bg-white);
    border-radius: var(--card-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Featured Products */
.featured-products {
    background-color: var(--bg-light);
}

.product-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-preview {
    background-color: var(--bg-white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
}

.product-preview:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.product-preview-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.product-preview:hover .product-preview-image img {
    transform: scale(1.05);
}

.product-preview h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 20px 10px 20px;
}

.product-preview p {
    color: var(--text-medium);
    margin: 0 20px 15px 20px;
    line-height: 1.6;
}

.text-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    margin: 0 20px 20px 20px;
    transition: all var(--transition-speed) ease;
}

.text-link i {
    font-size: 14px;
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}

.text-link:hover {
    color: var(--primary-dark);
}

.text-link:hover i {
    transform: translateX(3px);
}

.view-all-link {
    text-align: center;
    margin-top: 40px;
}

/* Manufacturers Section */
.manufacturer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.manufacturer-logo {
    filter: grayscale(1);
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
}

.manufacturer-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .primary-button {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-section .primary-button:hover {
    background-color: var(--bg-light);
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    flex: 0 0 300px;
}

.footer-logo h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-grow: 1;
    justify-content: space-around;
}

.footer-link-group h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: white;
}

.footer-link-group ul {
    list-style: none;
    padding: 0;
}

.footer-link-group li {
    margin-bottom: 12px;
}

.footer-link-group a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-link-group a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-image {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-info {
        flex: 0 0 auto;
    }
    
    .category-links {
        grid-template-columns: 1fr;
    }
    
    .hero-images {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image.small {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-speed) ease;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .primary-button, .secondary-button {
        width: 100%;
    }
    
    .benefit-card {
        padding: 20px;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .benefit-card h3 {
        font-size: 18px;
    }
    
    .hero-image.small {
        height: 200px;
    }
    
    .category-link {
        padding: 12px;
    }
    
    .category-link i {
        font-size: 20px;
        padding: 8px;
    }
}

/* Dark Mode */
.dark-mode .site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .hero-section {
    background-color: var(--bg-light);
}

.dark-mode .featured-products {
    background-color: var(--bg-light);
}

.dark-mode .benefit-card,
.dark-mode .product-preview {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.dark-mode .benefit-card:hover,
.dark-mode .product-preview:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
}

.dark-mode .site-footer {
    background-color: #0f172a;
}

.dark-mode .category-link {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.dark-mode .category-link:hover {
    background: rgba(93, 123, 255, 0.15);
    border-color: #5d7bff;
    color: #f8fafc;
}

.dark-mode .category-link i {
    background-color: rgba(93, 123, 255, 0.2);
    color: #5d7bff;
}

.dark-mode .category-link:hover i {
    background-color: #5d7bff;
    color: #1e293b;
}

.dark-mode .product-categories h2 {
    color: #f8fafc;
}

.language-selector {
    margin-left: 15px;
    position: relative;
}

.language-selector select {
    appearance: none;
    background-color: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 30px 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234b5563'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.language-selector select option {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

/* Mobile navigation toggle */
.nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

/* Dark mode styles */
.dark-mode .site-header {
    background-color: #1e293b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .logo h1 {
    color: #f8fafc;
}

.dark-mode .main-nav a {
    color: #cbd5e1;
}

.dark-mode .main-nav a:hover,
.dark-mode .main-nav .active a {
    color: #5d7bff;
    background-color: rgba(93, 123, 255, 0.1);
}

.dark-mode .main-nav .active a::after {
    background-color: #5d7bff;
}

.dark-mode .language-selector select {
    border-color: #334155;
    color: #cbd5e1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23cbd5e1'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.dark-mode .language-selector select:focus {
    border-color: #5d7bff;
    box-shadow: 0 0 0 3px rgba(93, 123, 255, 0.2);
}

.dark-mode .language-selector select option {
    background-color: #1e293b;
    color: #f8fafc;
}

.dark-mode .nav-toggle {
    color: #f8fafc;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .main-nav ul {
        gap: 5px;
    }
    
    .main-nav a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 99;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav a {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .dark-mode .main-nav {
        background-color: #1e293b;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 0;
    }
    
    .language-selector {
        order: -1;
        margin-right: auto;
        margin-left: 0;
    }
    
    .logo {
        order: 0;
        flex-grow: 1;
        text-align: center;
    }
    
    .nav-toggle {
        order: 1;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }
    
    .language-selector select {
        padding: 6px 25px 6px 10px;
        font-size: 13px;
    }
    
    .nav-toggle {
        font-size: 20px;
    }
}