/*--------------------------------------------------------------
	Common
--------------------------------------------------------------*/
html {
    overflow-y: scroll;
    overflow-x: hidden;
    -ms-overflow-style: scrollbar;
    font-size: 12px;
}

body {
    font-family: "Lexend",'Lora', serif;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

.container {
    overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.page-title {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.top-padded {
    margin-top: 200px;
    margin-bottom: 200px;
}

/* Dark pagination */
.pagination-dark .page-link {
    color: #000; /* Text color */
    background-color: #f8f9fa; /* Light background */
    border-color: #ddd;
}

.pagination-dark .page-link:hover {
    background-color: #e2e2e2;
}

.pagination-dark .page-item.active .page-link {
    background-color: #000; /* Active page background */
    color: #fff; /* Active page text */
    border-color: #000;
}

.pagination-dark .page-item.disabled .page-link {
    color: #999;
    pointer-events: none;
    background-color: #f8f9fa;
}

a.card {
    text-decoration: none;
}

.toast {
    opacity: 1 !important;
}

.product-search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.product-search-input {
    padding-right: 45px;
    border-radius: 25px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.product-search-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.product-search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Mobile specific styles */
@media (max-width: 991px) {
    .product-search-container {
        max-width: 100%;
        margin: 10px 0;
    }
}

/* Desktop specific */
@media (min-width: 992px) {
    .product-search-container {
        flex: 1;
        max-width: 500px;
    }
}

/* Search results dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 15px 15px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1050;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.search-loading {
    padding: 20px;
    text-align: center;
}
