/* HIPPO LABS ? PRODUCTS LISTING
   Scoped styles. Product data and interactions remain Blade-driven.
*/

.products-page {
    background: #f4f8fb;
    padding: 0 0 88px;
    color: #15324d;
}

.products-banner {
    position: relative;
    width: 100%;
    min-height: 245px;
    margin: 0;
    padding: 58px max(28px, calc((100% - 1160px) / 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(105deg, rgba(12, 43, 74, .96), rgba(0, 139, 155, .89)),
        url("../images/hippo-original/company-banner.jpg") center/cover no-repeat;
    border-radius: 0 0 32px 0;
}

.products-banner::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    right: 7%;
    top: -115px;
    pointer-events: none;
}

.products-banner .brand-label {
    width: fit-content;
    padding: 7px 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,.23);
    border-radius: 30px;
    background: rgba(255,255,255,.11);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.products-banner h1 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(30px, 3.3vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.3px;
}

.products-banner .breadcrumb-text {
    color: rgba(255,255,255,.85);
    font-size: 12px;
}

.products-banner .breadcrumb-text a {
    color: #fff;
    text-decoration: none;
}

.products-banner .breadcrumb-text a:hover {
    text-decoration: underline;
}

.products-toc,
.product-category-section,
.no-products {
    width: min(1160px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.products-toc {
    margin-top: 42px;
    margin-bottom: 35px;
    padding: 26px 30px;
    border: 1px solid #e1ebf1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16,49,78,.04);
}

.products-toc-title {
    margin-bottom: 17px;
    color: #102e4b;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .2px;
}

.products-toc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.products-toc-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 16px;
    border: 1px solid #d8e9ed;
    border-radius: 30px;
    background: #f3fafb;
    color: #116b7b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}

.products-toc-links a:hover,
.products-toc-links a:focus-visible {
    background: #008f9f;
    border-color: #008f9f;
    color: #fff;
    text-decoration: none;
}

.product-category-section {
    margin-bottom: 30px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e1ebf1;
    border-radius: 20px;
    box-shadow: 0 10px 34px rgba(16,49,78,.035);
    scroll-margin-top: 100px;
}

.category-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 21px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e6edf2;
}

.category-heading h2 {
    margin: 0;
    color: #102e4b;
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.5px;
}

.category-count {
    flex-shrink: 0;
    padding: 8px 13px;
    border-radius: 30px;
    background: #e8f7f8;
    color: #007e90;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
}

.category-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 15px;
    border: 1px solid #e2eaf0;
    border-radius: 16px;
    background: #fff;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.category-product-card:hover {
    transform: translateY(-4px);
    border-color: #9ad6dd;
    box-shadow: 0 16px 36px rgba(15,53,77,.09);
}

.product-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 235px;
    margin-bottom: 18px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #eef3f6;
    border-radius: 12px;
    background: #f7fafc;
    text-decoration: none;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s;
}

.category-product-card:hover .product-thumbnail {
    transform: scale(1.045);
}

.product-no-image {
    color: #8296a8;
    font-size: 13px;
    text-align: center;
}

.product-name {
    display: block;
    min-height: 50px;
    margin: 0 3px 16px;
    color: #12334f;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.product-name:hover {
    color: #008b9c;
}

.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 15px 3px 0;
    border-top: 1px solid #eaf0f3;
}

.view-product {
    display: inline-flex;
    align-items: center;
    color: #008b9c;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.view-product:hover {
    color: #0d3455;
}

.product-qr {
    width: 62px;
    height: 62px;
    padding: 5px;
    object-fit: contain;
    border: 1px solid #e3ebef;
    border-radius: 8px;
    background: #fff;
}

.qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    padding: 5px;
    border: 1px dashed #d7e3ea;
    border-radius: 8px;
    color: #94a3af;
    font-size: 10px;
    text-align: center;
}

.product-qr-download {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid #c9e7eb;
    border-radius: 8px;
    background: #f5fbfc;
    color: #087e8c;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.product-qr-download:hover {
    background: #008f9f;
    border-color: #008f9f;
    color: #fff;
}

.no-products {
    margin-top: 40px;
    padding: 65px 25px;
    border: 1px solid #e1ebf1;
    border-radius: 18px;
    background: #fff;
    color: #52697e;
    text-align: center;
}

.no-products h3 {
    color: #12334f;
    font-size: 23px;
    font-weight: 800;
}

@media (max-width: 991px) {
    .category-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .products-banner {
        min-height: 205px;
        padding: 42px 24px;
    }

    .products-toc,
    .product-category-section,
    .no-products {
        width: calc(100% - 28px);
    }

    .products-toc,
    .product-category-section {
        padding: 20px;
    }

    .category-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .product-image-link {
        height: 200px;
    }
}

@media (max-width: 520px) {
    .category-products {
        grid-template-columns: 1fr;
    }

    .product-image-link {
        height: 245px;
    }
}


/* Step 26: Product card visual refinements */

.hippo-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}

.hippo-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(15, 45, 72, .10);
}

.hippo-product-card img {
    max-width: 100%;
    object-fit: contain;
}

.hippo-product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    overflow: hidden;
}

.hippo-product-card__image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.hippo-product-card__footer {
    margin-top: auto;
}

@media (max-width: 767px) {
    .hippo-product-card__image {
        min-height: 190px;
    }

    .hippo-product-card__image img {
        height: 170px;
    }
}


/* ===== hippo-catalog-layout-v1 ===== */

.hippo-catalog-layout-v1 .hippo-catalog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 64px;
}

.hippo-catalog-layout-v1 .hippo-catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.hippo-catalog-layout-v1 .hippo-catalog-intro h2 {
    margin: 0 0 6px;
    font-size: 25px;
    font-weight: 750;
    color: #122b45;
}

.hippo-catalog-layout-v1 .hippo-catalog-intro p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.hippo-catalog-layout-v1 .hippo-catalog-search {
    display: flex;
    width: min(100%, 390px);
    gap: 8px;
}

.hippo-catalog-layout-v1 .hippo-catalog-search input {
    width: 100%;
    min-width: 0;
    border: 1px solid #dbe4ed;
    background: #fff;
    border-radius: 9px;
    padding: 11px 13px;
    font: inherit;
    font-size: 14px;
}

.hippo-catalog-layout-v1 .hippo-catalog-search button {
    border: 0;
    border-radius: 9px;
    background: #087d9d;
    color: #fff;
    padding: 0 18px;
    font-weight: 600;
    cursor: pointer;
}

.hippo-catalog-layout-v1 .hippo-catalog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.hippo-catalog-layout-v1 .hippo-catalog-sidebar,
.hippo-catalog-layout-v1 .hippo-catalog-results {
    min-width: 0;
}

.hippo-catalog-layout-v1 .hippo-catalog-sidebar {
    background: #fff;
    border: 1px solid #e5ebf0;
    border-radius: 12px;
    padding: 18px 12px;
}

.hippo-catalog-layout-v1 .hippo-catalog-sidebar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 14px;
}

.hippo-catalog-layout-v1 .hippo-catalog-sidebar-heading h3 {
    margin: 0;
    color: #122b45;
    font-size: 16px;
}

.hippo-catalog-layout-v1 .hippo-catalog-sidebar-heading > span {
    color: #64748b;
    font-size: 12px;
}

.hippo-catalog-layout-v1 .hippo-catalog-categories {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hippo-catalog-layout-v1 .hippo-catalog-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #40556b;
    font-size: 13px;
    line-height: 1.45;
}

.hippo-catalog-layout-v1 .hippo-catalog-category:hover,
.hippo-catalog-layout-v1 .hippo-catalog-category.is-active {
    background: #eaf7fa;
    color: #087d9d;
}

.hippo-catalog-layout-v1 .hippo-catalog-category.is-active {
    font-weight: 700;
}

.hippo-catalog-layout-v1 .hippo-catalog-category-count {
    flex-shrink: 0;
    font-size: 11px;
    color: #64748b;
}

.hippo-catalog-layout-v1 .hippo-catalog-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.hippo-catalog-layout-v1 .hippo-catalog-results-heading h2 {
    margin: 0 0 5px;
    font-size: 21px;
    color: #122b45;
}

.hippo-catalog-layout-v1 .hippo-catalog-results-heading p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.hippo-catalog-layout-v1 .hippo-catalog-reset {
    color: #087d9d;
    font-size: 13px;
    text-decoration: none;
}

.hippo-catalog-layout-v1 .hippo-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hippo-catalog-layout-v1 .hippo-catalog-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5ebf0;
    border-radius: 11px;
    transition: box-shadow .2s, transform .2s;
}

.hippo-catalog-layout-v1 .hippo-catalog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(18, 43, 69, .09);
}

.hippo-catalog-layout-v1 .hippo-catalog-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    padding: 12px;
    background: #f8fafc;
}

.hippo-catalog-layout-v1 .hippo-catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hippo-catalog-layout-v1 .hippo-catalog-card-body {
    padding: 13px 14px 12px;
}

.hippo-catalog-layout-v1 .hippo-catalog-card-category {
    display: block;
    min-height: 16px;
    margin-bottom: 6px;
    color: #087d9d;
    font-size: 11px;
}

.hippo-catalog-layout-v1 .hippo-catalog-card-body h3 {
    min-height: 42px;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
}

.hippo-catalog-layout-v1 .hippo-catalog-card-body h3 a {
    color: #122b45;
    text-decoration: none;
}

.hippo-catalog-layout-v1 .hippo-catalog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 30px;
    padding-top: 10px;
}

.hippo-catalog-layout-v1 .hippo-catalog-card-footer > a:first-child {
    color: #087d9d;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
}

.hippo-catalog-layout-v1 .hippo-catalog-qr img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.hippo-catalog-layout-v1 .hippo-catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 28px;
}

.hippo-catalog-layout-v1 .hippo-catalog-pagination a,
.hippo-catalog-layout-v1 .hippo-catalog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #e1e8ef;
    border-radius: 7px;
    background: #fff;
    color: #40556b;
    text-decoration: none;
    font-size: 13px;
}

.hippo-catalog-layout-v1 .hippo-catalog-pagination .is-current {
    background: #087d9d;
    color: #fff;
    border-color: #087d9d;
}

.hippo-catalog-layout-v1 .hippo-catalog-pagination .is-disabled {
    opacity: .45;
}

.hippo-catalog-layout-v1 .hippo-catalog-empty {
    padding: 55px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5ebf0;
    border-radius: 12px;
}

.hippo-catalog-layout-v1 .hippo-catalog-empty h3 {
    margin: 0 0 8px;
    color: #122b45;
}

.hippo-catalog-layout-v1 .hippo-catalog-empty p {
    color: #64748b;
}

.hippo-catalog-layout-v1 .hippo-catalog-empty a {
    color: #087d9d;
}

.hippo-catalog-layout-v1 .hippo-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 991px) {
    .hippo-catalog-layout-v1 .hippo-catalog-layout {
        grid-template-columns: 215px minmax(0, 1fr);
        gap: 16px;
    }

    .hippo-catalog-layout-v1 .hippo-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .hippo-catalog-layout-v1 .hippo-catalog-container {
        padding: 24px 15px 45px;
    }

    .hippo-catalog-layout-v1 .hippo-catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hippo-catalog-layout-v1 .hippo-catalog-search {
        width: 100%;
    }

    .hippo-catalog-layout-v1 .hippo-catalog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hippo-catalog-layout-v1 .hippo-catalog-categories {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .hippo-catalog-layout-v1 .hippo-catalog-category {
        flex: 0 0 auto;
        max-width: 210px;
    }

    .hippo-catalog-layout-v1 .hippo-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hippo-catalog-layout-v1 .hippo-catalog-card-image {
        height: 135px;
    }
}

@media (max-width: 400px) {
    .hippo-catalog-layout-v1 .hippo-catalog-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* HIPPO PRODUCT VIEW DETAILS ALIGNMENT V1 */
.hippo-catalog-layout-v1 .hippo-catalog-card-footer {
    justify-content: flex-end;
    text-align: right;
}

.hippo-catalog-layout-v1 .hippo-catalog-card-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.hippo-catalog-layout-v1 .hippo-catalog-card-footer a i {
    font-size: 12px;
}
