/* Product card styles for Elementor widget */
.wc-elementor-product-cards {
    font-family: inherit;
}

.wc-elementor-product-cards .cards-grid {
    display: grid;
    grid-gap: 18px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .wc-elementor-product-cards .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .wc-elementor-product-cards .cards-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.wc-elementor-product-cards .card {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #eee;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 5px;
}

.wc-elementor-product-cards .card .thumb {
    position: relative;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 130px;
}

.wc-elementor-product-cards .card img {
    max-width: 100%;
    height: 210px;
    display: block;
}

.wc-elementor-product-cards .card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2ecc71;
    color: #fff;
    padding: 15px 8px;
    border-radius: 60px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.wc-elementor-product-cards .card .title {
    display: flex;
    /* align-items: center; */
    gap: 8px;
    font-weight: 700;
    color: #f7931e;
    word-break: break-word;
}

.wc-elementor-product-cards .card .title a {
    color: #f7931e;
    text-decoration: none;
    flex: 1 1 auto;
}

.wc-elementor-product-cards .card .rating {
    color: #ffb400;
    display: flex;
    justify-content: start;
}

.wc-elementor-product-cards .card .price {
    color: #2ecc71;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    flex-direction: row-reverse;
    justify-content: start;
    gap: 8px;
}

.wc-elementor-product-cards .card .price del {
    color: #9aa0a6;
    text-decoration: line-through;
    font-weight: 400;
    font-size: 0.95em;
    font-size: 14px;
}

.wc-elementor-product-cards .card .actions {
    margin-top: auto;
    /* display: inline-block; */
    text-decoration: none;
    font-weight: 600;
    border: none;
}

.wc-elementor-product-cards .card .icon-left svg,
.wc-elementor-product-cards .card .icon-right svg {
    width: 20px;
}

.wc-elementor-product-cards .card .actions .button,
.wc-elementor-product-cards .card .actions .add-to-cart {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(180deg, #ff9a00, #ff6a00);
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.wc-elementor-product-cards .card .actions .button:hover,
.wc-elementor-product-cards .card .actions .add-to-cart:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    transition: all 120ms ease;
}

/* Star rating rendering for wc_get_rating_html output */
.wc-elementor-product-cards .card .rating {
    color: #ffb400;
    display: flex;
    align-items: center;
    min-height: 20px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.wc-elementor-product-cards .rating .star-rating {
    font-size: 14px;
    position: relative;
    display: inline-block;
    color: #dcdcdc;
    /* fallback / empty stars color */
    line-height: 1;
    width: 5.2em;
    height: 1.2em;
    overflow: hidden;
    letter-spacing: 2px;
}

.wc-elementor-product-cards .rating .star-rating::before {
    content: '★★★★★';
    letter-spacing: 2px;
    color: #dcdcdc;
    position: absolute;
    top: 0;
    left: 0;
}

.wc-elementor-product-cards .rating .star-rating span {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #ffb400;
    /* filled stars color */
    height: 100%;
}

.wc-elementor-product-cards .rating .star-rating span::before {
    content: '★★★★★';
    letter-spacing: 2px;
    color: #ffb400;
}

.wc-elementor-product-cards .rating .star-rating span strong,
.wc-elementor-product-cards .rating .star-rating span .rating {
    display: none;
    /* hide textual fallback inside span */
}