/* Product Archive */
.scdev-product-archive {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hide page title when using shortcode */
.page .entry-title,
.page h1.entry-title {
    display: none;
}

/* Banner */
.products-banner {
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.products-banner.has-image {
    background-size: cover;
    background-position: center;
}

.products-banner.has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.banner-icon {
    font-size: 80px;
    margin-bottom: 0;
    z-index: 1;
}

.banner-title {
    font-size: 48px;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 1;
    display: none;
}

/* Products Container */
.products-container {
    padding: 0 20px 40px;
    width: 100%;
}

/* Products Grid - 2 columns */
.scdev-product-archive .products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image-link {
    display: block;
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-size: 60px;
}

.product-card-content {
    padding: 10px;
}

.product-card-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.1;
}

.product-card-title a {
    color: #333;
    text-decoration: none;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 16px;
}

.product-card-title a:hover {
    color: #0073aa;
}

.product-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card-price {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
    flex-shrink: 0;
}

.btn-info {
    padding: 10px;
    background: #6c757d;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-info:hover {
    background: #5a6268;
    color: #fff !important;
}

.btn-add-to-cart-archive {
    flex: 1;
    padding: 10px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-to-cart-archive:hover {
    background: #0284c7;
}

/* No Products */
.no-products {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 10px;
}

/* Pagination */
.archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.archive-pagination .nav-links {
    display: flex;
    gap: 10px;
}

.archive-pagination a,
.archive-pagination .current {
    padding: 10px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.archive-pagination a:hover {
    background: #0073aa;
    color: #fff;
}

.archive-pagination .current {
    background: #0073aa;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .scdev-product-archive .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
