/* ???????????????????????????????????????????????????????????????????????????
   FIRELAX - Premium Products List 2025
   Moderne Produktübersicht mit außergewöhnlichem Design
   ??????????????????????????????????????????????????????????????????????????? */

/* Page Layout */
.products-page-premium {
    min-height: calc(100vh - var(--header-height, 80px) - 300px);
    background: var(--light-50, #FAFBFC);
}

/* Hero Section for Category Pages */
.products-hero {
    background: linear-gradient(135deg, var(--dark-700, #1A1D21) 0%, var(--dark-800, #141619) 100%);
    padding: var(--space-12, 3rem) 0;
    margin-bottom: var(--space-8, 2rem);
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(245, 166, 35, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.products-hero-content {
    max-width: var(--container-max, 1440px);
    margin: 0 auto;
    padding: 0 var(--space-6, 1.5rem);
    position: relative;
    z-index: 1;
}

.products-hero-title {
    font-family: var(--font-family-display, 'Plus Jakarta Sans', sans-serif);
    font-size: var(--text-4xl, 2.25rem);
    font-weight: var(--font-bold, 700);
    color: var(--text-inverted, #FFFFFF);
    margin-bottom: var(--space-3, 0.75rem);
    letter-spacing: -0.02em;
}

.products-hero-subtitle {
    font-size: var(--text-lg, 1.125rem);
    color: var(--light-400, #CED4DB);
    max-width: 600px;
}

/* Filter Bar - Premium Redesign */
.premium-filter-bar {
    background: var(--light-50, #FAFBFC);
    border-bottom: 1px solid var(--light-200, #EEF1F4);
    padding: var(--space-4, 1rem) 0;
    position: sticky;
    top: var(--header-height, 80px);
    z-index: 90;
    transition: var(--transition-base, 250ms ease);
}

.premium-filter-bar.scrolled {
    background: rgba(250, 251, 252, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.06));
}

.filter-bar-container {
    max-width: var(--container-max, 1440px);
    margin: 0 auto;
    padding: 0 var(--space-6, 1.5rem);
}

.filter-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6, 1.5rem);
}

/* Filter Groups */
.filter-groups {
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
    background: white;
    border: 1px solid var(--light-300, #E2E6EB);
    border-radius: var(--radius-full, 9999px);
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-secondary, #5A6270);
    cursor: pointer;
    transition: var(--transition-base, 250ms ease);
}

.filter-chip:hover {
    border-color: var(--brand-gold, #F5A623);
    color: var(--brand-gold, #F5A623);
}

.filter-chip.active {
    background: var(--brand-gold, #F5A623);
    border-color: var(--brand-gold, #F5A623);
    color: white;
}

.filter-chip i {
    font-size: var(--text-xs, 0.75rem);
}

/* Filter Dropdown */
.filter-dropdown {
    position: relative;
}

.filter-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
    background: white;
    border: 1px solid var(--light-300, #E2E6EB);
    border-radius: var(--radius-lg, 0.75rem);
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--font-medium, 500);
    color: var(--text-primary, #1A1D21);
    cursor: pointer;
    transition: var(--transition-base, 250ms ease);
}

.filter-dropdown-btn:hover {
    border-color: var(--brand-gold, #F5A623);
}

.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: var(--space-2, 0.5rem);
    min-width: 200px;
    background: white;
    border: 1px solid var(--light-200, #EEF1F4);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: var(--shadow-xl, 0 16px 48px rgba(0, 0, 0, 0.16));
    padding: var(--space-2, 0.5rem);
    display: none;
    z-index: 100;
}

.filter-dropdown.open .filter-dropdown-menu {
    display: block;
}

.filter-dropdown-item {
    display: block;
    width: 100%;
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    border: none;
    background: transparent;
    text-align: left;
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-primary, #1A1D21);
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    transition: var(--transition-fast, 150ms ease);
}

.filter-dropdown-item:hover {
    background: var(--brand-gold-subtle, rgba(245, 166, 35, 0.08));
    color: var(--brand-gold, #F5A623);
}

/* View Toggle */
.view-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-1, 0.25rem);
    background: var(--light-100, #F5F7F9);
    border-radius: var(--radius-lg, 0.75rem);
    padding: 4px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-muted, #A0A8B3);
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    transition: var(--transition-fast, 150ms ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    color: var(--text-secondary, #5A6270);
}

.view-btn.active {
    background: white;
    color: var(--brand-gold, #F5A623);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.06));
}

/* Sort Dropdown */
.sort-dropdown {
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
}

.sort-label {
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-tertiary, #8B939F);
}

.sort-select {
    padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
    padding-right: var(--space-8, 2rem);
    background: white;
    border: 1px solid var(--light-300, #E2E6EB);
    border-radius: var(--radius-lg, 0.75rem);
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-primary, #1A1D21);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6270' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: var(--transition-base, 250ms ease);
}

.sort-select:focus {
    outline: none;
    border-color: var(--brand-gold, #F5A623);
    box-shadow: 0 0 0 3px var(--brand-gold-glow, rgba(245, 166, 35, 0.25));
}

/* Results Info */
.results-info {
    display: flex;
    align-items: center;
    gap: var(--space-4, 1rem);
    padding: var(--space-4, 1rem) 0;
}

.results-count {
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-secondary, #5A6270);
}

.results-count strong {
    color: var(--text-primary, #1A1D21);
    font-weight: var(--font-semibold, 600);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 0.5rem);
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-1, 0.25rem) var(--space-3, 0.75rem);
    background: var(--brand-gold-subtle, rgba(245, 166, 35, 0.08));
    border: 1px solid var(--brand-gold, #F5A623);
    border-radius: var(--radius-full, 9999px);
    font-size: var(--text-xs, 0.75rem);
    color: var(--brand-gold-dark, #D4850C);
}

.active-filter-tag button {
    width: 16px;
    height: 16px;
    border: none;
    background: var(--brand-gold, #F5A623);
    border-radius: var(--radius-full, 9999px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Products Container */
.products-container {
    max-width: var(--container-max, 1440px);
    margin: 0 auto;
    padding: var(--space-6, 1.5rem);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6, 1.5rem);
}

.products-grid.view-list {
    grid-template-columns: 1fr;
}

/* Premium Product Card */
.premium-product-card {
    background: white;
    border: 1px solid var(--light-200, #EEF1F4);
    border-radius: var(--radius-2xl, 1.5rem);
    overflow: hidden;
    transition: var(--transition-base, 250ms ease);
    position: relative;
}

.premium-product-card:hover {
    border-color: var(--light-300, #E2E6EB);
    box-shadow: var(--shadow-xl, 0 16px 48px rgba(0, 0, 0, 0.16));
    transform: translateY(-4px);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: var(--space-4, 1rem);
    left: var(--space-4, 1rem);
    display: flex;
    flex-direction: column;
    gap: var(--space-2, 0.5rem);
    z-index: 10;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1, 0.25rem);
    padding: var(--space-1, 0.25rem) var(--space-3, 0.75rem);
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--font-bold, 700);
    border-radius: var(--radius-full, 9999px);
}

.product-badge--sale {
    background: linear-gradient(135deg, var(--error, #EF4444) 0%, #DC2626 100%);
    color: white;
}

.product-badge--new {
    background: linear-gradient(135deg, var(--success, #22C55E) 0%, #16A34A 100%);
    color: white;
}

.product-badge--stock {
    background: var(--warning-light, #FEF3C7);
    color: #92400E;
}

/* Product Image */
.product-card-image {
    aspect-ratio: 1;
    padding: var(--space-6, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-50, #FAFBFC);
    position: relative;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.premium-product-card:hover .product-card-image img {
    transform: scale(1.05);
}

/* Quick Actions */
.product-quick-actions {
    position: absolute;
    bottom: var(--space-4, 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: var(--space-2, 0.5rem);
    opacity: 0;
    transition: var(--transition-base, 250ms ease);
}

.premium-product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quick-action-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: var(--radius-lg, 0.75rem);
    color: var(--text-secondary, #5A6270);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
    transition: var(--transition-fast, 150ms ease);
}

.quick-action-btn:hover {
    background: var(--brand-gold, #F5A623);
    color: white;
    transform: scale(1.1);
}

/* Product Content */
.product-card-content {
    padding: var(--space-5, 1.25rem);
}

.product-card-brand {
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--font-semibold, 600);
    color: var(--brand-gold, #F5A623);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1, 0.25rem);
}

.product-card-name {
    font-size: var(--text-base, 1rem);
    font-weight: var(--font-semibold, 600);
    color: var(--text-primary, #1A1D21);
    margin-bottom: var(--space-3, 0.75rem);
    line-height: var(--leading-snug, 1.375);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-card-name:hover {
    color: var(--brand-gold, #F5A623);
}

/* Product Price */
.product-card-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2, 0.5rem);
    margin-bottom: var(--space-4, 1rem);
}

.price-current {
    font-family: var(--font-family-display, 'Plus Jakarta Sans', sans-serif);
    font-size: var(--text-xl, 1.25rem);
    font-weight: var(--font-bold, 700);
    color: var(--text-primary, #1A1D21);
}

.price-original {
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-muted, #A0A8B3);
    text-decoration: line-through;
}

/* Add to Cart Button */
.btn-add-cart {
    width: 100%;
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    background: var(--dark-700, #1A1D21);
    border: none;
    border-radius: var(--radius-lg, 0.75rem);
    color: white;
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--font-semibold, 600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 0.5rem);
    transition: var(--transition-base, 250ms ease);
}

.btn-add-cart:hover {
    background: var(--brand-gold, #F5A623);
}

.btn-add-cart:disabled {
    background: var(--light-300, #E2E6EB);
    color: var(--text-muted, #A0A8B3);
    cursor: not-allowed;
}

/* Out of Stock */
.out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.out-of-stock-label {
    padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
    background: var(--text-muted, #A0A8B3);
    color: white;
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--font-semibold, 600);
    border-radius: var(--radius-full, 9999px);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--space-12, 3rem);
    padding: var(--space-6, 1.5rem) 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item .page-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--light-300, #E2E6EB);
    border-radius: var(--radius-lg, 0.75rem);
    color: var(--text-secondary, #5A6270);
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--font-medium, 500);
    text-decoration: none;
    transition: var(--transition-base, 250ms ease);
}

.page-item .page-link:hover {
    border-color: var(--brand-gold, #F5A623);
    color: var(--brand-gold, #F5A623);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--brand-gold, #F5A623) 0%, var(--brand-gold-dark, #D4850C) 100%);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-gold, 0 8px 32px rgba(245, 166, 35, 0.25));
}

.page-item.disabled .page-link {
    background: var(--light-100, #F5F7F9);
    color: var(--light-400, #CED4DB);
    cursor: not-allowed;
}

/* Empty State */
.products-empty {
    text-align: center;
    padding: var(--space-20, 5rem) var(--space-6, 1.5rem);
}

.products-empty-icon {
    width: 120px;
    height: 120px;
    background: var(--light-100, #F5F7F9);
    border-radius: var(--radius-full, 9999px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-8, 2rem);
}

.products-empty-icon i {
    font-size: 48px;
    color: var(--light-400, #CED4DB);
}

.products-empty h3 {
    font-family: var(--font-family-display, 'Plus Jakarta Sans', sans-serif);
    font-size: var(--text-2xl, 1.5rem);
    font-weight: var(--font-bold, 700);
    color: var(--text-primary, #1A1D21);
    margin-bottom: var(--space-3, 0.75rem);
}

.products-empty p {
    font-size: var(--text-base, 1rem);
    color: var(--text-secondary, #5A6270);
    margin-bottom: var(--space-6, 1.5rem);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: var(--space-8, 2rem) 0;
    }
    
    .products-hero-title {
        font-size: var(--text-3xl, 1.875rem);
    }
    
    .filter-bar-inner {
        flex-direction: column;
        gap: var(--space-4, 1rem);
    }
    
    .filter-groups {
        width: 100%;
        overflow-x: auto;
        padding-bottom: var(--space-2, 0.5rem);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4, 1rem);
    }
    
    .product-card-content {
        padding: var(--space-4, 1rem);
    }
    
    .product-card-name {
        font-size: var(--text-sm, 0.875rem);
    }
    
    .price-current {
        font-size: var(--text-lg, 1.125rem);
    }
}

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