/*
Theme Name: Itfirm Child — Pacote Mágico
Description: Tema filho do Itfirm para a Pacote Mágico.
Template: itfirm
Version: 1.0.2
Text Domain: itfirm-child
*/
/* Vitrines [pm_products]: estilos locais, independentes do Personalizar. */
.pmc-products,
.pmc-products * { box-sizing: border-box; }
.pmc-products {
    --pmc-gap: 16px;
    width: 100%;
    max-width: 1400px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 40px 28px;
    color: #101114;
    font-family: Manrope, Arial, sans-serif;
}
.pmc-products .pmc-grid {
    display: grid;
    grid-template-columns: repeat(var(--pmc-columns, 4), minmax(0, 1fr));
    gap: var(--pmc-gap);
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 5px 0 10px;
}
.pmc-products.pmc-carousel .pmc-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: calc((100% - (var(--pmc-columns, 4) - 1) * var(--pmc-gap)) / var(--pmc-columns, 4));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    -webkit-overflow-scrolling: touch;
}
.pmc-products .pmc-grid:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.pmc-products .pmc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-width: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce1e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    scroll-snap-align: start;
    transition: border-color .2s, box-shadow .2s;
}
.pmc-products .pmc-card:hover { border-color: #c58a25; box-shadow: 0 4px 12px #1011140a; }
.pmc-products .pmc-media { position: relative; flex: 0 0 auto; min-width: 0; padding: 12px; background: #fff; }
.pmc-products .pmc-image-link { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; }
.pmc-products img.pmc-image { display: block; width: 100%; height: 100%; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; object-fit: contain; }
.pmc-products .pmc-discount { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 7px; border-radius: 5px; background: #fff4dc; color: #805710; font-size: 11px; font-weight: 800; line-height: 1.4; }
.pmc-products .pmc-content { display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; min-width: 0; padding: 0 12px 12px; }
.pmc-products .pmc-category { display: block; min-height: 16px; color: #64748b; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.pmc-products .pmc-content:not(:has(.pmc-category))::before { content: ''; display: block; min-height: 16px; }
.pmc-products h3.pmc-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 56px; margin: 0; padding: 0; color: #101114; font: 700 13px/1.45 Manrope, Arial, sans-serif; letter-spacing: normal; }
.pmc-products .pmc-title a { color: #101114; font: inherit; text-decoration: none; }
.pmc-products .pmc-title a:hover { color: #805710; }
.pmc-products .pmc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; margin: auto 0 0; padding: 8px 0 0; color: #101114; font-size: 17px; font-weight: 800; line-height: 1.45; }
.pmc-products .pmc-price del { flex: 0 0 100%; color: #64748b; opacity: 1; font-size: 11px; font-weight: 500; }
.pmc-products .pmc-price ins { background: none; color: #101114; text-decoration: none; font-weight: 800; }
.pmc-products .pmc-price .amount { color: inherit; font-size: inherit; font-weight: inherit; white-space: nowrap; }
.pmc-products .pmc-actions { margin-top: auto; padding: 0 12px 12px; }
.pmc-products .pmc-actions a.pmc-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 9px 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #2563eb;
    background-image: none;
    color: #fff;
    font: 700 11px/1.4 Manrope, Arial, sans-serif;
    text-transform: none;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    box-shadow: none;
    transition: background-color .2s;
}
.pmc-products .pmc-actions a.pmc-button:hover { background: #1d4ed8; color: #fff; }
.pmc-products .pmc-actions a.pmc-button::before,
.pmc-products .pmc-actions a.pmc-button::after { display: none !important; content: none !important; }
.pmc-products .pmc-actions a.pmc-button.loading { opacity: .65; cursor: wait; }
.pmc-products .pmc-button-text { min-width: 0; }
.pmc-products .pmc-cart-icon { display: block; flex: 0 0 17px; width: 17px; height: 17px; max-width: 17px; margin: 0; }
.pmc-products .pmc-actions .added_to_cart { display: none !important; }
.pmc-products .pmc-actions a.pmc-button.pm-product-in-cart,
.pmc-products .pmc-actions a.pmc-button.pm-product-in-cart:hover { background: #fff4dc; border-color: #eed9ad; color: #805710; cursor: default; }
.pmc-products a:focus-visible { outline: 2px solid #2563eb; outline-offset: -3px; }
.pmc-products .pmc-carousel-controls { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 8px; }
.pmc-products .pmc-carousel-controls[hidden] { display: none !important; }
.pmc-products .pmc-carousel-controls button { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 36px; margin: 0; padding: 8px; border: 1px solid #dce1e8; border-radius: 50%; background: #fff; color: #2563eb; box-shadow: none; cursor: pointer; }
.pmc-products .pmc-carousel-controls button::before,
.pmc-products .pmc-carousel-controls button::after { display: none; content: none; }
.pmc-products .pmc-carousel-controls button:hover { border-color: #2563eb; background: #eff6ff; }
.pmc-products .pmc-carousel-controls button:disabled { opacity: .35; cursor: default; }
.pmc-products .pmc-carousel-controls button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.pmc-products .pmc-carousel-controls svg { display: block; width: 18px; height: 18px; }
.pmc-empty { max-width: 1320px; margin: 0 auto 24px; padding: 0 20px; color: #64748b; font: 400 13px/1.6 Manrope, Arial, sans-serif; }
@media (max-width: 1100px) {
    .pmc-products { --pmc-gap: 12px; padding: 0 28px 24px; }
    .pmc-products .pmc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pmc-products.pmc-carousel .pmc-grid { grid-template-columns: none; grid-auto-columns: calc((100% - 3 * var(--pmc-gap)) / 4); }
}
@media (max-width: 767px) {
    .pmc-products { --pmc-gap: 12px; padding: 0 20px 20px; }
    .pmc-products .pmc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pmc-products.pmc-carousel .pmc-grid { grid-template-columns: none; grid-auto-columns: calc((100% - var(--pmc-gap)) / 2); }
    .pmc-products .pmc-media { padding: 10px; }
    .pmc-products .pmc-content { padding: 0 10px 10px; }
    .pmc-products h3.pmc-title { min-height: 53px; font-size: 12px; }
    .pmc-products .pmc-actions { padding: 0 10px 10px; }
    .pmc-products .pmc-price { font-size: 16px; }
    .pmc-products .pmc-actions a.pmc-button { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .pmc-products *, .pmc-products *::before, .pmc-products *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
