/* Women's Page Styles */
* {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.women-container {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.women-container .container-fluid {
    max-width: 100%;
    width: 100%;
    padding: 0 30px;
}

@media (max-width: 768px) {
    .women-container .container-fluid {
        padding: 0 15px;
    }
}

/* Header Styles */
.page-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Main Content Row */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

/* Filters Sidebar */
#sidebarContainer {
    padding-left: 15px;
    padding-right: 15px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* Hardware acceleration */
}

.filters-sidebar {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    opacity: 1;
}

.filters-sidebar.hidden {
    transform: translateX(-100%);
    opacity: 0;
    position: absolute;
    left: -100%;
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.filters-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.form-check-input {
    margin-right: 0.75rem;
    transform: scale(1.1);
}

.form-check-label {
    font-size: 0.95rem;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Color Indicator */
.color-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    display: inline-block;
}

/* Price Range Filter */
.price-range-container {
    margin-bottom: 1rem;
}

.price-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.dual-range-slider {
    position: relative;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.dual-range-slider input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2c3e50;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2c3e50;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.dual-range-slider input[type="range"]::-webkit-slider-track {
    background: transparent;
    height: 6px;
    border-radius: 3px;
}

.dual-range-slider input[type="range"]::-moz-range-track {
    background: transparent;
    height: 6px;
    border-radius: 3px;
}

/* Ensure the minimum slider thumb is above the track */
.dual-range-slider input[type="range"]:first-child::-webkit-slider-thumb {
    z-index: 3;
}

.dual-range-slider input[type="range"]:first-child::-moz-range-thumb {
    z-index: 3;
}

/* Products Container */
#productsContainer {
    padding-left: 15px;
    padding-right: 15px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* Hardware acceleration */
}

/* Products Grid */
.products-grid {
    width: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* Hardware acceleration */
}

/* Layout transition animation */
.products-grid.transitioning {
    opacity: 0.8;
    transform: scale(0.98) translateZ(0);
}

.products-grid .row {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* Hardware acceleration */
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-info {
    font-size: 1rem;
    color: #6c757d;
}

.results-count {
    font-weight: 600;
    color: #2c3e50;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Filter Toggle Button */
#showFiltersBtn, #hideFiltersBtn {
    transition: all 0.3s ease;
    border: 2px solid #2c3e50;
    color: #2c3e50;
    background: transparent;
    font-weight: 500;
}

#showFiltersBtn:hover, #hideFiltersBtn:hover {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border-color: #2c3e50;
}

/* Sort Dropdown */
.sort-controls .form-select {
    border: 2px solid #2c3e50;
    color: #2c3e50;
    font-weight: 500;
    min-width: 200px;
}

.sort-controls .form-select:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* Product Cards */
.product-card {
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateZ(0); /* Hardware acceleration */
}

/* Smooth animation for product columns */
.col-lg-3 {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* Hardware acceleration */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Product Image */
.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* Overlay Buttons */
.product-overlay .btn {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid rgba(255,255,255,0.8) !important;
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
    min-width: auto !important;
    flex-shrink: 0 !important;
}

.product-overlay .btn:hover {
    background: white !important;
    color: #2c3e50 !important;
    border-color: white !important;
    transform: scale(1.1) !important;
}

.product-overlay .btn:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Product Info */
.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-brand {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-details {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-details span {
    font-size: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-stock {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-stock .text-success {
    color: #28a745 !important;
}

.product-stock .text-danger {
    color: #dc3545 !important;
}

/* Product Buttons */
.product-card .btn {
    margin-top: auto;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-card .btn-primary {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 2px solid #2c3e50;
    color: white;
}

.product-card .btn-primary:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-color: #2c3e50;
    transform: translateY(-2px);
}

.product-card .btn-primary:disabled {
    background: #6c757d;
    border-color: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.product-card .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    background: rgba(255,255,255,0.1);
}

.product-card .btn-outline-light:hover {
    background: white;
    color: #2c3e50;
    border-color: white;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.no-products i {
    color: #dee2e6;
}

.no-products h3 {
    color: #495057;
    margin-bottom: 1rem;
}

/* Mobile Filter Modal */
.modal-fullscreen .modal-body {
    padding: 1rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.modal-fullscreen .filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-fullscreen .filter-group:last-child {
    border-bottom: none;
}

/* Mobile Button Styling */
.modal-fullscreen .btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
    font-weight: 500;
}

.modal-fullscreen .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.modal-fullscreen .btn-primary {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 2px solid #2c3e50;
    color: white;
    font-weight: 500;
}

.modal-fullscreen .btn-primary:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-color: #2c3e50;
}

/* Mobile Filter Button */
.d-lg-none .btn-primary {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 2px solid #2c3e50;
    color: white;
    font-weight: 500;
}

.d-lg-none .btn-primary:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .filters-sidebar {
        margin-bottom: 2rem;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .sort-controls {
        justify-content: space-between;
    }
}

@media (max-width: 575.98px) {
    .page-title {
        font-size: 2rem;
    }
    
    .products-header {
        padding: 0.75rem;
    }
    
    .sort-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sort-controls .form-select {
        min-width: auto;
        width: 100%;
    }
}
