/* giao_dien/css/style.css */

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: #f8fafc; color: #1e293b; line-height: 1.5; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 15px; }

/* ========================================================
   1. HEADER & TOP PROMO BANNER
   ======================================================== */
.top-promo-banner { background: linear-gradient(90deg, #15803d, #166534); color: #fff; text-align: center; padding: 8px 15px; font-size: 13px; font-weight: bold; }
.top-promo-banner span { background: #f59e0b; color: #000; padding: 2px 8px; border-radius: 4px; margin-left: 6px; }

.main-header { background: #fff; border-bottom: 2px solid #e2e8f0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.header-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 20px; }
.logo-box { font-size: 22px; font-weight: 900; color: #15803d; text-decoration: none; text-transform: uppercase; letter-spacing: -0.5px; }
.logo-box span { color: #f59e0b; }

.search-box-header { flex: 1; max-width: 520px; position: relative; }
.search-fake-input { width: 100%; border: 2px solid #15803d; border-radius: 25px; padding: 9px 18px; font-size: 14px; background: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #64748b; }
.search-fake-input i { color: #15803d; }

.header-right { display: flex; align-items: center; gap: 20px; }
.cta-call { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1e293b; }
.call-circle { width: 38px; height: 38px; border-radius: 50%; background: #dcfce7; color: #15803d; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.call-text { font-size: 11.5px; color: #64748b; line-height: 1.2; }
.call-text strong { display: block; font-size: 14px; color: #e11d48; font-weight: 800; }

/* ========================================================
   2. TOP MENU BAR
   ======================================================== */
.top-menu-bar { background: linear-gradient(90deg, #16a34a, #22c55e); width: 100%; box-shadow: 0 3px 6px rgba(22, 163, 74, 0.15); }
.top-menu-list { display: flex; justify-content: flex-end; align-items: left; list-style: none; margin: 0; padding: 0; overflow-x: auto; white-space: nowrap; }
.top-menu-list li a { display: block; padding: 11px 16px; color: #ffffff; text-decoration: none; font-size: 18px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.top-menu-list li a:hover { background-color: rgba(255, 255, 255, 0.2); color: #fef08a; }

/* ========================================================
   3. HERO SECTION: MEGA MENU & SUB CARDS
   ======================================================== */
.hero-sec { margin-top: 15px; }
.hero-grid { display: flex; gap: 15px; }
.mega-menu { width: 240px; flex-shrink: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
.menu-head { background: #15803d; color: #fff; padding: 12px 15px; font-weight: bold; font-size: 13.5px; }
.menu-list { list-style: none; }
.menu-list li a { display: flex; align-items: center; justify-content: space-between; padding: 12.5px 16px; font-size: 13px; color: #334155; text-decoration: none; border-bottom: 1px solid #f1f5f9; transition: all 0.2s; }
.menu-list li a:hover { background: #f0fdf4; color: #15803d; font-weight: bold; padding-left: 18px; }

.main-banners-block { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hero-banner-cover { background: linear-gradient(135deg, #14532d, #064e3b); border-radius: 8px; min-height: 310px; padding: 30px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.hero-banner-cover h2 { font-size: 24px; color: #fde047; margin-bottom: 8px; }
.hero-banner-cover p { font-size: 14px; color: #bbf7d0; margin-bottom: 16px; }
.btn-hero { align-self: flex-start; background: #f59e0b; color: #000; font-weight: 800; padding: 9px 22px; border-radius: 6px; text-decoration: none; font-size: 13px; }

.sub-hero-cards { display: flex; gap: 10px; }
.sub-card { flex: 1; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 15px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sub-card i { color: #15803d; font-size: 22px; }
.sub-card strong { font-size: 12.5px; color: #1e293b; display: block; }
.sub-card span { font-size: 11px; color: #64748b; }

/* ========================================================
   4. FLASHSALE CONTAINER
   ======================================================== */
.flashsale-wrapper { background: #fff7ed; border: 2px solid #fed7aa; border-radius: 14px; padding: 20px; margin-top: 25px; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.08); }
.flashsale-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.flash-tag { background: #ea580c; color: #fff; font-weight: 900; font-size: 14px; padding: 4px 12px; border-radius: 4px; font-style: italic; display: inline-flex; align-items: center; gap: 6px; }
.countdown-clock { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: bold; }
.clock-unit { background: #000; color: #fff; padding: 4px 7px; border-radius: 4px; font-size: 13px; }

/* ========================================================
   5. DANH MỤC HIỆN ĐẠI (CATEGORY CARDS)
   ======================================================== */
.category-showcase-sec { margin: 35px 0 25px; }
.sec-title-pill { font-size: 18px; font-weight: 800; color: #15803d; text-transform: uppercase; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.cat-cards-container { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 18px; }
.cat-modern-card { flex: 0 0 calc(20% - 12px); background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 10px; display: flex; align-items: center; gap: 10px; text-decoration: none; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); transition: all 0.25s ease; position: relative; overflow: hidden; box-sizing: border-box; }
.cat-modern-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09); }
.cat-card-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.cat-card-info { flex: 1; min-width: 0; }
.cat-card-info h3 { font-size: 13px; font-weight: 800; color: #0f172a; margin: 0; line-height: 1.35; }
.cat-card-arrow { color: #cbd5e1; font-size: 11px; }

.card-maypha .cat-card-icon { background: #dcfce7; color: #15803d; }
.card-mayxay .cat-card-icon { background: #e0f2fe; color: #0284c7; }
.card-combo .cat-card-icon  { background: #ffedd5; color: #ea580c; }
.card-maycu .cat-card-icon  { background: #f1f5f9; color: #475569; }
.card-caphe .cat-card-icon  { background: #ccfbf1; color: #0d9488; }

/* ========================================================
   6. PRODUCT GRID 5 COLUMNS (DESKTOP)
   ======================================================== */
.product-sec-block { margin-top: 35px; }
.sec-head-flex { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #15803d; padding-bottom: 8px; margin-bottom: 16px; }
.sec-head-flex h2 { font-size: 18px; font-weight: 800; color: #15803d; text-transform: uppercase; }
.sec-head-flex a { font-size: 13px; color: #2563eb; text-decoration: none; font-weight: bold; }

.grid-5-col { display: flex; flex-wrap: wrap; gap: 12px; }
.p-card { flex: 0 0 calc(20% - 10px); background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; position: relative; transition: all 0.2s ease; box-sizing: border-box; }
.p-card:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,0.08); border-color: #15803d; }

.tag-sale-circle { position: absolute; top: 8px; left: 8px; background: #e11d48; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 12px; }
.tag-hot-badge { position: absolute; top: 8px; right: 8px; background: #f59e0b; color: #000; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }

.p-thumb { height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; overflow: hidden; background: #fff; }
.p-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.p-title { font-size: 13.5px; font-weight: 700; color: #1e293b; text-decoration: none; line-height: 1.4; height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px; }
.p-title:hover { color: #15803d; }

.p-stars { font-size: 11px; color: #f59e0b; margin-bottom: 6px; }
.p-stars span { color: #94a3b8; font-size: 10.5px; margin-left: 3px; }

.p-call-line { font-size: 11.5px; color: #475569; margin-bottom: 4px; }
.p-call-line a { color: #2563eb; font-weight: bold; text-decoration: none; }

.p-sale-sub { font-size: 11.5px; color: #e11d48; font-weight: bold; }
.p-price-row { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 8px; }
.p-curr-price { font-size: 16px; font-weight: 900; color: #e11d48; }
.p-old-price { font-size: 12px; color: #94a3b8; text-decoration: line-through; }

.btn-p-offer { background: #fed7aa; color: #9a3412; border: 1px solid #fdba74; text-align: center; text-decoration: none; font-size: 12px; font-weight: 800; padding: 8px 4px; border-radius: 4px; margin-top: auto; display: block; transition: all 0.2s; }
.btn-p-offer:hover { background: #f59e0b; color: #fff; }

/* ========================================================
   7. THƯƠNG HIỆU YÊU THÍCH (10 LOGO 3D SHINE EFFECT)
   ======================================================== */
.brand-showcase-section {
  margin-top: 30px !important;
  margin-bottom: 35px !important;
}

.brand-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

.brand-grid > .brand-card {
  flex: 0 0 calc(20% - 10px) !important;
  width: calc(20% - 10px) !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  padding: 8px 12px !important;
}

.brand-grid > .brand-card::after {
  content: "" !important;
  position: absolute !important;
  top: -50% !important;
  left: -70% !important;
  width: 50% !important;
  height: 200% !important;
  background: linear-gradient(60deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%) !important;
  transform: rotate(25deg) !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.brand-grid > .brand-card:hover::after {
  opacity: 1 !important;
  left: 140% !important;
  transition: left 0.7s ease-in-out !important;
}

.brand-grid > .brand-card:hover {
  transform: translateY(-4px) !important;
  border-color: #10b981 !important;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.16) !important;
}

/* Định dạng kiểu chữ/logo 10 hãng */
.font-breville { font-family: Impact, "Arial Black", sans-serif; font-size: 21px; font-weight: 900; color: #0f172a; letter-spacing: -0.5px; }
.brand-badge-expobar { background: #111; color: #d4af37; font-family: "Times New Roman", serif; font-size: 13.5px; font-weight: 800; letter-spacing: 2px; padding: 4px 14px; border-radius: 4px; border: 1px solid #d4af37; }
.brand-flex-casadio { display: inline-flex; align-items: center; gap: 6px; }
.brand-ico-casadio { color: #dc2626; font-size: 18px; }
.font-casadio { font-weight: 900; font-size: 18px; letter-spacing: -0.5px; color: #0f172a; }
.font-gaggia { font-family: "Trebuchet MS", sans-serif; font-size: 20px; font-weight: 900; color: #000; letter-spacing: 1px; border-bottom: 2.5px solid #000; line-height: 1.1; }
.brand-badge-delonghi { border: 2px solid #002b66; color: #002b66; border-radius: 20px; padding: 3px 12px; font-weight: 900; font-size: 15px; font-family: sans-serif; }
.font-gemilai { font-family: Arial, sans-serif; font-weight: 900; font-style: italic; font-size: 21px; color: #1e3a8a; letter-spacing: -0.5px; }
.gemilai-dot { display: inline-block; width: 5px; height: 5px; background: #ea580c; border-radius: 50%; margin-left: 1px; }
.brand-simonelli-wrap { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.sim-sub { font-size: 9.5px; color: #64748b; text-transform: lowercase; letter-spacing: 1px; margin-bottom: 1px; }
.sim-main { font-size: 14.5px; font-weight: 900; color: #dc2626; letter-spacing: 0.5px; }
.font-lamvita { font-family: sans-serif; font-size: 18px; font-weight: 900; color: #5c3a21; letter-spacing: 2px; }
.brand-wega-wrap { display: inline-flex; align-items: center; gap: 5px; }
.wega-cup { color: #dc2626; font-size: 18px; }
.font-wega { font-family: "Impact", sans-serif; font-size: 20px; color: #0f172a; letter-spacing: 0.5px; }
.brand-badge-rancilio { background: #047857; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 1px; padding: 4px 10px; border-radius: 5px; display: inline-flex; align-items: center; gap: 5px; }

/* ========================================================
   8. KHỐI GIÁ TRỊ CỐT LÕI XHMP (BRAND VALUES SECTION)
   Khớp chuẩn 100% thẻ HTML của index.php
   ======================================================== */
.brand-values-section {
  padding: 40px 0 35px !important;
  margin-bottom: 25px !important;
}

.brand-values-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-bottom: 28px !important;
  width: 100% !important;
}

.bv-pill-tag {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 7px 24px !important;
  border-radius: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25) !important;
}
.bv-pill-tag i { color: #fef08a !important; }

.brand-values-header h2 {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  text-transform: uppercase !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.35 !important;
}

.brand-values-header p {
  font-size: 14px !important;
  color: #64748b !important;
  margin: 0 !important;
  max-width: 600px !important;
}

.brand-values-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.brand-values-grid > .bv-card {
  flex: 0 0 calc(50% - 8px) !important;
  width: calc(50% - 8px) !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 18px 22px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

.brand-values-grid > .bv-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

.bv-icon-box {
  width: 50px !important;
  height: 50px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s ease !important;
}

.bv-card:hover .bv-icon-box {
  transform: scale(1.1) rotate(5deg) !important;
}

.bv-card-body {
  flex: 1 !important;
}

.bv-card-body h3 {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.35 !important;
}

.bv-card-body p {
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* 6 Theme Màu Sắc Độc Bản */
.bv-theme-emerald:hover { border-color: #10b981 !important; }
.bv-theme-emerald .bv-icon-box { background: #d1fae5 !important; color: #059669 !important; }

.bv-theme-amber:hover { border-color: #f59e0b !important; }
.bv-theme-amber .bv-icon-box { background: #fef3c7 !important; color: #d97706 !important; }

.bv-theme-sapphire:hover { border-color: #0284c7 !important; }
.bv-theme-sapphire .bv-icon-box { background: #e0f2fe !important; color: #0284c7 !important; }

.bv-theme-ruby:hover { border-color: #e11d48 !important; }
.bv-theme-ruby .bv-icon-box { background: #ffe4e6 !important; color: #e11d48 !important; }

.bv-theme-violet:hover { border-color: #8b5cf6 !important; }
.bv-theme-violet .bv-icon-box { background: #ede9fe !important; color: #7c3aed !important; }

.bv-theme-coffee:hover { border-color: #b45309 !important; }
.bv-theme-coffee .bv-icon-box { background: #ffedd5 !important; color: #9a3412 !important; }

/* ========================================================
   9. TIN TỨC & CHÂN TRANG FOOTER
   ======================================================== */
.news-knowledge-sec { background-color: #f1f5f9; padding: 45px 0 55px; margin-top: 40px; }
.news-sec-heading { font-size: 24px; font-weight: 900; color: #0f172a; text-transform: uppercase; margin-bottom: 25px; }
.news-cards-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.news-card-item { flex: 0 0 calc(33.333% - 14px); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); display: flex; flex-direction: column; }
.news-img-box { height: 220px; width: 100%; overflow: hidden; background: #e2e8f0; }
.news-img-box img { width: 100%; height: 100%; object-fit: cover; }
.news-content-box { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-item-title { font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1.4; margin-bottom: 10px; min-height: 44px; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item-date { font-size: 11.5px; color: #94a3b8; margin-bottom: 18px; }
.btn-view-detail { background-color: #0f172a; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 8px 18px; border-radius: 6px; text-decoration: none; align-self: flex-start; margin-top: auto; }

.main-footer-white { background: #ffffff; border-top: 1px solid #e2e8f0; padding: 40px 0 20px; font-size: 13px; color: #475569; }
.footer-4col-grid { display: flex; flex-wrap: wrap; gap: 25px; padding-bottom: 30px; border-bottom: 1px solid #f1f5f9; }
.footer-col-item { flex: 1; min-width: 220px; }
.f-head-title { font-size: 13.5px; font-weight: 800; color: #0f172a; text-transform: uppercase; margin-bottom: 14px; }
.f-links-list { list-style: none; }
.f-links-list li { margin-bottom: 8px; }
.f-links-list li a { color: #475569; text-decoration: none; }

.footer-showroom-details { padding: 25px 0; display: flex; flex-wrap: wrap; gap: 30px; font-size: 12.5px; line-height: 1.6; color: #64748b; border-bottom: 1px solid #f1f5f9; }
.f-company-info { flex: 1.1; min-width: 280px; }
.f-showroom-list { flex: 1.4; min-width: 320px; }

/* Dải quảng cáo sườn desktop */
.full-flank { position: fixed; top: 160px; width: 250px; background: #ffffff; border-radius: 20px; box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12); border: 1px solid #e2e8f0; z-index: 99; display: flex; flex-direction: column; overflow: hidden; }
.flank-left { left: calc((100vw - 1220px) / 2 - 260px); border-top: 3px solid #15803d; }
.flank-right { right: calc((100vw - 1220px) / 2 - 260px); border-top: 3px solid #ea580c; }
.flank-head { padding: 10px 8px; text-align: center; color: #ffffff; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; gap: 5px; text-transform: uppercase; }
.head-green { background: linear-gradient(135deg, #15803d, #166534); }
.head-orange { background: linear-gradient(135deg, #ea580c, #c2410c); }
.flank-tile { padding: 10px 8px; border-bottom: 1px dashed #e2e8f0; display: block; text-decoration: none; text-align: center; position: relative; background: #ffffff; transition: background 0.2s ease; }
.flank-tile:hover { background: #f8fafc; }
.tile-title { font-size: 11.5px; font-weight: 800; color: #0f172a; margin-bottom: 2px; text-transform: uppercase; line-height: 1.3; }
.tile-price { font-size: 14px; font-weight: 900; color: #e11d48; }
.flank-foot { padding: 8px 6px; background: #f8fafc; }
.flank-call-btn { display: block; background: #15803d; color: #ffffff; font-size: 11px; font-weight: 800; text-align: center; text-decoration: none; padding: 6px 0; border-radius: 5px; }
.flank-zalo-btn { display: block; background: #0284c7; color: #ffffff; font-size: 11px; font-weight: 800; text-align: center; text-decoration: none; padding: 6px 0; border-radius: 5px; }

@media (max-width: 1540px) {
  .full-flank { display: none !important; }
}

/* Category Icons & Modal Tìm Kiếm */
.cat-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; margin-right: 10px; font-size: 13px; flex-shrink: 0; }
.ico-sale { background: #fee2e2; color: #ef4444; }
.ico-maypha { background: #dcfce7; color: #15803d; }
.ico-mayxay { background: #e0f2fe; color: #0284c7; }
.ico-sinhto { background: #ccfbf1; color: #0d9488; }
.ico-xeday { background: #fef3c7; color: #d97706; }
.ico-lamda { background: #e0e7ff; color: #4f46e5; }
.ico-linhkien { background: #f1f5f9; color: #475569; }
.ico-suachua { background: #ffedd5; color: #c2410c; }

.search-popup-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(4px); z-index: 999999; align-items: flex-start; justify-content: center; padding-top: 60px; }
.search-popup-overlay.show { display: flex; }
.search-popup-window { background: #ffffff; width: 90%; max-width: 680px; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25); }
.search-popup-input-row { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e2e8f0; gap: 12px; background: #f8fafc; }
.search-popup-input-row .search-ico { color: #15803d; font-size: 18px; }
.search-popup-input-row input { width: 100%; border: none; background: transparent; outline: none; font-size: 15px; color: #0f172a; }
.btn-popup-search { background: #15803d; color: #fff; border: none; border-radius: 6px; padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-popup-close { background: none; border: none; font-size: 26px; color: #94a3b8; cursor: pointer; }
.search-popup-content-scroll { max-height: 480px; overflow-y: auto; padding: 22px 20px; }
.suggest-label { font-size: 12.5px; font-weight: 800; color: #475569; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.trending-tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.trending-tags-cloud .tag-link { background: #f1f5f9; color: #1e293b; font-size: 12.5px; padding: 6px 12px; border-radius: 20px; text-decoration: none; border: 1px solid #e2e8f0; }
.suggest-products-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.suggest-prod-item { flex: 0 0 calc(50% - 6px); display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; }
.suggest-prod-img { width: 55px; height: 55px; background: #fff; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.suggest-prod-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.suggest-prod-title { font-size: 12.5px; font-weight: 700; color: #0f172a; }
.suggest-prod-price { font-size: 13px; font-weight: 800; color: #e11d48; }

.floating-stack { position: fixed; bottom: 25px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.f-circle { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.f-zalo { background: #0068ff; }
.f-hotline { background: #e11d48; animation: pulse-ring 2s infinite; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* ========================================================
   10. TỐI ƯU TOÀN DIỆN CHO MOBILE (DƯỚI 768PX)
   Đồng bộ chuẩn 3 cột: Dịch vụ, Danh mục, Sản phẩm, Brand
   ======================================================== */
@media (max-width: 992px) {
  .hero-grid { flex-direction: column; }
  .mega-menu { display: none; }
  .top-menu-list { justify-content: flex-start; }
}

@media (max-width: 768px) {
  /* 1. Header siêu gọn */
  .top-promo-banner { display: none !important; }
  .main-header { padding: 4px 0 !important; }
  .header-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 0 !important;
    gap: 6px !important;
  }
  .logo-box { font-size: 15px !important; }
  .logo-box img { max-height: 28px !important; }
  .header-right { gap: 8px !important; }
  .cta-call .call-text { display: none !important; }
  .call-circle { width: 30px !important; height: 30px !important; font-size: 13px !important; }
  .search-box-header { width: 100% !important; order: 3 !important; margin-top: 2px !important; }
  .search-fake-input { padding: 5px 12px !important; font-size: 12px !important; height: 34px !important; }

  /* 2. Menu ngang thanh mảnh */
  .top-menu-bar { padding: 0 !important; }
  .top-menu-list { padding: 0 4px !important; }
  .top-menu-list li a { padding: 6px 9px !important; font-size: 12px !important; }

  /* 3. 3 THẺ CAM KẾT NẰM NGANG 3 CỘT */
  .sub-hero-cards {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 8px !important;
  }
  .sub-card {
    flex: 1 1 33.333% !important;
    width: calc(33.333% - 4px) !important;
    padding: 8px 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }
  .sub-card i {
    font-size: 16px !important;
    margin-bottom: 2px !important;
  }
  .sub-card div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .sub-card strong {
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  .sub-card span {
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    color: #64748b !important;
    margin-top: 2px !important;
  }

  /* 4. KHỐI DANH MỤC SẢN PHẨM NỔI BẬT: CHIA LƯỚI 3 CỘT */
  .category-showcase-sec {
    margin: 15px 0 10px !important;
  }
  .sec-title-pill {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    text-align: left !important;
  }
  .cat-cards-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .cat-modern-card {
    flex: 0 0 calc(33.333% - 4px) !important;
    max-width: calc(33.333% - 4px) !important;
    width: calc(33.333% - 4px) !important;
    padding: 8px 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 5px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }
  .cat-card-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
  }
  .cat-card-info {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }
  .cat-card-info h3 {
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
    margin: 0 !important;
  }
  .cat-card-arrow {
    display: none !important;
  }

  /* 5. LƯỚI SẢN PHẨM 3 CỘT (LƯỚI 3) */
  .grid-5-col { 
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .grid-5-col > .p-card { 
    flex: 0 0 calc(33.333% - 4px) !important;
    max-width: calc(33.333% - 4px) !important;
    padding: 6px 4px !important;
    border-radius: 6px !important;
  }
  .p-thumb { height: 100px !important; margin-bottom: 4px !important; }
  .p-title { 
    font-size: 11px !important; 
    font-weight: 700 !important;
    height: 30px !important; 
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
  }
  .p-stars { font-size: 8px !important; margin-bottom: 2px !important; }
  .p-stars span { display: none; }
  .p-call-line { font-size: 9px !important; margin-bottom: 1px !important; }
  .p-sale-sub { font-size: 9px !important; }
  .p-curr-price { font-size: 12.5px !important; font-weight: 900 !important; }
  .p-old-price { font-size: 9.5px !important; }
  .btn-p-offer { font-size: 10px !important; padding: 4px 2px !important; }

  /* 6. THƯƠNG HIỆU YÊU THÍCH TRÊN MOBILE: CHUẨN 3 CỘT */
  .brand-grid {
    gap: 6px !important;
    margin-top: 10px !important;
  }
  .brand-grid > .brand-card {
    flex: 0 0 calc(33.333% - 4px) !important;
    width: calc(33.333% - 4px) !important;
    height: 48px !important;
    padding: 4px !important;
    border-radius: 8px !important;
  }
  .font-breville { font-size: 15px; }
  .brand-badge-expobar { font-size: 9.5px; padding: 2px 6px; letter-spacing: 1px; }
  .font-casadio { font-size: 13px; }
  .brand-ico-casadio { font-size: 13px; }
  .font-gaggia { font-size: 14px; }
  .brand-badge-delonghi { font-size: 11px; padding: 2px 6px; }
  .font-gemilai { font-size: 15px; }
  .sim-sub { font-size: 7.5px; }
  .sim-main { font-size: 11px; }
  .font-lamvita { font-size: 13px; letter-spacing: 1px; }
  .font-wega { font-size: 14px; }
  .wega-cup { font-size: 13px; }
  .brand-badge-rancilio { font-size: 9.5px; padding: 2px 6px; }

  /* 7. KHỐI GIÁ TRỊ THƯƠNG HIỆU TRÊN MOBILE */
  .brand-values-section {
    padding: 22px 0 15px !important;
  }
  .brand-values-header {
    margin-bottom: 16px !important;
  }
  .bv-pill-tag {
    font-size: 10.5px !important;
    padding: 5px 16px !important;
    margin-bottom: 8px !important;
  }
  .brand-values-header h2 {
    font-size: 16px !important;
    margin-bottom: 4px !important;
  }
  .brand-values-header p {
    font-size: 11.5px !important;
  }
  .brand-values-grid {
    gap: 10px !important;
  }
  .brand-values-grid > .bv-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    gap: 12px !important;
  }
  .bv-icon-box {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
  }
  .bv-card-body h3 {
    font-size: 13px !important;
    margin-bottom: 2px !important;
  }
  .bv-card-body p {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }

  /* 8. FLASHSALE, TIN TỨC & FOOTER */
  .flashsale-wrapper { padding: 12px 10px !important; margin-top: 15px !important; }
  .flash-tag { font-size: 12px !important; padding: 3px 8px !important; }
  .news-cards-grid { flex-direction: column !important; }
  .news-card-item { flex: 0 0 100% !important; }
  .footer-4col-grid { flex-direction: column !important; gap: 15px !important; }

  /* 9. TOAST THÔNG BÁO */
  .sale-toast-container {
    bottom: 70px !important;
    left: 8px !important;
    right: 8px !important;
    max-width: calc(100% - 16px) !important;
    padding: 8px 10px !important;
  }
}
/* ========================================================
   DẢI QUẢNG CÁO SƯỜN DESKTOP (TÁCH 2 TẦNG ĐỘC LẬP)
   ======================================================== */
.full-flank { 
  position: fixed; 
  width: 250px; 
  background: #ffffff; 
  border-radius: 20px; 
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12); 
  border: 1px solid #e2e8f0; 
  z-index: 99; 
  display: flex; 
  flex-direction: column; 
  overflow: hidden; 
}

/* Căn lề trái / phải chuẩn theo khung website 1220px */
.flank-left { left: calc((100vw - 1220px) / 2 - 260px); border-top: 3px solid #15803d; }
.flank-right { right: calc((100vw - 1220px) / 2 - 260px); border-top: 3px solid #ea580c; }

/* TẦNG 1: KHỐI CHÍNH TRÊN */
.flank-top-left,
.flank-top-right {
  top: 160px;
}

/* TẦNG 2: KHỐI PHỤ DƯỚI (Nằm cách khối trên 15px) */
.flank-sub-left,
.flank-sub-right {
  top: 500px; /* 160px + ~325px (chiều cao khối trên) + 15px khoảng cách */
  z-index: 98;
}

/* Style cho các thành phần con */
.flank-head { padding: 10px 8px; text-align: center; color: #ffffff; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; gap: 5px; text-transform: uppercase; }
.head-green { background: linear-gradient(135deg, #15803d, #166534); }
.head-orange { background: linear-gradient(135deg, #ea580c, #c2410c); }
.flank-tile { padding: 10px 8px; border-bottom: 1px dashed #e2e8f0; display: block; text-decoration: none; text-align: center; position: relative; background: #ffffff; transition: background 0.2s ease; }
.flank-tile:hover { background: #f8fafc; }
.tile-title { font-size: 11.5px; font-weight: 800; color: #0f172a; margin-bottom: 2px; text-transform: uppercase; line-height: 1.3; }
.tile-price { font-size: 14px; font-weight: 900; color: #e11d48; }
.tile-desc { font-size: 11px; color: #64748b; line-height: 1.3; }
.tile-highlight-orange { font-size: 10.5px; font-weight: 800; color: #ea580c; margin-top: 2px; }

.flank-foot { padding: 8px 6px; background: #f8fafc; }
.flank-call-btn { display: block; background: #15803d; color: #ffffff; font-size: 11px; font-weight: 800; text-align: center; text-decoration: none; padding: 6px 0; border-radius: 5px; }
.flank-zalo-btn { display: block; background: #0284c7; color: #ffffff; font-size: 11px; font-weight: 800; text-align: center; text-decoration: none; padding: 6px 0; border-radius: 5px; }

/* Ẩn khối phụ dưới nếu màn hình có chiều dọc quá ngắn để tránh tràn xuống thanh Taskbar */
@media (max-height: 820px) {
  .flank-sub-left,
  .flank-sub-right {
    display: none !important;
  }
}

/* Ẩn toàn bộ khi màn hình hẹp hơn 1540px */
@media (max-width: 1540px) {
  .full-flank { display: none !important; }
}