:root {
  --bg-main: #f6f1e8;
  --bg-gradient-start: #faf6ef;
  --bg-gradient-end: #f1eadf;
  --bg-section: #fffaf2;
  --bg-soft: #f5efe4;
  --bg-dark: #1f1812;

  --text-main: #2c241d;
  --text-secondary: #6e6257;
  --text-muted: #9b8f83;

  --accent-gold: #d4af37;
  --accent-gold-bright: #f4d03f;
  --accent-red: #e63946;

  --primary: #2f241b;
  --primary-dark: #1c1510;

  --border-light: #e7ddd0;

  --shadow-soft: 0 10px 30px rgba(32, 28, 23, 0.08);
  --shadow-medium: 0 20px 40px rgba(32, 28, 23, 0.12);
  --shadow-strong: 0 30px 60px rgba(0, 0, 0, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.8),
      transparent 40%
    ),
    linear-gradient(
      180deg,
      var(--bg-gradient-start) 0%,
      var(--bg-gradient-end) 100%
    );
  color: var(--text-main);
  line-height: 1.4;
}

body::-webkit-scrollbar {
  display: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== HEADER ===== */
header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== LOGO ===== */
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo-chair {
  color: #f4d03f;
  text-shadow: 0 0 10px rgba(244, 208, 63, 0.18);
}

.logo-pro {
  color: #e63946;
  text-shadow: 0 0 10px rgba(230, 57, 70, 0.15);
}

/* ===== BUTTONS ===== */
.btn-order-nav,
.btn-primary,
.popup-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 10px 24px rgba(47, 36, 27, 0.22);
}

.btn-order-nav {
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.btn-primary {
  padding: 14px 38px;
  font-size: 1rem;
  font-weight: 600;
}

.btn-order-nav:hover,
.btn-primary:hover,
.popup-btn:hover {
  background: linear-gradient(135deg, #3a2c20, #17110c);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

/* ===== HERO ===== */
.hero-product {
  padding: 60px 0 70px;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.hero-media {
  flex: 1.2;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.hero-media img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.hero-media:hover img {
  transform: scale(1.03);
}

.hero-content {
  flex: 1;
}

.product-badge {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 20px 0 16px;
}

.price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.cta-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-outline-light {
  background: transparent;
  border: 2px solid #cec6ba;
  padding: 14px 32px;
  border-radius: 50px;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(47, 36, 27, 0.05);
  transform: translateY(-2px);
}

/* ===== SECTION ===== */
.advantages-section,
.testimonial {
  padding: 70px 0;
  background: var(--bg-section);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.video-section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 500;
  margin-bottom: 48px;
  color: var(--text-main);
}

.section-title::after {
  content: "";
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, #d8b44c, #f4d03f);
  display: block;
  margin: 14px auto 0;
}

/* ===== CARDS ===== */
.advantages-grid,
.grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.advantage-card,
.gallery-card,
.popup-card {
  background: var(--bg-section);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(212, 175, 55, 0.06);
}

.advantage-card {
  padding: 24px 16px;
  text-align: center;
}

.advantage-card i {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.advantage-card p,
.gallery-card p,
.video-caption,
.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.6;
}

.gallery-grid {
  padding: 70px 0;
  background: linear-gradient(180deg, #f2ebdf 0%, #ece3d4 100%);
}

.gallery-card {
  overflow: hidden;
  transition: transform 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.gallery-card p {
  padding: 16px 16px 20px;
  font-weight: 500;
}

/* ===== VIDEO ===== */
.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-strong);
}

.video-wrapper video {
  width: 100%;
  display: block;
}

.video-caption {
  text-align: center;
  margin-top: 28px;
  font-size: 0.9rem;
}

/* ===== TESTIMONIAL ===== */
.testimonial {
  text-align: center;
}

.quote {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.3rem;
  color: #44403b;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #221c16 0%, #18130f 100%);
  color: #d8cfc3;
  padding: 70px 0 40px;
}

/* Blur background bubbles */
.footer-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

.shape-1 {
  width: 260px;
  height: 260px;
  background: #f4d03f;
  top: -80px;
  left: -80px;
}

.shape-2 {
  width: 320px;
  height: 320px;
  background: #e67e22;
  bottom: -120px;
  right: -100px;
}

.shape-3 {
  width: 220px;
  height: 220px;
  background: #e63946;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Footer layout */
.footer-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Logo section */
.footer-logo-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-logo {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.footer-chair {
  color: #f4d03f;
}

.footer-pro {
  color: #e63946;
}

.footer-tagline {
  color: #f1f1f1;
  line-height: 1.8;
  max-width: 480px;
}

/* Contact section */
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 700;
}

.footer-contact p {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e5ddd3;
  line-height: 1.6;
}

.footer-contact i {
  width: 18px;
  color: #f4d03f;
  font-size: 0.95rem;
}

.footer-contact a {
  color: #e5ddd3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #f4d03f;
}

/* Copyright */
.copyright {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 32px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #b9b0a6;
}

/* Google Map Card */
.footer-map {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 260px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.footer-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(244, 208, 63, 0.08),
    rgba(230, 57, 70, 0.05)
  );
  z-index: 1;
  pointer-events: none;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.05) saturate(0.95);
}

/* Responsive */
/* Tablet */
@media (max-width: 992px) {
  footer {
    padding: 60px 0 30px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-logo-col {
    align-items: center;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .footer-contact {
    max-width: 600px;
    margin: 0 auto;
    padding: 28px 24px;
    text-align: left;
  }

  .footer-contact p {
    justify-content: flex-start;
  }

  .footer-map {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    min-height: 260px;
  }

  .footer-map iframe {
    min-height: 260px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  footer {
    padding: 50px 0 24px;
  }

  .footer-container {
    gap: 24px;
  }

  .footer-logo {
    font-size: 2rem;
  }

  .footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 8px;
  }

  .footer-contact {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    text-align: center;
  }

  .footer-contact p {
    font-size: 0.95rem;
    gap: 10px;
    align-items: flex-start;
  }

  .footer-contact i {
    margin-top: 4px;
    flex-shrink: 0;
  }

  .footer-contact a {
    word-break: break-word;
  }

  .footer-map {
    border-radius: 20px;
    min-height: 220px;
  }

  .footer-map iframe {
    min-height: 220px;
  }

  .copyright {
    margin-top: 28px;
    padding-top: 24px;
    font-size: 0.75rem;
    line-height: 1.6;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .footer-logo {
    font-size: 1.8rem;
  }

  .footer-tagline {
    font-size: 0.9rem;
  }

  .footer-contact {
    padding: 20px 16px;
  }

  .footer-contact h4 {
    font-size: 1.2rem;
  }

  .footer-contact p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .footer-map {
    min-height: 180px;
    border-radius: 16px;
  }

  .footer-map iframe {
    min-height: 180px;
  }

  .copyright {
    font-size: 0.7rem;
  }

  .shape-1 {
    width: 160px;
    height: 160px;
    top: -50px;
    left: -50px;
  }

  .shape-2 {
    width: 200px;
    height: 200px;
    right: -60px;
    bottom: -80px;
  }

  .shape-3 {
    width: 140px;
    height: 140px;
  }
}

/* ===== POPUP ===== */
.popup-banner {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.82);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.popup-card {
  max-width: 520px;
  width: 88%;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-strong);
  animation: fadeUp 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.popup-img {
  width: 100%;
  display: block;
}

.popup-content {
  padding: 32px 28px 38px;
}

.popup-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.popup-btn {
  padding: 14px 20px;
  width: 70%;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}

.popup-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transition: 0.6s ease;
}

.popup-btn:hover::before {
  left: 120%;
}

.close-popup {
  margin-top: 18px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  padding: 14px 20px;
  border-radius: 60px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.close-popup:hover {
  background: rgba(47, 43, 38, 0.06);
  text-decoration: none;
  border-color: rgba(47, 43, 38, 0.15);
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 780px) {
  .hero-grid {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .footer-container {
    flex-direction: column;
  }

  .popup-btn {
    width: 100%;
  }
}

/* ! Scroll to Top */
.scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a4c, #ff6a3d);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 30px rgba(255, 106, 61, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.35s ease;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 14px 36px rgba(255, 106, 61, 0.45),
    0 6px 16px rgba(0, 0, 0, 0.3);
}

.scroll-to-top i {
  position: relative;
  z-index: 3;
}

/* Wave effect */
.scroll-to-top .wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 138, 76, 0.25);
  z-index: 1;
  animation: ripple 2.4s infinite;
}

.scroll-to-top .wave-2 {
  animation-delay: 1.2s;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  70% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .scroll-to-top {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
    font-size: 1.2rem;
  }
}

/* =========================
   FLOATING CONTACT BUTTONS
========================= */
.floating-contact {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.float-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.05);
}

/* Zalo */
.zalo-btn {
  background: #ffffff;
}

.zalo-btn img {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 2;
}

/* Phone */
.phone-btn {
  background: linear-gradient(135deg, #25d366, #17b857);
  color: #ffffff;
  font-size: 1.35rem;
}

.phone-btn i {
  position: relative;
  z-index: 2;
}

/* Wave animation */
.float-btn .wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.18;
  animation: contactWave 2s infinite;
  z-index: 1;
}

.zalo-btn .wave {
  background: rgba(0, 132, 255, 0.25);
}

.phone-btn .wave {
  background: rgba(37, 211, 102, 0.25);
}

@keyframes contactWave {
  0% {
    transform: scale(1);
    opacity: 0.35;
  }
  70% {
    transform: scale(2.1);
    opacity: 0;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .floating-contact {
    left: 16px;
    bottom: 16px;
    gap: 12px;
  }

  .float-btn {
    width: 52px;
    height: 52px;
  }

  .zalo-btn img {
    width: 28px;
    height: 28px;
  }

  .phone-btn {
    font-size: 1.2rem;
  }
}