/* Search Results Page */
.search_results_page {
    padding: 40px 0 60px;
    background: #f8f9fa;
    min-height: 70vh;
}

.search_results_page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search Header */
.search_header {
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 2px solid #e9ecef;
}

.search_header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
    font-family: 'Exo 2', sans-serif;
}

.search_term {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

.search_term strong {
    color: #ff7a00;
    font-weight: 700;
}

/* Search Stats */
.search_stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.search_stats .count {
    color: #495057;
    font-size: 15px;
}

.search_stats .count strong {
    color: #1a1a2e;
    font-weight: 700;
}

.search_filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search_filters select {
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.search_filters select:hover {
    border-color: #ff7a00;
}

.search_filters select:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

/* Products Grid */
.search_results_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Product Card */
.search_item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: relative;
}

.search_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.search_item a {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* Product Image */
.product-image {
    position: relative;
    padding-top: 100%;
    background: #f8f9fa;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.5s ease;
}

.search_item:hover .product-image img {
    transform: scale(1.05);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff7a00;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge.new {
    background: #28a745;
}

.product-badge.sale {
    background: #dc3545;
}

/* Product Info */
.product-info {
    padding: 18px 20px 20px;
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    font-family: 'Exo 2', sans-serif;
}

.product-title:hover {
    color: #ff7a00;
}

.product-category {
    font-size: 13px;
    color: #6c757d;
    margin: 0 0 10px 0;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    font-family: 'Exo 2', sans-serif;
}

.product-price .old-price {
    font-size: 15px;
    font-weight: 400;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-price .discount {
    font-size: 13px;
    font-weight: 600;
    color: #dc3545;
    margin-left: 8px;
}

/* Quick Add to Cart */
.quick-add {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    transition: bottom 0.3s ease;
    display: flex;
    gap: 10px;
}

.search_item:hover .quick-add {
    bottom: 0;
}

.quick-add button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}

.quick-add .add-to-cart {
    background: #ff7a00;
    color: white;
}

.quick-add .add-to-cart:hover {
    background: #e66e00;
    transform: scale(1.02);
}

.quick-add .wishlist-btn {
    background: #f8f9fa;
    color: #6c757d;
    padding: 10px 15px;
}

.quick-add .wishlist-btn:hover {
    background: #e9ecef;
    color: #dc3545;
}

/* Empty State */
.search-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    max-width: 500px;
    margin: 40px auto;
}

.search-empty .empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.search-empty h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
    font-family: 'Exo 2', sans-serif;
}

.search-empty p {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 25px 0;
}

.search-empty .btn-primary {
    display: inline-block;
    padding: 12px 35px;
    background: #ff7a00;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}

.search-empty .btn-primary:hover {
    background: #e66e00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}

.pagination a:hover {
    background: #ff7a00;
    color: white;
}

.pagination .active {
    background: #ff7a00;
    color: white;
}

.pagination .dots {
    color: #6c757d;
    cursor: default;
}

/* Responsive */
@media (max-width: 992px) {
    .search_results_grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .search_results_page {
        padding: 20px 0 40px;
    }

    .search_header {
        padding: 20px 0;
        margin-bottom: 25px;
    }

    .search_header h1 {
        font-size: 24px;
    }

    .search_term {
        font-size: 14px;
    }

    .search_stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search_filters {
        width: 100%;
    }

    .search_filters select {
        width: 100%;
    }

    .search_results_grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-info {
        padding: 12px 15px 15px;
    }

    .product-title {
        font-size: 13px;
        min-height: 36px;
    }

    .product-price {
        font-size: 17px;
    }

    .quick-add {
        display: none;
    }

    .search-empty {
        padding: 40px 20px;
        margin: 20px auto;
    }

    .search-empty .empty-icon {
        font-size: 48px;
    }

    .search-empty h4 {
        font-size: 20px;
    }

    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search_results_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-info {
        padding: 10px 12px 12px;
    }

    .product-title {
        font-size: 12px;
        min-height: 32px;
        -webkit-line-clamp: 2;
    }

    .product-price {
        font-size: 15px;
    }

    .search_header h1 {
        font-size: 20px;
    }
}

/* Breadcrumb */
.search-breadcrumb {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.search-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.search-breadcrumb a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-breadcrumb a:hover {
    color: #ff7a00;
}

.search-breadcrumb .separator {
    color: #dee2e6;
}

.search-breadcrumb .current {
    color: #1a1a2e;
    font-weight: 500;
}

/* Loading Skeleton */
.search-loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
    padding-top: 100%;
    background: #e9ecef;
}

.skeleton-content {
    padding: 18px 20px 20px;
}

.skeleton-title {
    height: 20px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 80%;
}

.skeleton-price {
    height: 25px;
    background: #e9ecef;
    border-radius: 4px;
    width: 40%;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}