/* Category filter alignment fixes - Simplified Checkbox Design */
.filter-items .filter-item {
    margin-bottom: 8px;
}

.filter-items .custom-control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 1.5rem;
    padding-left: 0;
    gap: 0;
    flex: 1;
    min-height: auto;
}

.filter-items .custom-control-input {
    width: 16px;
    height: 16px;
    margin: 0;
    margin-right: 8px;
    cursor: pointer;
    opacity: 1;
    position: relative;
    z-index: 1;
    accent-color: #cc9966;
}

.filter-items .custom-control-label {
    margin: 0;
    padding-left: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.filter-items .custom-control-label:hover {
    color: #333;
}

.filter-items .item-count {
    color: #999;
    font-size: 12px;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    margin-left: 10px;
    float: none;
}

/* Remove conflicting pseudo-elements */
.filter-items .custom-control-label::before,
.filter-items .custom-control-label::after {
    display: none;
}

/* Product Grid Layout Fixes */
.products .row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.products .row > [class*="col-"] {
    display: flex;
    padding: 10px;
}

.product {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.product-media {
    position: relative;
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.product-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.product-title {
    margin-bottom: 10px;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.product-title a:hover {
    color: #cc9966;
}

.product-price {
    margin-bottom: 10px;
    font-weight: 600;
    color: #cc9966;
    font-size: 16px;
}

.stock-info {
    margin-bottom: 10px;
    text-align: center;
}

.stock-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-status.in-stock {
    color: #28a745;
    font-weight: 500;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.stock-status.out-of-stock {
    color: #dc3545;
    font-weight: 500;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.product-action {
    margin-top: auto;
}

.btn-product {
    width: 100%;
    padding: 10px;
    background: #cc9966;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-product:hover {
    background: #b8875a;
    color: white;
    text-decoration: none;
}

.btn-product.disabled,
.btn-cart.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-cart.disabled:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.product-action-vertical {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product:hover .product-action-vertical {
    opacity: 1;
}

.btn-product-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.btn-product-icon:hover {
    background: #cc9966;
    color: white;
    text-decoration: none;
}

/* Filter Sidebar Alignment Fixes */
.sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
    margin-bottom: 30px;
}

.sidebar .widget {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding: 20px;
}

.sidebar .widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar .widget-clean {
    border-bottom: 2px solid #eee;
    margin-bottom: 0;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.widget-title a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.widget-title a:hover {
    color: #cc9966;
    text-decoration: none;
}

.widget-title a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.widget-title a[aria-expanded="false"]::after {
    transform: rotate(-90deg);
}

.filter-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin-bottom: 10px;
}

/* Price Range Slider */
.filter-price {
    padding: 10px 0;
}

.filter-price-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

#filter-price-range {
    font-weight: 600;
    color: #cc9966;
}

#price-slider {
    margin: 20px 0;
    height: 6px;
}

/* Rating Stars */
.ratings {
    display: inline-block;
    position: relative;
    font-size: 14px;
}

.ratings::before {
    content: '\2605\2605\2605\2605\2605';
    color: #ddd;
}

.ratings-val {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #ffc107;
}

.ratings-val::before {
    content: '\2605\2605\2605\2605\2605';
}

.ratings-text {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.quantity-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.product-list .product-image {
    height: 200px;
}

.product-list {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-list:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-7 {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-7:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.spinner-border {
    color: #cc9966;
}

.btn-layout.active {
    background-color: #cc9966;
    color: white;
}

.btn-layout {
    border: 1px solid #ddd;
    padding: 8px;
    margin-left: 5px;
    background: white;
}

.btn-layout:hover {
    background-color: #f8f9fa;
}

.toolbox {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.page-header {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .product-media {
        height: 200px;
    }
    
    .product-body {
        min-height: 160px;
        padding: 12px;
    }
    
    .product-title {
        height: 40px;
        font-size: 13px;
    }
    
    .sidebar .widget {
        padding: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .product-media {
        height: 220px;
    }
    
    .product-body {
        min-height: 170px;
    }
}

@media (min-width: 992px) {
    .product-media {
        height: 250px;
    }
    
    .product-body {
        min-height: 180px;
    }
}