/* ============ 01. TOKENS ============ */
.ceramic-ir-cms{--auto365-red:#c8102e;--text:#1f2933;--muted:#5f6b7a;--border:#e5e7eb;--bg-soft:#f8fafc;--bg-note:#fff7ed;--note-border:#fb923c;--shadow-soft:0 12px 32px rgba(15,23,42,.08);--shadow-card:0 8px 24px rgba(15,23,42,.06)}

/* ============ 02. BASE + LAYOUT ============ */
.ceramic-ir-cms,.ceramic-ir-cms *{box-sizing:border-box}
.ceramic-ir-cms{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);line-height:1.65;background:radial-gradient(circle at top left,rgba(200,16,46,.06),transparent 30%),linear-gradient(180deg,#fff 0%,#f8fafc 100%)}
.ceramic-ir-cms main{max-width:1080px;margin:0 auto;padding:24px 16px 56px}
.ceramic-ir-cms article{background:transparent}
.ceramic-ir-cms figure{margin: 0 !important;}

/* ============ 03. TYPOGRAPHY ============ */
.ceramic-ir-cms h1,.ceramic-ir-cms h2,.ceramic-ir-cms h3{line-height:1.3;color:#111827}
.ceramic-ir-cms h1{font-size:clamp(28px,4vw,42px);margin:0 0 18px}
.ceramic-ir-cms h2{font-size:clamp(22px,3vw,30px);margin-top:50px;border-top:0;padding-top:0}
.ceramic-ir-cms h3{font-size:20px;margin-top:28px}
.ceramic-ir-cms p{margin:0 0 16px}
.ceramic-ir-cms a{color:var(--auto365-red);text-decoration:none}
.ceramic-ir-cms a:hover{text-decoration:underline}
.ceramic-ir-cms .sapo{font-size:18px;color:#273444}
.ceramic-ir-cms .byline{font-size:15px;color:var(--muted)}
.ceramic-ir-cms .editorial-note{font-size:14px;color:#4b5563;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:12px 14px;margin:12px 0}
.ceramic-ir-cms .meta-note{font-size:14px;color:var(--muted);border-top:1px solid var(--border);margin-top:36px;padding-top:18px}

/* ============ 04. LISTS ============ */
.ceramic-ir-cms ul,.ceramic-ir-cms ol{padding-left:22px}
.ceramic-ir-cms li{margin-bottom:8px}
.ceramic-ir-cms .process-list{list-style:none;padding-left:0}

/* ============ 05. HERO ============ */
.ceramic-ir-cms .hero-ir{position:relative;overflow:hidden;background:linear-gradient(135deg,#fff5f5 0%,#fff 52%,#f8fafc 100%);border:1px solid #fecdd3;border-radius:24px;padding:30px;margin-bottom:26px;box-shadow:var(--shadow-soft)}
.ceramic-ir-cms .hero-ir::after{content:"";position:absolute;right:-70px;top:-70px;width:220px;height:220px;background:rgba(200,16,46,.08);border-radius:999px}
.ceramic-ir-cms .hero-ir h1,.ceramic-ir-cms .hero-ir p,.ceramic-ir-cms .hero-ir div{position:relative;z-index:1}
.ceramic-ir-cms .hero-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.ceramic-ir-cms .hero-badge{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;background:#fff1f2;color:var(--auto365-red);font-size:13px;font-weight:800}

/* ============ 06. BOXES (quick-answer / entity / cta / trust / mini-cta / toc / note / related-links) ============ */
.ceramic-ir-cms .quick-answer{position:relative;background:#fff;border:1px solid #e5e7eb;border-left:6px solid var(--auto365-red);border-radius:18px;padding:18px 20px;margin:24px 0;box-shadow:var(--shadow-card)}
.ceramic-ir-cms .entity-box{border-left:5px solid var(--auto365-red);background:var(--bg-soft);padding:18px 20px;border-radius:12px;margin:24px 0}
.ceramic-ir-cms .cta-box{border-left:5px solid var(--auto365-red);background:var(--bg-soft);padding:18px 20px;border-radius:12px;margin:24px 0;display:grid;gap:12px}
.ceramic-ir-cms .quick-answer strong,.ceramic-ir-cms .entity-box strong,.ceramic-ir-cms .cta-box strong{color:var(--auto365-red)}
.ceramic-ir-cms .trust-note{background:#fff7f7;border:1px solid #fecdd3;border-left:5px solid var(--auto365-red);border-radius:14px;padding:16px 18px;margin:18px 0 24px;box-shadow:var(--shadow-card)}
.ceramic-ir-cms .trust-note strong{color:var(--auto365-red)}
.ceramic-ir-cms .mini-cta{margin:18px 0 0;background:#fff1f2;border:1px solid #fecdd3;border-left:5px solid var(--auto365-red);border-radius:12px;padding:14px 16px}
.ceramic-ir-cms .toc{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px 20px;margin:28px 0}
.ceramic-ir-cms .toc h2{border:0;padding:0;margin:0 0 12px;font-size:22px}
.ceramic-ir-cms .toc h2::before{display:none}
.ceramic-ir-cms .toc ol{margin:0;padding-left:22px}
.ceramic-ir-cms .note{background:var(--bg-note);border:1px solid var(--note-border);border-left:5px solid var(--note-border);padding:14px 16px;border-radius:10px;margin:18px 0}
.ceramic-ir-cms .related-links{background:var(--bg-soft);border:1px solid var(--border);border-radius:12px;padding:18px 20px;margin:22px 0}
.ceramic-ir-cms .related-links h3{margin-top:0}

/* ============ 07. CTA BUTTONS ============ */
.ceramic-ir-cms .hero-actions,.ceramic-ir-cms .cta-inline{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.ceramic-ir-cms .cta-btn{display:inline-block;background:var(--auto365-red);color:#fff!important;padding:11px 16px;border-radius:999px;font-family:"Segoe UI",Roboto,Arial,sans-serif;font-size:16px;font-weight:700;letter-spacing:-.01em;line-height:1.25;text-decoration:none;min-width:160px;text-align:center;flex:1 1 auto;box-shadow:0 8px 18px rgba(200,16,46,.18)}
.ceramic-ir-cms .cta-btn.secondary{background:#111827;box-shadow:0 8px 18px rgba(17,24,39,.14)}
.ceramic-ir-cms .cta-btn.light{background:#fff;color:var(--auto365-red)!important;border:1px solid var(--auto365-red);box-shadow:none}

/* ============ 08. TABLES (base + spec + price + compare-v9) ============ */
.ceramic-ir-cms .table-wrap{overflow-x:auto;overflow-y: hidden;-webkit-overflow-scrolling: touch;margin:18px 0 22px;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow-card)}
.ceramic-ir-cms table{width:100%;border-collapse:collapse;min-width:760px;background:#fff;margin:0 !important}
.ceramic-ir-cms th,.ceramic-ir-cms td{padding:13px 14px;border-bottom:1px solid var(--border);vertical-align:top;text-align:left;font-size:14px}
.ceramic-ir-cms th{background:#f9fafb;color:#111827;font-weight:700;border-bottom:1px solid #d1d5db}
.ceramic-ir-cms td.numeric,.ceramic-ir-cms th.numeric{text-align:right;white-space:nowrap}
.ceramic-ir-cms tr:last-child td{border-bottom:0}
.ceramic-ir-cms .table-wrap tbody tr:nth-child(even){background:#fcfcfd}
.ceramic-ir-cms .table-wrap tbody tr:hover{background:#fff7f7}
.ceramic-ir-cms .table-wrap td:first-child,.ceramic-ir-cms .table-wrap th:first-child{font-weight:700}
.ceramic-ir-cms .table-wrap .numeric,.ceramic-ir-cms .table-wrap td:last-child{white-space:nowrap}
.ceramic-ir-cms .table-section-label{display:inline-flex;align-items:center;gap:8px;background:#111827;color:#fff;border-radius:999px;padding:6px 12px;font-family:"Segoe UI",Roboto,Arial,sans-serif;font-size:13px;font-weight:700;letter-spacing:-.01em;line-height:1.25;margin:8px 0 12px}
.ceramic-ir-cms .table-note-soft{margin-top:10px;color:#4b5563;font-size:14px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:12px 14px}
.ceramic-ir-cms .spec-table table{table-layout:fixed}
.ceramic-ir-cms .spec-table th,.ceramic-ir-cms .spec-table td{padding:15px 12px;text-align:center;white-space:nowrap}
.ceramic-ir-cms .spec-table th:first-child,.ceramic-ir-cms .spec-table td:first-child{width:20%;text-align:left;color:#111827;font-weight:800}
.ceramic-ir-cms .spec-table th:not(:last-child),.ceramic-ir-cms .spec-table td:not(:last-child){border-right:1px solid #e5e7eb}
.ceramic-ir-cms .spec-table tbody tr:nth-child(even){background:#f8fafc}
.ceramic-ir-cms .spec-helper{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;padding:14px 16px;margin:14px 0 20px}
.ceramic-ir-cms .price-table{border-color:#fecdd3}
.ceramic-ir-cms .price-table th{background:var(--auto365-red)!important;color:#fff!important}
.ceramic-ir-cms .price-table tbody tr:nth-child(even){background:#fff7f7}
.ceramic-ir-cms .price-table td:last-child{font-weight:900;color:var(--auto365-red);white-space:nowrap}
.ceramic-ir-cms .compare-table-v9{border-color:#e5e7eb}
.ceramic-ir-cms .compare-table-v9 table{min-width:720px;table-layout:fixed;width:100%}
.ceramic-ir-cms .compare-table-v9 th,.ceramic-ir-cms .compare-table-v9 td{padding:12px 10px;line-height:1.55;font-size:13.5px;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;white-space:normal!important;overflow-wrap:break-word;word-wrap:break-word}
.ceramic-ir-cms .compare-table-v9 th:last-child,.ceramic-ir-cms .compare-table-v9 td:last-child{border-right:0}
.ceramic-ir-cms .compare-table-v9 tbody tr:last-child td{border-bottom:0}
.ceramic-ir-cms .compare-table-v9 th{background:#111827;color:#fff;text-align:center;font-weight:700;font-size:15px}
.ceramic-ir-cms .compare-table-v9 th:first-child{text-align:left}
.ceramic-ir-cms .compare-table-v9 th:nth-child(2){background:var(--auto365-red)}
.ceramic-ir-cms .compare-table-v9 th:nth-child(1),.ceramic-ir-cms .compare-table-v9 td:nth-child(1){width:14%}
.ceramic-ir-cms .compare-table-v9 th:nth-child(2),.ceramic-ir-cms .compare-table-v9 td:nth-child(2){width:30%}
.ceramic-ir-cms .compare-table-v9 th:nth-child(3),.ceramic-ir-cms .compare-table-v9 td:nth-child(3){width:28%}
.ceramic-ir-cms .compare-table-v9 th:nth-child(4),.ceramic-ir-cms .compare-table-v9 td:nth-child(4){width:28%}
.ceramic-ir-cms .compare-table-v9 td:first-child{background:#f9fafb;color:#111827;font-weight:700;text-align:left}
.ceramic-ir-cms .compare-table-v9 td:nth-child(2){background:#fff7f7;border-left:2px solid #fecdd3;border-right:2px solid #fecdd3;font-weight:600}
.ceramic-ir-cms .compare-table-v9 .best-fit{display:inline-block;background:#fee2e2;color:var(--auto365-red);border-radius:999px;padding:3px 9px;font-size:12px;font-weight:900;margin-bottom:6px}

/* ============ 09. FEATURE / INFO / ADDRESS GRIDS ============ */
.ceramic-ir-cms .feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 8px}
.ceramic-ir-cms .feature-card{position:relative;overflow:hidden;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;box-shadow:var(--shadow-card)}
.ceramic-ir-cms .feature-card::before{content:"";position:absolute;width:82px;height:82px;right:-28px;top:-28px;border-radius:999px;background:rgba(200,16,46,.08)}
.ceramic-ir-cms .feature-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#fff1f2;color:var(--auto365-red);font-weight:900;margin-bottom:10px}
.ceramic-ir-cms .feature-card h3{margin-top:0;margin-bottom:8px;color:#111827}
.ceramic-ir-cms .feature-card p{margin-bottom:0}
.ceramic-ir-cms .feature-card.full{grid-column:1/-1;background:linear-gradient(135deg,#111827 0%,#1f2937 100%);color:#f9fafb;border:0}
.ceramic-ir-cms .feature-card.full h3,.ceramic-ir-cms .feature-card.full .feature-icon{color:#fff}
.ceramic-ir-cms .feature-card.full .feature-icon{background:rgba(255,255,255,.12)}
.ceramic-ir-cms .info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.ceramic-ir-cms .info-card{border:1px solid var(--border);border-radius:14px;background:var(--bg-soft);padding:16px 18px}
.ceramic-ir-cms .info-card h3{margin-top:0;font-size:18px;color:var(--auto365-red)}
.ceramic-ir-cms .address-list{display:grid;gap:12px;margin:16px 0}
.ceramic-ir-cms .address-card{background:#fff;border:1px solid #e5e7eb;border-left:6px solid var(--auto365-red);border-radius:18px;padding:18px;box-shadow:var(--shadow-card)}
.ceramic-ir-cms .address-card>strong:first-child{display:block;font-size:18px;color:#111827;margin-bottom:6px}
.ceramic-ir-cms .address-card a strong{display:inline}

/* ============ 10. GALLERY ============ */
.ceramic-ir-cms .gallery-box{background:#fff;border:1px solid var(--border);border-radius:14px;padding:1rem;margin:1rem 0}
.ceramic-ir-cms .gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:14px}
.ceramic-ir-cms .gallery-item{margin:0;border-radius:18px;overflow:hidden;background:#fff;border:1px solid #e5e7eb;box-shadow:var(--shadow-card);transition:transform .2s ease,box-shadow .2s ease}
.ceramic-ir-cms .gallery-item:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(15,23,42,.10)}
.ceramic-ir-cms .gallery-item img{width:100%;height:auto;display:block;aspect-ratio:auto;object-fit:cover;}
.ceramic-ir-cms .gallery-item figcaption{font-size:13px;color:#4b5563;padding:12px 14px 14px;line-height:1.5}

/* ============ 11. COMPARE-SUMMARY GRID ============ */
.ceramic-ir-cms .compare-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 14px}
.ceramic-ir-cms .compare-summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.ceramic-ir-cms .compare-summary-card.highlight{border:2px solid var(--auto365-red);background:#fff7f7}
.ceramic-ir-cms .compare-summary-card h3{margin-top:0;margin-bottom:8px;color:var(--auto365-red);font-size:18px}
.ceramic-ir-cms .compare-summary-card p{margin-bottom:0;font-size:15px}

/* ============ 12. FAQ ============ */
.ceramic-ir-cms .faq-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px 12px;margin-top:18px}
.ceramic-ir-cms .faq-item{border:1px solid var(--border);border-radius:18px;background:#fff;overflow:hidden;box-shadow:var(--shadow-card)}
.ceramic-ir-cms .faq-item summary{list-style:none;cursor:pointer;padding:13px 44px 13px 14px;font-family:"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;font-weight:700;line-height:1.35;color:#111827;position:relative}
.ceramic-ir-cms .faq-item summary::-webkit-details-marker{display:none}
.ceramic-ir-cms .faq-item summary::after{content:"+";position:absolute;right:13px;top:50%;transform:translateY(-50%);width:22px;height:22px;border-radius:50%;background:var(--auto365-red);color:#fff;display:grid;place-items:center;font-size:16px;line-height:1}
.ceramic-ir-cms .faq-item[open] summary::after{content:"−"}
.ceramic-ir-cms .faq-answer{padding:0 18px 16px;color:#273444;border-top:1px solid var(--border);background:#fff}
.ceramic-ir-cms .faq-answer p{margin:14px 0 0}

/* ============ 13. MOBILE STICKY CTA (default hidden — hiển thị ở block responsive) ============ */
.ceramic-ir-cms .mobile-sticky-cta{display:none}

/* ============ 14. RESPONSIVE (media queries theo thứ tự desktop → mobile) ============ */
@media (max-width:1024px){.ceramic-ir-cms .compare-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.ceramic-ir-cms .gallery-grid,.ceramic-ir-cms .feature-grid{grid-template-columns:1fr}.ceramic-ir-cms .feature-card.full{grid-column:auto}.ceramic-ir-cms .hero-ir::after{width:160px;height:160px;right:-60px;top:-60px}}
@media (max-width:820px){.ceramic-ir-cms .faq-list{grid-template-columns:1fr}}
@media (max-width:720px){.ceramic-ir-cms main{padding:18px 14px 96px}.ceramic-ir-cms h1{font-size:clamp(24px,6vw,32px)}.ceramic-ir-cms h2{font-size:clamp(20px,5vw,26px);margin-top:36px}.ceramic-ir-cms h3{font-size:17px;margin-top:22px}.ceramic-ir-cms .sapo{font-size:16px}.ceramic-ir-cms .info-grid{grid-template-columns:1fr}.ceramic-ir-cms .quick-answer,.ceramic-ir-cms .entity-box,.ceramic-ir-cms .cta-box,.ceramic-ir-cms .trust-note,.ceramic-ir-cms .related-links{padding:14px 16px;border-radius:14px}.ceramic-ir-cms .address-card{padding:14px}.ceramic-ir-cms .hero-ir{padding:22px}.ceramic-ir-cms th,.ceramic-ir-cms td{padding:10px;font-size:13px}.ceramic-ir-cms .table-wrap table{min-width:600px}.ceramic-ir-cms .compare-table-v9 table{min-width:640px}.ceramic-ir-cms .spec-table th,.ceramic-ir-cms .spec-table td{padding:11px 8px}.ceramic-ir-cms .price-table td:last-child{font-size:13.5px}.ceramic-ir-cms .gallery-item img{max-height:260px}.ceramic-ir-cms .table-wrap{border-radius:14px}.ceramic-ir-cms .mobile-sticky-cta{position:fixed;left:12px;right:12px;bottom:12px;z-index:50;display:flex;gap:8px;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:8px;box-shadow:0 12px 32px rgba(15,23,42,.18)}.ceramic-ir-cms .mobile-sticky-cta a{flex:1;text-align:center;padding:10px 12px;border-radius:999px;font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}}
@media (max-width:560px){.ceramic-ir-cms .compare-summary-grid{grid-template-columns:1fr}}
@media (max-width:480px){.ceramic-ir-cms .hero-ir::after{display:none}.ceramic-ir-cms .hero-ir{padding:18px;border-radius:18px}.ceramic-ir-cms .cta-inline{flex-direction:column;align-items:stretch}.ceramic-ir-cms .cta-btn{min-width:0;width:100%}}
@media (max-width:400px){.ceramic-ir-cms .hero-badges{gap:6px}.ceramic-ir-cms .hero-badge{padding:5px 10px;font-size:12px}}

/* ===== HOTFIX v10.1: table overflow + mobile shrink ===== */

/* 1. Sửa lỗi overflow: hidden đè overflow-x */
.ceramic-ir-cms .table-wrap {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
}

/* 2. Chặn character-level break trên cell — không cho text vỡ dọc */
.ceramic-ir-cms td,
.ceramic-ir-cms th {
  word-break: normal !important;
  overflow-wrap: normal;
  hyphens: none;
}
.ceramic-ir-cms .compare-table-v9 td,
.ceramic-ir-cms .compare-table-v9 th {
  overflow-wrap: break-word;    /* riêng compare-v9 cell dài → cho wrap từ */
}

/* 3. Mobile ≤ 480px: bảng 3 cột (giá, cấu hình vị trí) tự khớp viewport
      → không scroll ngang, wrap text tự nhiên */
@media (max-width: 480px) {
  .ceramic-ir-cms .table-wrap:not(.spec-table):not(.compare-table-v9) table {
    min-width: 0;
  }
  .ceramic-ir-cms th,
  .ceramic-ir-cms td {
    padding: 9px 8px;
    font-size: 12.5px;
    line-height: 1.45;
  }
  .ceramic-ir-cms .price-table td:last-child {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
  }
  .ceramic-ir-cms .price-table th,
  .ceramic-ir-cms .price-table td {
    padding: 10px 8px;
  }
  /* Cột đầu tiên nên hiển thị ngắn gọn: cho phép wrap 2 dòng */
  .ceramic-ir-cms td:first-child {
    line-height: 1.35;
  }
}

/* 4. Chỉ giữ scroll ngang cho bảng cần chi tiết cao (spec 6 cột, compare 4 cột) */
@media (max-width: 480px) {
  .ceramic-ir-cms .spec-table table {
    min-width: 560px;    /* 6 cột — không thể fit 375px */
  }
  .ceramic-ir-cms .compare-table-v9 table {
    min-width: 560px;
  }
  .ceramic-ir-cms .spec-table th,
  .ceramic-ir-cms .spec-table td {
    padding: 10px 6px;
    font-size: 12px;
  }
}