@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.products-archive {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 0;
}

/* Archive Header */
.archive-header {
    background: #f8f9fa;
    color: #2d3748;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.archive-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    color: #1a202c;
}

.archive-header p {
    font-size: 1.2rem;
    color: #4a5568;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Global Search Bar */
.global-search-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 32px 0;
}

.search-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.global-search-input {
    width: 100%;
    padding: 40px 70px 40px 32px;
    border: 3px solid #9ca3af;
    border-radius: 16px;
    font-size: 1.4rem;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    font-weight: 500;
    min-height: 80px;
}

.global-search-input:focus {
    outline: none;
    border-color: #007cf0;
    box-shadow: 0 12px 40px rgba(0, 124, 240, 0.25);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 32px;
    height: 32px;
}

.search-icon svg {
    width: 32px;
    height: 32px;
}

/* Main Layout */
.archive-main {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* Filters Bar */
.filters-bar {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    gap: 40px;
    align-items: end;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
}

.custom-dropdown::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b7280;
    pointer-events: none;
    transition: all 0.3s ease;
}

.custom-dropdown:hover::after {
    border-top-color: #374151;
}

.filter-select {
    padding: 16px 40px 16px 20px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px;
    max-width: 240px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.filter-select:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.filter-select:focus {
    outline: none;
    border-color: #007cf0;
    box-shadow: 0 0 0 4px rgba(0, 124, 240, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* License Buttons */
.products-archive .license-buttons,
.license-buttons {
    display: flex !important;
    gap: 4px !important;
    background: #f8f9fa !important;
    padding: 6px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
}

.products-archive .license-btn,
.license-btn {
    padding: 12px 20px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    white-space: nowrap !important;
}

.products-archive .license-btn:hover,
.license-btn:hover {
    color: #2d3748 !important;
    background: rgba(45, 55, 72, 0.05) !important;
}

.products-archive .license-btn.active,
.license-btn.active {
    background: #2d3748 !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(45, 55, 72, 0.3) !important;
}

.products-archive .license-btn[data-license="free"].active,
.license-btn[data-license="free"].active {
    background: #10b981 !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3) !important;
}

.products-archive .license-btn[data-license="premium"].active,
.license-btn[data-license="premium"].active {
    background: #f59e0b !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3) !important;
}

/* Content Area */
.archive-content {
    min-height: 400px;
}

.gradient-text {
    background: linear-gradient(135deg, #007cf0 0%, #00dfd8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e0;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.pinterest-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .pinterest-btn {
    opacity: 1;
}

.product-actions {
    position: absolute;
    top: 50px;
    right: 10px;
    z-index: 15;
}

.favorite-btn-container {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .favorite-btn-container {
    opacity: 1;
}

.favorite-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn.login-required {
    opacity: 0.6;
    cursor: not-allowed;
}

.favorite-circle {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-info {
    display: none;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.desktop-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
}

.pagination-left {
    display: flex;
    gap: 12px;
}

.simple-nav-btn {
    padding: 12px 24px !important;
    background: #1a1a1a !important;
    color: white !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    border: none !important;
}

.simple-nav-btn:hover {
    background: #007cf0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 124, 240, 0.3) !important;
}

.page-selector-desktop {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f8f9fa !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
}

.page-selector-desktop .page-label {
    color: #6c757d !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.page-selector-desktop select {
    background: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    outline: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #495057 !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    min-width: 50px !important;
}

.page-selector-desktop .page-total {
    color: #6c757d !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Loading & Error States */
.loading-products, .error-products {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1.1rem;
}

.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products h3 {
    color: #1f2937;
    margin-bottom: 8px;
}

.no-products p {
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}