/* ============================================
   SƠN LIONS - Website sơn cao cấp
   Reset & Variables
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0a3d62;
  --primary-dark: #062843;
  --accent: #f39c12;
  --accent-dark: #e67e22;
  --red: #e74c3c;
  --green: #27ae60;
  --blue: #2980b9;
  --purple: #8e44ad;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #e1e8ed;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
  --radius: 14px;
  --transition: all 0.3s ease;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-head .tag {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-head p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(243, 156, 18, 0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

/* ============================================
   Top bar + Header
============================================ */
.topbar {
  background: var(--primary-dark);
  color: #cfe0ee;
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
}

.topbar-info span {
  margin-right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-social a {
  margin-left: 12px;
  opacity: 0.85;
  transition: var(--transition);
}

.topbar-social a:hover {
  opacity: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.logo .logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--red));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
}

.logo img.logo-img {
  height: 52px;
  width: auto;
}

.logo span.sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 1px;
  display: block;
}

.nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav a {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--accent-dark);
  background: var(--bg-alt);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-btn {
  position: relative;
  font-size: 1.4rem;
  text-decoration: none;
}
.cart-icon-lg {
  display: block;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Hero
============================================ */
.hero {
  position: relative;
  background: url("../image/hero-bg.png") center/cover no-repeat;
  color: #fff;
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.35), transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-text .badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  padding: 30px;
  border-radius: 16px;
}

.hero-text h1 .hl {
  color: var(--accent);
}

.hero-text p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 46px;
}

.hero-stats .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stats .lbl {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Hero paint can visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.paint-can {
  width: 260px;
  height: 300px;
  background: linear-gradient(160deg, #ffffff, #dfe6ea);
  border-radius: 18px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: rotate(-4deg);
}

.paint-can .lid {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  background: #b0bec5;
  border-radius: 10px;
}

.paint-can .label {
  position: absolute;
  inset: 40px 20px 30px;
  background: linear-gradient(160deg, var(--accent), var(--red));
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px;
}

.paint-can .label b {
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.paint-can .label .label-logo {
  width: 90%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.paint-can .label small {
  opacity: 0.9;
  margin-top: 6px;
}

.color-dots {
  position: absolute;
  bottom: -30px;
  right: -10px;
  display: flex;
  gap: 10px;
}

.color-dots i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}

/* ============================================
   Categories
============================================ */
.bg-alt {
  background: var(--bg-alt);
}

.cat-section {
  background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),
    url("../image/anhnen2.png") center/cover no-repeat;
  position: relative;
}

.cat-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(243,156,18,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.cat-card:hover {
  transform: translateY(-8px);
  border-bottom-color: var(--accent);
}

.cat-card .icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: #fff;
}

.cat-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.cat-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================
   Products
============================================ */
.filter-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.filter-bar .filter-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-bar .filter-label {
  font-weight: 600;
  color: var(--text);
  min-width: 80px;
}

.filter-bar .filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-bar button {
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: #fff;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.filter-bar button:hover,
.filter-bar button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.brand-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  margin-bottom: 4px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card .thumb {
  height: 200px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.product-card .thumb .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .thumb .can {
  width: 90px;
  height: 120px;
  background: linear-gradient(160deg, #fff, #e5ebef);
  border-radius: 10px;
  position: relative;
  box-shadow: var(--shadow);
}

.product-card .thumb .can::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 14px;
  background: #b0bec5;
  border-radius: 5px;
}

.product-card .thumb .can::after {
  content: "";
  position: absolute;
  inset: 20px 12px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12);
}

.product-card .tag-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
}

.product-card .info {
  padding: 20px;
}

.product-card .cat-label {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 6px 0 8px;
}

.product-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
  min-height: 42px;
}

.product-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card .price {
  font-weight: 800;
  color: var(--red);
  font-size: 1.05rem;
}

.product-card .unit-info {
  font-weight: 500;
  font-size: 0.85rem;
  color: #666;
  margin-left: 4px;
}

.product-card .more {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.product-card .more:hover {
  color: var(--accent-dark);
}

/* ============================================
   About
============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
}

.about-visual.has-photo {
  background: none;
}

.about-visual .about-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.about-visual .swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 30px;
  width: 100%;
}

.about-visual .swatches i,
.about-visual .swatches img {
  height: 100px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.about-visual .exp-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  padding: 18px 24px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-visual .exp-badge b {
  font-size: 2rem;
  display: block;
  line-height: 1;
}

.about-text h2 {
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.about-text > p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.about-list {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

.about-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  margin-top: 3px;
}

.about-list b {
  color: var(--text);
}

/* ============================================
   Color palette
============================================ */
.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.color-swatch {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  transition: var(--transition);
  cursor: pointer;
}

.color-swatch:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.color-swatch img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.color-swatch figcaption {
  padding: 14px 12px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.color-swatch figcaption span {
  display: block;
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* ============================================
   Why choose / Features
============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 34px 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 18px;
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================
   CTA Section
============================================ */
.cta-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(243, 156, 18, 0.55), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(231, 76, 60, 0.45), transparent 45%),
    linear-gradient(135deg, #0a3d62 0%, #062843 55%, #041d31 100%);
  color: #fff;
  text-align: center;
  padding: 90px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Lớp hoạ tiết chấm mờ tạo chiều sâu cho nền */
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 78%);
}

/* Vệt sáng lớn chuyển động nhẹ phía sau */
.cta-section::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 120%;
  height: 180%;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.12), transparent 60%);
  animation: ctaGlow 8s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

.cta-section h2 {
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.cta-highlight {
  color: #ffd700;
  background: linear-gradient(120deg, #ffe066, #f39c12);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-section > .container > p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
  opacity: 0.92;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 15px 36px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 8px 26px rgba(243, 156, 18, 0.45);
  transition: var(--transition);
}

.cta-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(243, 156, 18, 0.6);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  transform: translateY(-3px);
}

/* ============================================
   Projects gallery
============================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  height: 240px;
  position: relative;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .cover {
  position: absolute;
  inset: 0;
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 40, 67, 0.9), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card .overlay h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.project-card .overlay span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ============================================
   Testimonials
============================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testi-card .stars {
  color: var(--accent);
  margin-bottom: 12px;
}

.testi-card p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
}

.testi-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-card .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--red));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.testi-card .who b {
  color: var(--primary);
  display: block;
}

.testi-card .who small {
  color: var(--text-light);
}

/* ============================================
   Contact
============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 46px;
}

.contact-info .item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-info .item .ic {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.contact-info .item h4 {
  color: var(--primary);
  margin-bottom: 2px;
}

.contact-info .item p {
  color: var(--text-light);
}

.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 12px;
  display: none;
}

.form-note.ok {
  display: block;
  background: #e8f8f0;
  color: var(--green);
}

.form-note.err {
  display: block;
  background: #fdeded;
  color: #c0392b;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 40px;
  height: 340px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   Page banner (subpages)
============================================ */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--blue));
  color: #fff;
  padding: 70px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.page-banner .crumb {
  opacity: 0.85;
}

.page-banner .crumb a:hover {
  color: var(--accent);
}

/* ============================================
   Footer
============================================ */
.footer {
  background: var(--primary-dark);
  color: #b8ccdd;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer p {
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  transition: var(--transition);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer .contact-line {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.footer .social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer .social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.footer .social a:hover {
  background: var(--accent);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 0.88rem;
}

.footer-bottom .admin-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin-left: 6px;
  transition: color .2s;
}

.footer-bottom .admin-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Back to top */
.to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Widget liên hệ nổi (góc dưới bên trái)
============================================ */
.contact-widget {
  position: fixed;
  left: 20px;
  bottom: 22px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-widget .cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: cwPulse 2.4s ease-in-out infinite;
}

.contact-widget .cw-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.contact-widget .cw-zalo {
  background: #fff;
  border: 1px solid #e1e8ed;
}

.contact-widget .cw-zalo .cw-ico {
  font-weight: 800;
  font-size: 0.9rem;
  font-style: italic;
  color: #0068ff;
}

.contact-widget .cw-mess {
  background: radial-gradient(circle at 30% 20%, #00c6ff, #0084ff 45%, #a033ff 90%);
}

.contact-widget .cw-hotline {
  width: auto;
  border-radius: 40px;
  padding: 8px 18px 8px 10px;
  gap: 10px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  animation: cwPulseRed 2.4s ease-in-out infinite;
}

.contact-widget .cw-phone-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.1rem;
  animation: cwRing 1s ease-in-out infinite;
}

.contact-widget .cw-hotline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.contact-widget .cw-hotline-text small {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.contact-widget .cw-hotline-text b {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

@keyframes cwPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 132, 255, 0.35), var(--shadow-lg); }
  50% { box-shadow: 0 0 0 10px rgba(0, 132, 255, 0), var(--shadow-lg); }
}

@keyframes cwPulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4), var(--shadow-lg); }
  50% { box-shadow: 0 0 0 12px rgba(231, 76, 60, 0), var(--shadow-lg); }
}

@keyframes cwRing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-18deg); }
  40% { transform: rotate(16deg); }
  60% { transform: rotate(-12deg); }
  80% { transform: rotate(8deg); }
}

@media (max-width: 600px) {
  .contact-widget {
    left: 12px;
    bottom: 16px;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
    max-width: calc(100vw - 24px);
  }
  .contact-widget .cw-btn { width: 46px; height: 46px; }
  /* Hotline: chỉ hiện biểu tượng điện thoại dạng vòng tròn */
  .contact-widget .cw-hotline {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
  }
  .contact-widget .cw-hotline-text { display: none; }
  .contact-widget .cw-phone-ico {
    width: 100%;
    height: 100%;
    background: transparent;
    font-size: 1.3rem;
  }
}

@keyframes slideInLeftSoft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.cat-section .section-head.reveal {
  animation: slideInLeftSoft 0.8s ease-out forwards;
}

@keyframes slideInRightSoft {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

#about .section-head.reveal,
#about .about-text.reveal {
  animation: slideInRightSoft 0.8s ease-out forwards;
}

/* CTA: chữ chạy từ trái vào, lần lượt khi cuộn tới */
.cta-section.reveal > .container > h2,
.cta-section.reveal > .container > p,
.cta-section.reveal > .container > .cta-buttons {
  opacity: 0;
  transform: translateX(-70px);
}

.cta-section.reveal.visible > .container > h2 {
  animation: slideInLeftSoft 0.7s ease-out 0.05s forwards;
}
.cta-section.reveal.visible > .container > p {
  animation: slideInLeftSoft 0.7s ease-out 0.25s forwards;
}
.cta-section.reveal.visible > .container > .cta-buttons {
  animation: slideInLeftSoft 0.7s ease-out 0.45s forwards;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 992px) {
  .hero .container,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .cat-grid,
  .product-grid,
  .feature-grid,
  .project-grid,
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .color-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-text h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: calc(100vh - 72px);
    background: #fff;
    box-shadow: var(--shadow-lg);
    transition: right 0.35s ease;
    padding: 20px;
  }
  .nav.open { right: 0; }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav a { display: block; }
  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header-cta .phone { display: none; }
  .topbar-info span:not(:first-child) { display: none; }
  section { padding: 56px 0; }
  .section-head h2,
  .about-text h2,
  .cta-banner h2,
  .cta-section h2 { font-size: 1.8rem; }
  .hero-text h1 { font-size: 2rem; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 2rem; }
}

@media (max-width: 520px) {
  .cat-grid,
  .product-grid,
  .feature-grid,
  .project-grid,
  .testi-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .color-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show {
  display: flex;
}
.modal-content {
  background: #fff;
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.cart-modal {
  max-width: 500px;
}
.cart-modal h2 {
  padding: 24px 24px 0;
  margin-bottom: 16px;
}
#cartItems {
  padding: 0 24px;
  max-height: 400px;
  overflow-y: auto;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-color {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-item-brand {
  font-size: 0.8rem;
  color: var(--text-light);
}
.cart-item-unit-price {
  font-size: 0.8rem;
  color: var(--text-light);
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.cart-item-qty span {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}
.cart-item-price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.cart-item-remove {
  color: var(--red);
  cursor: pointer;
  padding: 8px;
  font-size: 1.2rem;
}
.cart-footer {
  padding: 20px 24px 24px;
  border-top: 2px solid var(--border);
  margin-top: 16px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.cart-total span:last-child {
  font-weight: 700;
  color: var(--primary);
}
.cart-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-light);
}
.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}
.cart-modal .btn {
  width: 100%;
}

/* Checkout Form */
.checkout-form {
  padding: 24px;
}
.checkout-form .modal-close {
  position: relative;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.9rem;
}
.checkout-form .modal-close:hover {
  color: var(--text);
  background: none;
}
.back-to-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f3f5;
  color: var(--text);
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.2s, transform 0.1s;
}
.back-to-cart-btn:hover {
  background: #e9ecef;
}
.back-to-cart-btn:active {
  transform: scale(0.97);
}
.checkout-form h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.checkout-form .form-group {
  margin-bottom: 16px;
}
.checkout-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}
.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.checkout-summary {
  background: var(--bg-alt);
  padding: 16px;
  border-radius: var(--radius);
  margin: 20px 0;
}
.checkout-summary h4 {
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.checkout-items {
  max-height: 150px;
  overflow-y: auto;
}
.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.checkout-item:last-child {
  border-bottom: none;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px solid var(--border);
}
.checkout-total strong:last-child {
  font-size: 1.2rem;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: var(--border);
}
.modal-body {
  padding: 0;
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.detail-gallery {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
}
.gallery-img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
}
.detail-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
}
.detail-info {
  padding: 40px 40px 40px 0;
}
.detail-brand {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.detail-cat {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-left: 12px;
}
.detail-info h2 {
  font-size: 1.6rem;
  margin: 12px 0 16px;
  color: var(--text);
}
.detail-desc {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}
.detail-price .price-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spec-value {
  font-weight: 600;
  color: var(--text);
}

/* Quantity Selector */
.detail-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 44px;
  border: none;
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}
.qty-btn:hover {
  background: var(--border);
}
#productQty {
  width: 50px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}
#productQty::-webkit-inner-spin-button,
#productQty::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.add-to-cart-btn {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cart-icon {
  font-size: 1.2rem;
}

/* Features */
.detail-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.feature-item {
  color: var(--green);
  font-weight: 500;
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.notification.ok {
  background: var(--green);
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .detail-gallery {
    min-height: 280px;
  }
  .detail-info {
    padding: 24px;
  }
  .specs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-actions {
    flex-wrap: wrap;
  }
  .qty-selector {
    order: 2;
  }
  .add-to-cart-btn {
    order: 1;
    width: 100%;
  }
}
