/* ================================================================
   THOMI FOOTER — CSS (scope .thomi-footer, prefix tf-, biến trong .thomi-footer)
   Bỏ @font-face marope (theme đã nạp) + bỏ nút back-to-top .tf-top (dùng của Flatsome).
   ================================================================ */

/* Wrapper #footer của Flatsome chỉ còn chứa footer mới -> bỏ padding thừa để không hở band */
#footer.footer-wrapper{ padding:0; border-top:0; background:none; }

.thomi-footer *{box-sizing:border-box;}
.thomi-footer{
  --tf-bg:#1A1814;
  --tf-bg-2:#211E19;
  --tf-text:#C8BFB1;
  --tf-muted:#8A8276;
  --tf-head:#FFFFFF;
  --tf-accent:#7E2A22;
  --tf-accent-soft:#a85a4a;
  --tf-line:rgba(200,191,177,.14);
  --tf-sans:'marope-medium-thomi','Jost','Helvetica Neue',Arial,sans-serif;
  --tf-serif:'marope-medium-thomi','Jost','Helvetica Neue',Arial,sans-serif;
  background:var(--tf-bg);
  color:var(--tf-text);
  font-family:var(--tf-sans);
  font-size:15px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  position:relative;
  overflow:hidden;
}
/* quầng sáng rust rất nhẹ ở góc để có chiều sâu */
.thomi-footer::before{
  content:"";position:absolute;top:-140px;right:-120px;width:420px;height:420px;
  background:radial-gradient(circle, rgba(126,42,34,.28), transparent 68%);
  pointer-events:none;z-index:0;
}
.thomi-footer > *{position:relative;z-index:1;}
/* Container bám ĐÚNG công thức các section trang chủ (max-width 1720 + padding 3%) -> bớt khoảng trống 2 bên, khớp mọi bề rộng */
.thomi-footer .tf-container{max-width:1720px;margin:0 auto;padding:0 max(20px, 3%);}

/* ---------- NEWSLETTER ---------- */
.thomi-footer .tf-news{
  border-bottom:1px solid var(--tf-line);
  background:linear-gradient(180deg,var(--tf-bg-2),var(--tf-bg));
}
.thomi-footer .tf-news-inner{
  display:flex;align-items:center;justify-content:space-between;gap:40px;
  padding-top:44px;padding-bottom:44px;flex-wrap:wrap;   /* giữ padding ngang của .tf-container -> thẳng hàng với 4 cột */
}
.thomi-footer .tf-news-copy{flex:1 1 340px;min-width:280px;}
.thomi-footer .tf-eyebrow{
  font-size:11px;letter-spacing:.32em;text-transform:uppercase;color:var(--tf-accent-soft);
  margin:0 0 10px;font-weight:500;
}
.thomi-footer .tf-news-title{
  font-family:var(--tf-serif);color:var(--tf-head);
  font-size:32px;line-height:1.15;margin:0 0 8px;font-weight:500;letter-spacing:.01em;
}
.thomi-footer .tf-news-sub{margin:0;color:var(--tf-muted);font-size:14.5px;max-width:520px;}
.thomi-footer .tf-form{flex:0 1 440px;min-width:280px;width:100%;}
.thomi-footer .tf-field{
  display:flex;background:rgba(255,255,255,.04);border:1px solid var(--tf-line);
  border-radius:2px;overflow:hidden;transition:border-color .25s;
}
.thomi-footer .tf-field:focus-within{border-color:var(--tf-accent-soft);}
.thomi-footer .tf-field input{
  flex:1;background:transparent;border:0;outline:0;color:var(--tf-head);
  font-family:var(--tf-sans);font-size:15px;padding:15px 18px;min-width:0;
}
.thomi-footer .tf-field input::placeholder{color:var(--tf-muted);}
.thomi-footer .tf-field button{
  background:var(--tf-text);color:var(--tf-bg);border:0;cursor:pointer;
  font-family:var(--tf-sans);font-weight:600;font-size:12.5px;letter-spacing:.14em;
  text-transform:uppercase;padding:0 26px;transition:background .25s,color .25s;white-space:nowrap;
}
.thomi-footer .tf-field button:hover{background:#fff;}
.thomi-footer .tf-field button[disabled]{opacity:.6;cursor:default;}
/* Chặn Flatsome (rule "#footer input/button" đặc hiệu cao) chèn margin/height vào input+nút
   -> hết dải trống dưới ô đăng ký; đồng bộ chiều cao input & nút cho khít khung. */
#footer .thomi-footer .tf-field{align-items:stretch;}
#footer .thomi-footer .tf-field input,
#footer .thomi-footer .tf-field button{margin:0 !important;}
#footer .thomi-footer .tf-field input{height:52px;padding:0 18px;line-height:normal;}
#footer .thomi-footer .tf-field button{height:52px;min-height:0;}
.thomi-footer .tf-form-note{margin:10px 2px 0;font-size:12px;color:var(--tf-muted);}

/* ---------- TRUST BADGES ---------- */
.thomi-footer .tf-trust{border-bottom:1px solid var(--tf-line);}
.thomi-footer .tf-trust-inner{
  display:grid;grid-template-columns:repeat(4,1fr);
}
.thomi-footer .tf-badge{
  display:flex;align-items:center;gap:14px;padding:24px 10px;
  border-left:1px solid var(--tf-line);
}
.thomi-footer .tf-badge:first-child{border-left:0;}
.thomi-footer .tf-badge svg{width:26px;height:26px;flex:none;stroke:var(--tf-accent-soft);}
.thomi-footer .tf-badge b{display:block;color:var(--tf-head);font-weight:500;font-size:14px;letter-spacing:.01em;}
.thomi-footer .tf-badge span{display:block;color:var(--tf-muted);font-size:12.5px;line-height:1.4;}

/* ---------- MAIN GRID ---------- */
.thomi-footer .tf-main{
  display:grid;
  grid-template-columns:1.5fr 1fr 1.15fr 1.5fr;
  gap:44px;
  padding:56px 0 46px;
}
/* bản đồ */
.thomi-footer .tf-map{border:1px solid var(--tf-line);border-radius:4px;overflow:hidden;height:200px;background:#0f0d0b;}
.thomi-footer .tf-map iframe{width:100%;height:100%;border:0;display:block;filter:invert(.9) hue-rotate(180deg) brightness(.95) contrast(.9);}
.thomi-footer .tf-col-head{
  color:var(--tf-head);font-size:13px;font-weight:600;letter-spacing:.2em;
  text-transform:uppercase;margin:0 0 22px;padding-bottom:12px;position:relative;
}
.thomi-footer .tf-col-head::after{
  content:"";position:absolute;left:0;bottom:0;width:34px;height:2px;background:var(--tf-accent);
}
/* Logo Thomi — bản màu kem để nổi trên nền espresso */
.thomi-footer .tf-logo{height:46px;width:auto;max-width:100%;display:block;margin:0 0 20px;}
.thomi-footer .tf-company{color:var(--tf-head);font-weight:500;font-size:13.5px;letter-spacing:.04em;margin:0 0 10px;}
.thomi-footer .tf-desc{color:var(--tf-muted);font-size:14px;margin:0 0 16px;max-width:360px;}
.thomi-footer .tf-tax{color:var(--tf-muted);font-size:13px;margin:0 0 22px;}
.thomi-footer .tf-tax b{color:var(--tf-text);font-weight:500;}

/* link lists */
.thomi-footer .tf-links{list-style:none;margin:0;padding:0;}
.thomi-footer .tf-links li{margin:0 0 12px;}
.thomi-footer .tf-links a{
  color:var(--tf-text);text-decoration:none;font-size:14.5px;
  display:inline-flex;align-items:center;gap:0;transition:color .22s,gap .22s,transform .22s;
}
.thomi-footer .tf-links a::before{
  content:"";width:0;height:1px;background:var(--tf-accent-soft);
  transition:width .22s,margin-right .22s;
}
.thomi-footer .tf-links a:hover{color:var(--tf-head);}
.thomi-footer .tf-links a:hover::before{width:14px;margin-right:10px;}

/* contact */
.thomi-footer .tf-contact{list-style:none;margin:0;padding:0;}
.thomi-footer .tf-contact li{display:flex;gap:13px;align-items:flex-start;margin:0 0 16px;font-size:14.5px;color:var(--tf-text);}
.thomi-footer .tf-contact svg{width:18px;height:18px;flex:none;margin-top:3px;stroke:var(--tf-accent-soft);}
.thomi-footer .tf-contact a{color:var(--tf-text);text-decoration:none;transition:color .22s;}
.thomi-footer .tf-contact a:hover{color:var(--tf-head);}
.thomi-footer .tf-contact .tf-c-label{display:block;color:var(--tf-muted);font-size:12px;letter-spacing:.05em;text-transform:uppercase;margin-bottom:2px;}

/* socials */
.thomi-footer .tf-social{display:flex;gap:12px;margin-top:4px;}
.thomi-footer .tf-social a{
  width:40px;height:40px;border:1px solid var(--tf-line);border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:var(--tf-text);
  transition:background .25s,border-color .25s,color .25s,transform .25s;
}
.thomi-footer .tf-social a:hover{background:var(--tf-accent);border-color:var(--tf-accent);color:#fff;transform:translateY(-3px);}
.thomi-footer .tf-social svg{width:18px;height:18px;fill:currentColor;}

/* ---------- BOTTOM BAR ---------- */
.thomi-footer .tf-bottom{border-top:1px solid var(--tf-line);}
.thomi-footer .tf-bottom-inner{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding-top:22px;padding-bottom:22px;flex-wrap:wrap;   /* giữ padding ngang -> © + payment thẳng hàng với 4 cột */
}
.thomi-footer .tf-copy{color:var(--tf-muted);font-size:13px;margin:0;}
.thomi-footer .tf-pay{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.thomi-footer .tf-pay .tf-chip{
  height:30px;min-width:46px;padding:0 9px;border:1px solid var(--tf-line);border-radius:4px;
  background:rgba(255,255,255,.03);display:flex;align-items:center;justify-content:center;
  font-family:var(--tf-sans);font-size:11px;font-weight:700;letter-spacing:.03em;color:var(--tf-text);
}
.thomi-footer .tf-chip.visa{color:#e9e2d6;}
.thomi-footer .tf-chip.momo{color:#e9d5e4;}
.thomi-footer .tf-chip.vnpay{color:#cfe0ef;}
.thomi-footer .tf-chip.cod{color:#d8ccb8;letter-spacing:.08em;}

/* accordion caret ẩn trên desktop */
.thomi-footer .tf-acc-caret{display:none;}

/* ---------- TABLET (iPad) ---------- */
@media (max-width:1024px){
  .thomi-footer .tf-main{grid-template-columns:1fr 1fr;gap:40px 36px;padding:48px 0 40px;}
  .thomi-footer .tf-col.brand{grid-column:1 / -1;}
  .thomi-footer .tf-map-col{grid-column:1 / -1;}
  .thomi-footer .tf-map{height:280px;}
  .thomi-footer .tf-news-title{font-size:28px;}
}
@media (max-width:1024px) and (min-width:721px){
  .thomi-footer .tf-trust-inner{grid-template-columns:repeat(2,1fr);}
  .thomi-footer .tf-badge:nth-child(3){border-left:0;}
  .thomi-footer .tf-badge:nth-child(odd){border-left:0;}
  .thomi-footer .tf-badge{border-top:1px solid var(--tf-line);}
  .thomi-footer .tf-badge:nth-child(1),.thomi-footer .tf-badge:nth-child(2){border-top:0;}
}

/* ---------- MOBILE ---------- */
@media (max-width:720px){
  .thomi-footer .tf-container{padding:0 20px;}
  .thomi-footer .tf-news-inner{padding-top:34px;padding-bottom:34px;gap:22px;}
  .thomi-footer .tf-news-title{font-size:24px;}
  .thomi-footer .tf-trust-inner{grid-template-columns:1fr 1fr;}
  .thomi-footer .tf-badge{border-left:0;border-top:1px solid var(--tf-line);padding:18px 6px;}
  .thomi-footer .tf-badge:nth-child(1),.thomi-footer .tf-badge:nth-child(2){border-top:0;}
  .thomi-footer .tf-badge:nth-child(odd){border-right:1px solid var(--tf-line);}

  .thomi-footer .tf-main{grid-template-columns:1fr;gap:0;padding:14px 0 8px;}
  .thomi-footer .tf-col.brand{padding:28px 0 22px;}
  .thomi-footer .tf-col.tf-map-col{border-top:1px solid var(--tf-line);padding:22px 0;}
  .thomi-footer .tf-map{height:220px;}

  /* các cột link -> accordion */
  .thomi-footer .tf-col.acc{border-top:1px solid var(--tf-line);}
  .thomi-footer .tf-col.acc .tf-col-head{
    margin:0;padding:20px 0;cursor:pointer;display:flex;align-items:center;justify-content:space-between;
  }
  .thomi-footer .tf-col.acc .tf-col-head::after{display:none;}
  .thomi-footer .tf-acc-caret{display:block;transition:transform .3s;stroke:var(--tf-accent-soft);width:16px;height:16px;}
  .thomi-footer .tf-col.acc .tf-acc-body{
    max-height:0;overflow:hidden;transition:max-height .35s ease;
  }
  .thomi-footer .tf-col.acc.open .tf-acc-body{max-height:520px;}
  .thomi-footer .tf-col.acc.open .tf-acc-caret{transform:rotate(180deg);}
  .thomi-footer .tf-col.acc .tf-links{padding-bottom:18px;}
  .thomi-footer .tf-col.acc .tf-contact{padding-bottom:18px;}

  .thomi-footer .tf-bottom-inner{flex-direction:column-reverse;align-items:flex-start;gap:16px;padding-top:20px;padding-bottom:20px;}
}

/* 2026-10-01: iOS Safari tu PHONG TO trang khi cham o nhap co chu < 16px -> o email nhan tin dung 16px tren mobile. */
@media (max-width: 849px) {
	.thomi-footer .tf-field input { font-size: 16px; }
}
