﻿/* ==========================================================================
   Componenta Product Carousel
   ========================================================================== */

.carousel-outer {
    position: relative;
    margin: 48px auto 0 auto;
    padding: 0 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.carousel-title-solo {
    display: block;
    white-space: normal;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    font-size: clamp(0.6rem, 4vw, 1.2rem);
    padding-inline: 10vw;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: break-word;
}

.carousel-wrapper {
    width: 100%;
    max-width: 570px;
    min-height: 540px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.product-review-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.11);
    padding: 0;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    overflow: hidden;
    font-family: 'Inter', Arial, sans-serif;
    transition: box-shadow 0.2s;
    position: relative;
    z-index: 1;
}

.carousel-video-wrapper {
    position: relative;
    width: 100vw;
    max-width: 600px;
    min-height: 280px;
    height: 54vw;
    max-height: 420px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#productVideo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 16 / 9;
}

.review-content {
    padding: 24px 0 12px 0;
    width: 100%;
    box-sizing: border-box;
}

.pret-marketing {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 15px 0 7px 0;
    font-family: inherit;
    flex-wrap: wrap;
}

.detaliu-cutie {
    font-weight: 700;
    font-size: 1.13rem;
    color: #232323;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-right: 2px;
}

.egal {
    font-size: 1.13rem;
    font-weight: 700;
    color: #232323;
    margin-right: 3px;
}

.pret-nou {
    font-family: 'Exo 2', sans-serif;
    color: #f1c40f;
    font-size: 1.4rem;
    font-weight: 400;
    padding: 2px 6px;
    margin-right: 0.3rem;
}

.pret-vechi {
    font-family: 'Exo 2', sans-serif;
    color: #e74c3c;
    text-decoration: line-through;
    font-size: 1rem;
    font-weight: 400;
    padding: 2px 6px;
}

.pret-nou small {
    font-size: 0.62em;
    font-weight: 700;
    margin-left: 0.5px;
    margin-top: 7px;
    line-height: 1;
    vertical-align: super;
}

.product-review-card .review-text {
    font-family: 'Noto Serif', serif;
    color: #fff;
    font-size: 0.9em;
    white-space: normal;
    text-align: center;
    flex-grow: 1;
    line-height: 1.4;
}

.review-row-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 0 18px;
    margin: 0;
    margin-top: clamp(0.42em, 2.6vw, 1.25em) !important;
    font-size: 0.84em;
}

.review-author {
    font-weight: bold;
    text-transform: uppercase;
    font-size: inherit;
    margin: 0;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: #222;
}

.review-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more {
    margin: 0;
    padding: 0;
    font-size: inherit;
    white-space: nowrap;
    color: #005eff;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
}

.verified-badge {
    background: #eafbe7;
    color: #25a244;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.81em;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: 0.01em;
    padding: 1.5px 6px 1.5px 3.5px;
    box-shadow: 0 2px 6px #1e772215;
    vertical-align: middle;
    flex-shrink: 1;
}

    .verified-badge::after {
        content: '✔';
        margin-left: 2px;
        font-size: 1em;
        color: #25a244;
        font-weight: bold;
        vertical-align: middle;
        display: inline-block;
        position: relative;
        top: 0.5px;
    }

.carousel-stars-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 1rem 0;
    min-height: 32px;
    padding: 0;
}

.carousel-stars-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.01rem;
    font-weight: 700;
}

.stars {
    color: #f5b904;
    font-size: 1.02em;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.review-rating {
    color: #222;
    font-size: 1em;
    font-weight: 700;
    margin: 0 4px;
    min-width: 2ch;
    letter-spacing: 0;
    display: inline-block;
    vertical-align: middle;
}

.carousel-review-count {
    color: #222;
    font-size: 1.11rem;
    font-weight: 700 !important;
    margin-left: 6px;
    white-space: nowrap;
    text-shadow: 0 1px 0 #fff, 0 2px 4px #eee6;
}

.cumpara-cardProdus-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: clamp(1.1em, 4vw, 2em);
    margin-bottom: clamp(1.15em, 4vw, 2em);
}

.btn-cumpara-cardProdus {
    background: #1659e4;
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.01em, 4.2vw, 1.14em);
    padding: 0.7em 2.5em;
    border-radius: 36px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    border: none;
    outline: none;
    text-align: center;
    box-shadow: 0 2px 12px #1659e422;
    transition: background 0.16s, transform 0.15s;
    cursor: pointer;
    text-decoration: none !important;
}

    .btn-cumpara-cardProdus:hover,
    .btn-cumpara-cardProdus:focus {
        background: #0d328a;
        color: #fff;
        transform: scale(1.04);
        text-decoration: none;
    }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #f5f6fb;
    border: none;
    border-radius: 50%;
    font-size: 2.3rem;
    width: var(--carousel-arrow-size);
    height: var(--carousel-arrow-size);
    box-shadow: 0 2px 12px rgba(30,30,80,0.09);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    z-index: 5;
    user-select: none;
}

    .carousel-arrow.prev {
        left: calc(-1 * var(--carousel-arrow-offset));
    }

    .carousel-arrow.next {
        right: calc(-1 * var(--carousel-arrow-offset));
    }

    .carousel-arrow:hover {
        background: #e1e3f3;
        box-shadow: 0 6px 24px 0 rgba(51,51,170,0.18);
    }

    .carousel-arrow:focus {
        outline: none !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    .carousel-arrow .arrow-icon {
        width: 64%;
        height: 64%;
        margin: 0;
        padding: 0;
    }

    .carousel-arrow svg {
        width: 100%;
        height: 100%;
        display: block;
        margin: 0 auto;
    }

/* ==========================================================================
   Stiluri Responsive pentru Product Carousel
   ========================================================================== */
#sliderCard {
    transition: opacity 1s ease, transform 1s ease;
    min-height: unset !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

    #sliderCard.fade-out {
        opacity: 0;
        transform: scale(0.98);
    }

    #sliderCard.fade-in {
        opacity: 1;
        transform: scale(1);
    }

.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #999;
    opacity: 0.5;
    transition: opacity 0.3s, background-color 0.3s;
    cursor: pointer;
}

    .dot.active {
        background-color: #000;
        opacity: 1;
    }

@media (max-width: 420px) {
    .carousel-stars-inline {
        font-size: 3vw !important;
        margin-bottom: 1vw !important;
    }

    .pret-marketing {
        font-size: 4.9vw !important;
        margin-top: calc(15px * 0.6) !important;
        margin-bottom: 1.4vw !important;
    }

    /* Regula pentru .review-text a fost eliminată */

    .review-row-flex {
        font-size: 2.7vw !important;
        padding-inline: 3.5vw !important;
        margin-top: 1vw !important;
    }

    .btn-cumpara-cardProdus {
        font-size: 3.6vw !important;
        padding: 3vw 0 !important;
        width: 55vw !important;
        border-radius: 10vw !important;
    }

    .cumpara-cardProdus-wrapper {
        margin-top: clamp(3.4vw, 6vw, 7vw) !important;
        margin-bottom: clamp(3rem, 9vw, 4.5rem) !important;
    }
}