.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;
    }
}

/* Menu para a coluna lateral da página. */
.cpw-category-menu { margin:32px 0; padding:20px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; }
.cpw-category-menu h2 { font-size:20px; margin:0 0 16px; }
.cpw-category-menu ul { display:flex; flex-direction:column; gap:8px; margin:0; padding:0; list-style:none; }
.cpw-category-menu a { display:block; padding:10px 12px; border-radius:6px; color:#0f172a; text-decoration:none; overflow-wrap:anywhere; }
.cpw-category-menu a:hover,.cpw-category-menu a[aria-current] { background:#eef2f7; font-weight:700; }
.cpw-category-menu a:focus-visible,.cpw-pagination a:focus-visible { outline:2px solid #2563eb; outline-offset:3px; }
.cpw-pagination { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:24px 0; }
.cpw-pagination .page-numbers { padding:10px 14px; border:1px solid #e2e8f0; border-radius:6px; text-decoration:none; }
.cpw-pagination .current { background:#0f172a; color:#fff; }

/* Vitrine compacta e atendimento — v1.3 */
.cpw-product-grid { gap:20px; }
.cpw-product-card { border-radius:14px; box-shadow:0 4px 20px rgba(15,23,42,.055); transition:transform .18s,box-shadow .18s; }
.cpw-product-card:hover { transform:translateY(-3px); box-shadow:0 12px 26px rgba(15,23,42,.10); }
.cpw-product-card .cpw-product-image { height:auto; aspect-ratio:4/3; background:#f5f7fa; }
.cpw-product-card .cpw-product-image img { object-fit:contain !important; }
.cpw-product-card .cpw-product-body { min-height:0; padding:16px; }
.cpw-product-card .cpw-product-body h3 { font-size:16px; line-height:1.4; min-height:0; margin:0 0 9px; }
.cpw-product-body h3 a,.cpw-single-title,.cpw-related-header h2 { color:var(--cpw-title,#0467B0); }
.cpw-product-card .cpw-product-body p { min-height:0; font-size:13px; line-height:1.5; -webkit-line-clamp:2; margin:0 0 14px; }
.cpw-product-card .cpw-product-price { font-size:20px; margin-bottom:10px; color:#172b42; }
.cpw-card-actions { gap:10px; padding-top:6px; }
.cpw-whatsapp-button,.cpw-slider-button { background:var(--cpw-button,#0467B0); color:#fff; border:0; cursor:pointer; font-family:inherit; }
.cpw-whatsapp-button { border-radius:8px; white-space:normal; line-height:1.3; }
.cpw-card-actions .cpw-whatsapp-button { width:100%; min-height:42px; padding:10px 12px; }
.cpw-whatsapp-button:hover,.cpw-whatsapp-button:focus,.cpw-slider-button:hover,.cpw-slider-button:focus { background:var(--cpw-button,#0467B0); color:#fff; filter:brightness(.9); }
.cpw-card-details { color:#526275; font-size:12px; text-decoration:underline; margin:auto; }
.cpw-single-title { font-size:clamp(24px,3vw,36px); line-height:1.2; margin:0 0 20px; }
.cpw-whatsapp-button:focus-visible,.cpw-modal-submit:focus-visible,.cpw-modal-close:focus-visible { outline:3px solid #82c7ff; outline-offset:3px; }
.cpw-lead-dialog { box-sizing:border-box; width:min(460px,calc(100% - 32px)); max-height:90dvh; padding:36px; border:1px solid #ffffff30; border-radius:24px; background:linear-gradient(145deg,#0467B0,#034b83); color:#fff; box-shadow:0 30px 90px #001e4d60; overflow-y:auto; font-family:inherit; }
.cpw-lead-dialog::backdrop { background:rgba(8,24,43,.65); backdrop-filter:blur(5px); }
.cpw-modal-close { position:absolute; top:10px; right:14px; background:transparent; border:0; color:#fff; font-size:28px; cursor:pointer; padding:4px 10px; }
.cpw-modal-eyebrow { display:block; color:#c8e6ff; font-size:10px; letter-spacing:.14em; margin:8px 0 14px; font-weight:700; }
.cpw-lead-dialog h2 { color:#fff; font-size:30px; line-height:1.15; margin:0 0 12px; }
.cpw-lead-dialog p { color:#e3f2ff; font-size:14px; line-height:1.5; }
.cpw-lead-dialog .cpw-modal-product { padding:10px 14px; background:#ffffff12; border-radius:8px; font-size:13px; }
.cpw-lead-dialog label { display:block; color:#fff; font-size:13px; font-weight:600; margin:16px 0 7px; }
.cpw-lead-dialog input:not([type="hidden"]) { box-sizing:border-box; width:100%; min-height:48px; background:#fff; color:#142e42; border:1px solid #d8e8f4; border-radius:10px; padding:12px 14px; font-size:16px; font-family:inherit; }
.cpw-lead-dialog input:focus { outline:3px solid #8fd1ff; outline-offset:2px; }
.cpw-lead-dialog .cpw-modal-disclosure { font-size:11px; color:#d2e8fb; margin:16px 0 8px; }
.cpw-lead-dialog .cpw-privacy { color:#fff; font-size:12px; text-decoration:underline; }
.cpw-lead-dialog .cpw-modal-error { color:#fff; font-size:13px; font-weight:600; }
.cpw-modal-submit { width:100%; border:0; border-radius:10px; padding:15px 12px; background:#fff; color:#0467B0; font-family:inherit; font-size:14px; font-weight:800; cursor:pointer; }
.cpw-modal-submit:disabled { opacity:.65; cursor:wait; }
.cpw-honey { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
@media(max-width:480px) { .cpw-lead-dialog { padding:28px 22px; } }
@media(prefers-reduced-motion:reduce) { .cpw-product-card,.cpw-product-image img { transition:none; } .cpw-product-card:hover { transform:none; } }

/* Estilos específicos para preservar as cores mesmo com regras do tema. */
.cpw-product-card .cpw-card-actions a.cpw-card-buy,
.cpw-single-product .cpw-single-info button.cpw-whatsapp-button {
    background:var(--cpw-button,#0467B0) !important;
    background-image:none !important;
    color:#fff !important;
    border:0 !important;
    text-decoration:none !important;
    box-sizing:border-box;
}
#cpw-lead-dialog button.cpw-modal-submit,
#cpw-lead-dialog button.cpw-modal-submit:hover,
#cpw-lead-dialog button.cpw-modal-submit:focus {
    background:#fff !important;
    background-image:none !important;
    color:#0467B0 !important;
    border:0 !important;
}
#cpw-lead-dialog button.cpw-modal-submit span { color:inherit !important; }

/* Condição somente na ficha do produto; carrossel de quatro cards. */
.cpw-single-condition { margin:0 0 12px; }
.cpw-single-condition:empty { display:none; }
.cpw-single-condition .cpw-condition-badge { position:static; display:inline-block; }
.cpw-related-slider .cpw-related-header h2 { color:#0467B0 !important; }
.cpw-related-slider .cpw-slider-track { gap:20px; padding:4px 0 18px; }
.cpw-related-slider .cpw-slider-item { flex:0 0 calc((100% - 60px)/4); min-width:0; }
.cpw-slider-pause { font-size:16px; }
@media(max-width:900px) { .cpw-related-slider .cpw-slider-item { flex-basis:calc((100% - 20px)/2); } }
@media(max-width:540px) { .cpw-related-slider .cpw-slider-item { flex-basis:100%; } .cpw-related-header { align-items:center; flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce) { .cpw-slider-track { scroll-behavior:auto; } }

/* Catálogo: lateral integrada e cinco fileiras de três produtos. */
.cpw-catalog-layout { display:grid; grid-template-columns:minmax(180px,230px) minmax(0,1fr); gap:28px; align-items:start; margin:32px 0; }
.cpw-catalog-sidebar,.cpw-catalog-products { min-width:0; }
.cpw-catalog-layout .cpw-product-grid { margin:0 0 28px; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.cpw-catalog-sidebar .cpw-category-menu { margin:0 0 20px; }
.cpw-category-menu { background:#0467B0 !important; border:0; padding:14px; border-radius:12px; }
.cpw-category-menu ul { display:flex !important; flex-direction:column !important; gap:5px; }
.cpw-category-menu li { margin:0; list-style:none; }
.cpw-category-menu a { color:#fff !important; font-size:14px; padding:12px; }
.cpw-category-menu a:hover,.cpw-category-menu a[aria-current] { background:#ffffff20 !important; color:#fff !important; }
.cpw-category-menu a:focus-visible { outline-color:#fff; }
.cpw-sidebar-banner { margin:0 0 18px; border-radius:12px; overflow:hidden; }
.cpw-sidebar-banner img { display:block; width:100%; height:auto; }
@media(max-width:1000px) { .cpw-catalog-layout { grid-template-columns:180px minmax(0,1fr); gap:18px; } .cpw-catalog-layout .cpw-product-grid { gap:12px; } }
@media(max-width:760px) { .cpw-catalog-layout { grid-template-columns:1fr; } .cpw-catalog-layout .cpw-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .cpw-catalog-sidebar { max-width:100%; } .cpw-sidebar-banner img { width:100%; } }
@media(max-width:480px) { .cpw-catalog-layout .cpw-product-grid { grid-template-columns:1fr; } }
