/*----------------------------------------*/
/*  APPLICATION (templates/application.php)*/
/*  No Figma frame. Photo head with the    */
/*  anchor tabs (inner.css), then one      */
/*  section per top category: a 52px       */
/*  heading, the series as the category    */
/*  page's white tiles and an outline      */
/*  "View All … Products" link.            */
/*  include/application/banner.php +       */
/*  section.php.                           */
/*----------------------------------------*/

body.page-template-application .application-sec {
    padding: clamp(40px, 3.1vw, 60px) var(--rd-gutter) 0;
    background: none;
}

body.page-template-application main > .application-sec:last-child {
    padding-bottom: var(--in-section);
}

body.page-template-application .application-sec > .container {
    max-width: var(--in-wide);
    width: 100%;
    padding: 0;
}

body.page-template-application .application-sec > .container > .row {
    margin: 0;
}

body.page-template-application .application-sec > .container > .row > [class*="col-"] {
    padding: 0;
}

body.page-template-application .prd__page-title {
    font-family: var(--rd-ff-head);
    margin: 0 0 clamp(20px, 2.1vw, 40px);
    font-size: clamp(34px, 2.7vw, 52px);
    line-height: 1.16;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--rd-txt-on-light);
    text-transform: uppercase;
}

/* inline marks inside the heading (b, strong, span) keep its face —
   the section's universal `*` rule would reset them to the text font */
body.page-template-application .prd__page-title * {
    font-family: inherit;
}

/* series tiles — same as the category grid */
body.page-template-application .prd__row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}

body.page-template-application .prd__row > [class*="col-"] {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.page-template-application .prd__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: 100%;
    margin: 0;
    padding: 16px 16px 20px;
    background-color: var(--rd-white);
    border: 1px solid transparent;
    border-radius: var(--rd-radius);
    transition: border-color var(--rd-transition);
}

body.page-template-application .prd__item::before {
    content: none;
}

body.page-template-application .prd__item--img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
}

body.page-template-application .prd__item--img img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform: none;
}

body.page-template-application .prd__item--name {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--rd-txt-on-light);
    text-align: center;
}

/* the old hover "View" plate — the tile is the link */
body.page-template-application .prd__item--view {
    display: none;
}

@media (min-width: 1200px) {
    body.page-template-application .prd__item:hover {
        border-color: var(--rd-accent);
    }
}

body.page-template-application .prd__btn-wrap {
    margin: 24px 0 0;
    text-align: left;
}

@media (max-width: 1599px) {
    body.page-template-application .prd__row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    body.page-template-application .prd__row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 767px) {
    body.page-template-application .prd__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.page-template-application .prd__item {
        padding: 12px 12px 16px;
    }

    body.page-template-application .prd__item--name {
        font-size: 16px;
    }

    body.page-template-application .prd__btn-wrap .btn {
        width: 100%;
    }
}
