/* SE Product Overview Styles */
.se-product-overview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.se-overview-container {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 30px;
    min-height: 600px;
}

/* Filters Column (1/5) */
.se-filters-column {
    /* background: #f8f9fa; */
    /* color: green; */
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
    height: fit-content;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.se-filters-header h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    /* color: #333; */
    border-bottom: 2px solid #5cb039;
    padding-bottom: 10px;
}

.se-filter-group {
    margin-bottom: 20px;
}

.se-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    /* color: #555; */
    font-size: 14px;
}

.se-search-input,
.se-category-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.se-search-input:focus,
.se-category-select:focus {
    outline: none;
    border-color: #007cba;
}

/* Custom Tags Multiselect */
.se-tags-multiselect {
    position: relative;
}

.se-tags-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.se-tags-input {
    width: 100%;
    padding: 10px 30px 10px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.se-tags-input:focus {
    outline: none;
    border-color: #007cba;
}

.se-tags-arrow {
    position: absolute;
    right: 10px;
    color: #666;
    font-size: 12px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.se-tags-input-wrapper.open .se-tags-arrow {
    transform: rotate(180deg);
}

.se-tags-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: black;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.se-tags-search {
    padding: 0 10px 10px 10px;
    /* border-bottom: 1px solid #e0e0e0; */
    margin-top: 1rem;
}

.se-tags-search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
}

.se-tags-options {
    max-height: 150px;
    overflow-y: auto;
}

.se-tag-option {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.se-tag-option:hover {
    background-color: #f0f0f0;
}

.se-tag-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.se-tag-option input[type="checkbox"] {
    margin-right: 8px;
    min-height: unset;
}

.se-tag-option label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
    flex: 1;
}

.se-selected-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.se-selected-tag {
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.se-selected-tag .remove {
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.se-selected-tag .remove:hover {
    color: #ff4444;
}

.se-filter-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #5cb039;
}

.se-reset-filters {
    width: 100%;
    padding: 10px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.se-reset-filters:hover {
    background: #555;
}

/* Products Column (4/5) */
.se-products-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Product Lines Filter */
.se-product-lines-filter {
    /* background: white; */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.se-product-lines-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.se-product-line-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.se-product-line-btn:hover {
    border-color: #5cb039;
    color: #5cb039;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.2);
}

.se-product-line-btn.active {
    background: #5cb039;
    color: white;
    border-color: #5cb039;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.se-product-line-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #999;
    border-color: #ddd;
}

.se-product-line-btn.disabled:hover {
    transform: translateY(0);
    box-shadow: none;
    border-color: #ddd;
    color: #999;
}

/* Products Grid */
.se-products-grid {
    /* background: white; */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.se-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    transition: opacity 0.3s ease;
}

.se-products-grid[data-columns="2"] .se-products-container {
    grid-template-columns: repeat(2, 1fr);
}

.se-products-grid[data-columns="3"] .se-products-container {
    grid-template-columns: repeat(3, 1fr);
}

.se-products-grid[data-columns="4"] .se-products-container {
    grid-template-columns: repeat(4, 1fr);
}

/* Loading State */
.se-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    min-height: 200px;
}

.se-loading.se-initial-loading {
    position: relative;
    min-height: 300px;
    background: transparent;
    display: flex;
}

.se-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #64a522;
    border-radius: 50%;
    animation: se-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes se-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.se-loading p {
    margin: 0;
    color: #666;
    font-size: 14px;
    text-align: center;
}

/* Product Card */
.se-product-card {
    /* background: white; */
    border-radius: 8px;
    overflow: hidden;
    border: 0.5px solid #959595 !important;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.se-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.se-product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.se-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f0f0f0;
    color: #666;
    font-size: 14px;
}

.se-product-content {
    padding: 15px;
}

.se-product-line {
    font-size: 12px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.se-product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.3;
    color: white;
}

.se-product-title a {
    /* color: #333; */
    text-decoration: none;
    transition: color 0.3s ease;
}

.se-product-title a:hover {
    color: #007cba;
}

.se-product-teaser {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.se-product-actions {
    margin-top: 15px;
    padding-top: 15px;
    /* border-top: 1px solid #e0e0e0; */
}

.se-product-link {
    display: inline-block;
    background: #5cb039;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.se-product-link:hover {
    background: #ffffff;
    color: black;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

/* Load More Button */
.se-load-more-container {
    text-align: center;
    padding: 30px 0;
}

.se-load-more-btn {
    display: inline-block;
    background: #5cb039;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.se-load-more-btn:hover {
    background: #ffffff;
    color: black;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.se-load-more-btn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* No Results */
.se-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.se-no-results p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Filtering Animation */
.se-filtering {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.se-filter-updating .se-products-container {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .se-overview-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .se-filters-column {
        position: static;
        order: 2;
    }
    
    .se-products-column {
        order: 1;
    }
    
    .se-product-lines-wrapper {
        justify-content: center;
    }
    
    .se-products-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .se-products-grid[data-columns="2"] .se-products-container,
    .se-products-grid[data-columns="3"] .se-products-container,
    .se-products-grid[data-columns="4"] .se-products-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .se-product-overview {
        padding: 15px;
    }
    
    .se-overview-container {
        gap: 15px;
    }
    
    .se-filters-column,
    .se-products-grid,
    .se-product-lines-filter {
        padding: 15px;
    }
    
    .se-products-container {
        grid-template-columns: 1fr;
    }
    
    .se-product-lines-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .se-product-line-btn {
        min-width: 120px;
        text-align: center;
    }
}

/* Smooth transitions for filter changes */
.se-product-card.se-filtering-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.se-product-card.se-filtering-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease 0.1s;
}

/* Enhanced hover effects */
.se-product-card {
    position: relative;
    overflow: hidden;
}

.se-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.se-product-card:hover::before {
    left: 100%;
}

/* Accessibility improvements */
.se-product-line-btn:focus,
.se-reset-filters:focus,
.se-search-input:focus,
.se-category-select:focus,
.se-tags-input:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.se-tag-option:focus {
    background-color: #e3f2fd;
}

/* Loading skeleton animation */
.se-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .se-product-card {
        border: 2px solid #000;
    }
    
    .se-product-line-btn {
        border-width: 3px;
    }
    
    .se-product-line-btn.active {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .se-product-card:hover {
        transform: none;
    }
    
    .se-product-line-btn:hover {
        transform: none;
    }
} 