/* Primaster Site Connector 1.1.7
   Vitrine/carrossel isolado do shortcode [primaster_produtos].
*/

.primaster-products {
    width: 100%;
    margin: 36px 0 46px;
    padding: 28px 0;
    background: #f7f8fa;
    border-top: 1px solid #e3e7eb;
    border-bottom: 1px solid #e3e7eb;
}

.primaster-products__inner {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.primaster-products__header {
    margin-bottom: 20px;
}

.primaster-products__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #a47b24;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.primaster-products__heading {
    margin: 0;
    color: #172033;
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
}

.primaster-products__subtitle {
    margin: 6px 0 0;
    color: #667085;
    font-size: .95rem;
    line-height: 1.5;
}

.primaster-products__carousel {
    position: relative;
}

.primaster-products__nav {
    display: none;
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 0;
    width: 100%;
    pointer-events: none;
    transform: translateY(-50%);
}

.primaster-products--scrollable .primaster-products__nav {
    display: block;
}

.primaster-products .primaster-products__arrow {
    position: absolute !important;
    top: 50% !important;
    display: inline-flex !important;
    box-sizing: border-box !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(208, 213, 221, .9) !important;
    border-radius: 999px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .10) !important;
    color: #173b6c !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 34px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer;
    pointer-events: auto;
    appearance: none !important;
    -webkit-appearance: none !important;
    transform: translateY(-50%);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, opacity .2s ease;
}

.primaster-products .primaster-products__arrow span {
    display: block !important;
    width: 100% !important;
    height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit !important;
    font: inherit !important;
    line-height: 39px !important;
    text-align: center !important;
    transform: translateY(-1px);
}

.primaster-products__arrow--prev {
    left: -23px;
}

.primaster-products__arrow--next {
    right: -23px;
}

.primaster-products__arrow:disabled {
    opacity: .28;
    cursor: default;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

@media (hover: hover) and (pointer: fine) {
    .primaster-products__arrow:not(:disabled):hover {
        background: #fff !important;
        border-color: #b9c3cf !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .14) !important;
        color: #102f59 !important;
    }

    .primaster-products__arrow--prev:not(:disabled):hover {
        transform: translateY(-50%) translateX(-2px);
    }

    .primaster-products__arrow--next:not(:disabled):hover {
        transform: translateY(-50%) translateX(2px);
    }
}

.primaster-products__viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.primaster-products__viewport::-webkit-scrollbar {
    display: none;
}

.primaster-products-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 54px) / 4);
    gap: 18px;
    align-items: stretch;
    padding: 2px 2px 8px;
}

.primaster-product-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .primaster-product-card:hover {
        transform: translateY(-3px);
        border-color: #cbd2d9;
        box-shadow: 0 9px 22px rgba(15, 23, 42, .08);
    }
}

.primaster-products .primaster-product-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 205px;
    padding: 18px 24px 10px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
}

.primaster-products .primaster-product-card__image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 125px !important;
    max-height: 180px !important;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

.primaster-product-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px 16px 18px;
}

.primaster-product-card__title {
    margin: 0 0 7px;
    font-size: .98rem;
    font-weight: 650;
    line-height: 1.35;
}

.primaster-product-card__title a {
    color: #1e293b;
    text-decoration: none;
}

.primaster-product-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: #667085;
    font-size: .86rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.primaster-product-card__price {
    margin: auto 0 14px;
    color: #111827;
    font-size: 1.28rem;
    font-weight: 750;
    line-height: 1.2;
}

.primaster-product-card__price del {
    margin-right: 5px;
    color: #98a2b3;
    font-size: .82rem;
    font-weight: 500;
}

.primaster-product-card__price ins {
    text-decoration: none;
}

.primaster-product-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.primaster-product-card__button,
.primaster-product-card__details {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}

.primaster-product-card__button {
    appearance: none;
    cursor: pointer;
    font-family: inherit;
    flex: 1 1 135px;
    border: 1px solid #173b6c;
    background: #173b6c;
    color: #fff;
    padding: 9px 12px;
}

.primaster-product-card__details {
    flex: 0 0 auto;
    border: 1px solid #d0d5dd;
    color: #344054;
    padding: 9px 11px;
    background: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .primaster-product-card__button:hover {
        background: #102f59;
        border-color: #102f59;
        color: #fff;
    }

    .primaster-product-card__details:hover {
        background: #f8fafc;
        color: #172033;
    }
}

.primaster-product-card__unavailable {
    color: #667085;
    font-size: .86rem;
    font-weight: 600;
}

.primaster-products-empty,
.primaster-products-error {
    width: min(1180px, calc(100% - 36px));
    margin: 30px auto;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
}

@media (max-width: 980px) {
    .primaster-products-grid {
        grid-auto-columns: calc((100% - 36px) / 3);
    }

    .primaster-products__arrow--prev {
        left: -18px;
    }

    .primaster-products__arrow--next {
        right: -18px;
    }
}

@media (max-width: 767px) {
    .primaster-products {
        margin: 28px 0 36px;
        padding: 24px 0;
    }

    .primaster-products__inner {
        width: min(100% - 24px, 1180px);
    }

    .primaster-products__nav,
    .primaster-products--scrollable .primaster-products__nav {
        display: none;
    }

    .primaster-products__viewport {
        margin-right: -12px;
        padding-right: 12px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .primaster-products-grid {
        grid-auto-columns: minmax(235px, 78vw);
        gap: 14px;
        padding-bottom: 8px;
    }

    .primaster-product-card {
        scroll-snap-align: start;
    }

    .primaster-products .primaster-product-card__image-link {
        height: 194px;
        padding-top: 16px;
    }

    .primaster-products .primaster-product-card__image {
        max-width: 120px !important;
        max-height: 170px !important;
    }
}
