/* PTF Handels 2.3 — cache-safe high-resolution media and product card refinement */

:root {
    --ptf-v23-card-radius: 14px;
    --ptf-v23-border: #dbe4f0;
    --ptf-v23-soft: #f5f8fc;
}

.ptf-home-v23 picture,
.ptf-home-v23 picture img {
    display: block;
    width: 100%;
}

/* Hero: responsive source files, fixed proportions and no upscaling artefacts. */
.ptf-home-v23 .ptf-hero-v21__frame {
    min-height: 520px;
}
.ptf-home-v23 .ptf-hero-v21__visual {
    min-height: 520px;
    overflow: hidden;
}
.ptf-home-v23 .ptf-hero-v21__visual picture,
.ptf-home-v23 .ptf-hero-v21__visual img {
    width: 100%;
    height: 100%;
}
.ptf-home-v23 .ptf-hero-v21__visual img {
    object-fit: cover;
    object-position: 64% 50%;
    transform: translateZ(0);
}
.ptf-home-v23 .ptf-hero-v21__visual::after {
    background: linear-gradient(90deg, rgba(4, 28, 67, .16), rgba(4, 28, 67, 0) 38%);
}
.ptf-home-v23 .ptf-hero-v21__content {
    align-self: stretch;
    justify-content: center;
}
.ptf-home-v23 .ptf-hero-v21__assurance {
    row-gap: 10px;
}

/* Category photos are real responsive image elements, not CSS backgrounds. */
.ptf-home-v23 .ptf-category-tile__media {
    position: absolute;
    inset: 0;
    background: #dfe7f0;
    transform: none;
}
.ptf-home-v23 .ptf-category-tile__media picture,
.ptf-home-v23 .ptf-category-tile__media img {
    width: 100%;
    height: 100%;
}
.ptf-home-v23 .ptf-category-tile__media img {
    object-fit: cover;
    object-position: center;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.ptf-home-v23 .ptf-category-tile:hover .ptf-category-tile__media {
    transform: none;
}
.ptf-home-v23 .ptf-category-tile:hover .ptf-category-tile__media img {
    transform: scale(1.035);
}
.ptf-home-v23 .ptf-category-tile--1 .ptf-category-tile__media img { object-position: 50% 58%; }
.ptf-home-v23 .ptf-category-tile--2 .ptf-category-tile__media img { object-position: 52% 48%; }
.ptf-home-v23 .ptf-category-tile--3 .ptf-category-tile__media img { object-position: 50% 45%; }
.ptf-home-v23 .ptf-category-tile--4 .ptf-category-tile__media img { object-position: 45% 52%; }

/* WooCommerce product grids: one visual system and equal-height cards. */
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products {
    align-items: stretch;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0 0 18px !important;
    border: 1px solid var(--ptf-v23-border) !important;
    border-radius: var(--ptf-v23-card-radius) !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(8, 39, 87, .055);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: #bdcce0 !important;
    box-shadow: 0 20px 45px rgba(8, 39, 87, .11);
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product a img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: var(--ptf-v23-soft) !important;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .onsale {
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 7px 10px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    line-height: 1 !important;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .ptf-product-category {
    padding-inline: 18px;
    color: #315cf5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 50px;
    margin: 6px 0 4px !important;
    padding-inline: 18px !important;
    color: var(--ptf-navy);
    font-size: 15px !important;
    line-height: 1.35;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .star-rating {
    margin: 3px 18px 5px !important;
    font-size: 12px !important;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .price {
    margin: 3px 0 0 !important;
    padding-inline: 18px !important;
    color: var(--ptf-navy) !important;
    font-size: 21px !important;
    line-height: 1.2;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .price del {
    color: #8491a5 !important;
    font-size: 12px;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .price ins {
    text-decoration: none;
}
/* Hide the obsolete duplicate note from any stale HTML cache. Germanized or
   another German compliance plugin remains responsible for legal price info. */
.ptf-home-v23 .ptf-product-tax-note {
    display: none !important;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .wgm-info,
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .wgm-info * {
    font-size: 11px !important;
    line-height: 1.45 !important;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .wgm-info {
    min-height: 48px;
    margin: 8px 18px 0 !important;
    color: #526078 !important;
}
.ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .button {
    width: calc(100% - 36px);
    min-height: 46px;
    margin: auto 18px 0 !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}

/* Story photograph uses its own high-resolution source and keeps a stable crop. */
.ptf-home-v23 .ptf-story-v21__media picture,
.ptf-home-v23 .ptf-story-v21__media img {
    width: 100%;
    height: 100%;
}
.ptf-home-v23 .ptf-story-v21__media img {
    object-fit: cover;
    object-position: 53% 50%;
}
.ptf-home-v23 .ptf-story-v21__content {
    background-image: none !important;
}

@media (max-width: 1180px) {
    .ptf-home-v23 .ptf-hero-v21__visual img { object-position: 67% 50%; }
    .ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 58px;
    }
}

@media (max-width: 860px) {
    .ptf-home-v23 .ptf-hero-v21__frame,
    .ptf-home-v23 .ptf-hero-v21__visual { min-height: 0; }
    .ptf-home-v23 .ptf-hero-v21__visual { aspect-ratio: 16 / 9; }
    .ptf-home-v23 .ptf-hero-v21__visual img { object-position: 60% 50%; }
    .ptf-home-v23 .ptf-category-tile { min-height: 330px; }
    .ptf-home-v23 .ptf-story-v21__media { aspect-ratio: 16 / 10; min-height: 0; }
}

@media (max-width: 620px) {
    .ptf-home-v23 .ptf-hero-v21__visual { aspect-ratio: 4 / 3; }
    .ptf-home-v23 .ptf-hero-v21__visual img { object-position: 64% 50%; }
    .ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
    .ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: auto;
        font-size: 16px !important;
    }
    .ptf-home-v23 .ptf-product-showcase__products .woocommerce ul.products li.product a img {
        aspect-ratio: 1 / .9 !important;
    }
    .ptf-home-v23 .ptf-story-v21__media { aspect-ratio: 4 / 3; }
}
