@charset "utf-8";
/* ==========================================================================
   MODULE CONTAINER CHÍNH (#evr-app) - STYLE CHO DESKTOP
   ========================================================================== */
#evr-app {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.5;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important; /* Khóa chống vỡ layout trên Desktop */
}

#evr-app *, 
#evr-app *::before, 
#evr-app *::after {
    box-sizing: border-box;
}

#evr-app .evr-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

/* TIÊU ĐỀ KHỐI */
#evr-app .evr-box-title {
    /*font-size: 16px;
    font-weight: bold;
    color: #222;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;*/
    font-size: 16px;
    font-weight: bold;
    color: #222;
    
    /* 1. Đặt padding trên-dưới bằng nhau (10px) để cố định chiều cao thanh tiêu đề */
    padding: 10px 12px !important; 
    
    /* 2. Ép tất cả các chữ bên trong tự động CĂN GIỮA THEO CHIỀU DỌC (Middle) */
    display: flex !important;
    align-items: center !important; 
    justify-content: space-between !important;
    
    line-height: 1.2 !important; /* Đảm bảo dòng chữ không bị đẩy bởi line-height mặc định */
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

#evr-app .evr-sub-note {
    font-size: 13px;
    font-weight: normal;
    color: #888;
}

/* ĐIỂM ĐÁNH GIÁ TRÊN TIÊU ĐỀ */
#evr-app .evr-rating-stat {
    /*display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;*/
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 13px;
    white-space: nowrap !important; /* KHÔNG CHO RỚT DÒNG CHỮ (10 đánh giá) */
    flex-shrink: 0 !important;      /* KHÔNG CHO BỊ THU HẸP KHI TÊN ĐỆM DÀI */
}

#evr-app .evr-rating-num {
    color: #f57c00;
    font-weight: bold;
}

#evr-app .evr-rating-count {
    /*color: #0277bd;
    font-weight: normal;*/
    color: #0277bd;
    font-weight: normal;
    white-space: nowrap !important; /* Khóa cứng chữ không bị rớt xuống dòng dưới */
}

/* ==========================================================================
   1. SẢN PHẨM CÙNG LOẠI (DESKTOP SLIDER)
   ========================================================================== */
#evr-app .evr-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* Ngăn Flexbox phình to trên IE/Edge/Chrome */
}

#evr-app .evr-slider-container {
    display: flex;
    gap: 15px;
    overflow-x: auto !important;
    scroll-behavior: smooth;
    padding: 5px 2px;
    width: 100% !important;
    min-width: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#evr-app .evr-slider-container::-webkit-scrollbar {
    display: none;
}

/* CARD SẢN PHẨM CÙNG LOẠI */
#evr-app .evr-slider-container .evr-card {
    flex: 0 0 350px; 
    max-width: 350px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

#evr-app .evr-slider-container .evr-card:hover {
    border-color: #388e3c;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* KHUNG BỌC ẢNH SẢN PHẨM */
#evr-app .evr-slider-container .evr-card-img-wrap {
    display: block;
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    background: #fafafa;
    border-radius: 4px;
}

#evr-app .evr-slider-container .evr-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

#evr-app .evr-slider-container .evr-card:hover .evr-card-img-wrap img {
    transform: scale(1.04);
}

/* TÊN SẢN PHẨM */
#evr-app .evr-slider-container .evr-card-title {
    margin-bottom: 6px;
    height: 38px;
    overflow: hidden;
}

#evr-app .evr-slider-container .evr-card-title a {
    text-decoration: none;
    color: #222;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

#evr-app .evr-slider-container .evr-card-title a:hover {
    color: #388e3c;
}

/* ICON GIẢM GIÁ % */
/*#evr-app .evr-slider-container .evr-card .sale {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #f57c00;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 2;
}*/
#evr-app .evr-slider-container .evr-card .sale {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    
    /* Khóa kích thước vuông tuyệt đối để không bị méo */
    width: 38px !important;
    height: 38px !important;
    
    /* Ép hiển thị chuẩn hình dáng gốc */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    
    /* Animation: Hiệu ứng nhịp đập nhẹ nhàng thu hút sự chú ý */
    animation: evrPulse 2s infinite ease-in-out;
    transform-origin: center center;
}

/* GIÁ BÁN */
#evr-app .evr-price-group {
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

#evr-app .evr-old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

#evr-app .evr-new-price {
    font-size: 14px;
    color: #2e7d32;
    font-weight: bold;
}

/* NÚT XEM CHI TIẾT */
#evr-app .evr-btn-view {
    display: block;
    text-align: center;
    background: #f0f7ff;
    color: #0277bd !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 6px 0;
    border-radius: 4px;
    border: 1px solid #cce0ff;
    text-decoration: none;
    transition: all 0.2s ease;
}

#evr-app .evr-btn-view:hover {
    background: #0277bd;
    color: #fff !important;
    border-color: #0277bd;
}

/* NÚT MŨI TÊN CHUYỂN SLIDE ON DESKTOP */
#evr-app .evr-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    color: #555;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

#evr-app .evr-nav-btn:hover {
    background: #388e3c;
    color: #fff;
    border-color: #388e3c;
}

#evr-app .evr-nav-prev { left: -15px; }
#evr-app .evr-nav-next { right: -15px; }

/* ==========================================================================
   2. BÌNH LUẬN & ĐÁNH GIÁ
   ========================================================================== */
#evr-app .evr-review-list {
    display: flex;
    flex-direction: column;
}

#evr-app .evr-review-card {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    display: block !important;
}

#evr-app .evr-review-card:last-child {
    border-bottom: none;
}

#evr-app .evr-review-card.hidden {
    display: none !important;
}

#evr-app .evr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

#evr-app .evr-user-name {
    font-weight: bold;
    font-size: 14px;
    color: #222;
}

#evr-app .evr-review-time {
    font-size: 12px;
    color: #888;
}

#evr-app .evr-stars-row {
    display: block !important;
    margin-bottom: 6px !important;
    clear: both;
}

#evr-app .evr-stars-row .icon-display {
    color: #f57c00;
    display: inline-block !important;
    font-size: 13px;
    margin-right: 2px;
}

#evr-app .evr-stars-row .icon-display-2 {
    color: #ccc;
    display: inline-block !important;
    font-size: 13px;
    margin-right: 2px;
}

#evr-app .evr-customer-comment {
    display: block !important;
    clear: both;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    word-break: break-word;
}

#evr-app .evr-shop-reply {
    margin-top: 10px;
    margin-left: 20px;
    padding: 10px 14px;
    background-color: #f8f9fa;
    border-left: 3px solid #388e3c;
    border-radius: 4px;
}

#evr-app .evr-shop-reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

#evr-app .evr-badge-shop {
    background: #388e3c;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}

#evr-app .evr-shop-name {
    font-weight: bold;
    font-size: 13px;
    color: #333;
}

#evr-app .evr-reply-time {
    font-size: 11px;
    color: #888;
    margin-left: auto;
}

#evr-app .evr-shop-comment {
    font-size: 13px;
    color: #444;
}

#evr-app .evr-load-more-wrapper {
    text-align: center;
    margin-top: 15px;
}

#evr-app .evr-btn-load-more {
    background: #fff;
    color: #0277bd;
    border: 1px solid #0277bd;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

#evr-app .evr-btn-load-more:hover {
    background: #0277bd;
    color: #fff;
}

/* ==========================================================================
   3. FORM ĐÁNH GIÁ (DESKTOP OPTIMIZED)
   ========================================================================== */
#evr-app .evr-form-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

#evr-app .evr-form-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

#evr-app .evr-rating-select {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

#evr-app .rating-label {
    font-size: 13px;
}

#evr-app .evr-stars-picker {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

#evr-app .evr-stars-picker input { display: none; }

#evr-app .evr-stars-picker label {
    font-size: 18px;
    color: #ccc;
    cursor: pointer;
    padding: 0 3px;
}

#evr-app .evr-stars-picker label:hover,
#evr-app .evr-stars-picker label:hover ~ label,
#evr-app .evr-stars-picker input:checked ~ label {
    color: #f57c00;
}

#evr-app .evr-form-group { margin-bottom: 12px; }

#evr-app .evr-textarea {
    width: 100%;
    height: 80px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    resize: vertical;
}

#evr-app .evr-form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap; /* Giữ thẳng hàng trên Desktop */
}

#evr-app .evr-input {
    padding: 7px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

#evr-app .evr-input-name { flex: 1 1 250px; }

#evr-app .evr-captcha-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

#evr-app .evr-input-captcha { width: 110px; }

#evr-app .evr-captcha-img {
    height: 32px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

#evr-app .evr-btn-submit {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}

#evr-app .evr-btn-submit:hover {
    background: #1565c0;
}