/* ========================================
   PRODUCTS ARCHIVE PAGE STYLES
   ======================================== */

/* Header */
.products-header {
    padding: 48px 0;
    text-align: center;
}

.products-header-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 48px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #bfdbfe;
}

.products-title {
    font-size: 42px;
    color: #1a1a1a;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
}

.products-subtitle {
    color: #4b5563;
    font-size: 18px;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* Products List */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px 0;
}

/* Product Item */
.product-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: row;
    position: relative;
}

.product-item:not(:has(.product-item-image)) {
    display: block;
}

.product-item:not(:has(.product-item-image)) .product-item-content {
    padding: 32px 40px;
}

.product-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    border-color: #bfdbfe;
}

.product-item:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.08) 0%, rgba(191, 219, 254, 0.15) 100%);
    pointer-events: none;
    z-index: 1;
}

.product-item-image {
    flex: 0 0 320px;
    overflow: hidden;
    background: #f9fafb;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-item-image img {
    transform: scale(1.05);
}

.product-item-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    height: 100%;
}

.product-item-icon {
    font-size: 64px;
    opacity: 0.3;
}

.product-item-content {
    flex: 1;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.product-item-info {
    flex: 1;
}

.product-item-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

.product-item-title {
    color: #1a1a1a;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
    margin: 0;
}

.product-item-price {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.product-item-meta {
    margin: 12px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.product-badge-config {
    background: #eff6ff;
    color: #2563eb;
}

.product-badge-language {
    background: #f0fdf4;
    color: #16a34a;
}

.product-badge-os {
    background: #fef3c7;
    color: #d97706;
}

.product-item-excerpt {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-item-action {
    margin-top: auto;
    padding-top: 16px;
    position: relative;
    z-index: 3;
}

.product-item-btn,
.product-item-btn:link,
.product-item-btn:visited,
.product-item-btn:active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb !important;
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    z-index: 4;
}

.product-item-btn:hover,
.product-item-btn:focus {
    background: #1d4ed8 !important;
    color: #fff !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Empty State */
.products-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.products-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.products-empty-title {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
}

.products-empty-text {
    color: #6b7280;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-item {
        flex-direction: column;
    }
    
    .product-item-image {
        flex: 0 0 200px;
        width: 100%;
    }
    
    .product-item-content {
        padding: 24px;
    }
    
    .product-item-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .product-item-title {
        font-size: 22px;
    }
    
    .product-item-price {
        align-self: flex-start;
    }
    
    .product-item:hover {
        transform: translateY(-4px);
    }
    
    .products-title {
        font-size: 32px;
    }
}