/* Search Page Styles - Minimal & Elegant */
body {
    ffont-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    color: #444;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

/* Search page title header */
.search-header {
    text-align: center;
    margin: 3rem auto 4rem;
    padding: 0 2rem;
    max-width: 800px;
}

.search-title {
    ffont-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: #2a2a2a;
    letter-spacing: 0.5px;
    margin: 0 0 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.search-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: #8b5a2b;
    margin: 0.75rem auto 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0.5rem 0 0;
    font-weight: 400;
}

/* Light section background for subtle warmth */
.search-section {
    background: #faf7f4;
    padding: 3rem 0;
}



/* Close button */
.close-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    font-size: 1.4rem;
    color: #555;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    z-index: 1000;
}

.close-btn:hover {
    color: #2a2a2a;
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: scale(1.08);
}

/* Responsive design */
@media (max-width: 768px) {
    .search-header {
        margin: 2rem auto 3rem;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .product-card img {
        height: 280px;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .search-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .product-card img {
        height: 260px;
    }
    
    .close-btn {
        top: 10px;
        right: 10px;
    }
}

/* Animation for page load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }

/* Enhanced Search Dropdown */
.search-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    z-index: 2000;
}

/* Open state */
.search-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-container {
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.search-container h3 {
    ffont-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2a2a2a;
}

.search-container form {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.search-container input[type="text"] {
    flex: 1;
    padding: 0.8rem 0;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    outline: none;
    background: transparent;
}

.search-container input[type="text"]:focus {
    border-color: #8b5a2b;
}

.search-container button {
    background: #8b5a2b;
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-container button:hover {
    background: #6d4524;
}