/**
 * Affiliate Shop Pro - Component Styles
 */

/* Button Styles */
.btn-apply-price {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-apply-price:hover {
    background: var(--primary-dark);
}

.btn-reset-filters {
    width: 100%;
    padding: 10px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-reset-filters:hover {
    background: var(--gray-200);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    padding: 8px;
    background: none;
    border: none;
    color: var(--gray-700);
}

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

/* Filter Section Styles */
.filter-content {
    transition: max-height 0.3s ease;
}

.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Subcategory Chip Hover */
.subcategory-chip:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* Products Loading State */
#products-container {
    position: relative;
    min-height: 200px;
}

#products-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* No Results State */
.no-products-found {
    grid-column: 1 / -1;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    text-align: center;
}

/* Hero Section */
.hero-section {
    margin-bottom: var(--spacing-2xl);
}

.hero-slide {
    min-height: 300px;
}

@media (max-width: 768px) {
    .hero-slide {
        padding: var(--spacing-xl);
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-2xl);
    }
}

/* SEO Section */
.seo-section h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.seo-content p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .filters-sidebar,
    .products-toolbar,
    .pagination {
        display: none !important;
    }
    
    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Smooth Scrolling Preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid var(--gray-800);
    }
    
    .badge {
        border: 1px solid currentColor;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* Users can enable if needed */
}
