/* Product Card Styling */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    background: #fff;
    border-radius: 10px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    height: 250px;
    /* Fixed height for consistency */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills box without stretching */
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* Slide-out Cart Modal */
#cartModal .modal-dialog {
    position: fixed;
    margin: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 380px;
    max-width: 90%;
    height: 100vh;
    transform: translateX(100%);
    /* Start off-screen */
    transition: transform 0.3s ease-out;
}

#cartModal.show .modal-dialog {
    transform: translateX(0);
}

#cartModal .modal-content {
    height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

/* Floating Cart Button */
.fixed-cart-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1050;
    transition: transform 0.2s;
}

.fixed-cart-icon:hover {
    transform: scale(1.1);
}

.fixed-cart-icon i {
    font-size: 1.5rem;
    color: #333;
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
}

/* The Search Suggestions Box */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    display: none;
    /* Hidden by default */
    max-height: 300px;
    overflow-y: auto;
}

/* Individual Search Result Item */
.search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.search-item:hover {
    background-color: #f8f9fa;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.search-item-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.search-item-info span {
    font-size: 0.8rem;
    color: #28a745;
    /* Green for price */
}

.input-group-text {
    background-color: #f94f22;
    color: #fff;
}

/* Pagination */
.pagination .active a {
    z-index: 3;
    background-color: #f94f22 !important;
    border-color: #f94f22 !important;
    color: #fff !important;
}
.pagination a:hover {
    background-color: #f94f22 !important;
    color: #fff !important;
}

.page-link {
    color: #f94f22 !important;
}

.page-item.disabled .page-link {
    color: #6c757d !important;
}