/* Product Page Styles */

/* Search and Filter Section */
.search-filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 25px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #dee2e6;
    text-align: center;
}

.search-filter-section .input-group-lg {
    max-width: 600px;
    margin: 0 auto;
}

.search-filter-section .input-group-text {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: 1px solid #007bff;
    font-size: 1.1rem;
    padding: 15px 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: none;
}

.search-filter-section .form-control {
    border: 1px solid #ced4da;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    padding: 15px 20px;
    height: 100%;
    border-left: none;
}

.search-filter-section .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.search-filter-section .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* Brand Filter Dropdown */
.brand-filter-container {
    position: relative;
    width: 100%;
}

.brand-filter-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #495057;
    min-height: 38px;
    user-select: none;
}

.brand-filter-button:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.brand-filter-button i:first-child {
    margin-right: 8px;
    color: #6c757d;
}

.brand-filter-button i:last-child {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.brand-filter-button.active i:last-child {
    transform: rotate(180deg);
}

.brand-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 9999;
    max-height: 200px;
    overflow-y: auto;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.brand-dropdown.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.brand-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
    user-select: none;
}

.brand-option:last-child {
    border-bottom: none;
}

.brand-option:hover {
    background-color: #f8f9fa;
}

.brand-option.active {
    background-color: #007bff;
    color: white;
}

.brand-option.active:hover {
    background-color: #0056b3;
}

/* Product Cards */
.news-block-one .inner-box {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f1f3f4;
}

.news-block-one .inner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.news-block-one .image-box {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-block-one .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-block-one .inner-box:hover .image-box img {
    transform: scale(1.05);
}

.news-block-one .lower-content {
    padding: 25px;
}

.news-block-one h3 a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-block-one h3 a:hover {
    color: #007bff;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Product Tags */
.product-tags {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
    text-decoration: none;
}

.tag-info {
    background: #17a2b8;
    color: white;
}

.tag-secondary {
    background: #6c757d;
    color: white;
}

.tag-light {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.tag-success {
    background: #28a745;
    color: white;
}

.tag-danger {
    background: #dc3545;
    color: white;
}

/* Statistics Cards */
.product-stats-section {
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.stat-icon {
    margin-bottom: 15px;
}

.stat-icon i {
    font-size: 2.5rem;
    color: #007bff;
}

.stat-content h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Search Results Info */
.search-result-info {
    margin-bottom: 30px;
    text-align: center;
}

.search-result-info h4 {
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

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

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #999;
    margin-bottom: 10px;
}

.empty-state p {
    color: #ccc;
    margin-bottom: 20px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination li {
    margin: 0;
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    border-radius: 5px;
    padding: 8px 12px;
    color: #007bff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    font-size: 14px;
}

.pagination li a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,123,255,0.3);
}

.pagination li.current span {
    background: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: 600;
}

.pagination li.disabled span {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination li.disabled span:hover {
    background: #f8f9fa;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

.pagination-info {
    margin-top: 15px;
    text-align: center;
}

.pagination-info small {
    font-size: 13px;
    color: #6c757d;
}

.quick-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.quick-jump input {
    width: 60px;
    padding: 2px 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
}

.quick-jump button {
    padding: 2px 8px;
    font-size: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-filter-section {
        padding: 30px 20px;
    }
    
    .search-filter-section .input-group-lg {
        max-width: 100%;
    }
    
    .search-filter-section .input-group-text {
        font-size: 1rem;
        padding: 12px 15px;
        height: 100%;
    }
    
    .search-filter-section .form-control {
        font-size: 1rem;
        padding: 12px 15px;
        height: 100%;
    }
    
    .search-filter-section .btn {
        padding: 12px 20px;
        font-size: 1rem;
        height: 100%;
    }
    
    .news-block-one .lower-content {
        padding: 20px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-content h4 {
        font-size: 1.5rem;
    }
    
    .brand-filter-button {
        font-size: 13px;
        padding: 6px 10px;
        min-height: 36px;
    }
    
    .brand-dropdown {
        max-height: 150px;
    }
    
    .brand-option {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .pagination li a,
    .pagination li span {
        padding: 6px 10px;
        min-width: 35px;
        font-size: 13px;
    }
    
    .pagination {
        gap: 3px;
    }
}

@media (max-width: 576px) {
    .search-filter-section .row {
        flex-direction: column;
    }
    
    .search-filter-section .col-lg-6,
    .search-filter-section .col-lg-4,
    .search-filter-section .col-lg-2 {
        margin-bottom: 15px;
    }
}
