/* ==================================================
   CATEGORY HERO + BREADCRUMB
================================================== */

.cpw-cat-hero,
.cpw-cat-hero * {
    box-sizing: border-box;
}

.cpw-cat-hero {
    --aqua: #43d9dd;
    --teal: #089d9c;
    --deep-teal: #047b7b;
    --navy: #07364a;
    --gold: #d29632;
    --text: #536d71;
    --line: #d4e8e5;

    padding: 28px 0 70px;
    background: linear-gradient(180deg, #f6fcfb, #ffffff);
    font-family: Arial, sans-serif;
}

.cpw-cat-hero__container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.cpw-cat-hero__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.06fr)
        minmax(350px, 0.94fr);
    min-height: 470px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #e9f9f6 0%,
            #ffffff 65%,
            #fff8eb 100%
        );
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(7, 54, 74, 0.08);
}

/* Left content */

.cpw-cat-hero__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 40px 50px 48px;
}

/* Breadcrumb */

.cpw-cat-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 27px;
    color: #687e82;
    font-size: 14px;
    line-height: 1.5;
}

.cpw-cat-hero__breadcrumb a {
    color: var(--deep-teal);
    font-weight: 700;
    text-decoration: none;
}

.cpw-cat-hero__breadcrumb a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.cpw-cat-hero__breadcrumb span[aria-hidden="true"] {
    color: var(--gold);
    font-weight: 700;
}

.cpw-cat-hero__breadcrumb span[aria-current="page"] {
    color: #526b70;
}

/* Small heading */

.cpw-cat-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: var(--deep-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.cpw-cat-hero__eyebrow::before {
    flex: 0 0 25px;
    width: 25px;
    height: 2px;
    background: var(--gold);
    content: "";
}

/* Dynamic H1 */

.cpw-cat-hero__title {
    max-width: 590px;
    margin: 0;
    color: var(--navy);
    font-family: Arial, sans-serif;
    font-size: clamp(46px, 4.2vw, 56px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.cpw-cat-hero__description {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
}

/* Labels */

.cpw-cat-hero__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 21px;
}

.cpw-cat-hero__labels span {
    padding: 8px 11px;
    color: var(--navy);
    background: #ffffff;
    border-left: 3px solid var(--aqua);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(7, 54, 74, 0.05);
    font-size: 14px;
    font-weight: 700;
}

/* Benefits */

.cpw-cat-hero__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 23px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(8, 157, 156, 0.18);
    list-style: none;
}

.cpw-cat-hero__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #365b60;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.cpw-cat-hero__features li::before {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--deep-teal);
    background: #d8f6f1;
    border-radius: 50%;
    font-size: 12px;
    content: "✓";
}

/* Image */

.cpw-cat-hero__media {
    display: flex;
    min-width: 0;
    align-items: center;
    padding: 32px 32px 32px 8px;
}

.cpw-cat-hero__image-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 9px 22px rgba(7, 54, 74, 0.08);
}

.cpw-cat-hero__image {
    display: block;
    width: 100%;
    max-height: 390px;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 9px;
}

.cpw-cat-hero__image-label {
    position: absolute;
    top: 23px;
    left: 23px;
    max-width: calc(100% - 46px);
    padding: 9px 12px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.95);
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 5px 14px rgba(7, 54, 74, 0.08);
    font-size: 13px;
    font-weight: 700;
}

.cpw-cat-hero__placeholder {
    display: grid;
    min-height: 320px;
    place-items: center;
    padding: 30px;
    color: var(--navy);
    background: #edf9f7;
    border-radius: 9px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

/* Tablet */

@media (max-width: 1000px) {
    .cpw-cat-hero__layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .cpw-cat-hero__content {
        padding: 38px 42px 27px;
    }

    .cpw-cat-hero__media {
        display: block;
        padding: 9px 42px 42px;
    }

    .cpw-cat-hero__image {
        max-height: 430px;
    }
}

/* Mobile */

@media (max-width: 650px) {
    .cpw-cat-hero {
        padding: 14px 0 50px;
    }

    .cpw-cat-hero__container {
        width: calc(100% - 24px);
    }

    .cpw-cat-hero__layout {
        border-radius: 13px;
        box-shadow: 0 7px 18px rgba(7, 54, 74, 0.07);
    }

    .cpw-cat-hero__content {
        padding: 24px 20px 19px;
    }

    .cpw-cat-hero__breadcrumb {
        gap: 6px;
        margin-bottom: 21px;
        font-size: 13px;
    }

    .cpw-cat-hero__eyebrow {
        font-size: 11px;
    }

    .cpw-cat-hero__title {
        font-size: 36px;
        line-height: 1.1;
    }

    .cpw-cat-hero__description {
        margin-top: 15px;
        font-size: 16px;
        line-height: 1.7;
    }

    .cpw-cat-hero__labels span {
        font-size: 13px;
    }

    .cpw-cat-hero__features {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .cpw-cat-hero__features li {
        font-size: 13px;
    }

    .cpw-cat-hero__media {
        display: block;
        padding: 8px 17px 24px;
    }

    .cpw-cat-hero__image-frame {
        padding: 8px;
        border-radius: 10px;
    }

    .cpw-cat-hero__image {
        max-height: none;
        border-radius: 6px;
    }

    .cpw-cat-hero__image-label {
        top: auto;
        right: 17px;
        bottom: 17px;
        left: 17px;
        max-width: none;
        font-size: 12px;
    }
}

/* ==================================================
   PROFESSIONAL LANDSCAPE CATEGORY QUOTE FORM
================================================== */

.cpw-category-quote,
.cpw-category-quote * {
    box-sizing: border-box;
}

.cpw-category-quote {
    --aqua: #43d9dd;
    --teal: #089d9c;
    --deep-teal: #047b7b;
    --navy: #07364a;
    --gold: #d29632;
    --text: #536d71;
    --line: #cde3e1;

    padding: 0 0 65px;
    font-family: Arial, Helvetica, sans-serif;
}

.cpw-category-quote__container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}


/* ==================================================
   LANDSCAPE CARD
================================================== */

.cpw-category-quote__card {
    position: relative;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    overflow: hidden;

    border: 1px solid #c8e2df;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 20px 52px rgba(7, 54, 74, 0.11);
}

.cpw-category-quote__card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--aqua),
            var(--teal) 58%,
            var(--gold)
        );

    content: "";
}


/* ==================================================
   LEFT INFORMATION PANEL
================================================== */

.cpw-category-quote__header {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    padding: 31px 27px;

    border-right: 1px solid var(--line);

    background:
        linear-gradient(
            155deg,
            #eafafa 0%,
            #f5fcfb 55%,
            #fff8e9 100%
        );
}

.cpw-category-quote__header-copy {
    max-width: none;
}

.cpw-category-quote__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 11px;

    color: var(--deep-teal);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.cpw-category-quote__eyebrow::before {
    width: 21px;
    height: 2px;
    flex: 0 0 21px;
    background: var(--gold);
    content: "";
}

.cpw-category-quote__header h2 {
    margin: 0;
    color: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.cpw-category-quote__header h2 span {
    display: block;
    margin-top: 4px;
    color: var(--teal);
}

.cpw-category-quote__header-copy > p:last-child {
    margin: 13px 0 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
}


/* Trust indicators */

.cpw-category-quote__assurance {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
}

.cpw-category-quote__assurance span {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #365b60;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.cpw-category-quote__assurance i {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;

    border-radius: 50%;
    background: #d7f3ef;
    color: var(--deep-teal);

    font-size: 11px;
    font-style: normal;
}


/* ==================================================
   RIGHT FORM PANEL
================================================== */

.cpw-category-quote__form {
    position: relative;
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.15fr);

    grid-template-rows: auto auto auto;
    column-gap: 25px;
    row-gap: 14px;

    padding: 28px 29px 25px;
}


/*
 * Existing PHP children:
 *
 * 1 = category hidden input
 * 2 = honeypot field
 * 3 = Your Details heading
 * 4 = Your Details fields
 * 5 = Specification heading
 * 6 = Specification fields
 * 7 = AJAX response message
 */

.cpw-category-quote__form
> .cpw-category-quote__group-heading:nth-child(3) {
    grid-column: 1;
    grid-row: 1;
}

.cpw-category-quote__form
> .cpw-category-quote__grid:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
}

.cpw-category-quote__form
> .cpw-category-quote__group-heading:nth-child(5) {
    grid-column: 2;
    grid-row: 1;
}

.cpw-category-quote__form
> .cpw-category-quote__grid:nth-child(6) {
    grid-column: 2;
    grid-row: 2;

    /*
     * Project Details side is wider than
     * the submit-button side.
     */
    grid-template-columns:
        minmax(250px, 1.4fr)
        minmax(180px, 0.85fr);
}

.cpw-category-quote__form
> .cpw-category-quote__message {
    grid-column: 1 / -1;
    grid-row: 3;
}


/* ==================================================
   GROUP HEADINGS
================================================== */

.cpw-category-quote__group-heading {
    display: flex;
    align-self: end;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    color: #58767c;
}

.cpw-category-quote__group-heading:not(:first-of-type) {
    margin: 0;
    padding: 0;
    border: 0;
}

.cpw-category-quote__group-heading span {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;

    border-radius: 7px;
    background: var(--teal);
    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
}

.cpw-category-quote__group-heading strong {
    color: #58767c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}


/* ==================================================
   FIELD GRIDS
================================================== */

.cpw-category-quote__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
}

.cpw-category-quote__field {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 6px;
}

.cpw-category-quote__field label {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.cpw-category-quote__field label em {
    color: #bd7917;
    font-style: normal;
}


/* ==================================================
   INPUTS, SELECTS AND TEXTAREA
================================================== */

.cpw-category-quote__field input,
.cpw-category-quote__field select,
.cpw-category-quote__field textarea {
    appearance: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;

    border: 1px solid #c9dfdd;
    border-radius: 8px;
    outline: 0;

    background: #fbfdfd;
    box-shadow: none;
    color: var(--navy);

    font: 14px/1.5 Arial, Helvetica, sans-serif;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cpw-category-quote__field input,
.cpw-category-quote__field select {
    min-height: 44px;
    padding: 9px 12px;
}

.cpw-category-quote__field select {
    padding-right: 34px;

    background-color: #fbfdfd;
    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            var(--navy) 50%
        ),
        linear-gradient(
            135deg,
            var(--navy) 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 16px) 19px,
        calc(100% - 11px) 19px;

    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.cpw-category-quote__field textarea {
    min-height: 92px;
    padding: 11px 12px;
    resize: vertical;
}

.cpw-category-quote__field input:focus,
.cpw-category-quote__field select:focus,
.cpw-category-quote__field textarea:focus {
    border-color: var(--teal);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(8, 157, 156, 0.10);
}

.cpw-category-quote__field input::placeholder,
.cpw-category-quote__field textarea::placeholder {
    color: #778f94;
    opacity: 1;
}


/* ==================================================
   PROJECT DETAILS AND SUBMIT
================================================== */

.cpw-category-quote__field--details {
    min-width: 0;
    grid-column: 1;
}

.cpw-category-quote__action {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    grid-column: 2;
}

.cpw-category-quote__submit {
    appearance: none;
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 14px;

    border: 0;
    border-radius: 9px;
    outline: 0;

    background:
        linear-gradient(
            120deg,
            var(--deep-teal),
            var(--teal)
        );

    box-shadow: 0 8px 18px rgba(8, 157, 156, 0.19);
    color: #ffffff;
    cursor: pointer;

    font: 700 13px/1.4 Arial, Helvetica, sans-serif;

    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.cpw-category-quote__submit:hover,
.cpw-category-quote__submit:focus {
    box-shadow: 0 11px 22px rgba(8, 157, 156, 0.27);
    color: #ffffff;
    transform: translateY(-1px);
}

.cpw-category-quote__submit:focus-visible {
    outline: 3px solid rgba(8, 157, 156, 0.20);
    outline-offset: 2px;
}

.cpw-category-quote__submit:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.cpw-category-quote__action small {
    color: #758b90;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}


/* ==================================================
   AJAX RESPONSE MESSAGE
================================================== */

.cpw-category-quote__message {
    display: none;
    margin: 0;
    padding: 11px 13px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.cpw-category-quote__message.is-visible {
    display: block;
}

.cpw-category-quote__message.is-success {
    border-left: 3px solid var(--teal);
    background: #e0f7ef;
    color: #075e54;
}

.cpw-category-quote__message.is-error {
    border-left: 3px solid #d95969;
    background: #fff0f2;
    color: #8a2634;
}


/* Honeypot spam field */

.cpw-category-quote__website {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* ==================================================
   SMALL DESKTOP AND TABLET
================================================== */

@media (max-width: 1050px) {
    .cpw-category-quote__card {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .cpw-category-quote__header {
        padding: 28px 23px;
    }

    .cpw-category-quote__header h2 {
        font-size: 27px;
    }

    .cpw-category-quote__form {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 13px;
        padding: 25px;
    }

    .cpw-category-quote__form
    > .cpw-category-quote__group-heading:nth-child(3),
    .cpw-category-quote__form
    > .cpw-category-quote__grid:nth-child(4),
    .cpw-category-quote__form
    > .cpw-category-quote__group-heading:nth-child(5),
    .cpw-category-quote__form
    > .cpw-category-quote__grid:nth-child(6),
    .cpw-category-quote__form
    > .cpw-category-quote__message {
        grid-column: 1;
        grid-row: auto;
    }

    .cpw-category-quote__form
    > .cpw-category-quote__group-heading:nth-child(5) {
        margin-top: 6px;
        padding-top: 18px;
        border-top: 1px solid var(--line);
    }

    .cpw-category-quote__form
    > .cpw-category-quote__grid:nth-child(6) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==================================================
   TABLET AND MOBILE
================================================== */

@media (max-width: 700px) {
    .cpw-category-quote {
        padding-bottom: 52px;
    }

    .cpw-category-quote__container {
        width: calc(100% - 24px);
    }

    .cpw-category-quote__card {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .cpw-category-quote__header {
        padding: 25px 20px 22px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .cpw-category-quote__header h2 {
        font-size: 26px;
    }

    .cpw-category-quote__header h2 span {
        display: inline;
        margin-top: 0;
    }

    .cpw-category-quote__assurance {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cpw-category-quote__assurance span {
        justify-content: center;
        text-align: center;
    }

    .cpw-category-quote__form {
        padding: 22px 18px;
    }
}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 500px) {
    .cpw-category-quote__assurance {
        grid-template-columns: 1fr;
    }

    .cpw-category-quote__assurance span {
        justify-content: flex-start;
        text-align: left;
    }

    .cpw-category-quote__form {
        padding: 20px 15px;
    }

    .cpw-category-quote__grid,
    .cpw-category-quote__form
    > .cpw-category-quote__grid:nth-child(6) {
        grid-template-columns: 1fr;
    }

    .cpw-category-quote__field--details,
    .cpw-category-quote__action {
        grid-column: auto;
    }

    .cpw-category-quote__field input,
    .cpw-category-quote__field select {
        min-height: 46px;
    }

    .cpw-category-quote__field textarea {
        min-height: 110px;
    }
}

/* ==================================================
   DYNAMIC PRODUCTS + OTHER CATEGORIES
================================================== */

.cpw-category-products,
.cpw-category-products * {
    box-sizing: border-box;
}

.cpw-category-products {
    --aqua: #43d9dd;
    --teal: #089d9c;
    --deep-teal: #047b7b;
    --navy: #07364a;
    --gold: #d29632;
    --text: #536d71;
    --line: #d4e8e5;
    --soft: #f3faf9;

    padding: 76px 0;
    background:
        linear-gradient(
            180deg,
            #f4fbfa,
            #ffffff
        );
    font-family: Arial, sans-serif;
}

.cpw-products-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Section heading */

.cpw-products-header {
    max-width: 780px;
    margin-bottom: 28px;
}

.cpw-products-header__eyebrow,
.cpw-other-categories__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--deep-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.cpw-products-header__eyebrow::before,
.cpw-other-categories__eyebrow::before {
    flex: 0 0 25px;
    width: 25px;
    height: 2px;
    background: var(--gold);
    content: "";
}

.cpw-products-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(34px, 3.6vw, 42px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.cpw-products-header__description {
    margin: 12px 0 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

/* Main layout */

.cpw-products-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: start;
}

.cpw-products-main {
    min-width: 0;
}

/* Four products on desktop */

.cpw-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

/* Product card */

.cpw-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(8, 157, 156, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 21px rgba(7, 54, 74, 0.06);

    /* Improve rendering performance of off-screen cards */
    content-visibility: auto;
    contain-intrinsic-size: auto 570px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.cpw-product-card:hover {
    border-color: rgba(8, 157, 156, 0.35);
    box-shadow: 0 12px 27px rgba(7, 54, 74, 0.10);
    transform: translateY(-3px);
}

.cpw-product-card__image-link {
    display: block;
    padding: 9px 9px 0;
    text-decoration: none;
}

.cpw-product-card__image {
    display: flex;
    min-height: 155px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 9px;
    background:
        linear-gradient(
            145deg,
            #eaf9f6,
            #fff8eb
        );
    border-radius: 8px;
}

/* Complete product image */

.cpw-product-card__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 155px;
    object-fit: contain;
    object-position: center;
}

.cpw-product-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 14px 15px;
}

.cpw-product-card__category {
    color: var(--teal);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}

.cpw-product-card__title {
    margin: 6px 0 7px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.cpw-product-card__title a {
    color: var(--navy);
    text-decoration: none;
}

.cpw-product-card__title a:hover {
    color: var(--deep-teal);
}

.cpw-product-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 14px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.cpw-product-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 11px;
    color: var(--deep-teal);
    border-top: 1px solid var(--line);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
}

/* Other categories sidebar */

.cpw-other-categories {
    padding: 25px 21px;
    background:
        linear-gradient(
            150deg,
            #e8f9f6,
            #ffffff 68%,
            #fff6e6
        );
    border: 1px solid rgba(8, 157, 156, 0.14);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(7, 54, 74, 0.07);
}

.cpw-other-categories h2 {
    margin: 0;
    color: var(--navy);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.cpw-other-categories__description {
    margin: 11px 0 18px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.65;
}

.cpw-other-categories__links {
    display: grid;
    gap: 8px;
}

.cpw-other-categories__links a,
.cpw-other-categories__all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    color: #365b60;
    background: #ffffff;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(7, 54, 74, 0.05);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.cpw-other-categories__links a:hover {
    color: var(--navy);
    box-shadow: 0 7px 16px rgba(8, 157, 156, 0.11);
}

/* Category name and product count */

.cpw-other-category__info {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cpw-other-category__name {
    min-width: 0;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: capitalize;
}

.cpw-other-category__count {
    display: inline-flex;
    min-height: 24px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: 1px solid rgba(8, 157, 156, 0.16);
    border-radius: 999px;
    background: #eaf9f8;
    color: #087f80;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.cpw-other-category__arrow {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 480px) {
    .cpw-other-category__info {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

.cpw-other-categories__all {
    margin-top: 13px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--teal),
            var(--deep-teal)
        );
}

.cpw-other-categories__all span:last-child {
    color: #ffffff;
}

.cpw-other-categories__empty {
    margin: 0 0 13px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
}

/* Empty products */

.cpw-products-empty {
    padding: 40px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
}

.cpw-products-empty h3 {
    margin: 0;
    color: var(--navy);
    font-size: 23px;
}

.cpw-products-empty p {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 15px;
}

/* Three product columns */

@media (max-width: 1100px) {
    .cpw-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tablet */

@media (max-width: 900px) {
    .cpw-products-layout {
        grid-template-columns: 1fr;
    }

    .cpw-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpw-other-categories__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 650px) {
    .cpw-category-products {
        padding: 58px 0;
    }

    .cpw-products-container {
        width: calc(100% - 24px);
    }

    .cpw-products-header h2 {
        font-size: 29px;
    }

    .cpw-products-grid {
        grid-template-columns: 1fr;
    }

    .cpw-product-card__image {
        min-height: auto;
    }

    .cpw-product-card__img {
        height: auto;
        max-height: none;
    }

    .cpw-other-categories__links {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   DYNAMIC CATEGORY DESCRIPTION
================================================== */

.cpw-category-description,
.cpw-category-description * {
    box-sizing: border-box;
}

.cpw-category-description {
    --aqua: #43d9dd;
    --teal: #089d9c;
    --deep-teal: #047b7b;
    --navy: #07364a;
    --gold: #d29632;
    --text: #536d71;
    --line: #d4e8e5;

    padding: 76px 0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f4fbfa 100%
        );
    font-family: Arial, sans-serif;
}

.cpw-description-container {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
}

.cpw-category-description__content {
    position: relative;
    padding: 42px 48px;
    overflow: hidden;
    color: var(--text);
    background: #ffffff;
    border-left: 5px solid var(--teal);
    border-radius: 0 15px 15px 0;
    box-shadow: 0 13px 32px rgba(7, 54, 74, 0.07);
}

/* Small decorative colour accent */

.cpw-category-description__content::after {
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 160px;
    height: 160px;
    background: rgba(67, 217, 221, 0.10);
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

/* Paragraphs */

.cpw-category-description__content p {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}

.cpw-category-description__content p:last-child {
    margin-bottom: 0;
}

/* H2 headings added inside WordPress description */

.cpw-category-description__content h2 {
    position: relative;
    z-index: 1;
    margin: 38px 0 14px;
    color: var(--navy);
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cpw-category-description__content h2:first-child {
    margin-top: 0;
}

/* H3 headings */

.cpw-category-description__content h3 {
    position: relative;
    z-index: 1;
    margin: 29px 0 11px;
    color: var(--navy);
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

/* H4 headings */

.cpw-category-description__content h4 {
    position: relative;
    z-index: 1;
    margin: 24px 0 9px;
    color: var(--deep-teal);
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

/* Lists */

.cpw-category-description__content ul,
.cpw-category-description__content ol {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    margin: 0 0 22px;
    padding-left: 22px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

.cpw-category-description__content ul li::marker {
    color: var(--teal);
}

.cpw-category-description__content ol li::marker {
    color: var(--deep-teal);
    font-weight: 700;
}

/* Strong text */

.cpw-category-description__content strong {
    color: var(--navy);
    font-weight: 700;
}

/* Links */

.cpw-category-description__content a {
    color: var(--deep-teal);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(8, 157, 156, 0.35);
    text-underline-offset: 3px;
}

.cpw-category-description__content a:hover {
    color: var(--navy);
    text-decoration-color: var(--navy);
}

/* Blockquotes */

.cpw-category-description__content blockquote {
    position: relative;
    z-index: 1;
    margin: 28px 0;
    padding: 18px 21px;
    color: #365b60;
    background: #edf9f7;
    border-left: 4px solid var(--aqua);
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    line-height: 1.75;
}

.cpw-category-description__content blockquote p {
    margin: 0;
}

/* Images added through WordPress editor */

.cpw-category-description__content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 26px auto;
    border-radius: 10px;
}

/* Tables */

.cpw-category-description__content table {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 26px 0;
    border-collapse: collapse;
    color: var(--text);
    font-size: 14px;
}

.cpw-category-description__content th,
.cpw-category-description__content td {
    padding: 12px 13px;
    border: 1px solid var(--line);
    text-align: left;
}

.cpw-category-description__content th {
    color: var(--navy);
    background: #eaf9f6;
    font-weight: 700;
}

/* Mobile */

@media (max-width: 650px) {
    .cpw-category-description {
        padding: 58px 0;
    }

    .cpw-description-container {
        width: calc(100% - 24px);
    }

    .cpw-category-description__content {
        padding: 29px 22px;
        border-left-width: 4px;
        border-radius: 0 12px 12px 0;
        box-shadow: 0 8px 22px rgba(7, 54, 74, 0.06);
    }

    .cpw-category-description__content::after {
        display: none;
    }

    .cpw-category-description__content p,
    .cpw-category-description__content ul,
    .cpw-category-description__content ol {
        font-size: 16px;
    }

    .cpw-category-description__content h2 {
        margin-top: 31px;
        font-size: 28px;
    }

    .cpw-category-description__content h3 {
        margin-top: 25px;
        font-size: 22px;
    }

    .cpw-category-description__content h4 {
        font-size: 18px;
    }

    .cpw-category-description__content table {
        display: block;
        overflow-x: auto;
    }
}

/* ==================================================
   CATEGORY-SPECIFIC PACKAGING OPTIONS
================================================== */

.cpw-packaging-options,
.cpw-packaging-options * {
    box-sizing: border-box;
}

.cpw-packaging-options {
    --aqua: #43d9dd;
    --teal: #089d9c;
    --deep-teal: #047b7b;
    --navy: #07364a;
    --gold: #d29632;
    --text: #536d71;
    --line: #d4e8e5;

    padding: 76px 0;
    background: #ffffff;
    font-family: Arial, sans-serif;
}

.cpw-packaging-options__container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.cpw-packaging-options__header {
    max-width: 790px;
    margin-bottom: 30px;
}

.cpw-packaging-options__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--deep-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.cpw-packaging-options__eyebrow::before {
    flex: 0 0 25px;
    width: 25px;
    height: 2px;
    background: var(--gold);
    content: "";
}

.cpw-packaging-options__header h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(34px, 3.6vw, 42px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.cpw-packaging-options__header > p:last-child {
    margin: 13px 0 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
}

.cpw-packaging-options__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.cpw-packaging-option {
    position: relative;
    overflow: hidden;
    padding: 25px 22px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f1faf8
        );
    border-top: 4px solid var(--aqua);
    border-radius: 11px;
    box-shadow: 0 9px 24px rgba(7, 54, 74, 0.07);
}

.cpw-packaging-option:nth-child(2) {
    border-top-color: var(--teal);
}

.cpw-packaging-option:nth-child(3) {
    border-top-color: var(--gold);
}

.cpw-packaging-option:nth-child(4) {
    border-top-color: var(--deep-teal);
}

.cpw-packaging-option__number {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    margin-bottom: 16px;
    color: var(--deep-teal);
    background: #def7f3;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.cpw-packaging-option h3 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.cpw-packaging-option p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
}

.cpw-packaging-option ul {
    display: grid;
    gap: 7px;
    margin: 16px 0 0;
    padding: 0;
    color: #49666a;
    font-size: 13px;
    line-height: 1.55;
    list-style: none;
}

.cpw-packaging-option li {
    position: relative;
    padding-left: 18px;
}

.cpw-packaging-option li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--teal);
    font-weight: 800;
    content: "✓";
}

/* Tablet */

@media (max-width: 950px) {
    .cpw-packaging-options__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 650px) {
    .cpw-packaging-options {
        padding: 58px 0;
    }

    .cpw-packaging-options__container {
        width: calc(100% - 24px);
    }

    .cpw-packaging-options__header h2 {
        font-size: 29px;
    }

    .cpw-packaging-options__grid {
        grid-template-columns: 1fr;
    }

    .cpw-packaging-option {
        padding: 23px 20px;
        box-shadow: 0 6px 18px rgba(7, 54, 74, 0.06);
    }
}

/* ==================================================
   CATEGORY FAQ
================================================== */

.cpw-category-faq,
.cpw-category-faq * {
    box-sizing: border-box;
}

.cpw-category-faq {
    --aqua: #43d9dd;
    --teal: #089d9c;
    --deep-teal: #047b7b;
    --navy: #07364a;
    --gold: #d29632;
    --text: #536d71;
    --line: #d4e8e5;

    padding: 76px 0;
    background:
        linear-gradient(
            135deg,
            #eaf9f6,
            #ffffff 62%,
            #fff8eb
        );
    font-family: Arial, sans-serif;
}

.cpw-category-faq__container {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    width: min(1050px, calc(100% - 40px));
    margin: 0 auto;
    gap: 40px;
    align-items: start;
}

.cpw-category-faq__intro {
    padding-top: 4px;
}

.cpw-category-faq__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--deep-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.cpw-category-faq__eyebrow::before {
    flex: 0 0 25px;
    width: 25px;
    height: 2px;
    background: var(--gold);
    content: "";
}

.cpw-category-faq__intro h2 {
    margin: 0;
    color: var(--navy);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.16;
}

.cpw-category-faq__intro > p:last-child {
    margin: 13px 0 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}

.cpw-category-faq__questions {
    display: grid;
    gap: 9px;
}

.cpw-category-faq__item {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(8, 157, 156, 0.13);
    border-radius: 9px;
    box-shadow: 0 5px 15px rgba(7, 54, 74, 0.05);
}

.cpw-category-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 19px;
    color: var(--navy);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
}

.cpw-category-faq__item summary::-webkit-details-marker {
    display: none;
}

.cpw-category-faq__item summary i {
    position: relative;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    background: #def7f3;
    border-radius: 50%;
}

.cpw-category-faq__item summary i::before,
.cpw-category-faq__item summary i::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: var(--deep-teal);
    transform: translate(-50%, -50%);
    content: "";
}

.cpw-category-faq__item summary i::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.cpw-category-faq__item[open] summary i::after {
    display: none;
}

.cpw-category-faq__answer {
    padding: 0 19px 18px;
}

.cpw-category-faq__answer p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.75;
}

/* Tablet */

@media (max-width: 850px) {
    .cpw-category-faq__container {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .cpw-category-faq__intro {
        max-width: 680px;
    }
}

/* Mobile */

@media (max-width: 650px) {
    .cpw-category-faq {
        padding: 58px 0;
    }

    .cpw-category-faq__container {
        width: calc(100% - 24px);
    }

    .cpw-category-faq__intro h2 {
        font-size: 29px;
    }

    .cpw-category-faq__item summary {
        padding: 15px 16px;
        font-size: 14px;
    }

    .cpw-category-faq__answer {
        padding: 0 16px 16px;
    }

    .cpw-category-faq__answer p {
        font-size: 14px;
    }
}