/* =========================================
   PRODUCT REVIEWS - PREMIUM DESIGN
========================================= */
.product-reviews-section {
    margin-top: 40px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.product-reviews-section h2 {
    margin: 0 0 22px;
    color: #222222;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

/* Review Form */
.review-form-container {
    margin-bottom: 32px;
    padding: 22px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 16px;
}

.review-form-container h3 {
    margin: 0 0 18px;
    color: #333333;
    font-size: 20px;
    font-weight: 650;
}

.review-rating-input,
.review-comment-input {
    margin-bottom: 16px;
}

.review-rating-input label,
.review-comment-input label {
    display: block;
    margin-bottom: 8px;
    color: #444444;
    font-size: 14px;
    font-weight: 600;
}

#reviewRating,
#reviewComment {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    outline: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

#reviewRating:focus,
#reviewComment:focus {
    border-color: #d4a017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

#reviewComment {
    min-height: 110px;
    resize: vertical;
    font-family: inherit;
}

#reviewForm button[type="submit"] {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #c89425, #e6b84f);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

#reviewForm button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 148, 37, 0.28);
}

#reviewForm button[type="submit"]:active {
    transform: translateY(0);
}

/* Review Message */
#reviewFormMessage {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* Reviews List */
#productReviews {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    padding: 20px;
    border: 1px solid #eeeeee;
    border-radius: 15px;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.review-card:hover {
    border-color: #e3c77e;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.review-user-name {
    color: #222222;
    font-size: 15px;
    font-weight: 700;
}

.review-date {
    margin-top: 4px;
    color: #888888;
    font-size: 12px;
}

.review-stars {
    color: #f2b01e;
    font-size: 17px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.review-comment {
    margin: 10px 0 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.verified-review {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 5px 9px;
    border-radius: 20px;
    background: #edf8ef;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 700;
}

/* Empty and Loading State */
.reviews-empty,
.reviews-loading {
    padding: 28px 15px;
    border: 1px dashed #dddddd;
    border-radius: 12px;
    color: #888888;
    font-size: 14px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-reviews-section {
        margin-top: 28px;
        padding: 18px;
        border-radius: 16px;
    }

    .product-reviews-section h2 {
        font-size: 22px;
    }

    .review-form-container {
        padding: 16px;
    }

    .review-form-container h3 {
        font-size: 18px;
    }

    .review-card {
        padding: 16px;
    }

    .review-card-header {
        flex-direction: column;
        gap: 6px;
    }

    .review-stars {
        font-size: 16px;
    }

    #reviewForm button[type="submit"] {
        width: 100%;
        padding: 13px;
    }
}

@media (max-width: 420px) {
    .product-reviews-section {
        padding: 14px;
    }

    .review-form-container {
        padding: 14px;
    }

    .product-reviews-section h2 {
        font-size: 20px;
    }

    .review-comment {
        font-size: 13px;
    }
}

/* =========================================================
   CUSTOMER TESTIMONIAL AUTO SLIDER
   ALWAYS 3 CARDS VISIBLE
========================================================= */
.testimonials-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 45px;
    box-sizing: border-box;
}

.testimonials-slider {
    width: 100%;
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    gap: 20px;
    width: 100%;

    transition: transform 0.6s ease;
}

.testimonial-card {
    flex: 0 0 calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
    min-width: 0;
    box-sizing: border-box;
}

/* =========================================================
   ARROWS
========================================================= */
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: var(--primary-color);
    color: #fff;

    font-size: 20px;
    font-weight: bold;

    cursor: pointer;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}

.testimonial-arrow:hover {
    transform: translateY(-50%) scale(1.08);
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

/* =========================================================
   DOTS
========================================================= */
.testimonial-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: #d5d5d5;
    cursor: pointer;

    transition: 0.25s ease;
}

.testimonial-dot.active {
    width: 22px;
    border-radius: 10px;
    background: var(--primary-color);
}

/* =========================================================
   MOBILE
   STILL 3 CARDS
========================================================= */
@media (max-width: 600px) {
    .testimonials-slider-wrapper {
        padding: 0 24px;
    }

    .testimonials-container {
        gap: 7px;
    }

    .testimonial-card {
        flex: 0 0 calc((100% - 14px) / 3);
        width: calc((100% - 14px) / 3);
        padding: 10px;
        border-radius: 10px;
    }

    .testimonial-card .customer-info {
        gap: 6px;
    }

    .testimonial-card .customer-info img {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .testimonial-card h3 {
        font-size: 11px;
        line-height: 1.2;
        margin: 0;
    }

    .testimonial-card .rating {
        font-size: 9px;
        line-height: 1;
        margin-top: 3px;
    }

    .testimonial-card .testimonial-text {
        font-size: 9px;
        line-height: 1.35;
        margin: 8px 0;
    }

    .testimonial-card .verified {
        font-size: 8px;
        line-height: 1.2;
    }

    .testimonial-arrow {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    .testimonial-prev {
        left: 0;
    }

    .testimonial-next {
        right: 0;
    }

    .testimonial-dots {
        margin-top: 14px;
        gap: 5px;
    }

    .testimonial-dot {
        width: 6px;
        height: 6px;
    }

    .testimonial-dot.active {
        width: 16px;
    }
}

@media (max-width: 380px) {
    .testimonials-slider-wrapper {
        padding: 0 20px;
    }

    .testimonials-container {
        gap: 5px;
    }

    .testimonial-card {
        flex: 0 0 calc((100% - 10px) / 3);
        width: calc((100% - 10px) / 3);
        padding: 7px;
    }

    .testimonial-card .customer-info img {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    .testimonial-card h3 {
        font-size: 9px;
    }

    .testimonial-card .rating {
        font-size: 7px;
    }

    .testimonial-card .testimonial-text {
        font-size: 8px;
        line-height: 1.3;
    }

    .testimonial-card .verified {
        font-size: 7px;
    }

    .testimonial-arrow {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}

/* =========================================================
   MOBILE BOTTOM NAVIGATION
========================================================= */
.bottom-nav {
    display: none;
}

/* Mobile */
@media (max-width: 700px) {
    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;

        height: 64px;

        display: flex;
        align-items: center;
        justify-content: space-around;

        background: #ffffff;

        border-top: 1px solid #eeeeee;

        box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.08);

        z-index: 9999;

        padding: 6px 5px calc(6px + env(safe-area-inset-bottom));

        box-sizing: border-box;
    }

    .bottom-nav-item {
        position: relative;

        flex: 1;

        min-width: 0;

        height: 52px;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 3px;

        text-decoration: none;

        color: #666;

        font-size: 11px;
        font-weight: 500;

        border: none;
        background: transparent;

        cursor: pointer;

        transition: color 0.2s ease, transform 0.2s ease;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item:active {
        color: #e35486;
    }

    .bottom-nav-item:active {
        transform: scale(0.95);
    }

    .bottom-nav-icon {
        width: 25px;
        height: 25px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 21px;

        line-height: 1;
    }

    .bottom-nav-item span:last-child {
        line-height: 14px;
    }

    /* Cart Count */
    .bottom-cart-count {
        position: absolute;

        top: 3px;
        right: calc(50% - 22px);

        min-width: 17px;
        height: 17px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0 4px;

        box-sizing: border-box;

        background: #e35486;
        color: #ffffff;

        border-radius: 50%;

        font-size: 9px;
        font-weight: 700;

        line-height: 17px;
    }

    /* Give page space for fixed bottom navigation */
    body {
        padding-bottom: 70px;
    }
}

