/* ==============================================================
   THIáº¾T Káº¾ TRANG CHI TIáº¾T Sáº¢N PHáº¨M CHUáº¨N CÆ  KHÃ & LINH KIá»†N INFAS
============================================================== */
.product-detail-container { 
    max-width: 1320px; 
    margin: 0 auto; 
    padding: 12px 15px 35px; 
    font-family: 'Inter', sans-serif; 
}

/* Breadcrumbs Chuáº©n SEO */
.infas-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    padding: 10px 0 16px;
    color: #64748b;
}
.infas-breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}
.infas-breadcrumb a:hover {
    color: var(--gomi-primary, #1e5ca8);
}
.infas-breadcrumb .sep {
    font-size: 10px;
    color: #94a3b8;
}
.infas-breadcrumb .current {
    color: #0f172a;
    font-weight: 600;
}

/* Khung Sáº£n pháº©m ChÃ­nh */
.product-main-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Cột Ảnh Swiper Chuẩn Web Bán Hàng E-Commerce (Tỷ lệ 1:1 Vuông, Hỗ trợ WebP/JPG/PNG) */
.myProductSwiper { 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    margin-bottom: 12px; 
    background: #ffffff; 
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.myProductSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    height: 380px;
    aspect-ratio: 1 / 1;
    background: #ffffff;
}
.myProductSwiper .swiper-slide img { 
    max-width: 100%; 
    max-height: 100%; 
    width: auto;
    height: auto;
    object-fit: contain; 
    transition: transform 0.3s ease;
}
.myProductSwiper .swiper-slide:hover img {
    transform: scale(1.03);
}
.myThumbSwiper {
    padding: 2px 0;
}
.myThumbSwiper .swiper-slide { 
    opacity: 0.65; 
    cursor: pointer; 
    border-radius: 8px; 
    border: 2px solid #e2e8f0; 
    overflow: hidden; 
    aspect-ratio: 1 / 1;
    height: 72px; 
    padding: 4px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.myThumbSwiper .swiper-slide:hover {
    opacity: 0.9;
    border-color: #94a3b8;
}
.myThumbSwiper .swiper-slide-thumb-active { 
    opacity: 1; 
    border-color: var(--gomi-primary, #1e5ca8) !important; 
    box-shadow: 0 2px 8px rgba(30, 92, 168, 0.25);
}
.myThumbSwiper .swiper-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}

/* Cá»™t ThÃ´ng tin Sáº£n pháº©m Giá»¯a */
.product-title-seo {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.product-meta-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.meta-code-pill {
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}
.lead-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* Há»™p GiÃ¡ B2B */
.price-display-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 18px;
}
.price-label-text {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}
.price-main-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--gomi-primary, #1e5ca8);
    letter-spacing: -0.02em;
}
.vat-included-tag {
    font-size: 12px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    margin-left: 10px;
}

/* Sá»‘ lÆ°á»£ng & NÃºt Mua HÃ ng */
.quantity-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.qty-btn-group {
    display: inline-flex;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    height: 42px;
    background: #fff;
}
.qty-btn-ctrl {
    width: 42px;
    border: none;
    background: #f8fafc;
    color: #334155;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn-ctrl:hover {
    background: #e2e8f0;
}
.qty-input-field {
    width: 65px;
    border: none;
    border-left: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
    outline: none;
}
.stock-indicator {
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* NÃºt Action */
.btn-mecsu-addcart {
    background: #f59e0b;
    color: #ffffff;
    border: none;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.btn-mecsu-addcart:hover {
    background: #d97706;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}
.btn-infas-buynow {
    background: var(--gomi-primary, #1e5ca8);
    color: #ffffff;
    border: none;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.btn-infas-buynow:hover {
    background: #0f3d75;
    color: #ffffff;
    transform: translateY(-1px);
}
.btn-disabled-style:disabled {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}

/* Box Æ¯u Ä‘Ã£i B2B */
.b2b-customer-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.b2b-customer-box strong {
    font-size: 13.5px;
    color: #1e3a8a;
    display: block;
}
.b2b-customer-box small {
    font-size: 12px;
    color: #3b82f6;
}
.b2b-contact-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--gomi-primary, #1e5ca8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.b2b-contact-link:hover {
    text-decoration: underline;
}

/* ==============================================================
   Cá»˜T PHáº¢I: Báº¢NG THÃ”NG Sá» NHANH & DANH Má»¤C Gá»¢I Ã CÃ™NG Tá»ª KHÃ“A
============================================================== */
.sidebar-specs-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.sidebar-specs-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.quick-specs-table {
    width: 100%;
    margin: 0;
    font-size: 12.8px;
}
.quick-specs-table tr {
    border-bottom: 1px solid #f1f5f9;
}
.quick-specs-table tr:last-child {
    border-bottom: none;
}
.quick-specs-table th {
    padding: 9px 14px;
    color: #475569;
    font-weight: 600;
    background: #fafafa;
    width: 45%;
    border-right: 1px solid #f1f5f9;
}
.quick-specs-table td {
    padding: 9px 14px;
    color: #0f172a;
    font-weight: 700;
}

/* Danh má»¥c liÃªn quan gá»£i Ã½ theo tá»« khÃ³a */
.related-prod-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.related-prod-item:last-child {
    border-bottom: none;
}
.related-prod-item:hover {
    background: #f8fafc;
}
.related-prod-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}
.related-prod-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-prod-item:hover .related-prod-name {
    color: var(--gomi-primary, #1e5ca8);
}
.related-prod-price {
    font-size: 12.5px;
    font-weight: 700;
    color: #dc2626;
}

/* Tabs Chi tiáº¿t Ká»¹ thuáº­t */
.product-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.product-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}
.product-tab-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: 0.2s;
}
.product-tab-btn.active {
    color: var(--gomi-primary, #1e5ca8);
    border-bottom-color: var(--gomi-primary, #1e5ca8);
}
.rich-text-body {
    line-height: 1.8;
    color: #334155;
    font-size: 14.5px;
}
.rich-text-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px auto;
    display: block;
}

/* ==============================================================
   ĐỊNH DẠNG BÀI VIẾT MECSU-STYLE 3 KHỐI TINH GỌN INFAS
   ============================================================== */
.infas-product-article {
    color: #1e293b;
    font-size: 14.5px;
    line-height: 1.7;
}
.infas-product-article .infas-intro-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
}
.infas-product-article .infas-intro-box p {
    margin-bottom: 8px;
}
.infas-product-article .infas-intro-box p:last-child {
    margin-bottom: 0;
}
.infas-product-article .infas-technical-drawing {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}
.infas-product-article .tech-drawing-placeholder {
    background: #f8fafc;
    border: 1.5px dashed #94a3b8;
    border-radius: 8px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}
.infas-product-article .infas-specs-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
}
.infas-product-article .infas-specs-section table th {
    width: 32%;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    vertical-align: middle;
}
.infas-product-article .infas-specs-section table td {
    padding: 9px 14px;
    border: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: middle;
}
.infas-product-article .infas-specs-section table tr:nth-child(even) td {
    background: #f8fafc;
}



/* ==============================================================
   RESPONSIVE TOÀN DIỆN CHI TIẾT SẢN PHẨM: PC / TABLET / MOBILE
============================================================== */
/* TABLET (768px - 991px) */
@media (max-width: 991px) {
    .product-detail-container { padding: 10px 14px 30px; }
    .product-main-card { padding: 20px; }
}

/* MOBILE (< 768px) */
@media (max-width: 767px) {
    .product-detail-container { padding: 8px 10px 25px; }
    .infas-breadcrumb { font-size: 11.5px; padding: 6px 0 10px; }
    .product-main-card { padding: 12px; border-radius: 10px; }
    
    /* Ảnh Swiper trên điện thoại */
    .myProductSwiper { border-radius: 8px; }
    .myProductSwiper .swiper-slide img { max-height: 280px; object-fit: contain; }
    
    /* Tiêu đề & Giá B2B */
    .product-main-card h1.h3 { font-size: 18px !important; margin-bottom: 10px !important; }
    .product-main-card .fs-3 { font-size: 22px !important; }
    
    /* Cụm Stepper MOQ linh hoạt không tràn màn hình */
    .detail-qty-wrap { flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
    .detail-qty-wrap .input-group { width: 100% !important; max-width: 180px; }
    .detail-qty-wrap .small { margin-left: 0 !important; }
    
    /* Nút Thêm Giỏ Hàng & Hotline */
    .detail-action-buttons { flex-direction: column; gap: 8px !important; }
    .detail-action-buttons button, .detail-action-buttons a { width: 100% !important; text-align: center; }
    
    /* Bảng tra kỹ thuật DIN & Bản vẽ */
    .card-custom { padding: 14px !important; }
    .card-custom h4 { font-size: 16px !important; }
    .product-description-content table, 
    .infas-product-article .infas-specs-section table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap;
        font-size: 12.5px !important;
    }
    .product-description-content table th, 
    .product-description-content table td {
        padding: 6px 10px !important;
    }
}