/* Products Page Specific Styles */

/* Products Hero */
.products-hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-white);
    text-align: center;
}

.products-hero-content h1 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.products-hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Products Toolbar */
.products-toolbar {
    background: var(--bg-white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.toolbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.search-box {
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.wholesale-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.875rem;
}

.notice-icon {
    font-size: 1.25rem;
}

.wholesale-notice a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Product Filters */
.product-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-white);
}

/* Product Categories */
.product-category {
    margin-bottom: 5rem;
}

.category-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.category-desc {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.subcategory-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 3rem 0 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

/* Full Product Grid (for featured/complete systems) */
.products-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.product-item {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image-large {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8eef3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.product-details {
    padding: 2rem;
}

.product-brand {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-specs {
    list-style: none;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.product-specs li {
    color: var(--text-light);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
}

.product-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    margin-top: 2rem;
}

.price-main {
    display: flex;
    flex-direction: column;
}

.price-main .price-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.price-main .price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: var(--font-display);
}

.btn-product-full {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--text-white);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-product-full:hover {
    background: #ff5522;
    transform: translateY(-2px);
}

/* Compact Product Grid */
.products-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-item-compact {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-item-compact:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.compact-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.compact-image.commercial-icon {
    color: var(--accent-secondary);
}

.compact-image svg {
    width: 100%;
    height: 100%;
}

.product-item-compact h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.compact-brand {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 0.5rem;
}

.compact-spec {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1rem;
    min-height: 2.5rem;
}

.compact-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.btn-compact {
    width: 100%;
    padding: 0.625rem;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    margin-top: auto;
}

.btn-compact:hover {
    background: var(--accent-color);
    color: var(--text-white);
}

/* Component List */
.component-list {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.component-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.component-item:last-child {
    border-bottom: none;
}

.component-item:hover {
    background: var(--bg-light);
}

.component-name {
    color: var(--text-dark);
    font-weight: 500;
}

.component-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.125rem;
    font-family: var(--font-display);
}

/* Products CTA */
.products-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 5rem 0;
    text-align: center;
    color: var(--text-white);
}

.cta-content h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid-full {
        grid-template-columns: 1fr;
    }

    .products-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .toolbar-content {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .product-filters {
        justify-content: center;
    }

    .products-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-specs {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

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