/* ===============================
   Glacier Product Table Styles
   =============================== */

/* Category-specific styling */
.glacier-product-table.panel-cooler {
    background: #ffffff;
    border: 1px solid #ccc;
}

.glacier-product-table.industrial-chiller {
    background: #f9f9f9;
    border: 1px solid #999;
}

/* Base table styling */
.glacier-product-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-family: Arial, sans-serif;
    background: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    table-layout: auto;
}

/* Table header */
.glacier-product-table thead {
    background: #007bff;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 14px;
}

/* Table cells */
.glacier-product-table th,
.glacier-product-table td {
    padding: 12px !important;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
    max-width: 200px;
}

/* Hover effect */
.glacier-product-table tbody tr:hover {
    background: #f8f9fa;
    transition: background 0.3s ease-in-out;
}

/* Images inside table */
.glacier-product-table img {
    max-width: 50px;
    height: auto;
    border-radius: 4px;
}

/* Links */
.glacier-product-table a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.glacier-product-table a:hover {
    text-decoration: underline;
}

/* ===============================
   Responsive Design
   =============================== */
@media (max-width: 768px) {
    .glacier-product-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .glacier-product-table thead {
        display: none;
    }

    .glacier-product-table tbody tr {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px;
        margin-bottom: 15px;
    }

    .glacier-product-table td {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 8px !important;
        border-bottom: none;
        position: relative;
    }

    .glacier-product-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
    }
}