/* =================================================================
   1. GLOBAL FIXES (BẮT BUỘC ĐỂ KHÔNG GIẬT)
   ================================================================= */
html {
    overflow-y: scroll !important; /* Luôn hiện thanh cuộn */
    scrollbar-gutter: stable !important;
}

body {
    margin: 0px; padding: 0;
}

/* =================================================================
   2. KHUNG CỐ ĐỊNH (FIXED CONTAINER)
   ================================================================= */
.hid-product-wrapper {
    width: 900px !important; /* Khung cứng 900px */
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 50px 0 !important;
    background: #fff;
    box-sizing: border-box;
}

/* =================================================================
   3. ẢNH SẢN PHẨM (ĐÃ THU NHỎ)
   ================================================================= */
.hid-center-image {
    width: 900px !important;
    
    /* GIẢM CHIỀU CAO KHUNG ẢNH (Từ 350px -> 250px) */
    height: 250px !important; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Giảm khoảng cách dưới ảnh chút cho gọn */
    overflow: hidden;
}

.hid-center-image img {
    /* GIỚI HẠN CHIỀU CAO ẢNH (Ảnh sẽ bé lại) */
    max-height: 220px !important; 
    width: auto;
    display: block;
}

.hid-img-caption { display: none !important; }

/* =================================================================
   4. TYPOGRAPHY
   ================================================================= */
.hid-breadcrumb { font-size: 13px; color: #004890; margin-bottom: 20px; font-weight: 600; }
.hid-breadcrumb a { color: #004890; text-decoration: none; }

.hid-label { display: block; font-size: 15px; font-weight: bold; text-transform: uppercase; color: #666; margin-bottom: 10px; }
.hid-title { font-size: 38px; color: #004890; margin: 0 0 20px 0; font-weight: 600; line-height: 1.1; }
.hid-short-desc { font-size: 18px; line-height: 1.6; color: #333; margin-bottom: 40px; }

/* =================================================================
   5. TABS SYSTEM (FIX LỖI HOVER TRẮNG)
   ================================================================= */
.hid-tabs-nav { 
    display: flex; gap: 40px; margin-bottom: 40px; position: relative; 
}

.hid-tab-btn {
    background: transparent !important; 
    border: none; 
    padding: 10px 0; 
    font-size: 14px; 
    font-weight: 700;
    text-transform: uppercase; 
    color: #555; 
    cursor: pointer; 
    position: relative; 
    outline: none !important;
    transition: color 0.2s ease;
}

/* MOBILE RESPONSIVE */
@media (max-width: 950px) {
    .hid-breadcrumb-inner {
        width: 100%;
        padding: 0 20px; /* Thêm lề cho mobile đỡ dính sát mép */
    }
}

/* FIX LỖI HOVER: Ép cứng màu xanh, nền trong suốt */
.hid-tab-btn:hover {
    color: #004890 !important; /* Chữ màu xanh đậm */
    background-color: transparent !important; /* Nền trong suốt (chống lỗi theme đè màu trắng) */
}

/* Active State */
.hid-tab-btn.active { 
    color: #004890 !important; 
    background-color: transparent !important;
}

/* Đường gạch chân (Animation từ giữa ra) */
.hid-tab-btn::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background-color: #004890; transform: scaleX(0); transition: transform 0.3s ease;
}
.hid-tab-btn.active::after, .hid-tab-btn:hover::after { transform: scaleX(1); }

/* =================================================================
   6. NỘI DUNG TAB (CỐ ĐỊNH CHIỀU CAO)
   ================================================================= */
.hid-tab-content-wrapper {
    width: 900px !important;
    min-height: 700px !important; /* Chiều cao cố định chống giật */
    padding-top: 1px; margin-top: -1px;
}

.hid-tab-panel { display: none; width: 100%; }
.hid-tab-panel.active { display: block; }

/* Ép dòng đầu thẳng hàng */
.hid-tab-panel > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }

/* Style List */
.hid-tab-panel ul { list-style: none; padding: 0; margin: 0 0 20px 0; }
.hid-tab-panel ul li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.hid-tab-panel ul li::before { content: "•"; color: #004890; font-weight: bold; display: inline-block; width: 1em; margin-left: -1em; }
.hid-tab-panel strong { font-weight: 700; color: #000; }

/* =================================================================
   7. MOBILE RESPONSIVE
   ================================================================= */
@media (max-width: 950px) {
    .hid-product-wrapper { width: 100% !important; padding: 20px !important; }
    .hid-center-image { width: 100% !important; height: auto !important; }
    .hid-tab-content-wrapper { width: 100% !important; min-height: auto !important; height: auto !important; }
    .hid-center-image img { max-height: 200px !important; } /* Mobile ảnh bé hơn chút nữa */
}