/* Elementor Frontend Styles */

/* Elementor Widget Base Styles */
.wpgp-elementor-title {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.wpgp-elementor-message {
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    text-align: center;
    font-style: italic;
}

/* Category Filter Widget */
.wpgp-elementor-category-filter {
    margin-bottom: 30px;
}

.wpgp-elementor-category-filter .category-filter {
    margin-bottom: 0;
}

.wpgp-elementor-category-filter .wpgp-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpgp-elementor-category-filter .wpgp-category-list li {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.wpgp-elementor-category-filter .wpgp-category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.wpgp-elementor-category-filter .category-filter-link {
    display: inline-block;
    text-decoration: none;
    color: #495057;
    padding: 8px 0;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.wpgp-elementor-category-filter .category-filter-link:hover {
    color: #007cba;
    transform: translateX(5px);
}

.wpgp-elementor-category-filter .category-filter-link:before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #007cba;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wpgp-elementor-category-filter .category-filter-link:hover:before {
    opacity: 1;
}

.wpgp-elementor-category-filter .category-filter-link .count {
    color: #6c757d;
    font-size: 0.85em;
    font-weight: normal;
    margin-left: 8px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Price Filter Widget */
.wpgp-elementor-price-filter {
    margin-bottom: 30px;
}

.wpgp-elementor-price-filter .price-filter {
    margin-bottom: 0;
}

.wpgp-elementor-price-filter .price-range-slider {
    margin-bottom: 20px;
    position: relative;
    padding: 10px 0;
}

.wpgp-elementor-price-filter .price-range-slider input[type="range"] {
    width: 100%;
    margin: 15px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, #e9ecef 0%, #007cba 0%, #007cba 100%, #e9ecef 100%);
    outline: none;
    border-radius: 4px;
    cursor: pointer;
}

.wpgp-elementor-price-filter .price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #007cba;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.3);
    transition: all 0.3s ease;
}

.wpgp-elementor-price-filter .price-range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

.wpgp-elementor-price-filter .price-range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #007cba;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.3);
    transition: all 0.3s ease;
}

.wpgp-elementor-price-filter .price-range-slider input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

.wpgp-elementor-price-filter .price-display {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.2em;
    color: #495057;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.wpgp-elementor-price-filter .price-separator {
    margin: 0 10px;
    color: #6c757d;
}

.wpgp-elementor-price-filter .price-filter-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
}

.wpgp-elementor-price-filter .price-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.wpgp-elementor-price-filter .price-filter-btn:active {
    transform: translateY(0);
}

/* Product Grid Widget */
.wpgp-elementor-product-grid {
    margin-bottom: 30px;
}

.wpgp-elementor-product-grid .wpgp-product-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 0;
}

.wpgp-elementor-product-grid .wpgp-product-grid.columns-1 {
    grid-template-columns: 1fr;
}

.wpgp-elementor-product-grid .wpgp-product-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wpgp-elementor-product-grid .wpgp-product-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wpgp-elementor-product-grid .wpgp-product-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.wpgp-elementor-product-grid .wpgp-product-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.wpgp-elementor-product-grid .wpgp-product-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.wpgp-elementor-product-grid .wpgp-product-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.wpgp-elementor-product-grid .wpgp-product-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: #007cba;
}

.wpgp-elementor-product-grid .wpgp-product-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007cba, #005a87);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.wpgp-elementor-product-grid .wpgp-product-item:hover:before {
    transform: scaleX(1);
}

/* Layout Specific Styles */
.wpgp-elementor-product-grid .wpgp-product-grid.layout-list-layout {
    grid-template-columns: 1fr;
}

.wpgp-elementor-product-grid .wpgp-product-grid.layout-list-layout .wpgp-product-item {
    display: flex;
    align-items: center;
    padding: 20px;
}

.wpgp-elementor-product-grid .wpgp-product-grid.layout-masonry-layout {
    grid-auto-rows: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wpgp-elementor-product-grid .wpgp-product-grid.columns-5,
    .wpgp-elementor-product-grid .wpgp-product-grid.columns-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .wpgp-elementor-product-grid .wpgp-product-grid.columns-3,
    .wpgp-elementor-product-grid .wpgp-product-grid.columns-4,
    .wpgp-elementor-product-grid .wpgp-product-grid.columns-5,
    .wpgp-elementor-product-grid .wpgp-product-grid.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wpgp-elementor-product-grid .wpgp-product-grid {
        gap: 15px;
    }
    
    .wpgp-elementor-title {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    
    .wpgp-elementor-price-filter .price-filter-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wpgp-elementor-product-grid .wpgp-product-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .wpgp-elementor-title {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    
    .wpgp-elementor-category-filter .category-filter-link {
        padding: 6px 0;
    }
    
    .wpgp-elementor-price-filter .price-display {
        font-size: 1.1em;
        padding: 8px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpgp-elementor-category-filter,
.wpgp-elementor-price-filter,
.wpgp-elementor-product-grid {
    animation: fadeInUp 0.6s ease-out;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wpgp-elementor-title {
        color: #f8f9fa;
    }
    
    .wpgp-elementor-message {
        background-color: #343a40;
        border-color: #495057;
        color: #adb5bd;
    }
    
    .wpgp-elementor-category-filter .category-filter-link {
        color: #adb5bd;
    }
    
    .wpgp-elementor-category-filter .category-filter-link:hover {
        color: #007cba;
    }
    
    .wpgp-elementor-price-filter .price-display {
        background: #343a40;
        color: #f8f9fa;
    }
    
    .wpgp-elementor-product-grid .wpgp-product-item {
        background: #343a40;
        border-color: #495057;
    }
}
