/*
Theme Name: Bình Minh Hoa
Theme URI: https://cothoanina.com.vn
Author: Antigravity AI
Author URI: https://cothoanina.com.vn
Description: Theme WordPress chuyên nghiệp Nina Flowers / Bình Minh Hoa. Tích hợp 32 REST APIs cho Mobile Admin App (Vouchers, 8 Mùa Lễ, Doanh Thu, Thống Kê, Cài Đặt, Phân Quyền).
Version: 101.0.0
License: GNU General Public License v2 or later
Text Domain: binh-minh-hoa
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* ===== Z-INDEX LADDER SYSTEM ===== */
  --z-bg: 0;
  --z-seasonal-bg: 1;
  --z-content: 10;
  --z-cards: 15;
  --z-particles: 20;
  --z-highlight: 25;
  --z-header: 100;
  --z-menu: 200;
  --z-overlay: 500;
  --z-modal: 600;
  --z-toast: 950;
  --z-fab: 800;

  --primary: #e63946;
  --primary-hover: #d62828;
  --primary-light: #fbeef0;
  --secondary: #457b9d;
  --dark: #1d3557;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); background-color: var(--light); color: var(--gray-800); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }

/* WP Core Requirements */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }

/* ===== FRONTEND STYLES ===== */
/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0f2040;
  --blue-800: #1a3560;
  --blue-700: #1e4080;
  --blue-600: #1d5bb3;
  --blue-500: #2979d8;
  --blue-400: #5ba3f5;
  --blue-100: #e8f1fc;
  --blue-50:  #f0f6ff;

  --gold:    #c89b3c;
  --gold-lt: #f5e4b4;

  --pink:    #f06292;
  --pink-lt: #fce4ec;

  --white:   #ffffff;
  --gray-50: #f8f9fa;
  --gray-100:#f1f3f5;
  --gray-200:#e9ecef;
  --gray-400:#adb5bd;
  --gray-600:#6c757d;
  --gray-800:#343a40;
  --dark:    #0d1b2a;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(29,91,179,.08);
  --shadow-md: 0 8px 24px rgba(29,91,179,.14);
  --shadow-lg: 0 20px 60px rgba(29,91,179,.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --transition: .3s cubic-bezier(.4,0,.2,1);
  --transition-slow: .6s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-center { text-align: center; }
.section { padding: 5rem 0; }
.section--alt { background: linear-gradient(to bottom, var(--white) 0%, var(--blue-50) 40px, var(--blue-50) calc(100% - 40px), var(--white) 100%); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

.animate-fade-up { opacity: 0; animation: fadeUp .8s var(--transition-slow) forwards; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--blue-900);
  line-height: 1.25;
  margin-bottom: .8rem;
}
.section-sub {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29,91,179,.35);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50px;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,50,.82) 0%,
    rgba(29,91,179,.55) 60%,
    rgba(10,22,50,.4) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin-left: 3.5vw;
  margin-right: auto;
  padding: 8.5rem 1.5rem 5.5rem;
}
.hero__sub {
  color: #38bdf8;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7.5vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.3rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero__desc {
  color: rgba(255,255,255,.92);
  font-size: 1.22rem;
  line-height: 1.75;
  max-width: 650px;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 22px; height: 38px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 11px;
  position: relative;
}
.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--white);
  border-radius: 50%;
  animation: scrollBounce 1.8s infinite;
}

/* ===== CATEGORIES ===== */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}
.category-card:hover::before { opacity: 1; }
.category-card:hover { border-color: var(--blue-600); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-card:hover .category-card__title,
.category-card:hover .category-card__desc { color: var(--white); }

.category-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}
.category-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: .5rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.category-card__desc {
  font-size: .88rem;
  color: var(--gray-600);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

/* ===== FEATURES BAR ===== */
.features-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-size: .9rem;
  font-weight: 500;
}
.feature-icon { font-size: 1.2rem; }

/* ===== PRODUCTS ===== */
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-card__img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.product-card__img {
  width: 100%; height: 240px;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card__img { transform: scale(1.07); }

.product-card__badge {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--pink);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 100px;
}
.product-card__badge--blue { background: var(--blue-600); }
.product-card__badge--gold { background: var(--gold); }

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,32,64,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.product-card:hover .product-card__overlay { opacity: 1; }

.product-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--blue-900);
  margin-bottom: .4rem;
  font-weight: 600;
  min-height: 2.7rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__desc {
  font-size: .82rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: .8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: .5rem;
}
.product-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-600);
}

/* ===== WHY US ===== */
.why-us__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-us__content .section-title { text-align: left; }
.why-us__text { color: var(--gray-600); line-height: 1.8; margin-bottom: 2rem; }
.why-us__stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
.stat-item { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-600);
  line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--gray-600); margin-top: .25rem; }

.why-us__features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.feature-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: var(--gray-800);
}
.feature-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.why-us__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.why-us__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.why-us__badge-float {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge-float__number { font-size: 1.6rem; font-weight: 700; color: var(--blue-700); }
.badge-float__text { font-size: .75rem; color: var(--gray-600); }

/* ===== BLOG ===== */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card__img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card__img { transform: scale(1.06); }
.blog-card__tag {
  position: absolute;
  top: .75rem; left: .75rem;
  background: rgba(29,91,179,.9);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 100px;
}
.blog-card__body { padding: 1.5rem; }
.blog-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--blue-900);
  line-height: 1.4;
  margin-bottom: .6rem;
  font-weight: 600;
}
.blog-card__excerpt { font-size: .88rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 1rem; }
.blog-card__link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: var(--transition);
}
.blog-card__link:hover { color: var(--blue-800); letter-spacing: .03em; }

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}
.contact__info-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--blue-900);
  margin-bottom: 1.5rem;
}
.contact__detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.contact__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.contact__detail strong { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-800); margin-bottom: .15rem; }
.contact__detail p { font-size: .9rem; color: var(--gray-600); }

.contact__socials { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  transition: var(--transition);
}
.social-btn:hover { background: var(--blue-600); color: var(--white); transform: translateY(-3px); }

/* Form */
.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(41,121,216,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { text-align: center; font-size: .8rem; color: var(--gray-600); margin-top: .75rem; }


/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid #22c55e;
  transform: translateX(150%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  z-index: var(--z-toast, 700);
  min-width: 300px;
}
.toast.show { transform: translateX(0); }
.toast__icon { font-size: 1.3rem; }
.toast__msg { font-size: .92rem; font-weight: 500; color: var(--gray-800); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem; left: 2rem;
  width: 44px; height: 44px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: var(--z-fab, 800);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-800); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .why-us__inner { grid-template-columns: 1fr; gap: 3rem; }
  .why-us__image { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(15,32,64,.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav__link { padding: .9rem 1rem; border-radius: var(--radius-sm); }
  .nav__dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255,255,255,.05);
    box-shadow: none;
    border-radius: 0;
    animation: none;
  }
  .dropdown__item { color: rgba(255,255,255,.7); }
  .dropdown__item:hover { background: rgba(255,255,255,.1); color: var(--white); }

  .hero__title { font-size: 2.8rem; }
  .hero__desc { font-size: 1rem; }
  .hero__actions { flex-direction: column; }

  .categories__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .products__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .blog__grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact__form { padding: 1.75rem; }
  .why-us__stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .categories__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.2rem; }
  .why-us__badge-float { left: .5rem; bottom: .5rem; }
}

/* ===== VOUCHER SHOWCASE (Front page) ===== */
.vouchers-showcase {
  position: relative;
  background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 50%, #fce7f3 100%);
}
.vouchers-showcase::before,
.vouchers-showcase::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 40px;
  pointer-events: none;
}
.vouchers-showcase::before {
  top: 0;
  background: linear-gradient(to bottom, var(--white) 0%, transparent 100%);
}
.vouchers-showcase::after {
  bottom: 0;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
}

.voucher-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.vs-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transition: transform .3s, box-shadow .3s;
  background: var(--white);
}
.vs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}

.vs-card__ticket {
  display: flex;
  position: relative;
  color: var(--white);
  min-height: 100px;
}
.vs-card__ticket::before,
.vs-card__ticket::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  top: 50%; transform: translateY(-50%);
  z-index: 2;
}
.vs-card__ticket::before { left: -11px; }
.vs-card__ticket::after  { right: -11px; }

/* Type theming */
.vs-buy_get  .vs-card__ticket { background: linear-gradient(135deg, #f59e0b, #d97706); }
.vs-percent  .vs-card__ticket { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.vs-fixed    .vs-card__ticket { background: linear-gradient(135deg, #22c55e, #16a34a); }
.vs-free_ship .vs-card__ticket { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.vs-card__left {
  flex: 1;
  padding: 1.25rem 1rem 1.25rem 1.75rem;
  display: flex; flex-direction: column; justify-content: center;
}
.vs-card__icon { font-size: 1.8rem; margin-bottom: .3rem; }
.vs-card__code {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem; font-weight: 900;
  letter-spacing: .12em;
  background: rgba(255,255,255,.2);
  padding: .15rem .5rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: .3rem;
}
.vs-card__name {
  font-size: .9rem;
  opacity: .92;
  font-weight: 600;
}

.vs-card__right {
  min-width: 110px;
  padding: 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-left: 2px dashed rgba(255,255,255,.35);
  text-align: center;
}
.vs-card__value {
  font-size: 1.3rem; font-weight: 900; line-height: 1.2;
  white-space: pre-line;
}
.vs-card__unit  { font-size: .72rem; opacity: .85; margin-top: .15rem; }

.vs-card__body {
  padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
}
.vs-card__condition {
  font-size: .82rem; color: #6b7280;
  flex: 1;
}
.vs-card__expiry {
  font-size: .75rem;
  color: #9ca3af;
  white-space: nowrap;
}

.vs-card__copy-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--blue-600);
  color: var(--white);
  border: none; border-radius: 8px;
  padding: .45rem .85rem;
  font-size: .82rem; font-weight: 700;
  cursor: pointer;
  transition: background .25s, transform .15s;
  white-space: nowrap;
}
.vs-card__copy-btn:hover { background: var(--blue-700); transform: scale(1.05); }
.vs-card__copy-btn.copied {
  background: #16a34a;
  pointer-events: none;
}

.vs-empty {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
  font-size: .95rem;
  grid-column: 1 / -1;
}

/* ===== FLOATING VOUCHER BOX ===== */
.vf-box {
  position: fixed;
  top: 100px; left: 24px;
  z-index: var(--z-fab, 800);
  width: 230px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateX(120%) scale(.8);
  opacity: 0;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s;
  pointer-events: none;
}
.vf-box.visible {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.vf-box.dismissed {
  transform: translateX(120%) scale(.8) !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* Pulsing glow border */
.vf-box__pulse {
  display: none;
}
@keyframes vfSpin {
  100% { transform: rotate(360deg); }
}

.vf-box__close {
  position: absolute; top: 8px; right: 8px;
  background: var(--gray-100);
  border: none; color: var(--gray-600);
  width: 24px; height: 24px; border-radius: 50%;
  font-size: .75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; z-index: 5;
}
.vf-box__close:hover { background: var(--gray-200); color: var(--gray-900); }

.vf-box__header { padding: .4rem .8rem .2rem; text-align: center; }
.vf-box__tag {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white; font-size: .65rem; font-weight: 800;
  padding: .15rem .5rem; border-radius: 100px; letter-spacing: .08em;
  animation: vfTagPulse 2s ease-in-out infinite;
}
@keyframes vfTagPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 8px rgba(245,158,11,.5); }
}

.vf-box__carousel {
  padding: .4rem .6rem; min-height: 70px;
  position: relative; overflow: hidden;
}
.vf-slide {
  display: flex; flex-direction: column; align-items: center;
  gap: .25rem; text-align: center; color: var(--gray-800);
  position: absolute; inset: 0; padding: .4rem .6rem;
  justify-content: center; opacity: 0;
  transform: translateX(20px);
  transition: opacity .4s, transform .4s; cursor: pointer;
}
.vf-slide.active { opacity: 1; transform: translateX(0); position: relative; }
.vf-slide__icon { font-size: 1.2rem; }
.vf-slide__code {
  font-family: 'Courier New', monospace;
  font-size: .9rem; font-weight: 900; letter-spacing: .08em;
  background: var(--gray-100); color: var(--gray-900);
  padding: .15rem .5rem; border-radius: 6px;
  animation: vfCodeGlow 2.5s ease-in-out infinite;
}
@keyframes vfCodeGlow {
  0%, 100% { background: var(--gray-100); }
  50% { background: var(--gray-200); }
}
.vf-slide__value {
  font-size: .95rem; font-weight: 900; color: #fbbf24;
  text-shadow: 0 0 8px rgba(251,191,36,.4);
}
.vf-slide__name { font-size: .7rem; opacity: .85; }
.vf-slide__copy { font-size: .6rem; opacity: .7; margin-top: .1rem; }

.vf-box__dots {
  display: flex; justify-content: center; gap: 5px; padding: .25rem 0 .4rem;
}
.vf-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gray-300); transition: all .3s;
}
.vf-dot.active { background: #fbbf24; width: 16px; border-radius: 3px; }

.vf-box__cta {
  display: block; width: calc(100% - 1.2rem); margin: 0 auto .6rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white; border: none; padding: .4rem;
  border-radius: 8px; font-size: .75rem; font-weight: 700;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  animation: vfCtaPulse 2.5s ease-in-out infinite;
}
.vf-box__cta:hover { transform: scale(1.04); box-shadow: 0 0 12px rgba(245,158,11,.5); }
@keyframes vfCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.4); }
  50% { box-shadow: 0 0 0 5px rgba(245,158,11,0); }
}

@media (max-width: 480px) {
  .vf-box { width: 250px; top: 80px; left: 16px; }
}

/* ===== SHOPPING CART UI ===== */
.floating-cart-btn {
  position: fixed;
  bottom: 80px; /* Above back to top */
  right: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 99;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: .9rem;
  opacity: .92;
  font-weight: 600;
}

.vs-card__right {
  min-width: 110px;
  padding: 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-left: 2px dashed rgba(255,255,255,.35);
  text-align: center;
}
.vs-card__value {
  font-size: 1.3rem; font-weight: 900; line-height: 1.2;
  white-space: pre-line;
}
.vs-card__unit  { font-size: .72rem; opacity: .85; margin-top: .15rem; }

.vs-card__body {
  padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
}
.vs-card__condition {
  font-size: .82rem; color: #6b7280;
  flex: 1;
}
.vs-card__expiry {
  font-size: .75rem;
  color: #9ca3af;
  white-space: nowrap;
}

.vs-card__copy-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--blue-600);
  color: var(--white);
  border: none; border-radius: 8px;
  padding: .45rem .85rem;
  font-size: .82rem; font-weight: 700;
  cursor: pointer;
  transition: background .25s, transform .15s;
  white-space: nowrap;
}
.vs-card__copy-btn:hover { background: var(--blue-700); transform: scale(1.05); }
.vs-card__copy-btn.copied {
  background: #16a34a;
  pointer-events: none;
}

.vs-empty {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
  font-size: .95rem;
  grid-column: 1 / -1;
}

/* ===== FLOATING VOUCHER BOX ===== */
.vf-box {
  position: fixed;
  top: 100px; left: 24px;
  z-index: var(--z-fab, 800);
  width: 230px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateX(120%) scale(.8);
  opacity: 0;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s;
  pointer-events: none;
}
.vf-box.visible {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.vf-box.dismissed {
  transform: translateX(120%) scale(.8) !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* Pulsing glow border */
.vf-box__pulse {
  display: none;
}
@keyframes vfSpin {
  100% { transform: rotate(360deg); }
}

.vf-box__close {
  position: absolute; top: 8px; right: 8px;
  background: var(--gray-100);
  border: none; color: var(--gray-600);
  width: 24px; height: 24px; border-radius: 50%;
  font-size: .75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; z-index: 5;
}
.vf-box__close:hover { background: var(--gray-200); color: var(--gray-900); }

.vf-box__header { padding: .4rem .8rem .2rem; text-align: center; }
.vf-box__tag {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white; font-size: .65rem; font-weight: 800;
  padding: .15rem .5rem; border-radius: 100px; letter-spacing: .08em;
  animation: vfTagPulse 2s ease-in-out infinite;
}
@keyframes vfTagPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 8px rgba(245,158,11,.5); }
}

.vf-box__carousel {
  padding: .4rem .6rem; min-height: 70px;
  position: relative; overflow: hidden;
}
.vf-slide {
  display: flex; flex-direction: column; align-items: center;
  gap: .25rem; text-align: center; color: var(--gray-800);
  position: absolute; inset: 0; padding: .4rem .6rem;
  justify-content: center; opacity: 0;
  transform: translateX(20px);
  transition: opacity .4s, transform .4s; cursor: pointer;
}
.vf-slide.active { opacity: 1; transform: translateX(0); position: relative; }
.vf-slide__icon { font-size: 1.2rem; }
.vf-slide__code {
  font-family: 'Courier New', monospace;
  font-size: .9rem; font-weight: 900; letter-spacing: .08em;
  background: var(--gray-100); color: var(--gray-900);
  padding: .15rem .5rem; border-radius: 6px;
  animation: vfCodeGlow 2.5s ease-in-out infinite;
}
@keyframes vfCodeGlow {
  0%, 100% { background: var(--gray-100); }
  50% { background: var(--gray-200); }
}
.vf-slide__value {
  font-size: .95rem; font-weight: 900; color: #fbbf24;
  text-shadow: 0 0 8px rgba(251,191,36,.4);
}
.vf-slide__name { font-size: .7rem; opacity: .85; }
.vf-slide__copy { font-size: .6rem; opacity: .7; margin-top: .1rem; }

.vf-box__dots {
  display: flex; justify-content: center; gap: 5px; padding: .25rem 0 .4rem;
}
.vf-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gray-300); transition: all .3s;
}
.vf-dot.active { background: #fbbf24; width: 16px; border-radius: 3px; }

.vf-box__cta {
  display: block; width: calc(100% - 1.2rem); margin: 0 auto .6rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white; border: none; padding: .4rem;
  border-radius: 8px; font-size: .75rem; font-weight: 700;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  animation: vfCtaPulse 2.5s ease-in-out infinite;
}
.vf-box__cta:hover { transform: scale(1.04); box-shadow: 0 0 12px rgba(245,158,11,.5); }
@keyframes vfCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.4); }
  50% { box-shadow: 0 0 0 5px rgba(245,158,11,0); }
}

@media (max-width: 480px) {
  .vf-box { width: 250px; top: 80px; left: 16px; }
}

/* ===== SHOPPING CART UI ===== */
.floating-cart-btn {
  position: fixed;
  bottom: 80px; /* Above back to top */
  right: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 99;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-cart-btn:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}
.floating-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fbbf24; /* yellow-400 */
  color: #000;
  font-size: 0.8rem;
  font-weight: 900;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Cart Modal */
.cart-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-modal, 600);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cart-modal-content {
  background: white;
  width: 100%;
  max-width: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cart-modal-overlay.active .cart-modal-content {
  transform: translateX(0);
}
.cart-modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-modal-header h3 {
  font-size: 1.25rem;
  margin: 0;
}
.cart-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
}
.cart-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 1rem;
}
.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  word-break: break-word;
}
.cart-item-price {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--gray-300);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--gray-100); }
.cart-item-remove {
  color: var(--red-500);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
}
.cart-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.cart-voucher-wrap {
  display: flex; gap: 0.5rem; margin-bottom: 1rem;
}
.cart-voucher-wrap input {
  flex: 1; padding: 0.6rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.9rem;
}
.cart-voucher-wrap button {
  padding: 0 1rem; background: var(--gray-800); color: white; border: none; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cart-empty-state {
  text-align: center;
  padding: 3rem 0;
  color: var(--gray-500);
}


/* ===== ADMIN STYLES ===== */
/* ===== RESET & VARS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0f2040;
  --blue-800: #1a3560;
  --blue-700: #1e4080;
  --blue-600: #1d5bb3;
  --blue-500: #2979d8;
  --blue-400: #5ba3f5;
  --blue-100: #e8f1fc;
  --blue-50:  #f0f6ff;

  --sidebar-bg: #0d1b2a;
  --sidebar-text: rgba(255,255,255,.75);
  --sidebar-active: rgba(41,121,216,.25);
  --sidebar-border: rgba(255,255,255,.06);

  --white:   #ffffff;
  --gray-50: #f8f9fa;
  --gray-100:#f1f3f5;
  --gray-200:#e9ecef;
  --gray-300:#dee2e6;
  --gray-400:#ced4da;
  --gray-500:#adb5bd;
  --gray-600:#6c757d;
  --gray-700:#495057;
  --gray-800:#343a40;
  --dark:    #0d1b2a;

  --green:  #22c55e;
  --red:    #ef4444;
  --orange: #f97316;
  --purple: #a855f7;
  --gold:   #f59e0b;

  --font: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', serif;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --sidebar-w: 260px;
  --topbar-h: 64px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-800);
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ===== LOGIN ===== */
.login-overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay, 500);
  background: linear-gradient(135deg, var(--blue-900), var(--dark));
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-logo {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.login-logo span { font-family: var(--font-serif); font-size: 1.4rem; color: var(--blue-900); }
.login-title { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: .35rem; }
.login-sub { font-size: .88rem; color: var(--gray-600); margin-bottom: 1.75rem; }
.login-error { color: var(--red); font-size: .85rem; margin-bottom: .75rem; }
.login-hint { font-size: .8rem; color: var(--gray-500); margin-top: 1rem; }
.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-right: 2.5rem; }
.input-icon { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); }

/* ===== LAYOUT ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  min-height: 100vh;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}
.sidebar.closed { transform: translateX(-100%); }

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--sidebar-border);
}
.brand-icon { font-size: 2rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--white); }
.brand-role { font-size: .72rem; color: var(--blue-400); }

.sidebar__nav { padding: 1rem .75rem; flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.nav-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  color: rgba(255,255,255,.35); text-transform: uppercase;
  padding: .5rem .5rem .25rem;
}
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500;
  color: var(--sidebar-text);
  transition: var(--transition);
  position: relative;
}
.nav-item:hover { background: var(--sidebar-active); color: var(--white); }
.nav-item.active { background: var(--sidebar-active); color: var(--white); border-left: 3px solid var(--blue-400); }
.nav-icon { font-size: 1.1rem; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--blue-600);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}

/* MAIN */
.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin var(--transition);
}
.admin-main.expanded { margin-left: 0; }

/* TOPBAR */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar__left { display: flex; align-items: center; gap: 1rem; }
.sidebar-toggle {
  font-size: 1.3rem;
  padding: .35rem;
  color: var(--gray-600);
  transition: var(--transition);
  border-radius: var(--radius-sm);
}
.sidebar-toggle:hover { background: var(--gray-100); color: var(--dark); }
.breadcrumb { font-size: .9rem; font-weight: 600; color: var(--gray-700); }

.topbar__right { display: flex; align-items: center; gap: 1.25rem; }
.topbar__time { font-size: .82rem; color: var(--gray-500); }
.topbar__avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}

/* CONTENT */
.admin-content { flex: 1; padding: 2rem 1.75rem; }
.panel { }
.panel.hidden { display: none; }

.panel-header { margin-bottom: 2rem; }
.panel-header--row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.panel-title { font-family: var(--font-serif); font-size: 1.7rem; color: var(--dark); margin-bottom: .3rem; }
.panel-sub { color: var(--gray-600); font-size: .9rem; }
.panel-header select {
  border-radius: 30px;
  padding: .6rem 1rem;
  border: 1px solid var(--gray-300);
  background-color: var(--gray-50);
  font-family: inherit;
  font-size: .9rem;
}
.panel-header select:focus {
  background-color: var(--white);
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(41,121,216,.1);
  outline: none;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card__icon { font-size: 2.2rem; }
.stat-card__num { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat-card__label { font-size: .78rem; color: var(--gray-600); margin-top: .25rem; }
.stat-card--blue .stat-card__num { color: var(--blue-600); }
.stat-card--green .stat-card__num { color: var(--green); }
.stat-card--purple .stat-card__num { color: var(--purple); }
.stat-card--orange .stat-card__num { color: var(--orange); }

/* DASHBOARD GRID */
.dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; }
.dash-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.dash-card__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--gray-200);
}
.dash-card__header h3 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.dash-link { font-size: .82rem; color: var(--blue-600); font-weight: 500; }
.dash-link:hover { text-decoration: underline; }

.recent-products { display: flex; flex-direction: column; gap: .75rem; }
.recent-item {
  display: flex; align-items: center; gap: .9rem;
  padding: .6rem;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
}
.recent-item img { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; }
.recent-item-info { flex: 1; }
.recent-item-name { font-size: .88rem; font-weight: 600; color: var(--dark); }
.recent-item-price { font-size: .8rem; color: var(--blue-600); font-weight: 600; }

.quick-guide { display: flex; flex-direction: column; gap: .85rem; }
.guide-item { display: flex; align-items: flex-start; gap: .85rem; font-size: .9rem; color: var(--gray-700); }
.guide-num {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}

/* ===== TABLE TOOLBAR ===== */
.table-toolbar {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
  align-items: center;
}
.search-wrap {
  position: relative; flex: 1; min-width: 220px;
}
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1rem; color: var(--gray-400); }
.search-wrap input { 
  padding-left: 2.6rem; 
  border-radius: 30px; 
  border: 1px solid var(--gray-300);
  padding-top: .6rem; padding-bottom: .6rem;
  background-color: var(--gray-50);
}
.search-wrap input:focus {
  background-color: var(--white);
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(41,121,216,.1);
}
.table-toolbar select { 
  min-width: 180px; 
  border-radius: 30px;
  padding: .6rem 1rem;
  border: 1px solid var(--gray-300);
  background-color: var(--gray-50);
}
.table-toolbar select:focus {
  background-color: var(--white);
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(41,121,216,.1);
}
.table-toolbar .btn { border-radius: 30px; padding: .6rem 1.4rem; }

/* ===== DATA TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--gray-200); }
.data-table {
  width: 100%; border-collapse: collapse;
  background: var(--white);
  font-size: .88rem;
}
.data-table thead th {
  background: var(--gray-50);
  padding: .85rem 1rem;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}
/* Column widths for Product Table */
#productTable th:nth-child(1) { width: 60px; }  /* Ảnh */
#productTable th:nth-child(2) { width: 20%; }    /* Tên */
#productTable th:nth-child(3) { width: auto; }   /* Mô tả */
#productTable th:nth-child(4) { width: 110px; }  /* Giá */
#productTable th:nth-child(5) { width: 90px; }   /* Badge */
#productTable th:nth-child(6) { width: 110px; }  /* Thao tác */

.data-table tbody td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--blue-50); }

.table-img {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--gray-200);
}
.table-img-placeholder {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border: 2px solid var(--gray-200);
}
.table-name { font-weight: 600; color: var(--dark); word-break: break-word; white-space: normal; }
.table-desc {
  color: var(--gray-600);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.table-price { font-weight: 700; color: var(--blue-600); white-space: nowrap; }
.badge-pill {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-pink  { background: #fce4ec; color: #c2185b; }
.badge-blue  { background: var(--blue-100); color: var(--blue-700); }
.badge-gold  { background: #fef3c7; color: #92400e; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red   { background: #fee2e2; color: #991b1b; }

.action-btns { display: flex; gap: .5rem; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-icon--edit { background: var(--blue-100); color: var(--blue-700); }
.btn-icon--edit:hover { background: var(--blue-600); color: var(--white); }
.btn-icon--del { background: #fee2e2; color: var(--red); }
.btn-icon--del:hover { background: var(--red); color: var(--white); }

/* Responsive table */
@media (max-width: 1024px) {
  .data-table { min-width: 600px; }
  .data-table tbody td { padding: .65rem .6rem; font-size: .82rem; }
  .data-table thead th { padding: .65rem .6rem; }
}


.empty-td { text-align: center; }
.empty-state { color: var(--gray-500); font-size: .9rem; padding: 1rem; }
.empty-state-big {
  display: flex; flex-direction: column; align-items: center;
  gap: .75rem; padding: 3rem;
  color: var(--gray-500);
}
.empty-state-big span { font-size: 3rem; }
.empty-state-big p { font-size: 1rem; font-weight: 500; }

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}
.cat-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-md); }
.cat-card__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.cat-card__name { font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.cat-card__desc { font-size: .85rem; color: var(--gray-600); }
.cat-card__actions {
  position: absolute; top: .75rem; right: .75rem;
  display: flex; gap: .4rem;
  opacity: 0; transition: var(--transition);
}
.cat-card:hover .cat-card__actions { opacity: 1; }

/* ===== SETTINGS ===== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.settings-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.settings-card--full { grid-column: 1 / -1; }
.settings-card__title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 1.25rem; }
.stats-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.save-success { font-size: .85rem; color: var(--green); margin-top: .75rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: .4rem;
}
.required { color: var(--red); }
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(41,121,216,.12);
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* Custom Dropdown UI */
.custom-dropdown {
  position: relative;
  min-width: 150px;
  user-select: none;
}
.custom-dropdown-selected {
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 0.55rem 2.5rem 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.custom-dropdown-selected:hover { border-color: var(--gray-400); }
.custom-dropdown.active .custom-dropdown-selected {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.custom-dropdown-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.custom-dropdown-options.hidden { display: none; }
.custom-dropdown-item {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.2s;
}
.custom-dropdown-item:hover {
  background: var(--gray-50);
  color: var(--blue-600);
}
.custom-dropdown-item.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-600);
  font-weight: 600;
}

/* Toggle checkbox */
.toggle-label { display: flex; align-items: center; gap: .75rem; cursor: pointer; font-size: .9rem; }
.toggle-label input[type="checkbox"] { display: none; }
.toggle-switch {
  width: 42px; height: 24px;
  background: var(--gray-300);
  border-radius: 12px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}
.toggle-switch::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-label input:checked + .toggle-switch { background: var(--blue-500); }
.toggle-label input:checked + .toggle-switch::before { transform: translateX(18px); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  box-shadow: 0 4px 18px rgba(41,121,216,.35);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 5px 20px rgba(41,121,216,.4);
}
.btn--ghost { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-200); }
.btn--ghost:hover { background: var(--gray-200); }
.btn--outline-blue { background: transparent; border-color: var(--blue-400); color: var(--blue-600); }
.btn--outline-blue:hover { background: var(--blue-50); }
.btn--danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--danger:hover { background: #dc2626; }
.btn--sm { padding: .45rem 1rem; font-size: .82rem; }
.btn--block { width: 100%; justify-content: center; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(13,27,42,.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 780px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s ease;
}
.modal--sm { max-width: 440px; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--gray-200);
}
.modal__title { font-family: var(--font-serif); font-size: 1.25rem; color: var(--dark); font-weight: 700; }
.modal__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal__close:hover { background: var(--gray-200); color: var(--dark); }

.modal__body { flex: 1; overflow-y: auto; padding: 1.75rem; }
.modal__footer {
  display: flex; align-items: center; justify-content: flex-end; gap: .75rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--gray-200);
}

/* MODAL GRID */
.modal-grid { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.upload-col {}
.upload-label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-700); margin-bottom: .5rem; }

.upload-area {
  width: 100%;
  aspect-ratio: 3/4;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  background: var(--gray-50);
  position: relative;
}
.upload-area:hover { border-color: var(--blue-400); background: var(--blue-50); }
.upload-area.dragover { border-color: var(--blue-500); background: var(--blue-50); }
.upload-preview { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.upload-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-align: center; padding: 1rem;
  color: var(--gray-600); font-size: .85rem;
  pointer-events: none;
}
.upload-icon { font-size: 2.5rem; }

/* ===== TOAST ===== */
.toast-admin {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: var(--z-toast, 700);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: .85rem 1.25rem;
  display: flex; align-items: center; gap: .65rem;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--green);
  font-size: .9rem; font-weight: 500;
  color: var(--dark);
  transform: translateX(120%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  min-width: 280px;
}
.toast-admin.show { transform: translateX(0); }

/* ===== RESPONSIVE DESKTOP VS MOBILE SEPARATION ===== */
@media (min-width: 1025px) {
  .products__grid { grid-template-columns: repeat(4, 1fr) !important; gap: 1.25rem !important; }
  .categories__grid { grid-template-columns: repeat(4, 1fr) !important; gap: 1.25rem !important; }
  .product-card__img-wrap, .product-card__img { height: 240px !important; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .categories__grid { grid-template-columns: repeat(2, 1fr) !important; }
  .products__grid { grid-template-columns: repeat(3, 1fr) !important; gap: 1rem !important; }
  .blog__grid { grid-template-columns: repeat(2, 1fr) !important; }
  .product-card__img-wrap, .product-card__img { height: 200px !important; }
}

@media (max-width: 768px) {
  .categories__grid { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem !important; }
  .products__grid { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem !important; }
  .product-card__img-wrap, .product-card__img { height: 155px !important; }
  .product-card__body { padding: .75rem !important; display: flex !important; flex-direction: column !important; }
  .product-card__name {
    font-size: .88rem !important;
    margin-bottom: .25rem !important;
    line-height: 1.35 !important;
    min-height: 2.4rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .product-card__desc { font-size: .75rem !important; -webkit-line-clamp: 2 !important; margin-bottom: .5rem !important; }
  .product-card__footer { 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: stretch !important; 
    gap: 6px !important; 
    margin-top: auto !important; 
    width: 100% !important;
  }
  .product-card__price { 
    font-size: .95rem !important; 
    font-weight: 800 !important; 
    text-align: center !important; 
    width: 100% !important;
    white-space: nowrap !important;
  }
  .product-card__footer .btn { 
    width: 100% !important; 
    padding: .45rem .6rem !important; 
    font-size: .82rem !important; 
    font-weight: 700 !important;
    text-align: center !important; 
    justify-content: center !important; 
    display: flex !important; 
    align-items: center !important; 
    border-radius: 8px !important;
  }

  .blog__grid { grid-template-columns: 1fr !important; max-width: 500px !important; margin: 0 auto !important; }
  .contact__grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .contact__form { padding: 1.75rem !important; }
}

@media (max-width: 480px) {
  .section { padding: 2.5rem 0 !important; }
  .categories__grid { grid-template-columns: repeat(2, 1fr) !important; gap: .6rem !important; }
  .products__grid { grid-template-columns: repeat(2, 1fr) !important; gap: .6rem !important; }
  .product-card__img-wrap, .product-card__img { height: 145px !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .stats-inputs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .modal-grid { grid-template-columns: 1fr; }
  .upload-area { aspect-ratio: 16/9; max-height: 200px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-content { padding: 1.25rem 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .chpwd-wrap { grid-template-columns: 1fr; }
  .order-summary-bar { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .order-summary-bar { grid-template-columns: 1fr 1fr; }
}

/* ===== NAV BADGE VARIANTS ===== */
.nav-badge--orange { background: var(--orange) !important; }

/* ===== ORDER SUMMARY BAR ===== */
.order-summary-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.order-summary-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.order-summary-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.os-num { font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--dark); }
.os-label { font-size: .75rem; color: var(--gray-600); margin-top: .3rem; text-align: center; }
.os-pending   .os-num { color: var(--orange); }
.os-confirmed .os-num { color: var(--blue-600); }
.os-done      .os-num { color: var(--green); }
.os-cancelled .os-num { color: var(--red); }

/* ===== ORDER STATUS BADGES ===== */
.status-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .7rem;
  border-radius: 100px;
  font-size: .75rem; font-weight: 700;
  white-space: nowrap;
}
.status-pending    { background: #fff3e0; color: #e65100; }
.status-confirmed  { background: var(--blue-100); color: var(--blue-700); }
.status-delivering { background: #e8f5e9; color: #2e7d32; }
.status-done       { background: #d1fae5; color: #065f46; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }

.status-select {
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  padding: .2rem .65rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}
.status-select:focus { box-shadow: 0 0 0 3px rgba(41,121,216,.15); }

.order-note {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gray-600);
  font-size: .85rem;
}

.recent-order-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  margin-bottom: .6rem;
  font-size: .88rem;
}
.recent-order-item:last-child { margin-bottom: 0; }
.roi-name { font-weight: 600; color: var(--dark); }
.roi-meta { font-size: .78rem; color: var(--gray-500); }

/* ===== CHANGE PASSWORD ===== */
.chpwd-wrap {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 2rem;
  align-items: start;
}
.chpwd-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.chpwd-icon { font-size: 3.5rem; text-align: center; margin-bottom: 1rem; }
.chpwd-title {
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 700;
  color: var(--dark); text-align: center; margin-bottom: .4rem;
}
.chpwd-desc { font-size: .88rem; color: var(--gray-600); text-align: center; margin-bottom: 1.75rem; }
.chpwd-hint { text-align: center; font-size: .8rem; color: var(--gray-500); margin-top: 1rem; }
.chpwd-hint code {
  background: var(--gray-100); padding: .1rem .4rem;
  border-radius: 4px; font-family: monospace;
}

.pwd-input-wrap { position: relative; }
.pwd-input-wrap input { padding-right: 2.8rem; }
.pwd-toggle {
  position: absolute; right: .6rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 1rem; color: var(--gray-500);
  transition: var(--transition); line-height: 1;
}
.pwd-toggle:hover { color: var(--blue-600); }

.pwd-strength-wrap { margin-top: .6rem; display: flex; align-items: center; gap: .75rem; }
.pwd-strength-bar { flex: 1; height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.pwd-strength-fill { height: 100%; border-radius: 3px; transition: width .4s ease, background .4s ease; width: 0; }
.pwd-strength-label { font-size: .8rem; font-weight: 600; white-space: nowrap; }

.pwd-rules { background: var(--gray-50); border-radius: var(--radius-sm); padding: 1rem; margin-top: .75rem; }
.pwd-rules-title { font-size: .8rem; font-weight: 700; color: var(--gray-700); margin-bottom: .5rem; }
.pwd-rule {
  font-size: .82rem; color: var(--gray-500); margin-bottom: .3rem;
  display: flex; align-items: center; gap: .4rem;
  transition: var(--transition);
}
.pwd-rule.valid { color: var(--green); font-weight: 600; }
.rule-icon { font-style: normal; width: 14px; }

.pwd-error {
  background: #fee2e2; border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: .65rem 1rem; font-size: .85rem; color: #dc2626; margin-top: .5rem;
}

.pwd-log-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.pwd-log-card h4 {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gray-200);
}
.pwd-log-item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .85rem; border-radius: var(--radius-sm);
  background: var(--gray-50); margin-bottom: .6rem;
}
.pwd-log-item:last-child { margin-bottom: 0; }
.pwd-log-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-400); margin-top: .35rem; flex-shrink: 0; }
.pwd-log-time { font-size: .8rem; color: var(--gray-500); }
.pwd-log-msg  { font-size: .88rem; font-weight: 500; color: var(--dark); }

/* ===== NAV BADGE PURPLE ===== */
.nav-badge--purple { background: var(--purple) !important; }

/* ===== TOPBAR USER INFO ===== */
.topbar__user-info {
  display: flex; align-items: center; gap: .65rem;
}
.topbar__user-detail {
  display: flex; flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.topbar__username {
  font-size: .88rem; font-weight: 700;
  color: var(--dark);
}
.topbar__role {
  font-size: .72rem; color: var(--gray-500);
}

/* ===== USERS MANAGEMENT ===== */
.users-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 1024px) { .users-layout { grid-template-columns: 1fr; } }

.user-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.user-form-title {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 2px solid var(--blue-100);
}
.field-hint { font-size: .75rem; color: var(--gray-500); margin-top: .3rem; display: block; }
.user-form-error {
  background: #fee2e2; border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: .6rem .9rem; font-size: .85rem; color: #dc2626;
  margin-top: .5rem;
}

/* Role radio selector */
.role-select-wrap { display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }
.role-option { display: flex; cursor: pointer; }
.role-option input[type="radio"] { display: none; }
.role-option-card {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  flex: 1;
}
.role-option input:checked + .role-option-card {
  border-color: var(--blue-500);
  background: var(--blue-50);
}
.role-option-card:hover { border-color: var(--blue-400); }
.role-icon-big { font-size: 1.5rem; }
.role-option-card strong { display: block; font-size: .9rem; color: var(--dark); }
.role-option-card small { font-size: .78rem; color: var(--gray-500); }

/* Users list card */
.users-list-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.users-list-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 2px solid var(--blue-100);
}
.users-list-header h3 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.user-count-badge {
  background: var(--blue-100); color: var(--blue-700);
  padding: .2rem .7rem; border-radius: 100px;
  font-size: .78rem; font-weight: 700;
}

/* User card in list */
.user-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.user-card:last-child { margin-bottom: 0; }
.user-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.user-card--admin { border-left: 4px solid var(--gold); }
.user-card--user  { border-left: 4px solid var(--blue-400); }
.user-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  flex-shrink: 0;
}
.user-card--admin .user-card__avatar { background: linear-gradient(135deg,#f59e0b,#d97706); color: var(--white); }
.user-card--user  .user-card__avatar { background: linear-gradient(135deg,var(--blue-500),var(--blue-700)); color: var(--white); }
.user-card__info { flex: 1; min-width: 0; }
.user-card__displayname { font-size: .95rem; font-weight: 700; color: var(--dark); }
.user-card__username { font-size: .8rem; color: var(--gray-500); }
.user-card__meta { font-size: .75rem; color: var(--gray-400); margin-top: .2rem; }
.user-card__actions { display: flex; gap: .5rem; align-items: center; }

/* Role badge */
.role-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .65rem; border-radius: 100px;
  font-size: .75rem; font-weight: 700;
}
.role-admin { background: #fef3c7; color: #92400e; }
.role-user  { background: var(--blue-100); color: var(--blue-700); }

/* Role legend */
.role-legend { display: flex; gap: .6rem; }

/* Admin-only menu item */
.admin-only.hidden-for-user { display: none !important; }

/* ===== NAV BADGE GREEN ===== */
.nav-badge--green { background: var(--green) !important; }

/* ===== HERO BACKGROUND UPLOAD ===== */
.hero-bg-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
}
@media (max-width: 768px) { .hero-bg-wrap { grid-template-columns: 1fr; } }

.hero-bg-preview {
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px dashed var(--gray-300);
  background: var(--gray-50);
  position: relative;
}
.hero-bg-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: .5rem; color: var(--gray-500); text-align: center; padding: 1rem;
}
.hero-bg-placeholder p { font-size: .9rem; font-weight: 600; color: var(--gray-600); }
.hero-bg-placeholder small { font-size: .78rem; }
.hero-bg-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ===== VOUCHER GRID ===== */
.voucher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* Voucher card */
.vc-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  background: var(--white);
}
.vc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.vc-card--inactive { opacity: .65; filter: grayscale(.4); }
.vc-card--expired  { opacity: .5;  filter: grayscale(.7); }

.vc-card__ticket {
  display: flex;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  position: relative;
}
.vc-card__ticket::before,
.vc-card__ticket::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gray-100);
  top: 50%; transform: translateY(-50%);
}
.vc-card__ticket::before { left: -10px; }
.vc-card__ticket::after  { right: -10px; }

.vc-card__left {
  padding: 1.25rem 1rem 1.25rem 1.5rem;
  flex: 1;
  color: var(--white);
}
.vc-card__icon-big { font-size: 2rem; margin-bottom: .4rem; }
.vc-card__code {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem; font-weight: 900;
  letter-spacing: .12em;
  background: rgba(255,255,255,.15);
  padding: .2rem .6rem; border-radius: 6px;
  display: inline-block;
  margin-bottom: .4rem;
}
.vc-card__vname { font-size: .85rem; opacity: .9; }

.vc-card__right {
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-left: 2px dashed rgba(255,255,255,.3);
  min-width: 100px;
  text-align: center;
  color: var(--white);
}
.vc-card__value { font-size: 1.4rem; font-weight: 900; line-height: 1.2; }
.vc-card__unit  { font-size: .72rem; opacity: .8; margin-top: .2rem; }

.vc-card__body {
  padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.vc-card__condition { font-size: .82rem; color: var(--gray-600); }
.vc-card__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
.vc-card__expiry { font-size: .75rem; color: var(--gray-500); }

.vc-card__footer {
  padding: .65rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  display: flex; justify-content: space-between; align-items: center;
}

/* Voucher type color theming */
.vc-buy_get  .vc-card__ticket { background: linear-gradient(135deg,#f59e0b,#d97706); }
.vc-percent  .vc-card__ticket { background: linear-gradient(135deg,#8b5cf6,#7c3aed); }
.vc-fixed    .vc-card__ticket { background: linear-gradient(135deg,#22c55e,#16a34a); }
.vc-free_ship .vc-card__ticket { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }

/* Status badges */
.vstatus-active   { background: #d1fae5; color: #065f46; }
.vstatus-inactive { background: #e5e7eb; color: #6b7280; }
.vstatus-expired  { background: #fee2e2; color: #991b1b; }

/* ===== VOUCHER MODAL ===== */
.modal--voucher { max-width: 840px; }
.voucher-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) { .voucher-form-grid { grid-template-columns: 1fr; } }

.voucher-type-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.vtype-btn {
  padding: .6rem .75rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-700);
  text-align: center;
}
.vtype-btn:hover { border-color: var(--blue-400); background: var(--blue-50); }
.vtype-btn.active { border-color: var(--blue-600); background: var(--blue-100); color: var(--blue-800); }

.vvalue-wrap { margin-top: .5rem; }
.v-preview {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: .5rem .85rem;
  font-size: .88rem; font-weight: 700; color: var(--blue-700);
  margin-top: .5rem;
}

.voucher-free-ship-note {
  display: flex; align-items: center; gap: .75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .88rem;
}
.voucher-free-ship-note span { font-size: 1.5rem; }
.voucher-free-ship-note strong { display: block; color: var(--blue-700); }
.voucher-free-ship-note small { color: var(--blue-500); }

/* Voucher preview inside modal */
.voucher-preview-wrap {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--gray-200);
}
.voucher-card-preview {
  display: flex;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  max-width: 480px;
}
.voucher-card-preview::before,
.voucher-card-preview::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  top: 50%; transform: translateY(-50%);
  z-index: 2;
}
.voucher-card-preview::before { left: -10px; }
.voucher-card-preview::after  { right: calc(130px - 10px); }

.vcp-left { display: flex; align-items: center; padding: 1rem 1.25rem 1rem 1.5rem; }
.vcp-icon { font-size: 2.5rem; }
.vcp-body { flex: 1; padding: 1rem .5rem; color: var(--white); }
.vcp-code { font-family: monospace; font-size: 1rem; font-weight: 900; letter-spacing: .1em; background: rgba(255,255,255,.15); padding: .1rem .5rem; border-radius: 4px; display: inline-block; margin-bottom: .25rem; }
.vcp-name { font-size: .9rem; font-weight: 700; }
.vcp-condition { font-size: .75rem; opacity: .8; margin-top: .2rem; }
.vcp-right { width: 130px; padding: 1rem; display: flex; align-items: center; justify-content: center; border-left: 2px dashed rgba(255,255,255,.4); text-align: center; color: var(--white); }
.vcp-value { font-size: 1.1rem; font-weight: 900; line-height: 1.3; }

/* Modal footer */
.modal__footer {
  display: flex; justify-content: flex-end; gap: .75rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: .75rem; }
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--gray-300);
  border-radius: 26px;
  transition: var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white);
  left: 3px; bottom: 3px;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }
.toggle-label { font-size: .88rem; font-weight: 600; color: var(--gray-700); }




/* Permissions checkboxes */
.permissions-list input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--blue-600);
  cursor: pointer;
  margin: 0;
}



/* ===== WP ADMIN BAR OVERLAP & LOGO COLOR FIX ===== */
body.admin-bar .header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px !important;
  }
}

.logo__title {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}
.logo__sub {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.75rem !important;
}

.nav__link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
}
.nav__link:hover, .nav__link.active {
  color: #FFD700 !important;
}

/* ===== FINAL WP FIXES FOR HEADER & FOOTER ===== */
body.admin-bar .header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px !important;
  }
}

.logo__title {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}
.logo__sub {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.75rem !important;
}

.nav__link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.nav__link:hover, .nav__link.active {
  color: #FFD700 !important;
}


/* ===== LOGO & NAV TEXT VISIBILITY FIX ===== */
.header .logo__title,
.header .logo__name,
.logo__title,
.logo__name {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.3rem !important;
  display: block !important;
}

.header .logo__sub,
.header .logo__tagline,
.logo__sub,
.logo__tagline {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.75rem !important;
  display: block !important;
}

.header .nav__link,
.nav__link {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  opacity: 0.9 !important;
}

.header .nav__link:hover,
.header .nav__link.active,
.nav__link:hover,
.nav__link.active {
  color: #FFD700 !important;
  opacity: 1 !important;
}

/* ===== EXACT ORIGINAL LOGO TYPOGRAPHY & FLOATING CART FIX ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

.logo__title,
.logo__name {
  font-family: 'Roboto', 'Inter', system-ui, -apple-system, sans-serif !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.45rem !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.05em !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
  display: block !important;
}

.logo__sub,
.logo__tagline {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-style: italic !important;
  color: #93c5fd !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  margin-top: 2px !important;
  display: block !important;
}

/* Floating Cart Button at Bottom Right */
.floating-cart-btn {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  z-index: var(--z-fab, 800) !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: var(--primary, #e63946) !important;
  color: #ffffff !important;
  font-size: 1.6rem !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(230,57,70,0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.floating-cart-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 12px 30px rgba(230,57,70,0.6) !important;
}

.floating-cart-badge,
.cart-btn__badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #FFD700 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #ffffff !important;
}

/* HIDE ALL LOGIN HINTS DEFINITIVELY */
.login-hint, .chpwd-hint { display: none !important; opacity: 0 !important; visibility: hidden !important; }

/* ===== MOBILE HEADER & LOGO FIX (CHỈ ÁP DỤNG TRÊN MOBILE <= 768PX) ===== */
@media screen and (max-width: 768px) {
  .header, header, #header {
    height: auto !important;
    min-height: 56px !important;
  }

  .header__inner {
    height: auto !important;
    min-height: 56px !important;
    padding: 6px 10px !important;
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .logo {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 46px) !important;
    overflow: hidden !important;
    text-decoration: none !important;
  }

  .logo__brand-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .logo__title-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    min-width: 0 !important;
  }

  .logo__icon {
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 1. Tên shop NGANG HÀNG VỚI BÔNG HOA, in đậm, vừa vặn header */
  .logo__name, .logo__title, .logo-title, a.logo, .header .logo__name {
    font-size: clamp(0.72rem, 3.4vw, 0.88rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    letter-spacing: -0.1px !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .logo__tagline, .logo__sub {
    font-size: 0.62rem !important;
    font-style: italic !important;
    color: #94a3b8 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 1px !important;
    display: block !important;
    padding-left: 2px !important;
  }

  .header__actions {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: clamp(8px, 2.6vw, 12px) !important; /* trước đây là 0 – làm 2 nút dính nhau */
  }

  .header-phone-btn,
  .cart-trigger-btn {
    display: none !important;
  }

  .hero {
    position: relative !important;
    min-height: 85vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: #0f172a !important;
  }

  .hero__bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    overflow: hidden !important;
  }

  .hero__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 18% center !important; /* CĂN CHUẨN LẤY TRỌN VẸN NGƯỜI CÔ GÁI ĐANG CẮM HOA */
    display: block !important;
  }

  .hero__overlay {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.65) 60%, rgba(15, 23, 42, 0.45) 100%) !important;
    z-index: 1 !important;
  }

  .hero__content {
    position: relative !important;
    z-index: 2 !important;
    padding: 85px 18px 45px 18px !important;
    max-width: 100% !important;
    text-align: left !important;
    background: transparent !important;
  }

  .hero__sub {
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
    color: #38bdf8 !important;
    font-weight: 700 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.7rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
    color: #ffffff !important;
    text-align: left !important;
    text-shadow: 0 3px 12px rgba(0,0,0,0.7) !important;
  }

  .hero__desc {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    margin-bottom: 22px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: left !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7) !important;
    max-width: 90% !important;
  }

  .hero__actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    text-align: left !important;
  }

  .hero__actions .btn {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
  }

  .hero__scroll {
    display: none !important;
  }
}

/* ===== BMH TRANG CON (page.php) – GIAO DIỆN ĐẸP ===== */
.bmh-page { background: #f8fafc; }

/* --- Hero --- */
.bmh-page__hero { position: relative; padding: 104px 20px 48px; background: radial-gradient(1200px 400px at 85% 0%, #fde7f0 0%, rgba(253,231,240,0) 60%), linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #fff1f5 100%); overflow: hidden; }
.bmh-page__hero-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.bmh-page__crumb { font-size: .85rem; color: #64748b; margin-bottom: 14px; }
.bmh-page__crumb a { color: #0284c7; text-decoration: none; font-weight: 600; }
.bmh-page__crumb a:hover { text-decoration: underline; }
.bmh-page__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid #fbcfe8; color: #be185d; font-size: .8rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(190,24,93,.08); }
.bmh-page__title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; color: #0f172a; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.bmh-page__lead { margin: 14px 0 0; color: #475569; font-size: 1.06rem; line-height: 1.7; max-width: 560px; }
.bmh-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bmh-page__btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.bmh-page__btn:hover { transform: translateY(-2px); }
.bmh-page__btn--call { background: linear-gradient(135deg, #0284c7, #0369a1); color: #fff !important; box-shadow: 0 8px 20px rgba(2,132,199,.3); }
.bmh-page__btn--zalo { background: #fff; color: #0068ff !important; border: 1.5px solid #bfdbfe; box-shadow: 0 4px 12px rgba(15,23,42,.06); }
.bmh-page__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.bmh-page__chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.75); border: 1px solid #e2e8f0; color: #334155; font-size: .85rem; font-weight: 600; }
.bmh-page__hero-img { margin: 0; position: relative; }
.bmh-page__hero-img img { display: block; width: 100%; height: 380px; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 48px rgba(15,23,42,.18); }
.bmh-page__hero-img::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 24px; background: linear-gradient(135deg, #bae6fd, #fbcfe8); z-index: -1; }

/* --- Thân trang --- */
.bmh-page__body { max-width: 900px; margin: -8px auto 0; padding: 0 20px 24px; position: relative; }
.bmh-page__content { background: #fff; border-radius: 24px; padding: 40px 48px; box-shadow: 0 10px 40px rgba(15,23,42,.06); border: 1px solid #eef2f7; color: #1e293b; font-size: 1.02rem; line-height: 1.8; }
.bmh-page__content > *:first-child { margin-top: 0 !important; }
.bmh-page__content p { margin: 0 0 16px; }
.bmh-page__content a { color: #0284c7; font-weight: 600; }
.bmh-page__content strong { color: #0f172a; }

/* Tiêu đề mục: thanh màu bên trái (H1 lỡ chọn cũng hiện như H2) */
.bmh-page__content h1, .bmh-page__content h2 { position: relative; font-size: clamp(1.25rem, 2.4vw, 1.5rem) !important; line-height: 1.35 !important; font-weight: 800; color: #0f172a; margin: 44px 0 16px !important; padding-left: 16px; }
.bmh-page__content h1::before, .bmh-page__content h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 4px; background: linear-gradient(180deg, #0284c7, #ec4899); }
.bmh-page__content h3 { font-size: 1.08rem !important; line-height: 1.45 !important; font-weight: 700; color: #0f172a; margin: 24px 0 8px !important; }

/* Danh sách: dấu tick tròn */
.bmh-page__content ul.wp-block-list, .bmh-page__content > ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.bmh-page__content ul.wp-block-list > li, .bmh-page__content > ul > li { position: relative; padding: 10px 14px 10px 44px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; line-height: 1.6; }
.bmh-page__content ul.wp-block-list > li::before, .bmh-page__content > ul > li::before { content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: #e0f2fe; color: #0284c7; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }

/* Danh sách đánh số: vòng tròn bước 1-2-3 */
.bmh-page__content ol.wp-block-list, .bmh-page__content > ol { list-style: none; counter-reset: bmhstep; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.bmh-page__content ol.wp-block-list > li, .bmh-page__content > ol > li { counter-increment: bmhstep; position: relative; padding: 12px 14px 12px 58px; min-height: 44px; background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; line-height: 1.6; }
.bmh-page__content ol.wp-block-list > li::before, .bmh-page__content > ol > li::before { content: counter(bmhstep); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #0284c7, #ec4899); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* Ảnh & thư viện ảnh */
.bmh-page__content figure, .bmh-page__content .wp-block-image { margin: 20px 0 !important; max-width: 100%; }
.bmh-page__content img { max-width: 100% !important; height: auto; max-height: 380px; display: block; margin: 0 auto; border-radius: 14px; object-fit: cover; }
.bmh-page__content figcaption { text-align: center; color: #64748b; font-size: .85rem; margin-top: 8px; }
.bmh-page__content .wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 14px !important; margin: 20px 0 28px !important; }
.bmh-page__content .wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.bmh-page__content .wp-block-gallery > figure.wp-block-image { position: relative; width: auto !important; margin: 0 !important; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.bmh-page__content .wp-block-gallery > figure.wp-block-image img { width: 100% !important; height: 230px !important; max-height: none; border-radius: 0; transition: transform .4s ease; }
.bmh-page__content .wp-block-gallery.columns-2 > figure.wp-block-image img { height: 280px !important; }
.bmh-page__content .wp-block-gallery > figure.wp-block-image:hover img { transform: scale(1.05); }
.bmh-page__content .wp-block-gallery > figure.wp-block-image figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 26px 10px 10px !important; background: linear-gradient(0deg, rgba(15,23,42,.72), rgba(15,23,42,0)) !important; color: #fff !important; font-size: .85rem; font-weight: 600; text-align: center; max-height: none !important; }
.bmh-page__content .is-layout-grid img, .bmh-page__content .wp-block-columns img { width: 100% !important; height: 220px !important; max-height: none; }

/* Ô điểm nổi bật (khối HTML tuỳ chỉnh .bmh-highlights) */
.bmh-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 8px; }
.bmh-highlights div { text-align: center; padding: 16px 10px; border-radius: 16px; background: linear-gradient(180deg, #f0f9ff, #fff); border: 1px solid #e0f2fe; }
.bmh-highlights b { display: block; font-size: 1.5rem; line-height: 1; margin-bottom: 8px; }
.bmh-highlights span { display: block; font-size: .88rem; font-weight: 700; color: #0f172a; line-height: 1.35; }
.bmh-highlights small { display: block; font-size: .78rem; color: #64748b; margin-top: 4px; }

/* Câu hỏi thường gặp: dạng thẻ bấm mở (JS trong page.php biến H3 + đoạn văn thành <details>) */
.bmh-faq { margin: 0 0 12px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; overflow: hidden; transition: box-shadow .2s; }
.bmh-faq[open] { box-shadow: 0 8px 22px rgba(15,23,42,.06); border-color: #bae6fd; }
.bmh-faq summary { list-style: none; cursor: pointer; padding: 14px 48px 14px 18px; font-weight: 700; color: #0f172a; position: relative; }
.bmh-faq summary::-webkit-details-marker { display: none; }
.bmh-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #f1f5f9; color: #0284c7; font-weight: 800; display: grid; place-items: center; transition: transform .2s; }
.bmh-faq[open] summary::after { content: "–"; background: #e0f2fe; }
.bmh-faq__a { padding: 0 18px 14px; color: #475569; }
.bmh-faq__a p { margin: 0; }

/* Bảng */
.bmh-page__content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; border-radius: 12px; overflow: hidden; }
.bmh-page__content th, .bmh-page__content td { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: left; }
.bmh-page__content th { background: #f1f5f9; }

/* Dải liên hệ cuối trang */
.bmh-page__cta { max-width: 900px; margin: 24px auto 56px; padding: 0 20px; }
.bmh-page__cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px 32px; border-radius: 24px; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #9d174d 130%); color: #fff; box-shadow: 0 16px 40px rgba(15,23,42,.25); }
.bmh-page__cta-box h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; color: #fff; }
.bmh-page__cta-box p { margin: 0; color: #cbd5e1; font-size: .95rem; }
.bmh-page__cta-box .bmh-page__btn--zalo { border-color: transparent; }

@media (max-width: 900px) {
	.bmh-page__hero-inner { grid-template-columns: 1fr; gap: 28px; }
	.bmh-page__hero-img img { height: 260px; }
	.bmh-page__hero-img::before { inset: 12px -10px -12px 12px; }
}
@media (max-width: 768px) {
	.bmh-page__hero { padding: 88px 16px 36px; }
	.bmh-page__body { padding: 0 12px 16px; }
	.bmh-page__content { padding: 24px 18px; border-radius: 18px; font-size: 1rem; }
	.bmh-page__content .wp-block-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px !important; }
	.bmh-page__content .wp-block-gallery > figure.wp-block-image img,
	.bmh-page__content .wp-block-gallery.columns-2 > figure.wp-block-image img { height: 160px !important; }
	.bmh-highlights { grid-template-columns: repeat(2, 1fr); }
	.bmh-page__btn { height: 44px; padding: 0 18px; }
	.bmh-page__cta-box { padding: 22px 20px; flex-direction: column; align-items: flex-start; }
	.bmh-page__content table { display: block; overflow-x: auto; }
}

/* ===== TRANG CON – SỬA GIAO DIỆN PC (02/10) ===== */
/* header.php có "* { max-width: 100% !important }" làm trang con mất giới hạn khổ trên PC (chữ/ảnh tràn hết màn hình) */
.bmh-page .bmh-page__hero-inner { max-width: 1120px !important; }
.bmh-page .bmh-page__lead { max-width: 560px !important; }
.bmh-page .bmh-page__body, .bmh-page .bmh-page__cta { max-width: 900px !important; }
/* Ảnh gallery: khung cao cố định, ảnh phủ kín khung (gallery WP dùng flex nên phải đặt chiều cao cho figure) */
.bmh-page__content .wp-block-gallery > figure.wp-block-image { height: 300px !important; }
.bmh-page__content .wp-block-gallery > figure.wp-block-image img { height: 100% !important; flex: none !important; object-fit: cover !important; }
@media (max-width: 768px) {
	.bmh-page__content .wp-block-gallery > figure.wp-block-image { height: 170px !important; }
}

/* ===== HERO: NÚT SỈ & LẺ DƯỚI "KHÁM PHÁ SẢN PHẨM" ===== */
.hero__wholesale { margin-top: 14px; }
.hero__wholesale-btn {
	display: inline-flex !important; align-items: center; gap: 8px;
	padding: 10px 22px !important; border-radius: 999px !important;
	background: #f0f9ff !important; border: 1.5px solid #bae6fd !important;
	color: #0284c7 !important; font-weight: 700; font-size: .92rem; line-height: 1.3;
	text-decoration: none !important; text-shadow: none !important;
	box-shadow: 0 6px 18px rgba(2,132,199,.22);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero__wholesale-btn:hover {
	background: #ffffff !important; transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(2,132,199,.3);
}
.hero__wholesale-arrow { font-size: 1.15rem; line-height: 1; font-weight: 800; transition: transform .2s ease; }
.hero__wholesale-btn:hover .hero__wholesale-arrow { transform: translateX(3px); }
@media (max-width: 768px) {
	.hero__wholesale { margin-top: 10px; text-align: left; }
	.hero__wholesale-btn {
		padding: 9px 16px !important; font-size: .85rem;
		max-width: 100%; white-space: normal; text-align: left;
	}
}

/* ===== POPUP XEM CHI TIẾT SẢN PHẨM (chuyển từ front-page.php để mọi trang đều có) ===== */
/* ===== VARIANT PICKER BOTTOM SHEET / POPUP MODAL STYLES ===== */
.bmh-sheet-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	z-index: 999998;
	align-items: center;
	justify-content: center;
	transition: opacity 0.25s ease;
	opacity: 0;
}
.bmh-sheet-overlay.active {
	display: flex !important;
	opacity: 1;
}
.bmh-variant-sheet {
	background: #ffffff;
	width: 100%;
	max-width: 860px;
	border-radius: 20px;
	padding: 0;
	box-shadow: 0 25px 60px -15px rgba(0,0,0,0.45);
	transform: scale(0.96);
	transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1);
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	overflow: hidden;
}
.bmh-sheet-overlay.active .bmh-variant-sheet {
	transform: scale(1);
}

/* DESKTOP (PC) 2-COLUMN VIEW CHUẨN ĐẸP, HIỂN THỊ TRỌN VẸN SẢN PHẨM */
@media screen and (min-width: 769px) {
	.bmh-sheet-overlay {
		align-items: center !important;
		justify-content: center !important;
		padding: 24px !important;
	}
	.bmh-variant-sheet {
		max-width: 860px !important;
		width: 90vw !important;
		max-height: 88vh !important;
		border-radius: 20px !important;
		padding: 0 !important;
		overflow: hidden !important;
		box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45) !important;
	}
	.bmh-sheet-drag-handle {
		display: none !important;
	}
	.bmh-sheet-header {
		padding: 16px 24px !important;
		margin-bottom: 0 !important;
		border-bottom: 1px solid #e2e8f0;
		background: #ffffff;
	}
	.bmh-sheet-header-title {
		font-size: 1.15rem !important;
		font-weight: 800 !important;
	}
	.bmh-sheet-scrollable-content {
		display: grid !important;
		grid-template-columns: 380px 1fr !important;
		gap: 24px !important;
		padding: 22px 24px !important;
		max-height: calc(88vh - 65px) !important;
		overflow-y: auto !important;
		align-items: start !important;
	}
	.bmh-sheet-gallery-box {
		position: sticky;
		top: 0;
		margin-bottom: 0 !important;
	}
	.bmh-sheet-main-img-wrap {
		height: 380px !important;
		max-height: 380px !important;
		background: #f8fafc !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 16px !important;
	}
	.bmh-sheet-large-img {
		object-fit: contain !important; /* ĐẢM BẢO THẤY 100% SẢN PHẨM KHÔNG BỊ CẮT XÉN */
		background: #f8fafc !important;
	}
	.bmh-sheet-details-col {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.bmh-sheet-title {
		font-size: 1.35rem !important;
	}
	.bmh-sheet-price-tag {
		font-size: 1.35rem !important;
	}
	.bmh-sheet-actions-pc {
		display: grid !important;
		grid-template-columns: 1fr 1.25fr !important;
		gap: 12px !important;
		padding: 8px 0 0 !important;
		border-top: none !important;
		background: transparent !important;
		box-shadow: none !important;
		margin-top: 10px !important;
	}
	.bmh-sheet-actions-mobile {
		display: none !important;
	}
}

/* MOBILE VIEW CHUẨN FULL MÀN HÌNH */
@media screen and (max-width: 768px) {
	.bmh-sheet-overlay {
		align-items: stretch !important;
		justify-content: stretch !important;
		padding: 0 !important;
	}
	.bmh-variant-sheet {
		width: 100vw !important;
		max-width: 100vw !important;
		height: 100vh !important;
		height: 100dvh !important;
		max-height: 100vh !important;
		max-height: 100dvh !important;
		border-radius: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
		top: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		transform: translateY(100%);
		display: flex !important;
		flex-direction: column !important;
	}
	.bmh-sheet-overlay.active .bmh-variant-sheet {
		transform: translateY(0) !important;
	}
	.bmh-sheet-drag-handle {
		display: none !important;
	}
	.bmh-sheet-header {
		padding: 12px 16px !important;
		margin: 0 !important;
		background: #ffffff;
		border-bottom: 1px solid #e2e8f0;
		flex-shrink: 0;
		z-index: 10;
	}
	.bmh-sheet-header-title {
		font-size: 1.08rem !important;
		font-weight: 800 !important;
	}
	.bmh-sheet-close-btn {
		width: 36px !important;
		height: 36px !important;
		background: #f1f5f9 !important;
		border-radius: 50% !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		font-size: 1.15rem !important;
	}
	.bmh-sheet-scrollable-content {
		padding: 14px 16px calc(85px + env(safe-area-inset-bottom, 0px)) 16px !important;
		margin: 0 !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		flex: 1 1 auto !important;
		display: flex !important;
		flex-direction: column !important;
	}
	.bmh-sheet-gallery-box {
		flex-shrink: 0;
	}
	.bmh-sheet-main-img-wrap {
		height: 320px !important;
		max-height: 46vh !important;
		min-height: 240px !important;
		border-radius: 14px !important;
		background: #f8fafc !important;
	}
	.bmh-sheet-large-img {
		object-fit: contain !important;
		background: #f8fafc;
	}
	.bmh-sheet-details-col {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
	}
	.bmh-sheet-actions-pc {
		display: none !important;
	}
	/* 2 NÚT THAO TÁC CỐ ĐỊNH Ở ĐÁY MÀN HÌNH KHI CUỘN TRÊN MOBILE, FULL VIỀN 100% */
	.bmh-sheet-actions-mobile {
		display: grid !important;
		grid-template-columns: 1fr 1.35fr !important;
		gap: 10px !important;
		position: fixed !important;
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100vw !important;
		max-width: 100vw !important;
		box-sizing: border-box !important;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) 16px !important;
		background: #ffffff !important;
		border-top: 1px solid #e2e8f0 !important;
		box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1) !important;
		z-index: 999999 !important;
		margin: 0 !important;
	}
	.bmh-sheet-btn {
		height: 48px !important;
		font-size: 0.95rem !important;
		border-radius: 10px !important;
	}
}
.bmh-sheet-drag-handle {
	width: 42px;
	height: 4px;
	background: #cbd5e1;
	border-radius: 10px;
	margin: 0 auto 12px;
}
.bmh-sheet-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 12px;
	margin-bottom: 14px;
}
.bmh-sheet-thumb {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	object-fit: cover;
	border: 2px solid #e2e8f0;
	flex-shrink: 0;
}
.bmh-sheet-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.3;
}
.bmh-sheet-price-tag {
	font-size: 0.95rem;
	font-weight: 800;
	color: #e63946;
	margin-top: 3px;
}
.bmh-sheet-close-btn {
	background: #f1f5f9;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 1rem;
	font-weight: bold;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	flex-shrink: 0;
}
.bmh-sheet-close-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}
.bmh-sheet-section-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: #334155;
	margin-bottom: 10px;
	display: block;
}
.bmh-sheet-options {
	display: flex;
	flex-direction: column;
	gap: 9px;
	overflow-y: auto;
	max-height: 42vh;
	padding-right: 4px;
	margin-bottom: 18px;
}
.bmh-sheet-option-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
	background: #f8fafc;
	user-select: none;
}
.bmh-sheet-option-item:hover {
	border-color: #93c5fd;
	background: #f0f9ff;
}
.bmh-sheet-option-item.selected {
	border-color: #0284c7;
	background: #f0f9ff;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}
.bmh-sheet-option-left {
	display: flex;
	align-items: center;
	gap: 10px;
}
.bmh-sheet-radio-circle {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	flex-shrink: 0;
}
.bmh-sheet-option-item.selected .bmh-sheet-radio-circle {
	border-color: #0284c7;
	background: #0284c7;
}
.bmh-sheet-radio-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffffff;
	display: none;
}
.bmh-sheet-option-item.selected .bmh-sheet-radio-dot {
	display: block;
}
.bmh-sheet-option-label {
	font-size: 0.92rem;
	font-weight: 700;
	color: #1e293b;
}
.bmh-sheet-option-price {
	font-size: 0.95rem;
	font-weight: 800;
	color: #e63946;
}
.bmh-sheet-confirm-btn {
	width: 100%;
	height: 46px;
	border-radius: 14px;
	background: linear-gradient(135deg, #f43f5e, #e11d48);
	color: #ffffff;
	border: none;
	font-size: 0.98rem;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.bmh-sheet-confirm-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(225, 29, 72, 0.45);
}
.bmh-sheet-confirm-btn:active {
	transform: translateY(0);
}
/* ===== PRODUCT CARD CAROUSEL & VARIANT BADGE ===== */
.product-card__img-wrap {
	position: relative;
	overflow: hidden;
}
.product-card__variant-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(15, 23, 42, 0.8);
	color: #ffffff;
	padding: 4px 9px;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 700;
	backdrop-filter: blur(4px);
	z-index: 2;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.product-card__arrow {
	display: none !important;
}
.product-card__dots {
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	z-index: 3;
	pointer-events: auto;
}
.product-card__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.65);
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.product-card__dot.active {
	background: #0284c7;
	width: 16px;
	border-radius: 4px;
}
.bmh-sheet-option-thumb {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	object-fit: cover;
	border: 1.5px solid #cbd5e1;
	flex-shrink: 0;
}

/* ===== QUICK VIEW & VARIANT SHEET ENHANCEMENTS ===== */
.bmh-sheet-header-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
}
.bmh-sheet-scrollable-content {
	overflow-y: auto;
	flex: 1;
	padding-right: 4px;
	margin-bottom: 12px;
	-webkit-overflow-scrolling: touch;
}
.bmh-sheet-gallery-box {
	margin-bottom: 14px;
}
.bmh-sheet-main-img-wrap {
	position: relative;
	width: 100%;
	height: 240px;
	border-radius: 14px;
	overflow: hidden;
	background: #f1f5f9;
	margin-bottom: 8px;
	border: 1px solid #e2e8f0;
	user-select: none;
	touch-action: pan-y pinch-zoom;
}
.bmh-sheet-large-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: opacity 0.2s ease;
}
.bmh-sheet-img-counter {
	position: absolute;
	bottom: 8px;
	right: 10px;
	background: rgba(15, 23, 42, 0.75);
	color: #ffffff;
	padding: 3px 9px;
	border-radius: 10px;
	font-size: 0.75rem;
	font-weight: 700;
	backdrop-filter: blur(4px);
	z-index: 2;
}
.bmh-sheet-thumbnails {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 8px 6px 14px 6px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	align-items: center;
}
.bmh-sheet-thumbnails::-webkit-scrollbar {
	display: none;
}
.bmh-sheet-thumb-item {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	border: 2px solid #cbd5e1;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background: #ffffff;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
}
.bmh-sheet-thumb-item img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	border-radius: 9px !important;
}
.bmh-sheet-thumb-item:hover {
	border-color: #93c5fd;
}
.bmh-sheet-thumb-item.active {
	border: 2.5px solid #0284c7 !important;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.28) !important;
}
.bmh-sheet-info-box {
	margin-bottom: 12px;
}
.bmh-sheet-price-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	margin-bottom: 6px;
}
.bmh-sheet-desc {
	font-size: 0.85rem;
	color: #64748b;
	line-height: 1.45;
	margin: 0;
}
.bmh-sheet-variants-container {
	margin-bottom: 14px;
}
.bmh-sheet-count-tag {
	font-weight: 700;
	color: #0284c7;
	margin-left: 6px;
	font-size: 0.85rem;
}
/* ===== SLEEK COMPACT PILL QUANTITY SELECTOR (MOBILE & PC) ===== */
.bmh-sheet-qty-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	padding: 8px 14px;
	margin: 10px 0 12px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
	box-sizing: border-box;
	width: 100%;
}
.bmh-sheet-qty-label {
	font-size: 0.92rem;
	font-weight: 700;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 6px;
}
.bmh-sheet-qty-control {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	background: #f1f5f9;
	border: 1.5px solid #cbd5e1;
	border-radius: 9999px;
	padding: 3px;
	box-sizing: border-box;
	width: 130px;
	min-width: 130px;
	max-width: 136px;
	height: 38px;
	flex-shrink: 0;
}
.bmh-sheet-qty-btn {
	width: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	border: 1px solid #e2e8f0 !important;
	background: #ffffff !important;
	color: #0f172a !important;
	font-size: 1.25rem !important;
	font-weight: 800 !important;
	cursor: pointer;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
	transition: all 0.15s ease !important;
	user-select: none;
	padding: 0 !important;
	margin: 0 !important;
	flex-shrink: 0 !important;
}
.bmh-sheet-qty-btn:hover {
	background: #0284c7 !important;
	color: #ffffff !important;
	border-color: #0284c7 !important;
	transform: scale(1.06);
}
.bmh-sheet-qty-btn:active {
	transform: scale(0.92);
}
.bmh-sheet-qty-input,
#bmh-sheet-qty-input,
.bmh-sheet-qty-control input {
	width: 58px !important;
	min-width: 48px !important;
	max-width: 66px !important;
	height: 32px !important;
	line-height: 32px !important;
	border: none !important;
	border-width: 0 !important;
	outline: none !important;
	background: transparent !important;
	background-color: transparent !important;
	text-align: center !important;
	font-size: 1.15rem !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	padding: 0 !important;
	margin: 0 auto !important;
	display: inline-block !important;
	vertical-align: middle !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: textfield !important;
}
.bmh-sheet-qty-input::-webkit-outer-spin-button,
.bmh-sheet-qty-input::-webkit-inner-spin-button,
#bmh-sheet-qty-input::-webkit-outer-spin-button,
#bmh-sheet-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}
.bmh-sheet-footer-actions {
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
	margin-top: auto;
}
.bmh-sheet-btn {
	height: 44px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 0.2s;
	border: none;
	text-align: center;
}
.bmh-sheet-btn--cart {
	background: #f1f5f9;
	color: #0f172a;
	border: 1.5px solid #cbd5e1;
}
.bmh-sheet-btn--cart:hover {
	background: #e2e8f0;
}
.bmh-sheet-btn--buy {
	background: linear-gradient(135deg, #0284c7, #0369a1);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.bmh-sheet-btn--buy:hover {
	box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
	transform: translateY(-1px);
}

/* ===== FOOTER PC: trải hết chiều ngang, căn trái thẳng mép nội dung trang (mép thẻ bài viết 52px) ===== */
@media (min-width: 769px) {
	.bmh-footer .container,
	.bmh-footer .bmh-footer__grid {
		max-width: none !important;
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.bmh-footer .bmh-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr !important;
		gap: 48px !important;
		padding: 48px 52px 40px !important;
		box-sizing: border-box !important;
	}
	.bmh-footer__bottom { text-align: left !important; padding: 16px 52px !important; }
}
.bmh-footer__social { flex-wrap: wrap; gap: 8px; }

/* ===== NÚT SỈ & LẺ Ở BANNER: MỜ NHẸ, KHÔNG TRANH NÚT CHÍNH ===== */
.hero__wholesale-btn {
	background: rgba(255,255,255,.14) !important;
	border: 1px solid rgba(255,255,255,.38) !important;
	color: rgba(255,255,255,.92) !important;
	font-weight: 600 !important;
	font-size: .86rem !important;
	padding: 8px 18px !important;
	box-shadow: none !important;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	text-shadow: 0 1px 3px rgba(0,0,0,.35) !important;
}
.hero__wholesale-btn:hover {
	background: #fff !important;
	color: #0284c7 !important;
	border-color: #fff !important;
	text-shadow: none !important;
}
@media (max-width: 768px) {
	.hero__wholesale-btn { font-size: .8rem !important; padding: 7px 14px !important; }
}


/* ===== BẢNG GIÁ TRONG TRANG (khối Bảng có class bmh-price-table, anh tự sửa trong WordPress) ===== */
#bang-gia { scroll-margin-top: 90px; }
.bmh-page__content .bmh-price-table { margin: 16px 0 8px !important; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 6px 20px rgba(15,23,42,.05); }
.bmh-page__content .bmh-price-table table { margin: 0 !important; border: 0 !important; border-radius: 0; }
.bmh-page__content .bmh-price-table thead { border-bottom: 0 !important; }
.bmh-page__content .bmh-price-table th { background: linear-gradient(135deg, #0284c7, #0369a1) !important; color: #fff; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; border: 0 !important; padding: 13px 16px !important; }
.bmh-page__content .bmh-price-table td { border: 0 !important; border-top: 1px solid #eef2f7 !important; padding: 12px 16px !important; }
.bmh-page__content .bmh-price-table tbody tr:nth-child(even) td { background: #f8fafc; }
.bmh-page__content .bmh-price-table tbody tr:hover td { background: #f0f9ff; }
.bmh-page__content .bmh-price-table td:first-child { font-weight: 600; color: #0f172a; }
.bmh-page__content .bmh-price-table td:nth-child(2) { font-weight: 800; color: #db2777; white-space: nowrap; }
.bmh-page__content .bmh-price-table td:nth-child(3) { color: #0369a1; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
	.bmh-page__content .bmh-price-table table { display: table !important; font-size: .88rem; }
	.bmh-page__content .bmh-price-table th, .bmh-page__content .bmh-price-table td { padding: 10px !important; }
	.bmh-page__content .bmh-price-table th { font-size: .72rem; }
}

/* ===== DANH MỤC TRÊN MOBILE: VIÊN NHỎ 2 CỘT, KHÔNG MÔ TẢ ===== */
@media (max-width: 768px) {
	#categories.categories { padding: 28px 0 20px !important; }
	#categories .section-header { margin-bottom: 14px !important; }
	#categories .section-title { font-size: 1.45rem !important; margin-bottom: 4px !important; }
	#categories .section-sub { display: none !important; }
	#categories .categories__grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
	#categories .category-card {
		display: flex !important; flex-direction: row !important; align-items: center !important;
		gap: 10px !important; padding: 10px 12px !important; min-height: 0 !important; height: auto !important;
		border-radius: 14px !important; text-align: left !important;
	}
	#categories .category-card__icon {
		font-size: 22px !important; width: 38px !important; height: 38px !important; min-width: 38px !important;
		margin: 0 !important; display: flex !important; align-items: center; justify-content: center;
		border-radius: 10px; background: #f0f9ff;
	}
	#categories .category-card__icon img.emoji { width: 22px !important; height: 22px !important; }
	#categories .category-card__title {
		font-size: .88rem !important; line-height: 1.25 !important; margin: 0 !important;
		font-family: inherit !important; font-weight: 700 !important; text-align: left !important;
	}
	#categories .category-card__desc { display: none !important; }
}


