/* Search Page Styles */

body {
    font-family: 'Inter', sans-serif;
}

.search-container {
    text-align: center;
    padding: 4rem 0;
}

.search-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    position: relative;
}

.search-input {
    border-radius: 50px !important;
    padding: 1rem 2rem;
    padding-left: 4rem;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.search-input:focus {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #aaa;
}

#search-suggestions-dropdown {
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    margin-top: 10px;
}

.category-section,
.product-section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.category-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 0; /* Set height to 0 */
    padding-bottom: 50%; /* 50% of its width for a shorter aspect ratio */
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.category-card img {
    position: absolute; /* Position image absolutely within the card */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-overlay h3 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    text-align: center;
}

.product-card {
    border-radius: 16px; /* Updated border-radius */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.1);
}

.product-card .card-body {
    padding: 20px; /* Updated padding */
}

.product-card .card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Updated font-weight */
    font-size: 1.5rem; /* Updated font-size (24px) */
    letter-spacing: 0.5px; /* Added letter spacing */
    margin-bottom: 0.5rem; /* Added margin-bottom */
}

.product-card .card-text {
    font-size: 1.25rem; /* Updated font-size (20px) */
    font-weight: 700;
    color: #D4AF37; /* Updated accent color */
    margin-top: 0.5rem; /* Added margin-top */
    margin-bottom: 1rem; /* Added margin-bottom */
}

.product-card .btn {
    width: 100%; /* Full width button */
    border-radius: 16px; /* Updated border-radius */
    padding: 16px 18px; /* Updated padding */
    font-weight: 600;
    letter-spacing: 0.2px; /* Added letter spacing */
    transition: all 0.3s ease;
    background-color: #000; /* Default light theme background */
    color: #fff; /* Default light theme text color */
    border: 1px solid #000; /* Default light theme border */
}

.product-card .btn:hover {
    background-color: #333;
    border-color: #333;
}

.product-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card .btn:active {
    transform: scale(0.98); /* Active click effect */
}

.search-results-container {
    display: flex;
    gap: 2rem;
}

.filter-sidebar {
    flex: 0 0 280px;
    background-color: #fff;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
}

.filter-sidebar h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.price-range {
    display: flex;
    gap: 1rem;
}

.product-grid {
    flex: 1;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.category-card {
    animation: fadeIn 0.5s ease-in-out;
}

.product-card-image-wrapper {
    width: 100%;
    padding-bottom: 75%; /* 50% of current 75% */
    position: relative;
    overflow: hidden;
}

.product-card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-product-full-width .col {
    flex: 0 0 100%; /* Make it full width */
    max-width: 100%;
}

.single-product-full-width .product-card-image-wrapper {
    padding-bottom: 120%; /* Increase height a little more than 100% or 75% */
}

.trending-products-section .product-card-image-wrapper {
    padding-bottom: 37.5%; /* Half of 37.5% */
}
