.cpg-617e766f-grid {
    display: grid;
    gap: 15px;
}

.cpg-617e766f-slider {
    position: relative;
    padding: 0 40px; /* Space for arrows */
}

.cpg-617e766f-slider .swiper-button-prev,
.cpg-617e766f-slider .swiper-button-next {
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #333;
}

.cpg-617e766f-slider .swiper-button-prev:after,
.cpg-617e766f-slider .swiper-button-next:after {
    font-size: 14px;
    font-weight: bold;
}

.cpg-617e766f-slider .swiper-button-prev {
    left: 0;
}
.cpg-617e766f-slider .swiper-button-next {
    right: 0;
}

.cpg-617e766f-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
    overflow: hidden;
}

.cpg-617e766f-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cpg-617e766f-link {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Force image to cover the full width and fill the box natively */
.cpg-617e766f-image-wrapper {
    width: 100%;
    background: #f4f4f4;
    display: flex;
    position: relative;
    padding: 0; 
    margin: 0;
}

.cpg-617e766f-image-wrapper img {
    width: 100%; /* Force image to stretch full width of wrapper */
    height: auto; 
    object-fit: cover; /* Cover ensures no gaps or padding is visible */
    display: block;
    margin: 0;
}

.cpg-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff5722; /* Default Orange badge from image */
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 2;
}

.cpg-617e766f-content-wrapper {
    padding: 15px 15px 5px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cpg-617e766f-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #007c89; /* Teal color matching the title in image */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.cpg-rating-wrapper {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.cpg-rating-score {
    color: #ff9800; /* Star orange color */
    font-weight: 600;
}

.cpg-rating-divider {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #4caf50; /* Green checkmark dot */
    border-radius: 50%;
    margin: 0 6px;
    position: relative;
}
.cpg-rating-divider::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 2px;
    width: 3px;
    height: 6px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cpg-617e766f-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.cpg-price-old {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.cpg-price-current {
    font-size: 16px;
    font-weight: 700;
    color: #e64a19; /* Orange price color from image */
}

.cpg-617e766f-button-wrapper {
    padding: 0 15px 15px 15px;
    margin-top: auto;
}

.cpg-617e766f-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f57c00; /* Orange button color from image */
    color: #fff;
    padding: 10px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
}

.cpg-617e766f-button:hover {
    background: #ef6c00;
    color: #fff;
}

.cpg-617e766f-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Hide WooCommerce 'View Cart' link after adding to cart */
.cpg-617e766f-item .added_to_cart.wc-forward {
    display: none !important;
}

/* Ensure mobile layout is responsive */
@media (max-width: 767px) {
    .cpg-617e766f-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .cpg-617e766f-content-wrapper {
        padding: 10px 10px 0 10px;
    }

    .cpg-617e766f-button-wrapper {
        padding: 0 10px 10px 10px; /* Reduced top padding to 0 */
    }
    
    .cpg-617e766f-title {
        font-size: 12px;
    }
    
    .cpg-617e766f-price {
        margin-bottom: 2px; /* Even tighter gap between price and button on mobile */
    }

    .cpg-price-current {
        font-size: 14px;
    }
    
    .cpg-617e766f-slider {
        padding: 0;
    }
    
    .cpg-617e766f-slider .swiper-button-prev,
    .cpg-617e766f-slider .swiper-button-next {
        display: none; /* Hide arrows on mobile for better touch experience */
    }
}