/* Search Suggestions Styles */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.search-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.search-suggestion-item:hover {
    background-color: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item .suggestion-highlight {
    font-weight: bold;
    color: #007bff;
}

.search-results-summary {
    margin-top: 10px;
}

.search-results-summary .alert {
    margin-bottom: 0;
    padding: 10px 15px;
}

/* Price Slider Container */
.price-slider-container {
    margin-bottom: 15px;
}

.price-range-display {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.price-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.price-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #007bff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Price Inputs */
.price-inputs {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-icon {
    position: absolute;
    left: 12px;
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
}

.price-input {
    width: 100%;
    padding: 10px 10px 10px 30px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background: #ffffff;
    transition: all 0.3s ease;
    text-align: center;
}

.price-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.price-input:hover {
    border-color: #007bff;
}

/* Enhanced Slider Styles */
#slider-range {
    margin: 20px 0 15px 0;
}

.ui-slider-horizontal {
    height: 8px;
    background: linear-gradient(to right, #e9ecef 0%, #007bff 50%, #e9ecef 100%);
    border: none;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.ui-slider-range {
    background: linear-gradient(to right, #007bff, #0056b3);
    height: 8px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,123,255,0.3);
}

.ui-slider-handle {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: 3px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    top: -7px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.ui-slider-handle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.ui-slider-handle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

/* Filter Button Styles */
#apply-price-filter {
    width: 100%;
    padding: 10px 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#apply-price-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#apply-price-filter:active {
    transform: translateY(0);
}

/* Product Search Wrapper */
.product-search-wrapper {
    margin-bottom: 20px;
}

.product-search-wrapper .input-group {
    position: relative;
}

.product-search-wrapper .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.product-search-wrapper .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.product-search-wrapper .btn {
    border-radius: 8px;
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .price-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-input-group {
        width: 100%;
    }
    
    .ui-slider-handle {
        width: 20px;
        height: 20px;
    }
    
    .price-value {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .price-range-display {
        padding: 8px;
        margin: 10px 0;
    }
    
    .price-label {
        font-size: 11px;
    }
    
    .price-value {
        font-size: 13px;
    }
    
    #apply-price-filter {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, #a8518a, #8a4a7a);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 18px;
}

.modal-body {
    padding: 30px 25px;
    position: relative;
}

/* Custom Close Button */
.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #a8518a;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-close-modal:hover {
    background-color: #f8f9fa;
    color: #8a4a7a;
    transform: scale(1.1);
}

.btn-close-modal:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 81, 138, 0.2);
}

.modal-body .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-body .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-body .form-control:focus {
    border-color: #a8518a;
    box-shadow: 0 0 0 3px rgba(168, 81, 138, 0.1);
    outline: none;
}

.modal-body .btn {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.modal-body .btn-primary {
    background: linear-gradient(135deg, #a8518a, #8a4a7a);
    box-shadow: 0 4px 15px rgba(168, 81, 138, 0.3);
}

.modal-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 81, 138, 0.4);
    background: linear-gradient(135deg, #8a4a7a, #a8518a);
}

.modal-body .btn-primary:active {
    transform: translateY(0);
}

.modal-body .d-grid {
    margin-top: 25px;
}

.modal-body .text-center {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.modal-body .text-center p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 14px;
}

.modal-body .text-center a {
    color: #a8518a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal-body .text-center a:hover {
    color: #8a4a7a;
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert .btn-close {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Responsive Modal */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header .modal-title {
        font-size: 16px;
    }
    
    .modal-body .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .modal-body .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Products Page Wishlist Heart Icons */
.add-to-wishlist .ion-android-favorite {
    color: #a8518a !important;
}

.add-to-wishlist .ion-android-favorite-outline {
    color: #888 !important;
}

.add-to-wishlist:hover .ion-android-favorite-outline {
    color: #a8518a !important;
}

.add-to-wishlist:hover .ion-android-favorite {
    color: #8a4a7a !important;
}

/* Header highlighted heart */
.wishlist-btn.wishlist-active .ion-android-favorite-outline {
    color: #a8518a !important;
}

.minicart-sidemenu {
    position: fixed;
    top: 0; right: 0;
    width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.08);
    z-index: 9999;
    overflow-y: auto;
    padding: 24px 16px 16px 16px;
    display: none;
}
.minicart-list { list-style: none; padding: 0; margin: 0 0 16px 0; }
.minicart-item { display: flex; align-items: center; margin-bottom: 12px; }
.minicart-item img { border-radius: 6px; margin-right: 10px; }
.minicart-details { flex: 1; }
.minicart-summary { border-top: 1px solid #eee; padding-top: 12px; }
.minicart-empty { text-align: center; color: #888; padding: 40px 0; }

/* Product image hover effect: show secondary image on hover */
/* .product-img {
    position: relative;
}
.product-img .primary-img {
    display: block;
    transition: opacity 0.3s;
}
.product-img .secondary-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    display: block;
} */
/* .product-img:hover .primary-img {
    opacity: 0;
}
.product-img:hover .secondary-img {
    opacity: 1;
} */
