/**
 * Single Product Page
 * File: /assets/css/single-product-page.css
 */

/* =========================================================
   1. Product page foundation
========================================================= */

.cpw-product-page {
    --cpw-teal: #089f9d;
    --cpw-teal-dark: #067b79;
    --cpw-turquoise: #45dade;
    --cpw-navy: #07394b;
    --cpw-text: #29464d;
    --cpw-muted: #617a80;
    --cpw-gold: #d9a52c;
    --cpw-line: #cee3e1;
    --cpw-soft-line: #deecea;
    --cpw-mint: #edf9f7;
    --cpw-light: #f7fbfa;
    --cpw-white: #ffffff;
    --cpw-error: #bb3e3e;

    width: 100%;
    overflow: hidden;
    color: var(--cpw-text);
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(69, 218, 222, 0.1),
            transparent 28%
        ),
        linear-gradient(180deg, #f5fbfa 0%, #ffffff 640px);
    font-family: Arial, sans-serif;
}

.cpw-product-page,
.cpw-product-page * {
    box-sizing: border-box;
}

.cpw-product-page img {
    display: block;
    max-width: 100%;
}

.cpw-product-container {
    width: min(1440px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

/* =========================================================
   2. Product hero
========================================================= */

.cpw-product-hero {
    position: relative;
    padding: 20px 0 58px;
}

.cpw-product-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(330px, 1.04fr)
        minmax(290px, 0.84fr)
        minmax(390px, 1.12fr);
    gap: 28px;
    align-items: start;
}

/* =========================================================
   3. Breadcrumb
========================================================= */

.cpw-product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    color: #71868b;
    font-size: 14px;
    line-height: 1.5;
}

.cpw-product-breadcrumb a {
    color: var(--cpw-teal-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cpw-product-breadcrumb a:hover,
.cpw-product-breadcrumb a:focus-visible {
    color: var(--cpw-navy);
    text-decoration: underline;
}

.cpw-product-breadcrumb > span[aria-hidden="true"] {
    color: var(--cpw-gold);
}

.cpw-product-breadcrumb [aria-current="page"] {
    overflow: hidden;
    max-width: 360px;
    color: #4f686e;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   4. Product gallery
========================================================= */

.cpw-product-gallery {
    width: 100%;
    min-width: 0;
}

/* Main image outer container */
.cpw-product-main-image {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 520px;
    padding: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--cpw-soft-line);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(7, 57, 75, 0.08);
}

/* Light decorative background */
.cpw-product-main-image::before {
    position: absolute;
    top: -90px;
    left: -90px;
    width: 220px;
    height: 220px;
    pointer-events: none;
    background: rgba(69, 218, 222, 0.07);
    border-radius: 50%;
    content: "";
}

/* Main product image */
.cpw-product-main-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 500px;
    max-width: 100%;
    padding: 0;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    border-radius: 16px;
    transition: opacity 0.2s ease;
}

.cpw-product-main-image img.is-changing {
    opacity: 0.35;
}

/* Thumbnail row */
.cpw-product-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

/* Normal thumbnail */
.cpw-product-page button.cpw-product-thumbnail {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1.25;
    padding: 5px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #c9dfdd !important;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(7, 57, 75, 0.05);
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Thumbnail hover—teal only */
.cpw-product-page button.cpw-product-thumbnail:hover {
    background-color: #f0faf8 !important;
    background-image: none !important;
    border-color: #009c96 !important;
    color: #07394b !important;
    outline: none !important;
    box-shadow:
        0 0 0 3px rgba(0, 156, 150, 0.1),
        0 10px 22px rgba(7, 57, 75, 0.12) !important;
    transform: translateY(-3px);
}

/* Currently selected thumbnail */
.cpw-product-page button.cpw-product-thumbnail.is-active {
    background-color: #eaf8f6 !important;
    background-image: none !important;
    border: 2px solid #009c96 !important;
    color: #07394b !important;
    outline: none !important;
    box-shadow:
        0 0 0 3px rgba(0, 156, 150, 0.12),
        0 10px 22px rgba(7, 57, 75, 0.12) !important;
    transform: none;
}

/* Click and keyboard focus—teal only */
.cpw-product-page button.cpw-product-thumbnail:focus,
.cpw-product-page button.cpw-product-thumbnail:focus-visible,
.cpw-product-page button.cpw-product-thumbnail:active {
    background-color: #eaf8f6 !important;
    background-image: none !important;
    border-color: #009c96 !important;
    color: #07394b !important;
    outline: 3px solid rgba(0, 156, 150, 0.18) !important;
    outline-offset: 2px;
}

/* Selected thumbnail hover */
.cpw-product-page button.cpw-product-thumbnail.is-active:hover {
    background-color: #eaf8f6 !important;
    border-color: #009c96 !important;
}

/* Complete thumbnail image */
.cpw-product-page button.cpw-product-thumbnail img {
    display: block;
    width: 100%;
    height: 82px;
    max-width: 100%;
    max-height: 82px;
    padding: 0;
    object-fit: contain !important;
    object-position: center !important;
    background: #ffffff;
    border-radius: 7px;
    pointer-events: none;
}

/* Tablet */
@media (max-width: 900px) {
    .cpw-product-page .cpw-product-gallery {
        width: 100%;
    }

    .cpw-product-page .cpw-product-main-image {
        min-height: 480px;
        padding: 8px;
    }

    .cpw-product-page .cpw-product-main-image img {
        height: 450px;
    }
}

/* Mobile */
@media (max-width: 680px) {
    .cpw-product-page .cpw-product-main-image {
        min-height: 340px;
        padding: 6px;
        border-radius: 16px;
    }

    .cpw-product-page .cpw-product-main-image img {
        height: 330px;
        border-radius: 12px;
    }

    .cpw-product-page .cpw-product-thumbnails {
        gap: 7px;
        margin-top: 10px;
    }

    .cpw-product-page button.cpw-product-thumbnail {
        padding: 4px;
        border-radius: 9px;
    }

    .cpw-product-page button.cpw-product-thumbnail img {
        height: 58px;
        max-height: 58px;
        border-radius: 5px;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .cpw-product-page .cpw-product-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* =========================================================
   5. Dynamic product summary
========================================================= */

.cpw-product-summary {
    min-width: 0;
    padding: 26px 4px 10px;
}

.cpw-product-summary h1 {
    max-width: 680px;
    margin: 0;
    color: var(--cpw-navy);
    font-family: Arial, sans-serif;
    font-size: clamp(32px, 2.7vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.cpw-product-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 15px;
    color: #526c72;
    font-size: 13px;
    line-height: 1.4;
}

.cpw-product-stars .star-rating {
    float: none;
    margin: 0;
    color: var(--cpw-gold);
}

.cpw-product-short-description {
    margin-top: 18px;
    color: var(--cpw-muted);
    font-size: 16px;
    line-height: 1.7;
}

.cpw-product-short-description p {
    margin: 0 0 12px;
}

.cpw-product-short-description p:last-child {
    margin-bottom: 0;
}

.cpw-product-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.cpw-product-benefit {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cpw-product-benefit > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--cpw-teal-dark);
    background: #e2f7f4;
    border: 1px solid #c5ebe7;
    border-radius: 11px;
    font-size: 17px;
    font-weight: 700;
}

.cpw-product-benefit strong {
    color: #31575f;
    font-size: 13px;
    line-height: 1.35;
}

.cpw-product-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.cpw-product-assurances span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 6px 11px;
    color: #356168;
    background: var(--cpw-white);
    border: 1px solid var(--cpw-line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(7, 57, 75, 0.04);
}

/* =========================================================
   6. Professional product quote card
========================================================= */

.cpw-product-quote {
    position: relative;
    min-width: 0;
    padding: 30px 27px 27px;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            rgba(229, 248, 246, 0.75) 0,
            #ffffff 170px
        );
    border: 1px solid #c9e1df;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(7, 57, 75, 0.1);
}

.cpw-product-quote::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--cpw-turquoise),
        var(--cpw-teal),
        var(--cpw-teal-dark)
    );
    content: "";
}

.cpw-product-quote::after {
    position: absolute;
    top: -85px;
    right: -80px;
    width: 210px;
    height: 210px;
    pointer-events: none;
    background: rgba(69, 218, 222, 0.08);
    border-radius: 50%;
    content: "";
}

/* Quote header */

.cpw-quote-header {
    position: relative;
    z-index: 1;
}

.cpw-quote-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 9px;
    color: var(--cpw-teal-dark);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cpw-quote-eyebrow::before {
    width: 24px;
    height: 2px;
    background: var(--cpw-gold);
    content: "";
}

.cpw-quote-header h2 {
    max-width: 390px;
    margin: 0;
    color: var(--cpw-navy);
    font-family: Arial, sans-serif;
    font-size: clamp(24px, 1.7vw, 28px);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -0.025em;
}

.cpw-quote-header > p:last-child {
    max-width: 380px;
    margin: 10px 0 0;
    color: var(--cpw-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* =========================================================
   7. Quote progress
========================================================= */

.cpw-quote-progress {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 23px 0 25px;
}

.cpw-quote-progress::before {
    position: absolute;
    z-index: -1;
    top: 17px;
    right: 9%;
    left: 9%;
    height: 2px;
    background: #c7dfdd;
    content: "";
}

.cpw-quote-progress-item {
    position: relative;
    min-width: 0;
    text-align: center;
}

.cpw-quote-progress-item > span {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    margin: 0 auto;
    color: #42676e;
    background: var(--cpw-white);
    border: 2px solid #bcdcd9;
    border-radius: 50%;
    box-shadow: 0 3px 9px rgba(7, 57, 75, 0.07);
    font-size: 12px;
    font-weight: 700;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.cpw-quote-progress-item small {
    display: block;
    overflow: hidden;
    margin-top: 6px;
    color: #71868b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cpw-quote-progress-item.is-active > span {
    color: var(--cpw-white);
    background: var(--cpw-teal);
    border-color: var(--cpw-teal);
    box-shadow: 0 6px 15px rgba(8, 159, 157, 0.22);
}

.cpw-quote-progress-item.is-active small {
    color: var(--cpw-teal-dark);
    font-weight: 700;
}

.cpw-quote-progress-item.is-complete > span {
    color: transparent;
    background: #36b9b5;
    border-color: #36b9b5;
}

.cpw-quote-progress-item.is-complete > span::before {
    position: absolute;
    color: var(--cpw-white);
    content: "✓";
    font-size: 13px;
}

/* =========================================================
   8. Quote steps
========================================================= */

.cpw-product-quote-form,
.cpw-quote-step {
    min-width: 0;
}

.cpw-quote-step[hidden] {
    display: none !important;
}

.cpw-quote-step > h3 {
    margin: 0 0 15px;
    color: var(--cpw-navy);
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

/* =========================================================
   9. Selectable style cards
========================================================= */

.cpw-quote-style-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cpw-quote-style {
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 82px;
    padding: 9px 11px;
    color: #315a61;
    background: #f7fbfa;
    border: 1px solid var(--cpw-line);
    border-radius: 11px;
    font: 700 12px/1.35 Arial, sans-serif;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.cpw-quote-style:hover {
    background: #eff9f7;
    border-color: #7dc8c4;
    transform: translateY(-1px);
}

.cpw-quote-style.is-selected {
    color: var(--cpw-teal-dark);
    background: #e7f8f5;
    border: 2px solid var(--cpw-teal);
    box-shadow: 0 7px 17px rgba(8, 159, 157, 0.13);
}

.cpw-quote-style.is-selected::after {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    color: var(--cpw-white);
    background: var(--cpw-teal);
    border-radius: 50%;
    content: "✓";
    font-size: 10px;
}

.cpw-quote-style:focus-visible {
    outline: 3px solid rgba(8, 159, 157, 0.23);
    outline-offset: 2px;
}

.cpw-quote-style img {
    width: 62px;
    height: 58px;
    padding: 4px;
    object-fit: contain;
    object-position: center;
    background: var(--cpw-white);
    border-radius: 8px;
}

.cpw-custom-style-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 58px;
    color: var(--cpw-teal-dark);
    background: #e1f5f2;
    border: 1px dashed #87c9c4;
    border-radius: 8px;
    font-size: 26px;
    font-weight: 400;
}

/* =========================================================
   10. Quote fields
========================================================= */

.cpw-quote-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 11px;
}

.cpw-quote-fields > label,
.cpw-quote-details {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.cpw-quote-field-wide {
    grid-column: 1 / -1;
}

.cpw-quote-fields label > span,
.cpw-quote-details > span {
    color: #153f4c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.cpw-quote-fields input,
.cpw-quote-fields select,
.cpw-quote-fields textarea,
.cpw-quote-details textarea {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 11px 13px;
    color: var(--cpw-text);
    background: #fbfdfd;
    border: 1px solid #c7ddda;
    border-radius: 8px;
    outline: none;
    font: 14px/1.4 Arial, sans-serif;
    box-shadow: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cpw-quote-fields input::placeholder,
.cpw-quote-fields textarea::placeholder,
.cpw-quote-details textarea::placeholder {
    color: #87999d;
    opacity: 1;
}

.cpw-quote-fields input:hover,
.cpw-quote-fields select:hover,
.cpw-quote-fields textarea:hover,
.cpw-quote-details textarea:hover {
    border-color: #8bc9c5;
}

.cpw-quote-fields input:focus,
.cpw-quote-fields select:focus,
.cpw-quote-fields textarea:focus,
.cpw-quote-details textarea:focus {
    background: var(--cpw-white);
    border-color: var(--cpw-teal);
    box-shadow: 0 0 0 3px rgba(8, 159, 157, 0.12);
}

.cpw-quote-fields input.cpw-field-error,
.cpw-quote-fields select.cpw-field-error,
.cpw-quote-fields textarea.cpw-field-error,
.cpw-quote-consent.cpw-field-error {
    border-color: var(--cpw-error);
    box-shadow: 0 0 0 3px rgba(187, 62, 62, 0.1);
}

.cpw-artwork-field {
    padding: 13px;
    background: var(--cpw-mint);
    border: 1px dashed #81c6c1;
    border-radius: 9px;
}

.cpw-artwork-field input[type="file"] {
    min-height: 43px;
    padding: 8px;
    background: var(--cpw-white);
}

.cpw-artwork-field small {
    color: #6b8186;
    font-size: 11px;
    line-height: 1.4;
}

/* =========================================================
   11. Review step
========================================================= */

.cpw-quote-review {
    display: grid;
    gap: 14px;
}

.cpw-quote-review-style {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 13px;
    background: var(--cpw-mint);
    border: 1px solid #c9e4e1;
    border-radius: 10px;
}

.cpw-quote-review-style img {
    flex: 0 0 62px;
    width: 62px;
    height: 56px;
    padding: 4px;
    object-fit: contain;
    background: var(--cpw-white);
    border-radius: 8px;
}

.cpw-quote-review-style small,
.cpw-quote-review-style strong {
    display: block;
}

.cpw-quote-review-style small {
    color: #71858a;
    font-size: 11px;
}

.cpw-quote-review-style strong {
    margin-top: 2px;
    color: var(--cpw-navy);
    font-size: 14px;
}

.cpw-quote-review-details {
    display: grid;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--cpw-line);
    border-radius: 10px;
}

.cpw-quote-review-details > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    margin: 0;
    border-bottom: 1px solid var(--cpw-soft-line);
}

.cpw-quote-review-details > div:last-child {
    border-bottom: 0;
}

.cpw-quote-review-details dt,
.cpw-quote-review-details dd {
    margin: 0;
    padding: 9px 11px;
    font-size: 12px;
    line-height: 1.4;
}

.cpw-quote-review-details dt {
    color: var(--cpw-navy);
    background: #eef8f6;
    font-weight: 700;
}

.cpw-quote-review-details dd {
    overflow-wrap: anywhere;
    color: #5c7378;
    background: var(--cpw-white);
}

.cpw-quote-details {
    margin-top: 15px;
}

.cpw-quote-details textarea {
    min-height: 95px;
    resize: vertical;
}

/* =========================================================
   12. Consent, navigation and messages
========================================================= */

.cpw-quote-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin-top: 15px;
    padding: 10px;
    color: #4c686e;
    background: #f7fbfa;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.cpw-quote-consent input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--cpw-teal);
}

.cpw-quote-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 19px;
}

.cpw-quote-navigation button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 49px;
    padding: 11px 17px;
    border-radius: 8px;
    font: 700 14px/1.25 Arial, sans-serif;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.cpw-quote-next,
.cpw-quote-submit {
    flex: 1;
    color: var(--cpw-white);
    background: var(--cpw-teal);
    border: 1px solid var(--cpw-teal);
    box-shadow: 0 7px 17px rgba(8, 159, 157, 0.17);
}

.cpw-quote-next:hover,
.cpw-quote-submit:hover {
    color: var(--cpw-white);
    background: var(--cpw-teal-dark);
    border-color: var(--cpw-teal-dark);
    transform: translateY(-1px);
}

.cpw-quote-back {
    flex: 0 0 auto;
    color: #345f66;
    background: var(--cpw-white);
    border: 1px solid #bed7d4;
}

.cpw-quote-back:hover {
    color: var(--cpw-teal-dark);
    background: var(--cpw-mint);
    border-color: #78bcb8;
}

.cpw-quote-navigation button:focus-visible {
    outline: 3px solid rgba(8, 159, 157, 0.24);
    outline-offset: 2px;
}

.cpw-quote-navigation button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.cpw-quote-privacy {
    margin: 9px 0 0;
    color: #71868a;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.cpw-product-quote-message {
    display: none;
    margin-top: 14px;
    padding: 11px 13px;
    color: #285c61;
    background: #eaf8f5;
    border: 1px solid #bbdeda;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.cpw-product-quote-message:not(:empty) {
    display: block;
}

.cpw-product-quote-message.is-error {
    color: #8e3030;
    background: #fff1f1;
    border-color: #efc4c4;
}

.cpw-product-quote-message.is-success {
    color: #226256;
    background: #eaf8f2;
    border-color: #b9dfd2;
}

/* =========================================================
   13. Tablet
========================================================= */

@media (max-width: 1240px) {
    .cpw-product-container {
        width: min(1180px, calc(100% - 40px));
    }

    .cpw-product-hero-grid {
        grid-template-columns:
            minmax(340px, 1fr)
            minmax(320px, 1fr);
    }

    .cpw-product-quote {
        grid-column: 1 / -1;
        width: min(820px, 100%);
        margin-right: auto;
        margin-left: auto;
    }

    .cpw-quote-style-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .cpw-quote-style {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 120px;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .cpw-product-hero {
        padding-bottom: 46px;
    }

    .cpw-product-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cpw-product-summary {
        padding: 10px 3px;
    }

    .cpw-product-quote {
        grid-column: auto;
        max-width: none;
    }

    .cpw-quote-style-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* =========================================================
   14. Mobile
========================================================= */

@media (max-width: 680px) {
    .cpw-product-container {
        width: min(100% - 24px, 640px);
    }

    .cpw-product-hero {
        padding-top: 14px;
        padding-bottom: 38px;
    }

    .cpw-product-breadcrumb {
        gap: 6px;
        margin-bottom: 15px;
        font-size: 12px;
    }

    .cpw-product-breadcrumb [aria-current="page"] {
        max-width: 190px;
    }

    .cpw-product-summary h1 {
        font-size: clamp(31px, 9vw, 39px);
    }

    .cpw-product-short-description {
        font-size: 15px;
        line-height: 1.65;
    }

    .cpw-product-benefits {
        grid-template-columns: 1fr 1fr;
        gap: 11px 8px;
    }

    .cpw-product-benefit {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 8px;
    }

    .cpw-product-benefit > span {
        width: 36px;
        height: 36px;
    }

    .cpw-product-benefit strong {
        font-size: 12px;
    }

    .cpw-product-quote {
        padding: 26px 17px 21px;
        border-radius: 15px;
    }

    .cpw-quote-header h2 {
        font-size: 25px;
    }

    .cpw-quote-header > p:last-child {
        font-size: 13px;
    }

    .cpw-quote-progress {
        margin: 20px 0 22px;
    }

    .cpw-quote-progress::before {
        top: 15px;
    }

    .cpw-quote-progress-item > span {
        width: 31px;
        height: 31px;
    }

    .cpw-quote-progress-item small {
        font-size: 9px;
    }

    .cpw-quote-style-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpw-quote-style {
        grid-template-columns: 52px minmax(0, 1fr);
        justify-items: initial;
        min-height: 75px;
        padding: 8px;
        text-align: left;
    }

    .cpw-quote-style img,
    .cpw-custom-style-icon {
        width: 52px;
        height: 50px;
    }

    .cpw-quote-fields {
        grid-template-columns: 1fr;
    }

    .cpw-quote-field-wide {
        grid-column: auto;
    }

    .cpw-quote-navigation {
        flex-wrap: wrap;
    }

    .cpw-quote-back {
        flex: 1 1 105px;
    }

    .cpw-quote-next,
    .cpw-quote-submit {
        flex: 2 1 180px;
    }
}

@media (max-width: 420px) {
    .cpw-product-benefits,
    .cpw-quote-style-grid {
        grid-template-columns: 1fr;
    }

    .cpw-quote-progress-item small {
        font-size: 8px;
    }

    .cpw-quote-review-details > div {
        grid-template-columns: 90px minmax(0, 1fr);
    }
}

/* ==================================================
   PACKAGING SERVICE STANDARDS
================================================== */

.cpw-packaging-standards {
    padding: 30px 0;
    background: #f4fbfa;
}

.cpw-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.cpw-packaging-standards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.cpw-packaging-standard-card {
    position: relative;
    min-width: 0;
    padding: 20px 18px 16px;
    border: 1px solid #d5e6e4;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(7, 47, 67, 0.05);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.cpw-packaging-standard-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 12px 12px 0 0;
    background: #009b94;
    content: "";
}

.cpw-packaging-standard-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 2px 0 12px;
    place-items: center;
    border-radius: 50%;
    background: #e8f6f3;
    color: #008b85;
}

.cpw-packaging-standard-icon svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cpw-packaging-standard-card h3 {
    margin: 0 0 6px;
    color: #082f42;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.cpw-packaging-standard-card p {
    margin: 0;
    color: #506d79;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.cpw-packaging-standard-line {
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 12px;
    border-radius: 2px;
    background: #009b94;
}

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
    .cpw-packaging-standard-card:hover {
        box-shadow: 0 10px 24px rgba(7, 47, 67, 0.09);
        transform: translateY(-3px) scale(1.01);
    }
}

/* Tablet */
@media (max-width: 900px) {
    .cpw-packaging-standards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 560px) {
    .cpw-packaging-standards {
        padding: 24px 0;
    }

    .cpw-packaging-standards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cpw-packaging-standard-card {
        padding: 19px 17px 15px;
    }

    .cpw-packaging-standard-card h3 {
        font-size: 17px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .cpw-packaging-standard-card {
        transition: none;
    }
}

/* =========================================================
   DYNAMIC PRODUCT INFORMATION
========================================================= */

.cpw-product-information {
    position: relative;
    padding: 24px 0 78px;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #f3faf9 0%,
        #ffffff 100%
    );
    font-family: Arial, sans-serif;
}

.cpw-product-information::before {
    position: absolute;
    top: -160px;
    right: -130px;
    width: 360px;
    height: 360px;
    pointer-events: none;
    background: rgba(8, 157, 156, 0.045);
    border-radius: 50%;
    content: "";
}

.cpw-product-information-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.cpw-product-information-main {
    min-width: 0;
}


/* =========================================================
   INFORMATION TABS
========================================================= */

.cpw-product-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #c9e1df;
    border-bottom: 0;
    border-radius: 15px 15px 0 0;
}

.cpw-product-page button.cpw-product-tab {
    position: relative;
    min-height: 56px;
    margin: 0;
    padding: 13px 18px;
    appearance: none;
    -webkit-appearance: none;
    color: #49686e !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 0 !important;
    border-right: 1px solid #c9e1df !important;
    border-radius: 0 !important;
    outline: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: none !important;
    transition: color 0.2s ease;
}

.cpw-product-page button.cpw-product-tab:last-child {
    border-right: 0 !important;
}

.cpw-product-page button.cpw-product-tab::after {
    position: absolute;
    right: 20%;
    bottom: 0;
    left: 20%;
    height: 3px;
    background: transparent;
    border-radius: 5px 5px 0 0;
    content: "";
    transition:
        right 0.2s ease,
        left 0.2s ease,
        background-color 0.2s ease;
}

.cpw-product-page button.cpw-product-tab:hover {
    color: #007f7c !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

.cpw-product-page button.cpw-product-tab.is-active,
.cpw-product-page button.cpw-product-tab.is-active:hover,
.cpw-product-page button.cpw-product-tab:active,
.cpw-product-page button.cpw-product-tab:focus {
    color: #07394b !important;
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

.cpw-product-page button.cpw-product-tab.is-active::after {
    right: 14%;
    left: 14%;
    background: #089d9c;
}

.cpw-product-page button.cpw-product-tab:focus-visible {
    z-index: 2;
    outline: 3px solid rgba(8, 157, 156, 0.2);
    outline-offset: -4px;
}


/* =========================================================
   TAB CONTENT
========================================================= */

.cpw-product-tab-content {
    min-height: 430px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #c9e1df;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 14px 36px rgba(7, 57, 75, 0.075);
}

.cpw-product-tab-panel {
    padding: 38px 38px 40px;
    color: #4f6b71;
    background: #ffffff;
    font-family: Arial, sans-serif;
}

.cpw-product-tab-panel[hidden] {
    display: none !important;
}


/* =========================================================
   DESCRIPTION AND SPECIFICATIONS TYPOGRAPHY
========================================================= */

.cpw-product-description-content,
.cpw-product-specifications-content {
    width: 100%;
    color: #4f6b71;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.cpw-product-description-content > *:first-child,
.cpw-product-specifications-content > *:first-child {
    margin-top: 0;
}

.cpw-product-description-content > *:last-child,
.cpw-product-specifications-content > *:last-child {
    margin-bottom: 0;
}


/* H2 — medium heading */

.cpw-product-description-content h2,
.cpw-product-specifications-content h2 {
    margin: 27px 0 12px;
    color: #171717;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
}


/* H3 — smaller than H2 */

.cpw-product-description-content h3,
.cpw-product-specifications-content h3 {
    margin: 24px 0 10px;
    color: #07394b;
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.35;
}


/* H4 — smaller than H3 */

.cpw-product-description-content h4,
.cpw-product-specifications-content h4 {
    margin: 21px 0 9px;
    color: #173743;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.cpw-product-description-content p,
.cpw-product-specifications-content p {
    margin: 0 0 17px;
}

.cpw-product-description-content strong,
.cpw-product-specifications-content strong {
    color: #173743;
    font-weight: 600;
}

.cpw-product-description-content ul,
.cpw-product-description-content ol,
.cpw-product-specifications-content ul,
.cpw-product-specifications-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.cpw-product-description-content li,
.cpw-product-specifications-content li {
    margin-bottom: 8px;
    padding-left: 3px;
}

.cpw-product-description-content li::marker,
.cpw-product-specifications-content li::marker {
    color: #089d9c;
}

.cpw-product-description-content a,
.cpw-product-specifications-content a {
    color: #007f7c;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cpw-product-description-content a:hover,
.cpw-product-specifications-content a:hover {
    color: #055f61;
}


/* =========================================================
   EMPTY MESSAGE
========================================================= */

.cpw-product-empty-message {
    margin: 0;
    padding: 20px 21px;
    color: #526e74;
    background: #f4faf9;
    border: 1px solid #d6e8e6;
    border-left: 4px solid #089d9c;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.65;
}


/* ==================================================
   SIMPLE SPECIFICATIONS TABLE
================================================== */

/*
 * These styles only apply if a table is manually
 * added inside the WordPress Specs editor.
 */
.cpw-product-specifications-content table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    background: transparent;
}

.cpw-product-specifications-content th,
.cpw-product-specifications-content td {
    padding: 10px 12px;
    border: 1px solid #d8e3e4;
    background: transparent;
    color: inherit;
    text-align: left;
    vertical-align: top;
}

.cpw-product-specifications-content th {
    color: #082f42;
    font-weight: 600;
}

/* Remove alternating row colours */
.cpw-product-specifications-content tr,
.cpw-product-specifications-content tr:nth-child(odd),
.cpw-product-specifications-content tr:nth-child(even) {
    background: transparent;
}

@media (max-width: 640px) {
    .cpw-product-specifications-content {
        overflow-x: auto;
    }

    .cpw-product-specifications-content table {
        min-width: 520px;
    }
}


/* =========================================================
   PRODUCT FAQ
========================================================= */

.cpw-product-faq-list {
    display: grid;
    gap: 12px;
}

.cpw-product-faq-item {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #c9e1df;
    border-radius: 11px;
    box-shadow: 0 6px 18px rgba(7, 57, 75, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cpw-product-faq-item:hover {
    border-color: #9bcfca;
}

.cpw-product-faq-item[open] {
    border-color: #8bcac6;
    box-shadow: 0 9px 24px rgba(7, 57, 75, 0.07);
}

.cpw-product-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 19px;
    color: #07394b;
    background: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.cpw-product-faq-item[open] summary {
    background: #f4faf9;
}

.cpw-product-faq-item summary::-webkit-details-marker {
    display: none;
}

.cpw-product-faq-item summary i {
    position: relative;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    background: #dff5f2;
    border-radius: 50%;
}

.cpw-product-faq-item summary i::before,
.cpw-product-faq-item summary i::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: #007f7c;
    content: "";
    transform: translate(-50%, -50%);
}

.cpw-product-faq-item summary i::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.cpw-product-faq-item[open] summary i::after {
    display: none;
}

.cpw-product-faq-answer {
    padding: 17px 19px 19px;
    color: #4f6b71;
    background: #ffffff;
    border-top: 1px solid #e1eeec;
    font-size: 15px;
    line-height: 1.7;
}

.cpw-product-faq-answer > *:first-child {
    margin-top: 0;
}

.cpw-product-faq-answer > *:last-child {
    margin-bottom: 0;
}


/* =========================================================
   RIGHT-SIDE INFORMATION CARDS
========================================================= */

.cpw-product-information-side {
    display: grid;
    gap: 18px;
}

.cpw-product-feature-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #c9e1df;
    border-radius: 16px;
    box-shadow: 0 12px 31px rgba(7, 57, 75, 0.07);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.cpw-product-feature-card:hover {
    border-color: #9ccfcb;
    box-shadow: 0 17px 38px rgba(7, 57, 75, 0.1);
    transform: translateY(-3px);
}

.cpw-product-feature-copy {
    padding: 25px 24px 21px;
}

.cpw-product-feature-copy > span {
    display: block;
    margin-bottom: 9px;
    color: #007f7c;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cpw-product-page .cpw-product-feature-card
.cpw-product-feature-copy h2 {
    margin: 0;
    color: #171717;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.cpw-product-feature-copy ul {
    display: grid;
    gap: 10px;
    margin: 19px 0 0;
    padding: 0;
    list-style: none;
}

.cpw-product-feature-copy li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    color: #4f6b71;
    font-size: 13px;
    line-height: 1.5;
}

.cpw-product-feature-copy li::before {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #ffffff;
    background: #089d9c;
    border-radius: 50%;
    content: "✓";
    font-size: 10px;
    font-weight: 700;
}

.cpw-product-feature-image {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 215px;
    padding: 19px;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #eaf8f6 0%,
        #fff8ea 100%
    );
}

.cpw-product-feature-image::before {
    position: absolute;
    top: -60px;
    right: -50px;
    width: 145px;
    height: 145px;
    background: rgba(8, 157, 156, 0.06);
    border-radius: 50%;
    content: "";
}

.cpw-product-feature-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    object-position: center;
    
    );
}

.cpw-product-feature-image--right img {
    transform: rotate(4deg) scale(0.89);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1020px) {
    .cpw-product-information-layout {
        grid-template-columns: 1fr;
    }

    .cpw-product-information-side {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 680px) {
    .cpw-product-information {
        padding: 15px 0 52px;
    }

    .cpw-product-tabs {
        border-radius: 12px 12px 0 0;
    }

    .cpw-product-page button.cpw-product-tab {
        min-height: 50px;
        padding: 10px 7px;
        font-size: 13px;
    }

    .cpw-product-tab-content {
        min-height: 0;
        border-radius: 0 0 12px 12px;
    }

    .cpw-product-tab-panel {
        padding: 27px 19px;
    }

    .cpw-product-description-content,
    .cpw-product-specifications-content {
        font-size: 15px;
    }

    .cpw-product-description-content h2,
    .cpw-product-specifications-content h2 {
        font-size: 22px;
    }

    .cpw-product-description-content h3,
    .cpw-product-specifications-content h3 {
        font-size: 19px;
    }

    .cpw-product-description-content h4,
    .cpw-product-specifications-content h4 {
        font-size: 17px;
    }

    .cpw-product-specifications-content table,
    .cpw-product-specifications-content tbody,
    .cpw-product-specifications-content tr,
    .cpw-product-specifications-content th,
    .cpw-product-specifications-content td {
        display: block;
        width: 100%;
    }

    .cpw-product-specifications-content tr {
        border-bottom: 1px solid #cee3e1;
    }

    .cpw-product-specifications-content tr:last-child {
        border-bottom: 0;
    }

    .cpw-product-specifications-content th {
        padding: 12px 15px 7px;
        border-bottom: 0;
    }

    .cpw-product-specifications-content td {
        padding: 7px 15px 13px;
        border-bottom: 0;
    }

    .cpw-product-information-side {
        grid-template-columns: 1fr;
    }

    .cpw-product-feature-copy {
        padding: 22px 20px 19px;
    }

    .cpw-product-page .cpw-product-feature-card
    .cpw-product-feature-copy h2 {
        font-size: 20px;
    }

    .cpw-product-feature-image {
        min-height: 195px;
    }

    .cpw-product-feature-image img {
        height: 170px;
    }
}

/* ==================================================
   PRODUCT QUOTATION CHECKLIST
================================================== */

.cpw-quote-checklist {
    overflow: hidden;
}

.cpw-quote-checklist .cpw-product-feature-copy {
    padding: 26px 24px 24px;
}

.cpw-quote-checklist .cpw-product-feature-copy > span {
    display: block;
    margin: 0 0 9px;
    color: #008b86;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.cpw-quote-checklist .cpw-product-feature-copy h2 {
    margin: 0 0 11px;
    color: #082f42;
    font-size: clamp(21px, 1.55vw, 25px);
    font-weight: 500;
    line-height: 1.28;
}

.cpw-quote-checklist-intro {
    margin: 0 0 18px;
    color: #526d79;
    font-size: 14px;
    line-height: 1.6;
}

.cpw-quote-checklist-items {
    margin: 0;
    padding: 0;
}

.cpw-quote-checklist-items > div {
    padding: 12px 0;
    border-top: 1px solid #dce9e8;
}

.cpw-quote-checklist-items > div:last-child {
    padding-bottom: 0;
}

.cpw-quote-checklist-items dt {
    position: relative;
    margin: 0 0 3px;
    padding-left: 18px;
    color: #0b3b4d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.cpw-quote-checklist-items dt::before {
    position: absolute;
    top: 7px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #08a29c;
    content: "";
}

.cpw-quote-checklist-items dd {
    margin: 0;
    padding-left: 18px;
    color: #617985;
    font-size: 13px;
    line-height: 1.5;
}

.cpw-quote-checklist-image {
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border-top: 1px solid #dce9e8;
    background: #f5f9f8;
}

.cpw-quote-checklist-image img,
.cpw-quote-checklist-featured-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767px) {
    .cpw-quote-checklist .cpw-product-feature-copy {
        padding: 22px 18px;
    }

    .cpw-quote-checklist .cpw-product-feature-copy h2 {
        font-size: 21px;
    }
}

/* =========================================================
   Customisation options
========================================================= */

.cpw-customisation {
    position: relative;
    padding: 82px 0;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #f3faf9 0%,
            #ffffff 100%
        );
    font-family: Arial, sans-serif;
}

/* Background decoration */
.cpw-customisation::before {
    position: absolute;
    top: -140px;
    right: -110px;
    width: 340px;
    height: 340px;
    pointer-events: none;
    background: rgba(0, 156, 150, 0.055);
    border-radius: 50%;
    content: "";
}

/* Section heading */
.cpw-customisation-header {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto 36px;
    text-align: center;
}

.cpw-customisation-header > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #007f7c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cpw-customisation-header > span::before,
.cpw-customisation-header > span::after {
    width: 22px;
    height: 2px;
    background: #e3a12a;
    content: "";
}

.cpw-customisation-header h2 {
    margin: 0;
    color: var(--cpw-navy);
    font-family: Arial, sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.cpw-customisation-header p {
    max-width: 720px;
    margin: 13px auto 0;
    color: #496975;
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

/* Tabs outer container */
.cpw-customisation-tabs {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 24px;
    padding: 7px;
    background: #e7f5f3;
    border: 1px solid #c5e1de;
    border-radius: 17px;
}

/* Normal tab */
.cpw-product-page button.cpw-customisation-tab {
    position: relative;
    min-height: 54px;
    padding: 12px 16px;
    appearance: none;
    -webkit-appearance: none;
    color: #294f5c !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    border-radius: 12px;
    outline: none;
    font: 700 15px/1.4 Arial, sans-serif;
    cursor: pointer;
    box-shadow: none !important;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Tab hover */
.cpw-product-page button.cpw-customisation-tab:hover {
    color: #007f7c !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: #b9dfdc !important;
    outline: none !important;
    box-shadow: 0 7px 17px rgba(7, 57, 75, 0.08) !important;
    transform: translateY(-1px);
}

/* Selected tab */
.cpw-product-page button.cpw-customisation-tab.is-active {
    color: #ffffff !important;
    background-color: #009c96 !important;
    background-image: none !important;
    border-color: #009c96 !important;
    outline: none !important;
    box-shadow: 0 9px 20px rgba(0, 156, 150, 0.22) !important;
    transform: none;
}

/* Selected tab hover */
.cpw-product-page button.cpw-customisation-tab.is-active:hover {
    color: #ffffff !important;
    background-color: #008984 !important;
    border-color: #008984 !important;
    transform: none;
}

/* Tab focus */
.cpw-product-page button.cpw-customisation-tab:focus,
.cpw-product-page button.cpw-customisation-tab:focus-visible,
.cpw-product-page button.cpw-customisation-tab:active {
    background-image: none !important;
    border-color: #009c96 !important;
    outline: 3px solid rgba(0, 156, 150, 0.17) !important;
    outline-offset: 2px;
}

.cpw-product-page button.cpw-customisation-tab.is-active:focus,
.cpw-product-page button.cpw-customisation-tab.is-active:focus-visible,
.cpw-product-page button.cpw-customisation-tab.is-active:active {
    color: #ffffff !important;
    background-color: #009c96 !important;
}

/* Hidden panels */
.cpw-customisation-panel[hidden] {
    display: none !important;
}

/* Cards grid */
.cpw-customisation-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Individual card */
.cpw-customisation-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #c7e1de;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(7, 57, 75, 0.075);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Card top accent */
.cpw-customisation-card::before {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 18px;
    left: 18px;
    height: 4px;
    background:
        linear-gradient(
            90deg,
            #009c96,
            #48d5cf
        );
    border-radius: 0 0 5px 5px;
    content: "";
}

.cpw-customisation-card:hover {
    border-color: #6fc2bd;
    box-shadow: 0 18px 40px rgba(7, 57, 75, 0.12);
    transform: translateY(-5px);
}

/* Image area */
.cpw-customisation-image {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 20px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #eaf8f6 0%,
            #fff9ec 100%
        );
}

/* Decorative image-area circle */
.cpw-customisation-image::before {
    position: absolute;
    top: -65px;
    right: -55px;
    width: 150px;
    height: 150px;
    pointer-events: none;
    border: 25px solid rgba(0, 156, 150, 0.055);
    border-radius: 50%;
    content: "";
}

/* Real uploaded image */
.cpw-customisation-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 175px;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
}

/* Add image URL placeholder */
.cpw-customisation-image span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 150px;
    padding: 15px;
    color: #527783;
    background: rgba(255, 255, 255, 0.58);
    border: 1px dashed #79c5c0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

/* Card text area */
.cpw-customisation-copy {
    position: relative;
    min-height: 145px;
    padding: 23px 21px 24px;
    background: #ffffff;
}

.cpw-customisation-copy h3 {
    margin: 0;
    color: var(--cpw-navy);
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.cpw-customisation-copy p {
    margin: 9px 0 0;
    color: #496975;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

/* Tablet */
@media (max-width: 1020px) {
    .cpw-customisation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 680px) {
    .cpw-customisation {
        padding: 58px 0;
    }

    .cpw-customisation-header {
        margin-bottom: 27px;
    }

    .cpw-customisation-header h2 {
        font-size: 31px;
    }

    .cpw-customisation-header p {
        font-size: 16px;
    }

    .cpw-customisation-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 6px;
        border-radius: 14px;
    }

    .cpw-product-page button.cpw-customisation-tab {
        min-height: 50px;
        padding: 10px 8px;
        border-radius: 10px;
        font-size: 14px;
    }

    .cpw-customisation-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cpw-customisation-card {
        border-radius: 15px;
    }

    .cpw-customisation-image {
        min-height: 190px;
    }

    .cpw-customisation-image img {
        height: 160px;
    }

    .cpw-customisation-copy {
        min-height: auto;
        padding: 20px 18px 22px;
    }

    .cpw-customisation-copy h3 {
        font-size: 18px;
    }

    .cpw-customisation-copy p {
        font-size: 16px;
    }
}

/* =========================================================
   Simple ordering process
========================================================= */

.cpw-ordering-process {
    position: relative;
    padding: 82px 0;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #f5fbfa 0%,
            #ffffff 100%
        );
    font-family: Arial, sans-serif;
}

/* Background decoration */
.cpw-ordering-process::before {
    position: absolute;
    top: -130px;
    left: -130px;
    width: 340px;
    height: 340px;
    pointer-events: none;
    background: rgba(0, 156, 150, 0.055);
    border-radius: 50%;
    content: "";
}

.cpw-ordering-process::after {
    position: absolute;
    right: -110px;
    bottom: -160px;
    width: 320px;
    height: 320px;
    pointer-events: none;
    border: 48px solid rgba(227, 161, 42, 0.045);
    border-radius: 50%;
    content: "";
}

/* Section heading */
.cpw-process-header {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto 46px;
    text-align: center;
}

.cpw-process-header > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #007f7c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cpw-process-header > span::before,
.cpw-process-header > span::after {
    width: 22px;
    height: 2px;
    background: #e3a12a;
    content: "";
}

.cpw-process-header h2 {
    margin: 0;
    color: var(--cpw-navy);
    font-family: Arial, sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.cpw-process-header p {
    max-width: 700px;
    margin: 13px auto 0;
    color: #496975;
    font-size: 17px;
    line-height: 1.65;
}

/* Four-column process grid */
.cpw-process-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* Individual process card */
.cpw-process-step {
    position: relative;
    min-width: 0;
    min-height: 285px;
    padding: 35px 25px 27px;
    overflow: visible;
    background: #ffffff;
    border: 1px solid #c7e1de;
    border-radius: 19px;
    text-align: left;
    box-shadow: 0 13px 32px rgba(7, 57, 75, 0.075);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Coloured top line */
.cpw-process-step::before {
    position: absolute;
    top: 0;
    right: 18px;
    left: 18px;
    height: 4px;
    background:
        linear-gradient(
            90deg,
            #009c96,
            #45d2cc
        );
    border-radius: 0 0 5px 5px;
    content: "";
}

.cpw-process-step:hover {
    border-color: #72c5c0;
    box-shadow: 0 19px 42px rgba(7, 57, 75, 0.12);
    transform: translateY(-5px);
}

/* Step number */
.cpw-process-number {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    color: #ffffff;
    background: #009c96;
    border: 4px solid #e8f8f6;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 15px rgba(0, 156, 150, 0.2);
}

/* Step icon */
.cpw-process-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 0 27px;
    color: #007f7c;
    background:
        linear-gradient(
            145deg,
            #e6f7f4,
            #ffffff
        );
    border: 1px solid #bfe1de;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(7, 57, 75, 0.09);
    font-size: 25px;
    font-weight: 700;
}

/* Process title */
.cpw-process-step h3 {
    margin: 0;
    padding-right: 5px;
    color: var(--cpw-navy);
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

/* Process description */
.cpw-process-step p {
    margin: 10px 0 0;
    color: #496975;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

/* Connecting arrows between cards */
.cpw-process-step:not(:last-child)::after {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: -31px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #008f8a;
    background: #ffffff;
    border: 1px solid #bfe1de;
    border-radius: 50%;
    box-shadow: 0 7px 17px rgba(7, 57, 75, 0.1);
    content: "→";
    font-size: 19px;
    font-weight: 700;
    transform: translateY(-50%);
}

/* Tablet */
@media (max-width: 1050px) {
    .cpw-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpw-process-step {
        min-height: 250px;
    }

    .cpw-process-step::after {
        display: none !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .cpw-ordering-process {
        padding: 58px 0;
    }

    .cpw-process-header {
        margin-bottom: 32px;
    }

    .cpw-process-header h2 {
        font-size: 31px;
    }

    .cpw-process-header p {
        font-size: 16px;
    }

    .cpw-process-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cpw-process-step {
        min-height: auto;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .cpw-process-number {
        top: 16px;
        right: 16px;
    }

    .cpw-process-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 19px;
        border-radius: 16px;
        font-size: 23px;
    }

    .cpw-process-step h3 {
        padding-right: 45px;
        font-size: 18px;
    }

    .cpw-process-step p {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* =========================================================
   Dynamic related products
========================================================= */

.cpw-related-products {
    position: relative;
    padding: 76px 0 82px;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #eef9f7 0%,
            #ffffff 100%
        );
    font-family: Arial, sans-serif;
}

/* Soft background decoration */
.cpw-related-products::before {
    position: absolute;
    top: -140px;
    right: -120px;
    width: 340px;
    height: 340px;
    pointer-events: none;
    background: rgba(0, 156, 150, 0.05);
    border-radius: 50%;
    content: "";
}

/* =========================================================
   Related products heading
========================================================= */

.cpw-related-products-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.cpw-related-products-header > div {
    max-width: 780px;
}

.cpw-related-products-header > div > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: #007f7c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cpw-related-products-header > div > span::before {
    width: 24px;
    height: 2px;
    background: #e3a12a;
    content: "";
}

.cpw-related-products-header h2 {
    margin: 0;
    color: var(--cpw-navy);
    font-family: Arial, sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.cpw-related-products-header p {
    max-width: 760px;
    margin: 11px 0 0;
    color: #496975;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
}

/* =========================================================
   View category button
========================================================= */

.cpw-product-page a.cpw-related-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    min-height: 47px;
    padding: 11px 18px;
    color: #007f7c !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #bcdedb !important;
    border-radius: 11px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(7, 57, 75, 0.07);
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.cpw-product-page a.cpw-related-category-link:hover {
    color: #ffffff !important;
    background-color: #009c96 !important;
    background-image: none !important;
    border-color: #009c96 !important;
    box-shadow: 0 10px 23px rgba(0, 156, 150, 0.19);
    transform: translateY(-2px);
}

/* =========================================================
   Vertical related product grid
========================================================= */

.cpw-product-page .cpw-related-products-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

/* Vertical product card */
.cpw-product-page .cpw-related-product-card {
    position: relative;
    display: flex !important;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #c7e1de;
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(7, 57, 75, 0.075);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Teal accent at the top */
.cpw-product-page .cpw-related-product-card::before {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 16px;
    left: 16px;
    height: 4px;
    background:
        linear-gradient(
            90deg,
            #009c96,
            #47d5cf
        );
    border-radius: 0 0 5px 5px;
    content: "";
}

.cpw-product-page .cpw-related-product-card:hover {
    border-color: #70c4bf;
    box-shadow: 0 18px 40px rgba(7, 57, 75, 0.12);
    transform: translateY(-5px);
}

/* =========================================================
   Product image
========================================================= */

.cpw-product-page .cpw-related-product-image {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    min-height: 245px;
    padding: 18px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #eaf8f6,
            #fff9ed
        );
}

/* Soft decorative circle */
.cpw-product-page .cpw-related-product-image::before {
    position: absolute;
    top: -65px;
    right: -55px;
    width: 150px;
    height: 150px;
    pointer-events: none;
    background: rgba(0, 156, 150, 0.05);
    border-radius: 50%;
    content: "";
}

.cpw-product-page .cpw-related-product-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 210px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.cpw-product-page .cpw-related-product-card:hover
.cpw-related-product-image img {
    transform: scale(1.035);
}

/* =========================================================
   Product information
========================================================= */

.cpw-product-page .cpw-related-product-copy {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding: 21px 19px 20px;
    background: #ffffff;
}

.cpw-related-product-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #007f7c;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cpw-related-product-category::before {
    width: 17px;
    height: 2px;
    background: #e3a12a;
    content: "";
}

.cpw-related-product-copy h3 {
    margin: 0;
    color: var(--cpw-navy);
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.cpw-related-product-copy h3 a {
    color: inherit;
    text-decoration: none;
}

.cpw-related-product-copy h3 a:hover {
    color: #007f7c;
}

.cpw-related-product-copy p {
    margin: 9px 0 18px;
    color: #496975;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

/* =========================================================
   View product button
========================================================= */

.cpw-product-page a.cpw-related-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 10px 14px;
    color: #ffffff !important;
    background-color: #009c96 !important;
    background-image: none !important;
    border: 1px solid #009c96 !important;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 156, 150, 0.17);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.cpw-product-page a.cpw-related-product-button:hover {
    color: #ffffff !important;
    background-color: #007f7c !important;
    background-image: none !important;
    border-color: #007f7c !important;
    box-shadow: 0 11px 24px rgba(0, 127, 124, 0.22);
    transform: translateY(-2px);
}

/* Keyboard focus */
.cpw-product-page a.cpw-related-product-button:focus-visible,
.cpw-product-page a.cpw-related-category-link:focus-visible {
    outline: 3px solid rgba(0, 156, 150, 0.2);
    outline-offset: 3px;
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1020px) {
    .cpw-product-page .cpw-related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 650px) {
    .cpw-related-products {
        padding: 56px 0 62px;
    }

    .cpw-related-products-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 28px;
    }

    .cpw-related-products-header h2 {
        font-size: 31px;
    }

    .cpw-related-products-header p {
        font-size: 16px;
    }

    .cpw-product-page .cpw-related-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cpw-product-page .cpw-related-product-card {
        display: flex !important;
        flex-direction: column;
        border-radius: 15px;
    }

    .cpw-product-page .cpw-related-product-image {
        min-height: 250px;
        padding: 18px;
    }

    .cpw-product-page .cpw-related-product-image img {
        height: 215px;
    }

    .cpw-product-page .cpw-related-product-copy {
        padding: 20px 18px;
    }

    .cpw-related-product-copy h3 {
        font-size: 19px;
    }

    .cpw-related-product-copy p {
        font-size: 15px;
    }
}