/* Category Grid */

.pim-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}

.pim-category-card {
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.pim-category-card::before {
    display: none;
}

.pim-category-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px 26px;
    color: #fff;
    text-align: center;
    background: linear-gradient(
        to top,
        rgba(0, 57, 130, 0.92) 0%,
        rgba(0, 57, 130, 0.72) 55%,
        rgba(0, 57, 130, 0) 100%
    );
    transform: translateY(calc(100% - 90px));
    transition: transform 300ms ease;
}

.pim-category-card:hover .pim-category-card__overlay {
    transform: translateY(0);
}

.pim-category-card__title {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pim-category-card__content {
    margin-top: 18px;
    opacity: 0;
    transition: opacity 220ms ease 100ms;
}

.pim-category-card:hover .pim-category-card__content {
    opacity: 1;
}

.pim-category-card__description {
    margin: 0 auto 20px;
    max-width: 340px;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.pim-category-card__description p {
    margin: 0;
}

.pim-category-card__button {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid #e21f2f;
    border-radius: 999px;
    color: #fff;
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 180ms ease;
}

.pim-category-card__button:hover {
    background: #e21f2f;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .pim-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pim-categories-grid {
        grid-template-columns: 1fr;
    }

    .pim-category-card {
        min-height: 260px;
    }
}

/* Product Grid */

.pim-product-browser {
    padding: 40px 20px 90px;
    width: 100%;
}

.pim-product-browser-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.pim-product-filters {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto 10px;
}

.pim-filter {
    position: relative;
    z-index:1;
    width: 240px;
    border: 4px solid #009fe3;
    background: #fff;
}

.pim-filter__toggle {
    position: relative;
    display: block;
    width: 100%;
    padding: 8px 38px 8px 12px;
    border: 0;
    background: #fff;
    color: #111;
    text-align: left;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
}

.pim-filter__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 9px solid #111;
    transform: translateY(-50%);
}

.pim-filter.is-open{
    z-index:999;
}

.pim-filter.is-open .pim-filter__toggle::after {
    border-top: 0;
    border-bottom: 9px solid #111;
}

.pim-filter__menu {
    position: absolute;
    z-index:1000;
    top: 100%;
    left: -4px;
    right: -4px;
    display: none;
    max-height: 280px;
    overflow: auto;
    padding: 8px 10px;
    border: 4px solid #009fe3;
    border-top: 0;
    background: #fff;
    color: #111;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.pim-filter.is-open .pim-filter__menu {
    display: block;
}

.pim-filter__menu label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
}

.pim-filter__menu input {
    margin: 0;
}

.pim-product-grid {
    width:100%;
    margin: 0 auto;
}

.pim-product-grid::after {
    content: "";
    display: block;
    clear: both;
}

.pim-product-card {
    position: relative;
    width: calc(25% - 16px);
    margin: 0 8px 16px;
    overflow: hidden;
    background: #fff;
}

.pim-product-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.pim-product-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 70px 20px 22px;
    background: linear-gradient(
        to top,
        rgba(0, 57, 130, 0.94) 0%,
        rgba(0, 57, 130, 0.78) 48%,
        rgba(0, 57, 130, 0) 100%
    );
    color: #fff;
    text-align: center;
}

.pim-product-card h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
    min-height: 3em;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    overflow: hidden;

    min-height: 3.3em;
}

.pim-product-card__model {
    display: none;
}

.pim-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 200ms ease;
}

.pim-product-card__button:hover {
    background: #fff;
    color: #111;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .pim-product-card {
        width: calc(33.333% - 16px);
    }

    .pim-product-filters {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .pim-filter__menu {
        position: absolute;
        top: 100%;
        left: -4px;
        right: -4px;
    }
}

@media (max-width: 720px) {
    .pim-product-card {
        width: calc(50% - 16px);
    }

    .pim-filter {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 480px) {
    .pim-product-card {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Single Product */

.pim-single-product {
    padding: 70px 20px 120px;
}

.pim-breadcrumbs {
    max-width: 1180px;
    margin: 0 auto 30px;
    color: #12386c;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.pim-breadcrumbs a {
    color: #12386c;
    text-decoration: none;
}

.pim-breadcrumbs a:hover {
    text-decoration: underline;
}

.pim-breadcrumbs span {
    margin: 0 6px;
}

.pim-single-product__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 70px;
    max-width: 1180px;
    margin: 0 auto;
}

.pim-single-product__main-image {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: contain;
}

.pim-single-product__thumbs {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-top: 45px;
}

.pim-single-product__thumb {
    width: 150px;
    height: 120px;
    padding: 10px;
    background: #fff;
    border: 2px solid transparent;
    cursor: pointer;
}

.pim-single-product__thumb.is-active {
    border-color: #12386c;
}

.pim-single-product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pim-single-product__summary h1 {
    margin: 0 0 12px;
    color: #12386c;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
}

.pim-single-product__summary p {
    margin: 0 0 8px;
    color: #12386c;
    font-size:16px;
}

.pim-single-product__actions {
    display: flex;
    gap: 12px;
    margin: 24px 0 34px;
}

.pim-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 10px 24px;
    border: 2px solid #00aeef;
    border-radius: 999px;
    color: #12386c;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
}

.pim-button:hover {
    background: #00aeef;
    color: #fff;
    text-decoration: none;
}

.pim-accordion {
    border: 2px solid #00aeef;
    border-radius: 16px;
    overflow: hidden;
    color: #12386c;
}

.pim-accordion details {
    overflow: hidden;
    border-bottom: 2px solid #00aeef;
}

.pim-accordion details:last-child {
    border-bottom: 0;
}

.pim-accordion summary {
    position: relative;
    padding: 14px 54px 14px 20px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.pim-accordion summary::-webkit-details-marker {
    display: none;
}

.pim-accordion summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    transition: transform 220ms ease;
}

.pim-accordion details[open] summary {
    border-bottom: 1px solid #00aeef;
}

.pim-accordion details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.pim-accordion__content {
    height: 0;
    overflow: hidden;
    transition: height 280ms ease;
    font-size:16px;
}

.pim-accordion__content-inner {
    padding: 18px 20px;
}

.pim-accordion__content-inner > *:first-child {
    margin-top: 18px;
}

.pim-accordion__content-inner > *:last-child {
    margin-bottom: 18px;
}

.pim-accordion table {
    width: 100%;
    border-collapse: collapse;
}

.pim-accordion th,
.pim-accordion td {
    padding: 8px 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 174, 239, 0.25);
}

.pim-single-product__docs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 900px) {
    .pim-single-product__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pim-single-product__actions {
        flex-wrap: wrap;
    }
}