/* Custom styles for Green Nursery e-commerce site */

body {
    font-family: 'Arial', sans-serif;
}

.hero {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.featured-products .card {
    transition: transform 0.3s;
}

.featured-products .card:hover {
    transform: translateY(-5px);
}

.product-card {
    margin-bottom: 20px;
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.category-list .list-group-item {
    cursor: pointer;
}

.category-list .list-group-item.active {
    background-color: #198754;
    border-color: #198754;
}

.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.btn-remove {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-remove:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

#checkout-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

#order-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

.footer {
    margin-top: auto;
}

/* Carousel custom styles */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Search form positioning */
#search-form {
    position: relative;
}

/* Search suggestions styles */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-suggestion-item:hover {
    background-color: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* Price range slider styles */
.price-range-container {
    position: relative;
    margin-bottom: 20px;
}

.price-inputs {
    margin-bottom: 15px;
}

.price-inputs .row .col-6 {
    padding: 0 5px;
}

.price-range-slider {
    position: relative;
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 15px 0;
    cursor: pointer;
}

.price-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 8px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #198754;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.price-range-slider input[type="range"]#min-price::-webkit-slider-thumb {
    z-index: 1;
}

.price-range-slider input[type="range"]#max-price::-webkit-slider-thumb {
    z-index: 3;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.price-range-slider input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #198754;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.price-range-slider input[type="range"]#min-price::-moz-range-thumb {
    z-index: 1;
}

.price-range-slider input[type="range"]#max-price::-moz-range-thumb {
    z-index: 3;
}

.price-range-slider input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    z-index: 1;
}

.slider-range {
    position: absolute;
    height: 8px;
    background: linear-gradient(90deg, #198754, #20c997);
    border-radius: 4px;
    z-index: 2;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    margin-top: 10px;
}

.slider-container {
    position: relative;
    height: 8px;
}
