/* PTF Handels 2.2 — high-resolution storefront rebuild */

:root {
    --ptf-v22-radius: 16px;
    --ptf-v22-shadow: 0 24px 64px rgba(5, 30, 72, .12);
}

/* Keep media sharp and proportional. */
.ptf-home-v22 img {
    max-width: 100%;
    height: auto;
    image-rendering: auto;
}
.ptf-home-v22 picture { display: block; }

/* Header refinement */
.ptf-home-v22 ~ * {}
.site-header .ptf-container { width: min(1320px, calc(100% - 40px)); }
.ptf-header-main { min-height: 76px; }
.ptf-brand img, .custom-logo { max-height: 48px; }
.ptf-menu { min-height: 50px; }
.ptf-menu > li > a { min-height: 50px; }

/* Hero rebuilt to match the approved split composition. */
.ptf-hero-v21 {
    padding: 0;
    background: linear-gradient(180deg, #f6f8fc 0, #ffffff 100%);
}
.ptf-hero-v21__frame {
    width: min(100%, 1440px);
    min-height: 530px;
    grid-template-columns: minmax(430px, 44%) minmax(0, 56%);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}
.ptf-hero-v21__content {
    min-width: 0;
    padding: 62px 78px 62px 0;
    background: #fff;
}
.ptf-hero-v21__content::after {
    right: -150px;
    width: 240px;
    background: #fff;
    clip-path: polygon(0 0, 64% 0, 0 100%);
}
.ptf-hero-v21 h1 {
    max-width: 540px;
    margin-bottom: 20px;
    font-size: clamp(48px, 4.5vw, 68px);
    line-height: .99;
}
.ptf-hero-v21__content > p {
    max-width: 530px;
    font-size: 17px;
}
.ptf-hero-v21__visual {
    min-height: 530px;
    background: #dce5ef;
}
.ptf-hero-v21__visual picture,
.ptf-hero-v21__visual img {
    display: block;
    width: 100%;
    height: 100%;
}
.ptf-hero-v21__visual img {
    object-fit: cover;
    object-position: 58% 50%;
    transform: none;
}
.ptf-hero-v21__visual::after {
    background: linear-gradient(90deg, rgba(5, 28, 65, .12), transparent 35%);
}
.ptf-hero-v21__accent--navy { left: 0; }
.ptf-hero-v21__accent--blue { left: 104px; }

/* Four clean category modules with one high-resolution image layer each. */
.ptf-category-editorial { padding: 64px 0 72px; }
.ptf-category-editorial__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.ptf-category-tile,
.ptf-category-tile--1,
.ptf-category-tile--2,
.ptf-category-tile--3,
.ptf-category-tile--4 {
    grid-column: auto;
    min-height: 350px;
    padding: 26px;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(6,31,74,.13);
}
.ptf-category-tile__media {
    background-position: center;
    will-change: transform;
}
.ptf-category-tile__overlay {
    background: linear-gradient(180deg, rgba(4,24,56,.18) 0%, rgba(4,24,56,.50) 43%, rgba(3,19,46,.96) 100%);
}
.ptf-category-tile__icon {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: rgba(4,30,70,.62);
}
.ptf-category-tile__content > strong { font-size: 25px; }
.ptf-category-tile__content > small { font-size: 12px; }

/* Product images must never stretch. */
.ptf-product-showcase__products .woocommerce ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / .82;
    object-fit: contain !important;
    object-position: center !important;
    background: #f7f9fc;
}

/* Story section rebuilt from separate photograph + HTML content. */
.ptf-story-v21 {
    padding: 88px 0;
    background: linear-gradient(180deg, #fff 0%, #f6f9fd 100%);
}
.ptf-story-v21__frame {
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    min-height: 500px;
    overflow: hidden;
    border: 0;
    border-radius: var(--ptf-v22-radius);
    box-shadow: var(--ptf-v22-shadow);
}
.ptf-story-v21__media {
    min-height: 500px;
    background: #d9e2ec;
}
.ptf-story-v21__media picture,
.ptf-story-v21__media img {
    display: block;
    width: 100%;
    height: 100%;
}
.ptf-story-v21__media img {
    object-fit: cover;
    object-position: 50% 50%;
    transform: none;
}
.ptf-story-v21__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(4,27,63,.10), transparent 55%);
    pointer-events: none;
}
.ptf-story-v21__media::after {
    z-index: 2;
    width: 118px;
    background: #fff;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.ptf-story-v21__content {
    isolation: isolate;
    overflow: hidden;
    padding: 62px 68px 58px 58px;
    background: #fff;
}
.ptf-story-v21__content::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -90px;
    top: -100px;
    width: 360px;
    height: 360px;
    border: 60px solid #f3f6fa;
    transform: rotate(35deg);
}
.ptf-story-v21__content::after {
    width: 132px;
    height: 118px;
    background: linear-gradient(135deg, transparent 0 45%, var(--ptf-blue) 46% 72%, var(--ptf-navy) 73% 100%);
    clip-path: none;
}
.ptf-story-v21__content h2 {
    max-width: 680px;
    font-size: clamp(38px, 3.5vw, 54px);
}
.ptf-story-v21__content > p {
    max-width: 650px;
    font-size: 15px;
    line-height: 1.7;
}
.ptf-story-v21__values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 34px 0 30px;
}
.ptf-story-v21__values > div {
    grid-template-columns: 44px 1fr;
    gap: 12px;
}
.ptf-story-v21__values img {
    width: 40px;
    height: 40px;
}
.ptf-story-v21__values strong { font-size: 13px; }
.ptf-story-v21__values small { font-size: 11px; }

@media (max-width: 1180px) {
    .ptf-hero-v21__frame { grid-template-columns: 46% 54%; }
    .ptf-hero-v21__content { padding-left: 20px; padding-right: 65px; }
    .ptf-category-editorial__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ptf-story-v21__values { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 860px) {
    .site-header .ptf-container { width: min(100% - 28px, 1320px); }
    .ptf-hero-v21__frame { grid-template-columns: 1fr; }
    .ptf-hero-v21__visual { order: 1; min-height: 390px; }
    .ptf-hero-v21__content { order: 2; padding: 48px 34px 54px; }
    .ptf-hero-v21__content::after { display: none; }
    .ptf-story-v21__frame { grid-template-columns: 1fr; }
    .ptf-story-v21__media { min-height: 360px; }
    .ptf-story-v21__media::after { display: none; }
    .ptf-story-v21__content { padding: 48px 36px 60px; }
}

@media (max-width: 620px) {
    .ptf-hero-v21__visual { min-height: 300px; }
    .ptf-hero-v21__visual img { object-position: 62% center; }
    .ptf-category-editorial__grid { grid-template-columns: 1fr; }
    .ptf-category-tile { min-height: 320px; }
    .ptf-story-v21 { padding: 58px 0; }
    .ptf-story-v21__frame { width: calc(100% - 24px); }
    .ptf-story-v21__media { min-height: 280px; }
    .ptf-story-v21__content { padding: 40px 24px 52px; }
}
