/* ==========================================================================
   PRODUCT_DETAIL
   ========================================================================== */
.product-content-detail {
   font-size: 1.05rem;
   line-height: 1.8;
   color: #333333;
}

.product-content-detail .lead {
   font-size: 1.15rem;
   color: #4a5568;
   margin-bottom: 1.5rem;
}

.product-content-detail h3 {
   font-size: 1.3rem;
   font-weight: 700;
   color: var(--danger-color); 
   margin-top: 1.8rem;
   margin-bottom: 1rem;
   position: relative;
   padding-left: 12px;
}

.product-content-detail h3::before {
   content: "";
   position: absolute;
   left: 0;
   top: 6px;
   bottom: 6px;
   width: 4px;
   background-color: var(--danger-color);
   border-radius: 2px;
}

.product-content-detail ul {
   padding-left: 1.2rem;
   margin-bottom: 1.5rem;
}
.product-content-detail ul li {
   margin-bottom: 0.5rem;
   list-style-type: square; 
}

.product-content-detail .note-box {
   background-color: #fff3cd; 
   border-left: 4px solid var(--accent-color); 
   padding: 15px 20px;
   border-radius: 4px;
   margin: 1.5rem 0;
}
.product-content-detail .note-box p {
   margin: 0;
   color: #664d03;
   font-size: 0.95rem;
}

.product-content-detail table {
   width: 100%;
   margin-bottom: 1.5rem;
   border-collapse: collapse;
}
.product-content-detail table th, 
.product-content-detail table td {
   padding: 12px;
   border: 1px solid #dee2e6;
}

/* ==========================================================================
   TRANG TRÍ BẢNG THÔNG SỐ
   ========================================================================== */
.custom-table-wrapper {
   border-radius: 12px; 
   border: 1px solid #e9ecef;
}
.custom-beautiful-table th {
   font-weight: 700;
   letter-spacing: 0.5px;
   font-size: 0.85rem;
   background-color: #f8f9fa !important;
}
.custom-beautiful-table td {
   padding: 1rem 0.5rem; 
   border-color: #f1f3f5; 
}
.custom-beautiful-table tbody tr:hover td {
   background-color: var(--bg-pink-light) !important; 
   transition: background-color 0.2s ease;
}
.select-all {
   user-select: all; 
   -webkit-user-select: all;
}

/* ==========================================================================
   STYLE KHỐI SIDEBAR ĐĂNG KÝ SMS (PRODUCT DETAIL)
   ========================================================================== */
.sticky-sidebar-card {
   box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
   transition: transform 0.3s ease;
}
.fw-black { font-weight: 900; }
.syntax-box {
   background-color: var(--bg-pink-light); 
   border: 1px solid var(--bg-pink-lighter);
}
.border-dashed { border-style: dashed !important; }
.btn-copy-syntax {
   width: 32px; 
   height: 32px; 
   padding: 0;
   display: flex;
   align-items: center;
   justify-content: center;
}

.btn-pulse {
   animation: pulse-danger-effect 2s infinite;
}
@keyframes pulse-danger-effect {
   0%   { box-shadow: 0 0 0 0 rgba(var(--danger-color-rgb), 0.7); }
   70%  { box-shadow: 0 0 0 12px rgba(var(--danger-color-rgb), 0); }
   100% { box-shadow: 0 0 0 0 rgba(var(--danger-color-rgb), 0); }
}

.btn-register-sms {
   touch-action: manipulation; 
   -webkit-tap-highlight-color: transparent; 
   user-select: none; 
   -webkit-user-select: none;
   transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), filter 0.1s ease !important;
}
.btn-register-sms:active {
   transform: scale(0.94) !important; 
   filter: brightness(0.85); 
}

/* ========================================================
   THANH STICKY CSS THUẦN ĐĂNG KÝ SMS - CHÂN TRANG
======================================================== */
@media (max-width: 991.98px) {
   .mobile-sticky-register {
       position: fixed;
       bottom: 0;
       margin-bottom: 0;
       left: 0;
       width: 100%;
       z-index: 1040;
       background-color: #ffffff;

       border-top-left-radius: 20px;
       border-top-right-radius: 20px;       
       box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
       border-top: 1px solid #f1f3f5;
       padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
       
       transform: translateZ(0);
       -webkit-transform: translateZ(0);
       will-change: transform;
   }
}

/* Màu đỏ cho mã gói cước */
.product-code-theme {
   color: var(--theme-color) !important;
   letter-spacing: 0.5px;
   font-size: 1.2rem !important; 
   font-weight: 800 !important;
}

/* Nút Đăng ký Sticky Đỏ Viettel dáng viên thuốc */
.btn-theme-sms {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background-color: var(--theme-color);
   color: #ffffff !important;
   text-decoration: none;
   font-size: 14px;
   padding: 9px 24px;
   border-radius: 50px;
   border: none;
   letter-spacing: 0.5px;
   box-shadow: 0 4px 14px rgba(var(--theme-color-rgb), 0.38);
   transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;

   -webkit-tap-highlight-color: transparent;
   user-select: none; 
   touch-action: manipulation; 
   transform: translateZ(0);
}

/* Chỉ áp dụng hiệu ứng Hover cho thiết bị có chuột (Máy tính) */
@media (hover: hover) and (pointer: fine) {
   .btn-theme-sms:hover {
       background-color: var(--theme-color-hover, #c8002b) !important;
       transform: scale(0.98);
       box-shadow: 0 2px 8px rgba(var(--theme-color-rgb), 0.5);
   }
}

.btn-theme-sms .icon-sms {
   font-size: 0.9em;
   transform: translateY(-1px);
}

/* Hiệu ứng khi nhấn giữ nút trên mobile */
.btn-theme-sms:active {
   background-color: var(--theme-color-hover, #c8002b) !important;
   transform: scale(0.96) translateZ(0);
}

/* Ép ngón tay xuyên qua Icon và Chữ, chỉ tương tác với thẻ <a> bọc ngoài */
.btn-theme-sms i, 
.btn-theme-sms span {
   pointer-events: none;
}


/* ==========================================================================
   GIAO DIỆN KHỐI THÔNG SỐ & NÚT SMS CHI TIẾT SẢN PHẨM
   ========================================================================== */

.bg-danger-light  { background-color: rgba(238, 0, 51, 0.06) !important; }
.bg-primary-light { background-color: rgba(13, 110, 253, 0.06) !important; }
.bg-success-light { background-color: rgba(25, 135, 84, 0.06) !important; }

.spec-icon-circle {
   width: 45px;
   height: 45px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.small-label {
   font-size: 0.8rem !important;
}

.pkg-spec-card {
   transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.pkg-spec-card:hover {
   transform: translateY(-3px);
   box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.06) !important;
}

/* Khung cú pháp sạch sẽ, không màu nền đỏ thừa */
.pkg-syntax-clean {
   background-color: #fdfdfd !important;
   border: 1px solid #e9ecef !important;
}
.pkg-syntax-clean .select-all-text {
   user-select: all;
   background-color: rgba(238, 0, 51, 0.05);
   padding: 2px 8px;
   border-radius: 6px;
}

/* NÚT BẤM SMS NÂNG CAO */
.quick-sms-btn {
   background: linear-gradient(90deg, var(--theme-color), #ff2a55) !important;
   border: none !important;
   font-weight: 700 !important;
   font-size: 1.1rem !important;
   letter-spacing: 0.3px;
   transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.quick-sms-btn:active {
   transform: scale(0.985) !important;
}
.quick-sms-btn::after {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 50%;
   height: 100%;
   background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
   transform: skewX(-25deg);
   animation: quickSmsShine 3s infinite;
}
@keyframes quickSmsShine {
   0% { left: -100%; }
   18% { left: 200%; }
   100% { left: 200%; }
}

/* ==========================================================================
   SECTION HƯỚNG DẪN 4 CÁCH ĐĂNG KÝ (PRODUCT DETAIL GUIDE)
   ========================================================================== */
.pd-guide-wrapper {
   background: #ffffff;
   border-radius: 20px;
   border: 1px solid rgba(0,0,0,0.05);
   box-shadow: 0 10px 30px rgba(0,0,0,0.03);
   padding: 35px 30px;
   margin-top: 10px;
}

.pd-guide-title {
   font-size: 26px;
   font-weight: 800;
   color: #2d3748;
   margin-bottom: 12px;
   text-transform: uppercase;
}

.pd-guide-intro {
   font-size: 15px;
   color: #4a5568;
   line-height: 1.7;
   margin-bottom: 30px;
   text-align: justify;
}

/* Khung bọc hình ảnh */
.pd-guide-img-box {
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 8px 25px rgba(0,0,0,0.06);
   border: 1px solid rgba(0,0,0,0.03);
   height: 100%;
}
.pd-guide-img-box img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.5s ease;
}
.pd-guide-img-box:hover img {
   transform: scale(1.02);
}

/* Các thẻ list cách đăng ký */
.pd-guide-step-item {
   display: flex;
   align-items: flex-start;
   margin-bottom: 15px;
   padding: 18px;
   border-radius: 16px;
   background: #fdfdfd;
   border: 1px solid #f1f5f9;
   transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pd-guide-step-item:last-child {
   margin-bottom: 0;
}
.pd-guide-step-item:hover {
   background: #ffffff;
   border-color: rgba(var(--theme-color-rgb), 0.2);
   box-shadow: 0 8px 20px rgba(var(--theme-color-rgb), 0.08);
   transform: translateX(8px); /* Trượt nhẹ sang phải */
}

/* Icon tròn */
.pd-guide-step-icon {
   width: 45px;
   height: 45px;
   flex-shrink: 0;
   background: rgba(var(--theme-color-rgb), 0.08);
   color: var(--theme-color);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 20px;
   margin-right: 18px;
   transition: all 0.3s ease;
}
.pd-guide-step-item:hover .pd-guide-step-icon {
   background: var(--theme-color);
   color: #ffffff;
   box-shadow: 0 5px 12px rgba(var(--theme-color-rgb), 0.3);
   transform: scale(1.1);
}

.pd-guide-step-content h5 {
   font-size: 16px;
   font-weight: 700;
   color: #2d3748;
   margin-bottom: 6px;
}
.pd-guide-step-content p {
   font-size: 14.5px;
   color: #64748b;
   margin-bottom: 0;
   line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 767px) {
   .pd-guide-wrapper { padding: 25px 20px; }
   .pd-guide-title { font-size: 22px; }
   .pd-guide-step-item { padding: 15px; }
}

/* =========================================================
   STYLE NÚT ĐĂNG KÝ TRONG BẢNG UPSELL
============================================================ */
.btn-table-register {
   /* Dải màu Gradient chuẩn từ Đỏ sậm sang Đỏ tươi */
   background: linear-gradient(90deg, var(--theme-color-dark), var(--theme-color)); 
   color: #ffffff !important;
   border: none;
   padding: 6px 18px; /* Kích thước nội tuyến */
   font-size: 13px;
   letter-spacing: 0.5px;
   /* Bóng đổ tĩnh theo màu RGB của thương hiệu */
   box-shadow: 0 3px 6px rgba(var(--theme-color-rgb), 0.25); 
   white-space: nowrap;
   
   /* transition đổi màu và bóng */
   transition: filter 0.2s ease, box-shadow 0.2s ease !important; 
}

.btn-table-register:hover {
   color: #ffffff;
   filter: brightness(1.15); /* Làm nút sáng rực lên khi hover */
   box-shadow: 0 5px 12px rgba(var(--theme-color-rgb), 0.4); 
}

.btn-table-register:active {
   filter: brightness(0.9); /* Hơi tối lại khi click để tạo cảm giác bấm vật lý */
   box-shadow: 0 1px 3px rgba(var(--theme-color-rgb), 0.2); 
}

/* ==========================================================================
   TỐI ƯU BẢNG UPSELL MÀN HÌNH MOBILE (KHÔNG CUỘN NGANG)
========================================================================== */
   @media (max-width: 767.98px) {
   /* Tắt thanh cuộn ngang thừa của Bootstrap */
   .upsell-table-wrapper .table-responsive {
       overflow-x: hidden !important;
   }

   /* Cố định tỷ lệ bảng chuẩn 100% màn hình, không trượt ngang */
   .upsell-table-wrapper table {
       table-layout: fixed !important;
       width: 100% !important;
       margin-bottom: 0 !important;
   }

   /* Chia lại tỷ lệ 4 cột chuẩn vàng cho Mobile (Tổng = 100%) */
   .upsell-table-wrapper th:nth-child(1), 
   .upsell-table-wrapper td:nth-child(1) { width: 18% !important; } /* Cột Gói */

   .upsell-table-wrapper th:nth-child(2), 
   .upsell-table-wrapper td:nth-child(2) { width: 38% !important; } /* Cột Ưu đãi */

   .upsell-table-wrapper th:nth-child(3), 
   .upsell-table-wrapper td:nth-child(3) { width: 20% !important; } /* Cột Giá */

   .upsell-table-wrapper th:nth-child(4), 
   .upsell-table-wrapper td:nth-child(4) { width: 24% !important; } /* Cột Nút Đăng ký */

   /* Cắt giảm khoảng trắng đệm (padding) thừa ở các ô */
   .upsell-table-wrapper th {
       padding: 8px 2px !important;
       font-size: 11px !important;
   }

   .upsell-table-wrapper td {
       padding: 8px 2px !important;
       white-space: normal !important;
       word-break: break-word !important;
   }

   /* Thu nhỏ font chữ nội dung trên màn hình điện thoại */
   .upsell-table-wrapper td a {
       font-size: 13px !important;
   }

   .upsell-table-wrapper td .text-dark {
       font-size: 11.5px !important;
       line-height: 1.3;
   }

   .upsell-table-wrapper td .small {
       font-size: 10px !important;
   }

   /* Ép cột Đơn giá nhỏ lại */
   .upsell-table-wrapper td.fs-6 {
       font-size: 12px !important; 
   }

   /* Ép cái chữ /tháng (class small) cho cân đối */
   .upsell-table-wrapper td.fs-6 .small {
       font-size: 10px !important;
   }

   /* Ép chữ (3GB/ngày) nhỏ lại và gọn hơn */
   .upsell-table-wrapper td .text-secondary.fw-normal {
       font-size: 10px !important; 
       letter-spacing: -0.2px !important;
   }
   
   /* Ép luôn icon nhỏ lại cho cân đối với chữ */
   .upsell-table-wrapper td .fa-wifi {
       font-size: 10px !important;
   }

   /* Ép nút Đăng ký nhỏ gọn */
   .upsell-table-wrapper .btn-table-register {
       padding: 5px 2px !important;
       font-size: 10px !important;
       letter-spacing: 0 !important;
       width: 100% !important;
       min-width: 0 !important;
       white-space: nowrap !important;
       display: block !important;
       text-align: center !important;
   }
}

/* ==========================================================================
   TAB CÁC GÓI CƯỚC & GÓI LIÊN QUAN
   ========================================================================== */        
.tab-product-section .swiper-pagination-bullet {
   background-color: #cccccc;
   opacity: 1;
   transition: all 0.3s ease;
}
.tab-product-section .swiper-pagination-bullet-active,
.related-product-section .swiper-pagination-bullet-active {
   background-color: var(--theme-color) !important;
   width: 24px !important;
   border-radius: 10px !important;
}

.relatedSwiper .swiper-slide > div {
   width: 100% !important;
   max-width: 100% !important;
   margin: 0 !important;
   padding: 0 !important;
}

/* Ẩn hoàn toàn thanh cuộn ngang trên điện thoại */
.related-slider::-webkit-scrollbar {
   display: none; /* Ẩn trên Chrome, Safari, Opera */
}
    
.related-slider {
   -ms-overflow-style: none;  /* Ẩn trên IE và Edge */
   scrollbar-width: none;     /* Ẩn trên Firefox */
}

/* ========================================================
   TIÊU ĐỀ GÓI CƯỚC TƯƠNG TỰ (CÓ NÚT XEM THÊM CẢ MOBILE & PC)
======================================================== */
.related-header-wrapper {
   display: flex;
   align-items: center;
   justify-content: space-between;
   width: 100%;
}

.related-title-link {
   color: inherit;
   text-decoration: none;
   transition: color 0.3s ease;
}

.related-title-link:hover {
   color: var(--theme-color);
}

/* --------------------------------------------------------
   NÚT XEM THÊM (DÙNG CHUNG CẢ MOBILE VÀ PC)
-------------------------------------------------------- */
.related-view-more-btn {
   text-decoration: none;
   color: var(--theme-color);
   display: inline-flex;
   align-items: center;
   font-weight: 600;
   background-color: rgba(var(--theme-color-rgb), 0.08);
   border-radius: 20px;
   transition: all 0.3s ease;
   z-index: 2;
   font-size: 11px;
   padding: 4px 10px;
   gap: 4px;
}

.related-view-more-btn .v-icon {
   transform: translateY(1px);
   transition: transform 0.3s ease;
}

.related-view-more-btn:hover {
   background-color: var(--theme-color);
   color: #ffffff !important;
   box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), 0.3);
}

.related-view-more-btn:hover .v-icon {
   transform: translate(3px, 1px);
}

/* --------------------------------------------------------
   MÁY TÍNH (Từ 768px trở lên)
-------------------------------------------------------- */
@media (min-width: 768px) {
   .related-view-more-btn {
       font-size: 13px;
       padding: 6px 14px;
       gap: 6px;
   }
}

/* ========================================================
   ẨN THANH CUỘN CHỈ DÀNH RIÊNG CHO TRANG CHI TIẾT
   (Khối Gói tương tự & Khối Gói vừa xem)
======================================================== */
/* Chrome, Safari, Opera, iOS, Android */
.related-product-section .pc-horizontal-scroll::-webkit-scrollbar,
.recently-viewed-section .pc-horizontal-scroll::-webkit-scrollbar {
   display: none !important;
}

/* Firefox, IE, Edge */
.related-product-section .pc-horizontal-scroll,
.recently-viewed-section .pc-horizontal-scroll {
   -ms-overflow-style: none !important;  
   scrollbar-width: none !important;     
}