/* 3DPP Redesign — storefront type + layout */
/* Font loaded via layout <link> for reliability; keep family here as fallback contract. */

/* Token lay tu file Figma "3DPP" (node 3:15 trang-chu).
   Palette la Tailwind slate + cyan #00e5ff. Font Manrope + JetBrains Mono. */
:root {
  --rd-bg: #060a12;
  --rd-surface: #0a1120;
  --rd-card: #0e1420;
  --rd-border: #1e293b;
  --rd-cyan: #00e5ff;
  --rd-blue: #0066ff;
  --rd-text: #f1f5f9;
  --rd-muted: #94a3b8;
  --rd-muted2: #64748b;
  --rd-orange: #ff8c42;          /* badge giam gia */
  --rd-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rd-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale — giữ nhịp cho tiếng Việt */
  --rd-text-xs: 0.75rem;    /* 12 */
  --rd-text-sm: 0.875rem;   /* 14 */
  --rd-text-md: 1rem;       /* 16 */
  --rd-text-lg: 1.125rem;   /* 18 */
  --rd-leading-tight: 1.35;
  --rd-leading: 1.37;      /* Figma 14px/19.1px */
  --rd-leading-loose: 1.7;

  /* Token layout + a11y */
  --rd-header-h: 80px;   /* Figma: Header frame 1440x80 */
  --rd-tap: 44px;   /* vùng chạm tối thiểu trên mobile */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body.rd-body {
  margin: 0;
  min-height: 100vh;
  background: var(--rd-bg);
  color: var(--rd-text);
  font-family: var(--rd-font);
  font-size: var(--rd-text-sm);   /* Figma: body 14px */
  font-weight: 400;
  line-height: var(--rd-leading);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset headings — tranh moi trang tu dat font-size khac nhau.
   Bao selector trong :where() de do DAC HIEU (specificity) bang 0 cho phan
   `.rd-body`, chi con phan tu h1..h6 = (0,0,1). Neu khong, `.rd-body h2`
   (0,1,1) se de len moi rule component mot class nhu `.rd-news-card__title`
   hay `.rd-printlab-panel__title` (0,1,0) va lam chung phong to sai. */
:where(.rd-body) :is(h1, h2, h3, h4, h5, h6) {
  color: var(--rd-text);
  font-weight: 700;
  line-height: var(--rd-leading-tight);
  letter-spacing: -0.01em;
  margin: 0;
}
/* Figma: h1 62px/lh74 (ti le 1.19), h2 36px/lh49 (1.37).
   Figma chi co frame 1440 nen dau duoi dung clamp de suy ra cho may nho. */
:where(.rd-body) h1 { font-size: clamp(2rem, 4.3vw, 3.875rem); line-height: 1.19; font-weight: 800; }
:where(.rd-body) h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.37; font-weight: 800; }
:where(.rd-body) h3 { font-size: clamp(1.125rem, 1.5vw, 1.625rem); font-weight: 800; }
:where(.rd-body) h4 { font-size: var(--rd-text-sm); font-weight: 700; }
:where(.rd-body) p { margin: 0; line-height: var(--rd-leading-loose); color: var(--rd-muted); }
:where(.rd-body) small { font-size: var(--rd-text-xs); line-height: var(--rd-leading); color: var(--rd-muted2); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #060a12; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }

@keyframes rd-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }

}
@keyframes rd-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 255,0.2); }
  50% { box-shadow: 0 0 50px rgba(0, 229, 255,0.5); }

}

.rd-float { animation: rd-float 5s ease-in-out infinite; }
.rd-pulse { animation: rd-pulse 3s ease-in-out infinite; }

.rd-hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,100,200,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0, 229, 255,0.06) 0%, transparent 60%),
    #060a12;
}
.rd-grid-overlay {
  background-image:
    linear-gradient(rgba(0, 229, 255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.rd-text-cyan { color: var(--rd-cyan); }
.rd-text-gradient,
.pp-text-gradient {
  background: linear-gradient(90deg, var(--rd-cyan), var(--rd-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.rd-card {
  background: var(--rd-card);
  border: 1px solid var(--rd-border);
  border-radius: 12px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.rd-card:hover {
  border-color: rgba(0, 229, 255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255,0.08);
}

.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.9375rem;        /* Figma: CTA 15px */
  font-weight: 600;
  line-height: 1.25;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
/* Figma Primary-CTA: gradient 90deg, chu #060a12 (KHONG phai trang —
   trang tren cyan #00e5ff tuong phan rat kem va trong loe loet), shadow cyan. */
.rd-btn--primary {
  background: linear-gradient(90deg, var(--rd-cyan), var(--rd-blue));
  color: var(--rd-bg);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 255, 255, 0.35);
}
.rd-btn--primary:hover {
  box-shadow: 0 10px 28px rgba(0, 255, 255, 0.45);
  transform: translateY(-1px);
}
/* Figma Secondary-CTA: nen #fff@0.03, vien #334155, chu #f1f5f9 — diu hon
   nhieu so voi chu+vien cyan, giup nut chinh noi bat dung muc. */
.rd-btn--outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--rd-text);
  border: 1px solid #334155;
  font-weight: 600;
}
.rd-btn--outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: #475569;
  color: var(--rd-text);
}
.rd-btn--sm {
  min-height: 2.25rem;
  padding: 0.45rem 1rem;
  font-size: var(--rd-text-sm);
}
.rd-btn--block { width: 100%; }

/* Figma 'eyebrow-pill': 234x27 r20, fill #00e5ff@0.08, vien #00e5ff@0.19,
   padding 6/14, chu JetBrains Mono 11px w700 IN HOA cyan. */
.rd-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--rd-font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rd-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.19);
  margin-bottom: 0.75rem;
}
.rd-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--rd-cyan);
  animation: rd-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.rd-nav-link {
  color: var(--rd-muted);
  font-size: var(--rd-text-sm);
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s;
  text-decoration: none;
}
.rd-nav-link:hover,
.rd-nav-link.is-active { color: var(--rd-cyan); }

/* Layout shell */
.rd-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--rd-bg); color: var(--rd-text); }
.rd-main { flex: 1; padding-top: var(--rd-header-h); }
.rd-container { width: min(1280px, calc(100% - 2rem)); margin-inline: auto; }
@media (min-width: 768px) { .rd-container { width: min(1280px, calc(100% - 3rem)); } 
}

/* Header */
.rd-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--rd-header-h);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: rgba(6, 10, 18, 0.95);            /* Figma #060a12 @0.95 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}
@media (min-width: 768px) { .rd-header { padding: 0 1.75rem; } 
}
@media (min-width: 1024px) { .rd-header { padding: 0 2.5rem; } 
}
.rd-header__inner {
  width: min(1280px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.rd-logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; flex: 0 0 auto; min-width: 0; }
.rd-logo img { height: 32px; width: auto; object-fit: contain; }
@media (min-width: 768px) { .rd-logo img { height: 36px; } 
}
.rd-logo__name {
  font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 480px) { .rd-logo__name { font-size: 1.125rem; } 
}

/* Desktop nav — co giãn được, không bao giờ tràn thanh header */
.rd-header__nav {
  display: none;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
@media (min-width: 1180px) { .rd-header__nav { gap: 1.25rem; } 
}
.rd-header__nav .rd-nav-link { white-space: nowrap; }
/* Giỏ hàng luôn có mặt trên header ở mọi khổ màn hình — site bán hàng thì
   giỏ phải chạm được ngay; search / tra đơn / tài khoản nằm trong drawer. */
.rd-header__actions { display: flex; align-items: center; gap: 0.25rem; flex: 0 0 auto; margin-left: auto; }
@media (max-width: 1023px) {
  .rd-header__actions > *:not(.rd-cart-pill):not(.rd-account-pill):not(.rd-header__login) { display: none !important; }

}

.rd-search {
  display: none; align-items: center; gap: 0.5rem;
  padding: 0 0.75rem; height: var(--rd-tap); border-radius: 0.6rem; font-size: var(--rd-text-sm);
  background: #0e1420; border: 1px solid var(--rd-border); color: var(--rd-muted);
  margin-right: 0.35rem;
  transition: border-color .2s;
}
.rd-search:focus-within { border-color: var(--rd-cyan); }
.rd-search input {
  width: 9rem; border: 0; background: transparent; color: var(--rd-text);
  outline: none; font: inherit; font-size: var(--rd-text-sm); line-height: 1.4;
}
@media (min-width: 1320px) { .rd-search input { width: 12rem; } 
}
.rd-search input::placeholder { color: var(--rd-muted); }
.rd-search--mobile {
  display: flex; margin: 0 0 0.75rem; width: 100%; height: auto; padding: 0.7rem 0.9rem;
}
.rd-search--mobile input { width: 100%; font-size: var(--rd-text-md); }
.rd-icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--rd-tap);
  height: var(--rd-tap);
  padding: 0;
  border-radius: 0.6rem;
  color: var(--rd-text);
  text-decoration: none;
  flex: 0 0 auto;
}
.rd-icon-btn:hover {
  background: #0e1420;
  color: var(--rd-cyan);
}
.rd-header .rd-btn { min-height: var(--rd-tap); padding: 0.5rem 1rem; }
.rd-cart { position: relative; padding: 0.5rem; border-radius: 0.5rem; }
@media (min-width: 1180px) {
  .rd-search { display: flex; }

}
.rd-cart:hover { background: #0e1420; }

/* Nút hamburger */
.rd-menu-btn {
  display: grid; place-items: center;
  width: var(--rd-tap); height: var(--rd-tap);
  margin-left: auto;
  background: none; border: 0; border-radius: 0.6rem;
  color: var(--rd-text); cursor: pointer; padding: 0;
  flex: 0 0 auto;
}
.rd-menu-btn:hover { background: #0e1420; color: var(--rd-cyan); }
.rd-menu-btn__close { display: none; }
.rd-menu-btn[aria-expanded="true"] .rd-menu-btn__open { display: none; }
.rd-menu-btn[aria-expanded="true"] .rd-menu-btn__close { display: block; }

/* Drawer mobile — tự cuộn được nên không còn mục nào bị kẹt ngoài màn hình */
.rd-mobile-backdrop {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(4, 8, 18, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.rd-mobile-backdrop.is-open { opacity: 1; pointer-events: auto; }
.rd-mobile {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 70;
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.85rem calc(1.25rem + env(safe-area-inset-bottom));
  background: #0b1322;
  border-left: 1px solid var(--rd-border);
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
}
.rd-mobile.is-open { transform: translateX(0); visibility: visible; }
/* Trong flex column + overflow, con mặc định bị CO LẠI cho vừa khung thay vì
   làm khung cuộn. flex-shrink:0 buộc nội dung tràn ra để drawer cuộn thật. */
.rd-mobile > * { flex-shrink: 0; }
.rd-mobile__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--rd-tap);
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rd-border);
}
.rd-mobile__title {
  font-size: var(--rd-text-xs); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--rd-muted2);
}
.rd-mobile__close {
  display: grid; place-items: center;
  width: var(--rd-tap); height: var(--rd-tap);
  margin-right: -0.35rem;
  background: none; border: 0; border-radius: 0.6rem;
  color: var(--rd-muted); cursor: pointer; padding: 0;
}
.rd-mobile__close:hover { background: #111d33; color: var(--rd-text); }
.rd-mobile .rd-nav-link {
  display: flex; align-items: center;
  min-height: var(--rd-tap);
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  font-size: var(--rd-text-md);
  color: var(--rd-text);
}
.rd-mobile .rd-nav-link:hover { background: #111d33; }
.rd-mobile .rd-nav-link.is-active {
  color: var(--rd-cyan);
  background: rgba(0, 229, 255, 0.09);
}
.rd-mobile__sep {
  height: 1px; margin: 0.6rem 0.25rem;
  background: var(--rd-border);
  border: 0;
}
.rd-mobile__logout {
  width: 100%; justify-content: flex-start;
  background: none; border: 0; cursor: pointer; text-align: left;
  color: #f87171;
}
.rd-mobile form { margin: 0; }
@media (min-width: 1024px) {
  .rd-header__nav, .rd-header__actions { display: flex; }
  .rd-menu-btn, .rd-mobile, .rd-mobile-backdrop { display: none !important; }

}
/* Nav chiếm chỗ giữa, đẩy actions sang phải cả khi nav đang ẩn */
@media (max-width: 1023px) { .rd-menu-btn { margin-left: 0; } }

/* Footer */
.rd-footer { background: #060a12; border-top: 1px solid var(--rd-border); margin-top: auto; }
.rd-footer__grid {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: grid;
  /* 2 cột ngay từ màn nhỏ — 1 cột làm footer dài gấp đôi mà chẳng dễ đọc hơn */
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1.5rem;
}
/* Khối thương hiệu (logo + mô tả) trải hết hàng đầu cho dễ đọc */
@media (max-width: 767px) { .rd-footer__grid > :first-child { grid-column: 1 / -1; } }
@media (min-width: 768px) {
  .rd-footer__grid {
    width: min(1280px, calc(100% - 3rem));
    padding: 3.5rem 0;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }

}
.rd-footer__blurb { font-size: 0.875rem; line-height: 1.6; color: var(--rd-muted); margin: 1rem 0 0; }
.rd-footer h4 { font-size: 0.875rem; font-weight: 600; margin: 0 0 1rem; color: var(--rd-text); }
.rd-footer ul { display: flex; flex-direction: column; gap: 0; }
.rd-footer ul a {
  display: inline-flex; align-items: center;
  min-height: 2.125rem; padding: 0.2rem 0;
}
.rd-footer h4 { margin-bottom: 0.5rem; }
.rd-footer a { font-size: 0.875rem; color: var(--rd-muted); transition: color 0.2s; }
.rd-footer a:hover { color: var(--rd-cyan); }
/* Chọn qua `.rd-footer .rd-socials` để thắng `.rd-footer ul` / `.rd-footer ul a`
   — nếu không icon sẽ bị xếp dọc và co lại còn 32px. */
.rd-socials,
.rd-footer ul.rd-socials {
  display: flex; flex-flow: row wrap; gap: 0.5rem;
  margin: 1.25rem 0 0; padding: 0; list-style: none;
}
.rd-socials a,
.rd-footer ul.rd-socials a {
  width: var(--rd-tap); height: var(--rd-tap); min-height: var(--rd-tap);
  padding: 0; border-radius: 0.6rem;
  display: grid; place-items: center;
  border: 1px solid var(--rd-border); color: var(--rd-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.rd-socials a:hover,
.rd-footer ul.rd-socials a:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--rd-cyan);
}
.rd-footer__bottom {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem;
  border-top: 1px solid var(--rd-border);
  font-size: var(--rd-text-xs); color: var(--rd-muted2);
  text-align: center;
}
@media (min-width: 768px) {
  .rd-footer__bottom {
    width: min(1280px, calc(100% - 3rem));
    flex-direction: row;
    text-align: left;
  }

}
.rd-footer__bottom p { margin: 0; color: inherit; font-size: inherit; }
.rd-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; }
.rd-footer__legal a {
  color: var(--rd-muted2); font-size: var(--rd-text-xs);
  display: inline-flex; align-items: center; min-height: 2rem;
}
.rd-footer__legal a:hover { color: var(--rd-cyan); }

/* Home hero */
.rd-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.rd-hero__glow {
  position: absolute; top: 33%; right: 0;
  width: 600px; height: 600px; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 229, 255,0.07) 0%, transparent 65%);
}
.rd-hero__inner {
  position: relative; z-index: 10;
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 6rem 0;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .rd-hero__inner { grid-template-columns: 1fr 1fr; } 
}
.rd-hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.28;
  margin: 0 0 1rem;
}
.rd-hero__lead {
  font-size: var(--rd-text-md);
  line-height: var(--rd-leading-loose);
  color: var(--rd-muted);
  max-width: 32rem;
  margin: 0 0 1.75rem;
}
.rd-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.rd-hero__ctas .rd-btn { padding: 0.75rem 1.5rem; }
.rd-hero__visual { display: flex; justify-content: center; }
.rd-hero__frame {
  position: relative;
  width: min(24rem, 100%);
  aspect-ratio: 1;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255,0.25);
}
.rd-hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.rd-hero__badge {
  position: absolute;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #0e1420;
  border: 1px solid var(--rd-border);
}
.rd-hero__badge--tr { top: -1rem; right: -1rem; }
.rd-hero__badge-value { font-size: 0.875rem; font-weight: 700; color: var(--rd-cyan); }

/* Sections */
.rd-section { padding: 4.5rem 0; }
.rd-section--surface { background: #0e1420; }
.rd-section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.rd-section__head h2,
.rd-section__title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  margin: 0;
  line-height: var(--rd-leading-tight);
  color: var(--rd-text);
}
.rd-section__head .rd-btn,
.rd-section__head .rd-btn--outline {
  min-height: 2.35rem;
  padding: 0.5rem 1.1rem;
}
.rd-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 0.85rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .rd-product-grid { gap: 1.25rem; }

}
@media (min-width: 900px) {
  .rd-product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

}
@media (min-width: 1200px) {
  .rd-product-grid { grid-template-columns: repeat(4, 1fr); }

}
.rd-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #101b30 0%, #0c1526 100%);
  border: 1px solid rgba(26, 42, 69, 0.95);
}
.rd-product-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 229, 255, 0.08);
  transform: translateY(-4px);
}
.rd-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(0, 229, 255, 0.12), transparent 60%),
    #0a1120;
}
.rd-product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.rd-product-card:hover .rd-product-card__media img { transform: scale(1.06); }
.rd-product-card__tag {
  position: absolute; top: 0.65rem; left: 0.65rem;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.01em;
  background: rgba(6, 11, 24, 0.72); color: var(--rd-cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
  backdrop-filter: blur(8px);
}
.rd-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0.95rem 1rem 1.05rem;
  gap: 0.3rem;
  min-height: 0;
}
.rd-product-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  color: var(--rd-text);
  line-height: 1.4;
  letter-spacing: -0.01em;
  min-height: calc(1.4em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.rd-product-card__title-link {
  color: inherit;
  text-decoration: none;
}
.rd-product-card__title-link:hover { color: var(--rd-cyan); }
.rd-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.7rem;
}
.rd-product-card__price-wrap {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}
.rd-product-card__from {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--rd-muted2);
  line-height: 1.2;
}
.rd-product-card__price {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--rd-cyan);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.rd-product-card__cart-form { margin: 0; flex-shrink: 0; }
.rd-product-card__cart-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #060a12;
  background: linear-gradient(90deg, var(--rd-cyan), var(--rd-blue));
  box-shadow: 0 6px 18px rgba(0, 229, 255, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.rd-product-card__cart-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 229, 255, 0.4);
}
.rd-product-card__soldout {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rd-muted2);
  white-space: nowrap;
}

.rd-shop-page { padding: 2.5rem 0 4rem; }
.rd-shop-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .rd-shop-toolbar {
    flex-direction: row;
    align-items: center;
  }

}
.rd-shop-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .rd-shop-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

}
.rd-shop-search { margin-bottom: 1rem; }
.rd-shop-page .rd-pagination { margin-top: 2.5rem; }
.rd-btn--block { display: flex; width: 100%; justify-content: center; }

.rd-why-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .rd-why-grid { grid-template-columns: repeat(3, 1fr); } 
}
.rd-why-card { padding: 1.5rem; }
.rd-why-card__icon { font-size: 1.875rem; margin-bottom: 1rem; }
.rd-why-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; }
.rd-why-card p { font-size: 0.875rem; line-height: 1.6; color: var(--rd-muted); margin: 0; }

.rd-news-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .rd-news-grid { grid-template-columns: repeat(3, 1fr); } 
}
.rd-news-card__media { aspect-ratio: 16/9; overflow: hidden; background: #1e293b; }
.rd-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.rd-news-card:hover .rd-news-card__media img { transform: scale(1.05); }
.rd-news-card__body { padding: 1.25rem; }
.rd-news-card__meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.rd-news-card__cat {
  font-size: 12px; padding: 0.125rem 0.5rem; border-radius: 4px;
  background: rgba(0, 229, 255,0.1); color: var(--rd-cyan);
}
.rd-news-card__date { font-size: 12px; color: var(--rd-muted2); }
.rd-news-card__title {
  font-size: 0.875rem; font-weight: 600; line-height: 1.4; margin: 0;
  color: #f1f5f9; transition: color 0.2s;
}
.rd-news-card:hover .rd-news-card__title { color: var(--rd-cyan); }

.rd-cta {
  margin: 0 1rem 4rem;
  padding: 5rem 1.5rem;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(0, 229, 255,0.07), rgba(0, 102, 255,0.1));
  border: 1px solid rgba(0, 229, 255,0.2);
  text-align: center;
}
@media (min-width: 768px) { .rd-cta { margin: 0 2.5rem 4rem; } 
}
.rd-cta__inner { position: relative; z-index: 10; max-width: 42rem; margin: 0 auto; }
.rd-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.85rem;
  line-height: var(--rd-leading-tight);
  color: var(--rd-text);
}
.rd-cta p {
  font-size: var(--rd-text-md);
  color: var(--rd-muted);
  margin: 0 0 1.75rem;
  line-height: var(--rd-leading-loose);
}
.rd-cta__actions { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
@media (min-width: 640px) { .rd-cta__actions { flex-direction: row; } 
}
.rd-cta__actions .rd-btn { padding: 0.875rem 2rem; font-size: 0.875rem; }

.rd-center { text-align: center; }
.rd-center .rd-tag { margin-inline: auto; }
.rd-mb-12 { margin-bottom: 3rem; }
.rd-hide-mobile { display: none; }
@media (min-width: 768px) { .rd-hide-mobile { display: inline-flex; } 
}

/* Inner pages fallback */
.rd-page { width: min(1280px, calc(100% - 3rem)); margin: 0 auto; padding: 3rem 0 5rem; }
.rd-page h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; margin: 0 0 1rem; line-height: 1.35; }
.rd-page .content { color: var(--rd-muted); line-height: 1.7; }
.rd-socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.rd-socials a {
  width: 32px; height: 32px; border-radius: 0.5rem;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  border: 1px solid var(--rd-border); color: var(--rd-muted);
  text-decoration: none;
}
.rd-socials a:hover { background: #1e293b; }
.rd-footer__blurb { font-size: 0.875rem; line-height: 1.6; color: var(--rd-muted); margin: 1rem 0 0; }
.rd-footer h4 { font-size: 0.875rem; font-weight: 600; margin: 0 0 1rem; color: var(--rd-text); }
.rd-footer ul { display: flex; flex-direction: column; gap: 0.625rem; list-style: none; margin: 0; padding: 0; }
.rd-footer li a { font-size: 0.875rem; color: var(--rd-muted); }
.rd-footer li a:hover { color: var(--rd-cyan); }

.rd-container { width: min(1280px, calc(100% - 3rem)); margin-inline: auto; }
.rd-section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.5rem;
}
.rd-section__head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800; margin: 0; line-height: 1.35;
}
.rd-hero-bg { /* alias */ }
.rd-grid-overlay {
  background-image:
    linear-gradient(rgba(0, 229, 255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.rd-hero__glow {
  position: absolute; top: 33%; right: 0;
  width: 600px; height: 600px; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 229, 255,0.07) 0%, transparent 65%);
}
.rd-tag__dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--rd-cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255,.6);
}
.rd-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.rd-hero__ctas .rd-btn { padding: .75rem 1.75rem; font-size: .875rem; }
.rd-hero__visual { display: flex; justify-content: center; }
.rd-section--surface { background: #0e1420; }
.rd-center { text-align: center; }
.rd-center .rd-tag { margin-inline: auto; }
.rd-mb-12 { margin-bottom: 3rem; }
.rd-hide-mobile { display: none; }
@media (min-width: 768px) { .rd-hide-mobile { display: inline-flex; } 
}
.rd-why-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .rd-why-grid { grid-template-columns: repeat(3, 1fr); } 
}
.rd-why-card { padding: 1.5rem; }
.rd-why-card__icon { font-size: 1.875rem; margin-bottom: 1rem; }
.rd-why-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }
.rd-why-card p { font-size: .875rem; line-height: 1.6; color: var(--rd-muted); margin: 0; }
.rd-news-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .rd-news-grid { grid-template-columns: repeat(3, 1fr); } 
}
.rd-news-card__media { aspect-ratio: 16/9; overflow: hidden; background: #1e293b; }
.rd-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.rd-news-card:hover .rd-news-card__media img { transform: scale(1.05); }
.rd-news-card__body { padding: 1.25rem; }
.rd-news-card__meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.rd-news-card__cat {
  font-size: 12px; padding: .125rem .5rem; border-radius: 4px;
  background: rgba(0, 229, 255,.1); color: var(--rd-cyan);
}
.rd-news-card__date { font-size: 12px; color: var(--rd-muted2); }
.rd-news-card__title {
  font-size: .875rem; font-weight: 600; line-height: 1.4; margin: 0;
  color: #f1f5f9; transition: color .2s;
}
.rd-news-card:hover .rd-news-card__title { color: var(--rd-cyan); }
.rd-cta__inner { position: relative; z-index: 10; max-width: 42rem; margin: 0 auto; }
.rd-cta__actions { display: flex; flex-direction: column; gap: .75rem; justify-content: center; }
@media (min-width: 640px) { .rd-cta__actions { flex-direction: row; } 
}
.rd-cta__actions .rd-btn { padding: .875rem 2rem; font-size: .875rem; }

/* —— Inner pages —— */
.rd-page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rd-border);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,100,200,0.14) 0%, transparent 70%),
    #060a12;
}
.rd-page-hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 800;
  margin: 0;
  line-height: var(--rd-leading-tight);
}
.rd-page-hero p {
  color: var(--rd-muted);
  margin: 0.85rem 0 0;
  font-size: var(--rd-text-md);
  line-height: var(--rd-leading-loose);
  max-width: 40rem;
}
.rd-breadcrumbs { font-size: 13px; color: var(--rd-muted); margin-bottom: 1rem; }
.rd-breadcrumbs a { color: var(--rd-cyan); }
.rd-chip {
  padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500;
  border: 1px solid var(--rd-border); color: var(--rd-muted); background: transparent;
  text-decoration: none; transition: all .2s;
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
}
.rd-chip:hover, .rd-chip.is-active {
  color: var(--rd-bg); font-weight: 700; border-color: transparent;
  background: linear-gradient(90deg, var(--rd-cyan), var(--rd-blue));
}
.rd-chip--swatch {
  border-radius: 8px;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
}
.rd-chip--swatch.is-active, .rd-chip--swatch.is-selected {
  background: transparent;
  color: var(--rd-text);
  border-color: var(--rd-cyan);
  box-shadow: 0 0 0 1px var(--rd-cyan);
}
.rd-swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--swatch, var(--rd-muted));
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.rd-form { display: grid; gap: 1rem; }
.rd-label { display: block; font-size: var(--rd-text-sm); color: var(--rd-muted); margin-bottom: 0.4rem; font-weight: 500; line-height: 1.4; }
.rd-input, .rd-textarea, .rd-select {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: 8px;
  background: #0e1420; border: 1px solid var(--rd-border); color: var(--rd-text);
  outline: none; transition: border-color .2s;
}
.rd-input:focus, .rd-textarea:focus, .rd-select:focus { border-color: var(--rd-cyan); }
.rd-textarea { min-height: 120px; resize: vertical; }
.rd-error,
.rd-form__error {
  color: #f87171;
  font-size: var(--rd-text-xs);
  line-height: 1.35;
  margin: 0.35rem 0 0;
  padding: 0;
  display: block;
  background: none;
  flex: none;
  place-items: unset;
}
.rd-form .rd-error,
.rd-form .rd-form__error {
  margin-top: 0.35rem;
}

.rd-vn-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .rd-vn-location {
    grid-template-columns: 1fr;
  }

}

.rd-search-select {
  position: relative;
}
.rd-search-select__native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0);
}
.rd-search-select__control {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: #0e1420;
  border: 1px solid var(--rd-border);
  color: var(--rd-text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.rd-search-select__control::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--rd-muted);
  border-bottom: 2px solid var(--rd-muted);
  transform: rotate(45deg);
  margin-top: -0.2rem;
  flex-shrink: 0;
}
.rd-search-select.is-open .rd-search-select__control,
.rd-search-select__control:focus {
  border-color: var(--rd-cyan);
  outline: none;
}
.rd-search-select.is-disabled .rd-search-select__control {
  opacity: 0.55;
  cursor: not-allowed;
}
.rd-search-select__label.is-placeholder {
  color: var(--rd-muted);
}
.rd-search-select__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: #0e1420;
  border: 1px solid var(--rd-border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.rd-search-select__search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rd-border);
  background: transparent;
  color: var(--rd-text);
  padding: 0.75rem 0.9rem;
  font: inherit;
  outline: none;
}
.rd-search-select__list {
  max-height: 240px;
  overflow: auto;
  padding: 0.35rem;
}
.rd-search-select__option {
  width: 100%;
  display: block;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--rd-text);
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}
.rd-search-select__option:hover,
.rd-search-select__option.is-active {
  background: rgba(0, 229, 255, 0.12);
  color: var(--rd-cyan);
}
.rd-search-select__option.is-placeholder {
  color: var(--rd-muted);
}
.rd-search-select__empty {
  padding: 0.75rem 0.7rem;
  color: var(--rd-muted);
  font-size: 0.9rem;
}

.rd-pdp { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .rd-pdp { grid-template-columns: 1fr 1.1fr; } 
}
.rd-pdp__media {
  aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--rd-border); background: #0e1420;
}
.rd-pdp__media img { width: 100%; height: 100%; object-fit: cover; }
.rd-pdp h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; margin: 0 0 0.75rem; }
.rd-pdp__price { font-size: 1.5rem; font-weight: 800; color: var(--rd-cyan); margin: 0.75rem 0; }
.rd-pdp__desc { color: var(--rd-muted); line-height: 1.6; }
.rd-cart-summary {
  padding: 1.25rem; border-radius: 12px; background: #0e1420;
  border: 1px solid var(--rd-border); max-width: 28rem;
}
.rd-cart-summary .row { display: flex; justify-content: space-between; margin: 0.4rem 0; color: var(--rd-muted); font-size: 0.9rem; }
.rd-cart-summary .row.total { color: var(--rd-text); font-size: 1.1rem; font-weight: 700; margin-top: 0.75rem; }

.rd-prose { color: var(--rd-muted); line-height: 1.7; }
.rd-prose h2, .rd-prose h3 { color: var(--rd-text); }
.rd-prose img { border-radius: 12px; margin: 1rem 0; }
.rd-prose a { color: var(--rd-cyan); }

.rd-contact-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .rd-contact-grid { grid-template-columns: 1fr 1.4fr; } 
}
.rd-contact-fields { display: grid; gap: 1rem; }
@media (min-width: 640px) { .rd-contact-fields { grid-template-columns: 1fr 1fr; } 
}
.rd-info-card { padding: 1.25rem; margin-bottom: 1rem; }
.rd-info-card h3 { font-size: 0.875rem; font-weight: 700; margin: 0 0 0.35rem; }
.rd-info-card p { font-size: 0.875rem; color: var(--rd-muted); margin: 0; line-height: 1.5; }

/* Contact attachment dropzone */
.rd-contact-attach { display: grid; gap: 0.4rem; }
.rd-contact-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 9.5rem;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  border: 1.5px dashed rgba(0, 229, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.06), rgba(0, 102, 255, 0.03)),
    var(--rd-surface);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.rd-contact-drop:hover,
.rd-contact-drop.is-dragover {
  border-color: rgba(0, 229, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.1), rgba(0, 102, 255, 0.05)),
    var(--rd-surface);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}
.rd-contact-drop.is-dragover {
  transform: translateY(-1px);
}
.rd-contact-drop.is-filled {
  border-style: solid;
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.07);
  min-height: auto;
  padding: 0.85rem 1rem;
}
.rd-contact-drop.is-invalid {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.06);
}
.rd-contact-drop input[type='file'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.rd-contact-drop.is-filled input[type='file'] {
  width: calc(100% - 2.75rem);
  right: 2.75rem;
}
.rd-contact-drop__idle {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  pointer-events: none;
}
.rd-contact-drop.is-filled .rd-contact-drop__idle { display: none; }
.rd-contact-drop__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  color: var(--rd-cyan);
  background: rgba(0, 229, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.15);
}
.rd-contact-drop__title {
  margin: 0;
  font-size: var(--rd-text-sm);
  font-weight: 650;
  color: var(--rd-text);
  line-height: var(--rd-leading-tight);
}
.rd-contact-drop__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  margin-top: 0.15rem;
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  font-size: var(--rd-text-xs);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--rd-bg);
  background: linear-gradient(90deg, var(--rd-cyan), var(--rd-blue));
}
.rd-contact-drop__hint {
  margin: 0.35rem 0 0;
  max-width: 22rem;
  font-size: var(--rd-text-xs);
  color: var(--rd-muted2);
  line-height: 1.45;
}
.rd-contact-drop__file {
  display: none;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  pointer-events: none;
}
.rd-contact-drop.is-filled .rd-contact-drop__file { display: flex; }
.rd-contact-drop__file-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9px;
  color: var(--rd-cyan);
  background: rgba(0, 229, 255, 0.12);
}
.rd-contact-drop__file-meta {
  min-width: 0;
  flex: 1 1 auto;
}
.rd-contact-drop__file-name {
  margin: 0;
  font-size: var(--rd-text-sm);
  font-weight: 650;
  color: var(--rd-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-contact-drop__file-size {
  margin: 0.15rem 0 0;
  font-size: var(--rd-text-xs);
  color: var(--rd-muted2);
  font-family: var(--rd-font-mono);
}
.rd-contact-drop__remove {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--rd-border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
  color: var(--rd-muted);
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.rd-contact-drop__remove:hover {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
}
.rd-link-danger { color: #f87171; background: none; border: 0; cursor: pointer; font-size: 13px; }

.rd-checkout-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .rd-checkout-grid { grid-template-columns: 1.2fr 0.8fr; } 
}
.rd-checkout-hint {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  color: var(--rd-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.55;
}
.rd-checkout-errors {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  font-size: 0.875rem;
  line-height: 1.5;
}
.rd-required {
  color: #f87171;
  font-weight: 700;
  margin-left: 0.15rem;
}

/* Shop search */
.rd-shop-search { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.rd-shop-search .rd-input { flex: 1; min-width: 12rem; }

/* Reviews */
.rd-reviews { background: #0e1420; }
.rd-review-box {
  padding: 1rem; border: 1px solid var(--rd-border); border-radius: 8px;
  background: rgba(6, 11, 24, 0.45);
}
.rd-stars { color: #4a5a78; letter-spacing: 1px; }
.rd-stars__item.is-filled { color: #fbbf24; }
.rd-rating-input { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.rd-rating-input__option {
  display: inline-flex; align-items: center; gap: 0.25rem;
  color: var(--rd-muted); font-size: 0.875rem; cursor: pointer;
}
.rd-rating-input__option input { accent-color: var(--rd-cyan); }
.rd-review-list { list-style: none; padding: 0; margin: 0; }
.rd-review-item { padding: 1rem 0; border-top: 1px solid var(--rd-border); }

/* About — redesigned */
.rd-about-kicker {
  margin: 0 0 0.65rem;
  color: var(--rd-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rd-about-heading {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.rd-about-section-head {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.rd-about-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--rd-border);
}
.rd-about-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(0, 229, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(0, 102, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #07101f 0%, var(--rd-bg) 100%);
}
.rd-about-hero__inner {
  max-width: 44rem;
  text-align: center;
}
.rd-about-hero__brand {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--rd-text);
  line-height: 1.2;
}
.rd-about-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.rd-about-hero__lead {
  margin: 1.15rem auto 0;
  max-width: 36rem;
  color: var(--rd-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
}
.rd-about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.rd-about-story {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.rd-about-story__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .rd-about-story__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.25rem;
  }

}
.rd-about-story__visual {
  position: relative;
  min-height: 16rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(ellipse 70% 60% at 40% 30%, rgba(0, 229, 255, 0.14), transparent 60%),
    #0a1120;
  border: 1px solid var(--rd-border);
}
@media (min-width: 900px) {
  .rd-about-story__visual {
    margin-left: calc(-1 * max(0px, (100vw - 72rem) / 2));
    width: calc(100% + max(0px, (100vw - 72rem) / 2));
    border-left: 0;
    border-radius: 0 1rem 1rem 0;
    min-height: 22rem;
    aspect-ratio: auto;
  }

}
.rd-about-story__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rd-about-story__body { margin-top: 1.1rem; }
.rd-about-story__body p { color: var(--rd-muted); line-height: 1.7; }

.rd-about-team {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--rd-border);
  background: #0a1120;
}
.rd-about-team__grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 1.75rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  max-width: 44rem;
  text-align: center;
}
.rd-about-team__avatar {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--rd-border);
  background: #0e1420;
  display: grid;
  place-items: center;
  color: var(--rd-cyan);
  font-weight: 700;
  font-size: 1.1rem;
}
.rd-about-team__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rd-about-team__person h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.rd-about-team__person p {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--rd-muted);
  line-height: 1.4;
}

.rd-about-cta {
  padding: clamp(3rem, 6vw, 4.5rem) 0 4.5rem;
}
.rd-about-cta__inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.25rem 1.5rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(0, 229, 255, 0.12), transparent 60%),
    #0e1420;
  border-radius: 1rem;
}
.rd-about-cta__inner p {
  margin: 0.85rem auto 1.5rem;
  color: var(--rd-muted);
  line-height: 1.6;
  max-width: 28rem;
}
.rd-team-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-width: 42rem; margin: 0 auto;
}
.rd-team-card { padding: 1.25rem; text-align: center; }
.rd-team-card__avatar {
  width: 4rem; height: 4rem; border-radius: 999px; overflow: hidden;
  margin: 0 auto 0.85rem; border: 2px solid var(--rd-border);
  background: #0e1420; display: grid; place-items: center; color: var(--rd-cyan); font-weight: 700;
}
.rd-team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rd-team-card h3 { margin: 0; font-size: 0.9rem; }
.rd-team-card p { margin: 0.35rem 0 0; font-size: 0.75rem; color: var(--rd-muted); }

/* Cookie banner — match redesign */
.rd-cookie {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  padding: 1rem 1.25rem;
  background: rgba(12, 20, 37, 0.96);
  border-top: 1px solid var(--rd-border);
  backdrop-filter: blur(12px);
}
.rd-cookie__inner {
  width: min(920px, 100%);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.rd-cookie__text {
  margin: 0; flex: 1 1 16rem;
  font-size: var(--rd-text-sm);
  line-height: var(--rd-leading);
  color: var(--rd-text);
}
.rd-cookie__text a { color: var(--rd-cyan); text-decoration: underline; text-underline-offset: 2px; }

.rd-mobile__logout {
  width: 100%; text-align: left; background: none; border: 0;
  cursor: pointer; font: inherit; color: inherit; padding: 0.625rem 0.75rem;
}
.rd-media-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--rd-muted2); font-size: var(--rd-text-xs); font-weight: 600;
}
.rd-cta__overlay { position: absolute; inset: 0; opacity: .4; pointer-events: none; }

.rd-quote-card { text-align: left; }
.rd-quote-card__avatar {
  width: 48px; height: 48px; border-radius: 999px; object-fit: cover;
  margin-bottom: 0.85rem; border: 1px solid var(--rd-border);
}
.rd-quote-card__text {
  color: var(--rd-muted); line-height: var(--rd-leading-loose);
  margin: 0 0 1rem; font-size: var(--rd-text-sm);
}
.rd-quote-card__name {
  margin: 0; font-size: var(--rd-text-sm); font-weight: 700; color: var(--rd-text);
}
.rd-quote-card__meta {
  margin: 0.3rem 0 0; color: var(--rd-muted2); font-size: var(--rd-text-xs);
}

.rd-prose {
  color: var(--rd-muted);
  line-height: var(--rd-leading-loose);
  font-size: var(--rd-text-md);
}
.rd-prose h2, .rd-prose h3 { color: var(--rd-text); margin: 1.5rem 0 0.65rem; }
.rd-prose p { margin: 0 0 1rem; color: inherit; }
.rd-prose a { color: var(--rd-cyan); }
.rd-prose ul, .rd-prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.rd-prose li { margin: 0.35rem 0; }

.rd-form-title {
  font-size: var(--rd-text-lg);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--rd-text);
  line-height: var(--rd-leading-tight);
}
.rd-hint {
  display: block; margin-top: 0.35rem;
  color: var(--rd-muted2); font-size: var(--rd-text-xs); line-height: 1.45;
}

.rd-form .rd-btn { justify-self: start; }

/* —— Buttons extras —— */
.rd-btn--ghost {
  background: transparent;
  color: var(--rd-muted);
  border: 1px solid var(--rd-border);
}
.rd-btn--ghost:hover {
  color: var(--rd-text);
  border-color: rgba(0, 229, 255,0.35);
  background: rgba(0, 229, 255,0.05);
}
.rd-btn--danger {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.35);
}
.rd-btn--danger:hover {
  background: rgba(248,113,113,0.1);
  border-color: rgba(248,113,113,0.55);
}
.rd-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.rd-text-link {
  color: var(--rd-cyan);
  font-size: var(--rd-text-sm);
  font-weight: 500;
  text-decoration: none;
}
.rd-text-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.rd-check {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--rd-muted); font-size: var(--rd-text-sm); cursor: pointer;
}
.rd-check input { accent-color: var(--rd-cyan); }
.rd-badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: var(--rd-text-xs); font-weight: 600; line-height: 1.3;
  background: rgba(0, 229, 255,0.12); color: var(--rd-cyan);
  border: 1px solid rgba(0, 229, 255,0.22);
}

/* —— Auth / track panels —— */
.rd-auth {
  padding: 3rem 1.25rem 4.5rem;
  min-height: calc(100dvh - var(--rd-header-h));
  display: flex; align-items: flex-start; justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,100,200,0.12) 0%, transparent 70%),
    var(--rd-bg);
}
.rd-auth__panel {
  width: min(28rem, 100%);
  padding-top: 1rem;
}
.rd-auth__panel h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--rd-text);
}
.rd-auth__lead {
  margin: 0 0 1.25rem;
  color: var(--rd-muted);
  font-size: var(--rd-text-md);
  line-height: var(--rd-leading-loose);
}
.rd-auth__card { padding: 1.35rem; }
.rd-auth__card:hover { transform: none; box-shadow: none; }
.rd-auth__row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem;
}
.rd-auth__demo {
  margin: 0 0 1rem;
  font-size: var(--rd-text-xs);
  color: var(--rd-muted2);
  line-height: 1.5;
}
.rd-auth__demo code {
  color: var(--rd-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.rd-auth__divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--rd-muted2); font-size: var(--rd-text-xs);
}
.rd-auth__divider::before,
.rd-auth__divider::after {
  content: ""; flex: 1; height: 1px; background: var(--rd-border);
}
.rd-auth__footer {
  margin: 1.25rem 0 0;
  color: var(--rd-muted);
  font-size: var(--rd-text-sm);
  text-align: center;
  line-height: 1.5;
}

/* —— Account —— */
.rd-account { padding: 2rem 0 4rem; }
.rd-account-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rd-border);
}
.rd-account-nav__link {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: var(--rd-text-sm);
  font-weight: 500;
  color: var(--rd-muted);
  border: 1px solid transparent;
  line-height: 1.35;
}
.rd-account-nav__link:hover { color: var(--rd-text); background: rgba(0, 229, 255,0.05); }
.rd-account-nav__link.is-active {
  color: var(--rd-cyan);
  border-color: rgba(0, 229, 255,0.3);
  background: rgba(0, 229, 255,0.08);
}
.rd-account__actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  margin-bottom: 2rem;
}
.rd-account__section { margin-top: 0.5rem; }
.rd-account__section-head {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem;
  margin-bottom: 1rem;
}
.rd-account__section-head h2 {
  margin: 0;
  font-size: var(--rd-text-lg);
  font-weight: 700;
  color: var(--rd-text);
}
.rd-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  display: grid; gap: 1rem; justify-items: center;
}
.rd-empty:hover { transform: none; box-shadow: none; }
.rd-empty p { margin: 0; }
.rd-list-card { padding: 0 1.15rem; }
.rd-list-card:hover { transform: none; box-shadow: none; }
.rd-order-list { margin: 0; }
.rd-order-list li { border-bottom: 1px solid var(--rd-border); }
.rd-order-list li:last-child { border-bottom: 0; }
.rd-order-list a {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1rem;
  padding: 0.95rem 0; color: var(--rd-text);
}
.rd-order-list a:hover .rd-order-list__code { color: var(--rd-cyan); }
.rd-order-list__code { font-weight: 700; }
.rd-order-list__amount { margin-left: auto; color: var(--rd-cyan); font-weight: 600; font-size: var(--rd-text-sm); }
.rd-table-card { padding: 0; overflow-x: auto; }
.rd-table-card:hover { transform: none; box-shadow: none; }
.rd-table {
  width: 100%; border-collapse: collapse; min-width: 32rem;
}
.rd-table th,
.rd-table td {
  padding: 0.9rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--rd-border);
  font-size: var(--rd-text-sm);
  vertical-align: middle;
}
.rd-table th {
  color: var(--rd-muted);
  font-weight: 600;
  background: rgba(12,20,37,0.65);
}
.rd-table tr:last-child td { border-bottom: 0; }
.rd-table__actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: flex-end;
}
.rd-pagination { margin-top: 1.5rem; }
.rd-form-card { padding: 1.35rem; max-width: 36rem; }
.rd-form-card:hover { transform: none; box-shadow: none; }
.rd-address-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.rd-address-card { padding: 1.25rem; }
.rd-address-card h3 {
  margin: 0.65rem 0 0.35rem;
  font-size: var(--rd-text-md);
  color: var(--rd-text);
}
.rd-address-card p { margin: 0; font-size: var(--rd-text-sm); }
.rd-address-card__phone { margin-top: 0.35rem !important; color: var(--rd-muted2) !important; }
.rd-address-card__actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1rem;
}

/* —— Error pages —— */
.rd-error-shell { min-height: 100vh; }
.rd-error-header {
  height: var(--rd-header-h); display: flex; align-items: center;
  padding: 0 1.5rem; border-bottom: 1px solid var(--rd-border);
  background: rgba(6,11,24,0.92);
}
.rd-error-page {
  flex: 1; display: grid; place-items: center;
  padding: 3rem 1.25rem 4rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,100,200,0.14) 0%, transparent 70%),
    var(--rd-bg);
}
.rd-error__card {
  width: min(34rem, 100%);
  text-align: center;
  padding: 2rem 1.5rem;
}
.rd-error__card .rd-tag { margin-inline: auto; }
.rd-error__code {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin: 0.5rem 0 0.75rem;
}
.rd-error__card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--rd-text);
}
.rd-error__card p {
  margin: 0 0 1.75rem;
  color: var(--rd-muted);
  line-height: var(--rd-leading-loose);
}
.rd-error__actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center;
}

/* Customer avatar + account menu */
.rd-avatar {
  width: 2rem; height: 2rem; border-radius: 999px; overflow: hidden;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(90deg, rgba(0, 229, 255,0.25), rgba(0, 102, 255,0.35));
  border: 1px solid rgba(0, 229, 255,0.35);
  color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 1;
}
.rd-avatar--sm { width: 2.25rem; height: 2.25rem; font-size: 0.72rem; }
.rd-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-avatar__initials { letter-spacing: 0.02em; }

/* Header dang nhap: account pill (avatar + ten) + logout, khong dung dropdown. */
.rd-header__logout-form { margin: 0; display: inline-flex; }
.rd-header__logout { color: #f87171; }
.rd-header__logout:hover { background: rgba(248,113,113,0.12); color: #fca5a5; }

.rd-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 36px;
  padding: 0.15rem 0.15rem 0.15rem 0.2rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
  max-width: 12rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.rd-account-pill:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 229, 255, 0.28);
}
.rd-account-pill__main {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0 0.2rem 0 0;
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
}
.rd-account-pill__avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.28);
  color: var(--rd-cyan);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  overflow: hidden;
}
.rd-account-pill__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rd-account-pill__text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.rd-account-pill__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 6.5rem;
}
.rd-account-pill__meta {
  display: none;
}
.rd-account-pill__logout-form {
  margin: 0;
  display: inline-flex;
  padding-left: 0.05rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.rd-account-pill__logout {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.rd-account-pill__logout:hover {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
}
.rd-account-pill--guest {
  padding-right: 0.55rem;
  cursor: pointer;
}
.rd-account-pill--guest .rd-account-pill__text { display: none; }
@media (min-width: 1024px) {
  .rd-account-pill__text { display: flex; }
  .rd-account-pill--guest .rd-account-pill__text { display: flex; }
  .rd-account-pill--guest .rd-account-pill__name { max-width: none; }
}
@media (max-width: 1023px) {
  .rd-account-pill {
    height: 36px;
    padding: 0.15rem;
    border-color: transparent;
    background: transparent;
  }
  .rd-account-pill__main { padding: 0; }
  .rd-account-pill__logout-form { display: none; }
  .rd-account-pill--guest { padding: 0.15rem; }
}

.rd-avatar--lg { width: 3.25rem; height: 3.25rem; font-size: 0.95rem; }
.rd-account-hero {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.rd-account-hero h1 { margin: 0 0 0.35rem; }
.rd-account-hero p { margin: 0; }
.rd-account-profile {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.25rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rd-border);
}
.rd-account-profile__hint {
  margin: 0; color: var(--rd-muted); font-size: 0.88rem; max-width: 28rem;
}

/* —— Bank transfer / VietQR —— */
.rd-bank-pay {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid var(--rd-border);
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.06);
}
.rd-bank-pay__head {
  margin-bottom: 1rem;
  text-align: center;
}
.rd-bank-pay__title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rd-text);
  text-align: center;
}
.rd-bank-pay .rd-bank-pay__lead {
  display: block;
  width: 100%;
  margin: 0;
  max-width: none;
  font-size: 0.875rem;
  color: var(--rd-muted);
  line-height: 1.55;
  text-align: center;
}
.rd-bank-pay__memo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin: 0 auto 1.25rem;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--rd-cyan) 35%, var(--rd-border));
  background: #0e1420;
}
.rd-bank-pay__memo-main {
  min-width: 0;
}
.rd-bank-pay__memo-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rd-muted);
}
.rd-bank-pay__memo-code {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.1rem, 3.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--rd-cyan);
  line-height: 1.25;
  word-break: break-all;
}
.rd-bank-pay__copy {
  min-height: 2.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid var(--rd-border);
  background: rgba(0, 229, 255, 0.12);
  color: var(--rd-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.rd-bank-pay__copy:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: color-mix(in srgb, var(--rd-cyan) 40%, var(--rd-border));
}
.rd-bank-pay__memo-hint {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--rd-muted2);
  line-height: 1.4;
}
.rd-bank-pay__qr {
  display: flex;
  justify-content: center;
  margin: 0 auto 0.85rem;
  padding: 0.7rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--rd-border);
  line-height: 0;
}
.rd-bank-pay__qr img {
  display: block;
  width: min(240px, 72vw);
  height: auto;
  border-radius: 4px;
}
.rd-bank-pay .rd-bank-pay__qr-hint {
  display: block;
  width: 100%;
  margin: 0 0 0.35rem;
  max-width: none;
  text-align: center;
  font-size: 0.84rem;
  color: var(--rd-muted);
  line-height: 1.5;
}
.rd-bank-pay .rd-bank-pay__qr-note {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  max-width: none;
  text-align: center;
  font-size: 0.78rem;
  color: var(--rd-muted2);
}
.rd-bank-pay__facts {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rd-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.rd-bank-pay__facts > div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.rd-bank-pay__facts-total {
  grid-column: 1 / -1;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--rd-border);
}
.rd-bank-pay__facts dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--rd-muted2);
}
.rd-bank-pay__facts dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--rd-text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.rd-bank-pay__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.03em;
}
.rd-bank-pay__amount {
  color: var(--rd-cyan);
  font-size: 1.15rem;
  font-weight: 800;
}
@media (max-width: 480px) {
  .rd-bank-pay__memo {
    grid-template-columns: 1fr;
  }
  .rd-bank-pay__copy {
    justify-self: start;
  }
  .rd-bank-pay__facts {
    grid-template-columns: 1fr;
  }

}
.rd-order-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

/* Alerts / flash */
.rd-alert {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.55rem;
  font-size: var(--rd-text-sm);
  line-height: 1.45;
  border: 1px solid transparent;
}
.rd-alert--error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.28);
}
.rd-alert--info {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.28);
}
.rd-badge--gray {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.25);
}

/* Order detail / thanks */
.rd-order-page {
  padding: 2rem 0 4rem;
  max-width: 40rem;
}
.rd-order-page__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin: 0.5rem 0 1rem;
}
.rd-order-page__card {
  padding: 1.5rem;
}
.rd-order-page__card:hover { transform: none; box-shadow: none; }
.rd-order-page__total {
  margin: 1rem 0 0.5rem;
  font-size: 1.15rem;
}
.rd-order-page__items-title {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.75rem;
}
.rd-order-progress {
  margin: 0 0 1.35rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--rd-border);
  border-radius: 10px;
  background: #0e1420;
}
.rd-order-progress__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.rd-order-progress__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rd-muted);
}
.rd-order-progress__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--rd-muted);
  line-height: 1.5;
}
.rd-order-progress__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}
.rd-order-progress__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  min-width: 0;
}
.rd-order-progress__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: calc(50% + 0.65rem);
  right: calc(-50% + 0.65rem);
  height: 2px;
  background: var(--rd-border);
  z-index: 0;
}
.rd-order-progress__step.is-done:not(:last-child)::after {
  background: rgba(0, 229, 255, 0.55);
}
.rd-order-progress__dot {
  position: relative;
  z-index: 1;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--rd-border);
  background: #0a1120;
  flex-shrink: 0;
}
.rd-order-progress__step.is-done .rd-order-progress__dot {
  border-color: var(--rd-cyan);
  background: var(--rd-cyan);
}
.rd-order-progress__step.is-current .rd-order-progress__dot {
  border-color: var(--rd-cyan);
  background: rgba(0, 229, 255, 0.25);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.15);
}
.rd-order-progress__label {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--rd-muted2);
}
.rd-order-progress__step.is-done .rd-order-progress__label,
.rd-order-progress__step.is-current .rd-order-progress__label {
  color: var(--rd-text);
  font-weight: 600;
}
@media (max-width: 640px) {
  .rd-order-progress__steps {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .rd-order-progress__step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.65rem;
  }
  .rd-order-progress__step:not(:last-child)::after {
    display: none;
  }
  .rd-order-progress__label {
    font-size: 0.8125rem;
  }

}
.rd-order-address {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--rd-border);
  border-radius: 8px;
  background: #0e1420;
}
.rd-order-address span { color: var(--rd-muted); }
.rd-order-track-box {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--rd-border);
  border-radius: 10px;
  background: #0e1420;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rd-order-track-box__hint {
  margin: 0;
  color: var(--rd-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.rd-order-track-box__codes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}
.rd-order-track-box__row {
  display: grid;
  gap: 0.25rem;
}
.rd-order-track-box__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--rd-muted2);
}
.rd-order-track-box__value {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--rd-text);
  word-break: break-all;
  line-height: 1.45;
}
.rd-order-track-box__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}
.rd-order-track-box__copy {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
}
.rd-order-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}
.rd-order-items li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rd-border);
  color: var(--rd-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.rd-order-items li:last-child { border-bottom: 0; }
.rd-order-items__name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--rd-text);
  font-weight: 500;
}
.rd-order-items__price {
  flex: 0 0 auto;
  color: var(--rd-cyan);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rd-order-cancel { margin-top: 1.5rem; }
.rd-order-cancel .rd-hint { margin-top: 0.5rem; }
.rd-order-cancel-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--rd-muted);
}

/* Checkout polish */
.rd-checkout-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 0 4rem;
}
.rd-checkout-page > .rd-alert { margin-bottom: 0; }
.rd-checkout-form { padding: 1.5rem; }
.rd-checkout-form:hover { transform: none; box-shadow: none; }
.rd-checkout-saved { margin-bottom: 1rem; }
.rd-checkout-save-address { margin: 1rem 0; }
.rd-checkout-options { margin-top: 1rem; }
.rd-checkout-errors__title { margin: 0 0 0.5rem; font-weight: 600; }
.rd-checkout-errors ul { margin: 0; padding-left: 1.1rem; }
.rd-checkout-summary { max-width: none; height: fit-content; }
.rd-checkout-summary h2 { font-size: 1.1rem; margin: 0 0 1rem; }
.rd-checkout-summary__lines {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.rd-checkout-summary__lines li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  color: var(--rd-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.rd-checkout-summary__lines li > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--rd-text);
}
.rd-checkout-summary__lines li > span:last-child {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 600;
  color: var(--rd-text);
}
.rd-checkout-summary .row strong { color: var(--rd-text); }
.rd-checkout-summary__count {
  margin: 0.5rem 0 0;
  color: var(--rd-muted);
  font-size: 0.85rem;
}
.rd-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--rd-cyan);
  color: #060a12;
  font-weight: 700;
  border-radius: 0 0 0.5rem 0;
}
.rd-skip-link:focus {
  left: 0;
}
body.rd-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Responsive hardening — giỏ hàng, checkout, form, vùng chạm, a11y
   ========================================================================== */

/* —— Trang giỏ hàng: danh sách card thay cho bảng 5 cột —— */
.rd-cart-page { padding: 2rem 0 4rem; }
.rd-cart-page > .rd-alert { margin-bottom: 1.25rem; }

.rd-cart-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .rd-cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 24rem);
    gap: 2rem;
  }

}

.rd-cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}
.rd-cart-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.85rem 1rem;
  padding: 0.85rem;
  border: 1px solid var(--rd-border);
  border-radius: 12px;
  background: var(--rd-card);
}
@media (min-width: 640px) {
  .rd-cart-row {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1rem;
  }

}
.rd-cart-row__media {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1120;
  border: 1px solid var(--rd-border);
}
@media (min-width: 640px) { .rd-cart-row__media { width: 88px; height: 88px; } 
}
.rd-cart-row__media img { width: 100%; height: 100%; object-fit: cover; }

.rd-cart-row__main { min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.rd-cart-row__title {
  color: var(--rd-text);
  font-size: var(--rd-text-sm);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
@media (min-width: 640px) { .rd-cart-row__title { font-size: var(--rd-text-md); } 
}
.rd-cart-row__title:hover { color: var(--rd-cyan); }
.rd-cart-row__unit {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem;
  margin: 0;
  font-size: var(--rd-text-xs);
  color: var(--rd-muted2);
  line-height: 1.4;
}
.rd-cart-row__unit strong {
  color: var(--rd-muted);
  font-size: var(--rd-text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rd-cart-row__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-top: 0.15rem;
  min-width: 0;
}
.rd-cart-row__controls > * { min-width: 0; }
/* flex-wrap để nút "Cập nhật" tự xuống dòng trên máy rất hẹp (320px)
   thay vì đẩy card tràn ngang. */
.rd-cart-qty {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.4rem; margin: 0; min-width: 0;
}
.rd-cart-qty__submit { flex-shrink: 0; }
@media (max-width: 359px) {
  .rd-cart-qty__submit { padding-inline: 0.7rem; }

}

.rd-cart-row__remove { margin: 0; }
.rd-cart-row__remove-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: var(--rd-tap);
  padding: 0 0.5rem;
  margin-left: -0.5rem;
  background: none; border: 0; border-radius: 8px;
  color: #f87171;
  font-size: var(--rd-text-sm);
  font-weight: 500;
  cursor: pointer;
}
.rd-cart-row__remove-btn:hover { background: rgba(248, 113, 113, 0.1); }

.rd-cart-row__total {
  grid-column: 2;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rd-border);
  font-size: var(--rd-text-sm);
  color: var(--rd-muted);
}
.rd-cart-row__total strong {
  color: var(--rd-cyan);
  font-size: var(--rd-text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .rd-cart-row__total {
    grid-column: 3;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 0;
    border-top: 0;
    text-align: right;
  }
  .rd-cart-row__total-label { font-size: var(--rd-text-xs); color: var(--rd-muted2); }

}

/* —— Tóm tắt giỏ hàng / checkout —— */
.rd-cart-summary--aside {
  max-width: none;
  min-width: 0;
}
@media (min-width: 900px) {
  .rd-checkout-summary {
    position: sticky;
    top: calc(var(--rd-header-h) + 1.25rem);
  }

}
@media (min-width: 1024px) {
  .rd-cart-summary--aside {
    position: sticky;
    top: calc(var(--rd-header-h) + 1.25rem);
  }

}
.rd-cart-summary__title { font-size: var(--rd-text-lg); margin: 0 0 1rem; }
.rd-cart-summary__note {
  margin: 0.5rem 0 1rem;
  color: var(--rd-muted);
  font-size: var(--rd-text-xs);
  line-height: 1.5;
}
.rd-cart-summary__continue { margin-top: 0.6rem; }

.rd-coupon-form { margin: 0 0 1rem; }
.rd-coupon-form__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rd-coupon-form__row .rd-input { flex: 1 1 8rem; min-width: 0; min-height: var(--rd-tap); }
.rd-coupon-form__row .rd-btn { flex: 0 0 auto; }
.rd-coupon-applied {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  color: var(--rd-cyan);
  font-size: var(--rd-text-sm);
}
.rd-coupon-applied form { margin: 0; }

/* Tổng tiền gọn ngay trên nút đặt hàng — chỉ cần khi tóm tắt nằm dưới form */
.rd-checkout-total-inline {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rd-border);
  color: var(--rd-muted);
  font-size: var(--rd-text-sm);
}
.rd-checkout-total-inline strong {
  color: var(--rd-cyan);
  font-size: var(--rd-text-lg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (min-width: 900px) { .rd-checkout-total-inline { display: none; } 
}

/* —— Form: vùng chạm 44px, chặn iOS zoom, select có mũi tên riêng —— */
.rd-input, .rd-textarea, .rd-select {
  min-height: var(--rd-tap);
  font-size: var(--rd-text-md);   /* < 16px là iOS sẽ tự zoom khi focus */
}
.rd-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rd-muted) 50%),
    linear-gradient(135deg, var(--rd-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) center, calc(100% - 0.75rem) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.rd-select:focus {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rd-cyan) 50%),
    linear-gradient(135deg, var(--rd-cyan) 50%, transparent 50%);
}
.rd-check {
  min-height: var(--rd-tap);
  gap: 0.65rem;
  align-items: center;
}
.rd-check input[type="checkbox"],
.rd-check input[type="radio"] {
  width: 1.15rem; height: 1.15rem; flex-shrink: 0; margin: 0;
}
.rd-link-danger, .rd-link-muted {
  min-height: var(--rd-tap);
  display: inline-flex;
  align-items: center;
  font-size: var(--rd-text-sm);
}

/* —— Card sản phẩm ở màn hẹp ——
   Card rộng ~123px không đủ chỗ cho giá 8 chữ số (101px) NẰM CẠNH nút.
   Nên cho giá chiếm hẳn một dòng, nút xuống dòng dưới và căn phải.
   Nút vẫn là hình tròn gọn — không kéo full-width thành khối nặng. */
@media (max-width: 479px) {
  .rd-product-card__footer {
    flex-wrap: wrap;
    row-gap: 0.5rem;
    align-items: center;
  }
  .rd-product-card__price-wrap { flex: 1 1 100%; }
  .rd-product-card__cart-form,
  .rd-product-card__soldout { margin-left: auto; }
  .rd-product-card__soldout { white-space: normal; text-align: right; }

  /* Nút CHỮ ("Chọn tùy chọn") đọc rõ hơn khi trải hết dòng */
  .rd-product-card__cta {
    flex: 1 1 100%;
    white-space: normal;
    text-align: center;
    min-height: 2.25rem;
    font-size: 0.75rem;
    line-height: 1.25;
    padding: 0.35rem 0.6rem;
  }
}

/* —— Tìm kiếm trong trang shop: nút không rơi xuống dòng lẻ loi —— */
.rd-shop-search .rd-input { min-height: var(--rd-tap); }
.rd-shop-search .rd-btn { flex: 0 0 auto; }
@media (max-width: 479px) {
  .rd-shop-search { flex-wrap: nowrap; }
  .rd-shop-search .rd-input { flex: 1 1 auto; min-width: 0; }

}

/* Chip lọc: cuộn ngang gọn thay vì xuống 4 dòng trên mobile */
@media (max-width: 639px) {
  .rd-shop-page .rd-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
  }
  .rd-shop-page .rd-filters::-webkit-scrollbar { display: none; }
  .rd-shop-page .rd-chip { flex: 0 0 auto; }
}
.rd-chip { min-height: 2.25rem; }

/* —— Hero trang chủ: 90vh làm màn ngang điện thoại không dùng nổi —— */
@media (max-width: 767px) {
  .rd-hero { min-height: auto; }
  .rd-hero__inner { padding: 3rem 0; gap: 2rem; }
  .rd-hero__glow { width: 320px; height: 320px; }
}

/* —— A11y: viền tiêu điểm bàn phím (trước đây không có) —— */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--rd-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* —— Tôn trọng thiết lập giảm chuyển động của hệ thống —— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rd-float, .rd-pulse { animation: none !important; }
  .rd-card:hover, .rd-product-card:hover, .rd-btn--primary:hover { transform: none; }
}

/* —— Nội dung dài không được đẩy tràn ngang trang ——
   Lưu ý: KHÔNG dùng overflow-x:hidden trên body — nó tạo scroll container
   và làm position:sticky (tóm tắt giỏ hàng/checkout) mất tác dụng. */
.rd-prose { overflow-wrap: break-word; }
.rd-prose table { display: block; width: 100%; overflow-x: auto; }
.rd-body :where(h1, h2, h3, p, li, td, th) { overflow-wrap: break-word; }

/* —— Vùng chạm trên thiết bị cảm ứng (desktop giữ nguyên cho gọn) —— */
@media (hover: none) and (pointer: coarse) {
  .rd-btn--sm { min-height: var(--rd-tap); }
  .rd-chip { min-height: 2.5rem; }
  .rd-footer ul a { min-height: 2.25rem; }
  .rd-footer__legal a { min-height: var(--rd-tap); }
  .rd-logo { min-height: var(--rd-tap); }
  .rd-cart-row__title { padding: 0.15rem 0; }
  .rd-pagination a, .rd-pagination span {
    min-width: 2.5rem; min-height: 2.5rem;
    display: inline-flex; align-items: center; justify-content: center;
  }
}

/* —— Font mono cho so lieu va nhan ky thuat (theo Figma dung JetBrains Mono) —— */
.rd-mono {
  font-family: var(--rd-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.rd-eyebrow {
  font-family: var(--rd-font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rd-cyan);
}

/* Input giu 16px de iOS khong tu zoom khi focus — la yeu cau chuc nang,
   khong phai tham my, nen co tinh lech voi thiet ke 14px cua Figma. */
.rd-input, .rd-textarea, .rd-select, .rd-cart-qty__input, .rd-qty {
  font-size: var(--rd-text-md);
}

/* ==========================================================================
   Header theo file Figma "3DPP" (node Header, 1440x80)
   ========================================================================== */

/* —— Logo: tile 44x44 r10 + ten 20px/w800 + tagline mono 9px cyan —— */
.rd-logo { align-items: center; gap: 0.875rem; }
.rd-logo__name {
  font-size: 1.0625rem; font-weight: 800; color: var(--rd-text);
  letter-spacing: 0.01em; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 768px) { .rd-logo__name { font-size: 1.25rem; } 
}

/* —— Nav: can giua, cach nhau 44px, active co gach gradient 24x2 —— */
.rd-header__nav {
  justify-content: center;
  gap: 1.75rem;
}
@media (min-width: 1180px) { .rd-header__nav { gap: 2.75rem; } 
}   /* Figma 44px */
.rd-header__nav .rd-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: 1.25rem;
  font-size: var(--rd-text-sm);
  font-weight: 500;
  color: var(--rd-muted);
}
.rd-header__nav .rd-nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 1rem;
  width: 24px; height: 2px;                /* Figma: 24x2, r1 */
  border-radius: 1px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--rd-cyan), var(--rd-blue));
  transition: transform 0.2s ease;
}
.rd-header__nav .rd-nav-link:hover { color: var(--rd-text); }
.rd-header__nav .rd-nav-link.is-active {
  color: var(--rd-text);
  font-weight: 700;                        /* Figma: active w700 */
}
.rd-header__nav .rd-nav-link.is-active::after { transform: translateX(-50%) scaleX(1); }

/* —— Search: nut icon 40x40, mo rong thanh o nhap khi bam (co JS) —— */
.rd-search {
  display: none;
  align-items: center;
  gap: 0;
  height: 40px; padding: 0;
  border: 0; background: none;
  margin-right: 0;
}
@media (min-width: 1024px) { .rd-search { display: flex; } 
}
.rd-search__toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);   /* Figma */
  color: var(--rd-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.rd-search__toggle:hover { background: rgba(255, 255, 255, 0.07); color: var(--rd-cyan); }
.rd-search input {
  width: 0; min-width: 0; padding: 0; border: 0; opacity: 0;
  background: transparent; color: var(--rd-text);
  outline: none; font: inherit; font-size: var(--rd-text-sm);
  transition: width 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}
.rd-search.is-open {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.rd-search.is-open input { width: 11rem; opacity: 1; padding: 0 0.75rem 0 0.25rem; }
@media (min-width: 1320px) { .rd-search.is-open input { width: 14rem; } 
}

/* —— Pill gio hang: 156x46, so luong + tong tien + badge —— */
.rd-cart-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: auto;
  min-height: 46px;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--rd-text);
  text-decoration: none;
  flex: 0 0 auto;
  transition: opacity 0.2s;
}
.rd-cart-pill:hover { opacity: 0.9; }
.rd-cart-pill__icon-wrap {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.28);
  flex: 0 0 auto;
}
.rd-cart-pill__icon { color: var(--rd-cyan); display: block; }
.rd-cart-pill__text { display: none; flex-direction: column; gap: 0.1rem; line-height: 1.15; min-width: 0; }
.rd-cart-pill__count {
  font-size: 0.8125rem; font-weight: 600; color: #fff; white-space: nowrap;
  font-family: var(--rd-font-mono);
  letter-spacing: 0.01em;
}
.rd-cart-pill__total {
  font-size: 0.8125rem; font-weight: 500; color: var(--rd-cyan); white-space: nowrap;
}
/* Figma khong co frame mobile — duoi 1024px thu gon con icon + badge */
@media (min-width: 1024px) {
  .rd-cart-pill { padding: 0 0.875rem 0 1rem; }
  .rd-cart-pill__text { display: flex; }
}
@media (max-width: 1023px) {
  .rd-cart-pill { width: var(--rd-tap); padding: 0; justify-content: center; }

}
/* Badge tron 18px, nen cyan, chu #060a12 (Figma) */
.rd-cart-pill .rd-cart__badge {
  position: static;
  width: 18px; min-width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--rd-cyan);
  color: var(--rd-bg);
  font-size: 0.625rem; font-weight: 800; line-height: 18px;
  text-align: center;
  box-shadow: none;
  flex: 0 0 auto;
}

/* ==========================================================================
   Lop tao chieu sau theo Figma — thieu chung thi cai toi trong "xin" chu
   khong phai "sau"
   ========================================================================== */

/* Duong ke cyan 3px ngay duoi header (Figma: x0 y80 1440x3,
   gradient #00e5ff -> #0080ff -> #00e5ff) */
.rd-header { position: fixed; }

/* Kicker cua section: KHONG phai pill — Figma dung gach 28x2 gradient
   roi den chu mono in hoa cyan (khac hero eyebrow co chua cham). */
.rd-section__head .rd-tag {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  gap: 10px;
  margin-bottom: 0.85rem;
}
.rd-section__head .rd-tag::before {
  content: "";
  width: 28px; height: 2px;
  border-radius: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--rd-cyan), var(--rd-blue));
}

/* Hero: lop mo dan xuong nen section ke tiep (Figma x0 y660 1440x100) */
.rd-hero { position: relative; }
.rd-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--rd-bg));
  pointer-events: none;
  z-index: 1;
}

/* Dai CTA truoc footer (Figma: gradient cyan/blue rat nhat 0.06-0.08) */
.rd-cta {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.08), rgba(0, 102, 255, 0.06), rgba(0, 229, 255, 0.08));
  border: 1px solid rgba(0, 229, 255, 0.2);
}

/* ==========================================================================
   Sync with redesign-3dpp (Figma Make) — header
   Layout.tsx: h-16, logo+nav+search+cart+quote, no login icon, no cyan bar
   ========================================================================== */

:root {
  --rd-header-h: 64px;
}

.rd-header {
  height: 64px;
  padding: 0 1.5rem;
  background: rgba(6, 11, 24, 0.92) !important;
  border-bottom: 1px solid #1a2a45 !important;
  backdrop-filter: blur(14px);
}
@media (min-width: 768px) { .rd-header { padding: 0 2.5rem; } 
}
.rd-header::after { display: none !important; content: none !important; }

.rd-header__inner {
  width: min(80rem, 100%); /* max-w-7xl */
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.rd-logo {
  display: flex !important;
  align-items: center;
  gap: 0.625rem !important;
  text-decoration: none;
  flex: 0 0 auto;
}
.rd-logo > img {
  height: 36px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}
.rd-logo__name {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: 0.02em;
  line-height: 1 !important;
  white-space: nowrap;
}

.rd-header__nav {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  gap: 1.75rem !important; /* gap-7 */
  overflow: visible;
}
/* Menu desktop chi hien tu 1024px — dung luc nut hamburger an di.
   Truoc day dat 768px nen tu 768-1023 ca hai cung hien, va 6 muc menu
   khong du cho, tran de len logo (chong 6px) lan giỏ hàng. */
@media (min-width: 1024px) { .rd-header__nav { display: flex; } 
}
/* 1024-1179px: 6 muc voi gap 1.75rem rong 480px > 468px cho trong.
   Thu hep gap o khoang nay, tu 1180px co rule gap 2.75rem rieng. */
@media (min-width: 1024px) and (max-width: 1179px) {
  .rd-header__nav { gap: 1.25rem !important; }
}

.rd-header__nav .rd-nav-link {
  position: static;
  padding: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #6b7fa0 !important;
  text-decoration: none;
  white-space: nowrap;
}
.rd-header__nav .rd-nav-link::after { display: none !important; content: none !important; }
.rd-header__nav .rd-nav-link:hover { color: #e2e8f5 !important; }
.rd-header__nav .rd-nav-link.is-active {
  color: #00c8e8 !important;
  font-weight: 500 !important;
}

.rd-header__actions {
  display: none;
  align-items: center;
  gap: 1rem !important; /* gap-4 */
  flex: 0 0 auto;
  margin-left: auto;
}
@media (min-width: 768px) {
  .rd-header__actions { display: flex; }
  .rd-header__actions > * { display: flex !important; }

}
@media (max-width: 767px) {
  .rd-header__actions { display: flex; }
  .rd-header__actions > *:not(.rd-cart-pill):not(.rd-account-pill):not(.rd-header__login) { display: none !important; }

}

.rd-header__login {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  text-decoration: none;
}
.rd-header__login:hover {
  color: var(--rd-cyan);
  background: rgba(255, 255, 255, 0.05);
}
.rd-header__actions .rd-header__logout-form {
  display: inline-flex !important;
}
.rd-header__actions .rd-account-pill {
  display: inline-flex !important;
}

/* Figma actions: search icon + cart pill (count + total) */
.rd-header__actions {
  display: flex !important;
  align-items: center;
  gap: 0.75rem !important;
}
.rd-header__actions .rd-search {
  display: flex !important;
  align-items: center;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
}
.rd-header__actions .rd-search__toggle {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #94a3b8;
  background: transparent;
}
.rd-header__actions .rd-search__toggle:hover { color: var(--rd-cyan); background: rgba(255,255,255,0.05); }
.rd-header__actions .rd-search input {
  width: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none;
}
.rd-header__actions .rd-cart-pill {
  display: inline-flex !important;
}
@media (min-width: 1024px) {
  .rd-header__actions .rd-cart-pill__text { display: flex !important; }

}
@media (max-width: 1023px) {
  .rd-header__actions .rd-search { display: none !important; }
  .rd-header__actions .rd-cart-pill__text { display: none !important; }
  .rd-header__actions .rd-cart-pill {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
  .rd-header__actions .rd-cart-pill__icon-wrap {
    width: 40px;
    height: 40px;
  }

}

.rd-menu-btn { margin-left: 0.5rem; }
@media (min-width: 768px) { .rd-menu-btn { display: none !important; } 
}


.rd-tag {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 200, 232, 0.08);
  border: 1px solid rgba(0, 200, 232, 0.25);
  color: #00c8e8;
}

.rd-shop-page {
  width: min(80rem, calc(100% - 3rem));
  margin-inline: auto;
  padding: 2.5rem 0 4rem;
}
.rd-shop-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .rd-shop-toolbar {
    flex-direction: row;
    align-items: center;
  }

}

.rd-shop-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .rd-shop-layout {
    flex-direction: row;
    align-items: flex-start;
  }

}

/* ==========================================================================
   Trang san pham — theo Figma frame 'san-pham' (3:360)
   Sidebar-Filters 280px @x80 | Products-Grid-Panel 960px @x400 (gap 40)
   ========================================================================== */

.rd-shop-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .rd-shop-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2.5rem;                          /* Figma: 360 -> 400 = 40px */
  }

}

/* —— Sidebar filter —— */
.rd-facets {
  min-width: 0;
  border: 1px solid var(--rd-border);
  border-radius: 8px;
  background: var(--rd-card);
}
.rd-facets__summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--rd-tap);
  padding: 0 1rem;
  font-size: var(--rd-text-sm);
  font-weight: 700;
  color: var(--rd-text);
  cursor: pointer;
  list-style: none;
}
.rd-facets__summary::-webkit-details-marker { display: none; }
.rd-facets__summary svg { transition: transform 0.2s ease; flex: 0 0 auto; }
.rd-facets[open] > .rd-facets__summary svg { transform: rotate(180deg); }
.rd-facets__body { padding: 0.25rem 1rem 1rem; }
/* Tu 1024px tro len: sidebar luon mo, bo khung + bo nut gap lai */
@media (min-width: 1024px) {
  .rd-facets {
    border: 0;
    background: none;
    border-radius: 0;
    position: sticky;
    top: calc(var(--rd-header-h) + 1.5rem);
  }
  .rd-facets__summary { display: none; }
  .rd-facets__body { padding: 0; }
}

.rd-facet + .rd-facet {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rd-border);   /* Figma: divider 280x1 #1e293b */
}
.rd-facet__title {
  margin: 0 0 0.6rem;
  font-size: var(--rd-text-md);             /* Figma: Manrope 16px w800 */
  font-weight: 800;
  color: var(--rd-text);
}
.rd-facet__list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.rd-facet__list--checks { gap: 0.75rem; }

/* Hang danh muc: 280x39 r6, active fill #141c2c */
.rd-facet__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  min-height: 39px;
  padding: 0 0.75rem;
  border-radius: 6px;
  font-size: var(--rd-text-sm);
  color: var(--rd-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.rd-facet__row:hover { background: rgba(255, 255, 255, 0.03); color: var(--rd-text); }
.rd-facet__row.is-active {
  background: #141c2c;
  color: var(--rd-text);
  font-weight: 700;
}
.rd-facet__count { flex: 0 0 auto; font-size: 0.6875rem; color: var(--rd-muted2); }
.rd-facet__row.is-active .rd-facet__count { color: var(--rd-cyan); }

.rd-facet__check { min-height: 2rem; align-items: center; gap: 0.6rem; font-size: var(--rd-text-sm); }
.rd-facet__check span { color: var(--rd-muted); }
.rd-facet__check:hover span { color: var(--rd-text); }
.rd-facet__check input:checked ~ span { color: var(--rd-text); }

.rd-facet__actions { margin-top: 1.25rem; display: grid; gap: 0.6rem; justify-items: center; }
.rd-facet__clear { font-size: 0.75rem; color: var(--rd-muted2); text-decoration: underline; text-underline-offset: 2px; }
.rd-facet__clear:hover { color: var(--rd-cyan); }

/* —— Toolbar: dem ket qua + sap xep —— */
.rd-shop-results { min-width: 0; }
.rd-shop-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.rd-shop-toolbar__count {
  margin: 0;
  font-size: 0.9375rem;                     /* Figma: 15px w400 #94a3b8 */
  color: var(--rd-muted);
}
/* Figma 'Sap xep' control: 214x35 r6 fill #141c2c stroke #1e293b */
.rd-sort {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: var(--rd-tap);
  padding: 0 0.75rem 0 1rem;
  border-radius: 6px;
  background: #141c2c;
  border: 1px solid var(--rd-border);
  flex: 0 0 auto;
}
.rd-sort__label { margin: 0; font-size: var(--rd-text-sm); color: var(--rd-muted); white-space: nowrap; }
.rd-sort__select {
  appearance: none; -webkit-appearance: none;
  min-height: 0; padding: 0 1.35rem 0 0;
  border: 0; background: transparent;
  color: var(--rd-text);
  font-size: var(--rd-text-sm); font-weight: 700;
  cursor: pointer; outline: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rd-muted) 50%),
    linear-gradient(135deg, var(--rd-muted) 50%, transparent 50%);
  background-position: calc(100% - 8px) center, calc(100% - 3px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.rd-sort__select option { background: var(--rd-card); color: var(--rd-text); }

/* —— Grid: Figma 3 cot 304px, gap 24px —— */
.rd-shop-results .rd-product-grid { gap: 1rem 0.85rem; }
@media (min-width: 640px) { .rd-shop-results .rd-product-grid { gap: 1.5rem; } 
}
/* 1024-1199: con sidebar 280px nen 3 cot lam card chi ~200px -> giu 2 cot.
   Tu 1200px moi 3 cot nhu Figma. */
@media (min-width: 1024px) {
  .rd-shop-results .rd-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1200px) {
  .rd-shop-results .rd-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

}

/* —— Phan trang: o 40x40 r6, cach 8px —— */
.rd-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.5rem;
}
.rd-pager__item {
  display: grid; place-items: center;
  min-width: 40px; height: 40px;
  padding: 0 0.4rem;
  border-radius: 6px;
  background: #141c2c;
  border: 1px solid var(--rd-border);
  color: var(--rd-text);
  font-family: var(--rd-font-mono);
  font-size: var(--rd-text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.rd-pager__item:hover { border-color: rgba(0, 229, 255, 0.35); color: var(--rd-cyan); }
.rd-pager__item.is-active {
  background: var(--rd-cyan);
  border-color: var(--rd-cyan);
  color: var(--rd-bg);
}
.rd-pager__item.is-gap { background: none; border-color: transparent; color: var(--rd-muted2); }
.rd-pager__item.is-disabled { opacity: 0.35; background: none; color: var(--rd-muted2); }

/* —— Card san pham theo Figma —— */
.rd-product-card {
  display: flex; flex-direction: column; height: 100%;
  overflow: hidden;
  border-radius: 8px;                        /* Figma r8 (khong phai 16) */
  background: #141c2c;                       /* Figma fill */
  border: 1px solid var(--rd-border);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.rd-product-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.rd-product-card__media {
  position: relative; display: block;
  aspect-ratio: 304 / 220;                   /* Figma Image-Area */
  flex-shrink: 0; overflow: hidden;
  background: #0a1120;
}
.rd-product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.rd-product-card:hover .rd-product-card__media img { transform: scale(1.05); }

/* Badge: 36x23 r4 fill #00e5ff, chu mono 11 w700 mau nen */
.rd-product-card__tag {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center;
  height: 23px; padding: 0 8px;
  border-radius: 4px;
  background: var(--rd-cyan);
  color: var(--rd-bg);
  font-family: var(--rd-font-mono);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 0; backdrop-filter: none;
}
.rd-product-card__tag.is-sale { background: var(--rd-orange); color: #1a0d02; }

.rd-product-card__body {
  display: flex; flex-direction: column; flex: 1 1 auto;
  padding: 1rem;                             /* Figma: 16px */
  gap: 0.4rem;
  min-height: 0;
}
.rd-product-card__title {
  margin: 0;
  font-size: 0.9375rem;                      /* Figma: 15px w700 */
  font-weight: 700;
  line-height: 1.35;
  color: var(--rd-text);
  min-height: calc(1.35em * 2);
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.rd-product-card__title-link { color: inherit; text-decoration: none; }
.rd-product-card__title-link:hover { color: var(--rd-cyan); }

.rd-stars { display: inline-flex; align-items: center; gap: 4px; color: var(--rd-cyan); line-height: 0; }
.rd-stars__item { flex: 0 0 auto; }
.rd-stars__item:not(.is-filled):not(.is-half) { color: var(--rd-muted2); }

.rd-product-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-top: auto; padding-top: 0.75rem;
}
.rd-product-card__price-wrap { min-width: 0; display: grid; gap: 0.1rem; }
.rd-product-card__price {
  margin: 0;
  font-family: var(--rd-font-mono);          /* Figma: JetBrains Mono 15 w700 */
  font-size: 0.9375rem; font-weight: 700;
  color: var(--rd-cyan);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.rd-product-card__price-was {
  font-family: var(--rd-font-mono);
  font-size: 0.6875rem; font-weight: 400;
  color: var(--rd-muted2);
  text-decoration: line-through;
}
.rd-product-card__from { font-size: 0.6875rem; font-weight: 500; color: var(--rd-muted2); line-height: 1.2; }

/* Nut them gio: 36x36 r6 fill #1f2a3f stroke #334155 */
.rd-product-card__cart-form { margin: 0; flex-shrink: 0; }
.rd-product-card__cart-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 6px;
  background: #1f2a3f;
  border: 1px solid #334155;
  color: var(--rd-text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-shadow: none;
}
.rd-product-card__cart-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--rd-cyan);
  color: var(--rd-cyan);
  transform: none;
}
.rd-product-card__soldout { font-size: 0.6875rem; font-weight: 600; color: var(--rd-muted2); white-space: nowrap; }

/* Vung cham 44px tren thiet bi cam ung */
@media (hover: none) and (pointer: coarse) {
  .rd-product-card__cart-btn { width: var(--rd-tap); height: var(--rd-tap); }
  .rd-pager__item { min-width: var(--rd-tap); height: var(--rd-tap); }
}

/* Man rat hep: gia va nut khong chen nhau (Figma khong co frame mobile) */
@media (max-width: 479px) {
  .rd-product-card__footer { flex-wrap: wrap; row-gap: 0.5rem; }
  .rd-product-card__price-wrap { flex: 1 1 100%; }
  .rd-product-card__cart-form, .rd-product-card__soldout { margin-left: auto; }
}

/* ==========================================================================
   Tin tuc — Figma 'tin-tuc' (3:1109) + 'chi-tiet-tin-tuc' (3:1313)
   ========================================================================== */

/* —— Hero co anh nen (Figma News-Hero 1440x327) —— */
.rd-news-hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  background: var(--rd-bg);
  border-bottom: 1px solid var(--rd-border);
  overflow: hidden;
}
@media (min-width: 768px) { .rd-news-hero { padding: 5rem 0 4rem; } 
}
.rd-news-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--rd-news-hero-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.rd-news-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.96), rgba(6, 10, 18, 0.62)),
    linear-gradient(to top, var(--rd-bg), transparent 60%);
}
.rd-news-hero__inner { position: relative; z-index: 1; }
.rd-news-hero h1 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.75rem, 4vw, 3rem);      /* Figma: 48px w800 lh65.6 */
  line-height: 1.2;
  font-weight: 800;
}
.rd-news-hero__lead {
  margin: 1rem 0 0;
  max-width: 44rem;
  font-size: var(--rd-text-md);              /* Figma: 16px lh26 */
  line-height: 1.62;
  color: var(--rd-muted);
}

/* —— Dai chip loc danh muc (Figma Filter-Categories) —— */
.rd-news-filter { border-bottom: 1px solid var(--rd-border); }
.rd-news-filter__inner {
  display: flex; gap: 0.75rem;
  padding: 1.25rem 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rd-news-filter__inner::-webkit-scrollbar { display: none; }
/* Figma chip: 39px cao r6, active fill #00e5ff chu #080c14, thuong fill #141c2c */
.rd-news-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  min-height: 39px;
  padding: 0 1.5rem;
  border-radius: 6px;
  background: #141c2c;
  border: 1px solid var(--rd-border);
  color: var(--rd-text);
  font-size: var(--rd-text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.rd-news-chip:hover { border-color: rgba(0, 229, 255, 0.35); color: var(--rd-cyan); }
.rd-news-chip.is-active {
  background: var(--rd-cyan);
  border-color: var(--rd-cyan);
  color: var(--rd-bg);
  font-weight: 700;
}

/* —— Luoi + card tin tuc (Figma card 405x449 r8, anh 405x200, padding 24) —— */
.rd-news-page { padding: 2.5rem 0 4rem; }
.rd-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .rd-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } 
}
@media (min-width: 1100px) { .rd-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } 
}

.rd-news-card {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
  border-radius: 8px;
  background: #141c2c;
  border: 1px solid var(--rd-border);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.rd-news-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.rd-news-card__media {
  display: block; position: relative;
  aspect-ratio: 405 / 200;                   /* Figma */
  flex-shrink: 0; overflow: hidden;
  background: #0a1120;
}
.rd-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.rd-news-card:hover .rd-news-card__media img { transform: scale(1.05); }

.rd-news-card__body {
  display: flex; flex-direction: column; flex: 1 1 auto;
  gap: 0.65rem;
  padding: 1.5rem;                           /* Figma: 24px */
  min-height: 0;
}
.rd-news-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
}
/* Figma badge danh muc: r4 fill #1f2a3f, chu Manrope 12 w700 cyan */
.rd-news-card__cat {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  background: #1f2a3f;
  color: var(--rd-cyan);
  font-size: 0.75rem; font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.rd-news-card__date { font-size: 0.75rem; color: var(--rd-muted2); white-space: nowrap; }

.rd-news-card__title {
  margin: 0;
  font-size: 1.125rem;                       /* Figma: 18px w800 lh24.6 */
  font-weight: 800;
  line-height: 1.37;
  color: var(--rd-text);
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.rd-news-card__title a { color: inherit; text-decoration: none; }
.rd-news-card__title a:hover { color: var(--rd-cyan); }
.rd-news-card__excerpt {
  margin: 0;
  font-size: var(--rd-text-sm);              /* Figma: 14px lh22 */
  line-height: 1.57;
  color: var(--rd-muted);
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.rd-news-card__more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: auto; padding-top: 0.4rem;
  font-size: var(--rd-text-sm); font-weight: 700;
  color: var(--rd-cyan);
}
.rd-news-card:hover .rd-news-card__more svg { transform: translateX(3px); }
.rd-news-card__more svg { transition: transform 0.2s ease; }

/* —— Chi tiet bai viet —— */
.rd-article-page { padding: 2rem 0 4rem; }
.rd-article-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) {
  .rd-article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; }

}
.rd-article { min-width: 0; }
.rd-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.rd-article__date { font-size: 0.75rem; color: var(--rd-muted2); }
.rd-article__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.22;
  text-wrap: pretty;
}
.rd-article__author { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; }
.rd-article__author-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.rd-article__author-text strong { font-size: var(--rd-text-sm); color: var(--rd-text); }
.rd-article__author-text small { color: var(--rd-muted2); }
.rd-article__hero {
  margin: 0 0 1.75rem;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--rd-border);
  aspect-ratio: 16 / 9;
  background: #0a1120;
}
.rd-article__hero img { width: 100%; height: 100%; object-fit: cover; }
.rd-article__lead {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem; line-height: 1.65;
  color: var(--rd-text);
}
.rd-article__body { font-size: var(--rd-text-md); line-height: 1.75; }
.rd-article__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }

/* —— Sidebar bai viet —— */
.rd-article-side { display: grid; gap: 1.25rem; min-width: 0; }
@media (min-width: 1024px) {
  .rd-article-side { position: sticky; top: calc(var(--rd-header-h) + 1.5rem); }

}
.rd-side-card {
  padding: 1.25rem;
  border-radius: 8px;
  background: #141c2c;
  border: 1px solid var(--rd-border);
}
.rd-side-card__title { margin: 0 0 0.85rem; font-size: var(--rd-text-md); font-weight: 800; color: var(--rd-text); }
.rd-side-search { display: flex; align-items: center; gap: 0.5rem; }
.rd-side-search input {
  flex: 1 1 auto; min-width: 0;
  min-height: var(--rd-tap);
  padding: 0 0.85rem;
  border-radius: 6px;
  background: var(--rd-bg);
  border: 1px solid var(--rd-border);
  color: var(--rd-text);
  font-size: var(--rd-text-md);
  outline: none;
  transition: border-color 0.2s;
}
.rd-side-search input:focus { border-color: var(--rd-cyan); }
.rd-side-search button {
  display: grid; place-items: center;
  width: var(--rd-tap); height: var(--rd-tap);
  flex: 0 0 auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rd-border);
  color: var(--rd-muted);
  cursor: pointer;
}
.rd-side-search button:hover { color: var(--rd-cyan); border-color: rgba(0, 229, 255, 0.35); }

.rd-side-list { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.rd-side-list li { display: flex; flex-direction: column; gap: 0.2rem; }
.rd-side-list__cat {
  font-family: var(--rd-font-mono);
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--rd-cyan);
}
.rd-side-list a {
  font-size: var(--rd-text-sm);
  line-height: 1.45;
  color: var(--rd-text);
  text-decoration: none;
}
.rd-side-list a:hover { color: var(--rd-cyan); }

/* ==========================================================================
   Chi tiet san pham — Figma 'chi-tiet-san-pham' (3:605)
   Gallery-Col 608 @x80 | Info-Col 608 @x752 (gap 64)
   ========================================================================== */

.rd-pdp-page { padding: 2rem 0 4rem; }
.rd-pdp { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) {
  .rd-pdp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }  /* Figma: 64px */

}
/* Main-Image: Figma 608x440 r12 stroke #1e293b */
.rd-pdp__media {
  aspect-ratio: 608 / 440;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rd-border);
  background: #0a1120;
  display: grid; place-items: center;
}
.rd-pdp__media img { width: 100%; height: 100%; object-fit: cover; }
.rd-pdp__info { min-width: 0; display: flex; flex-direction: column; }

/* Meta: SKU mono cyan | vach | tinh trang kho (xanh #10b981) */
.rd-pdp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.rd-pdp__sku {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--rd-cyan);
}
.rd-pdp__meta-sep { width: 1px; height: 12px; background: #334155; flex: 0 0 auto; }
.rd-pdp__sku:empty + .rd-pdp__meta-sep { display: none; }
.rd-pdp__stock { font-size: 0.8125rem; font-weight: 700; }
.rd-pdp__stock.is-in { color: #10b981; }
.rd-pdp__stock.is-out { color: #f87171; }

.rd-pdp__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);       /* Figma: 32px w800 */
  font-weight: 800; line-height: 1.35;
  text-wrap: pretty;
}

/* The gia: Figma 608x100 r8 fill #141c2c stroke #1e293b, padding 20 */
.rd-pdp__price-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 8px;
  background: #141c2c;
  border: 1px solid var(--rd-border);
}
.rd-pdp__price-main { display: grid; gap: 0.15rem; min-width: 0; }
.rd-pdp__price-label { font-size: var(--rd-text-sm); color: var(--rd-muted); }
.rd-pdp__price {
  margin: 0;
  font-family: var(--rd-font-mono);            /* Figma: JetBrains Mono 28px w800 */
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--rd-cyan);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.rd-pdp__price s { color: var(--rd-muted2); font-size: 0.55em; font-weight: 600; }
.rd-pdp__price-side { display: grid; gap: 0.4rem; justify-items: end; text-align: right; flex: 0 0 auto; }
.rd-pdp__price-sale { display: grid; gap: 0.3rem; justify-items: end; }
.rd-pdp__price-was { font-size: var(--rd-text-sm); color: var(--rd-muted2); text-decoration: line-through; }
/* Badge tiet kiem: Figma r4 fill #10b981 chu mono 11 w700 */
.rd-pdp__save {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #10b981;
  color: #04231a;
  font-family: var(--rd-font-mono);
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  white-space: nowrap;
}

.rd-pdp__desc { margin: 1.25rem 0 0; color: var(--rd-muted); line-height: 1.6; }
.rd-pdp__variations { margin-top: 1.5rem; }
.rd-pdp__variations .rd-label { margin-bottom: 0.5rem; }
.rd-pdp__swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* Ghi chu thay cho .rd-pdp__price-side khi khong giam gia: the gia rong 78% */
.rd-pdp__price-note {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--rd-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--rd-muted);
  font-size: 0.75rem; font-weight: 600;
  white-space: nowrap;
}
.rd-pdp__price-note::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #10b981; flex-shrink: 0;
}
.rd-pdp__price-note--ship::before { background: var(--rd-cyan); }

/* Chon bien the: chip 36px < --rd-tap 44px, bam kho tren dien thoai */
.rd-pdp__swatches .rd-chip {
  min-height: var(--rd-tap);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem; font-weight: 600;
  color: var(--rd-text);
  background: rgba(255, 255, 255, 0.03);
}
.rd-pdp__swatches .rd-chip--swatch { padding-left: 0.55rem; }
.rd-pdp__swatches .rd-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #334155;
  color: var(--rd-text);
  font-weight: 600;
}
/* Trang thai da chon: vien cyan + nen mo, khong dung gradient dac cua .rd-chip */
.rd-pdp__swatches .rd-chip.is-selected,
.rd-pdp__swatches .rd-chip.is-active {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--rd-cyan);
  box-shadow: inset 0 0 0 1px var(--rd-cyan);
  color: var(--rd-text);
  font-weight: 700;
}
.rd-pdp__swatches .rd-swatch {
  width: 26px; height: 26px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 2px solid transparent;
}
.rd-pdp__swatches .rd-chip.is-selected .rd-swatch {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
@media (max-width: 639px) {
  /* Duoi 640px cot phai xuong hang duoi: can trai cho thang voi gia,
     khong de can phai lo lung. */
  .rd-pdp__price-card { gap: 0.75rem; }
  .rd-pdp__price-side { justify-items: start; text-align: left; width: 100%; }
  .rd-pdp__price-sale { justify-items: start; grid-auto-flow: column; align-items: center; justify-content: start; gap: 0.5rem; }
  .rd-pdp__price-note { font-size: 0.6875rem; }

}

/* Hang mua: stepper + 2 CTA. Figma stepper 114x52 r6, CTA 54px r6 */
.rd-buy-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.rd-stepper {
  display: inline-flex; align-items: center;
  height: 52px;
  border-radius: 6px;
  background: #141c2c;
  border: 1px solid var(--rd-border);
  flex: 0 0 auto;
  overflow: hidden;
}
.rd-stepper__btn {
  display: grid; place-items: center;
  width: 40px; height: 100%;
  background: none; border: 0;
  color: var(--rd-muted);
  cursor: pointer;
}
.rd-stepper__btn:hover { color: var(--rd-cyan); background: rgba(255, 255, 255, 0.04); }
.rd-stepper__input {
  width: 40px; height: 100%;
  min-height: 0; padding: 0;
  border: 0; background: transparent;
  color: var(--rd-text);
  font-size: var(--rd-text-md); font-weight: 700;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.rd-stepper__input::-webkit-outer-spin-button,
.rd-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rd-buy-row__btns { display: flex; flex-wrap: wrap; gap: 0.75rem; flex: 1 1 16rem; min-width: 0; }
.rd-btn--buy {
  flex: 1 1 12rem;
  min-height: 52px;
  font-size: var(--rd-text-md);              /* Figma: 16px w700 */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
/* Figma Secondary-CTA cua PDP la VIEN CYAN (khac nut phu o hero) */
.rd-btn--cyan-outline {
  background: transparent;
  color: var(--rd-cyan);
  border: 1px solid var(--rd-cyan);
  font-weight: 700;
}
.rd-btn--cyan-outline:hover { background: rgba(0, 229, 255, 0.1); color: var(--rd-cyan); }

/* —— Tabs: Figma 44px, active vien duoi cyan —— */
.rd-tabs { margin-top: 3rem; }
.rd-tabs__list {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--rd-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.rd-tabs__list::-webkit-scrollbar { display: none; }
.rd-tabs__tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 1.5rem;
  background: none; border: 0;
  border-bottom: 2px solid transparent;
  color: var(--rd-muted);
  font-size: 0.9375rem; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.rd-tabs__tab:hover { color: var(--rd-text); }
.rd-tabs__tab.is-active {
  color: var(--rd-cyan);
  font-weight: 700;
  border-bottom-color: var(--rd-cyan);
}
.rd-tabs__panel { padding-top: 1.5rem; }
.rd-tabs__panel.is-hidden { display: none; }

/* —— Bang thong so: hang 47px, so le #0e1420 / #141c2c —— */
.rd-spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--rd-border);
  border-radius: 8px;
  overflow: hidden;
  font-size: var(--rd-text-sm);
}
.rd-spec-table tr:nth-child(odd) { background: #0e1420; }
.rd-spec-table tr:nth-child(even) { background: #141c2c; }
.rd-spec-table th,
.rd-spec-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}
.rd-spec-table th {
  width: 40%;
  color: var(--rd-text);
  font-weight: 700;
}
.rd-spec-table td { color: var(--rd-muted); }
@media (max-width: 479px) {
  .rd-spec-table th, .rd-spec-table td { padding: 0.7rem 0.85rem; }
  .rd-spec-table th { width: 45%; }

}

/* Nhan cho trinh doc man hinh */
.rd-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Toast — thong bao goc phai, tu tat (thay cho thanh flash day noi dung)
   ========================================================================== */

.rd-toasts {
  position: fixed;
  z-index: 80;                 /* tren header (60), duoi drawer (70)? -> phai tren ca drawer */
  top: calc(var(--rd-header-h) + 0.75rem);
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;        /* khong chan click vao trang phia sau */
}
.rd-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 8px;
  background: #141c2c;
  border: 1px solid var(--rd-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;        /* rieng toast thi bam duoc */
  transform: translateX(calc(100% + 1.5rem));
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease;
}
.rd-toast.is-in { transform: translateX(0); opacity: 1; }
.rd-toast.is-out { transform: translateX(calc(100% + 1.5rem)); opacity: 0; }

.rd-toast__icon { flex: 0 0 auto; margin-top: 1px; }
.rd-toast--ok { border-color: rgba(16, 185, 129, 0.4); }
.rd-toast--ok .rd-toast__icon { color: #10b981; }
.rd-toast--error { border-color: rgba(248, 113, 113, 0.45); }
.rd-toast--error .rd-toast__icon { color: #f87171; }

.rd-toast__body { flex: 1 1 auto; min-width: 0; }
.rd-toast__body p {
  margin: 0;
  font-size: var(--rd-text-sm);
  line-height: 1.45;
  color: var(--rd-text);
  overflow-wrap: break-word;
}
.rd-toast__body a {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: var(--rd-text-sm);
  font-weight: 600;
  color: var(--rd-cyan);
}
.rd-toast__body a:hover { text-decoration: underline; text-underline-offset: 2px; }

.rd-toast__close {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem;
  margin: -0.2rem -0.2rem 0 0;
  background: none; border: 0; border-radius: 6px;
  color: var(--rd-muted2);
  cursor: pointer;
}
.rd-toast__close:hover { background: rgba(255, 255, 255, 0.06); color: var(--rd-text); }

/* Man hep: keo ngang het chieu rong cho de doc */
@media (max-width: 479px) {
  .rd-toasts { left: 1rem; right: 1rem; width: auto; }
}

/* Vung cham 44px tren thiet bi cam ung */
@media (hover: none) and (pointer: coarse) {
  .rd-toast__close { width: var(--rd-tap); height: var(--rd-tap); margin: -0.5rem -0.4rem 0 0; }
}

/* Ton trong thiet lap giam chuyen dong: hien ngay, khong truot */
@media (prefers-reduced-motion: reduce) {
  .rd-toast { transition: opacity 0.01ms; transform: none; }
  .rd-toast.is-in { transform: none; }
  .rd-toast.is-out { transform: none; }
}

/* Trang gioi thieu: khong co anh -> khoi noi dung khong bi lech mot ben */
@media (min-width: 900px) {
  .rd-about-story__grid--no-visual {
    grid-template-columns: minmax(0, 46rem);
    justify-content: center;
    text-align: left;
  }
}

/* Stepper ban nho — dung trong dong gio hang (ban thuong 52px dung o trang SP) */
.rd-stepper--sm { height: var(--rd-tap); border-radius: 8px; }
.rd-stepper--sm .rd-stepper__btn { width: 34px; }
.rd-stepper--sm .rd-stepper__input { width: 34px; font-size: 0.9375rem; }
@media (hover: none) and (pointer: coarse) {
  .rd-stepper--sm .rd-stepper__btn { width: var(--rd-tap); }

}

/* Trang gioi thieu — truong hop KHONG co anh minh hoa.
   Truoc day chi doi grid ve 1 cot -> mot cot chu hep troi trong khoang den
   rong, trong va lech. Gio can giua co gioi han do dai dong doc duoc. */
@media (min-width: 900px) {
  .rd-about-story__grid--no-visual {
    grid-template-columns: minmax(0, 44rem);
    justify-content: center;
  }
}
.rd-about-story__grid--no-visual .rd-about-story__copy { text-align: center; }
.rd-about-story__grid--no-visual .rd-about-story__body { margin-inline: auto; max-width: 40rem; }

/* 3 gia tri: hang the, lap day chieu ngang thay vi danh sach vien trai */
.rd-about-values {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .rd-about-values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

}
.rd-about-values__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  background: #141c2c;
  border: 1px solid var(--rd-border);
  transition: border-color 0.2s;
}
.rd-about-values__item:hover { border-color: rgba(0, 229, 255, 0.35); }
.rd-about-values__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--rd-cyan);
}
.rd-about-values__text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rd-text);
  line-height: 1.4;
}
