.cwp-catalog {
    --cwp-ink: #17202a;
    --cwp-muted: #667085;
    --cwp-line: #e5e7eb;
    --cwp-soft: #f6f8fb;
    --cwp-brand: #16a34a;
    --cwp-brand-dark: #12823d;
    --cwp-radius: 8px;
    color: var(--cwp-ink);
    font-family: inherit;
    width: 100%;
}

.cwp-toolbar {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
    margin-bottom: 22px;
}

.cwp-category-filter,
.cwp-sort {
    background: #fff;
    border: 1px solid var(--cwp-line);
    border-radius: var(--cwp-radius);
    color: var(--cwp-ink);
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.cwp-category-filter:focus,
.cwp-sort:focus {
    border-color: var(--cwp-brand);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .14);
    outline: 0;
}

.cwp-main {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.cwp-products {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cwp-product-card {
    background: #fff;
    border: 1px solid var(--cwp-line);
    border-radius: var(--cwp-radius);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

.cwp-product-card:hover {
    border-color: rgba(22, 163, 74, .35);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .1);
    transform: translateY(-2px);
}

.cwp-product-media {
    appearance: none;
    aspect-ratio: 4 / 3;
    background: var(--cwp-soft);
    border: 0;
    cursor: zoom-in;
    display: block;
    margin: 0;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.cwp-product-media img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
    width: 100%;
}

.cwp-product-card:hover .cwp-product-media img {
    transform: scale(1.035);
}

.cwp-image-placeholder {
    align-items: center;
    color: var(--cwp-muted);
    display: flex;
    font-size: 14px;
    height: 100%;
    justify-content: center;
    min-height: 170px;
}

.cwp-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.cwp-badge {
    align-self: flex-start;
    background: #ecfdf3;
    border-radius: 999px;
    color: #067647;
    font-size: 12px;
    line-height: 1.2;
    padding: 5px 9px;
}

.cwp-featured-badge {
    align-self: flex-start;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    padding: 5px 9px;
}

.cwp-product-body h3 {
    color: var(--cwp-ink);
    font-size: 19px;
    line-height: 1.2;
    margin: 0;
}

.cwp-sku,
.cwp-excerpt,
.cwp-stock {
    color: var(--cwp-muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.cwp-stock {
    color: #067647;
    font-weight: 800;
}

.cwp-stock.is-empty,
.cwp-modal-stock.is-empty {
    color: #b42318;
}

.cwp-variations {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cwp-variations label {
    display: grid;
    gap: 5px;
}

.cwp-variations span {
    color: var(--cwp-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.cwp-variations select {
    background: #fff;
    border: 1px solid var(--cwp-line);
    border-radius: var(--cwp-radius);
    color: var(--cwp-ink);
    min-height: 38px;
    padding: 8px 10px;
    width: 100%;
}

.cwp-product-footer {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: auto;
}

.cwp-price {
    font-size: 20px;
}

.cwp-catalog .cwp-qty {
    align-items: center;
    background: #fff;
    border: 1px solid var(--cwp-line);
    border-radius: var(--cwp-radius);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 42px 54px 42px;
    min-width: 138px;
    overflow: hidden;
}

.cwp-catalog .cwp-qty button,
.cwp-catalog .cwp-qty input {
    appearance: none;
    background: #fff;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
    color: var(--cwp-ink) !important;
    display: block;
    font-family: inherit;
    height: 42px;
    margin: 0;
    max-width: none;
    opacity: 1 !important;
    padding: 0 !important;
    text-align: center;
}

.cwp-catalog .cwp-qty button {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 22px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 42px;
    min-width: 42px;
    transition: background .2s ease;
    width: 42px;
}

.cwp-catalog .cwp-qty button:hover {
    background: var(--cwp-soft);
}

.cwp-catalog .cwp-qty input {
    border-left: 1px solid var(--cwp-line);
    border-right: 1px solid var(--cwp-line);
    font-size: 16px;
    font-weight: 800;
    line-height: 42px;
    min-width: 54px;
    width: 54px;
}

.cwp-catalog .cwp-qty input::-webkit-outer-spin-button,
.cwp-catalog .cwp-qty input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.cwp-product-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 48px;
}

.cwp-add-button,
.cwp-direct-whatsapp-button,
.cwp-whatsapp-button {
    align-items: center;
    background: var(--cwp-brand);
    border: 0;
    border-radius: var(--cwp-radius);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 11px 14px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
    width: 100%;
}

.cwp-add-button svg,
.cwp-direct-whatsapp-button svg {
    display: block;
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

.cwp-direct-whatsapp-button {
    gap: 8px;
}

.cwp-add-button {
    background: #101828;
    min-width: 48px;
    padding-left: 0;
    padding-right: 0;
}

.cwp-add-button:hover,
.cwp-direct-whatsapp-button:hover,
.cwp-whatsapp-button:hover {
    background: var(--cwp-brand-dark);
    color: #fff;
    transform: translateY(-1px);
}

.cwp-add-button:hover {
    background: #344054;
}

.cwp-add-button:disabled,
.cwp-direct-whatsapp-button:disabled {
    background: #d0d5dd;
    color: #667085;
    cursor: not-allowed;
    transform: none;
}

.cwp-quote-panel {
    background: #fff;
    border: 1px solid var(--cwp-line);
    border-radius: var(--cwp-radius);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
    padding: 18px;
    position: sticky;
    top: 24px;
}

.cwp-quote-panel h3 {
    font-size: 20px;
    margin: 0 0 14px;
}

.cwp-cart-items {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.cwp-cart-empty {
    color: var(--cwp-muted);
    font-size: 14px;
    margin: 0;
}

.cwp-cart-item {
    border-bottom: 1px solid var(--cwp-line);
    display: grid;
    gap: 4px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 10px;
}

.cwp-cart-item strong,
.cwp-cart-item span {
    font-size: 14px;
}

.cwp-cart-remove {
    background: transparent;
    border: 0;
    color: #b42318;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.cwp-mobile-cart {
    display: none;
    font-family: inherit;
    position: relative;
}

.cwp-mobile-cart-toggle {
    align-items: center;
    background: #101828;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
}

.cwp-mobile-cart-toggle svg {
    height: 19px;
    width: 19px;
}

.cwp-mobile-cart-count {
    align-items: center;
    background: var(--cwp-brand);
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    padding: 0 6px;
}

.cwp-mobile-cart-drawer {
    background: #fff;
    border: 1px solid var(--cwp-line);
    border-radius: 10px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .2);
    display: flex;
    flex-direction: column;
    min-width: min(340px, calc(100vw - 24px));
    padding: 14px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 9999;
}

.cwp-mobile-cart-drawer.is-open {
    bottom: 0;
    left: 0;
    max-height: 82vh;
    min-width: 0;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: auto;
    width: 100vw;
    z-index: 999999;
}

.cwp-mobile-cart-body {
    max-height: min(34vh, 260px);
    overflow: auto;
}

.cwp-mobile-cart-footer {
    background: #fff;
    border-top: 1px solid var(--cwp-line);
    margin-top: 12px;
    padding-top: 12px;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.cwp-mobile-cart .cwp-total {
    margin-bottom: 10px;
}

.cwp-mobile-whatsapp-button,
.cwp-mobile-cart .cwp-whatsapp-button {
    background: var(--cwp-brand) !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 46px;
    outline: 0 !important;
    position: relative;
    transform: none !important;
    width: 100% !important;
    z-index: 1;
}

.cwp-mobile-whatsapp-button:hover,
.cwp-mobile-whatsapp-button:focus,
.cwp-mobile-whatsapp-button:active,
.cwp-mobile-cart .cwp-whatsapp-button:hover,
.cwp-mobile-cart .cwp-whatsapp-button:focus,
.cwp-mobile-cart .cwp-whatsapp-button:active {
    background: var(--cwp-brand) !important;
    box-shadow: none !important;
    color: #fff !important;
    outline: 0 !important;
    transform: none !important;
}

.cwp-mobile-cart-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cwp-mobile-cart-close {
    align-items: center;
    background: #101828;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
}

.cwp-total {
    align-items: center;
    border-top: 1px solid var(--cwp-line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-top: 14px;
}

.cwp-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
}

.cwp-pagination button {
    background: #fff;
    border: 1px solid var(--cwp-line);
    border-radius: 6px;
    color: var(--cwp-ink);
    cursor: pointer;
    min-height: 36px;
    min-width: 36px;
    padding: 6px 10px;
}

.cwp-pagination button.is-active,
.cwp-pagination button:hover {
    background: var(--cwp-brand);
    border-color: var(--cwp-brand);
    color: #fff;
}

.cwp-empty {
    color: var(--cwp-muted);
    grid-column: 1 / -1;
    margin: 18px 0;
}

.cwp-modal-open {
    overflow: hidden;
}

.cwp-product-modal[hidden] {
    display: none;
}

.cwp-product-modal {
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999;
}

.cwp-modal-backdrop {
    background: rgba(15, 23, 42, .62);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.cwp-modal-dialog {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    left: 50%;
    max-height: min(88vh, 780px);
    max-width: 1040px;
    overflow: auto;
    padding: 20px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 36px);
}

.cwp-modal-close {
    align-items: center;
    background: #101828;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 20px;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 36px;
    z-index: 2;
}

.cwp-modal-gallery {
    display: grid;
    gap: 12px;
}

.cwp-modal-main-image {
    aspect-ratio: 1 / 1;
    background: var(--cwp-soft);
    border-radius: 10px;
    overflow: hidden;
}

.cwp-modal-main-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cwp-modal-thumbs {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cwp-modal-thumbs button {
    aspect-ratio: 1;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.cwp-modal-thumbs button.is-active,
.cwp-modal-thumbs button:hover {
    border-color: var(--cwp-brand);
}

.cwp-modal-thumbs img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cwp-modal-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 8px 8px 0;
}

.cwp-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-right: 42px;
}

.cwp-modal-content h2 {
    color: var(--cwp-ink);
    font-size: 30px;
    line-height: 1.1;
    margin: 0;
}

.cwp-modal-sku,
.cwp-modal-description {
    color: var(--cwp-muted);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

.cwp-modal-price {
    color: var(--cwp-ink);
    font-size: 28px;
    line-height: 1;
}

.cwp-modal-stock {
    color: #067647;
    font-size: 14px;
    font-weight: 800;
    margin: 0;
}

@media (max-width: 980px) {
    .cwp-toolbar,
    .cwp-main {
        grid-template-columns: 1fr;
    }

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

    .cwp-quote-panel {
        position: static;
    }

    .cwp-modal-dialog {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 28px);
    }
}

@media (max-width: 640px) {
    .cwp-mobile-cart {
        display: inline-block;
    }

    .cwp-mobile-cart.is-open .cwp-mobile-cart-drawer,
    .cwp-mobile-cart-drawer.is-open {
        border-radius: 14px 14px 0 0;
        bottom: 0;
        box-shadow: 0 -18px 46px rgba(15, 23, 42, .24);
        left: 0;
        max-height: 78vh;
        min-width: 0;
        overflow: hidden;
        position: fixed;
        right: 0;
        top: auto;
        width: 100vw;
        z-index: 999999;
    }

    .cwp-mobile-cart.is-open .cwp-mobile-cart-body,
    .cwp-mobile-cart-drawer.is-open .cwp-mobile-cart-body {
        max-height: calc(78vh - 176px);
    }

    .cwp-products {
        grid-template-columns: 1fr;
    }

    .cwp-product-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .cwp-variations {
        grid-template-columns: 1fr;
    }

    .cwp-qty {
        grid-template-columns: 44px minmax(56px, 1fr) 44px;
        width: 100%;
    }

    .cwp-qty button {
        width: 44px;
    }

    .cwp-qty input {
        min-width: 56px;
        width: 100%;
    }

    .cwp-modal-dialog {
        border-radius: 0;
        height: 100vh;
        max-height: none;
        padding: 14px;
        width: 100vw;
    }

    .cwp-modal-content {
        padding: 0;
    }

    .cwp-modal-content h2 {
        font-size: 24px;
    }

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