/*
Theme Name: XeNhap2Banh
Theme URI: https://xenhap2banh.vn
Author: XeNhap2Banh Team
Author URI: https://xenhap2banh.vn
Description: Theme WooCommerce chuyên bán phụ tùng, đồ chơi xe máy chính hãng. Thiết kế đỏ-trắng hiện đại.
Version: 1.0.15
Requires at least: 6.0
Tested up to: 6.7
WC requires at least: 7.0
WC tested up to: 9.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xenhap2banh
Tags: woocommerce, e-commerce, custom-colors, custom-menu, custom-logo, footer-widgets, responsive-layout
*/

/* ================================================================
   CSS VARIABLES
   ================================================================ */
:root {
  --red:        #E31837;
  --red-dark:   #C0152E;
  --red-light:  #FF3A57;
  --orange:     #FF6B00;
  --yellow:     #FFC107;
  --dark:       #111111;
  --dark-2:     #222222;
  --dark-3:     #333333;
  --gray-600:   #555555;
  --gray-400:   #888888;
  --gray-200:   #CCCCCC;
  --gray-100:   #F5F5F5;
  --white:      #FFFFFF;
  --border:     #E8E8E8;
  --shadow:     0 2px 12px rgba(0,0,0,.1);
  --shadow-md:  0 4px 24px rgba(0,0,0,.15);
  --radius:     6px;
  --radius-md:  10px;
  --font:       'Be Vietnam Pro', 'Roboto', sans-serif;
  --header-h:   120px;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark-3);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-2);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.see-all {
  font-size: .85rem;
  color: var(--red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.see-all:hover { color: var(--red-dark); }
.see-all::after { content: '›'; font-size: 1.1rem; }

/* ================================================================
   TOP BAR
   ================================================================ */
.topbar {
  background: var(--dark-2);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  height: 36px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar a {
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.topbar a:hover { color: var(--white); }
.topbar svg { width: 13px; height: 13px; flex-shrink: 0; }
.topbar-hotline { color: var(--yellow) !important; font-weight: 600; }
.topbar-sep { color: rgba(255,255,255,.3); }

/* ================================================================
   MAIN HEADER
   ================================================================ */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-main {
  padding: 12px 0;
}
.header-main .container {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-logo {
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-2);
  line-height: 1;
}
.site-logo span { color: var(--red); }
.site-logo img { height: 48px; width: auto; }

.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .2s;
  max-width: 600px;
}
.header-search:focus-within { border-color: var(--red); }
.header-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: .95rem;
  color: var(--dark-3);
}
.header-search input::placeholder { color: var(--gray-400); }
.header-search button {
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  transition: background .2s;
}
.header-search button:hover { background: var(--red-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: .7rem;
  color: var(--dark-3);
  position: relative;
  cursor: pointer;
  transition: color .2s;
}
.header-action-btn:hover { color: var(--red); }
.header-action-btn svg { width: 22px; height: 22px; }
.header-action-btn .badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--red);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.header-nav {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.header-nav .container {
  display: flex;
  align-items: stretch;
}
.nav-cat-btn {
  background: var(--red);
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 0;
}
.nav-cat-btn:hover { background: var(--red-dark); color: var(--white); }
.nav-cat-btn svg { width: 18px; height: 18px; }

.main-nav {
  display: flex;
  flex: 1;
}
.main-nav > li {
  position: relative;
}
.main-nav > li > a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 44px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark-2);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.main-nav > li > a:hover,
.main-nav > li.current-menu-item > a,
.main-nav > li.current-page-ancestor > a {
  color: var(--red);
  background: rgba(227,24,55,.06);
}
/* Dropdown */
.main-nav li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  border-top: 2px solid var(--red);
  z-index: 100;
  border-radius: 0 0 var(--radius) var(--radius);
}
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: .85rem;
  border-bottom: 1px solid var(--border);
  color: var(--dark-3);
}
.main-nav .sub-menu li a:hover { color: var(--red); background: var(--gray-100); }

/* ================================================================
   HERO SLIDER
   ================================================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
  line-height: 0;
}
.hero-slide {
  position: relative;
  aspect-ratio: 1750 / 500;
  display: flex;
  align-items: center;
  overflow: hidden;
  line-height: 1.5;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* hero-slide-inner: absolute overlay trên ảnh */
.hero-slide-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
.hero-slide-inner .container {
  display: flex;
  justify-content: flex-end;
}
.hero-text-block {
  max-width: 460px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
}
.hero-label {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.hero-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.hero-title span { color: var(--red); }
.hero-subtitle {
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.hero-badge {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--white);
}
.hero-badge svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }
.hero-badge strong { display: block; font-size: .75rem; white-space: nowrap; }
.hero-badge span { font-size: .68rem; opacity: .7; white-space: nowrap; }

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--red); border-color: var(--red); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-arrow svg { width: 18px; height: 18px; }
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
  line-height: 0;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .25s, transform .25s;
  border: none;
  padding: 0;
}
.slider-dot.active { background: var(--red); transform: scale(1.35); }

/* ================================================================
   CATEGORY ICONS
   ================================================================ */
.cat-icons-section {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cat-icons-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  align-items: start;
}
.cat-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, transform .2s;
  text-align: center;
}
.cat-icon-item:hover { background: var(--gray-100); transform: translateY(-2px); }
.cat-icon-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}
.cat-icon-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
}
.cat-icon-placeholder svg { width: 28px; height: 28px; color: var(--gray-400); }
.cat-icon-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--dark-3);
  line-height: 1.3;
}

/* ================================================================
   PROMO BANNERS
   ================================================================ */
.promo-banners {
  padding: 20px 0;
  background: var(--gray-100);
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.promo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 130px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.promo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 100%);
}
.promo-card-1 .promo-overlay { background: linear-gradient(135deg, rgba(200,0,30,.8) 0%, rgba(150,0,20,.4) 100%); }
.promo-card-2 .promo-overlay { background: linear-gradient(135deg, rgba(20,30,80,.85) 0%, rgba(10,20,60,.4) 100%); }
.promo-card-3 .promo-overlay { background: linear-gradient(135deg, rgba(180,80,0,.8) 0%, rgba(200,100,0,.4) 100%); }
.promo-card-4 .promo-overlay { background: linear-gradient(135deg, rgba(20,20,20,.85) 0%, rgba(40,40,40,.5) 100%); }
.promo-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.promo-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 10px;
}
.promo-btn {
  display: inline-block;
  background: var(--white);
  color: var(--dark-2);
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .2s, color .2s;
}
.promo-btn:hover { background: var(--red); color: var(--white); }

/* ================================================================
   PRODUCT CARDS
   ================================================================ */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .3s;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}
.product-label.official { background: #1B7A3E; }
.product-card-body {
  padding: 12px;
}
.product-name {
  font-size: .87rem;
  font-weight: 600;
  color: var(--dark-3);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.product-name:hover { color: var(--red); }
.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  color: var(--gray-400);
  margin-bottom: 2px;
}
.stars { color: #FFC107; letter-spacing: -1px; }
.product-sold { font-size: .72rem; color: var(--gray-400); }
.btn-add-cart {
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  padding: 9px;
  border-radius: 4px;
  margin-top: 10px;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-add-cart:hover { background: var(--red-dark); color: var(--white); }

/* ================================================================
   FEATURED PRODUCTS
   ================================================================ */
.featured-products {
  padding: 32px 0;
  background: var(--white);
}
.products-carousel {
  position: relative;
}
.products-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-3);
  transition: background .2s, color .2s;
}
.carousel-arrow:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }
.carousel-arrow svg { width: 16px; height: 16px; }

/* ================================================================
   BRANDS
   ================================================================ */
.brands-section {
  padding: 28px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.brands-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
  cursor: pointer;
  min-width: 100px;
}
.brand-item:hover { box-shadow: var(--shadow); border-color: var(--gray-200); }
.brand-item img { height: 32px; width: auto; object-fit: contain; filter: grayscale(40%); transition: filter .2s; }
.brand-item:hover img { filter: grayscale(0); }
.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark-2);
  letter-spacing: -1px;
}
.brand-name.honda { color: #CC0000; }
.brand-name.yamaha { color: #003087; }
.brand-name.suzuki { color: #005BAC; }
.brand-name.kawasaki { color: #2D9B27; }
.brand-name.piaggio { color: #003087; }
.brand-name.brembo { color: #E31837; }
.brand-name.michelin { color: #003087; }
.brand-name.rcb { color: #CC0000; }

/* ================================================================
   WHY CHOOSE
   ================================================================ */
.why-section {
  padding: 30px 0;
  background: var(--gray-100);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}
.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
}
.why-icon {
  width: 52px;
  height: 52px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin: 0 auto;
}
.why-icon svg { width: 26px; height: 26px; }
.why-title { font-size: .9rem; font-weight: 700; color: var(--dark-2); }
.why-desc { font-size: .78rem; color: var(--gray-600); line-height: 1.5; }

/* ================================================================
   NEWS SECTION
   ================================================================ */
.news-section {
  padding: 32px 0;
  background: var(--white);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 14px; }
.news-card-title {
  font-size: .87rem;
  font-weight: 600;
  color: var(--dark-3);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-title:hover { color: var(--red); }
.news-card-date { font-size: .75rem; color: var(--gray-400); }

/* ================================================================
   FOOTER TOP BAR
   ================================================================ */
.footer-topbar {
  background: var(--gray-100);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.footer-topbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.ftb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ftb-icon {
  width: 40px;
  height: 40px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 4px;
}
.ftb-icon svg { width: 20px; height: 20px; }
.ftb-title { font-size: .88rem; font-weight: 700; color: var(--dark-2); }
.ftb-desc { font-size: .75rem; color: var(--gray-600); }

/* ================================================================
   FOOTER MAIN
   ================================================================ */
.footer-main {
  background: var(--dark-2);
  color: rgba(255,255,255,.8);
  padding: 40px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr 1.5fr;
  gap: 30px;
}
.footer-col-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-logo span { color: var(--red); }
.footer-desc {
  font-size: .8rem;
  line-height: 1.65;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  transition: background .2s;
}
.footer-social a:hover { background: var(--red); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--white); }
.footer-links a::before { content: '›'; color: var(--red); font-size: 1rem; }
.footer-contact li {
  margin-bottom: 10px;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-contact li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--red); }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: var(--white); }

/* ================================================================
   FOOTER BOTTOM
   ================================================================ */
.footer-bottom {
  background: var(--dark);
  padding: 14px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copyright {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}
.footer-payments {
  display: flex;
  align-items: center;
  gap: 8px;
}
.payment-badge {
  background: var(--white);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: .7rem;
  font-weight: 800;
  color: var(--dark-2);
  letter-spacing: .5px;
}
.payment-badge.visa { color: #1A1F71; }
.payment-badge.mc { color: #EB001B; }
.payment-badge.napas { color: #D91C5C; }
.payment-badge.momo { color: #ae2070; }

/* ================================================================
   FLOATING BUTTONS
   ================================================================ */
.float-group {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.float-btn svg { width: 22px; height: 22px; }
.float-zalo { background: #0068FF; color: var(--white); }
.float-fb { background: #0866FF; color: var(--white); }
.float-phone { background: var(--red); color: var(--white); }
.float-back { background: var(--dark-3); color: var(--white); }
.float-label {
  position: absolute;
  right: calc(100% + 10px);
  background: var(--dark-2);
  color: var(--white);
  font-size: .72rem;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.float-label::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--dark-2);
  border-right: none;
}
.float-btn:hover .float-label { opacity: 1; }
#backToTop { display: none; }

/* ================================================================
   WOOCOMMERCE BASICS
   ================================================================ */
.woocommerce-message,
.woocommerce-info {
  background: #EBF8EE;
  border-left: 4px solid #28a745;
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
  font-size: .9rem;
}
.woocommerce-error {
  background: #FEE;
  border-left: 4px solid var(--red);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
  font-size: .9rem;
}
.page-content { padding: 30px 0; min-height: 400px; }

/* ================================================================
   MOBILE MENU
   ================================================================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  color: var(--dark-2);
  cursor: pointer;
}
.mobile-menu-toggle svg { width: 26px; height: 26px; }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1200;
}
.mobile-overlay.open { display: block; }
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: var(--white);
  z-index: 1300;
  overflow-y: auto;
  transition: left .3s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,.15);
}
.mobile-drawer.open { left: 0; }
.mobile-drawer-head {
  background: var(--red);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
}
.mobile-drawer-close { background: none; color: var(--white); font-size: 1.4rem; }
.mobile-nav-list a {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  font-size: .9rem;
  color: var(--dark-3);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-nav-list a:hover { color: var(--red); background: var(--gray-100); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
  .cat-icons-grid { grid-template-columns: repeat(5, 1fr); }
  .products-track { grid-template-columns: repeat(4, 1fr); }
  .brands-grid { justify-content: center; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .footer-topbar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar-left { display: none; }
  .hero-slide { aspect-ratio: unset; min-height: 280px; }
  .hero-slide-bg { background-position: center; }
  .hero-slide-inner .container { justify-content: center; }
  .hero-text-block { max-width: 100%; padding: 16px 18px; border-left-width: 3px; border-radius: 8px; }
  .hero-title { font-size: 1.25rem; }
  .hero-badge span { display: none; }
  .products-track { grid-template-columns: repeat(2, 1fr); }
  .cat-icons-grid { grid-template-columns: repeat(5, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 10px; text-align: center; }
  .brands-grid { gap: 8px; }
  .brand-item { min-width: 70px; padding: 8px 12px; }
}

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
  background: var(--gray-100);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: .8rem;
  color: var(--gray-400);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  color: var(--gray-200);
  margin-left: 6px;
}
.breadcrumb-list a { color: var(--red); }
.breadcrumb-list a:hover { color: var(--red-dark); }
.breadcrumb-list li:last-child { color: var(--gray-600); }

/* ================================================================
   ENTRY CONTENT STYLES
   ================================================================ */
.entry-content h2, .entry-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--dark-2);
}
.entry-content p { margin-bottom: 12px; }
.entry-content ul, .entry-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.entry-content li { margin-bottom: 4px; }
.entry-content img {
  border-radius: var(--radius);
  margin: 12px 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: .88rem;
}
.entry-content table td,
.entry-content table th {
  border: 1px solid var(--border);
  padding: 8px 12px;
}
.entry-content table th { background: var(--gray-100); font-weight: 600; }

/* WooCommerce Price */
.woocommerce-Price-amount {
  color: var(--red);
  font-weight: 700;
}
ins .woocommerce-Price-amount { color: var(--red); }
del .woocommerce-Price-amount { color: var(--gray-400); font-size: .85em; }

/* Pagination */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .85rem;
  color: var(--dark-3);
  margin: 0 2px;
  transition: all .2s;
}
.page-numbers:hover, .page-numbers.current {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* WooCommerce notices */
.woocommerce-notices-wrapper { padding: 0 0 12px; }
