/**
 * LVMR Product Carousel CSS
 */

.lvmr-product-carousel-wrapper {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.lvmr-pc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.lvmr-pc-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.lvmr-pc-nav {
    display: flex;
    gap: 8px;
}

.lvmr-pc-nav button {
    background: #fff;
    border: 1px solid #e1e1e1;
    color: #000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.lvmr-pc-nav button:hover {
    border-color: #f07c00;
    color: #f07c00;
}

.lvmr-pc-nav button i {
    font-size: 14px;
    color: currentColor;
    /* Ensure icon obeys button color */
}

.lvmr-pc-nav button svg {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    transition: all 0.2s ease;
}

.lvmr-pc-nav button svg path {
    fill: currentColor;
}

/* Swiper Container */
.lvmr-pc-container {
    overflow: visible;
    /* we need this so the card shadow/dropdown isn't clipped */
    position: relative;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
    padding: 0;
    /* We use clip-path to hide off-screen sliders on left/right while allowing drop shadow and dropdown to overflow Y */
    clip-path: inset(-50px 0 -100px 0);
}

.lvmr-pc-slide {
    display: flex;
    border-right: 1px solid #e1e1e1;
    box-sizing: border-box;
    height: auto;
}

/* Hide right border for the last visible item to prevent double border or right edge border,
 * but Swiper adds many slides. Usually border-right is fine, we can use negative margin or let it be. 
 */

.lvmr-pc-item {
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    transition: all 0.3s ease;
}

/* Badges */
.lvmr-pc-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.lvmr-badge {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.lvmr-badge-sale {
    background: #ff7f4f;
}

.lvmr-badge-new {
    background: #00a060;
}

/* Image */
.lvmr-pc-item-image {
    display: block;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.lvmr-pc-item-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    width: auto;
    max-height: 250px;
    margin: 0 auto;
}

/* Content */
.lvmr-pc-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lvmr-pc-item-title {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.lvmr-pc-item-title a {
    color: #1f8cff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lvmr-pc-item-title a:hover {
    color: #0b6edb;
}

.lvmr-pc-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #73a100;
    margin-top: 0;
}

.lvmr-pc-item-rating {
    margin-top: auto;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lvmr-pc-item-rating .star-rating {
    font-size: 11px;
    color: #999999;
    display: inline-block;
    width: 63px;
    height: 11px;
    /* Prevent collapsing when empty */
    position: relative;
    font-family: star;
}

.lvmr-pc-item-rating .star-rating::before {
    content: "\53\53\53\53\53";
    color: #999999;
    top: 0;
    left: 0;
    position: absolute;
}

.lvmr-pc-item-rating .star-rating span {
    color: yellow;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 1.5em;
    /* standard WooCommerce hiding technique */
}

.lvmr-pc-item-rating .star-rating span::before {
    content: "\53\53\53\53\53";
    color: yellow;
    top: 0;
    left: 0;
    position: absolute;
}

.lvmr-pc-review-count {
    color: #555;
    font-size: 12px;
}

.lvmr-pc-item-price del {
    color: #a0a0a0;
    font-weight: 400;
    font-size: 13px;
    margin-right: 5px;
}

.lvmr-pc-item-price ins {
    text-decoration: none;
    color: #73a100;
}

/* Add to Cart Hover effect */
.lvmr-pc-item-addcart {
    position: absolute;
    top: 100%;
    /* Drop exactly below the card */
    left: -1px;
    /* Align with borders */
    right: -1px;
    padding: 0 20px 20px 20px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
    transform: translateY(-10px);
    border: 1px solid #e1e1e1;
    border-top: none;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.05);
    /* Shadow falling below */
}

.lvmr-pc-item:hover {
    z-index: 30;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05), 5px 0 10px rgba(0, 0, 0, 0.02), -5px 0 10px rgba(0, 0, 0, 0.02);
    /* Shadow around top & sides */
}

.lvmr-pc-item:hover .lvmr-pc-item-addcart {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lvmr-pc-item-addcart .button {
    display: block;
    width: 100%;
    background: #f07c00;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lvmr-pc-item-addcart .button:hover {
    background: #d06c00;
}