@import url("https://fonts.googleapis.com/css2?family=BBH+Bartle&family=Battambang:wght@100;300;400;700;900&family=Borel&family=Bungee+Spice&family=Bungee+Tint&family=Caprasimo&family=Cascadia+Code:ital,wght@0,200..700;1,200..700&family=Content:wght@400;700&family=Edu+NSW+ACT+Hand+Pre:wght@400..700&family=Fasthand&family=Fjalla+One&family=Hanuman:wght@100..900&family=Kantumruy+Pro:ital,wght@0,100..700;1,100..700&family=Kaushan+Script&family=Konkhmer+Sleokchher&family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&family=Metal&family=Monoton&family=Oswald:wght@200..700&family=Playwrite+RO:wght@100..400&family=Rubik+Distressed&family=Shadows+Into+Light&family=Slabo+27px&display=swap");
body {
    background-color: #f8f9fa;
    color: #212529;
}

.textCollection {
    font-size: 40px;
    /* font-family: "Lobster Two", sans-serif; */
    font-weight: 700;
    /* font-style: italic; */
}

body.dark {
    background-color: #121212;
    color: #f1f1f1;
}

.searchLayout {
    width: 95%;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin: 50px auto;
    border-radius: 30px;
}
.sticky-search {
    position: sticky;
    top: 60px;
    z-index: 999;
    padding: 16px;
    border-radius: 12px;
}

.searchLayout input.form-control {
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 8px 12px;
    border-radius: 5px;
}

.searchLayout input.form-control:focus {
    border: 1px solid rgba(175, 5, 121, 0.677);
    box-shadow: none;
    outline: none;
}

.dropdownRow {
    display: flex;
    gap: 15px;
}

.formSelect select {
    width: 150px;
    border-radius: 5px;
}

body.dark .searchLayout {
    background-color: #072a5d5e;
}

body.dark .searchLayout input.form-control {
    background-color: #1e1e1e;
    color: #fff;
    border-color: #444;
}

body.dark .searchLayout input.form-control::placeholder {
    color: #aaa;
}

body.dark .formSelect select {
    background-color: #1e1e1e;
    color: #fff;
    border-color: #444;
}

/* Product Card Enhancements */
.hover-card {
    transition: all 0.3s ease;
    border: 1px solid #eee !important;
    background: #fff;
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: transparent !important;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-wrapper img {
    transition: transform 0.5s ease;
    max-height: 200px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Helps if images have white bg */
}

.hover-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-action-overlay {
    position: absolute;
    bottom: -60px; /* Hidden initially */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    transition: bottom 0.3s ease;
    backdrop-filter: blur(2px);
}

.hover-card:hover .card-action-overlay {
    bottom: 0;
}

.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: none;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #333;
    text-decoration: none;
}

.btn-action:hover {
    background: var(--primary); /* Main Blue */
    color: white;
}

.product-category {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    display: block;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* height: 2.8em;  Removed fixed height to reduce space */
    line-height: 1.3em;
}

.product-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* height: 2.8em; Removed fixed height to reduce space */
    line-height: 1.3em;
    font-weight: 300;
}

.product-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
}
