/* 
========================================================================================

                                    CODE BỞI TRẦN GIA BẢO

========================================================================================
*/

/* 
=================================== HIỆU ỨNG PRELOAD ==================================
*/

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
}

.loader-icon {
  font-size: 3rem;
  color: var(--accent);
  animation: coffee-bounce 1s ease-in-out infinite alternate;
}

.loader-icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes coffee-bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-20px);
  }
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-text {
  color: white;
  margin-top: 20px;
  letter-spacing: 5px;
  font-weight: 600;
}

/* 
=================================== DÙNG CHỦ ĐỀ CHUNG ==================================
*/

:root {
  /* MÀU CHỦ ĐẠO */
  --primary: #4b2c20;
  --accent: #d4a373;
  --bg: #fdf8f5;
  --text: #2d2424;
  --white: #ffffff;

  /* Light mode */
  --bg: #fdfcfb;
  --text: #2c1b12;
  --navbar: rgba(255, 255, 255, 0.9);
  --card: #ffffff;

  /* Coffee accent */
  --accent-dark: #b08968;

  /* Header */
  --header-surface: linear-gradient(
    135deg,
    rgba(45, 27, 19, 0.96),
    rgba(75, 44, 32, 0.9)
  );
  --header-surface-scrolled: linear-gradient(
    135deg,
    rgba(38, 22, 15, 0.98),
    rgba(66, 37, 26, 0.95)
  );
  --header-border: rgba(255, 255, 255, 0.16);
  --header-border-strong: rgba(212, 163, 115, 0.42);
  --header-shadow: 0 10px 30px rgba(28, 16, 11, 0.26);
  --header-action-bg: rgba(255, 255, 255, 0.08);
  --header-action-bg-hover: rgba(212, 163, 115, 0.24);
  --dark-page-bg: #121212;
  --dark-popup-bg: #ffffff;

  /* Motion */
  --motion-fast: 180ms;
  --motion-base: 320ms;
  --motion-slow: 560ms;
  --motion-ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ease-snappy: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-stagger-step: 90ms;

  /* Bootstrap mapping */
  --bs-primary: #4b2c20;
  --bs-secondary: #d4a373;
  --bs-body-bg: #fdfcfb;
  --bs-body-color: #2c1b12;
  --bs-link-color: #6b4226;
  --bs-link-hover-color: #4b2c20;
  /* Fonts */
  --font-heading: "Playfair Display", serif;
  --font-body: "Montserrat", sans-serif;
}

/* Tiện ích ẩn/hiện phần tử */
.hidden {
  display: none !important;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ================================== NỀN TỐI ==================================  */
body.dark {
  --bg: #121212;
  --text: #f5f5f5;
  --navbar: rgba(75, 44, 32, 0.95);
  --card: #1e1e1e;
  --dark-page-bg: linear-gradient(90deg, #171314 0%, #211b1c 100%);
  --dark-popup-bg: linear-gradient(90deg, #171314 0%, #211b1c 100%);
  --header-surface: linear-gradient(
    135deg,
    rgba(24, 16, 12, 0.96),
    rgba(53, 33, 24, 0.92)
  );
  --header-surface-scrolled: linear-gradient(
    135deg,
    rgba(22, 14, 10, 0.98),
    rgba(45, 27, 19, 0.96)
  );
  --header-border: rgba(255, 255, 255, 0.12);
  --header-border-strong: rgba(212, 163, 115, 0.5);
  --header-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  --header-action-bg: rgba(255, 255, 255, 0.07);
  --header-action-bg-hover: rgba(212, 163, 115, 0.28);
  --bs-body-bg: #171314;
  --bs-body-color: #f5f5f5;
  --bs-link-color: #e1b183;
  --bs-link-hover-color: #f0c89f;
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

body.dark {
  background: var(--dark-page-bg);
}

.navbar {
  background: var(--navbar);
}

.card,
.product-item {
  background: var(--card);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--header-border);
  border-radius: 12px;
  background: var(--header-action-bg);
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theme-toggle:hover {
  background: var(--header-action-bg-hover);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:where(
    a,
    button,
    input,
    textarea,
    select,
    .btn,
    .icon-btn,
    .menu-card,
    .card,
    .product-item,
    .trust-item,
    .contact-card,
    .home-btn,
    .social-links a
  ) {
  transition-timing-function: var(--motion-ease-standard);
  transition-duration: var(--motion-base);
}

:where(.menu-card, .card, .product-item, .trust-item, .contact-card, .home-btn) {
  will-change: transform, box-shadow, filter;
}

:where(a, button, .btn, .icon-btn, .home-btn):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 
====================================== TOP MARQUEE ======================================
*/
.top-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 163, 115, 0.3);
  background: linear-gradient(90deg, #5a3527 0%, #4b2c20 50%, #3f2419 100%);
  color: #f8ebe0;
}

.top-marquee__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: marquee-slide 24s linear infinite;
  will-change: transform;
}

.top-marquee__group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 0;
}

.top-marquee__item {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.35px;
  opacity: 0.96;
  white-space: nowrap;
}

.top-marquee__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin: 0 1.25rem;
  background: rgba(255, 255, 255, 0.62);
  flex: 0 0 auto;
}

.top-image-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 42px;
  border-top: 1px solid rgba(212, 163, 115, 0.22);
  border-bottom: 1px solid rgba(212, 163, 115, 0.22);
  background: linear-gradient(90deg, #f6ece4 0%, #fdf6f2 50%, #f6ece4 100%);
  padding: 10px 0;
}

.top-image-marquee + .footer {
  margin-top: 0;
}

.top-image-marquee::before,
.top-image-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42px;
  z-index: 2;
  pointer-events: none;
}

.top-image-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(246, 236, 228, 1), rgba(246, 236, 228, 0));
}

.top-image-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(246, 236, 228, 1), rgba(246, 236, 228, 0));
}

.top-image-marquee__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: marquee-image-slide 52s linear infinite;
  will-change: transform;
}

.top-image-marquee__group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 0 12px;
}

.top-image-marquee__item {
  position: relative;
  width: 230px;
  height: 128px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(75, 44, 32, 0.12);
  box-shadow: 0 8px 20px rgba(75, 44, 32, 0.14);
  flex: 0 0 auto;
  transform: translateZ(0);
  transition:
    transform 320ms var(--motion-ease-standard),
    box-shadow 320ms var(--motion-ease-standard),
    filter 320ms var(--motion-ease-standard);
}

.top-image-marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 460ms var(--motion-ease-standard);
}

.top-image-marquee__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(75, 44, 32, 0.2);
}

.top-image-marquee__item:hover img {
  transform: scale(1.06);
}

@keyframes marquee-slide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee-image-slide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

body.dark .top-marquee {
  border-bottom-color: rgba(212, 163, 115, 0.35);
  background: linear-gradient(90deg, #2a1912 0%, #24160f 50%, #1d120d 100%);
  color: #f4ddc8;
}

body.dark .top-image-marquee {
  border-top-color: rgba(212, 163, 115, 0.22);
  border-bottom-color: rgba(212, 163, 115, 0.22);
  background: linear-gradient(90deg, #221710 0%, #1c130e 50%, #221710 100%);
}

body.dark .top-image-marquee::before {
  background: linear-gradient(90deg, rgba(34, 23, 16, 1), rgba(34, 23, 16, 0));
}

body.dark .top-image-marquee::after {
  background: linear-gradient(270deg, rgba(34, 23, 16, 1), rgba(34, 23, 16, 0));
}

body.dark .top-image-marquee__item {
  border-color: rgba(240, 215, 189, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
}

@media (max-width: 768px) {
  .top-marquee__track {
    animation-duration: 18s;
  }

  .top-marquee__group {
    padding: 7px 0;
  }

  .top-marquee__item {
    font-size: 0.74rem;
    letter-spacing: 0.25px;
  }

  .top-marquee__dot {
    margin: 0 0.9rem;
  }

  .top-image-marquee {
    margin-top: 30px;
    padding: 8px 0;
  }

  .top-image-marquee__track {
    animation-duration: 40s;
  }

  .top-image-marquee__group {
    gap: 8px;
    padding: 0 8px;
  }

  .top-image-marquee__item {
    width: 176px;
    height: 98px;
    border-radius: 10px;
  }

  .top-image-marquee::before,
  .top-image-marquee::after {
    width: 24px;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition:
    opacity var(--motion-slow) var(--motion-ease-standard),
    transform var(--motion-slow) var(--motion-ease-standard);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal-on-scroll.reveal-delay-1 {
  transition-delay: calc(var(--motion-stagger-step) * 1);
}

.reveal-on-scroll.reveal-delay-2 {
  transition-delay: calc(var(--motion-stagger-step) * 2);
}

.reveal-on-scroll.reveal-delay-3 {
  transition-delay: calc(var(--motion-stagger-step) * 3);
}

/* 
========================================== PHẦN HEADER ==================================
*/
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--header-surface);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
  backdrop-filter: blur(14px) saturate(140%);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 163, 115, 0.55) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.header-container {
  max-width: 1240px;
  margin: auto;
  min-height: 80px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: nowrap;
  transition:
    min-height 0.35s ease,
    padding 0.35s ease;
}

.header .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  flex-shrink: 0;
  white-space: nowrap;
}

.header .logo img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1.5px solid rgba(212, 163, 115, 0.7);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease;
}

.header .logo:hover img {
  transform: translateY(-2px) scale(1.03);
}

.header .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header .logo-text strong {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.header .logo-text small {
  margin-top: 2px;
  font-size: 0.67rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.nav {
  flex: 1;
  min-width: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: var(--primary);
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(212, 163, 115, 0.32);
}

.header.scrolled {
  background: var(--header-surface-scrolled);
  border-bottom-color: var(--header-border-strong);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.header.scrolled .header-container {
  min-height: 74px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  white-space: nowrap;
}

.icon-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--header-border);
  background: var(--header-action-bg);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.icon-btn i {
  font-size: 0.84rem;
}

.icon-btn:hover {
  background: var(--header-action-bg-hover);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

.icon-btn.auth-btn.logged-in {
  border-color: rgba(212, 163, 115, 0.7);
  background: rgba(212, 163, 115, 0.2);
}

.icon-btn.cart {
  padding-right: 10px;
}

/* Số lượng giỏ hàng */
.icon-btn.cart span:last-child {
  background: var(--accent);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
}
/* ========================================== PHẦN THÂN ================================== */

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* PHẦN NÚT BẤM */
.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--white);
  color: #000;
  transform: translateY(-3px);
}

.btn-secondary {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: #000;
  transform: translateY(-3px);
}

/* ========================================== PHẦN FOOTER ================================== */
.footer {
  position: relative;
  margin-top: 72px;
  padding: 72px 0 24px;
  color: #f3ece6;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(212, 163, 115, 0.2),
      transparent 42%
    ),
    radial-gradient(
      circle at 90% 0%,
      rgba(255, 255, 255, 0.08),
      transparent 28%
    ),
    linear-gradient(160deg, #25160f 0%, #3a2418 45%, #4b2c20 100%);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 163, 115, 0.7) 50%,
    transparent 100%
  );
}

.footer-container {
  max-width: 1240px;
  margin: auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-col {
  min-width: 0;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand-link img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  border: 1.5px solid rgba(212, 163, 115, 0.7);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.footer-logo {
  font-family: var(--font-heading);
  color: #fff8f1;
  font-size: 1.42rem;
  margin-bottom: 2px;
}

.footer-brand-link p {
  font-size: 0.72rem;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 18px;
}

.footer-badges,
.footer-links,
.footer-contact,
.footer-social-note {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer-badges i {
  color: var(--accent);
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 0.96rem;
  color: #f8d7b7;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-contact i {
  width: 14px;
  margin-top: 4px;
  color: var(--accent);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-branch-link {
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 115, 0.62);
  color: #ffe8d2 !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: rgba(212, 163, 115, 0.14);
  transition: all 0.25s ease;
}

.footer-branch-link:hover {
  background: var(--accent);
  color: var(--primary) !important;
}

.footer-social-note li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer .social-links {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer .social-links a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.footer .social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1240px;
  margin: 36px auto 0;
  padding: 18px 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.74);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* CĂN CHỈNH KÍCH THƯỚC PHÙ HỢP VỚI CẢ MOBILE */

/* ===== NÚT HAMBURGER (ẨN TRÊN DESKTOP) ===== */
.menu-toggle {
  display: none;
  background: var(--header-action-bg);
  border: 1px solid var(--header-border);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  color: var(--white);
  transition: all 0.25s ease;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.menu-toggle:hover {
  background: var(--header-action-bg-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ===== TABLET (max-width: 992px) ===== */
@media (max-width: 992px) {
  .header-container {
    padding: 10px 15px;
  }

  .header .logo img {
    width: 60px;
    height: 60px;
  }

  .header .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .icon-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
  /* HEADER */
  .header-container {
    padding: 8px 12px;
  }

  .header .logo img {
    width: 45px;
    height: 45px;
  }

  .header .logo {
    font-size: 1rem;
    gap: 8px;
  }

  .header .logo span {
    display: none;
  }

  /* Hiện nút hamburger */
  .menu-toggle {
    display: flex;
  }

  /* Ẩn nav mặc định, hiện khi active */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(75, 44, 32, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    list-style: none;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav.active .nav-links li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav.active .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav.active .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav.active .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-links a {
    font-size: 22px;
    padding: 18px 30px;
    display: block;
    letter-spacing: 3px;
  }

  /* Nút đóng menu */
  .menu-toggle.active i::before {
    content: "\f00d"; /* fa-xmark */
  }

  .menu-toggle {
    z-index: 9999;
  }

  /* Header actions */
  .header-actions {
    gap: 8px;
  }

  .icon-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .icon-btn span:first-of-type {
    display: none;
  }

  .icon-btn.cart {
    font-size: 16px;
    padding: 6px 8px;
  }

  .icon-btn.cart span:last-child {
    font-size: 12px;
    height: 20px;
    padding: 0 5px;
    margin-left: 2px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  /* FOOTER */
  .footer {
    padding: 46px 0 16px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 0 15px;
    gap: 22px;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-col h4 {
    font-size: 0.92rem;
    margin-bottom: 12px;
  }

  .footer .social-links a {
    width: 38px;
    height: 38px;
  }

  .footer-bottom {
    margin-top: 24px;
    font-size: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 15px 0;
  }
}

/* ===== MOBILE NHỎ (max-width: 480px) ===== */
@media (max-width: 480px) {
  .header-container {
    padding: 6px 10px;
  }

  .header .logo img {
    width: 38px;
    height: 38px;
  }

  .icon-btn {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 15px;
  }

  .icon-btn.cart {
    font-size: 14px;
  }

  .theme-toggle {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .header-actions {
    gap: 5px;
  }

  .footer {
    padding: 30px 0 12px;
  }

  .footer-bottom-links {
    gap: 12px;
  }
}

.logo-footer-huit {
  width: 300px;
  height: 60px;
}

/* 
========================================================================================

                                KẾT THÚC CODE BỞI TRẦN GIA BẢO

========================================================================================
*/

/* 
========================================================================================

                                CODE BỞI TRẦN DƯƠNG GIA BẢO

========================================================================================
*/

/* ===== POPUP THÔNG BÁO (TOAST NOTIFICATION) ===== */
.gibor-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gibor-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.gibor-popup-box {
  background: var(--card, #fff);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.3s ease;
}

.gibor-popup-overlay.show .gibor-popup-box {
  transform: scale(1) translateY(0);
}

.gibor-popup-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.gibor-popup-icon.success {
  color: #27ae60;
}

.gibor-popup-icon.error {
  color: #e74c3c;
}

.gibor-popup-icon.warning {
  color: #f39c12;
}

.gibor-popup-title {
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 1.4rem;
  color: var(--primary, #4b2c20);
  margin-bottom: 8px;
}

.gibor-popup-message {
  font-family: var(--font-body, "Montserrat", sans-serif);
  font-size: 0.95rem;
  color: var(--text, #2d2424);
  margin-bottom: 24px;
  line-height: 1.5;
}

.gibor-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.gibor-popup-btn {
  padding: 10px 28px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body, "Montserrat", sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gibor-popup-btn.primary {
  background: var(--primary, #4b2c20);
  color: #fff;
}

.gibor-popup-btn.primary:hover {
  background: var(--accent-dark, #b08968);
}

.gibor-popup-btn.secondary {
  background: #e0d6d0;
  color: var(--primary, #4b2c20);
}

.gibor-popup-btn.secondary:hover {
  background: #d0c4bc;
}

/* ===== USER DROPDOWN POPUP ===== */
.user-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.user-dropdown-overlay.show {
  opacity: 1;
  visibility: visible;
}

.user-dropdown {
  position: absolute;
  top: 70px;
  right: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  min-width: 260px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-10px);
  transition: transform 0.2s ease;
}

.user-dropdown-overlay.show .user-dropdown {
  transform: translateY(0);
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e0db;
  margin-bottom: 12px;
}

.user-dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary, #4b2c20);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-body, "Montserrat", sans-serif);
}

.user-dropdown-info {
  flex: 1;
}

.user-dropdown-name {
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #4b2c20;
}

.user-dropdown-email {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}

.user-dropdown-points {
  font-size: 0.8rem;
  color: #e6a817;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.user-dropdown-points i {
  font-size: 0.75rem;
}

.user-dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-dropdown-menu li {
  margin-bottom: 4px;
}

.user-dropdown-menu li a,
.user-dropdown-menu li button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 8px;
  font-family: var(--font-body, "Montserrat", sans-serif);
  font-size: 0.9rem;
  color: #2d2424;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}

.user-dropdown-menu li a:hover,
.user-dropdown-menu li button:hover {
  background: #f5ebe4;
}

.user-dropdown-menu li button.logout-btn {
  color: #e74c3c;
}

.user-dropdown-menu li button.logout-btn:hover {
  background: #fde8e8;
}

/* ===== AUTH LINK STYLE KHI ĐÃ ĐĂNG NHẬP ===== */
#authLink.logged-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  height: 36px;
  box-sizing: border-box;
}

#authLink.logged-in:hover {
  background: var(--accent-dark, #b08968);
}

#authLink.logged-in i {
  font-size: 0.9rem;
}

/* ===== ORDER HISTORY POPUP ===== */
.order-history-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.order-history-overlay.show {
  opacity: 1;
  visibility: visible;
}

.order-history-box {
  background: var(--card, #fff);
  border-radius: 16px;
  padding: 28px;
  max-width: 550px;
  width: 92%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.3s ease;
}

.order-history-overlay.show .order-history-box {
  transform: scale(1) translateY(0);
}

.order-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent, #d4a373);
}

.order-history-header h3 {
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 1.3rem;
  color: var(--primary, #4b2c20);
  margin: 0;
}

.order-history-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.order-history-close:hover {
  background: #f0e8e2;
  color: var(--primary, #4b2c20);
}

.order-history-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.order-history-empty i {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
  color: #ccc;
}

.order-card {
  background: #faf6f3;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid var(--accent, #d4a373);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-card-code {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary, #4b2c20);
}

.order-card-date {
  font-size: 0.8rem;
  color: #999;
}

.order-card-items {
  margin-bottom: 10px;
}

.order-card-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text, #2d2424);
  gap: 10px;
  border-bottom: 1px dashed #e8e0d8;
}

.order-card-item:last-child {
  border-bottom: none;
}

.order-card-item-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.order-card-item-name {
  font-weight: 600;
  white-space: nowrap;
}

.order-card-item-detail-scroll {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #d4a373 transparent;
  padding-bottom: 2px;
}

.order-card-item-detail-scroll::-webkit-scrollbar {
  height: 3px;
}

.order-card-item-detail-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.order-card-item-detail-scroll::-webkit-scrollbar-thumb {
  background: #d4a373;
  border-radius: 3px;
}

.order-card-item-detail-inner {
  color: #888;
  font-size: 0.78rem;
  display: inline-block;
}

.order-card-item-detail {
  color: #888;
  font-size: 0.8rem;
  min-width: 60px;
  text-align: center;
}

.order-card-item-price {
  font-weight: 600;
  min-width: 80px;
  text-align: right;
  color: var(--primary, #4b2c20);
}

/* Thông tin người đặt hàng */
.order-card-customer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 8px 10px;
  margin-bottom: 10px;
  background: #f0e8e2;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #666;
}

.order-card-customer span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.order-card-customer i {
  color: var(--accent, #d4a373);
  font-size: 0.75rem;
  width: 14px;
  text-align: center;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #e8e0db;
  font-size: 0.85rem;
}

.order-card-meta {
  color: #888;
}

.order-card-total {
  font-weight: 700;
  color: var(--primary, #4b2c20);
  font-size: 1rem;
}

/* Scrollbar đẹp cho order history */
.order-history-box::-webkit-scrollbar {
  width: 6px;
}

.order-history-box::-webkit-scrollbar-track {
  background: transparent;
}

.order-history-box::-webkit-scrollbar-thumb {
  background: var(--accent, #d4a373);
  border-radius: 3px;
}

/* ===== PROFILE POPUP ===== */
.profile-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.profile-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.profile-popup-box {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  max-width: 480px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.3s ease;
}

.profile-popup-overlay.show .profile-popup-box {
  transform: scale(1) translateY(0);
}

/* Header */
.profile-popup-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e8e0db;
  position: relative;
}

.profile-popup-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #4b2c20;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  flex-shrink: 0;
}

.profile-popup-header-info h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #4b2c20;
}

.profile-popup-header-info p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: #888;
}

.profile-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #999;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.profile-popup-close:hover {
  background: #f0e8e2;
  color: #4b2c20;
}

/* Tabs */
.profile-tabs {
  display: flex;
  border-bottom: 2px solid #f0e8e2;
  padding: 0 24px;
}

.profile-tab {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-tab.active {
  color: #4b2c20;
}

.profile-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--accent, #d4a373);
  border-radius: 2px;
}

.profile-tab:hover {
  color: #4b2c20;
}

/* Tab Content */
.profile-tab-content {
  display: none;
  padding: 20px 24px 24px;
}

.profile-tab-content.active {
  display: block;
}

/* Form Groups */
.profile-form-group {
  margin-bottom: 16px;
}

.profile-form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b2c20;
  margin-bottom: 6px;
  font-family: "Montserrat", sans-serif;
}

.profile-form-group label i {
  color: var(--accent, #d4a373);
  width: 16px;
  text-align: center;
  font-size: 0.8rem;
}

.profile-verify-badge {
  margin-left: auto;
  font-size: 0.7rem;
  color: #e67e22;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}

.profile-verify-badge i {
  color: #e67e22 !important;
  font-size: 0.7rem !important;
}

.profile-form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0d5ce;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: #2d2424;
  background: #faf8f6;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-sizing: border-box;
}

.profile-form-group input:focus {
  outline: none;
  border-color: var(--accent, #d4a373);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.15);
  background: #fff;
}

.profile-form-group input::placeholder {
  color: #bbb;
}

/* Save Button */
.profile-save-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #4b2c20;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.profile-save-btn:hover {
  background: #3a2118;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(75, 44, 32, 0.3);
}

.profile-save-btn.security {
  background: #e67e22;
}

.profile-save-btn.security:hover {
  background: #cf6d17;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* Security Note */
.profile-security-note {
  font-size: 0.78rem;
  color: #888;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fdf6ec;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #fde8c8;
}

.profile-security-note i {
  color: #e67e22;
  flex-shrink: 0;
}

/* Scrollbar */
.profile-popup-box::-webkit-scrollbar {
  width: 6px;
}

.profile-popup-box::-webkit-scrollbar-track {
  background: transparent;
}

.profile-popup-box::-webkit-scrollbar-thumb {
  background: var(--accent, #d4a373);
  border-radius: 3px;
}

/* ===== OTP VERIFICATION POPUP ===== */
.gibor-otp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gibor-otp-overlay.show {
  opacity: 1;
  visibility: visible;
}

.gibor-otp-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 400px;
  width: 92%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.3s ease;
}

.gibor-otp-overlay.show .gibor-otp-box {
  transform: scale(1) translateY(0);
}

.gibor-otp-box.shake {
  animation: otpShake 0.5s ease;
}

@keyframes otpShake {
  0%,
  100% {
    transform: scale(1) translateX(0);
  }
  20% {
    transform: scale(1) translateX(-10px);
  }
  40% {
    transform: scale(1) translateX(10px);
  }
  60% {
    transform: scale(1) translateX(-6px);
  }
  80% {
    transform: scale(1) translateX(6px);
  }
}

/* OTP Header */
.otp-header {
  margin-bottom: 20px;
}

.otp-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a373, #b08968);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
}

.otp-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: #4b2c20;
  margin: 0 0 6px;
}

.otp-header p {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

.otp-header p strong {
  color: #4b2c20;
}

/* Demo hint */
.otp-demo-hint {
  background: #eaf7ed;
  border: 1px solid #b8e6c4;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #2d7a3f;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.otp-demo-hint strong {
  font-size: 1rem;
  letter-spacing: 3px;
}

/* Firebase hint - Email đã được gửi qua Firebase */
.otp-firebase-hint {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #1565c0;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.otp-firebase-hint i {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* OTP Input Fields */
.otp-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.otp-digit {
  width: 46px;
  height: 54px;
  border: 2px solid #e0d5ce;
  border-radius: 12px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #4b2c20;
  background: #faf8f6;
  transition: all 0.2s ease;
  outline: none;
}

.otp-digit:focus {
  border-color: var(--accent, #d4a373);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
  background: #fff;
  transform: translateY(-2px);
}

.otp-separator {
  font-size: 1.3rem;
  color: #ccc;
  font-weight: 600;
  margin: 0 2px;
}

/* Timer */
.otp-timer {
  font-size: 0.8rem;
  color: #999;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.otp-timer i {
  color: var(--accent, #d4a373);
}

/* Error */
.otp-error {
  background: #fde8e8;
  border: 1px solid #f5bcbc;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #c0392b;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Buttons */
.otp-verify-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #4b2c20;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.otp-verify-btn:hover {
  background: #3a2118;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(75, 44, 32, 0.3);
}

.otp-resend-btn {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--accent, #d4a373);
  border-radius: 10px;
  background: transparent;
  color: #4b2c20;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.otp-resend-btn:hover {
  background: var(--accent, #d4a373);
  color: #fff;
}

.otp-cancel-btn {
  width: 100%;
  padding: 8px;
  border: none;
  background: none;
  color: #999;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s;
}

.otp-cancel-btn:hover {
  color: #4b2c20;
}

/* 
========================================================================================

              DARK THEME - POPUP OVERRIDES - CODE BỞI TRẦN DƯƠNG GIA BẢO
              
========================================================================================
*/

/* ===== Gibor Popup (thông báo) ===== */
body.dark .gibor-popup-box {
  background: var(--dark-popup-bg);
}

body.dark .gibor-popup-title {
  color: var(--accent, #d4a373);
}

body.dark .gibor-popup-message {
  color: #e0e0e0;
}

body.dark .gibor-popup-btn.secondary {
  background: #3a3a3a;
  color: #e0e0e0;
}

body.dark .gibor-popup-btn.secondary:hover {
  background: #4a4a4a;
}

/* ===== User Dropdown ===== */
body.dark .user-dropdown {
  background: var(--dark-popup-bg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.dark .user-dropdown-header {
  border-bottom-color: #3a3a3a;
}

body.dark .user-dropdown-name {
  color: #f5f5f5;
}

body.dark .user-dropdown-email {
  color: #aaa;
}

body.dark .user-dropdown-menu li a,
body.dark .user-dropdown-menu li button {
  color: #e0e0e0;
}

body.dark .user-dropdown-menu li a:hover,
body.dark .user-dropdown-menu li button:hover {
  background: #3a3a3a;
}

body.dark .user-dropdown-menu li button.logout-btn {
  color: #e74c3c;
}

body.dark .user-dropdown-menu li button.logout-btn:hover {
  background: #3a2020;
}

/* ===== Order History Popup ===== */
body.dark .order-history-box {
  background: var(--dark-popup-bg);
}

body.dark .order-history-header h3 {
  color: var(--accent, #d4a373);
}

body.dark .order-history-close {
  color: #aaa;
}

body.dark .order-history-close:hover {
  background: #3a3a3a;
  color: #f5f5f5;
}

body.dark .order-card {
  background: #333;
}

body.dark .order-card-code {
  color: var(--accent, #d4a373);
}

body.dark .order-card-item {
  color: #e0e0e0;
}

body.dark .order-card-customer {
  background: #3a3a3a;
  color: #bbb;
}

body.dark .order-card-item-price {
  color: var(--accent, #d4a373);
}

body.dark .order-card-footer {
  border-top-color: #444;
}

body.dark .order-card-total {
  color: var(--accent, #d4a373);
}

body.dark .order-card-date {
  color: #999;
}

body.dark .order-card-meta {
  color: #999;
}

/* ===== Profile Popup ===== */
body.dark .profile-popup-box {
  background: var(--dark-popup-bg);
}

body.dark .profile-popup-header {
  border-bottom-color: #3a3a3a;
}

body.dark .profile-popup-header-info h3 {
  color: #f5f5f5;
}

body.dark .profile-popup-header-info p {
  color: #aaa;
}

body.dark .profile-popup-close {
  color: #aaa;
}

body.dark .profile-popup-close:hover {
  background: #3a3a3a;
  color: #f5f5f5;
}

body.dark .profile-tabs {
  border-bottom-color: #3a3a3a;
}

body.dark .profile-tab {
  color: #888;
}

body.dark .profile-tab.active {
  color: var(--accent, #d4a373);
}

body.dark .profile-tab:hover {
  color: var(--accent, #d4a373);
}

body.dark .profile-form-group label {
  color: #ddd;
}

body.dark .profile-form-group input {
  background: #333;
  border-color: #444;
  color: #f5f5f5;
}

body.dark .profile-form-group input:focus {
  background: #3a3a3a;
  border-color: var(--accent, #d4a373);
}

body.dark .profile-form-group input::placeholder {
  color: #777;
}

body.dark .profile-verify-badge {
  color: #e67e22;
}

body.dark .profile-security-note {
  background: #332b1e;
  border-color: #4a3a20;
  color: #ddd;
}

body.dark .profile-save-btn {
  background: var(--accent, #d4a373);
  color: #1e1e1e;
}

body.dark .profile-save-btn:hover {
  background: var(--accent-dark, #b08968);
}

body.dark .profile-save-btn.security {
  background: #e67e22;
  color: #fff;
}

body.dark .profile-save-btn.security:hover {
  background: #cf6d17;
}

/* ===== OTP Popup ===== */
body.dark .gibor-otp-box {
  background: var(--dark-popup-bg);
}

body.dark .otp-header h3 {
  color: #f5f5f5;
}

body.dark .otp-header p {
  color: #aaa;
}

body.dark .otp-header p strong {
  color: var(--accent, #d4a373);
}

body.dark .otp-demo-hint {
  background: #1e3325;
  border-color: #2a5a38;
  color: #7cd497;
}

body.dark .otp-firebase-hint {
  background: #1a2332;
  border-color: #2d4a6e;
  color: #64b5f6;
}

body.dark .otp-digit {
  background: #333;
  border-color: #444;
  color: #f5f5f5;
}

body.dark .otp-digit:focus {
  background: #3a3a3a;
  border-color: var(--accent, #d4a373);
}

body.dark .otp-separator {
  color: #666;
}

body.dark .otp-timer {
  color: #aaa;
}

body.dark .otp-error {
  background: #3a2020;
  border-color: #5a2828;
  color: #f5a0a0;
}

body.dark .otp-resend-btn {
  color: #e0e0e0;
  border-color: var(--accent, #d4a373);
}

body.dark .otp-resend-btn:hover {
  background: var(--accent, #d4a373);
  color: #1e1e1e;
}

body.dark .otp-cancel-btn {
  color: #888;
}

body.dark .otp-cancel-btn:hover {
  color: #ddd;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .top-marquee__track {
    animation: none !important;
    width: 100%;
    justify-content: center;
  }

  .top-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .top-image-marquee__track {
    animation: none !important;
    width: 100%;
    justify-content: center;
  }

  .top-image-marquee__group[aria-hidden="true"] {
    display: none;
  }
}

/* 
========================================================================================

                                KẾT THÚC CODE BỞI TRẦN DƯƠNG GIA BẢO

========================================================================================
*/
