/* Modern Product Cards CSS */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card .product-image a {
    display: block;
    padding-top: 100%;
    position: relative;
}

.product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product__discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--web-primary, #0086ff);
    color: white;
}

.product-card .card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.product-rating .bi {
    font-size: 12px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--web-primary, #0086ff);
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.choice-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.choice-option {
    padding: 4px 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.choice-option:hover,
.choice-option.active {
    background: var(--web-primary, #0086ff);
    color: white;
    border-color: var(--web-primary, #0086ff);
}

.quantity-selector {
    margin-bottom: 12px;
}

.quantity-button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-whatsapp,
.btn-add-cart {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1fb855;
}

.btn-add-cart {
    background: var(--web-primary, #0086ff);
    color: white;
}

.btn-add-cart:hover {
    background: var(--web-primary-darker, #0070dd);
}

/* Responsive */
@media (max-width: 767px) {
    .product-title {
        font-size: 13px;
        min-height: 36px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .btn-whatsapp,
    .btn-add-cart {
        font-size: 11px;
        padding: 6px 8px;
    }
}

/* Sidebar Styles */
.SearchParameters {
    position: relative;
}

.cz-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cz-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.filter-on-product-filter-change,
.product-list-filter-on-viewpage {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Category List */
.for-hover-label {
    cursor: pointer;
    transition: color 0.3s;
}

.for-hover-label:hover {
    color: var(--web-primary, #0086ff);
}

.menu--caret-accordion .card-header {
    padding: 8px 0;
    background: transparent;
    border: none;
}

/* Brand List */
.brand {
    list-style: none;
    padding: 0;
}

.brand li {
    padding: 8px 0;
    transition: color 0.3s;
}

.brand li:hover {
    color: var(--web-primary, #0086ff);
}

.__brands-cate-badge span {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Search Input in Sidebar */
.input-group-overlay {
    position: relative;
}

.input-group-append-overlay {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Products Header */
.search-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
}

.sorting-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Filter Button */
.filter-show-btn {
    display: none;
}

@media (max-width: 991px) {
    .filter-show-btn {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .SearchParameters {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s;
        background: white;
        width: 280px;
        overflow-y: auto;
    }
    
    .SearchParameters.show {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1049;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}
