
/* Products Grid Widget Styles */

.parana-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
    gap: 30px;
    width: 100%;
}

.parana-product-card {
    background: #fff;
    border-radius: 30px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    direction: rtl;
    border: 1px solid #f0f0f0; 
    overflow: hidden;
    height: 100%; /* Stretch to fill wrapper */
}

.parana-product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parana-product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; 
}


.parana-product-img-wrap > img {
    position: relative;
    z-index: 1; }


.parana-product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.parana-product-badges .parana-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.parana-product-badges .badge-discount {
    background-color: #ff2d46;
    color: white;
}

.parana-product-badges .badge-special {
    left: 0px;
    background-color: white;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.parana-product-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-bottom: 10px !important;
}

.parana-product-rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    color: #888;
}

.parana-stars {
    color: #FFB800;
    font-size: 14px;
    letter-spacing: 2px;
}

.parana-product-title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em; 
}

.parana-product-excerpt {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin: 0 0 10px 0;
    font-weight: 600;
    flex-grow: 1;
}

.parana-product-price-wrapper {
    display: flex;
    justify-content: flex-start;
}

.parana-product-price {
    font-size: 24px;
    font-weight: 800;
    color: #655EAB; /* Signature color */
    display: flex;
    align-items: center;
    flex-direction: row; /* Natural flow */
    gap: 4px;
}

.parana-product-price .woocommerce-Price-currencySymbol {
    font-size: 14px;
    color: #888;
    font-weight: 600;
}

.parana-product-price del {
    display: none !important; /* إخفاء السعر القديم */
}

.parana-product-price ins {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 991px) {
    .parana-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .parana-products-grid {
        grid-template-columns: 1fr;
    }
    
    .parana-product-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Carousel Additions */
.parana-carousel-arrows {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
    justify-content: center;
    position: relative;
    width: 100%;
}

.parana-carousel-arrow {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 1px solid #FFFFFF66 !important;
    background: #4D385299;
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
   box-shadow: 0px 4.57px 6.85px -4.57px #0000001A, 0px 11.41px 17.12px -3.42px #0000001A;
}

.parana-carousel-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
}

.parana-carousel-arrow.prev {
    right: -27px;
}

.parana-carousel-arrow.next {
    left: -27px;
}

.parana-carousel-arrow:hover {
    background: rgba(105, 102, 176, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.parana-atc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #655EAB;
    color: #fff;
    padding: 10px;
    border-radius: 0 0 30px 30px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.parana-atc-btn:hover {
    background: #544da0;
}

.parana-product-card-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
    height: auto;
    align-self: stretch; /* Force stretch in flex row */
}

.parana-product-card {
    border-bottom: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    margin-bottom: 0 !important;
}

