/* =============================================================
   Featured Product Ticker — featured-product-ticker.css
   Place in: /wp-content/plugins/featured-product-ticker/
============================================================= */

/* Outer wrapper — adds horizontal padding to inset from screen edges */
.fpt-outer {
    padding: 0 40px;
    box-sizing: border-box;
    width: 100%;
}

/* Wrapper — positions nav buttons absolutely on each side */
.fpt-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 48px;
}

/* Viewport clips the sliding track */
.fpt-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    padding:40px 0;
}

/* Sliding track */
.fpt-track {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    gap: 16px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Individual product card */
.fpt-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #F6F6F6;
    border-radius: 12px;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: -8px 9px 21px -10px rgba(0,0,0,0.3);
-webkit-box-shadow: -8px 9px 21px -10px rgba(0,0,0,0.3);
-moz-box-shadow: -8px 9px 21px -10px rgba(0,0,0,0.3);
        
}

/* Product image */
.fpt-card__img-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f6f6f6;
}

.fpt-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.fpt-card__img-link:hover .fpt-card__img {
    transform: scale(1.04);
}

/* Title */
.fpt-card__title {
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
}

.fpt-card__title a {
    color: #1a1a1a;
    text-decoration: none;
    font-family: "Open Sans", sans-serif;
    font-weight:600;        
    color:#252c72;
}

.fpt-card__title a:hover {
    color: #555;
}

/* Star rating */
.fpt-card__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fpt-card__rating .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fpt-card__rating .star-rating {
    font-size: 13px;
    overflow: hidden;
    position: relative;
    height: 1.2em;
    line-height: 1.2;
    width: 5.3em;
    font-family: WooCommerce;
}

.fpt-card__rating-count {
    font-size: 11px;
    color: #777;
}

/* Price */
.fpt-card__price {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.fpt-card__price del {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-right: 3px;
}

.fpt-card__price ins {
    text-decoration: none;
}

/* Add to cart button */
.fpt-card__atc.button,
.fpt-card .add_to_cart_button {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 8px 12px;
    font-size: 16px!important;
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    box-sizing: border-box;
    background-color:#E65352;
}

.fpt-card__atc.button:hover,
.fpt-card .add_to_cart_button:hover {
    background: #db3b3b;
    color: #fff;
}

/* Navigation arrow buttons */
.fpt-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #555;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
    line-height: 0;
}

.fpt-nav:hover {
    background: #f4f4f4;
    border-color: #bbb;
}

.fpt-nav--left {
    left: 4px;
}

.fpt-nav--right {
    right: 4px;
}

.fpt-nav[disabled] {
    opacity: 0.35;
    cursor: default;
}

/* Empty state */
.fpt-empty {
    text-align: center;
    color: #999;
    padding: 2rem 0;
}

.fpt-card__price,
.fpt-card__price .price,
.fpt-card__price .amount,
.fpt-card__price bdi {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.fpt-card__price del,
.fpt-card__price del .amount {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.fpt-card__price ins,
.fpt-card__price ins .amount {
    text-decoration: none;
    font-weight: 700;
}

.fpt-title {
        font-family: "Coiny", system-ui;
        font-weight: 700;
        font-size: 42px;
        font-style: normal;
        text-align:center;
        color: #252c72;
        margin: 0;
}

/* =============================================================
   Responsive
============================================================= */
@media (max-width: 900px) {
    .fpt-outer {
        padding: 0 24px;
    }
    .fpt-card {
        flex-basis: calc(33.333% - 11px);
    }
}

@media (max-width: 600px) {
    .fpt-outer {
        padding: 0 16px;
    }
    .fpt-wrapper {
        padding: 0 40px;
    }
    .fpt-card {
        flex-basis: calc(100% - 8px);
    }
}
