/* Parana Shop Grid Widget Styling */

.parana-shop-container {
    direction: rtl;
    width: 100%;
}

/* --- Filter Bar --- */
.parana-shop-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.parana-filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #EAEAEA;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.parana-filter-btn:hover {
    background: #f9f9f9;
}

.parana-category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.parana-cat-tab {
    padding: 10px 25px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #EAEAEA;
    color: #444;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
}

.parana-cat-tab.active {
    background: #655EAB;
    color: #fff;
    border-color: #655EAB;
}

.parana-category-tabs.tabs-hidden {
    display: none !important;
}

/* --- Products Grid --- */
.parana-shop-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 4), 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.parana-shop-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    border: 1px solid #F0F0F0;
    position: relative;
}

.parana-shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(101, 94, 171, 0.12);
}

/* --- Image Section --- */
.parana-shop-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: #F9F9F8; /* Light clay background from image */
    overflow: hidden;
}

.parana-shop-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.parana-shop-card:hover .parana-shop-img-wrap img {
    transform: scale(1.05);
}

.parana-shop-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
}

.shop-badge-discount {
    background: #FF5A70;
    color: #fff;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
}

.parana-shop-wishlist {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    z-index: 5;
    transition: 0.3s;
}

.parana-shop-wishlist:hover {
    background: #fff;
    color: #FF5A70;
}

.parana-shop-wishlist i,
.parana-shop-wishlist svg {
    display: block;
    line-height: 1;
}

/* --- Content Section --- */
.parana-shop-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.parana-shop-title {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.4;
}

.parana-shop-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.parana-shop-stars {
    color: #FFB800;
    font-size: 13px;
}

.parana-shop-rating-count {
    color: #A0A0A0;
    font-size: 11px;
    font-weight: 700;
}

.parana-shop-price {
    color: #655EAB;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
}

.parana-shop-price .amount {
    font-size: 20px;
}

.parana-shop-price .woocommerce-Price-currencySymbol {
    font-size: 14px;
    margin-right: 4px;
}

/* --- Add to Cart Button --- */
.parana-shop-add-btn {
    background: #655EAB;
    color: #fff;
    border: none;
    padding: 15px 20px !important; /* Balanced padding */
    border-radius: 18px;
    font-weight: 700;
    font-size: 14px;
    display: flex !important;
    align-items: center !important;
    justify-content: center; /* Will be overridden by Elementor setting */
    gap: 10px;
    transition: 0.3s;
    cursor: pointer;
    width: 100%;
    margin: 0 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    text-decoration: none !important;
}

.parana-shop-add-btn:hover {
    background: #504899;
    box-shadow: 0 8px 20px rgba(101, 94, 171, 0.3);
}

.parana-shop-add-btn i,
.parana-shop-add-btn svg {
    font-size: 1.2em;
    width: 1em;
    height: 1em;
}

/* --- Pagination --- */
.parana-shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.parana-pagination-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px 15px;
    border-radius: 17px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #827FCD;
}

.parana-pagination-wrap .page-numbers {
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #777;
    font-weight: 700;
    border-radius: 50%;
    transition: 0.3s;
    margin: 0 4px;
}

.parana-pagination-wrap .page-numbers.current,
.parana-pagination-wrap .page-numbers:hover {
    background: #655EAB;
    color: #fff;
    box-shadow: 0 4px 10px rgba(101, 94, 171, 0.3);
}

.parana-pagination-wrap .prev,
.parana-pagination-wrap .next {
    color: #655EAB !important;
    background: none !important;
    box-shadow: none !important;
    font-size: 18px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .parana-shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .parana-shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .parana-shop-filter-bar {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 12px;
        overflow: hidden;
    }
    
    .parana-filter-btn {
        flex-shrink: 0;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .parana-category-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        transition: 0.3s;
        scrollbar-width: none; /* Hide scrollbar for clean look */
    }
    
    .parana-category-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .parana-cat-tab {
        flex-shrink: 0;
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .parana-shop-grid {
        grid-template-columns: 1fr;
    }
}
