.cpg-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
    z-index: 1;
    overflow-x: hidden
}

.cpg-grid {
    display: grid !important;
    gap: 24px;
    width: 100%;
    grid-auto-rows: 1fr
}

.cpg-grid.cpg-columns-1 {
    grid-template-columns: 1fr
}

.cpg-grid.cpg-columns-2 {
    grid-template-columns: repeat(2, 1fr)
}

.cpg-grid.cpg-columns-3 {
    grid-template-columns: repeat(3, 1fr)
}

.cpg-grid.cpg-columns-4 {
    grid-template-columns: repeat(4, 1fr)
}

.cpg-card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1
}

.cpg-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px)
}

.cpg-hover-icons .added_to_cart,
.cpg-card .added_to_cart {
    display: none !important
}

.cpg-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
    background: #f8f8f8
}

.cpg-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: #f8f8f8
}

.cpg-product-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.cpg-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
    padding: 0
}

.cpg-card:hover .cpg-product-image img {
    transform: scale(1.08)
}

.cpg-sale-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ff6a00;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(255, 106, 0, 0.4)
}

.cpg-hover-icons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 3;
    padding: 0
}

.cpg-image-wrapper:hover .cpg-hover-icons {
    opacity: 1
}

.cpg-icon {
    width: 52px;
    height: 52px;
    background: rgba(44, 62, 80, 0.9);
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    backdrop-filter: blur(10px)
}

.cpg-icon:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(44, 62, 80, 1)
}

.cpg-icon svg {
    stroke: #666;
    transition: stroke .3s ease;
    width: 20px;
    height: 20px
}

button.cpg-icon.cpg-add-to-wishlist {
    background: #fff !important;
    padding: 14px !important
}

button.cpg-icon.cpg-quick-view {
    background: #fff !important;
    padding: 14px !important
}

.cpg-icon:hover svg {
    stroke: #ff6a00
}

button.cpg-icon.cpg-add-to-cart {
    background: #fff !important;
    padding: 14px !important
}

.cpg-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px 20px 20px
}

.cpg-product-title {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 0 12px !important;
    font-weight: 500 !important;
    color: #2c3e50;
    display: -webkit-box;
    min-height: auto;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.cpg-product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color .3s ease
}

.cpg-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap
}

.cpg-regular-price {
    font-size: 14px;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 400
}

.cpg-sale-price {
    font-size: 20px;
    color: #ff6a00;
    font-weight: 700
}

.cpg-view-details {
    display: block;
    width: 100%;
    background: #ff6a00;
    color: #fff !important;
    text-align: center;
    padding: 12px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .3s ease
}

.cpg-view-details:hover {
    background: #f15a28;
    transform: translateY(-2px)
}

.cpg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    overflow-y: auto
}

.cpg-modal.active {
    display: flex;
    align-items: center;
    justify-content: center
}

.cpg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px)
}

.cpg-modal-wrapper {
    position: relative;
    max-width: 1024px;
    width: 90%;
    margin: 20px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    z-index: 100000;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto
}

.cpg-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 0;
    border-radius: 50px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    transition: all .3s ease;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    padding: 0 !important
}

.cpg-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg)
}

.cpg-loading {
    text-align: center;
    padding: 80px 20px;
    font-size: 16px;
    color: #95a5a6
}

.cpg-quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px
}

.cpg-qv-image {
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    justify-content: center;
    padding: 0
}

.cpg-qv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: none
}

.cpg-qv-details {
    padding: 50px 50px 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.cpg-qv-title {
    font-size: 22px !important;
    line-height: 28px !important;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 24px;
    line-height: 1.3
}

.cpg-qv-price {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px
}

.cpg-qv-regular-price {
    font-size: 18px;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 400
}

.cpg-qv-sale-price {
    font-size: 22px;
    color: #f15a28;
    font-weight: 700
}

.cpg-qv-specs {
    margin-bottom: 36px
}

.cpg-qv-specs h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 18px
}

.cpg-qv-specs ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.cpg-qv-specs li {
    font-size: 15px;
    color: #5f6368;
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.6
}

.cpg-qv-specs li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: #f15a28;
    font-weight: bold;
    font-size: 18px
}

.cpg-qv-add-to-cart {
    width: 100%;
    background: #f15a28;
    color: #fff;
    border: 0;
    padding: 18px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 0
}

.cpg-qv-add-to-cart:hover {
    background: #f15a28;
    transform: translateY(-2px)
}

.cpg-qv-add-to-cart svg {
    stroke: #fff;
    width: 20px;
    height: 20px
}

@media(min-width:1200px) {
    .cpg-modal-wrapper {
        max-width: 1000px
    }

    .cpg-quick-view-content {
        grid-template-columns: 45% 55%
    }
}

@media(max-width:1024px) {
    .cpg-grid.cpg-columns-4 {
        grid-template-columns: repeat(3, 1fr)
    }

    .cpg-quick-view-content {
        gap: 0
    }

    .cpg-modal-wrapper {
        margin: 3% 20px
    }

    .cpg-qv-details {
        padding: 40px 40px 40px 30px
    }
}

@media(max-width:768px) {

    .cpg-grid.cpg-columns-4,
    .cpg-grid.cpg-columns-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px
    }

    .cpg-quick-view-content {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto
    }

    .cpg-modal-wrapper {
        margin: 2% 15px
    }

    .cpg-qv-details {
        padding: 30px 0 0 0
    }

    .cpg-qv-title {
        font-size: 24px
    }

    .cpg-qv-sale-price {
        font-size: 30px
    }

    .cpg-icon {
        width: 48px;
        height: 48px
    }

    .cpg-icon svg {
        width: 20px;
        height: 20px
    }
}

@media(max-width:600px) {

    .cpg-grid.cpg-columns-4,
    .cpg-grid.cpg-columns-3,
    .cpg-grid.cpg-columns-2 {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .cpg-card-content {
        padding: 14px 16px 18px
    }

    .cpg-hover-icons {
        gap: 10px;
        bottom: 16px
    }

    .cpg-icon {
        width: 44px;
        height: 44px
    }

    .cpg-icon svg {
        width: 18px;
        height: 18px
    }

    .cpg-product-title {
        font-size: 13px !important
    }

    .cpg-sale-price {
        font-size: 20px
    }

    .cpg-regular-price {
        font-size: 13px
    }

    .cpg-view-details {
        padding: 12px 20px;
        font-size: 14px
    }

    .cpg-sale-badge {
        top: 12px;
        right: 12px;
        padding: 8px 6px;
        font-size: 12px
    }

    .cpg-modal-wrapper {
        margin: 0;
        border-radius: 20px
    }

    .cpg-qv-details {
        padding: 24px 0 0 0
    }

    .cpg-qv-title {
        font-size: 20px;
        margin-bottom: 20px
    }

    .cpg-qv-price {
        margin-bottom: 28px
    }

    .cpg-qv-sale-price {
        font-size: 28px
    }

    .cpg-qv-regular-price {
        font-size: 16px
    }

    .cpg-qv-specs {
        margin-bottom: 30px
    }

    .cpg-qv-specs h3 {
        font-size: 16px
    }

    .cpg-qv-specs li {
        font-size: 14px;
        padding: 8px 0;
        padding-left: 24px
    }

    .cpg-qv-add-to-cart {
        padding: 16px 28px;
        font-size: 15px
    }

    .cpg-modal-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px
    }
}

@media(max-width:380px) {
    .cpg-hover-icons {
        gap: 8px
    }

    .cpg-icon {
        width: 40px;
        height: 40px
    }

    .cpg-icon svg {
        width: 16px;
        height: 16px
    }

    .cpg-qv-details {
        padding: 20px
    }

    .cpg-qv-title {
        font-size: 18px
    }

    .cpg-qv-sale-price {
        font-size: 24px
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.cpg-card {
    animation: fadeIn .4s ease-out
}

.cpg-hover-icons {
    animation: slideUp .3s ease-out
}

.cpg-icon:focus,
.cpg-view-details:focus,
.cpg-qv-add-to-cart:focus,
.cpg-modal-close:focus {
    outline: 3px solid #f15a28;
    outline-offset: 3px
}

.cpg-icon:focus-visible,
.cpg-view-details:focus-visible,
.cpg-qv-add-to-cart:focus-visible,
.cpg-modal-close:focus-visible {
    outline: 3px solid #f15a28;
    outline-offset: 3px
}

.cpg-modal {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth
}

.cpg-icon {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none
}

.cpg-icon.in-wishlist svg {
    fill: #f15a28;
    stroke: #f15a28
}

.cpg-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #10b981;
    color: #fff;
    padding: 16px 28px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    font-size: 15px;
    font-weight: 600;
    animation: slideInRight .3s ease-out;
    max-width: 320px
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.cpg-loading:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #f15a28;
    border-radius: 50%;
    animation: spin 1s linear infinite
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.cpg-wishlist-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999998;
    align-items: center;
    justify-content: center;
    padding: 16px
}

.cpg-wishlist-popup-overlay.active {
    display: flex
}

.cpg-wishlist-popup {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px 28px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    animation: cpgPopupIn .25s ease-out
}

@keyframes cpgPopupIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px)
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

.cpg-wishlist-popup-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center
}

.cpg-wishlist-popup-icon svg {
    width: 48px;
    height: 48px;
    stroke: #f97316;
    fill: none
}

.cpg-wishlist-popup-message {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    margin: 0 0 24px;
    line-height: 1.5
}

.cpg-wishlist-popup-message strong {
    font-weight: 700
}

.cpg-wishlist-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.cpg-wishlist-popup-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f97316;
    color: #fff !important;
    border: 0;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .2s ease;
    width: auto;
    min-width: 180px;
    max-width: 240px;
    margin: 0 auto
}

.cpg-wishlist-popup-view:hover {
    background: #ea6c0a;
    color: #fff !important
}

.cpg-wishlist-popup-view svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    flex-shrink: 0
}

.cpg-wishlist-popup-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2d2d2d;
    color: #fff;
    border: 0;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
    width: auto;
    min-width: 180px;
    max-width: 240px;
    margin: 0 auto
}

.cpg-wishlist-popup-close:hover {
    background: #444;
    color: #fff;
    border-color: transparent
}

.cpg-wishlist-popup-close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0
}

@media(max-width:400px) {
    .cpg-wishlist-popup {
        padding: 28px 18px 20px;
        border-radius: 12px
    }

    .cpg-wishlist-popup-message {
        font-size: 14px
    }
}