/*
Theme Name: Miền Nam
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 4.91
*/

/*
 * Điện Lạnh Chợ Lớn – Flatsome Skin v2
 * Đã kiểm tra HTML thực tế: dienlanhcholon.com
 * Palette: #ffe035 (vàng chủ đạo) | #1b78c8 (xanh accent) | #1a1a1a (đen)
 * Lighthouse: Performance · Accessibility · Best Practices · SEO
 * Contrast: nền vàng → chữ #1a1a1a | nền xanh/đen → chữ #fff hoặc #ffe035
 */

/* =====================================================
   1. CSS VARIABLES
   ===================================================== */
:root {
  --y:    #ffe035;   /* vàng chủ đạo */
  --y-dk: #e6c800;   /* vàng đậm hover */
  --y-lt: #fff8d0;   /* vàng nhạt nền */
  --b:    #1b78c8;   /* xanh accent */
  --b-dk: #1565b0;   /* xanh đậm */
  --b-lt: #e3f0fb;   /* xanh nhạt nền */
  --dk:   #1a1a1a;   /* đen text */
  --md:   #444;      /* xám text */
  --muted:#6b7280;   /* xám muted */
  --bg:   #f5f6fa;   /* nền page */
  --bdr:  #e8eaf0;   /* border */
  --r:    6px;       /* radius */
  --r-lg: 10px;

  /* Khai báo sẵn kích thước → tránh CLS */
  --header-h: 80px;
  --nav-h: 46px;
}

/* =====================================================
   2. GLOBAL
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
body { background: #fff; color: var(--dk); font-family: Arial, sans-serif; }
img  { max-width: 100%; height: auto; }

a { color: var(--b); text-decoration: none; font-weight: 500; }
a:hover { color: var(--b-dk); text-decoration: underline; }

/* Skip to content – accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--y);
  color: var(--dk);
  font-weight: 700;
  padding: 8px 16px;
  z-index: 100000;
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { top: 0; }

/* =====================================================
   3. HEADER – logo + nav call
   Cấu trúc thực: #header > .header-inner > #logo + nav
   ===================================================== */

/* =====================================================
   4. NAVIGATION CHÍNH
   ===================================================== */
#main-nav,
.main-nav,
nav.nav,
.nav-bar {
  background: var(--b) !important;
  min-height: var(--nav-h);
  contain: layout;
}

#main-nav ul li a,
.main-nav ul li a,
nav.nav ul li a,
.nav-bar ul li a {
  color: rgba(255,255,255,.85) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  line-height: var(--nav-h);
  display: block;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
#main-nav ul li a:hover,
#main-nav ul li.current-menu-item > a,
#main-nav ul li.current_page_item > a,
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a {
  color: var(--y) !important;
  border-bottom-color: var(--y) !important;
  text-decoration: none !important;
}

/* Dropdown */
.nav-dropdown,
.sub-menu {
  background: var(--b-dk) !important;
  border-top: 2px solid var(--y) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
  min-width: 220px;
}
.nav-dropdown li a,
.sub-menu li a {
  color: rgba(255,255,255,.85) !important;
  font-size: 13px;
  padding: 10px 16px !important;
  line-height: 1.4 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
.nav-dropdown li a:hover,
.sub-menu li a:hover {
  color: var(--y) !important;
  background: rgba(255,224,53,.1) !important;
}

/* Mobile hamburger */
.mobile-sidebar-level-1,
.nav-mobile {
  background: var(--b-dk) !important;
}
.mobile-sidebar-level-1 li a,
.nav-mobile li a {
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
.mobile-sidebar-level-1 li a:hover {
  color: var(--y) !important;
  background: rgba(255,224,53,.08) !important;
}

/* =====================================================
   5. BUTTONS – vàng nền, đen chữ (contrast 11:1 ✅)
   ===================================================== */

/* =====================================================
   6. NỘI DUNG TRANG (entry-content)
   ===================================================== */
.entry-content h1 { color: var(--dk); font-size: clamp(24px, 4vw, 36px); }
.entry-content h2 { color: var(--b); font-size: clamp(18px, 3vw, 26px); margin: 1.8rem 0 .8rem; }
.entry-content h3 { color: var(--b-dk); font-size: clamp(15px, 2.5vw, 20px); margin: 1.4rem 0 .6rem; border-left: 4px solid var(--y); padding-left: 10px; }
.entry-content h4 { color: var(--dk); font-size: 16px; margin: 1rem 0 .5rem; }
.entry-content p  { color: #333; line-height: 1.75; margin-bottom: 1rem; }
.entry-content ul,
.entry-content ol { margin: .5rem 0 1rem 1.2rem; color: #333; line-height: 1.75; }
.entry-content li { margin-bottom: .3rem; }
.entry-content strong { color: var(--dk); }
.entry-content em    { color: var(--b); }

/* Link trong content */
.entry-content a { color: var(--b); font-weight: 600; }
.entry-content a:hover { color: var(--b-dk); text-decoration: underline; }

/* Info box */
.infobox {
  margin: 14px auto;
  padding: 12px 16px;
  border: 2px solid #b3d9f5;
  border-radius: var(--r);
  background: #dbedf9;
  line-height: 1.6;
  font-size: 15px;
  clear: both;
}

/* =====================================================
   7. BẢNG GIÁ – Gutenberg Table (is-style-stripes)
   ===================================================== */
.wp-block-table {
  width: 100%;
  contain: layout;
  margin: .5rem 0 1.5rem;
}
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.wp-block-table thead th,
.wp-block-table thead td {
  background: var(--b) !important;
  color: var(--y) !important;          /* xanh nền → vàng chữ ✅ */
  font-weight: 700;
  font-size: 13px;
  padding: 11px 14px;
  text-align: left;
  letter-spacing: .2px;
}
.wp-block-table thead th:last-child { text-align: right; }
.wp-block-table tbody td {
  padding: 10px 14px;
  color: var(--dk);
  border-bottom: 1px solid var(--bdr);
  vertical-align: middle;
}
.wp-block-table tbody td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--b);
}
.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background: var(--y-lt) !important; /* vàng nhạt stripe */
}
.wp-block-table tbody tr:hover {
  background: var(--b-lt) !important; /* xanh nhạt hover */
}

/* h3 trước mỗi bảng */
h3.wp-block-heading {
  color: var(--b-dk) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-top: 2rem !important;
  margin-bottom: .5rem !important;
  padding-left: 12px !important;
  border-left: 4px solid var(--y) !important;
  border-radius: 0 !important;
}

/* =====================================================
   8. CTA HOTLINE BLOCK
   p.has-vivid-red-background-color → đổi sang vàng chủ đạo
   ===================================================== */
p.has-vivid-red-background-color,
p.has-vivid-red-background-color.has-background {
  background: var(--y) !important;         /* vàng nền */
  color: var(--dk) !important;             /* đen chữ ✅ */
  border-left: 5px solid var(--b) !important;
  border-radius: 0 var(--r) var(--r) 0 !important;
  padding: 14px 20px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 1.5rem 0 !important;
}
p.has-vivid-red-background-color strong {
  color: var(--dk) !important;
  font-weight: 800;
}
p.has-vivid-red-background-color a {
  color: var(--b) !important;             /* xanh link trên nền vàng ✅ */
  font-weight: 800;
  font-size: 1.05em;
  text-decoration: none;
  transition: color .15s;
}
p.has-vivid-red-background-color a:hover { color: var(--b-dk) !important; text-decoration: underline; }

/* =====================================================
   9. SCHEMA FAQ
   ===================================================== */
.schema-faq {
  border: 2px solid var(--b);
  background: #fff;
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: var(--r);
}
.schema-faq-section {
  border-bottom: 1px solid var(--bdr);
  margin-bottom: 14px;
  padding-bottom: 6px;
}
.schema-faq-section:last-child { border-bottom: none; margin-bottom: 0; }
.schema-faq-question {
  font-weight: 700;
  font-size: 14px;
  color: var(--dk);
  padding-left: 8px;
  margin-bottom: 6px;
}
.schema-faq-question:before {
  font-family: 'fl-icons' !important;
  content: "\e901";
  color: var(--b);
  padding-right: 8px;
  speak: none !important;
  font-style: normal !important;
  font-weight: normal !important;
}
.schema-faq-answer {
  background: var(--y-lt);             /* vàng nhạt nền → chữ đen ✅ */
  color: var(--dk);
  padding: 11px 14px 11px 32px;
  margin: 6px 0 10px;
  border-radius: var(--r);
  font-size: 14px;
  line-height: 1.65;
}
.schema-faq-answer:before {
  font-family: 'fl-icons' !important;
  content: "\e903";
  color: var(--b);
  padding-right: 8px;
  speak: none !important;
  font-style: normal !important;
  font-weight: normal !important;
}

/* =====================================================
   10. COMMENTS – social bubble style
   ===================================================== */
#comments,
.comments-area {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin-top: 2rem;
}
.comments-title,
#comments .comments-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--dk) !important;
  border-bottom: 3px solid var(--y) !important;
  padding-bottom: 10px !important;
  margin-bottom: 16px !important;
  text-transform: none !important;
  display: block !important;
}

/* List reset */
.comment-list, .comment-list .children {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.comment-list .children { margin-left: 44px !important; }

/* Avatar */
.comment-author img.avatar,
.commentlist li .avatar,
.comment-list li .avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.15) !important;
  margin-right: 0 !important;
}

/* Bubble */
.comment-inner .comment-content,
.comment-content {
  background: #f5f6fa !important;
  border-radius: 0 12px 12px 12px !important;
  padding: 9px 14px !important;
  display: inline-block !important;
  max-width: 100% !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.06) !important;
 /* margin: 0 0 0 46px;    offset avatar */
  font-size: 14px !important;
  color: var(--dk) !important;
  line-height: 1.55 !important;
}
.comment-content p { margin: 0 !important; color: var(--dk) !important; }

/* Tên tác giả */
cite.strong.fn {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--b) !important;
  display: block !important;
  /* margin: 0 0 3px 46px !important;*/
  font-style: normal !important;
  text-transform: none !important;
}
.says { display: none !important; }

/* Reply bubble – xanh nhạt */
.children .comment-content { background: var(--b-lt) !important; }

/* Meta */
.comment-meta.commentmetadata,
.commentmetadata {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 5px 0 12px 46px !important;
  text-transform: none !important;
  clear: both !important;
}
.commentmetadata a,
.comment-meta a { font-size: 11px !important; color: #9ca3af !important; }
.comment-reply-link {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--b) !important;
  text-decoration: none !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}
.comment-reply-link:hover { color: var(--y-dk) !important; }
.edit-link { display: none !important; }

/* Form bình luận */
#respond.comment-respond {
  background: #fff !important;
  border: 1px solid var(--bdr) !important;
  border-radius: var(--r-lg) !important;
  padding: 20px !important;
  margin-top: 24px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
}
#reply-title.comment-reply-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--dk) !important;
  margin-bottom: 14px !important;
  text-transform: none !important;
}
.comment-form label {
  font-size: 13px !important;
  color: var(--muted) !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
  display: block !important;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
#comment {
  width: 100% !important;
  background: #f5f6fa !important;
  border: 1px solid var(--bdr) !important;
  border-radius: var(--r) !important;
  padding: 9px 14px !important;
  font-size: 14px !important;
  color: var(--dk) !important;
  font-family: inherit !important;
  transition: border-color .2s !important;
}
.comment-form input:focus,
#comment:focus {
  outline: none !important;
  border-color: var(--b) !important;
  box-shadow: 0 0 0 3px rgba(27,120,200,.15) !important;
}
#comment { resize: vertical; min-height: 100px; }
.form-submit #submit {
  background: var(--y) !important;
  color: var(--dk) !important;       /* vàng nền → đen chữ ✅ */
  font-weight: 700 !important;
  font-size: 14px !important;
  border: 2px solid var(--y-dk) !important;
  border-radius: 20px !important;
  padding: 9px 24px !important;
  cursor: pointer !important;
  margin-top: 10px !important;
  min-height: 44px !important;
  min-width: auto !important;
  transition: background .15s !important;
}
.form-submit #submit:hover { background: var(--y-dk) !important; }
.logged-in-as { font-size: 12px !important; color: var(--muted) !important; margin-bottom: 12px !important; }
.comment-form-url { display: none !important; }

/* =====================================================
   11. FOOTER
   ===================================================== */

/* =====================================================
   12. HOTLINE FLOATING BUTTON
   Nền đỏ #e60808 nổi bật, icon trắng, animation gốc
   ===================================================== */
.hotline-phone-ring-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999999;
  /* contain tránh repaint toàn trang */
  contain: layout style;
}
.hotline-phone-ring {
  position: relative;
  width: 110px;
  height: 110px;
  cursor: pointer;
  left: 0;
  bottom: 0;
  display: block;
}
 
/* Vòng ngoài */
.hotline-phone-ring-circle {
  width: 85px;
  height: 85px;
  top: 10px;
  left: 10px;
  position: absolute;
  border-radius: 100%;
  border: 2px solid #e60808;
  background: transparent;
  opacity: .5;
  animation: phonering-alo-circle-anim 1.2s infinite ease-in-out;
  -webkit-animation: phonering-alo-circle-anim 1.2s infinite ease-in-out;
}
 
/* Vòng giữa */
.hotline-phone-ring-circle-fill {
  width: 55px;
  height: 55px;
  top: 25px;
  left: 25px;
  position: absolute;
  background: rgba(230,8,8,.65);
  border-radius: 100%;
  border: 2px solid transparent;
  animation: phonering-alo-circle-fill-anim 2.3s infinite ease-in-out;
  -webkit-animation: phonering-alo-circle-fill-anim 2.3s infinite ease-in-out;
}
 
/* Icon tâm – nền đỏ, icon trắng */
.hotline-phone-ring-img-circle {
  background: #e60808;
  width: 33px;
  height: 33px;
  top: 37px;
  left: 37px;
  position: absolute;
  border-radius: 100%;
  border: 2px solid transparent;
  animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
  -webkit-animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hotline-phone-ring-img-circle .pps-btn-img { display: flex; }
/* Icon PNG trắng */
.hotline-phone-ring-img-circle img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* ép trắng dù ảnh gốc màu gì */
}
 
/* Bar text số điện thoại */
.hotline-bar {
  position: absolute;
  background: rgba(230,8,8,.88);
  height: 40px;
  width: 180px;
  border-radius: 50px !important;
  left: 33px;
  bottom: 37px;
  z-index: -1;
  box-shadow: 0 6px 18px rgba(230,8,8,.35), 0 2px 6px rgba(0,0,0,.15);
  cursor: pointer;
  transition: background .25s;
}
.hotline-bar:hover { background: rgba(200,0,0,.96); }
.hotline-bar > a {
  color: #fff !important;            /* trắng trên đỏ ✅ ratio 5.5:1 */
  font-size: 14px;
  font-weight: 700;
  text-indent: 50px;
  display: block;
  line-height: 40px;
  letter-spacing: .5px;
  font-family: Arial, sans-serif;
  text-decoration: none !important;
}
.hotline-bar > a:hover,
.hotline-bar > a:active { color: #fff !important; }
 
@media (max-width: 768px) { .hotline-bar { display: none; } }
 
/* --- Keyframes --- */
@keyframes phonering-alo-circle-anim {
  0%   { transform: rotate(0) scale(.5) skew(1deg); opacity: .1; }
  30%  { transform: rotate(0) scale(.7) skew(1deg); opacity: .5; }
  100% { transform: rotate(0) scale(1)  skew(1deg); opacity: .1; }
}
@keyframes phonering-alo-circle-fill-anim {
  0%,100% { transform: rotate(0) scale(.7) skew(1deg); opacity: .6; }
  50%     { transform: rotate(0) scale(1)  skew(1deg); opacity: .6; }
}
@keyframes phonering-alo-circle-img-anim {
  0%,50%,100% { transform: rotate(0)     scale(1) skew(1deg); }
  10%,30%     { transform: rotate(-25deg) scale(1) skew(1deg); }
  20%,40%     { transform: rotate(25deg)  scale(1) skew(1deg); }
}
@-webkit-keyframes phonering-alo-circle-anim {
  0%   { -webkit-transform: rotate(0) scale(.5) skew(1deg); opacity: .1; }
  30%  { -webkit-transform: rotate(0) scale(.7) skew(1deg); opacity: .5; }
  100% { -webkit-transform: rotate(0) scale(1)  skew(1deg); opacity: .1; }
}
@-webkit-keyframes phonering-alo-circle-fill-anim {
  0%,100% { -webkit-transform: rotate(0) scale(.7) skew(1deg); opacity: .6; }
  50%     { -webkit-transform: rotate(0) scale(1)  skew(1deg); opacity: .6; }
}
@-webkit-keyframes phonering-alo-circle-img-anim {
  0%,50%,100% { -webkit-transform: rotate(0)     scale(1) skew(1deg); }
  10%,30%     { -webkit-transform: rotate(-25deg) scale(1) skew(1deg); }
  20%,40%     { -webkit-transform: rotate(25deg)  scale(1) skew(1deg); }
}
 

/* =====================================================
   13. ZALO BUTTON (giữ màu Zalo #1182FC)
   ===================================================== */
.zalo-container {
  position: fixed;
  width: 40px; height: 40px;
  bottom: 120px;
  z-index: 9999999;
}
.zalo-container:not(.right) { left: 2rem; }
.zalo-container.right { right: 2.5rem; }
.zalo-container a { display: block; }
.zalo-container img { max-width: 100%; height: auto; }
.zalo-container span {
  display: flex; align-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #1182FC;
  position: relative;
}
.cmoz-alo-circle {
  width: 50px; height: 50px;
  top: -5px; right: -5px;
  position: absolute;
  border-radius: 100%;
  border: 2px solid #1182FC;
  opacity: .5;
  background: transparent;
}
.cmoz-alo-circle-fill {
  width: 60px; height: 60px;
  top: -10px; right: -10px;
  position: absolute;
  border-radius: 100%;
  background: rgba(17,130,252,.45);
  opacity: .75;
  transition: all .5s;
}
@keyframes zoomIn_zalo {
  from { opacity: 0; transform: scale3d(.3,.3,.3); }
  50%  { opacity: 1; }
}
@keyframes pulse_zalo {
  from,to { transform: scale3d(1,1,1); }
  50%     { transform: scale3d(1.05,1.05,1.05); }
}
.zoomIn_zalo { animation-name: zoomIn_zalo; }
.pulse_zalo  { animation-name: pulse_zalo; }
.animated_zalo { animation-duration: 1s; animation-fill-mode: both; }
.animated_zalo.infinite { animation-iteration-count: infinite; }

/* =====================================================
   14. RESPONSIVE MOBILE (≤768px)
   ===================================================== */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .wp-block-table tbody td,
  .wp-block-table thead th {
    font-size: 12px !important;
    padding: 8px 8px !important;
  }
  .wp-block-table tbody td:last-child {
    white-space: normal !important;
    font-size: 12px !important;
  }
  h3.wp-block-heading { font-size: 15px !important; }

  .comment-list .children { margin-left: 28px !important; }
  .comment-author img.avatar { width: 30px !important; height: 30px !important; }
  .comment-content { margin-left: 0px !important; font-size: 13px !important; }
  cite.strong.fn { margin-left: 0px !important; }
  .commentmetadata { margin-left: 38px !important; }

  p.has-vivid-red-background-color { font-size: 14px !important; padding: 12px 14px !important; }

  .schema-faq { padding: 10px 12px; }
  .schema-faq-answer { padding: 10px 12px 10px 28px; }
}

/* =====================================================
   15. PRINT
   ===================================================== */
@media print {
  #header, #footer, .hotline-phone-ring-wrap,
  .zalo-container, #respond, .nav-bar { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .wp-block-table thead th { background: #333 !important; color: #fff !important; }
  a { color: #000 !important; text-decoration: underline; }
}

/* =====================================================
   16. ACCESSIBILITY FOCUS RINGS
   ===================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--b) !important;
  outline-offset: 2px !important;
}