/* Shared footer is the same markup on every full page. One stylesheet, no legacy footer blocks. */
:root{--font-brand:'Times New Roman',serif}
/* ===== V10.2 — KẾT NỐI + FOOTER (CHƯA CÓ CHATBOX) ===== */
:root{
  /* Sau này Admin chỉ chỉnh nội dung/cỡ/màu/ẩn-hiện/khoảng cách; giữ font APACUP. */
  --fs-connect-kicker:8px;
  --fs-connect-copy:12.5px;
  --fs-footer-title:12.5px;
  --fs-footer-link:10.2px;
  --footer-bg:#fffdf8;
  --footer-card:#f7efe5;
  --footer-line:rgba(47,36,29,.12);
}
.site-footer{
  background:var(--footer-bg);color:#16120f;
  padding:9px 12px calc(18px + env(safe-area-inset-bottom));
}
.footer-grid{
  display:grid;grid-template-columns:1fr 1fr;
  border-top:1px solid var(--footer-line);
  border-bottom:1px solid var(--footer-line);
}
.footer-block{
  min-width:0;padding:13px 7px 14px 3px;
}
.footer-block:nth-child(even){
  border-left:1px solid var(--footer-line);
  padding-left:12px;padding-right:0;
}
.footer-block:nth-child(n/**/+3){border-top:1px solid var(--footer-line)}
.footer-title{
  margin:0 0 5px;display:flex;align-items:center;gap:4px;
  font:700 var(--fs-footer-title)/1.05 var(--font-brand);
  letter-spacing:.025em;
}
.footer-title svg{
  width:11px;height:11px;flex:0 0 11px;
  stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;
}
.footer-links-list{display:flex;flex-direction:column;gap:2px}
.footer-link{
  min-height:13px;display:flex;align-items:flex-start;justify-content:space-between;gap:5px;
  color:#17130f;text-decoration:none;
  font:500 var(--fs-footer-link)/1.16 var(--font-brand);
}
.footer-link strong{font-weight:700}
.footer-link .arrow{
  flex:0 0 auto;font:400 12px/.9 Arial,sans-serif;color:#4b4038;margin-top:1px;
}
.footer-link.no-arrow{justify-content:flex-start}
/* Home footer: social channels and verified-destination link; scoped only to these blocks. */
#news .footer-title,#documents .footer-title,#contact .footer-title{color:#a83494;font-weight:500;letter-spacing:0;text-transform:none}
#news .footer-link{color:#a83494;font-weight:400}
#news .ap-footer-socials{display:flex;flex-wrap:wrap;gap:9px;margin-top:9px;align-items:center}
#news .ap-footer-social{width:31px;height:31px;border:1px solid #bd6aad;border-radius:9px;color:#a83494;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:transparent;transition:background .15s ease}
#news .ap-footer-social:hover,#news .ap-footer-social:focus-visible{background:#f9eaf5;outline-offset:2px}
#news .ap-footer-social svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
#news .ap-footer-social[aria-label="Facebook Apacup Garments"] svg{fill:currentColor;stroke:none}
/* Footer brand marquee: one uncluttered track, scoped to first column only. */
#news .ap-footer-brands{width:100%;max-width:250px;margin-top:13px;overflow:hidden;background:transparent;position:relative}
#news .ap-footer-brands-track{display:flex;width:max-content;animation:apFooterBrandScroll 14s linear infinite;will-change:transform}
#news .ap-footer-brands-pair{flex:0 0 auto;display:flex;width:250px;gap:14px;align-items:center;justify-content:center;padding:0 7px;box-sizing:border-box}
#news .ap-footer-brands-pair img{width:54px;height:54px;max-width:none;max-height:none;flex:0 0 54px;object-fit:contain;display:block;background:transparent}
@keyframes apFooterBrandScroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

@media(prefers-reduced-motion:reduce){#news .ap-footer-brands-track{animation:none}#news .ap-footer-brands-pair[aria-hidden="true"]{display:none}}

#documents .ap-bct-link{display:flex;align-items:center;justify-content:center;gap:5px;min-height:46px;padding:7px 5px;border:1px solid rgba(174,84,155,.38);border-radius:7px;text-decoration:none;color:#a83494;text-align:center;font:500 11px/1.35 var(--font-brand);background:transparent}
#documents .ap-bct-link:hover,#documents .ap-bct-link:focus-visible{background:#fcf0f8}
#documents .ap-bct-link svg{width:18px;height:18px;flex:0 0 18px;stroke:currentColor;stroke-width:1.6;fill:none}
/* Support links: lightweight text and arrows, no button backgrounds. */
#support .footer-title{color:#a83494;font-weight:500;letter-spacing:0}
#support .footer-link{color:#a83494;font-weight:400;background:transparent;border:0;border-radius:0;padding:2px 0;text-transform:none}
#support .footer-link .arrow{color:#ab479b;font-size:14px;line-height:1}
#support .footer-link:hover,#support .footer-link:focus-visible{color:#7d2076;text-decoration:underline;text-underline-offset:2px}
.footer-bottom{text-align:center;padding:17px 3px 0}
.footer-copy{
  margin:0 auto 10px;
  color:#413a35;
  font:500 7.4px/1.35 var(--font-brand);
  white-space:normal;
}
.footer-payments{display:flex;justify-content:center;gap:5px;margin:0 0 7px}
.payment-chip{
  min-width:31px;height:17px;padding:0 7px;border-radius:5px;
  border:1px solid rgba(60,46,37,.17);background:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  font:600 7.3px/1 var(--font-brand);color:#312822;
}
.footer-policy{
  display:inline-block;color:#514740;text-decoration:none;
  font:500 8.2px/1.2 var(--font-brand);
}
@media (max-width:350px){
  :root{--fs-connect-copy:11.8px;--fs-footer-title:11.7px;--fs-footer-link:9.45px}
  .site-footer{padding-left:9px;padding-right:9px}
  .footer-block:nth-child(even){padding-left:9px}
}


@media(min-width:768px){.site-footer{max-width:100%;padding:16px max(16px,calc((100% - 1100px)/2)) 24px}.footer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.footer-block{border-top:0!important;border-left:0!important;padding:16px 14px!important}.footer-block+.footer-block{border-left:1px solid var(--footer-line)!important}.footer-bottom{padding-top:16px}}

/* Unified shell presentation; retain original functional header controls and listeners. */
:is(.mobile-header,.umi-contact-header,.umi-support-header,.news-header,.ap-unified-header,.legal-head){box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:53px;padding:8px 14px;background:#faf3e9;color:#b42f94;border-bottom:1px solid #eadde0;font-family:'Times New Roman',serif}
:is(.umi-contact-header,.umi-support-header,.news-header,.ap-unified-header,.legal-head) img{object-fit:contain;max-width:36px;max-height:36px}
:is(.umi-contact-header,.umi-support-header,.news-header,.ap-unified-header,.legal-head) :is(button,a){cursor:pointer}
.ap-shared-desktop-nav{display:none;align-items:center;gap:16px;flex-wrap:wrap;font:500 12px/1.2 'Times New Roman',serif;color:#af2f90}
.ap-shared-desktop-nav a{color:inherit;text-decoration:none;white-space:nowrap}
@media(min-width:769px){.ap-shared-desktop-nav{display:flex}.ap-shared-desktop-nav a:hover{text-decoration:underline}}
@media(max-width:768px){.ap-shared-desktop-nav{display:none} :is(.umi-contact-header,.umi-support-header,.news-header,.ap-unified-header,.legal-head){min-height:47px;padding:5px 9px}}
