/* Products Page Styles */

.products-hero {
    background-color: #f5f5f7;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.search-container {
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
    padding: 0 var(--spacing-md);
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.search-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    pointer-events: none;
}

/* Product List Mode */
.product-list-container {
    max-width: var(--max-width);
    margin: var(--spacing-lg) auto;
    padding: 0 var(--spacing-md);
}

.product-list-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.product-list-item:hover {
    background-color: #fbfbfd;
    opacity: 1;
}

.product-image-wrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-right: var(--spacing-lg);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-image-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-info {
    flex-grow: 1;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.package-tag {
    background: #f5f5f7;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-right: 6px;
    display: inline-block;
}

.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-secondary);
    display: none;
}

@media (max-width: 640px) {
    .product-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-image-wrapper {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
        width: 100%;
        height: 200px;
    }
}
