/* Simple, fast-loading styles */
:root {
    --primary: #2563eb;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --background: #ffffff;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, system-ui, sans-serif;
    line-height: 1.5;
    color: var(--text);
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    background: var(--background);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 1.5rem;
}

.nav-links a:hover {
    color: var(--primary);
}

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

.product-card {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: auto;
}

.product-content {
    padding: 1rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 1rem;
}

.buy-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.buy-button:hover {
    opacity: 0.9;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category-card {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-2px);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-content {
    padding: 1.5rem;
}

.category-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.learn-more {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
}

.learn-more:hover {
    text-decoration: underline;
}

/* Info Section */
.info-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

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

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.info-item ul {
    list-style: none;
    padding: 0;
}

.info-item li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Intro Section */
.intro {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    background: #f8fafc;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-legal {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

.footer-copyright {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.legal-content h1 {
    margin-bottom: 1rem;
    color: var(--text);
}

.last-updated {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.legal-section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legal-section h2 {
    color: var(--text);
    margin: 2rem 0 1rem;
}

.legal-section h2:first-child {
    margin-top: 0;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.disclaimer-highlight {
    background: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.25rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

/* Enhanced Mobile Optimization */
@media (max-width: 768px) {
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile-optimized cards */
    .card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    /* Better spacing for mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Mobile-friendly alerts */
    .alert {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 6px;
    }
    
    /* Responsive text sizing */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Mobile navigation improvements */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px;
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Stack button groups on mobile */
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Mobile-optimized forms */
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    /* Better mobile tables */
    .table-responsive {
        border: none;
    }
}

/* Responsive Footer */
@media (max-width: 640px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-links a {
        padding: 8px 0;
        display: block;
        text-align: center;
    }
}

/* Accessibility improvements */
.btn:focus, .form-control:focus, .form-select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text);
    }
    
    .alert {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
