/* One compact card layout for the home page, archives and related products. */
body .woocommerce ul.products li.pem-product-card{padding:0!important;min-width:0;align-self:stretch}
body .pem-product-card .pem-product-card__image{aspect-ratio:4/3;min-height:0;margin:10px 10px 0;flex:none}
body .woocommerce ul.products li.pem-product-card .pem-product-card__image img{display:block;width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:contain!important;padding:10px!important}
body .pem-product-card .pem-product-card__body{padding:14px;min-width:0;display:flex;flex-direction:column;flex:1}
body .pem-product-card .pem-product-card__type{font-size:10px;line-height:1.5;margin:0 0 7px;letter-spacing:.08em}
body .pem-product-card .pem-product-card__body h2{font-size:19px!important;line-height:1.3;margin:0 0 12px;min-height:2.6em;overflow-wrap:break-word;word-break:normal}
body .pem-product-card .pem-product-card__bottom{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:auto;padding-top:12px;border-top:1px solid #ebe4d8;align-items:stretch;justify-content:stretch}
body .pem-product-card .pem-product-card__price{display:flex;flex-wrap:wrap;align-content:center;align-items:baseline;justify-content:flex-start;gap:3px 8px;width:100%;min-width:0;min-height:68px;margin:0;padding:9px 12px;box-sizing:border-box;border:1px solid #ece7dc;border-radius:12px;background:#f9f7f4;font-size:22px;line-height:1.25;overflow-wrap:normal;color:#89693a}
body .pem-product-card .pem-product-card__price:has(ins){border-color:#ede3d5;background:#fbf9f7}
body .pem-product-card .pem-product-card__price .pem-holiday-from{flex-basis:100%;font-size:11px;line-height:1.4;color:#756246}
body .pem-product-card .pem-product-card__price del{font-size:14px;line-height:1.3;font-weight:500;color:var(--pem-price-before-sale);opacity:1}
body .pem-product-card .pem-product-card__price ins{font-size:23px;line-height:1.2;font-weight:800;text-decoration:none}
body .pem-product-card .pem-product-card__price .woocommerce-Price-amount{white-space:nowrap}
body ul.products li.pem-product-card .pem-product-card__body .pem-product-card__bottom>.button{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:46px;margin:0!important;padding:11px 12px!important;box-sizing:border-box;border-radius:12px!important;font-size:13px!important;line-height:1.35;white-space:normal;overflow-wrap:normal!important;word-break:normal;text-align:center}
@media(max-width:700px){
 body .pem-product-card .pem-product-card__image{aspect-ratio:auto;height:clamp(175px,53vw,230px);margin:8px 8px 0}
 body .pem-product-card .pem-product-card__body{padding:12px}
 body .pem-product-card .pem-product-card__body h2{font-size:18px!important;min-height:2.6em;margin-bottom:10px}
 body .pem-product-card .pem-product-card__bottom{padding-top:10px;gap:8px}
 body .pem-product-card .pem-product-card__price{min-height:64px;padding:8px 11px}
 body .pem-product-card .pem-product-card__price ins{font-size:22px}
}
.pem-service .tariff-card strong{text-wrap:balance}

body ul.products li.pem-product-card .pem-product-card__body .pem-product-card__bottom>.button {
    background:var(--wine)!important;color:#fff!important;transition:background-color .16s ease;
}
body ul.products li.pem-product-card .pem-product-card__body .pem-product-card__bottom>.button:is(:hover,:focus-visible):not(.disabled) {
    background:var(--claret)!important;text-decoration:underline!important;text-underline-offset:3px;transform:none!important;
}
body ul.products li.pem-product-card .pem-product-card__body .pem-product-card__bottom>.button:active:not(.disabled) {
    background:var(--claret)!important;
}
/* Keep the original diagonal reflection on every product tile without moving its hit targets. */
body :is(.pem-product-card,.pem-home-catalog__item,.pem-quiz__result,.pem-tree-extras__item,.wc-block-product,.wc-block-grid__product) {
    position:relative; isolation:isolate; overflow:hidden;
}
body ul.products li.product.pem-product-card,
body :is(.pem-home-catalog__item,.pem-quiz__result,.wc-block-product,.wc-block-grid__product) {
    border:1px solid #ede8dd; border-radius:14px; background-color:#fff;
    transition:border-color .18s ease,box-shadow .18s ease;
}
body ul.products li.product.pem-product-card:is(:hover,:focus-within),
body :is(.pem-home-catalog__item,.pem-quiz__result,.wc-block-product,.wc-block-grid__product):is(:hover,:focus-within) {
    transform:none; border-color:#bbad92; box-shadow:0 8px 24px #17364f1a;
}
body ul.products li.product.pem-product-card:hover .pem-product-card__image img {transform:none!important;}
body :is(.pem-product-card,.pem-home-catalog__item,.pem-quiz__result,.pem-tree-extras__item,.wc-block-product,.wc-block-grid__product)::before {
    content:none;
}
body :is(.pem-product-card__body,.pem-home-catalog__info,.pem-home-catalog__action),
.pem-quiz__result>:not(.pem-quiz__media),.pem-tree-extras__item>:not(.pem-extra-image),
.wc-block-grid__product :is(.wc-block-grid__product-title,.wc-block-grid__product-price,.wc-block-grid__product-add-to-cart),
.wc-block-product>:not(.wc-block-components-product-image,.wp-block-woocommerce-product-image) {
    position:relative; z-index:2;
}
@media (prefers-reduced-motion:no-preference) {
    body :is(.pem-product-card,.pem-home-catalog__item,.pem-quiz__result,.pem-tree-extras__item,.wc-block-product,.wc-block-grid__product)::before {
        content:""; position:absolute; z-index:1; inset:0; width:auto; height:auto;
        opacity:0; pointer-events:none; transition:none;
        background:linear-gradient(105deg,transparent 32%,rgba(179,210,228,.30) 44%,rgba(255,251,234,.60) 50%,rgba(255,178,165,.20) 56%,transparent 68%);
        animation:var(--pem-tile-animation,none);
    }
    body :is(.pem-product-card,.pem-home-catalog__item,.pem-quiz__result,.pem-tree-extras__item,.wc-block-product,.wc-block-grid__product):focus-within {
        --pem-tile-animation:pem-card-glint .85s ease-out 1;
    }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
    body :is(.pem-product-card,.pem-home-catalog__item,.pem-quiz__result,.pem-tree-extras__item,.wc-block-product,.wc-block-grid__product):hover {
        --pem-tile-animation:pem-card-glint .85s ease-out 1;
    }
}
@keyframes pem-card-glint {
    from {transform:translateX(-103%);opacity:0}
    18%,82% {opacity:1}
    to {transform:translateX(103%);opacity:0}
}
@media(prefers-reduced-motion:reduce) {
    body ul.products li.pem-product-card,body ul.products li.pem-product-card * {transition:none!important;}
}
