/* 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-search {
    max-width: 420px;
    margin: 0 auto 18px;
}

.pim-product-search label {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.pim-product-search input {
    width: 100%;
    padding: 12px 16px;
    border: 4px solid #009fe3;
    background: #fff;
    color: #111;
    font-size: 16px;
    font-weight: 700;
}

.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-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto 22px;
}

.pim-active-filter,
.pim-clear-filters {
    padding: 8px 14px;
    border: 2px solid #00aeef;
    border-radius: 999px;
    background: #fff;
    color: #12386c;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.pim-clear-filters {
    background: #12386c;
    color: #fff;
}

.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);
    height: 360px;
    margin: 0 8px 16px;
    overflow: hidden;
    background: #fff;
}

.pim-product-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    background: #fff;
}

.pim-product-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 145px;
    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%
    );
}

.pim-product-card h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 14px !important;
    line-height:1.3 !important;
    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;
    }
}

.pim-no-results {
    padding: 48px 32px;
    margin-top: 24px;
    text-align: center;
    background: #f4f8fc;
    border-top: 6px solid #00aeef;
}

.pim-no-results h3 {
    margin: 0 0 12px;
    color: #12386c;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
}

.pim-no-results p {
    margin: 0;
    color: #12386c;
    font-size: 16px;
    line-height: 1.6;
}

/* 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;
    border-radius:5px !important;
    cursor: pointer;
}

.pim-single-product__thumb.is-active {
    border-color: #12386c;
    border-radius:5px !important;
}

.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;
    font-size:16px;
    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;
    }
}

.pim-doc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 174, 239, 0.2);
    border-radius: 8px;
    background: #fff;
    color: #12386c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 180ms ease;
}

.pim-doc-link:hover {
    background: #f3fbff;
    border-color: #00aeef;
    text-decoration: none;
}

.pim-doc-link__icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #e53935;
}

.pim-doc-link__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pim-doc-link__text {
    flex: 1;
}

@media (max-width: 900px) {
    .pim-single-product {
        padding: 40px 18px 80px;
    }

    .pim-single-product__inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .pim-single-product__gallery,
    .pim-single-product__summary {
        width: 100%;
        min-width: 0;
    }

    .pim-single-product__summary h1 {
        font-size: 28px;
    }

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

@media (max-width: 600px) {
    .pim-single-product__summary h1 {
        font-size: 24px;
    }

    .pim-single-product__actions {
        flex-direction: column;
    }

    .pim-single-product__thumbs {
        gap: 12px;
        flex-wrap: wrap;
    }

    .pim-single-product__thumb {
        width: 90px;
        height: 80px;
    }

    .pim-accordion summary {
        padding-right: 46px;
    }

    .pim-accordion table,
    .pim-accordion tbody,
    .pim-accordion tr,
    .pim-accordion th,
    .pim-accordion td {
        display: block;
        width: 100%;
    }

    .pim-accordion th {
        padding-bottom: 2px;
    }

    .pim-accordion td {
        padding-top: 0;
    }
}

/* Dealers */
.pim-dealer-map-wrap {
    padding: 42px 24px 56px;
}

.pim-dealer-search {
    display: flex;
    gap: 12px;
    max-width: 680px;
    margin: 0 auto 26px;
}

.pim-dealer-search input {
    flex: 1;
    min-height: 52px;
    padding: 12px 18px;
    border: 4px solid #00aeef;
    background: #fff;
    color: #111;
    font-size: 17px;
    font-weight: 700;
}

.pim-dealer-search input::placeholder {
    color: #777;
}

.pim-dealer-search button {
    min-height: 52px;
    padding: 12px 28px;
    border: 2px solid #00aeef;
    border-radius: 999px;
    background: #12386c;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 180ms ease;
}

.pim-dealer-search button:hover,
.pim-dealer-search button:focus {
    background: #00aeef;
    color: #fff;
}

.pim-dealer-map {
    width: 100%;
    height: 520px;
    margin: 0 auto;
    border: 6px solid #00aeef;
    background: #e8eef7;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.pim-dealer-results {
    max-width: 1180px;
    margin: 36px auto 0;
}

.pim-dealer-results > p {
    margin: 0;
    padding: 18px 22px;
    background: #fff;
    color: #12386c;
    font-weight: 800;
    text-align: center;
}

.pim-dealer-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pim-dealer-result {
    position: relative;
    padding: 26px 24px;
    background: #fff;
    color: #12386c;
    border-top: 7px solid #00aeef;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.pim-dealer-result h3 {
    margin: 0 0 14px;
    color: #12386c;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
}

.pim-dealer-result p {
    margin: 0 0 10px;
    color: #12386c;
    font-size: 14px;
    line-height: 1.5;
}

.pim-dealer-result strong {
    font-weight: 900;
}

.pim-dealer-result a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 8px 18px;
    border: 2px solid #00aeef;
    border-radius: 999px;
    color: #12386c;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 180ms ease;
}

.pim-dealer-result a:hover,
.pim-dealer-result a:focus {
    background: #00aeef;
    color: #fff;
    text-decoration: none;
}

.pim-map-infowindow {
    color: #12386c;
    min-width: 220px;
    line-height: 1.5;
}

.pim-map-infowindow h4 {
    margin: 0 0 10px;
    color: #12386c;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.pim-map-infowindow p {
    margin: 0 0 10px;
    color: #12386c;
    font-size: 14px;
}

.pim-map-infowindow a {
    color: #00aeef;
    font-weight: 800;
    text-decoration: none;
}

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

@media (max-width: 900px) {
    .pim-dealer-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pim-dealer-map {
        height: 440px;
    }
}

@media (max-width: 640px) {
    .pim-dealer-map-wrap {
        padding: 32px 16px 44px;
    }

    .pim-dealer-search {
        flex-direction: column;
    }

    .pim-dealer-search button {
        width: 100%;
    }

    .pim-dealer-list {
        grid-template-columns: 1fr;
    }

    .pim-dealer-map {
        height: 360px;
        border-width: 4px;
    }
}