/* ============================================================
   KÉT SẮT KVT - OFFICIAL STYLESHEET
   Accurately crafted to match provided design specifications
   ============================================================ */

/* ---------- CSS RESET & VARIABLES ---------- */
:root {
  --primary-orange: #e35205;
  --primary-orange-dark: #cc4400;
  --primary-orange-light: #ff7830;
  --accent-red: #d32f2f;
  --accent-red-dark: #b71c1c;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --link-blue: #0284c7;
  --bg-page: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1220px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --transition: all 0.25s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.5;
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   1. SITE HEADER
   ============================================================ */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Header Top Bar */
.header-top-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* KVT Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
}

.logo-kvt-box {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.logo-kvt-text {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 50px;
  font-weight: 900;
  font-style: italic;
  color: #df3e08;
  letter-spacing: -2px;
  display: block;
  transform: skewX(-7deg);
}

.logo-cut-line {
  position: absolute;
  top: 50%;
  left: -2px;
  right: -2px;
  height: 2px;
  background-color: #ffffff;
  pointer-events: none;
}

/* Search Box */
.search-box-wrapper {
  flex: 1;
  max-width: 440px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1.5px solid #a82386;
  border-radius: 25px;
  padding: 3px 14px 3px 10px;
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(168, 35, 134, 0.15);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: #a82386;
  border-radius: 50%;
  transition: var(--transition);
}

.search-btn:hover {
  color: #9333ea;
}

.icon-search {
  width: 17px;
  height: 17px;
  stroke: #a82386;
}

.search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 6px 10px;
  font-size: 13.5px;
  color: var(--text-main);
  background: transparent;
  font-family: inherit;
}

.search-form input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Header Right: Hotline + Flags */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hotline-link {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--accent-red);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.2px;
  transition: var(--transition);
}

.hotline-link:hover {
  color: var(--accent-red-dark);
  transform: scale(1.02);
}

.icon-phone {
  width: 20px;
  height: 20px;
  fill: var(--accent-red);
}

.flags-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flag-btn {
  padding: 1px;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: #fff;
}

.flag-btn:hover,
.flag-btn.active {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 1px var(--primary-orange);
}

.flag-icon {
  width: 22px;
  height: 15px;
  display: block;
}

/* ============================================================
   2. MAIN NAVIGATION (Orange Bar with angled left edge)
   ============================================================ */
.main-navigation {
  background: #ffffff;
  border-bottom: 1.5px solid #f0f0f0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  position: relative;
  padding-left: 54px;
  padding-right: 12px;
}

.nav-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #ea580c 0%, #e35205 100%);
  clip-path: polygon(42px 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
  pointer-events: none;
}

.nav-item {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 11px 13px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.12);
  color: #ffffff;
}

.nav-divider {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  user-select: none;
  font-weight: 300;
  z-index: 2;
}

/* Dropdown Submenu */
.nav-item.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

/* Hover bridge to keep mouse steady */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.dropdown-list li {
  border-bottom: 1px solid #ebebeb;
}

.dropdown-list li:last-child {
  border-bottom: none;
}

.dropdown-list li a {
  display: block;
  padding: 8.5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  line-height: 1.35;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-list li a:hover {
  background-color: #f8fafc;
  color: #ea580c;
}

/* Cart Icon */
.cart-item {
  margin-left: 2px;
}

.cart-link {
  position: relative;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-cart {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  fill: none;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 3px;
  background-color: #000000;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ============================================================
   3. HERO BANNER SECTION
   ============================================================ */
.hero-banner-section {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 0 16px;
}

.banner-wrapper {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background: #ffffff;
  border: 1px solid #ebebeb;
}

.hero-banner-card {
  display: flex;
  min-height: 400px;
  background: linear-gradient(135deg, #fffcf9 0%, #fff4ec 50%, #fbf6f0 100%);
  position: relative;
  align-items: stretch;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 46px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  border-radius: 3px;
  backdrop-filter: blur(2px);
}

.banner-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

.banner-arrow.prev {
  left: 12px;
}

.banner-arrow.next {
  right: 12px;
}

/* Banner Content Left */
.hero-content-col {
  flex: 1.15;
  padding: 36px 24px 26px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.hero-title-main {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.12;
  color: #ea580c;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  display: flex;
  flex-direction: column;
}

.hero-title-main .highlight-orange {
  color: #ea580c;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fingerprint-icon {
  color: #ea580c;
  display: inline-flex;
  vertical-align: middle;
}

.hero-alert-bar {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 900;
  color: #1f2937;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hero-peace-mind {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 700;
  font-style: italic;
  color: #881337;
  letter-spacing: 0.2px;
}

/* 3 Orange Feature Cards */
.hero-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.feature-card {
  background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
  color: #ffffff;
  padding: 14px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(230, 81, 0, 0.22);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(230, 81, 0, 0.32);
}

.feature-icon {
  font-size: 22px;
  margin-bottom: 10px;
  color: #ffffff;
}

.feature-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

/* Banner Image Right */
.hero-image-col {
  flex: 1.1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 20px 0 0;
  overflow: hidden;
  position: relative;
}

.banner-img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  object-position: bottom center;
}

/* Market Leader Title */
.market-leader-title-wrap {
  max-width: var(--max-width);
  margin: 22px auto 6px;
  text-align: center;
  padding: 0 16px;
}

.market-leader-title {
  font-size: 21px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.2px;
}

/* ============================================================
   4. PRODUCT SECTIONS & CAROUSELS
   ============================================================ */
.products-section {
  max-width: var(--max-width);
  margin: 18px auto 26px;
  padding: 0 16px;
}

/* Section Header Bar */
.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Countdown Timer */
.countdown-timer-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 700;
}

.timer-number {
  color: var(--accent-red);
  font-weight: 800;
  font-size: 17px;
  min-width: 20px;
  display: inline-block;
  text-align: center;
}

.timer-unit {
  color: #111827;
  font-weight: 700;
  margin-right: 4px;
}

/* View All Link */
.view-all-link {
  color: #e65100;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.view-all-link:hover {
  color: var(--primary-orange-dark);
  text-decoration: underline;
}

/* Products Slider Wrapper */
.products-slider-wrapper {
  position: relative;
}

.slider-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 34px;
  height: 48px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition);
  border-radius: 3px;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.slider-arrow.prev {
  left: 0px;
}

.slider-arrow.next {
  right: 0px;
}

/* 5 Columns Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

.products-grid::-webkit-scrollbar {
  display: none; /* Chrome */
}

/* Product Card */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Thumbnail Area */
.product-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background: #f8fafc;
  overflow: hidden;
}

.product-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.04);
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: var(--accent-red);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Video Play Tag */
.video-play-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background-color: #ffffff;
  color: #ff0000;
  font-size: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Promotional Badge Overlay on Safe Image */
.product-promo-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  left: 45px;
  background: linear-gradient(135deg, #ff4500 0%, #b71c1c 100%);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
  padding: 3px 6px;
  border-radius: 3px;
  line-height: 1.25;
  z-index: 2;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 0.2px;
}

/* Product Info */
.product-info {
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
  transition: var(--transition);
}

.product-name:hover {
  color: var(--primary-orange);
}

/* Price Row */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.current-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-red);
}

.old-price {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  text-decoration: line-through;
}

/* Specs List */
.product-specs {
  margin-top: auto;
  border-top: 1px dashed #f1f5f9;
  padding-top: 6px;
}

.product-specs li {
  font-size: 11.5px;
  color: #4b5563;
  line-height: 1.45;
  position: relative;
  padding-left: 10px;
}

.product-specs li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #9ca3af;
}

/* ============================================================
   5. NEWS SECTION (Image 2)
   ============================================================ */
.news-section {
  max-width: var(--max-width);
  margin: 30px auto 35px;
  padding: 0 16px;
}

.news-header-bar {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.news-title {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
}

.news-slider-wrapper {
  position: relative;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.news-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  position: relative;
}

.news-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-thumb-wrap img {
  transform: scale(1.05);
}

.news-item-title {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.4;
}

.news-item-title a {
  color: var(--accent-red);
  transition: var(--transition);
}

.news-item-title a:hover {
  color: var(--accent-red-dark);
  text-decoration: underline;
}

/* News Slider Nav Arrows Centered Below */
.news-nav-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.news-arrow {
  width: 28px;
  height: 28px;
  background-color: #d1d5db;
  color: #4b5563;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.news-arrow:hover {
  background-color: #9ca3af;
  color: #ffffff;
}

/* ============================================================
   6. SITE FOOTER (Image 3)
   ============================================================ */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 35px 0 45px;
  color: #374151;
  font-size: 13px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1fr;
  gap: 36px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.footer-heading.heading-spacing {
  margin-top: 26px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: #e5e7eb;
  margin-bottom: 14px;
}

/* Col 1 Details */
.company-details p {
  margin-bottom: 5px;
  line-height: 1.5;
}

.company-name {
  font-size: 13.5px;
  color: #111827;
  margin-bottom: 6px !important;
}

.highlight-code {
  color: var(--accent-red);
  font-weight: 800;
}

.highlight-phone {
  color: var(--accent-red);
  font-weight: 800;
}

.text-desc {
  margin: 10px 0;
  color: #4b5563;
  line-height: 1.55;
  font-size: 12.5px;
}

.link-blue {
  color: var(--link-blue);
  text-decoration: underline;
}

.link-blue:hover {
  color: #0369a1;
}

/* Branch Groups */
.branch-group {
  margin-top: 10px;
}

.branch-header {
  color: #ea580c;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 4px;
}

.branch-list li {
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 3px;
  color: #374151;
}

.branch-list li strong {
  color: #111827;
}

/* Provinces Links */
.provinces-links {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #4b5563;
}

.provinces-links a {
  color: var(--link-blue);
  text-decoration: underline;
  transition: var(--transition);
}

.provinces-links a:hover {
  color: #0369a1;
}

/* Become Dealer */
.become-dealer-wrap {
  margin: 16px 0;
}

.become-dealer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c2410c;
  font-size: 13px;
  line-height: 1.4;
  transition: var(--transition);
}

.become-dealer-link:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.icon-square-orange {
  font-size: 14px;
}

/* Support Buttons */
.support-btn-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.support-btn {
  background-color: #111827;
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.support-btn:hover {
  background-color: var(--primary-orange);
  color: #ffffff;
}

/* Col 2 Arrow Lists */
.arrow-list {
  margin-top: 4px;
}

.arrow-list li {
  margin-bottom: 6px;
  font-size: 12.5px;
}

.arrow-list li a {
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.arrow-list li a:hover {
  color: var(--primary-orange);
  transform: translateX(3px);
}

.arrow-sym {
  font-size: 8px;
  color: #6b7280;
}

/* Col 3 Brand Logo, Map, QR */
.footer-logo-wrap {
  margin-bottom: 14px;
}

.footer-kvt-logo {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 56px;
  font-weight: 900;
  font-style: italic;
  color: #ea4809;
  letter-spacing: -2px;
  line-height: 1;
  display: inline-block;
  transform: skewX(-6deg);
}

/* Map Widget */
.map-widget-wrap {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 22px;
}

.map-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #f1f5f9;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.map-link-btn:hover {
  background: #e2e8f0;
}

.map-image-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* QR Code Section */
.qr-consultation-wrap {
  display: flex;
  flex-direction: column;
}

.qr-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.qr-box {
  width: 160px;
  height: 160px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  padding: 4px;
}

.qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   7. FLOATING CONTACT BUTTONS
   ============================================================ */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.float-btn.hotline {
  background: #dc2626;
  color: #ffffff;
  font-size: 22px;
  animation: pulse-ring 2s infinite;
}

.float-btn.zalo {
  background: #0088ff;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.float-btn.messenger {
  background: linear-gradient(135deg, #00b2ff, #006aff 55%, #a033ff);
  color: #ffffff;
  font-size: 24px;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-tooltip {
  position: absolute;
  right: 60px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.float-btn.hotline:hover .float-tooltip {
  opacity: 1;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ============================================================
   8. MOBILE ELEMENTS & RESPONSIVE DESIGN (320px - 575px)
   ============================================================ */

/* Desktop defaults: Hide mobile-only elements */
.mobile-menu-btn,
.mobile-top-cart-btn,
.mobile-search-row,
.mobile-bottom-nav,
.mobile-drawer,
.mobile-drawer-overlay {
  display: none;
}

/* Banner Carousel Structure */
/* Slides are stacked in one grid cell and cross-fade */
.banner-carousel-container {
  display: grid;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide-item {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.hero-slide-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 0.9s ease, visibility 0s;
}

/* National Brand Banner Slide (Image 1 Mobile) */
.national-brand-banner {
  background: linear-gradient(135deg, #e65100 0%, #ff6d00 50%, #e65100 100%);
  color: #ffffff;
  padding: 16px 12px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-text-content {
  margin-bottom: 6px;
}

.brand-title {
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 2px;
}

.brand-subtitle {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: #fff2e8;
  letter-spacing: 0.2px;
}

.brand-safes-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  max-height: 140px;
  overflow: hidden;
}

.brand-safes-image {
  max-height: 140px;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* TABLET RESPONSIVE (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-banner-card {
    flex-direction: column;
  }

  .hero-content-col {
    padding: 24px 20px;
  }

  .hero-title-main {
    font-size: 30px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .col-brand-map {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
  }
}

/* MOBILE & TABLET (max-width: 768px) */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   MOBILE RESPONSIVE: 320px to 575px (EXACT AS SCREENSHOTS)
   ============================================================ */
@media (max-width: 575px) {
  body {
    padding-bottom: 56px; /* Room for bottom fixed navigation */
  }

  /* 1. Header Top Row: Hamburger | Logo | Cart */
  .desktop-only {
    display: none !important;
  }

  .site-header {
    border-bottom: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  .header-top-container {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  /* Hamburger Menu Button */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 17px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
  }

  .hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: #e65100;
    border-radius: 2px;
  }

  /* Logo Centered */
  .brand-logo {
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .logo-kvt-text {
    font-size: 38px;
    letter-spacing: -1.5px;
  }

  .logo-cut-line {
    height: 1.8px;
  }

  /* Mobile Top Cart */
  .mobile-top-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4px;
    flex-shrink: 0;
  }

  .mobile-cart-svg {
    width: 26px;
    height: 26px;
    stroke: #e65100;
  }

  .mobile-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #1f2937;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 2. Mobile Search Bar Row */
  .mobile-search-row {
    display: block;
    padding: 2px 14px 10px;
    background: #ffffff;
  }

  .mobile-search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
    height: 36px;
    background: #ffffff;
  }

  .mobile-cat-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border-right: 1px solid #e5e7eb;
    padding: 0 8px;
    background: #ffffff;
    height: 100%;
    flex-shrink: 0;
  }

  .mobile-cat-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    padding-right: 14px;
    outline: none;
    cursor: pointer;
  }

  .cat-arrow {
    position: absolute;
    right: 6px;
    font-size: 8px;
    color: #4b5563;
    pointer-events: none;
  }

  .mobile-search-input-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .mobile-search-input-wrap input {
    width: 100%;
    border: none;
    outline: none;
    padding: 0 10px;
    font-size: 13px;
    color: #1f2937;
    background: transparent;
    font-family: inherit;
  }

  .mobile-search-input-wrap input::placeholder {
    color: #9ca3af;
  }

  .mobile-search-btn {
    width: 40px;
    height: 100%;
    background: #222222;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* 3. Hero Banner Slider on Mobile */
  .hero-banner-section {
    margin: 4px 0 0;
    padding: 0 10px;
  }

  .banner-wrapper {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: transparent;
  }

  .banner-arrow {
    width: 26px;
    height: 40px;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10;
  }

  .banner-arrow.prev {
    left: 4px;
  }

  .banner-arrow.next {
    right: 4px;
  }

  .national-brand-banner {
    padding: 14px 10px 8px;
    min-height: 165px;
    border-radius: 4px;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    font-size: 14px;
  }

  .brand-tagline {
    font-size: 10px;
  }

  .brand-safes-wrapper {
    height: 105px;
  }

  .brand-safes-image {
    max-height: 105px;
  }

  /* Compact Slide 2 on Mobile */
  .hero-slide-item#slideFingerprintAlert .hero-banner-card {
    min-height: auto;
    padding: 10px 8px;
    flex-direction: column;
    background: #fff8f3;
    border-radius: 4px;
  }

  .hero-slide-item#slideFingerprintAlert .hero-content-col {
    padding: 4px 4px 6px;
    align-items: center;
    text-align: center;
  }

  .hero-slide-item#slideFingerprintAlert .hero-title-main {
    font-size: 17px;
    align-items: center;
    line-height: 1.2;
  }

  .hero-slide-item#slideFingerprintAlert .hero-alert-bar {
    font-size: 11.5px;
    margin-top: 4px;
  }

  .hero-slide-item#slideFingerprintAlert .hero-peace-mind {
    font-size: 12.5px;
    margin-top: 2px;
  }

  .hero-slide-item#slideFingerprintAlert .hero-features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
    width: 100%;
  }

  .hero-slide-item#slideFingerprintAlert .feature-card {
    padding: 6px 3px;
    border-radius: 8px;
    align-items: center;
    text-align: center;
  }

  .hero-slide-item#slideFingerprintAlert .feature-icon {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .hero-slide-item#slideFingerprintAlert .feature-text {
    font-size: 9px;
    line-height: 1.2;
  }

  .hero-slide-item#slideFingerprintAlert .hero-image-col {
    display: none;
  }

  /* 4. Market Leader Title */
  .market-leader-title-wrap {
    margin: 12px auto 8px;
    padding: 0 10px;
  }

  .market-leader-title {
    font-size: 15.5px;
    font-weight: 800;
  }

  /* 5. Product Section 1 & 2 on Mobile */
  .products-section {
    margin: 12px auto 18px;
    padding: 0 10px;
  }

  .section-header-bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3px;
    border-bottom: none;
    margin-bottom: 10px;
    padding-bottom: 0;
  }

  .section-title {
    font-size: 13.5px;
    font-weight: 800;
    text-align: center;
  }

  .countdown-timer-wrap {
    font-size: 12px;
    justify-content: center;
  }

  .timer-number {
    font-size: 15px;
  }

  .view-all-link {
    font-size: 12.5px;
    text-align: center;
    display: inline-block;
  }

  /* 2 Columns Products Grid */
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 0;
  }

  .slider-arrow {
    width: 24px;
    height: 44px;
    background: rgba(0, 0, 0, 0.45);
  }

  .product-info {
    padding: 6px 6px 8px;
  }

  .product-name {
    font-size: 11.5px;
    height: 30px;
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .price-row {
    gap: 4px;
    margin-bottom: 4px;
  }

  .current-price {
    font-size: 13px;
  }

  .old-price {
    font-size: 10px;
  }

  .product-specs {
    padding-top: 4px;
  }

  .product-specs li {
    font-size: 10px;
    line-height: 1.35;
  }

  .discount-badge {
    font-size: 10px;
    padding: 1px 4px;
    top: 4px;
    left: 4px;
  }

  .product-promo-badge {
    font-size: 7.5px;
    padding: 2px 3px;
    left: 32px;
    top: 4px;
    right: 4px;
    line-height: 1.15;
  }

  /* 6. News Section as a Slider on Mobile (Image 2 Mobile) */
  .news-section {
    margin: 18px auto 22px;
    padding: 0 10px;
  }

  .news-header-bar {
    border-bottom: none;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 0;
  }

  .news-title {
    font-size: 14px;
    font-weight: 800;
    text-align: center;
  }

  .news-slider-wrapper {
    position: relative;
    overflow: hidden;
  }

  /* 2 articles visible side-by-side with slider capability */
  .news-grid {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .news-grid::-webkit-scrollbar {
    display: none;
  }

  .news-card {
    flex: 0 0 calc(50% - 4px);
    min-width: calc(50% - 4px);
    scroll-snap-align: start;
  }

  .news-item-title {
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.3;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .news-item-title a {
    color: #1f2937; /* Dark black/charcoal in mobile screenshot */
  }

  .news-nav-buttons {
    margin-top: 12px;
  }

  .news-arrow {
    width: 26px;
    height: 26px;
    background-color: #e5e7eb;
    color: #4b5563;
    border-radius: 3px;
  }

  /* 7. Fixed Bottom Navigation Bar (Image 1 Mobile) */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #ea580c;
    z-index: 9998;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    gap: 2px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .bottom-nav-item:last-child {
    border-right: none;
  }

  .bottom-nav-item i {
    font-size: 17px;
  }

  .bottom-cart-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .bottom-cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #111827;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 8. Floating Action Buttons */
  .floating-contact {
    bottom: 64px;
    right: 12px;
    gap: 10px;
  }

  .float-btn {
    width: 42px;
    height: 42px;
  }

  .float-btn.hotline {
    font-size: 18px;
  }

  .float-btn.zalo {
    font-size: 11px;
  }

  .float-btn.messenger {
    font-size: 20px;
  }

  /* 9. Off-Canvas Drawer Menu */
  .mobile-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80%;
    background: #ffffff;
    z-index: 10001;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .mobile-drawer.open {
    transform: translateX(0);
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
  }

  .drawer-logo {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    color: #df3e08;
    letter-spacing: -1.5px;
  }

  .drawer-close-btn {
    font-size: 20px;
    color: #4b5563;
    padding: 4px 8px;
    cursor: pointer;
  }

  .drawer-nav {
    padding: 0;
    margin: 0;
    list-style: none;
    flex: 1;
  }

  .drawer-item {
    border-bottom: 1px solid #f3f4f6;
  }

  .drawer-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .drawer-item a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
  }

  .drawer-toggle-btn {
    padding: 12px 16px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
  }

  .drawer-submenu {
    display: none;
    background: #f8fafc;
    padding: 4px 0 4px 20px;
    list-style: none;
    border-top: 1px solid #e5e7eb;
  }

  .drawer-submenu.show {
    display: block;
  }

  .drawer-submenu li a {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
  }

  .drawer-footer {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
  }

  .drawer-hotline {
    font-size: 13.5px;
    color: #dc2626;
    text-decoration: none;
  }

  /* 10. Footer on Mobile */
  .site-footer {
    padding: 24px 0 35px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 12px;
  }

  .col-brand-map {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .support-btn-group {
    flex-wrap: wrap;
  }

  .support-btn {
    flex: 1;
    min-width: 80px;
    text-align: center;
  }
}

/* ============================================================
   9. CATEGORY PAGE DEDICATED STYLES
   ============================================================ */

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background-color: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
  margin-bottom: 20px;
}

.breadcrumb-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.breadcrumb-link {
  color: #ea580c;
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #9ca3af;
  font-size: 13px;
}

.breadcrumb-current {
  color: #374151;
  font-weight: 500;
}

/* Category Main Content & Grid Layout */
.category-main-content {
  max-width: var(--max-width);
  margin: 0 auto 50px;
  padding: 0 16px;
}

.category-layout-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

/* Left Sidebar Filters */
.filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-group {
  background: transparent;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.filter-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 0.2px;
}

.filter-icon-toggle {
  font-size: 18px;
  font-weight: 900;
  color: #ea580c;
  line-height: 1;
  transition: transform 0.2s ease;
}

.filter-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.filter-body.collapsed {
  display: none;
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  user-select: none;
  line-height: 1.35;
}

.filter-checkbox-item:hover .filter-label-text {
  color: #ea580c;
}

.filter-checkbox-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #ea580c;
  cursor: pointer;
  border-radius: 2px;
  flex-shrink: 0;
}

.custom-check {
  display: none;
}

/* Right Column: Product Area & Header */
.category-product-area {
  display: flex;
  flex-direction: column;
}

.category-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
}

.cat-page-heading {
  font-size: 18px;
  font-weight: 800;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.sort-control-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.sort-select-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sort-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 6px 28px 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sort-dropdown:focus {
  border-color: #ea580c;
}

.sort-arrow {
  position: absolute;
  right: 10px;
  font-size: 9px;
  color: #6b7280;
  pointer-events: none;
}

/* 4-Columns Category Product Grid */
.category-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-product-grid .product-card {
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  background: #ffffff;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.category-product-grid .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #ea580c;
}

.category-product-grid .product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-product-grid .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-product-grid .product-card:hover .product-thumb img {
  transform: scale(1.04);
}

.category-product-grid .discount-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 2px;
  z-index: 2;
}

.category-product-grid .product-promo-badge {
  position: absolute;
  top: 6px;
  left: 44px;
  right: 6px;
  background: linear-gradient(135deg, #e65100 0%, #ff5722 100%);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  padding: 3px 4px;
  border-radius: 2px;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.category-product-grid .product-info {
  padding: 10px 10px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-product-grid .product-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
  cursor: pointer;
}

.category-product-grid .product-name:hover {
  color: #ea580c;
}

.category-product-grid .price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.category-product-grid .current-price {
  color: #d32f2f;
  font-size: 15px;
  font-weight: 800;
}

.category-product-grid .old-price {
  color: #9ca3af;
  font-size: 11.5px;
  text-decoration: line-through;
}

.category-product-grid .product-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed #e5e7eb;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.category-product-grid .product-specs li {
  font-size: 11.5px;
  color: #4b5563;
  line-height: 1.35;
  position: relative;
  padding-left: 10px;
}

.category-product-grid .product-specs li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #374151;
  font-weight: bold;
}

/* Pagination Controls */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  margin-bottom: 20px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: #ea580c;
  color: #ea580c;
}

.page-btn.active {
  background-color: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  font-weight: 700;
}

.page-btn.text-btn {
  padding: 0 12px;
  font-size: 12.5px;
}

/* Responsive adjustments for Category */
@media (max-width: 1024px) {
  .category-layout-grid {
    grid-template-columns: 210px 1fr;
    gap: 18px;
  }
  .category-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .category-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .filter-sidebar {
    background: #ffffff;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
  }
  .category-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 575px) {
  .breadcrumb-nav {
    padding: 8px 0;
    margin-bottom: 12px;
  }
  .breadcrumb-container {
    padding: 0 10px;
    font-size: 12px;
    gap: 6px;
  }
  .category-main-content {
    padding: 0 10px;
    margin-bottom: 25px;
  }
  .category-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }
  .cat-page-heading {
    font-size: 15px;
  }
  .sort-control-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .sort-dropdown {
    padding: 5px 24px 5px 10px;
    font-size: 12px;
  }
  .category-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .category-product-grid .product-info {
    padding: 6px 6px 10px;
  }
  .category-product-grid .product-name {
    font-size: 11.5px;
    height: 30px;
    margin-bottom: 4px;
  }
  .category-product-grid .current-price {
    font-size: 13px;
  }
  .category-product-grid .old-price {
    font-size: 10px;
  }
  .category-product-grid .product-specs li {
    font-size: 10px;
  }
  .pagination-container {
    gap: 4px;
    margin-top: 24px;
  }
  .page-btn {
    min-width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .page-btn.text-btn {
    padding: 0 8px;
    font-size: 11px;
  }
}

/* ============================================================
   10. PRODUCT DETAIL PAGE STYLES
   ============================================================ */

.product-detail-main {
  max-width: var(--max-width);
  margin: 0 auto 50px;
  padding: 0 16px;
}

/* TOP HERO: GALLERY + BUY BOX */
.product-hero-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}

.product-hero-layout {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 36px;
  align-items: start;
}

/* GALLERY COMPONENT */
.product-gallery-wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.gallery-thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 72px;
  flex-shrink: 0;
}

.thumb-nav-btn {
  width: 100%;
  height: 22px;
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: opacity 0.2s;
}

.thumb-nav-btn:hover {
  opacity: 0.85;
}

.thumbs-list-viewport {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* show 5 thumbnails (5 x 72px + 4 gaps); the rest scroll into view with next / prev */
  max-height: 392px;
  overflow: hidden;
}

.thumb-item {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 1.5px solid #d1d5db;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.thumb-item:hover {
  border-color: #ea580c;
}

.thumb-item.active {
  border-color: #ea580c;
  box-shadow: 0 0 0 1px #ea580c;
}

.gallery-main-view {
  flex: 1;
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.main-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.main-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.main-arrow.prev {
  left: 8px;
}

.main-arrow.next {
  right: 8px;
}

/* RIGHT: PRODUCT SUMMARY & BUY BOX */
.product-summary-col {
  display: flex;
  flex-direction: column;
}

.detail-product-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 12px;
}

.detail-divider {
  height: 1px;
  background: #e5e7eb;
  margin-bottom: 16px;
}

.detail-price-box {
  margin-bottom: 16px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.detail-price-row .price-label,
.detail-old-price-row .price-label {
  font-size: 13.5px;
  color: #374151;
  font-weight: 600;
  min-width: 58px;
}

.detail-current-price {
  color: #d32f2f;
  font-size: 24px;
  font-weight: 900;
}

.detail-old-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-old-price {
  color: #9ca3af;
  font-size: 13.5px;
  text-decoration: line-through;
}

.savings-text {
  color: #4b5563;
  font-size: 12.5px;
  font-style: italic;
}

/* Guarantees List */
.guarantee-checklist {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.guarantee-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.check-circle-icon {
  color: #16a34a;
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

.detail-hotline-bar {
  font-size: 14px;
  font-weight: 800;
  color: #d32f2f;
  margin-bottom: 20px;
}

.hotline-phone-highlight {
  color: #d32f2f;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.hotline-phone-highlight:hover {
  text-decoration: underline;
}

/* Order Actions */
.detail-order-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quantity-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.quantity-and-buttons-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quantity-control-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  height: 42px;
  background: #ffffff;
  overflow: hidden;
}

.qty-btn {
  width: 32px;
  height: 100%;
  background: #f9fafb;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #e5e7eb;
}

.quantity-control-wrap input {
  width: 44px;
  height: 100%;
  border: none;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  outline: none;
  -moz-appearance: textfield;
}

.quantity-control-wrap input::-webkit-outer-spin-button,
.quantity-control-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-buy-now {
  background: #c23800;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0 24px;
  height: 42px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-buy-now:hover {
  background: #9a2c00;
}

.btn-call-order {
  background: #b91c1c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0 20px;
  height: 42px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-call-order:hover {
  background: #991b1b;
}

/* MIDDLE SECTION: ARTICLE (LEFT) + SIDEBAR (RIGHT) */
.product-body-section {
  margin-bottom: 28px;
}

.product-body-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* Tab Header */
.desc-tab-nav {
  border-bottom: 2px solid #ea580c;
  margin-bottom: 16px;
  display: flex;
}

.tab-item.active {
  background: #ea580c;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 3px 3px 0 0;
  letter-spacing: 0.2px;
}

/* Article Styling */
.product-description-content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 22px;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.7;
}

.intro-p {
  margin-bottom: 16px;
}

.link-orange-bold {
  color: #ea580c;
  font-weight: 700;
  text-decoration: underline;
}

.article-main-heading {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
  margin: 18px 0 12px;
}

.product-description-content p {
  margin-bottom: 12px;
}

.article-banner-wrap {
  margin: 20px 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-banner-img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

/* Technical Specs Table */
.specs-table-wrapper {
  margin-top: 24px;
}

.specs-table-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ea580c;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.specs-table tr:nth-child(even) {
  background: #f9fafb;
}

.specs-table td {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
}

.spec-name {
  font-weight: 700;
  color: #1f2937;
  width: 32%;
}

.spec-value {
  color: #374151;
}

/* RIGHT SIDEBAR WIDGETS */
.product-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.widget-title {
  background: #f8fafc;
  font-size: 13.5px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.widget-content {
  padding: 14px;
}

.widget-link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.link-red-highlight {
  color: #d32f2f;
  font-weight: 600;
  text-decoration: underline;
}

.bullet-square {
  color: #d32f2f;
  font-size: 9px;
  margin-right: 6px;
}

/* Viewed Product Widget Card */
.viewed-card {
  display: flex;
  flex-direction: column;
}

.viewed-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  background: #f8fafc;
  margin-bottom: 8px;
}

.viewed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewed-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 36px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.viewed-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.viewed-arrow.prev {
  left: 0;
}

.viewed-arrow.next {
  right: 0;
}

.viewed-name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.viewed-name a {
  color: #111827;
}

.viewed-name a:hover {
  color: #ea580c;
}

.viewed-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.viewed-current-price {
  color: #d32f2f;
  font-size: 14px;
  font-weight: 800;
}

.viewed-old-price {
  color: #9ca3af;
  font-size: 11px;
  text-decoration: line-through;
}

/* BOTTOM SECTION: SIMILAR PRODUCTS CAROUSEL */
.similar-products-section {
  margin-bottom: 30px;
}

.section-title-bar-gray {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 10px 16px;
  margin-bottom: 14px;
}

.bar-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  margin: 0;
}

.similar-slider-wrap {
  position: relative;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.similar-grid::-webkit-scrollbar {
  display: none;
}

.similar-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 48px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 5;
  border-radius: 2px;
  transition: background 0.2s;
}

.similar-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.similar-arrow.prev {
  left: 0;
}

.similar-arrow.next {
  right: 0;
}

/* RELATED PRODUCTS SECTION */
.related-products-section {
  margin-bottom: 40px;
}

.section-title-bar-center {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 16px;
  text-align: center;
  margin-bottom: 16px;
}

.center-bar-title {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  margin: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* RESPONSIVE DESIGN FOR PRODUCT DETAIL */
@media (max-width: 1024px) {
  .product-hero-layout {
    grid-template-columns: 420px 1fr;
    gap: 24px;
  }
  .product-body-layout {
    grid-template-columns: 1fr 240px;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .product-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
  }
  .product-body-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .similar-slider-wrap {
    position: relative;
    overflow: hidden;
  }
  .similar-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 4px 0;
  }
  .similar-grid::-webkit-scrollbar {
    display: none;
  }
  .similar-grid .product-card {
    flex: 0 0 calc(50% - 5px) !important;
    min-width: calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    scroll-snap-align: start;
    box-sizing: border-box;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 575px) {
  .product-detail-main {
    padding: 0 10px;
  }
  .product-hero-section {
    padding: 12px;
    border-radius: 3px;
  }
  .product-hero-section > *,
  .product-gallery-wrap > * {
    min-width: 0;
  }
  .product-gallery-wrap {
    flex-direction: column-reverse;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
  .gallery-main-view {
    flex: none;
    width: 100%;
  }
  .gallery-thumbs-col {
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-thumbs-col::-webkit-scrollbar {
    display: none;
  }
  .thumb-nav-btn {
    display: none;
  }
  .thumbs-list-viewport {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    max-height: none;
    overflow: visible;
  }
  .thumb-item {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }
  .detail-product-title {
    font-size: 16px;
  }
  .detail-current-price {
    font-size: 20px;
  }
  .quantity-and-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 8px;
  }
  .quantity-control-wrap {
    grid-column: 1 / -1;
    justify-self: start;
    width: 120px;
    margin-bottom: 4px;
  }
  .btn-buy-now,
  .btn-call-order {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  .product-description-content {
    padding: 14px;
    font-size: 13px;
  }
  .article-main-heading {
    font-size: 16px;
  }

  /* Similar Products Slider on Mobile: exactly 2 items visible side-by-side with slider */
  .similar-slider-wrap {
    position: relative;
    overflow: hidden;
  }
  .similar-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 4px 0;
  }
  .similar-grid::-webkit-scrollbar {
    display: none;
  }
  .similar-grid .product-card {
    flex: 0 0 calc(50% - 4px) !important;
    min-width: calc(50% - 4px) !important;
    max-width: calc(50% - 4px) !important;
    scroll-snap-align: start;
    box-sizing: border-box;
  }
  .similar-grid .product-info {
    padding: 6px 6px 8px;
  }
  .similar-grid .product-name {
    font-size: 11.5px;
    height: 30px;
    margin-bottom: 4px;
    line-height: 1.3;
  }
  .similar-grid .price-row {
    gap: 4px;
    margin-bottom: 4px;
  }
  .similar-grid .current-price {
    font-size: 13px;
  }
  .similar-grid .old-price {
    font-size: 10px;
  }
  .similar-grid .product-specs li {
    font-size: 10px;
    line-height: 1.35;
  }
  .similar-arrow {
    width: 24px;
    height: 40px;
    background: rgba(0, 0, 0, 0.45);
    font-size: 11px;
    z-index: 10;
  }
  .similar-arrow.prev {
    left: 0;
  }
  .similar-arrow.next {
    right: 0;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ============================================================
   11. CART POPUP MODAL (KHI BẤM NÚT MUA HÀNG)
   ============================================================ */

.cart-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(2px);
}

.cart-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 720px;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 22px 24px 20px;
  overflow: visible; /* Prevent scrollbar caused by negative coordinates */
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.cart-modal-overlay.open .cart-modal-box {
  transform: scale(1);
}

/* Red Circle Close Button at Top-Right */
.cart-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ea580c;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background 0.2s;
  z-index: 10;
}

.cart-modal-close:hover {
  transform: scale(1.12);
  background: #d32f2f;
}

/* Modal Title */
.cart-modal-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #d32f2f;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

/* Cart Items Table */
.cart-table-wrapper {
  overflow-x: hidden;
  margin-bottom: 16px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #e5e7eb;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cart-table thead th {
  padding: 8px 6px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
}

.cart-table thead th.col-product {
  width: 48%;
}

.cart-table thead th.col-price {
  width: 18%;
  text-align: right;
}

.cart-table thead th.col-qty {
  width: 16%;
  text-align: center;
}

.cart-table thead th.col-subtotal {
  width: 18%;
  text-align: right;
}

.cart-item-row td {
  padding: 12px 6px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.cart-item-row:last-child td {
  border-bottom: none;
}

.cart-prod-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-prod-thumb {
  width: 58px;
  height: 58px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
}

.cart-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-prod-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-prod-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
  margin: 0;
}

.cart-prod-brand {
  font-size: 11px;
  color: #6b7280;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  margin-top: 1px;
  text-align: left;
  text-decoration: underline;
  width: fit-content;
}

.cart-remove-btn:hover {
  color: #b91c1c;
}

/* Price Cell */
.cart-price-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cart-current-price {
  color: #d32f2f;
  font-weight: 800;
  font-size: 13.5px;
}

.cart-old-price {
  color: #9ca3af;
  font-size: 11px;
  text-decoration: line-through;
}

.cart-discount-tag {
  background: #dc2626;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  display: inline-block;
}

/* Quantity Input */
.cart-qty-wrap {
  display: flex;
  justify-content: center;
}

.cart-qty-input {
  width: 75px;
  height: 28px;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-qty-input:focus {
  border-color: #ea580c;
}

/* Subtotal Cell */
.cart-subtotal-val {
  color: #d32f2f;
  font-weight: 800;
  font-size: 13.5px;
  text-align: right;
  display: block;
}

/* Modal Footer */
.cart-modal-footer {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 10px;
}

.cart-footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-note-textarea {
  width: 100%;
  height: 64px;
  min-height: 64px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}

.cart-note-textarea:focus {
  border-color: #ea580c;
}

.continue-shopping-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.continue-shopping-link:hover {
  color: #ea580c;
}

.icon-return {
  font-size: 13px;
}

.cart-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.cart-total-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.label-total {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.val-total {
  font-size: 16.5px;
  font-weight: 900;
  color: #d32f2f;
}

.cart-saving-line {
  font-size: 11.5px;
  color: #6b7280;
  margin-bottom: 8px;
}

.cart-btn-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.btn-cart-update {
  background: #eaedf0;
  border: 1px solid #d1d5db;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: all 0.2s;
}

.btn-cart-update:hover {
  background: #dfe3e8;
  border-color: #cbd5e1;
}

.btn-cart-checkout {
  background: #d83a00;
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: background 0.2s;
}

.btn-cart-checkout:hover {
  background: #b53000;
}

/* Mobile Modal Adjustments */
@media (max-width: 575px) {
  .cart-modal-box {
    padding: 18px 12px 14px;
    max-height: 94vh;
    overflow-y: auto;
  }
  .cart-modal-close {
    top: 6px;
    right: 6px;
  }
  .cart-modal-title {
    font-size: 12.5px;
    padding-right: 24px;
  }
  .cart-table thead th.col-price,
  .cart-item-row td.col-price {
    display: none;
  }
  .cart-modal-footer {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cart-footer-right {
    align-items: stretch;
    text-align: left;
  }
  .cart-total-line {
    justify-content: space-between;
  }
  .cart-btn-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .btn-cart-update,
  .btn-cart-checkout {
    padding: 8px 6px;
    font-size: 10px;
    text-align: center;
    white-space: normal;
  }
}

/* ============================================================
   12. MINI CART DROPDOWN (KHI BẤM ICON GIỎ HÀNG)
   ============================================================ */

.cart-item {
  position: relative;
}

.mini-cart-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 330px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  border: 1px solid #e5e7eb;
  z-index: 99999;
  display: none;
  text-align: left;
  transform-origin: top right;
}

.mini-cart-dropdown.show {
  display: block !important;
  animation: miniCartDrop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes miniCartDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Black Circle Close Button */
.mini-cart-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2b2b2b;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: transform 0.2s, background 0.2s;
}

.mini-cart-close:hover {
  transform: scale(1.15);
  background: #111111;
}

/* Header bar */
.mini-cart-header {
  background: #d83a00;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 3px 3px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Body / List */
.mini-cart-body {
  padding: 4px 12px;
  max-height: 270px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mini-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
  position: relative;
}

.mini-cart-item:last-child {
  border-bottom: none;
}

.mini-item-thumb {
  width: 58px;
  height: 58px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
}

.mini-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-item-info {
  flex: 1;
  padding-right: 18px;
}

.mini-item-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 3px;
  color: #1f2937;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-item-title.red-title {
  color: #d32f2f;
}

.mini-item-qty {
  font-size: 11.5px;
  color: #4b5563;
  margin-bottom: 2px;
}

.mini-item-price {
  font-size: 11.5px;
  color: #4b5563;
  font-weight: 600;
}

/* Red remove cross */
.mini-item-remove {
  position: absolute;
  top: 8px;
  right: 0;
  background: none;
  border: none;
  color: #d32f2f;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: transform 0.2s;
}

.mini-item-remove:hover {
  transform: scale(1.2);
}

/* Footer */
.mini-cart-footer {
  padding: 10px 12px 12px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 0 0 3px 3px;
}

.mini-cart-subtotal-line {
  font-size: 13.5px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
}

.mini-subtotal-val {
  color: #d32f2f;
  font-weight: 800;
  font-size: 14.5px;
}

.mini-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-mini-view-cart,
.btn-mini-checkout {
  background: #d83a00;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 0;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

.btn-mini-view-cart:hover,
.btn-mini-checkout:hover {
  background: #b53000;
}

/* Mobile viewport adjustments for mini cart */
@media (max-width: 575px) {
  .mini-cart-dropdown {
    position: fixed !important;
    top: 56px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    z-index: 100005 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
  }
}

/* ============================================================
   12. DEDICATED CART PAGE STYLES (cart.html)
   ============================================================ */

.cart-page-main {
  background-color: #ffffff;
  padding: 10px 0 60px;
  min-height: 60vh;
}

.cart-page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.cart-page-title {
  font-size: 26px;
  font-weight: 800;
  color: #222222;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin: 16px 0 28px;
}

/* Cart Table Layout */
.cart-page-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 30px;
}

.cart-page-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-page-table thead th {
  padding: 12px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4b5563;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.cart-page-table thead th.col-main-prod {
  width: 50%;
  text-align: center;
  padding-left: 130px; /* Aligns header text above the product description */
}

.cart-page-table thead th.col-main-unitprice {
  width: 16%;
  text-align: center;
}

.cart-page-table thead th.col-main-quantity {
  width: 16%;
  text-align: center;
}

.cart-page-table thead th.col-main-totalprice {
  width: 18%;
  text-align: center;
}

.cart-page-row {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
}

.cart-page-row:hover {
  background-color: #fafafa;
}

.cart-page-row td {
  padding: 22px 10px;
  vertical-align: middle;
}

/* Product Info Cell */
.cart-page-prod-cell {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-page-prod-thumb {
  width: 105px;
  height: 105px;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
  background: #ffffff;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-page-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.cart-page-prod-thumb:hover img {
  transform: scale(1.04);
}

.cart-page-prod-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cart-page-prod-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
}

.cart-page-prod-name a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s;
}

.cart-page-prod-name a:hover {
  color: #ea580c;
}

.cart-page-prod-brand {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}

.cart-page-remove-btn {
  background: none;
  border: none;
  color: #d32f2f;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-top: 2px;
  transition: opacity 0.2s;
}

.cart-page-remove-btn:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Prices */
.cart-page-unitprice-val {
  display: block;
  text-align: center;
  font-size: 15.5px;
  font-weight: 700;
  color: #d32f2f;
}

.cart-page-rowtotal-val {
  display: block;
  text-align: center;
  font-size: 15.5px;
  font-weight: 700;
  color: #d32f2f;
}

/* Quantity Spinner */
.cart-page-qty-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  background: #ffffff;
  height: 32px;
  margin: 0 auto;
}

.btn-spinner-minus,
.btn-spinner-plus {
  width: 30px;
  height: 100%;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.btn-spinner-minus:hover,
.btn-spinner-plus:hover {
  background: #f3f4f6;
  color: #ea580c;
}

.input-spinner-qty {
  width: 42px;
  height: 100%;
  border: none;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  outline: none;
  -moz-appearance: textfield;
}

.input-spinner-qty::-webkit-outer-spin-button,
.input-spinner-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Bottom Grid: Notes & Summary */
.cart-page-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: flex-end;
  padding-top: 10px;
}

.cart-notes-label {
  display: block;
  font-size: 13.5px;
  color: #4b5563;
  margin-bottom: 8px;
  font-weight: 500;
}

.cart-notes-area {
  width: 100%;
  height: 110px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: #111827;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.cart-notes-area:focus {
  border-color: #ea580c;
}

.cart-page-summary-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.cart-page-total-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.cart-page-total-label {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.cart-page-grandtotal-val {
  font-size: 22px;
  font-weight: 800;
  color: #d32f2f;
}

.cart-page-buttons-row {
  display: flex;
  gap: 8px;
}

.btn-cartpage-update,
.btn-cartpage-checkout {
  background: #d83a00;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 22px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
}

.btn-cartpage-update:hover,
.btn-cartpage-checkout:hover {
  background: #b53000;
}

.btn-cartpage-update:active,
.btn-cartpage-checkout:active {
  transform: scale(0.98);
}

/* Empty State */
.cart-page-empty {
  text-align: center;
  padding: 50px 20px;
}

.cart-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
}

.cart-empty-link {
  display: inline-block;
  background: #ea580c;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 10px;
  transition: background 0.2s;
}

.cart-empty-link:hover {
  background: #c2410c;
}

/* Responsive Cart Page */
@media (max-width: 768px) {
  .cart-page-bottom-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cart-page-summary-col {
    align-items: stretch;
  }

  .cart-page-total-row {
    justify-content: space-between;
  }

  .cart-page-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .cart-page-title {
    font-size: 20px;
    margin: 12px 0 18px;
  }

  .cart-page-table thead {
    display: none; /* Hide table headers on mobile */
  }

  .cart-page-table,
  .cart-page-table tbody,
  .cart-page-row {
    display: block;
    width: 100%;
  }

  .cart-page-row {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
  }

  .cart-page-row td {
    display: block;
    padding: 6px 0;
    width: 100% !important;
    text-align: left !important;
  }

  .cart-page-prod-cell {
    gap: 12px;
  }

  .cart-page-prod-thumb {
    width: 75px;
    height: 75px;
  }

  .cart-page-prod-name {
    font-size: 13px;
  }

  .cart-page-row td.col-main-unitprice::before {
    content: "Đơn giá: ";
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
  }

  .cart-page-unitprice-val {
    display: inline-block;
    font-size: 14px;
  }

  .cart-page-row td.col-main-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .cart-page-row td.col-main-quantity::before {
    content: "Số lượng: ";
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
  }

  .cart-page-qty-spinner {
    margin: 0;
  }

  .cart-page-row td.col-main-totalprice::before {
    content: "Tổng giá: ";
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
  }

  .cart-page-rowtotal-val {
    display: inline-block;
    font-size: 15px;
  }

  .cart-notes-area {
    height: 80px;
  }

  .btn-cartpage-update,
  .btn-cartpage-checkout {
    padding: 10px 12px;
    font-size: 12px;
    text-align: center;
  }
}

/* ============================================================
   13. CHECKOUT PAGE STYLES (checkout.html)
   ============================================================ */

.checkout-body {
  background-color: #f3f4f6;
  min-height: 100vh;
}

.checkout-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 20px;
}

.checkout-header-container {
  max-width: 1140px;
  margin: 0 auto;
}

.checkout-brand-title {
  font-size: 21px;
  font-weight: 800;
  color: #111827;
  text-decoration: none;
  letter-spacing: -0.3px;
}

.checkout-main {
  padding: 24px 0 60px;
}

.checkout-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 20px;
  align-items: start;
}

/* Cards */
.checkout-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.checkout-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
}

/* Login Banner */
.login-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.login-banner-text {
  font-size: 13.5px;
  color: #374151;
  font-weight: 500;
}

.btn-checkout-login {
  background: #e5e7eb;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-checkout-login:hover {
  background: #d1d5db;
}

/* Form inputs */
.checkout-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-input-wrap {
  position: relative;
  width: 100%;
}

.checkout-input {
  width: 100%;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 13.5px;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.checkout-input:focus {
  border-color: #111827;
}

.float-label-wrap {
  height: 50px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 14px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  transition: border-color 0.2s;
}

.float-label-wrap:focus-within {
  border-color: #111827;
}

.float-label-wrap label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 2px;
}

.float-label-wrap input {
  border: none;
  padding: 0;
  height: auto;
  outline: none;
  font-size: 13.5px;
  font-weight: 500;
  color: #111827;
  width: 100%;
  background: transparent;
  font-family: inherit;
}

.phone-wrap {
  position: relative;
}

.phone-wrap .checkout-input {
  padding-right: 42px;
}

.flag-vn-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Shipping Method Placeholder */
.shipping-method-placeholder-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* Payment Options List */
.payment-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  background: #ffffff;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.payment-option-item.active {
  border: 1.5px solid #111827;
  background: #ffffff;
}

.payment-radio-wrap {
  display: flex;
  align-items: center;
}

.payment-radio-wrap input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #111827;
  cursor: pointer;
}

.payment-icon-wrap {
  display: flex;
  align-items: center;
  font-size: 18px;
}

.payment-option-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
}

/* Notes */
.checkout-notes-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  color: #111827;
  outline: none;
  resize: vertical;
  height: 52px;
  transition: border-color 0.2s;
}

.checkout-notes-input:focus {
  border-color: #111827;
}

/* Right Column Cart Items */
.checkout-items-list {
  display: flex;
  flex-direction: column;
}

.checkout-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.checkout-item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.checkout-item-thumb {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid #f0f0f0;
}

.checkout-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3px;
}

.checkout-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.checkout-item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
  margin: 0;
}

.btn-checkout-remove {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.btn-checkout-remove:hover {
  color: #ef4444;
}

.checkout-variant-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
  margin: 2px 0;
}

.checkout-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.checkout-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

/* Spinner */
.checkout-qty-spinner {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  height: 28px;
  background: #ffffff;
}

.btn-co-minus,
.btn-co-plus {
  width: 26px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.btn-co-minus:hover,
.btn-co-plus:hover {
  background: #f8fafc;
  color: #111827;
}

.co-qty-input {
  width: 32px;
  height: 100%;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  outline: none;
  -moz-appearance: textfield;
}

.co-qty-input::-webkit-outer-spin-button,
.co-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Coupon Card */
.coupon-select-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  background: #ffffff;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
  transition: border-color 0.2s;
  font-family: inherit;
}

.coupon-select-bar:hover {
  border-color: #cbd5e1;
}

.coupon-select-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coupon-select-arrow {
  font-size: 18px;
  color: #94a3b8;
  line-height: 1;
}

.coupon-input-row {
  display: flex;
  gap: 8px;
}

.coupon-input {
  flex: 1;
  height: 40px;
}

.btn-apply-coupon {
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-apply-coupon:hover {
  background: #262626;
}

/* Summary Card */
.summary-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13.5px;
}

.summary-label {
  color: #4b5563;
  font-weight: 500;
}

.summary-val {
  color: #111827;
  font-weight: 600;
}

.total-line {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.total-label {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
}

.total-val {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}

.btn-submit-order {
  width: 100%;
  height: 46px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
}

.btn-submit-order:hover {
  background: #1f2937;
}

.btn-submit-order:active {
  transform: scale(0.99);
}

/* Order Success Modal */
.order-success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  backdrop-filter: blur(2px);
}

.order-success-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.order-success-box {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.25s;
}

.order-success-modal-overlay.open .order-success-box {
  transform: scale(1);
}

.success-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.success-desc {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-return-home {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  padding: 11px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-return-home:hover {
  background: #262626;
}

/* Responsive Checkout */
@media (max-width: 860px) {
  .checkout-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 575px) {
  .checkout-header {
    padding: 12px 16px;
  }
  .checkout-brand-title {
    font-size: 18px;
  }
  .checkout-main {
    padding: 16px 0 40px;
  }
  .checkout-card {
    padding: 14px 14px;
  }
  .login-banner-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-checkout-login {
    width: 100%;
    text-align: center;
  }
  .checkout-item-title {
    font-size: 11.5px;
  }
  .checkout-item-price {
    font-size: 13px;
  }
}








