/* ===== Announcement bar ===== */
.announcement-bar { background: var(--c-bg); border-bottom: 1px solid #d70000; padding: 15px var(--page-margin); text-align: center; }
.announcement-bar__text { font-size: .75rem; font-weight: 300; letter-spacing: .03em; line-height: 1.4; }
.announcement-bar__text strong { font-weight: 600; }

/* ===== Header (3 hàng, full-width) ===== */
.site-header { position: relative; z-index: 50; background: #fff; color: #202020; }
.site-header__inner { width: 100%; padding-inline: clamp(12px, 3vw, 40px); margin: 0 auto; }
.site-header__top { background: linear-gradient(100deg, var(--c-grad-start) 0%, var(--c-grad-end) 100%); color: #fff; }
.site-header__top-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.site-header__social, .site-header__markets { display: flex; align-items: center; gap: 15px; }
.site-header__social a { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; color: inherit; text-decoration: none; }
.site-header__social a:hover, .site-header__markets a:hover { text-decoration: underline; }
.site-header__markets { font-size: 12px; }
.site-header__markets select { width: auto; max-width: 150px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.site-header__markets option { color: #111; background: #fff; }
.topbar-widget { color: inherit; }
.topbar-widget ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.site-header__main { background: #fff; }
.site-header__main-inner { min-height: 96px; display: grid; grid-template-columns: minmax(120px, 1fr) minmax(180px, 2fr) minmax(120px, 1fr); align-items: center; gap: clamp(10px, 2vw, 28px); }
.site-logo { display: inline-flex; align-items: center; justify-self: start; text-decoration: none; color: inherit; }
.site-logo img, .site-logo__img { height: var(--logo-h, 100px); width: auto; max-width: min(100%, 220px); object-fit: contain; }
.site-logo__text { font-size: 20px; font-weight: 700; }
.header-search { width: 100%; max-width: 620px; justify-self: center; display: flex; min-width: 0; height: 44px; border: 1px solid #D9D9D9; border-radius: 5px; overflow: hidden; background: #fff; }
.header-search input[type="search"] { flex: 1; min-width: 0; width: 100%; border: 0; border-radius: 0; padding: 0 14px; font-size: 14px; color: #202020; background: #fff; }
.header-search button { flex: 0 0 50px; width: 50px; display: grid; place-items: center; border: 0; border-radius: 0; background: var(--c-accent); color: #fff; cursor: pointer; padding: 0; }
.header-search button svg { width: 20px; height: 20px; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: clamp(8px, 1.6vw, 22px); }
.header-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; color: inherit; text-decoration: none; font-size: 13px; }
.header-action svg { width: 22px; height: 22px; flex: 0 0 22px; }
.cart-copy { display: flex; flex-direction: column; line-height: 1.35; white-space: nowrap; }
.cart-copy .amount { font-weight: 600; }
.header-nav { background: #fff; border-top: 1px solid #D9D9D9; border-bottom: 1px solid #D9D9D9; }
.header-nav__scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.header-nav__list { display: flex; justify-content: center; align-items: stretch; gap: clamp(18px, 3vw, 42px); min-width: max-content; list-style: none; margin: 0; padding: 0 clamp(12px, 3vw, 40px); }
.header-nav__list a { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; color: inherit; text-decoration: none; white-space: nowrap; }
.header-nav__list a:hover, .header-nav__list .current-menu-item > a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 749px) {
  .site-header__inner { padding-inline: 12px; }
  .site-header__top-inner { min-height: 36px; gap: 8px; }
  .site-header__social, .site-header__markets { gap: 9px; }
  .site-header__social a { font-size: 11px; }
  .site-header__markets { font-size: 10px; }
  .site-header__main-inner { min-height: 0; padding-block: 12px; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .site-logo img, .site-logo__img { height: var(--logo-h-m, 60px); max-width: 120px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 10px; }
  .header-action--account span { display: none; }
  .cart-copy { font-size: 10px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; height: 40px; max-width: none; }
  .header-search button { width: 42px; flex-basis: 42px; }
  .header-nav__list { justify-content: flex-start; gap: 23px; padding-inline: 12px; }
  .header-nav__list a { min-height: 44px; font-size: 13px; }
}
@media (max-width: 360px) { .cart-copy { display: none; } .site-header__social { gap: 6px; } .site-header__social a { font-size: 10px; } }

/* ===== Footer ===== */
.site-footer { background: var(--c-footer-bg); color: #333; padding: 45px 0 40px; }
.site-footer__container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.site-footer__main { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #e0e0e0; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col__title { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: #000; line-height: 1.3; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #666; text-decoration: none; font-size: 14px; line-height: 1.6; transition: color .2s; }
.footer-links a:hover { color: #000; text-decoration: none; }
.footer-newsletter p { font-size: 14px; line-height: 1.5; margin: 0; }
.footer-newsletter small { font-size: 12px; opacity: .7; }
.footer-newsletter__form { display: flex; gap: 8px; }
.footer-newsletter__form input[type="email"] { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid #ccc; border-radius: 4px; background: #fff; font-size: 14px; }
.footer-newsletter__form button { padding: 12px 24px; background: #000; color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background .2s; }
.footer-newsletter__form button:hover { background: #333; }
.footer-msg { font-size: 14px; margin: 0; }
.footer-msg--ok { color: #4caf50; } .footer-msg--err { color: #f44336; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 32px; }
.footer-copy { display: flex; flex-direction: column; gap: 8px; }
.footer-copy p { margin: 0; font-size: 14px; }
.footer-copy__tag { opacity: .8; }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background .2s; }
.footer-social a:hover { background: #333; }
@media (max-width: 768px) {
  .site-footer__main { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer-newsletter__form { flex-direction: column; }
}

/* ===== Cart drawer ===== */
.cart-drawer { position: fixed; inset: 0; z-index: 9999; visibility: hidden; pointer-events: none; }
.cart-drawer.is-open { visibility: visible; pointer-events: auto; }
.cart-drawer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--c-bg); color: var(--c-fg); border-left: 1px solid var(--c-border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; }
.cart-drawer.is-open .cart-drawer__panel { transform: none; }
.cart-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--c-border); }
.cart-drawer__head h2 { font-size: 20px; margin: 0; }
.cart-drawer__close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; color: inherit; }
.cart-drawer .widget_shopping_cart_content { flex: 1; overflow-y: auto; padding: 8px 20px 20px; display: flex; flex-direction: column; }
.cart-drawer ul.cart_list, .cart-drawer ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.cart-drawer li.woocommerce-mini-cart-item { position: relative; display: block; padding: 16px 28px 16px 0; border-bottom: 1px solid var(--c-border); min-height: 96px; }
.cart-drawer li.woocommerce-mini-cart-item img { float: left; width: 72px; height: 72px; object-fit: cover; margin: 0 14px 0 0; border-radius: 4px; }
.cart-drawer li.woocommerce-mini-cart-item a:not(.remove) { font-weight: 600; text-decoration: none; display: block; }
.cart-drawer a.remove { position: absolute; right: 0; top: 16px; color: #999 !important; text-decoration: none; font-size: 20px; }
.cart-drawer .quantity { display: block; margin-top: 4px; font-size: 13px; }
.cart-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 16px 0; font-size: 16px; }
.cart-drawer .woocommerce-mini-cart__buttons { display: grid; gap: 10px; }
.cart-drawer .woocommerce-mini-cart__buttons a.button { width: 100%; }
.cart-drawer .woocommerce-mini-cart__buttons a.button:not(.checkout) { background: transparent; color: var(--c-fg); }
.cart-drawer .woocommerce-mini-cart__empty-message { text-align: center; margin: 40px 0; }
body.drawer-open { overflow: hidden; }
