/* ==========================================================================
   XƯỞNG QUÀ VIỆT - MODERN LUXURY REDESIGN (BASED ON REDESIGN.MD)
   Tech Stack: Vanilla CSS + Bootstrap 4 + Laravel Blade
   High Performance, Zero CLS, GPU-accelerated micro-interactions
   ========================================================================== */

/* 1. FONT IMPORTS & DEFINITIONS */
/* Plus Jakarta Sans is loaded via <link> in master.blade.php; Encode Sans Expanded is self-hosted below. */

@font-face {
  font-family: 'Encode Sans Expanded';
  src: url('../font/Encode_Sans_Expanded/EncodeSansExpanded-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Encode Sans Expanded';
  src: url('../font/Encode_Sans_Expanded/EncodeSansExpanded-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Encode Sans Expanded';
  src: url('../font/Encode_Sans_Expanded/EncodeSansExpanded-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Encode Sans Expanded';
  src: url('../font/Encode_Sans_Expanded/EncodeSansExpanded-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. DESIGN TOKENS (CSS VARIABLES) */
:root {
  /* Brand Palette - Royal Blue & Vivid Orange-Red */
  --primary: #121cc1;
  --primary-dark: #0c1490;
  --primary-light: #3a45d6;
  --primary-subtle: rgba(18, 28, 193, 0.07);
  --primary-glow: rgba(18, 28, 193, 0.2);

  --accent: #ff3c00;
  --accent-hover: #e03500;
  --accent-light: #ffe3d6;
  --accent-glow: rgba(255, 60, 0, 0.25);

  --accent-red: #ff3c00;
  --accent-red-hover: #e03500;
  --accent-red-light: #ffe3d6;

  /* Neutrals & Surfaces */
  --bg-body: #faf9f6;
  --bg-card: #ffffff;
  --bg-muted: #f4f1ea;
  --bg-dark: #0a0e3d;

  --text-main: #182522;
  --text-body: #45544f;
  --text-muted: #63726d; /* 5.05:1 trên nền trắng (WCAG AA) */
  --text-light: #9ba8a4;

  --border-color: #eae7de;
  --border-subtle: rgba(18, 28, 193, 0.08);

  /* Shadows - Ambient Tinted Shadows */
  --shadow-xs: 0 1px 3px rgba(18, 28, 193, 0.04);
  --shadow-sm: 0 4px 12px rgba(18, 28, 193, 0.06);
  --shadow-md: 0 10px 25px -4px rgba(18, 28, 193, 0.08), 0 4px 10px -2px rgba(18, 28, 193, 0.03);
  --shadow-lg: 0 18px 36px -6px rgba(18, 28, 193, 0.12), 0 8px 16px -4px rgba(18, 28, 193, 0.05);
  --shadow-glow: 0 8px 20px -2px var(--accent-glow), 0 2px 8px -1px rgba(255, 60, 0, 0.18);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Backward Compatibility Variables */
  --main-color: var(--primary);
  --mau-cam: var(--accent);
  --mau-blue: var(--primary-light);
}

/* 3. BASE & TYPOGRAPHY */
html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Encode Sans Expanded', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-body);
  line-height: 1.68;
}

a {
  color: var(--primary);
  transition: var(--transition-fast);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* 4. HEADER & NAVBAR */
.backgroundnen {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 14px rgba(18, 28, 193, 0.05);
  transition: var(--transition-base);
}

.xuongquaviet {
  width: 100%;
}

.logoweb .hinhlogo {
  max-width: 210px;
  height: auto;
  transition: var(--transition-base);
}

.logoweb .hinhlogo:hover {
  transform: scale(1.02);
}

.logoweb .hinhlogo img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Desktop Horizontal Navigation */
.menungangpc {
  width: 100%;
}

.menungangpc > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.menungangpc > ul > li {
  position: relative;
}

.menungangpc > ul > li > a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-main);
  padding: 10px 14px;
  display: block;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.menungangpc > ul > li > a:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}

/* Floating Card Dropdown Menus */
.menungangpc > ul > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  margin-top: 6px;
  list-style: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-base);
  z-index: 1000;
}

.menungangpc > ul > li:hover > ul {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.menungangpc > ul > li > ul > li {
  position: relative;
  border-bottom: 1px solid #f6f4ee;
}

.menungangpc > ul > li > ul > li:last-child {
  border-bottom: none;
}

.menungangpc > ul > li > ul > li > a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  padding: 9px 14px;
  display: block;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.menungangpc > ul > li > ul > li > a:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  padding-left: 18px;
}

/* Sub-submenus */
.menungangpc > ul > li > ul > li ul {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  visibility: hidden;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-base);
  z-index: 1001;
}

.menungangpc > ul > li > ul > li:hover > ul {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.menungangpc > ul > li > ul > li ul > li > a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 12px;
  display: block;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
}

.menungangpc > ul > li > ul > li ul > li > a:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  padding-left: 16px;
}

/* Hotline Pill in Header */
.hotline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.hotline a {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  text-decoration: none !important;
}

.hotline a:before {
  content: "\f095";
  font-family: FontAwesome;
  font-size: 13px;
  color: var(--accent);
}

.hotline a:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.hotline a:active {
  transform: scale(0.98);
}

.menumobilea, .buttoncall {
  display: none;
}

/* Mobile Drawer Menu (.baoquanh) — fixed and off-screen at every viewport
   width; only the hamburger trigger that opens it is gated to mobile below. */
.baoquanh {
  position: fixed;
  width: 82%;
  max-width: 320px;
  height: 100%;
  top: 0;
  left: -100%;
  background: #ffffff;
  z-index: 1050;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.baoquanh.active {
  left: 0;
}

.baoquanh .navbar-nav li a {
  padding: 12px 14px;
  color: var(--text-main);
  font-weight: 600;
  border-bottom: 1px solid #f2eee4;
  display: block;
  font-size: 14.5px;
}

.locmobile_background {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  display: none;
}

.baoquanh.active ~ .locmobile_background,
.baoquanh.active + .locmobile_background {
  display: block;
}

/* 5. CAROUSEL BANNER (full-bleed: breaks out of .container to viewport width) */#carouselExampleControls {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 28px;
  overflow: hidden;
}

#carouselExampleControls .carousel-inner img {
  width: 100%;
  height: auto;
}

#carouselExampleControls .carousel-control-prev,
#carouselExampleControls .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0.85;
  transition: var(--transition-fast);
  margin: 0 16px;
}

#carouselExampleControls .carousel-control-prev:hover,
#carouselExampleControls .carousel-control-next:hover {
  background: #ffffff;
  opacity: 1;
  box-shadow: var(--shadow-md);
}

#carouselExampleControls .carousel-control-prev-icon,
#carouselExampleControls .carousel-control-next-icon {
  filter: invert(1) grayscale(100);
  width: 18px;
  height: 18px;
}

/* 6. SECTION TITLES */
.titledanhmuc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
  margin: 40px 0 28px;
  text-align: center;
  position: relative;
}

.titledanhmuc b {
  flex: 1;
  max-width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  border-radius: var(--radius-full);
}

.titledanhmuc b:last-child {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.name-ttst {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 23px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin: 0;
  display: inline-block;
}

.titledanhmuc a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.titledanhmuc a:hover {
  color: var(--accent);
}

/* 7. INTRODUCTION & SERVICES */
.motaweb {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 35px;
}

.motaweb .row {
  align-items: center;
}

.motaweb .titledanhmuc {
  margin-top: 4px;
}

.motaweb p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-body);
  margin-bottom: 14px;
}

.motaweb b {
  color: var(--primary);
  font-weight: 600;
}

/* Social Icon Pills */
.iconsocial {
  margin-top: 24px;
  gap: 12px;
}

.iconsocial .list-inline-item a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.iconsocial .list-inline-item a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

/* Video wrapper */
.motaweb .col-md-6:last-child {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Service Cards */
.khaclazer {
  margin-top: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.col-dichvu {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .col-dichvu {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* 5 dịch vụ: cùng một hàng trên màn hình rộng (dưới 992px vẫn 3 thẻ/hàng, hàng sau căn giữa) */
@media (min-width: 992px) {
  .khaclazer .col-dichvu {
    flex: 0 0 calc(20% - 20px);
    max-width: calc(20% - 20px);
  }
}

.col-dichvu:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--primary);
}

.col-dichvu > a {
  width: 128px;
  height: 128px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  border-radius: var(--radius-full);
  padding: 8px;
  transition: var(--transition-base);
}

.col-dichvu:hover > a {
  transform: scale(1.08);
  background: rgba(255, 60, 0, 0.14);
}

.col-dichvu > a img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.col-dichvu > b {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.col-dichvu > p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* 8. COMMITMENT & PARTNERS */
.camketkhachhang {
  margin-bottom: 30px;
}

.camketkhachhang .col-6 {
  margin-bottom: 16px;
}

.camketkhachhang img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  width: 100%;
}

.camketkhachhang img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.doitackhachhang {
  margin-bottom: 35px;
}

.doitackhachhang a img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  width: 100%;
  transition: var(--transition-base);
}

.doitackhachhang a img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* 9. BÁO GIÁ SỈ */
.baogiasi {
  margin-bottom: 35px;
}

.baogiasi .sapchieudoc {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.baogiasi .sapchieudoc a img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  width: 100%;
  transition: var(--transition-base);
}

.baogiasi .sapchieudoc a:hover img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Center Callout Block */
.baogiasi .sapchieudoc:nth-child(2) {
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
}

.baogiasi .sapchieudoc a > span {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6a33 100%);
  color: #ffffff;
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  margin-bottom: 8px;
}

.baogiasi .sapchieudoc a:hover > span {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.baogiasi .sapchieudoc a > i {
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
}

/* 10. PRODUCT GRID & SLICK SLIDER */
.showsanpham {
  list-style: none;
  padding: 0;
  margin: 0 -8px;
  display: flex;
  flex-wrap: wrap;
}

.showsanpham li,
.showsanpham .sp-item {
  padding: 8px;
  box-sizing: border-box;
}

/* Once Slick initializes .slidercenter, it needs to lay its slides out with
   float (per slick.css), not flex — .showsanpham's flex/flex-wrap above is
   for the plain (non-carousel) product grids and breaks Slick's own layout
   if left applied here, causing gaps and misaligned slides on narrow screens. */
.showsanpham.slidercenter {
  display: block;
}

/* Home Slider Center (4 items per row on desktop) */
.slidercenter .slick-slide {
  padding: 8px;
}

.cover-index-2 {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  position: relative;
}

.cover-index-2:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 28, 193, 0.22);
}

.img-prod {
  position: relative;
  width: 100% !important;
  height: 260px !important;
  background: #fbfaf7;
  overflow: hidden;
}

.img-prod img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cover-index-2:hover .img-prod img {
  transform: scale(1.09);
}

.cover-ttpro {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  text-align: center;
}

.title-pro {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 12px;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cover-index-2:hover .title-pro {
  color: var(--primary);
}

.price_pro {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 10px;
}

/* Product Card Action Buttons */
.laythongtin, .muahang {
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 18px;
  border: none;
  transition: var(--transition-fast);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 4px auto 0;
  display: inline-block;
  width: auto;
  min-width: 120px;
}

.btn-danger.laythongtin,
.laythongtin {
  background: linear-gradient(135deg, var(--accent-red) 0%, #ff6a33 100%);
  color: #ffffff !important;
}

.btn-danger.laythongtin:hover,
.laythongtin:hover {
  background: linear-gradient(135deg, #e03500 0%, var(--accent-red) 100%);
  box-shadow: 0 4px 12px rgba(255, 60, 0, 0.3);
  transform: translateY(-2px);
}

.btn-success.muahang,
.muahang {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
}

.btn-success.muahang:hover,
.muahang:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 4px 12px rgba(18, 28, 193, 0.25);
  transform: translateY(-2px);
}

.laythongtin:active,
.muahang:active {
  transform: scale(0.97);
}

/* Slick slider custom navigation arrows */
.slick-prev:before, .slick-next:before {
  content: none;
}

.slick-prev, .slick-next {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: var(--transition-base);
  color: var(--primary);
  top: 45%;
}

.slick-prev {
  left: -22px;
}

.slick-next {
  right: -22px;
}

.slick-prev:hover, .slick-next:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.06);
}

.slick-prev:active, .slick-next:active {
  transform: translateY(-50%) scale(0.95);
}

.slick-prev i, .slick-next i {
  font-size: 16px;
  line-height: 1;
}

/* 11. EDITORIAL NEWS SECTION */
.sectionnews {
  padding: 56px 0 48px;
  background: transparent;
}

.sectionnews .row {
  align-items: stretch;
}

.sectionnews .col-lg-7 {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.sectionnews .col-lg-7:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.sectionnews .col-lg-7 img {
  border-radius: var(--radius-md);
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  margin-bottom: 22px !important;
}

.sectionnews .col-lg-7 a.h2 {
  font-size: 20px;
  font-weight: 700;
  display: block;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  line-height: 1.5;
  transition: var(--transition-fast);
}

.sectionnews .col-lg-7 p {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  line-height: 1.75;
}

.sectionnews .col-lg-7 .text-small {
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 992px) {
  .sectionnews .col-lg-5 {
    padding-left: 24px;
  }

  .sectionnews .col-lg-5 .col-9 {
    padding-left: 18px;
  }
}

.sectionnews .col-lg-5 .list-unstyled > li {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
}

.sectionnews .col-lg-5 .list-unstyled > li:last-child {
  margin-bottom: 0 !important;
}

.sectionnews .col-lg-5 .list-unstyled > li:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.sectionnews .col-lg-5 img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: auto;
  display: block;
}

.sectionnews .col-lg-5 h3,
.sectionnews .col-lg-5 h6 {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px !important;
  transition: var(--transition-fast);
}

.sectionnews .col-lg-5 .text-small,
.sectionnews .col-lg-5 .text-muted {
  font-size: 11.5px;
}

/* 12. FOOTER */
#footer {
  background: var(--bg-dark) !important;
  color: #d6e2de;
  padding: 55px 0 25px;
  border-top: 3px solid var(--accent) !important;
  margin-top: 50px;
  position: relative;
}

#footer p, #footer li, #footer span {
  color: #bcd0ca;
  font-size: 14px;
  line-height: 1.7;
}

#footer strong {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0.03em;
}

#footer a,
#footer .col-foot-1 a,
#footer .col-foot-2 a,
#footer .col-foot-3 a {
  color: #d6e2de !important;
  text-decoration: none;
  transition: var(--transition-fast);
}

#footer a:hover,
#footer .col-foot-1 a:hover,
#footer .col-foot-2 a:hover,
#footer .col-foot-3 a:hover {
  color: var(--accent) !important;
  padding-left: 3px;
}

.col-foot-1, .col-foot-2, .col-foot-3 {
  margin-bottom: 24px;
}

.col-foot-2 ul, .col-foot-3 ul {
  list-style: none;
  padding-left: 0;
}

.col-foot-2 li, .col-foot-3 li {
  margin-bottom: 10px;
  position: relative;
}

#footer .iconsocial {
  margin-top: 18px;
}

#footer .iconsocial .list-inline-item a {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* !important + padding reset: rule chung "#footer a:hover" (color accent !important, padding-left 3px)
   làm icon cam trùng nền cam và lệch tâm khi hover */
#footer .iconsocial .list-inline-item a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff !important;
  padding-left: 0;
  box-shadow: var(--shadow-glow);
}

/* 13. INNER PAGES: BREADCRUMBS & SIDEBAR */
.breadcrumb {
  background: transparent;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
}

.breadcrumb-item a {
  color: var(--primary);
  font-weight: 500;
  font-size: 13.5px;
}

.breadcrumb-item.active {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* Category Sidebar */
.mobilemenuside {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
}

.menudoctitle {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 18px;
  display: block;
}

.menungangnhieucap > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menungangnhieucap > ul > li {
  border-bottom: 1px solid #f4f1ea;
  position: relative;
}

.menungangnhieucap > ul > li:last-child {
  border-bottom: none;
}

.menungangnhieucap > ul > li > a {
  padding: 11px 18px;
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.menungangnhieucap > ul > li > a:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  padding-left: 22px;
}

/* 14. CATEGORY & SEARCH PAGES (.trangloai, .timkiem) */
.trangloai .showsanpham {
  margin: 0 -8px;
}

.trangloai .showsanpham li {
  width: 33.333%;
  padding: 8px;
}

.motasanpham .seotheloaicuoi {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-top: 30px;
}

/* Pagination */
.pagination {
  margin-top: 25px;
  gap: 6px;
}

.page-item .page-link {
  color: var(--primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.page-item.active .page-link {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.page-item .page-link:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

/* 15. PRODUCT DETAIL PAGE (.trangchitiet) */
.chitietsanphampc {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.chitietsanphampc,
.no-gutters > .col-md-7,
.no-gutters > .col-12 {
  margin-bottom: 30px;
}

.chitietsanphampc h1,
.no-gutters .card h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.35;
}

/* Nội dung sản phẩm từ editor: giữ heading đúng như cấu hình trong admin */
.chitietsanphampc h1,
.chitietsanphampc h2,
.chitietsanphampc h3,
.chitietsanphampc h4,
.chitietsanphampc h5,
.chitietsanphampc h6 {
  color: inherit;
  font-weight: bold;
  letter-spacing: normal;
  line-height: 1.2;
  margin: 0.67em 0;
}
.chitietsanphampc h1 { font-size: 2em; }
.chitietsanphampc h2 { font-size: 1.5em; margin: 0.83em 0; }
.chitietsanphampc h3 { font-size: 1.17em; margin: 1em 0; }
.chitietsanphampc h4 { font-size: 1em; margin: 1.33em 0; }
.chitietsanphampc h5 { font-size: 0.83em; margin: 1.67em 0; }
.chitietsanphampc h6 { font-size: 0.67em; margin: 2.33em 0; }

.no-gutters .card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.chitietsanphampc .buy,
.buy,
.btn-warning.buy,
.muahang2 {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6a33 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 11px 28px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-block;
  text-decoration: none;
}

.chitietsanphampc .buy:hover,
.buy:hover,
.btn-warning.buy:hover,
.muahang2:hover {
  box-shadow: var(--shadow-glow) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}

.wishlist {
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  margin-left: 8px;
  color: var(--accent-red);
  background: #ffffff;
  transition: var(--transition-fast);
}

.wishlist:hover {
  background: var(--bg-muted);
  border-color: var(--accent-red);
}

.product-description {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  line-height: 1.7;
}

.product-description p {
  line-height: 1.75;
  color: var(--text-body);
}

/* 16. SHOPPING CART (.shopping-cart) */
.shopping-cart {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
  margin-bottom: 30px;
}

.column-labels {
  display: flex;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
}

.column-labels label {
  margin: 0;
}

.column-labels .product-image { width: 16%; }
.column-labels .product-details { width: 36%; }
.column-labels .product-price { width: 14%; text-align: center; }
.column-labels .product-quantity { width: 14%; text-align: center; }
.column-labels .product-removal { width: 8%; text-align: center; }
.column-labels .product-line-price { width: 12%; text-align: right; }

.shopping-cart .product {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f4f1ea;
}

.shopping-cart .product .product-image {
  width: 16%;
  text-align: center;
}

.shopping-cart .product .product-image img {
  max-width: 80px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 4px;
}

.shopping-cart .product .product-details {
  width: 36%;
  padding-right: 15px;
}

.shopping-cart .product .product-title {
  font-weight: 600;
  color: var(--text-main);
  font-size: 14.5px;
}

.shopping-cart .product .product-price {
  width: 14%;
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
}

.shopping-cart .product .product-quantity {
  width: 14%;
  text-align: center;
}

.shopping-cart .product .product-quantity input {
  width: 54px;
  text-align: center;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.shopping-cart .product .product-removal {
  width: 8%;
  text-align: center;
}

.shopping-cart .product .remove-product {
  background: var(--accent-red-light);
  color: var(--accent-red);
  border: 1px solid rgba(255, 60, 0, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.shopping-cart .product .remove-product:hover {
  background: var(--accent-red);
  color: #ffffff;
}

.shopping-cart .product .product-line-price {
  width: 12%;
  text-align: right;
  font-weight: 700;
  color: var(--accent-red);
  font-size: 16px;
}

.totals {
  float: right;
  margin: 24px 0;
}

.totals .totals-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.totals .totals-item label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.totals .totals-item .totals-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-red);
}

.checkout1 {
  clear: both;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
}

.checkout1 legend {
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.checkout1 .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  background: #ffffff;
}

.checkout1 .btn-success {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 12px 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.checkout1 .btn-success:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* 17. FLOATING CONTACT & MODAL POPUP */
.callmenuleft {
  position: fixed;
  display: flex;
  flex-direction: column;
  left: 18px;
  bottom: 28px;
  z-index: 1030;
  gap: 12px;
  align-items: center;
}

.callmenuleft a {
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  display: block;
}

.callmenuleft a:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

#goidienthoai {
  position: relative;
  border-radius: var(--radius-full);
  background: var(--accent-red);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#goidienthoai .abgoidien {
  position: absolute;
  left: 56px;
  background: #d63200; /* đậm hơn --accent-red để chữ trắng đạt 4.87:1 */
  color: #ffffff;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

/* Modal styling */
.modal-content {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* 18. MOBILE RESPONSIVE (@media max-width: 600px) */
@media only screen and (max-width: 600px) {
  .menumobilea {
    display: block !important;
  }

  .menungangpc, .hotline {
    display: none !important;
  }

  .buttoncall {
    display: flex !important;
    justify-content: flex-end;
  }

  .logoweb {
    text-align: center;
  }

  .logoweb .hinhlogo {
    max-width: 170px;
    margin: 0 auto;
  }

  .xxxxx {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
  }

  /* Products on Mobile (2 columns) */
  .showsanpham li,
  .showsanpham .sp-item,
  .trangloai .showsanpham li {
    padding: 6px;
  }

  .img-prod {
    height: 180px !important;
  }

  .title-pro {
    font-size: 12.5px;
    height: 38px;
  }

  .laythongtin, .muahang {
    font-size: 11px;
    padding: 6px 12px;
    min-width: 90px;
  }

  /* Slick arrows: the -22px desktop offset pushes them past the viewport
     edge on narrow screens (clipped by body's overflow-x:hidden), so pull
     them back in and size down slightly to fit within the container gutter. */
  .slick-prev, .slick-next {
    width: 36px;
    height: 36px;
  }

  .slick-prev {
    left: -6px;
  }

  .slick-next {
    right: -6px;
  }

  .slick-prev i, .slick-next i {
    font-size: 14px;
  }

  /* Services & Banner adjustments */
  .col-dichvu {
    margin-bottom: 16px;
  }

  .baogiasi .sapchieudoc {
    flex-direction: column;
  }

  /* Cart on mobile */
  .column-labels {
    display: none;
  }

  .shopping-cart .product {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .shopping-cart .product .product-image,
  .shopping-cart .product .product-details,
  .shopping-cart .product .product-price,
  .shopping-cart .product .product-quantity,
  .shopping-cart .product .product-removal,
  .shopping-cart .product .product-line-price {
    width: 100%;
    text-align: left;
  }
}

/* ==========================================================================
   19. ACCESSIBILITY: SKIP LINK
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  background: var(--primary);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  z-index: 2000;
  transition: top 0.2s ease;
  text-decoration: none !important;
}

.skip-link:focus {
  top: 12px;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   20. ACTIVE NAVIGATION STATE
   ========================================================================== */
.menungangpc > ul > li.active > a {
  color: var(--primary);
  background: var(--primary-subtle);
}

.baoquanh .navbar-nav li.active > a,
.baoquanh .navbar-nav li.active > span > a {
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 11px;
  background: rgba(255, 60, 0, 0.08);
}

/* ==========================================================================
   21. STATIC CONTENT PAGES (Giới thiệu, chi tiết tin tức)
   ========================================================================== */
.trangchitiettin {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.trangchitiettin h1,
.trangchitiettin h2,
.trangchitiettin h3 {
  margin-top: 22px;
  margin-bottom: 12px;
  text-wrap: balance;
}

.trangchitiettin h1:first-child,
.trangchitiettin h2:first-child,
.trangchitiettin h3:first-child {
  margin-top: 0;
}

.trangchitiettin p {
  margin-bottom: 14px;
  line-height: 1.75;
}

.trangchitiettin img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-md);
  margin: 8px 0;
}

.trangchitiettin a {
  text-decoration: underline;
  text-decoration-color: var(--border-color);
  text-underline-offset: 3px;
}

.trangchitiettin a:hover {
  text-decoration-color: var(--accent);
}

.capnhatdulieu {
  background: var(--bg-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
}

/* ==========================================================================
   22. CONTACT PAGE (.thongtinlienhe / .form-lienhe)
   ========================================================================== */
.thongtinlienhe h3 {
  font-size: 21px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.thongtinlienhe .diachi,
.thongtinlienhe .txtemailz,
.thongtinlienhe .hotlinez,
.thongtinlienhe .giomocua {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-base);
}

.thongtinlienhe .diachi:hover,
.thongtinlienhe .txtemailz:hover,
.thongtinlienhe .hotlinez:hover,
.thongtinlienhe .giomocua:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.thongtinlienhe b {
  display: block;
  color: var(--primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.thongtinlienhe p {
  margin: 0 0 4px;
  color: var(--text-body);
}

.form-lienhe {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-lienhe h4 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-lienhe .form-group label {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-lienhe .form-control {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: var(--transition-fast);
}

.form-lienhe .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
  outline: none;
}

.form-lienhe .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 11px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.form-lienhe .btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.form-lienhe .btn-primary:active {
  transform: scale(0.98);
}

/* ==========================================================================
   23. NEWS LIST PAGE (.trangtintuc .danhsachtintuc)
   ========================================================================== */
.trangtintuc .danhsachtintuc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trangtintuc .danhsachtintuc li {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-base);
}

.trangtintuc .danhsachtintuc li:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(18, 28, 193, 0.2);
}

.trangtintuc .hinhanhbaiviet {
  flex: 0 0 200px;
  width: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.trangtintuc .hinhanhbaiviet img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trangtintuc .danhsachtintuc li:hover .hinhanhbaiviet img {
  transform: scale(1.06);
}

.trangtintuc .mota-baivietmoi {
  flex: 1;
  min-width: 0;
}

.trangtintuc .mota-baivietmoi h5 {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.trangtintuc .mota-baivietmoi h5 a {
  font-weight: 700;
}

/* ==========================================================================
   23.1 ALERTS (form success / validation feedback)
   ========================================================================== */
.alert {
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: var(--shadow-xs);
}

.alert-success {
  background: rgba(18, 28, 193, 0.08);
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

.alert-danger {
  background: var(--accent-red-light);
  color: var(--accent-red);
  border-left: 3px solid var(--accent-red);
}

.alert-danger ul {
  margin: 0;
  padding-left: 18px;
  font-weight: 500;
}


/* ==========================================================================
   24. COMPLETED ORDERS SHOWCASE (.danhsachdonhang)
   ========================================================================== */
.danhsachdonhang {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.danhsachdonhang li {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-base);
}

.danhsachdonhang li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.danhsachdonhang li img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.danhsachdonhang li .mota-baivietmoi {
  padding: 14px;
}

.danhsachdonhang li .mota-baivietmoi h5 {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  border: none;
  padding: 0;
  box-shadow: none;
}

.danhsachdonhang li .mota-baivietmoi h5 a {
  color: var(--text-main);
  font-weight: 600;
}

.danhsachdonhang li:hover .mota-baivietmoi h5 a {
  color: var(--primary);
}

.danhsachdonhang li .mota-baivietmoi p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.phantrangpaginate {
  margin-top: 10px;
}

/* ==========================================================================
   25. FLOATING CONTACT WIDGET EXTRAS (moved out of inline <style> blocks)
   ========================================================================== */
#goidienthoai > img {
  animation: roll 0.7s infinite;
  transform: rotate(30deg);
}

@keyframes roll {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(30deg); }
  100% { transform: rotate(0deg); }
}

.modalpopup img {
  max-width: 100%;
  height: auto !important;
  margin: 0 auto;
}

.gioithieuww p > img {
  padding-top: 10px;
}

.modal-header {
  padding: 6px !important;
}

/* Footer column 2 list icon bullets (moved out of inline <style> in footer.blade.php) */
.col-foot-2 a {
  color: #d6e2de;
}

.col-foot-2 a:hover {
  color: var(--accent);
}

.col-foot-2 ul {
  list-style: none;
}

.col-foot-2 li:before {
  content: "\f02e";
  font-family: FontAwesome;
  display: inline-block;
  color: var(--accent);
  margin-left: calc(var(--icon-space, 16px) * -1);
  margin-right: 10px;
  width: var(--icon-space, 16px);
}

/* ==========================================================================
   26. MOBILE RESPONSIVE ADDITIONS (@media max-width: 600px)
   ========================================================================== */
@media only screen and (max-width: 600px) {
  .trangtintuc .danhsachtintuc li {
    flex-direction: column;
    align-items: stretch;
  }

  .trangtintuc .hinhanhbaiviet {
    width: 100%;
    flex-basis: auto;
  }

  .danhsachdonhang {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .form-lienhe {
    margin-top: 20px;
  }

  /* Footer has no white card wrapper like the other sections, so its text
     sits right at the bare container gutter — give it a bit more inset to
     match how spacious everything else now feels. */
  .col-foot-1,
  .col-foot-2,
  .col-foot-3 {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Card side padding: these all keep their generous desktop padding
     (28-36px) unless scaled down here, which eats into the already-narrow
     content width on phones — tighten to a consistent, comfortable size. */
  .motaweb,
  .sectionnews .col-lg-7,
  .chitietsanphampc,
  .trangchitiettin,
  .no-gutters .card,
  .motasanpham .seotheloaicuoi,
  .checkout1,
  .form-lienhe {
    padding: 20px;
  }

  .shopping-cart {
    padding: 18px;
  }

  .capnhatdulieu {
    padding: 28px 18px;
  }

  .thongtinlienhe .diachi,
  .thongtinlienhe .txtemailz,
  .thongtinlienhe .hotlinez,
  .thongtinlienhe .giomocua {
    padding: 14px 16px;
  }

  .col-dichvu {
    padding: 22px 16px;
  }
}

/* ============================================================
   FAQ - Câu hỏi thường gặp (trên footer, trang chủ)
   ============================================================ */
.faq-section {
  margin-top: 10px;
  margin-bottom: 50px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  transition: var(--transition-base);
}

.faq-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 16px 56px 16px 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--primary);
  border-radius: var(--radius-md);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Dấu +/− vẽ bằng 2 vạch gradient (không dùng ký tự chữ nên luôn nằm chính giữa vòng tròn).
   Mở: vạch dọc co về 0 => thành dấu −, đồng thời đổi nền sang cam. */
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background-color: var(--primary-subtle);
  background-image:
    linear-gradient(var(--primary), var(--primary)),
    linear-gradient(var(--primary), var(--primary));
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: 12px 2px, 2px 12px;
  transition: background-color 0.25s ease, background-size 0.25s ease;
}

.faq-item[open] summary::after {
  background-color: var(--accent);
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(#ffffff, #ffffff);
  background-size: 12px 2px, 2px 0;
}

.faq-item summary:hover {
  color: var(--primary-dark);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

@media (max-width: 575px) {
  .faq-item summary {
    padding: 14px 48px 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 16px 16px;
    font-size: 14px;
  }
}
