/* 
 * Products Page Specific Styles
 */

/* ======== Page Banner ======== */
.page-banner {
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    color: #fff;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

/* ======== Products Layout ======== */
.products-section {
    padding: 4rem 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* ======== Filters Sidebar ======== */
.product-filters {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.filter-group h4 {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mid-neutral);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 0.5rem;
}

.filter-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-list input[type="checkbox"] {
    margin-right: 0.5rem;
}

.filter-list .active a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ======== Products Container ======== */
.products-container {
    display: flex;
    flex-direction: column;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-count {
    font-weight: 600;
}

.sort-options {
    display: flex;
    align-items: center;
}

.sort-options label {
    margin-right: 0.5rem;
}

.sort-options select {
    padding: 0.5rem;
    border: 1px solid var(--mid-neutral);
    border-radius: var(--border-radius);
}

/* ======== Products Grid ======== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

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

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

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-image:hover .product-actions {
    transform: translateY(0);
}

.quick-view {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.quick-view:hover {
    color: var(--secondary-color);
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    color: var(--complementary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: 0.5rem;
}

.product-title {
    margin-bottom: 0.75rem;
}

.product-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background-color: var(--mid-neutral);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.product-card .product-actions {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
}

/* ======== No Products Found ======== */
.no-products {
    text-align: center;
    padding: 3rem 0;
}

.no-products i {
    color: var(--mid-neutral);
    margin-bottom: 1rem;
}

.no-products h3 {
    margin-bottom: 0.5rem;
}

.no-products p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* ======== Pagination ======== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.pagination-btn {
    background: none;
    border: 1px solid var(--mid-neutral);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

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

.pagination-numbers {
    display: flex;
    margin: 0 1rem;
}

.page-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem;
    border: 1px solid var(--mid-neutral);
    border-radius: var(--border-radius);
    background: none;
    cursor: pointer;
    transition: all 0.3s;
}

.page-number.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-number:hover:not(.active) {
    background-color: var(--mid-neutral);
}

/* ======== Quick View Modal ======== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--border-radius);
    position: relative;
    overflow: auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
}

.product-quick-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.product-quick-view .product-image {
    height: 100%;
}

.product-quick-view .product-details {
    padding: 2rem;
}

.product-quick-view h2 {
    margin-bottom: 0.5rem;
}

.product-quick-view .product-category {
    margin-bottom: 1rem;
}

.product-specs {
    margin: 1.5rem 0;
}

.product-specs h3, .product-features h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--mid-neutral);
}

.product-specs table td:first-child {
    font-weight: 600;
    width: 40%;
}

.product-features ul {
    padding-left: 1.5rem;
}

.product-features li {
    margin-bottom: 0.5rem;
}

.product-quick-view .product-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

/* ======== Responsive Styles ======== */
@media (max-width: 991px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .product-filters {
        order: 1;
    }
    
    .product-quick-view {
        grid-template-columns: 1fr;
    }
    
    .product-quick-view .product-image {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-options {
        margin-top: 1rem;
    }
}

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