/* Product Category Tab Widget */

.easyel-pct {
    display: flex;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.easyel-pct *,
.easyel-pct *:before,
.easyel-pct *:after {
    box-sizing: border-box;
}

.easyel-pct.easyel-pct-pos-top {
    flex-direction: column;
}

/* Tabs - left sidebar */
.easyel-pct-tabs {
    display: flex;
    flex-direction: column;
}

.easyel-pct.easyel-pct-pos-top .easyel-pct-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.easyel-pct-tab {
    cursor: pointer;
    color: #222222;
    border-bottom: 1px solid #E5E5E5;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease;
    user-select: none;
}

.easyel-pct-tab:last-child {
    border-bottom: none;
}

.easyel-pct-tab .easyel-pct-tab-title {
    color: #222222;
}

.easyel-pct-tab .easyel-pct-tab-title:hover,
.easyel-pct-tab.is-active .easyel-pct-tab-title {
    color: #629D23;
}

.easyel-pct-tab .easyel-pct-tab-count {
    color: #888888;
}

.easyel-pct.easyel-pct-pos-top .easyel-pct-tab {
    border-bottom: 2px solid transparent;
    border-right: 1px solid #E5E5E5;
    flex: 1 1 auto;
    text-align: center;
}

.easyel-pct.easyel-pct-pos-top .easyel-pct-tab:last-child {
    border-right: none;
}

.easyel-pct-tab .easyel-pct-tab-title {
    display: inline-block;
    margin: 0;
    line-height: 1.4;
    color: inherit;
    font-weight: 500;
    transition: color .25s ease;
}

.easyel-pct-tab .easyel-pct-tab-count {
    display: inline-block;
    margin-left: 6px;
    font-size: 13px;
}

.easyel-pct-tab.is-active .easyel-pct-tab-title {
    font-weight: 600;
}

.easyel-pct.easyel-pct-pos-top .easyel-pct-tab.is-active {
    border-bottom-color: currentColor;
}

/* Panels container */
.easyel-pct-panel {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    gap: 30px;
    min-width: 0;
}

.easyel-pct-panel[hidden] {
    display: none !important;
}

.easyel-pct.easyel-pct-pos-top .easyel-pct-panel {
    width: 100%;
}

/* Banner */
.easyel-pct-banner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #FFFFFF;
    overflow: hidden;
    position: relative;
    min-height: 280px;
}

.easyel-pct-banner-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    z-index: 2;
    position: relative;
}

.easyel-pct-banner-heading {
    margin: 0;
    line-height: 1.25;
    font-weight: 600;
    font-size: 26px;
    color: #1B1B1B;
}

.easyel-pct-banner-image {
    margin-top: 16px;
    text-align: center;
    z-index: 1;
}

.easyel-pct-banner-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Shop Now: text-only link beside a circular icon "chip" */
.easyel-pct-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #1B1B1B;
    text-decoration: none;
    line-height: 1;
    font-weight: 700;
    padding: 0;
    transition: color .25s ease, background-color .25s ease;
}

.easyel-pct-banner-btn:hover {
    color: #629D23;
    background: transparent;
    text-decoration: none;
}

.easyel-pct-banner-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    background: #629D23;
    color: #FFFFFF;
    border-radius: 50%;
    line-height: 1;
    transition: background-color .25s ease, transform .25s ease;
}

.easyel-pct-banner-btn:hover .easyel-pct-banner-btn-icon {
    background: #66984a;
    transform: scale(1.08);
}

.easyel-pct-banner-btn-icon svg,
.easyel-pct-banner-btn-icon i {
    width: 12px;
    height: 12px;
    font-size: 12px;
    fill: currentColor;
    color: inherit;
}

.easyel-pct-banner-btn-text {
    line-height: 1.2;
}

/* Products */
.easyel-pct-products {
    display: grid;
    grid-template-columns: repeat(var(--eel-pct-cols, 3), minmax(0, 1fr));
    gap: 20px;
    flex: 1 1 auto;
    min-width: 0;
    align-content: start;
}

.easyel-pct-product {
    background: #FFFFFF;
    border: 1px solid #ECECEC;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    text-align: left;
}

.easyel-pct-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #E63946;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 600;
    z-index: 2;
}

.easyel-pct-product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #FFFFFF;
    margin-bottom: 12px;
}

.easyel-pct-product-thumb img,
.easyel-pct-product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
    transition: transform .35s ease;
    border-radius: 6px;
}

.easyel-pct-product:hover .easyel-pct-product-img {
    transform: scale(1.04);
}

.easyel-pct-product-rating {
    display: flex;
    margin: 0;
}

.easyel-pct-product-rating .star-rating {
    position: relative;
    overflow: hidden;
    width: 90px;
    height: 1em;
    line-height: 1;
    font-family: 'star';
    font-size: 15px;
    font-weight: 400;
    color: #FFB300;
}

.easyel-pct-product-rating .star-rating:before {
    content: "\53\53\53\53\53";
    color: #E0E0E0;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    letter-spacing: 2px;
}

.easyel-pct-product-rating .star-rating > span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.easyel-pct-product-rating .star-rating > span:before {
    content: "\53\53\53\53\53";
    top: 0;
    position: absolute;
    left: 0;
    color: #FFB300;
    letter-spacing: 2px;
}

.easyel-pct-product-title {
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
    color: #1B1B1B;
    font-size: 16px;
}

.easyel-pct-product-title a {
    color: inherit;
    text-decoration: none;
}

.easyel-pct-product-title a:hover {
    color: #629D23;
}

.easyel-pct-product-desc {
    margin: -4px 0 0;
    line-height: 1.4;
    color: #9A9A9A;
    font-size: 14px;
    font-weight: 400;
}

.easyel-pct-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 12px;
    line-height: 1;
}

.easyel-pct-product-price ins,
.easyel-pct-product-price > .amount,
.easyel-pct-product-price .woocommerce-Price-amount {
    color: #E63946;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    background: transparent;
}

.easyel-pct-product-price del,
.easyel-pct-product-price del .woocommerce-Price-amount {
    color: #B3B3B3;
    font-size: 14px;
    font-weight: 400;
    opacity: 1;
    text-decoration: line-through;
}

.easyel-pct-product-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #629D23;
    color: #FFFFFF;
    text-decoration: none;
    line-height: 1;
    margin-top: auto;
    transition: background .25s ease, color .25s ease;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.easyel-pct-product-cart:hover {
    background: #66984a;
    color: #fff;
    text-decoration: none;
}

.easyel-pct-product-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.easyel-pct-product-cart-icon svg {
    width: 1em;
    height: 1em;
}

.easyel-pct-product-cart-icon svg path {
    fill: currentColor;
}

.easyel-pct-product-cart.added::after,
.easyel-pct-product-cart.loading::after {
    font-family: WooCommerce;
    font-weight: 400;
    margin-left: 8px;
}

.easyel-pct-empty,
.easyel-pct-empty-products p {
    padding: 24px;
    text-align: center;
    color: #666;
    background: #fff;
}

/* Responsive
 * Tabs/banner widths come from Elementor responsive controls (tablet/mobile defaults = 100%).
 * Here we just stack the layout into a column and reflow tab borders for narrow screens.
 */
@media (max-width: 991px) {
    .easyel-pct.easyel-pct-pos-left {
        flex-direction: column;
    }
    .easyel-pct.easyel-pct-pos-left .easyel-pct-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow-x: auto;
    }
    .easyel-pct.easyel-pct-pos-left .easyel-pct-tab {
        border-bottom: 2px solid transparent;
        border-right: 1px solid #E5E5E5;
        flex: 0 0 auto;
        text-align: center;
    }
    .easyel-pct.easyel-pct-pos-left .easyel-pct-tab:last-child {
        border-right: none;
    }
    .easyel-pct.easyel-pct-pos-left .easyel-pct-tab.is-active {
        border-bottom-color: currentColor;
    }
    .easyel-pct-panel {
        flex-direction: column;
    }
    .easyel-pct-products {
        grid-template-columns: repeat(var(--eel-pct-cols-tablet, 2), minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .easyel-pct-products {
        grid-template-columns: repeat(var(--eel-pct-cols-mobile, 1), minmax(0, 1fr));
    }
}
