/* Advanced WooCommerce AJAX Shop Styles */

.awas-shop-container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.awas-shop-header {
    background: linear-gradient(135deg, #bb0000 0%, #bb0000 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.awas-shop-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.awas-shop-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.awas-shop-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 30px;
}

.awas-filters-sidebar {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.awas-filter-section {
    margin-bottom: 25px;
}

.awas-filter-section h3 {
    color: #bb0000;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #bb0000;
    padding-bottom: 8px;
}

.awas-filter-group {
    margin-bottom: 15px;
}

.awas-filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
}

.awas-filter-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.awas-filter-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Range Slider Styles */
.awas-range-slider-container {
    position: relative;
    margin: 15px 0;
}

.awas-range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.awas-dual-range {
    position: relative;
    height: 40px;
}

.awas-range-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.awas-range-slider::-webkit-slider-track {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
}

.awas-range-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    border: none;
}

.awas-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.awas-range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: none;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.awas-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.5);
}

.awas-range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.5);
}

.awas-range-track {
    position: absolute;
    top: 17px;
    left: 0;
    right: 0;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    z-index: 1;
}

.awas-range-track::before {
    content: '';
    position: absolute;
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 3px;
    left: var(--left, 0%);
    right: var(--right, 0%);
    transition: all 0.3s ease;
}

.awas-reset-filters {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.awas-reset-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.awas-products-area {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.awas-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.awas-results-count {
    color: #7f8c8d;
    font-size: 14px;
}

.awas-sort-options select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.awas-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 100;
}

.awas-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: awas-spin 1s linear infinite;
}

@keyframes awas-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.awas-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.awas-product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.awas-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.awas-product-image {
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.awas-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.awas-product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: awas-shimmer 3s infinite;
}

@keyframes awas-shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.awas-product-info {
    padding: 20px;
}

.awas-product-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.awas-product-title a {
    color: inherit;
    text-decoration: none;
}

.awas-product-title a:hover {
    color: #bb0000;
}

.awas-product-manufacturer {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.awas-product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #bb0000;
    margin-bottom: 10px;
}

.awas-product-price .sale-price {
    color: #e74c3c;
    margin-right: 10px;
}

.awas-product-price .regular-price {
    color: #95a5a6;
    text-decoration: line-through;
    font-size: 1rem;
}

.awas-product-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #95a5a6;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.awas-add-to-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #bb0000, #d31313);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.awas-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
    color: white;
    text-decoration: none;
}

.awas-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.awas-pagination button {
    padding: 12px 18px;
    border: 2px solid #e9ecef;
    background: white;
    color: #2c3e50;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.awas-pagination button:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
}

.awas-pagination button.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.awas-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.awas-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    grid-column: 1/-1;
}

.awas-no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.awas-no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Custom Fields Display */
.awas-custom-fields {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.awas-field {
    margin-bottom: 8px;
    font-size: 14px;
}

.awas-field:last-child {
    margin-bottom: 0;
}

/* Notification Styles */
.awas-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #bb0000, #2ecc71);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
    z-index: 1000;
    animation: awas-slideIn 0.3s ease;
}

@keyframes awas-slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .awas-shop-content {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .awas-shop-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .awas-filters-sidebar {
        position: static;
        order: 2;
    }

    .awas-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .awas-shop-header h1 {
        font-size: 2rem;
    }

    .awas-products-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .awas-range-values {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .awas-products-grid {
        grid-template-columns: 1fr;
    }

    .awas-pagination {
        gap: 5px;
    }

    .awas-pagination button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .awas-range-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }

    .awas-range-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }

    .awas-range-values {
        font-size: 13px;
    }

    .awas-shop-header {
        padding: 20px;
    }

    .awas-shop-header h1 {
        font-size: 1.8rem;
    }

    .awas-products-area {
        padding: 15px;
    }

    .awas-filters-sidebar {
        padding: 15px;
    }
}