/* Main Wrapper */
.pec-wrapper {
    position: relative;
    width: 100%;
}

/* Carousel */
.pec-carousel {
    padding-bottom: 50px;
    /* Space for pagination */
    padding-top: 20px;
    /* Space for hover lift */
}

/* Product Card */
.pec-product-card {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.pec-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.pec-product-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.pec-product-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pec-product-card:hover .pec-product-image img {
    transform: scale(1.05);
}

/* Discount Badge */
.pec-discount-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    background-color: #ff4757;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pec-badge-left {
    left: 10px;
}

.pec-badge-right {
    right: 10px;
}

/* Product Info */
.pec-product-info {
    padding: 0 10px;
    /* User Requested Fix */
}

.pec-product-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.pec-product-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.pec-product-title a:hover {
    color: #0073aa;
    /* Fallback brand color */
}

/* Price */
.pec-product-price {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.pec-product-price del {
    color: #999;
    font-weight: 400;
    font-size: 0.9em;
    opacity: 0.8;
}

.pec-product-price ins {
    text-decoration: none;
    color: inherit;
}

/* Add to Cart Button */
.pec-add-to-cart-wrapper {
    margin-bottom: 10px;
}

.pec-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pec-add-to-cart-btn:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
}

.pec-add-to-cart-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.pec-add-to-cart-btn.added::after {
    font-family: "WooCommerce";
    content: "\e017";
    margin-left: 5px;
}

/* Expandable Content */
.pec-expandable-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.is-expanded .pec-expandable-content {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
}

.pec-expandable-inner {
    padding-top: 15px;
    border-top: 1px dashed #eee;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.pec-read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #444;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.pec-read-more:hover {
    color: #000;
    border-bottom-color: #000;
}

/* Navigation - Glassmorphism */
.pec-button-next,
.pec-button-prev {
    color: #333;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pec-button-next:hover,
.pec-button-prev:hover {
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.pec-button-next::after,
.pec-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

/* Pagination Dots */
.pec-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #333;
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}