/* Desktop Grid Styles */
.product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
}

/* Row Styles */
/* Radzen DataGrid rows — keep transitions and hover effect */
.product-table tr,
.product-table .rz-grid-table tr,
.product-table .rz-row {
    transition: all 0.3s ease;
}

.product-table tr:hover,
.product-table .rz-grid-table tr:hover,
.product-table .rz-row:hover {
    background-color: rgba(27, 110, 194, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cell Styles */
::deep .rz-grid-cell {
    padding: 0.75rem !important;
    vertical-align: middle !important;
}

.column-header {
    text-align: center;
    font-weight: 600;
    color: #333;
}

/* Product Type Cell */

.product-type-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0;
    /* ensure the cell fills available width so absolute icon positions correctly */
    width: 100%;
    box-sizing: border-box;
    position: relative; /* make this the positioning context for the icon */
    padding-right: 44px; /* reserve space for the icon */
}

.product-name {
    flex: 1;
}

/* Details Icon */
.details-icon-wrapper {
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    pointer-events: none; /* don't block row clicks */
}

/* Show the icon when the row is hovered — cover a few Radzen row class variations */
.product-table tr:hover .details-icon-wrapper,
.product-table .rz-grid-table tr.rz-master-row:hover .details-icon-wrapper,
.product-table .rz-row:hover .details-icon-wrapper {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.details-icon {
    color: #1b6ec2;
    font-size: 1.1rem;
}

/* Image Styles */
.image-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cell Content */
.cell-content {
    text-align: center;
}

/* Mobile Card Styles */
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.product-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.product-card-content {
    padding: 1rem;
}

.product-card-content h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.product-card-content p {
    margin: 0.5rem 0;
    color: #666;
}

.industry-grid {
    display: flex;
    flex-direction: column; /* This is the key: it stacks items vertically */
    align-items: center; /* This centers the items horizontally in the column */
    gap: 2.5rem; /* This adds vertical space between the items */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.industry-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 400px; /* Optional: Constrains the width on very large screens */
}

    .industry-item h3 {
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

.industry-image {
    max-width: 100%;
    width: 300px; /* Setting a consistent width */
    height: auto;
    object-fit: contain;
}

.product-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}