/* ===================================
   SEARCH PAGE STYLES - HOTOP
   =================================== */

/* Search Results Section */
.search-results-section {
    padding: 60px 0;
    min-height: 100vh;
}

/* Search Header */
.search-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.search-count {
    font-size: 18px;
    color: #666;
}

.search-count span {
    font-weight: 600;
    color: #FF1493;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.filter-select {
    padding: 10px 15px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-select:hover {
    border-color: #FF1493;
}

.filter-select:focus {
    border-color: #FF1493;
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 65%; /* Aspect ratio similar to the image */
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Wishlist Button */
.wishlist-btn {
    display: none;
}

/* Product Title */
.product-title {
    position: absolute;
    bottom: 10px;
    left: 24px;
    right: 24px;
    height: 30px;
    padding: 0 10px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    line-height: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Product Info - Hidden */
.product-info {
    display: none;
}

.product-description {
    display: none;
}

/* Product Footer */
.product-footer {
    display: none;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #FF1493;
}

.add-to-cart-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    min-width: 45px;
    height: 45px;
    padding: 10px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #FF1493;
    background: #FF1493;
    color: white;
}

.pagination-btn.active {
    background: #FF1493;
    border-color: #FF1493;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn img {
    width: 20px;
    height: 20px;
}

.pagination-dots {
    color: #999;
    font-size: 20px;
    padding: 0 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .search-title {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .filters-bar {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        flex: 1;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .search-results-section {
        padding: 40px 0;
    }

    .search-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search-title {
        font-size: 28px;
    }

    .search-count {
        font-size: 16px;
    }

    .products-grid {
        gap: 15px;
    }

    .product-title {
        font-size: 16px;
    }

    .product-description {
        font-size: 13px;
    }

    .product-price {
        font-size: 20px;
    }

    .add-to-cart-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .search-title {
        font-size: 24px;
    }

    .pagination {
        gap: 5px;
    }

    .pagination-btn {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .pagination-btn.page:not(.active):not(:first-child):not(:last-child):not(:nth-last-child(2)) {
        display: none;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.empty-state-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.empty-state-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.empty-state-btn:hover {
    background: linear-gradient(135deg, #E6007E 0%, #FF1493 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.3);
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #FF1493;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    color: #666;
}
