/* Shop Filter Styles */

/* Filter Tag Styles */
.filter-tag {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    margin-left: 5px;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
}

.filter-tag button:hover {
    color: #ff0000;
}

/* Wishlist Button Styles */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 40px;
    z-index: 10;
}

.wishlist-btn a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wishlist-btn-active i {
    color: #ff0000;
}

.wishlist-btn-inactive i {
    color: #666;
}

.wishlist-btn a:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Loading State */
.loading-overlay {
    position: relative;
}

.loading-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
}

/* Filter Form Improvements */
.filter-sub-area label {
    cursor: pointer;
    margin-left: 8px;
    font-size: 14px;
    user-select: none;
}

.filter-sub-area input[type="radio"],
.filter-sub-area input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.price-checkbox li,
.size-checkbox li,
.availability-checkbox li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    list-style: none;
}

.price-checkbox ul,
.size-checkbox ul,
.availability-checkbox ul {
    padding-left: 0;
}

/* Product Short Improvements */
.product-short {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.product-short:first-child {
    margin-left: 0;
}

.product-short p {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* Active Filters */
.active-filters {
    margin: 15px 0;
}

/* Clear All Button */
.btn-clear-all {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 15px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-clear-all:hover {
    background-color: #c82333;
}

/* Shop Top Bar Improvements */
.shop-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.product-select-box {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .sidebar-categores-box {
        margin-bottom: 30px;
    }
    
    .filter-sub-area {
        margin-bottom: 20px;
    }
    
    .shop-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .toolbar-amount {
        text-align: center;
    }
    
    .product-select-box {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .product-short {
        margin-left: 0;
        justify-content: center;
    }
    
    .active-filters {
        margin: 10px 0 !important;
    }
    
    .filter-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .wishlist-btn {
        top: 5px;
        right: 35px;
    }
    
    .wishlist-btn a {
        width: 25px;
        height: 25px;
        line-height: 25px;
    }
}

/* Extra small devices */
@media (max-width: 575px) {
    .shop-top-bar {
        padding: 15px;
    }
    
    .sidebar-categores-box {
        padding: 15px;
    }
    
    .filter-sub-area h5 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .single-product-wrap {
        margin-bottom: 20px;
    }
}

/* Filter Animation */
.filter-sub-area {
    transition: all 0.3s ease;
}

.filter-sub-area:hover {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 5px;
    border-radius: 5px;
}

/* Nice Select Improvements */
.nice-select {
    min-width: 120px;
}

/* Pagination Improvements */
.paginatoin-area {
    margin-top: 40px;
}

.paginatoin-area p {
    color: #666;
    font-size: 14px;
}

/* Product Grid Improvements */
.single-product-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.single-product-wrap:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    transition: transform 0.3s ease;
}

.single-product-wrap:hover .product-image img {
    transform: scale(1.05);
}

/* Empty State */
.empty-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-products i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.empty-products h3 {
    margin-bottom: 15px;
    color: #333;
}

.empty-products p {
    margin-bottom: 20px;
}

.empty-products .btn {
    margin-top: 10px;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* Accessibility Improvements */
.filter-sub-area input:focus + label {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

button:focus,
select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sidebar-categores-box,
    .shop-top-bar,
    .paginatoin-area {
        display: none;
    }
    
    .single-product-wrap {
        break-inside: avoid;
    }
}

/* Modal styling improvements */
.modal-product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-details-left {
    padding: 20px;
}

.modal-body {
    padding: 30px;
}

.product-details-view-content {
    padding: 20px;
}

#modal-product-title {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

#modal-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

#modal-product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
}

/* Pagination improvements */
.pagination-box {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.pagination-box li {
    display: inline-block;
}

.pagination-box li a {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-box li a:hover,
.pagination-box li.active a {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-box li.active a {
    cursor: default;
}

/* Loading state for pagination */
.pagination-box.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Additional text styling */
.text-primary {
    color: #007bff !important;
    text-decoration: underline;
}

.text-primary:hover {
    color: #0056b3 !important;
}