.cpw-product-grid {
    display: grid;
    align-items: stretch;
    gap: 28px;
    margin: 32px 0;
}

.cpw-columns-1 {
    grid-template-columns: 1fr;
}

.cpw-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cpw-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cpw-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cpw-product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.cpw-product-image {
    background: #eef2f7;
    color: #64748b;
    display: grid;
    font-weight: 700;
    height: 330px;
    overflow: hidden;
    place-items: center;
    position: relative;
    text-decoration: none;
    width: 100%;
}

.cpw-condition-badge {
    background: #111827;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 8px 10px;
    position: absolute;
    right: 14px;
    text-transform: uppercase;
    top: 14px;
    z-index: 2;
}

.cpw-condition-novo {
    background: #138f4f;
}

.cpw-condition-semi_novo {
    background: #0f172a;
}

.cpw-product-image img {
    display: block;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    transition: transform 180ms ease;
    width: 100% !important;
}

.cpw-product-card:hover .cpw-product-image img {
    transform: scale(1.035);
}

.cpw-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 280px;
    padding: 22px;
}

.cpw-product-body h3 {
    display: -webkit-box;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.32;
    margin: 0 0 12px;
    min-height: 48px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cpw-product-body h3 a,
.cpw-link {
    color: #0f172a;
    text-decoration: none;
}

.cpw-product-body p {
    color: #475569;
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.58;
    margin: 0 0 22px;
    min-height: 88px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.cpw-product-price,
.cpw-single-price {
    color: #138f4f;
    display: block;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 14px;
}

.cpw-card-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: auto;
}

.cpw-link {
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    width: fit-content;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.cpw-link:hover,
.cpw-link:focus {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #138f4f;
}

.cpw-whatsapp-button,
.cpw-whatsapp-disabled {
    align-items: center;
    background: #138f4f;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 42px;
    padding: 0 16px;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
}

.cpw-whatsapp-button:hover,
.cpw-whatsapp-button:focus {
    background: #0f7a43;
    color: #fff;
}

.cpw-whatsapp-button-large {
    font-size: 16px;
    min-height: 50px;
    padding: 0 22px;
}

.cpw-whatsapp-disabled {
    background: #94a3b8;
}

.cpw-related-slider {
    margin: 18px 0 76px;
}

.cpw-related-header {
    align-items: flex-end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.cpw-related-header span {
    color: #138f4f;
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.cpw-related-header h2 {
    color: #111827;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.cpw-slider-controls {
    display: flex;
    gap: 10px;
}

.cpw-slider-button {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    font-size: 28px;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
    width: 42px;
}

.cpw-slider-button:hover,
.cpw-slider-button:focus {
    background: #138f4f;
    border-color: #138f4f;
    color: #fff;
}

.cpw-slider-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.cpw-slider-item {
    flex: 0 0 calc((100% - 72px) / 4);
    min-width: 240px;
    scroll-snap-align: start;
}

.cpw-slider-item .cpw-product-card {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.single-cpw_produto .site-main,
.single-cpw_produto main,
.single-cpw_produto .content-area {
    padding-top: 28px;
}

.single-cpw_produto .entry-title,
.single-cpw_produto h1.entry-title {
    color: #111827;
    font-size: 32px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.2;
    margin-bottom: 34px;
}

.cpw-single-product {
    margin: 0 0 72px;
    padding-bottom: 18px;
}

.cpw-single-layout {
    display: grid;
    align-items: start;
    gap: 44px;
    grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 1.05fr);
}

.cpw-featured-photo,
.cpw-gallery img {
    border-radius: 8px;
    display: block;
    height: auto;
    width: 100%;
}

.cpw-featured-photo {
    aspect-ratio: 4 / 5;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    object-fit: cover;
}

.cpw-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.cpw-gallery a {
    aspect-ratio: 1;
    border-radius: 8px;
    display: block;
    overflow: hidden;
}

.cpw-gallery img {
    height: 100%;
    object-fit: cover;
}

.cpw-single-info {
    align-self: start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
    padding: 28px;
}

.cpw-single-price {
    color: #0f8f4f;
    font-size: 34px;
    letter-spacing: 0;
    margin-bottom: 18px;
}

.cpw-short-description {
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 20px;
}

.cpw-full-description {
    color: #334155;
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 34px;
    padding-bottom: 6px;
}

.cpw-full-description p {
    margin: 0 0 16px;
}

.cpw-full-description p:last-child {
    margin-bottom: 0;
}

.cpw-single-info .cpw-whatsapp-button {
    border-radius: 7px;
    font-size: 16px;
    min-height: 52px;
    padding: 0 28px;
    width: auto;
}

.cpw-empty {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    padding: 18px;
}

@media (max-width: 900px) {
    .cpw-columns-3,
    .cpw-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpw-slider-item {
        flex-basis: calc((100% - 24px) / 2);
    }

    .cpw-single-layout {
        grid-template-columns: 1fr;
    }

    .cpw-product-image {
        height: 300px;
    }

    .single-cpw_produto .entry-title,
    .single-cpw_produto h1.entry-title {
        font-size: 28px;
        margin-bottom: 28px;
    }
}

@media (max-width: 620px) {
    .cpw-columns-2,
    .cpw-columns-3,
    .cpw-columns-4 {
        grid-template-columns: 1fr;
    }

    .cpw-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cpw-related-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cpw-related-header h2 {
        font-size: 28px;
    }

    .cpw-slider-item {
        flex-basis: 82%;
        min-width: 260px;
    }

    .cpw-product-image {
        height: 280px;
    }

    .cpw-product-body {
        min-height: auto;
    }

    .cpw-product-body h3,
    .cpw-product-body p {
        min-height: 0;
    }

    .cpw-whatsapp-button,
    .cpw-whatsapp-disabled {
        width: 100%;
    }

    .cpw-single-info {
        padding: 22px;
    }

    .cpw-single-price {
        font-size: 28px;
    }

    .single-cpw_produto .site-main,
    .single-cpw_produto main,
    .single-cpw_produto .content-area {
        padding-top: 18px;
    }
}
