/**
 * CyberX Product Blurb - Grid Layout CSS
 * This CSS transforms the product display into a grid layout matching the design
 */

 .cyberx-product-list {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.cyberx-product-item {
    display: flex;
    flex-direction: column;
    border: none;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cyberx-product-icon {
    margin-bottom: 15px;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 3px;
    background-color: #f0f5ff;
}

.cyberx-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.cyberx-product-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #000;
    text-align: left;
    line-height: 1.3;
    position: relative;
    z-index: 0; /* Lower than link z-index but still shows */
}

.cyberx-product-price {
    font-size: 16px;
    font-weight: normal;
    margin: 0;
    color: #4b6a9a;
    text-align: left;
    position: relative;
    z-index: 0; /* Lower than link z-index but still shows */
}

/* Make entire card clickable */
.cyberx-product-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Page title styling */
.woocommerce-products-header h1 {
    font-size: 45px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
}

/* Results count styling */
.woocommerce-result-count {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .cyberx-product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cyberx-product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cyberx-product-icon {
        height: 150px; /* Reduced for mobile */
    }
}

@media (max-width: 480px) {
    .cyberx-product-list {
        grid-template-columns: 1fr;
    }
}

/* Hover effect */
.cyberx-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}