:root {
  /* M&A brand palette */
  --color-floralwhite: #f9f6ef;
  --color-gray-100: #1e222b;
  --color-gray-200: rgba(255, 255, 255, 0.7);
  --color-white: #fff;
  --color-terracotta: #70250c;
  --color-teal: #5d7d89;
  --color-teal-hover: #4b6671;
  --color-tan: #bb9d84;
  --color-slate: #52545e;
  --color-slategray: #4a5568;
  --color-lightslategray: #718096;
  --Zeus-7: rgba(30, 27, 22, 0.07);

  --font-google-sans-code: "Google Sans Code", Arial, sans-serif;
  --font-ma-clayton: "MA Clayton", Arial, sans-serif;
  --font-manrope: "Manrope", Arial, sans-serif;

  /* M&A typography scale */
  --type-display-xl: clamp(64px, 8vw, 128px);
  --type-display-lg: clamp(52px, 6.5vw, 96px);
  --type-heading-sm: clamp(36px, 4vw, 56px);
  --type-subhead-lg: 32px;
  --type-subhead: 20px;
  --type-body-lg: 20px;
  --type-body: 16px;
  --type-information: clamp(14px, 1.1vw, 16px);
  --type-caption: 11px;

  --weight-display: 400;
  --weight-heading: 400;
  --weight-body: 500;
  --weight-subhead: 600;

  --padding-0: 0px;
  --gap-20: 20px;
  --fs-36: 36px;
  --fs-22: 22px;
  --lh-26_4: 26.4px;
  --lh-16: 16px;

  /* Shared frontend rhythm */
  --layout-max: 1680px;
  --page-gutter: clamp(20px, 2.1vw, 30px);
  --section-space: clamp(72px, 6.7vw, 96px);
  --section-space-lg: clamp(80px, 8.4vw, 120px);
  --section-space-sm: clamp(24px, 3.4vw, 48px);
  --content-gap: clamp(20px, 2.25vw, 32px);
  --card-radius: 6px;
}

@font-face {
  font-family: 'MA Clayton';
  src: url('../fonts/MAClayton-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans Code';
  src: url('../fonts/GoogleSansCode-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans Code';
  src: url('../fonts/GoogleSansCode-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  line-height: 1.5;
  font-family: var(--font-manrope);
  font-size: 16px;
  background-color: var(--color-white);
  color: var(--color-gray-100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { min-width: 0; }
section, article, aside, nav, form { box-sizing: border-box; }

button,
input,
select,
textarea {
  font: inherit;
}

/* Brand type roles: MA Clayton for display, Manrope for reading,
   Google Sans Code for labels, metadata and captions. */
.eyebrow,
.caption,
figcaption,
th {
  font-family: var(--font-google-sans-code);
}

/* ================= HEADER STYLES ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 70px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--Zeus-7);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 11px 28px;
  z-index: 1030;
}

.header-container {
  position: relative;
  width: 100%;
  max-width: 1920px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo-link:hover {
  transform: scale(1.04);
  opacity: 0.88;
}

.logo-link:active {
  transform: scale(0.98);
}

.brand-logo {
  width: 48px;
  height: auto;
  display: block;
  object-fit: contain;
}

.primary-navigation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}

.action-btn {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--color-gray-100);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--color-terracotta);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
}

.action-btn:hover {
  background-color: rgba(30, 34, 43, 0.07);
  transform: scale(1.08);
}

.action-btn:focus-visible,
.nav-toggle:focus-visible,
.nav-panel a:focus-visible,
.language-menu a:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

.icon {
  width: 15px;
  height: 15px;
  display: block;
}

.icon.shopping-cart {
  width: 15px;
  height: 15px;
}

.language-selector {
  position: relative;
}

.language-menu {
  position: absolute;
  top: 31px;
  right: -13px;
  width: 88px;
  padding: 6px 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(30, 34, 43, 0.1);
  border-radius: 7px;
  box-shadow: 0 3px 9px rgba(30, 34, 43, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 2;
}

.language-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu a {
  display: block;
  padding: 8px 10px;
  color: var(--color-gray-100);
  font-family: var(--font-manrope);
  font-size: 10px;
  line-height: 1.3;
  text-decoration: none;
}

.language-menu a:hover {
  background: rgba(30, 34, 43, 0.05);
}

.nav-toggle {
  width: 17px;
  height: 18px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 14px;
  height: 1.5px;
  background-color: var(--color-gray-100);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.nav-panel {
  position: absolute;
  top: 37px;
  right: 0;
  width: max-content;
  padding: 11px 14px 14px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(30, 34, 43, 0.1);
  border-radius: 7px;
  box-shadow: 0 3px 9px rgba(30, 34, 43, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1;
}

.nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, max-content);
  align-items: start;
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-manrope);
}

.nav-links::before {
  content: "";
  position: absolute;
  top: 37px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(30, 34, 43, 0.35);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nav-panel.has-expanded-dropdown .nav-links::before {
  opacity: 1;
}

.nav-group {
  min-width: 0;
}

.nav-item {
  position: relative;
  z-index: 1;
  min-height: 37px;
  padding: 6px 0 13px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 16px;
  font-family: var(--font-manrope);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav-category-row {
  min-height: 37px;
  display: flex;
  align-items: stretch;
}

.nav-category-row .nav-item {
  flex: 1;
  min-width: 0;
  padding-right: 5px;
}

.nav-dropdown-toggle {
  width: 16px;
  min-height: 37px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-gray-100);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-dropdown-toggle:hover {
  color: var(--color-terracotta);
}

.nav-dropdown-toggle:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}

.nav-item:hover {
  color: var(--color-terracotta);
  background: transparent;
}

.nav-item.active {
  color: var(--color-terracotta);
  background: transparent;
  font-weight: 600;
}

.nav-chevron {
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-submenu {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.22s ease, visibility 0.22s;
}

.nav-group.is-expanded .nav-submenu {
  display: block;
  margin-top: 7px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-group.is-expanded .nav-chevron {
  transform: translateY(1px) rotate(225deg);
}

.nav-submenu li + li {
  margin-top: 2px;
}

.nav-submenu a {
  color: var(--color-gray-100);
  display: block;
  width: max-content;
  max-width: none;
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none;
  white-space: normal;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-submenu a:hover {
  color: var(--color-terracotta);
  background: rgba(112, 37, 12, 0.05);
}

.nav-submenu a.active {
  color: var(--color-terracotta);
  background: rgba(112, 37, 12, 0.07);
  font-weight: 600;
}

/* ================= FOOTER STYLES ================= */
.site-footer {
  background-color: var(--color-gray-100);
  color: var(--color-floralwhite);
  font-family: var(--font-google-sans-code);
  font-size: 16px;
  display: flex;
  justify-content: center;
  padding: 35px 30px;
  box-sizing: border-box;
  margin-top: 100px;
}

.footer-inner {
  width: 100%;
  max-width: 1785px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 55px;
}

.footer-main {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-left: 17px;
}

.footer-brand-col {
  flex: 1;
  min-width: 307px;
  max-width: 620px;
  padding-top: 42px;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
  gap: 39px;
  max-width: 252px;
}

.footer-logo {
  width: 239px;
  height: auto;
  object-fit: cover;
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.social-icon.facebook {
  width: 43px;
  height: 43px;
}

.social-icon.instagram {
  width: 39px;
  height: 39px;
}

.social-icon.linkedin {
  width: 35px;
  height: 35px;
}

.footer-nav-col,
.footer-info-col {
  flex: 1;
  min-width: 246px;
  max-width: 249px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-top: 20px;
}

.footer-eyebrow {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 2.52px;
  line-height: 23.1px;
  text-transform: uppercase;
  margin: 0;
  height: 42px;
  display: flex;
  align-items: center;
  font-style: normal;
}

.footer-nav-group+.footer-nav-group {
  margin-top: 24px;
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-manrope);
  font-size: 14px;
  font-weight: 300;
  line-height: 30.6px;
}

.footer-link-list a,
.contact-text-block a,
.address-text {
  color: inherit;
  text-decoration: none;
  font-weight: 300;
  font-family: var(--font-manrope);
  line-height: 30.6px;
  margin: 0;
  overflow-wrap: break-word;
}

.contact-text-block .email-link {
  text-decoration: underline;
}

.footer-bottom {
  font-size: 11px;
  line-height: 23.1px;
  text-align: center;
  max-width: 436px;
}

.footer-bottom p {
  margin: 0;
}

.showroom-address {
  margin-top: 30px;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 900px) {
  .footer-inner {
    gap: 28px;
  }

  .footer-brand-col,
  .footer-nav-col,
  .footer-info-col {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 9px 16px;
  }

  .brand-logo {
    width: 44px;
  }

  .header-actions {
    gap: 14px;
  }

  .nav-panel {
    top: 35px;
    right: 0;
    width: calc(100vw - 32px);
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    padding: 14px 16px 18px;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
  }

  .nav-links::before {
    display: none;
  }

  .nav-item {
    font-size: 16px;
  }

  .nav-submenu a {
    font-size: 14px;
  }

  .language-menu {
    top: 30px;
    right: -19px;
  }
}

/* Hiệu ứng kính mờ (Glassmorphism) mờ ảo ảo sang trọng cho menu cố định */
.site-header.glassmorphism-header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(30, 34, 43, 0.08);
  box-shadow: none;
  transition: background 0.3s ease;
}

/* Header trượt nhẹ xuống + mờ dần khi trang vừa tải xong */
@media (prefers-reduced-motion: no-preference) {
  @keyframes header-fade-in {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .site-header {
    animation: header-fade-in 0.6s ease both;
  }
}

/* Khoảng đệm để nội dung không bị che khuất dưới menu fixed */
.main-content-spacing {
  margin-top: 70px;
}

/* ================= SHARED COMPONENTS (dùng chung nhiều trang) ================= */
.eyebrow {
  letter-spacing: 2.52px;
  line-height: 23px;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-google-sans-code);
}

.eyebrow-row {
  display: flex;
  align-items: center;
}

.heading-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-heading {
  margin: 0;
  width: 100%;
  font-weight: 400;
  font-size: var(--type-heading-sm);
  line-height: 1.1;
  color: var(--color-gray-100);
  font-family: var(--font-manrope);
}

.eyebrow--inverted,
.section-heading--inverted {
  color: var(--color-floralwhite);
}

.subtext-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-subtext {
  width: 100%;
  font-family: var(--font-manrope);
  font-size: var(--type-body-lg);
  line-height: 1.55;
  color: var(--color-slate);
}

.section-subtext--inverted {
  color: rgba(249, 246, 239, 0.9);
}

.btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 10px;
  border: 0;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.64px;
  line-height: 26px;
  font-family: var(--font-manrope);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 34, 43, 0.12);
}

.btn--ghost {
  background-color: transparent;
  border: 1px solid var(--btn-border, var(--color-gray-100));
  color: var(--btn-color, var(--color-gray-100));
}

.btn--ghost:hover {
  background-color: rgba(82, 84, 94, 0.09);
  border-color: var(--color-slate);
}

.btn--primary {
  background-color: var(--btn-bg, var(--color-teal));
  color: var(--btn-color, var(--color-floralwhite));
}

.btn--primary:hover {
  background-color: var(--btn-bg-hover, var(--color-teal-hover));
}

.btn--compact {
  height: 45px;
  padding: 0 24px;
  border-radius: 8px;
}

/* ================= FOOTER RESPONSIVE ================= */

@media (max-width: 1100px) {
  .site-footer {
    padding: 45px 24px 28px;
  }

  .footer-main {
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px 32px;
  }

  .footer-brand-col,
  .footer-nav-col,
  .footer-info-col {
    width: auto;
    min-width: 0;
    max-width: none;
    margin-top: 0;
  }

  .footer-brand-col {
    padding-top: 0;
  }
}

@media (max-width: 650px) {
  .site-footer {
    padding: 40px 20px 24px;
    margin-top: 60px;
    font-size: 14px;
  }

  .footer-inner {
    gap: 35px;
  }

  .footer-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .footer-brand-col,
  .footer-nav-col,
  .footer-info-col {
    width: 100%;
  }

  .brand-wrapper {
    max-width: 240px;
    gap: 25px;
  }

  .footer-logo {
    width: 210px;
  }

  .social-icons {
    justify-content: flex-start;
    gap: 28px;
  }

  .footer-nav-col,
  .footer-info-col {
    margin-top: 0;
  }

  .footer-eyebrow {
    height: auto;
    min-height: 32px;
    font-size: 13px;
    letter-spacing: 1.8px;
  }

  .footer-link-list,
  .footer-link-list a,
  .contact-text-block a,
  .address-text {
    font-size: 14px;
    line-height: 26px;
  }

  .footer-nav-group+.footer-nav-group {
    margin-top: 22px;
  }

  .footer-address-block {
    margin: 0 !important;
  }

  .footer-address-block+.footer-address-block {
    margin-top: 24px !important;
  }

  .footer-bottom {
    max-width: 100%;
    font-size: 10px;
    line-height: 18px;
  }
}

@media (max-width: 380px) {
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-logo {
    width: 190px;
  }

  .social-icon.facebook {
    width: 36px;
    height: 36px;
  }

  .social-icon.instagram {
    width: 33px;
    height: 33px;
  }

  .social-icon.linkedin {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 650px) {
  .footer-brand-col {
    display: flex;
    justify-content: center;
  }

  .brand-wrapper {
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    display: block;
    margin: 0 auto;
  }

  .social-icons {
    width: auto;
    justify-content: center;
    gap: 26px;
  }
}

@media (max-width: 767px) {
  .section-subtext {
    font-size: var(--type-body);
  }
}
