.wc-grid-51f0e3eb {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 3), 1fr);
    gap: 20px;
}

.wc-carousel-51f0e3eb {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 40px; /* space for pagination */
}

.wc-grid-card-51f0e3eb {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wc-carousel-51f0e3eb .wc-grid-card-51f0e3eb {
    height: auto;
}

.wc-grid-card-51f0e3eb:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.wc-grid-image-wrap-51f0e3eb {
    position: relative;
    overflow: hidden;
}

.wc-grid-image-wrap-51f0e3eb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, opacity 0.2s ease;
}

.wc-grid-card-51f0e3eb:hover .wc-grid-image-wrap-51f0e3eb img.main-img-51f0e3eb {
    transform: scale(1.05);
}

.wc-grid-badge-51f0e3eb {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e2401c;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
}

.wc-grid-quick-actions-51f0e3eb {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px;
    background: rgba(255,255,255,0.9);
    transition: bottom 0.3s ease;
    z-index: 2;
}

.wc-grid-card-51f0e3eb:hover .wc-grid-quick-actions-51f0e3eb {
    bottom: 0;
}

.wc-grid-quick-actions-51f0e3eb a.button {
    background: #333;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
}

.wc-grid-gallery-thumbs-51f0e3eb {
    display: flex;
    gap: 5px;
    padding: 10px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.wc-grid-gallery-thumbs-51f0e3eb::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.wc-thumb-item-51f0e3eb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.wc-thumb-item-51f0e3eb:hover {
    border-color: #333;
}

.wc-grid-content-51f0e3eb {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wc-grid-card-title-51f0e3eb {
    margin: 0 0 10px;
    font-size: 18px;
}

.wc-grid-card-title-51f0e3eb a {
    color: inherit;
    text-decoration: none;
}

.wc-grid-price-51f0e3eb {
    font-weight: bold;
    color: #555;
}

/* Swiper overrides */
.wc-carousel-51f0e3eb .swiper-button-next,
.wc-carousel-51f0e3eb .swiper-button-prev {
    color: #333;
    background: rgba(255,255,255,0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.wc-carousel-51f0e3eb .swiper-button-next:after,
.wc-carousel-51f0e3eb .swiper-button-prev:after {
    font-size: 16px;
}
.wc-carousel-51f0e3eb .swiper-pagination-bullet-active {
    background: #333;
}

@media (max-width: 768px) {
    .wc-grid-51f0e3eb {
        --grid-cols: 2 !important;
    }
}
@media (max-width: 480px) {
    .wc-grid-51f0e3eb {
        --grid-cols: 1 !important;
    }
}