:root {
  --red: #8b1e16;
  --red-dark: #5c1713;
  --gold: #c6942a;
  --paper: #fff8e8;
  --ink: #211815;
  --green: #1f6b3a;
  --blue: #155184;
  --shadow: 0 18px 44px rgba(40, 16, 12, .10);
  --paper-bg:
    linear-gradient(rgba(255, 252, 243, .82), rgba(255, 252, 243, .82)),
    url("../assets/background/63515ec227481802ea448095216161e2fade0d45 (1).jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 252, 243, .58), rgba(255, 252, 243, .58)),
    url("../assets/background/63515ec227481802ea448095216161e2fade0d45 (1).jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 7px;
  z-index: 999;
  background: linear-gradient(
    90deg,
    var(--red) 0 20%,
    var(--gold) 20% 40%,
    var(--green) 40% 60%,
    var(--blue) 60% 80%,
    #efe4c0 80% 100%
  );
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p {
  font-size: 17px;
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 7px;
  z-index: 100;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  padding: 0 clamp(16px, 8vw, 120px);
  background: rgba(255, 252, 243, .78);
  border-bottom: 1px solid rgba(139, 30, 22, .14);
  box-shadow: 0 8px 28px rgba(40, 16, 12, .06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand span,
.footer-brand span {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: 28px;
  line-height: .92;
  font-weight: 700;
  color: var(--red-dark);
}

.site-logo,
.brand img {
  height: 78px;
  width: auto;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .15));
}

.menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 38px;
  border: 1px solid rgba(139, 30, 22, .24);
  border-radius: 14px;
  background: rgba(255, 248, 232, .9);
  color: var(--red-dark);
  font-size: 22px;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  position: relative;
  color: var(--ink);
  transition: color .2s ease, background .2s ease;
}

.nav a:hover {
  color: var(--red);
}

.nav a:not(.nav-button):not(.cart-link)::after {
  content: "•";
  position: absolute;
  right: -17px;
  color: var(--gold);
}

.nav-button,
.btn.primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.nav-button {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--red);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(139, 30, 22, .28);
  border-radius: 999px;
  background: rgba(255, 248, 232, .72);
  color: var(--red-dark);
  font-weight: 800;
}

.cart-link::after {
  content: none !important;
}

#cartCount {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.section {
  padding: 76px 8vw;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--red-dark);
}

h1 {
  margin-bottom: 22px;
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 1.02;
  text-shadow: 0 2px 0 rgba(255, 244, 214, .8);
}

h2 {
  margin-bottom: 18px;
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1.08;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 8vw;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1050px;
  margin: 0 auto;
}

.hero h1 {
  white-space: nowrap;
  font-size: clamp(72px, 7vw, 128px);
  line-height: .95;
}

.hero-decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.hero-decor-left {
  left: -90px;
  bottom: -70px;
  width: min(560px, 40vw);
  opacity: .38;
}

.hero-decor-right {
  right: -200px;
  top: 1px;
  width: min(1500px, 75vw);
  opacity: .5;
}

.no-wrap {
  white-space: nowrap;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero .actions {
  justify-content: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid var(--red-dark);
  border-radius: 999px;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(92, 23, 19, .16);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: none;
}

.btn.ghost {
  background: rgba(255, 252, 243, .64);
  color: var(--red-dark);
}

.btn.small {
  min-height: 38px;
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 14px;
}

.btn.wide {
  width: 100%;
  margin-top: 12px;
}

.cards {
  display: grid;
  gap: 24px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card,
.product-card,
.quiz-card,
.cart-table,
input,
textarea,
select {
  background: var(--paper-bg);
  background-size: cover;
  border: 1px solid rgba(139, 30, 22, .14);
  box-shadow: var(--shadow);
}

.story-card,
.product-card {
  padding: 22px;
  border-radius: 24px;
}

.story-card:nth-child(1),
.product-card:nth-child(1) {
  border-top: 5px solid var(--green);
}

.story-card:nth-child(2),
.product-card:nth-child(2) {
  border-top: 5px solid var(--red);
}

.story-card:nth-child(3),
.product-card:nth-child(3) {
  border-top: 5px solid var(--blue);
}

.story-card p,
.product-card p {
  overflow-wrap: break-word;
}

.order-label {
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .82;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.product-card b {
  color: var(--red);
  font-size: 20px;
}

.stamp {
  width: 100%;
  height: 230px;
  margin-bottom: 18px;
  border: 6px double #8bc2c8;
  border-radius: 22px;
  background-color: #f8f3de;
  background-size: cover;
  background-position: center;
}

.stamp.art-1 {
  background-image:
    radial-gradient(circle at 50% 30%, #f3d1bc 0 11%, transparent 12%),
    linear-gradient(90deg, transparent 45%, #111 46% 48%, transparent 49%),
    linear-gradient(#2a8594 0 55%, #f1d55d 56% 100%);
}

.cart-table {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin: 30px 0;
  overflow: hidden;
  border-radius: 24px;
}

.cart-table div {
  min-width: 0;
  padding: 18px 14px;
  border-bottom: 1px solid rgba(139, 30, 22, .10);
  font-weight: 700;
  overflow-wrap: anywhere;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--ink);
  font: 500 15px/1.4 "Be Vietnam Pro", Arial, sans-serif;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

select {
  cursor: pointer;
}

.checkout form {
  max-width: 680px;
}

.split-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.quiz-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 42px;
  border-radius: 30px;
  text-align: center;
}

.footer {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding: 46px 8vw 54px;
  background: var(--paper-bg);
  background-size: cover;
  border-top: 1px solid rgba(139, 30, 22, .12);
}

.footer::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  background: linear-gradient(
    90deg,
    var(--red) 0 20%,
    var(--gold) 20% 40%,
    var(--green) 40% 60%,
    var(--blue) 60% 80%,
    #efe4c0 80% 100%
  );
}

.footer h4 {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 24px;
}

.footer a {
  display: block;
  margin: 10px 0;
  color: var(--ink);
  transition: color .2s ease, transform .2s ease;
}

.footer a:hover {
  color: var(--red);
  transform: translateX(3px);
}

.footer p {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.65;
}

.footer-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  height: auto;
  margin-bottom: 12px;
}

.footer-brand img {
  width: auto;
  height: 176px;
  object-fit: contain;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 30, 22, .22);
  border-radius: 50%;
  background: rgba(255, 248, 232, .75);
  color: var(--red-dark);
  font-size: 17px;
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: var(--red);
  color: #fff;
}

.shopee-icon {
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-weight: 900;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item i {
  width: 24px;
  min-width: 24px;
  margin-top: 4px;
  color: var(--red-dark);
  font-size: 20px;
  text-align: center;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.contact-item a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copyright {
  margin-top: 10px;
  color: #5c1713;
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 84px;
    padding: 12px 6vw;
  }

  .site-logo,
  .brand img {
    height: 64px;
  }

  .menu-toggle {
    display: grid;
  }

  .menu-wrap .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    z-index: 999;
    width: max-content;
    min-width: 185px;
    max-width: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 12px;
    border: 1px solid rgba(139, 30, 22, .18);
    border-radius: 18px;
    background: var(--paper-bg);
    box-shadow: 0 14px 34px rgba(40, 16, 12, .16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .menu-wrap::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    display: block;
    width: 210px;
    height: 16px;
  }

  .menu-wrap:hover .nav,
  .menu-wrap:focus-within .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header > .nav {
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 14px;
  }

  .nav a {
    padding: 9px 12px;
    border-radius: 12px;
    white-space: nowrap;
  }

  .nav a:hover {
    background: rgba(139, 30, 22, .08);
  }

  .nav a::after,
  .nav a::before {
    content: none !important;
    display: none !important;
  }

  .section {
    padding: 58px 6vw;
  }

  .hero {
    min-height: 620px;
    padding: 90px 6vw 80px;
  }

  .hero h1 {
    font-size: clamp(44px, 11vw, 82px);
  }

  .hero-decor-left {
    left: -120px;
    bottom: -50px;
    width: 380px;
    opacity: .24;
  }

  .hero-decor-right {
    right: -180px;
    top: 190px;
    width: 560px;
    opacity: .24;
  }

  .cards.three,
  .split-layout,
  .footer {
    grid-template-columns: 1fr;
  }

  .cart-table {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 76px;
  }

  .site-logo,
  .brand img {
    height: 54px;
  }

  .brand span {
    font-size: 24px;
  }

  .nav-button,
  .cart-link,
  .nav a {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .hero h1,
  .no-wrap {
    white-space: normal;
  }

  .hero-decor-right {
    right: -220px;
    width: 500px;
    opacity: .2;
  }

  .quiz-card {
    padding: 28px 22px;
  }

  .footer-brand img {
    height: 62px;
  }
}
@media (max-width: 768px) {
  .hero-content {
    transform: translateY(-20px);
  }

  .hero .eyebrow {
    letter-spacing: 0.18em;
    margin-bottom: 18px;
  }

  .hero h1 {
    margin-bottom: 20px;
  }

  .hero .hero-lead {
    letter-spacing: 0.04em;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  .hero .actions {
    gap: 14px;
  }
}

/* ===== Gallery page small updates ===== */
.gallery-filter {
  justify-content: center;
  margin-bottom: 34px;
}

.gallery-filter button.active-filter {
  background: var(--red);
  color: #fff;
}

.nav a.active {
  color: var(--red);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid rgba(139, 30, 22, .22);
  background: rgba(255, 248, 232, .75);
  color: var(--red-dark);

  font-size: 17px;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: var(--red);
  color: #fff;
}

.shopee-icon {
  font-weight: 900;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.contact-item i {
  width: 24px;
  min-width: 24px;
  margin-top: 4px;
  color: var(--gold);
  font-size: 20px;
  text-align: center;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.hero-btn-outline {
  background: rgba(255, 248, 232, 0.75);
  color: var(--red-dark);
  border: 2px solid rgba(92, 23, 19, 0.8);
}

.hero-btn-outline:hover {
  background: #fff1c2;
  color: var(--red-dark);
  border-color: var(--gold);
}

.hero-btn-fill {
  background: var(--red-dark);
  color: #fff7df;
  border: 2px solid var(--red-dark);
}

.hero-btn-fill:hover {
  background: var(--gold);
  color: var(--red-dark);
  border-color: var(--gold);
}

/* ===== Chỉnh khoảng cách chữ trong hero ===== */

.hero-content {
  transform: translateY(-45px); /* Dịch toàn bộ chữ + button lên trên */
}

/* Dòng chữ nhỏ phía trên */
.hero .eyebrow {
  margin-bottom: 28px;
  letter-spacing: 0.28em;
}

/* Tiêu đề chính */
.hero h1 {
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

/* Dòng mô tả dưới tiêu đề */
.hero .hero-lead {
  margin-top: 0;
  margin-bottom: 34px;
  letter-spacing: 0.12em;
  line-height: 1.8;
}

/* Khoảng cách giữa 2 button */
.hero .actions {
  margin-top: 10px;
  gap: 28px;
}

.hero-quote {
  margin: 22px 0 28px;
  padding-left: 18px;
  border-left: 3px solid currentColor;

  color: var(--red-dark);
  font-style: italic;
  max-width: 720px;
}

.hero-quote p {
  margin: 0 0 8px;
  color: inherit;

  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.35;
}

.hero-quote cite {
  display: block;
  color: inherit;

  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  opacity: 0.85;
}

/* ===== Public detail pages ===== */
.page-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(360px, 52vw, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(72px, 10vw, 120px) 8vw;
  text-align: center;
  color: #fff7df;
  background-position: center;
  background-size: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, rgba(66, 15, 13, .82), rgba(139, 30, 22, .62));
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    url("../assets/background/2.png"),
    url("../assets/background/4.png");
  background-position:
    left 4vw top 28px,
    right 4vw bottom 8px;
  background-repeat: no-repeat;
  background-size:
    clamp(150px, 20vw, 280px),
    clamp(150px, 20vw, 280px);
  opacity: .28;
  pointer-events: none;
}

.page-hero-about {
  background-image:
    linear-gradient(135deg, rgba(66, 15, 13, .78), rgba(139, 30, 22, .58)),
    url("../assets/NTSKDG/mrn/san khau ngoai troi.jpg");
}

.page-hero-contact {
  background-image:
    linear-gradient(135deg, rgba(66, 15, 13, .80), rgba(139, 30, 22, .56)),
    url("../assets/NTSKDG/mrn/nghe nhan to mau roi.jpg");
}

.page-hero-products {
  background-image:
    linear-gradient(135deg, rgba(66, 15, 13, .82), rgba(139, 30, 22, .55)),
    url("../assets/products/kc (tiên).jpg");
}

.page-hero-content {
  max-width: 920px;
}

.page-hero h1,
.page-hero p {
  color: inherit;
}

.page-hero h1 {
  margin-bottom: 22px;
  text-shadow: none;
  white-space: nowrap;
  font-size: clamp(56px, 6vw, 104px);
  line-height: 0.95;
}

.page-hero .eyebrow {
  color: #ffd36f;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 247, 223, .92);
}

.about-intro {
  align-items: stretch;
}

.feature-image,
.vision-panel,
.contact-info-panel,
.contact-form,
.art-card {
  background: var(--paper-bg);
  background-size: cover;
  border: 1px solid rgba(139, 30, 22, .14);
  box-shadow: var(--shadow);
}

.feature-image {
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-band {
  background: linear-gradient(135deg, rgba(92, 23, 19, .96), rgba(139, 30, 22, .92));
  border-top: 4px solid rgba(198, 148, 42, .36);
  border-bottom: 4px solid rgba(198, 148, 42, .28);
}

.section-band .story-card {
  background:
    linear-gradient(rgba(255, 252, 243, .90), rgba(255, 252, 243, .90)),
    url("../assets/background/63515ec227481802ea448095216161e2fade0d45 (1).jpg");
}

.art-grid {
  display: grid;
  gap: 24px;
}

.art-card {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) 1fr;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  border-radius: 24px;
}

.art-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.art-card div {
  padding: 28px 28px 28px 0;
}

.vision-section {
  padding-top: 28px;
}

.vision-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 30px;
  text-align: center;
}

.vision-panel .actions {
  justify-content: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 34px;
  align-items: start;
}

.contact-info-panel,
.contact-form {
  border-radius: 28px;
  padding: clamp(26px, 4vw, 42px);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 30, 22, .14);
  border-radius: 16px;
  background: rgba(255, 248, 232, .66);
  color: var(--ink);
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.contact-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 30, 22, .34);
  color: var(--red);
}

.contact-list i {
  width: 24px;
  color: var(--gold);
  text-align: center;
}

.contact-form label {
  display: block;
  margin: 0 0 8px;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 800;
}

.form-note {
  min-height: 28px;
  margin: 14px 0 0;
  color: var(--red-dark);
  font-weight: 700;
}

.products-section .section-heading {
  margin-bottom: 24px;
}

.product-toolbar,
.product-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.product-filter {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(139, 30, 22, .22);
  border-radius: 999px;
  background: rgba(255, 248, 232, .76);
  color: var(--red-dark);
  font: 800 14px/1 "Be Vietnam Pro", Arial, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.product-filter:hover,
.product-filter.active-filter {
  transform: translateY(-2px);
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.product-search {
  max-width: 860px;
}

.product-search input {
  flex: 1 1 320px;
  margin-bottom: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  margin-top: 30px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 16px;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.product-grid .product-card:nth-child(4n+1) {
  border-top: 5px solid var(--green);
}

.product-grid .product-card:nth-child(4n+2) {
  border-top: 5px solid var(--red);
}

.product-grid .product-card:nth-child(4n+3) {
  border-top: 5px solid var(--blue);
}

.product-grid .product-card:nth-child(4n+4) {
  border-top: 5px solid var(--gold);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 62px rgba(40, 16, 12, .16);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  margin-bottom: 0;
  overflow: hidden;
  border: 6px double rgba(198, 148, 42, .55);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 248, 232, .92), rgba(226, 197, 139, .62)),
    var(--paper-bg);
}

.product-card img,
.product-image-wrap img,
.product-image-wrap .stamp,
.product-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-placeholder {
  position: relative;
  background:
    radial-gradient(circle at 50% 36%, rgba(198, 148, 42, .35) 0 18%, transparent 19%),
    linear-gradient(135deg, rgba(139, 30, 22, .18), rgba(255, 248, 232, .92)),
    var(--paper-bg);
}

.product-placeholder::before,
.product-placeholder::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.product-placeholder::before {
  top: 26%;
  width: 54px;
  height: 54px;
  border: 4px double rgba(139, 30, 22, .5);
  border-radius: 50%;
  background: rgba(255, 248, 232, .74);
}

.product-placeholder::after {
  bottom: 24%;
  width: 46%;
  height: 6px;
  border-radius: 999px;
  background: rgba(139, 30, 22, .42);
}

.product-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 4px 0;
}

.product-card b {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1.08;
}

.product-card .product-description {
  display: -webkit-box;
  min-height: 68px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-stock {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}

.product-price {
  margin: 0;
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.product-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(198, 148, 42, .16);
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
}

.product-card .btn {
  justify-content: center;
  width: 100%;
  margin-top: 16px;
}

.product-detail-btn {
  margin-bottom: 10px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 34px 0 0;
}

.load-more-wrap[hidden],
#load-more-products[hidden] {
  display: none;
}

#load-more-products {
  min-width: 220px;
}

.product-detail-page {
  padding: clamp(110px, 12vw, 150px) 8vw 80px;
  background: var(--paper-bg);
}

.product-detail-message {
  max-width: 1240px;
  margin: 0 auto 18px;
}

.product-detail-container {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.05fr);
  gap: 48px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.product-detail-gallery,
.product-detail-info,
.product-description-box,
.product-policy-box {
  border: 1px solid rgba(139, 30, 22, .14);
  border-radius: 30px;
  background: #fff8e8;
  box-shadow: 0 18px 44px rgba(40, 16, 12, .12);
}

.product-detail-gallery {
  padding: 22px;
}

.product-main-image-wrap {
  overflow: hidden;
  border: 6px double rgba(198, 148, 42, .55);
  border-radius: 24px;
  background: #fff;
}

.product-main-image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.product-thumb {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.product-thumb.active,
.product-thumb:focus-visible {
  border-color: var(--red);
  outline: none;
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-detail-info {
  padding: clamp(28px, 4vw, 44px);
}

.product-detail-info h1 {
  margin: 0 0 18px;
  color: var(--red-dark);
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
}

.detail-price {
  margin: 18px 0;
  color: var(--red);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
}

.detail-stock {
  color: #4b3934;
  font-weight: 700;
}

.detail-quantity {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 28px 0;
  font-weight: 800;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(139, 30, 22, .22);
  border-radius: 999px;
  background: #fff;
}

.quantity-control button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--red-dark);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.quantity-control input {
  width: 58px;
  height: 42px;
  border: 0;
  text-align: center;
  font-weight: 800;
  background: transparent;
}

.detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.detail-note {
  margin-top: 22px;
  color: #4b3934;
  line-height: 1.7;
}

.product-description-box,
.product-policy-box {
  max-width: 1240px;
  margin: 34px auto 0;
  padding: clamp(28px, 4vw, 44px);
}

.product-description-box h2,
.product-policy-box h2 {
  margin-top: 0;
  color: var(--red-dark);
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(30px, 3vw, 44px);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.policy-grid article {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .55);
}

.policy-grid i {
  color: var(--gold);
  font-size: 26px;
}

.policy-grid h3 {
  margin: 12px 0 6px;
  color: var(--red-dark);
}

.policy-grid p {
  margin: 0;
  font-size: 15px;
}

.product-detail-error {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 60px);
  text-align: center;
  border-radius: 30px;
  background: #fff8e8;
  box-shadow: var(--shadow);
}

.product-detail-error h1 {
  margin-top: 0;
  color: var(--red-dark);
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(38px, 7vw, 64px);
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-page {
    padding-inline: 6vw;
  }

  .product-detail-container,
  .policy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 14px;
  }

  .product-card b {
    font-size: 23px;
  }

  #load-more-products {
    width: 100%;
  }

  .product-thumbnails {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 1120px) {
  .nav {
    gap: 16px;
    font-size: 14px;
  }

  .nav a:not(.nav-button):not(.cart-link)::after {
    right: -11px;
  }
}

@media (max-width: 980px) {
  .page-hero {
    padding: 74px 6vw;
  }

  .art-card,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .art-card div {
    padding: 0 24px 26px;
  }

  .art-card img {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .page-hero {
    min-height: 420px;
  }

  .page-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .feature-image {
    min-height: 300px;
    border-radius: 24px;
  }

  .contact-list a,
  .product-meta,
  .product-search {
    align-items: stretch;
  }

  .product-meta {
    flex-direction: column;
  }

  .product-search .btn,
  .product-filter {
    width: 100%;
  }

  .product-image-wrap {
    height: 220px;
  }
}

/* ===== Cart, checkout, login ===== */
.page-hero-cart {
  background-image:
    linear-gradient(135deg, rgba(66, 15, 13, .82), rgba(139, 30, 22, .56)),
    url("../assets/NTSKDG/mrn/roi thap cam goc xa.jpg");
}

.page-hero-checkout {
  background-image:
    linear-gradient(135deg, rgba(66, 15, 13, .82), rgba(139, 30, 22, .56)),
    url("../assets/products/kc (mai).jpg");
}

.cart-layout,
.checkout-layout,
.login-section {
  display: grid;
  gap: 34px;
  align-items: start;
}

.cart-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
}

.cart-main-panel,
.order-summary-panel,
.checkout-form,
.login-card,
.login-panel {
  background: var(--paper-bg);
  background-size: cover;
  border: 1px solid rgba(139, 30, 22, .14);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cart-main-panel,
.checkout-form,
.login-card,
.login-panel {
  padding: clamp(26px, 4vw, 42px);
}

.cart-main-panel .section-heading,
.checkout-form .section-heading {
  margin-bottom: 24px;
}

.order-summary-panel {
  position: sticky;
  top: 122px;
  padding: 28px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(139, 30, 22, .12);
}

.summary-line span {
  color: #4b3934;
  font-weight: 700;
}

.summary-line strong {
  color: var(--red-dark);
  text-align: right;
}

.summary-total {
  margin-top: 6px;
  border-bottom: 0;
  font-size: 20px;
}

.summary-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.cart-items,
.checkout-items {
  display: grid;
  gap: 16px;
}

.cart-row,
.checkout-item {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(139, 30, 22, .12);
  border-radius: 22px;
  background: rgba(255, 248, 232, .66);
}

.cart-row {
  grid-template-columns: minmax(0, 1.6fr) minmax(108px, .5fr) minmax(128px, .55fr) auto;
}

.cart-product,
.checkout-product {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.cart-thumb,
.checkout-thumb {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  overflow: hidden;
  border: 4px double rgba(198, 148, 42, .62);
  border-radius: 18px;
  background: #f8f3de;
}

.cart-thumb img,
.checkout-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 28px;
}

.cart-product h3,
.checkout-product h3 {
  margin-bottom: 6px;
  font-size: 24px;
}

.cart-product p,
.checkout-product p {
  margin: 0;
  color: #5b463f;
  font-size: 14px;
  line-height: 1.5;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 36px 44px 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(139, 30, 22, .18);
  border-radius: 999px;
  background: rgba(255, 252, 243, .88);
}

.quantity-control button,
.remove-item {
  border: 0;
  color: var(--red-dark);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.quantity-control button {
  width: 36px;
  height: 36px;
  background: transparent;
  font-size: 18px;
  font-weight: 900;
}

.quantity-control button:hover {
  background: var(--red);
  color: #fff;
}

.quantity-control span {
  text-align: center;
  color: var(--ink);
  font-weight: 900;
}

.line-price {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.remove-item {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(139, 30, 22, .09);
  font-size: 16px;
}

.remove-item:hover {
  transform: translateY(-2px);
  background: var(--red);
  color: #fff;
}

.empty-state {
  padding: clamp(28px, 5vw, 46px);
  border: 1px dashed rgba(139, 30, 22, .32);
  border-radius: 24px;
  background: rgba(255, 248, 232, .62);
  text-align: center;
}

.empty-state i {
  color: var(--gold);
  font-size: 42px;
}

.empty-state p {
  max-width: 560px;
  margin: 12px auto 22px;
}

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

.form-grid label,
.login-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 800;
}

.form-grid input,
.form-grid textarea,
.login-card input {
  margin-bottom: 0;
}

.full-field {
  grid-column: 1 / -1;
}

.payment-section {
  margin: 30px 0;
}

.payment-options {
  display: grid;
  gap: 14px;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(139, 30, 22, .14);
  border-radius: 18px;
  background: rgba(255, 248, 232, .66);
  cursor: pointer;
}

.payment-option input {
  width: auto;
  min-height: auto;
  margin: 4px 0 0;
  accent-color: var(--red);
}

.payment-option strong,
.payment-option small {
  display: block;
}

.payment-option strong {
  color: var(--red-dark);
}

.payment-option small {
  margin-top: 5px;
  color: #5b463f;
  line-height: 1.5;
}

.checkout-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.checkout-item .line-price {
  white-space: nowrap;
}

.login-section {
  grid-template-columns: minmax(0, .9fr) minmax(320px, 480px);
  min-height: calc(100vh - 90px);
  padding: clamp(58px, 8vw, 96px) 8vw;
  background:
    linear-gradient(rgba(255, 252, 243, .68), rgba(255, 252, 243, .72)),
    url("../assets/NTSKDG/mrn/roi\ thap\ cam\(3\).jpg") center / cover no-repeat;
}

.login-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.login-panel h1 {
  white-space: normal;
}

.login-card {
  align-self: center;
}

.login-card .btn {
  margin-top: 12px;
}

@media (max-width: 1080px) {
  .cart-layout,
  .checkout-layout,
  .login-section {
    grid-template-columns: 1fr;
  }

  .order-summary-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .cart-row {
    grid-template-columns: 1fr;
  }

  .line-price {
    text-align: left;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .login-section {
    padding: 52px 6vw;
  }
}

@media (max-width: 520px) {
  .cart-product,
  .checkout-product {
    align-items: flex-start;
  }

  .cart-thumb,
  .checkout-thumb {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
  }

  .checkout-item {
    grid-template-columns: 1fr;
  }

  .summary-line {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== Admin layout ===== */
.admin-page {
  background:
    linear-gradient(rgba(255, 252, 243, .76), rgba(255, 252, 243, .82)),
    url("../assets/background/63515ec227481802ea448095216161e2fade0d45 (1).jpg");
  background-size: cover;
  background-attachment: fixed;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 7px;
  height: calc(100vh - 7px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 18px;
  background: linear-gradient(180deg, rgba(92, 23, 19, .98), rgba(71, 18, 15, .98));
  border-right: 1px solid rgba(198, 148, 42, .32);
  color: #fff7df;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 20px;
  border-bottom: 1px solid rgba(255, 247, 223, .18);
}

.admin-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18));
}

.admin-brand span {
  color: #ffe6a5;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a,
.admin-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: rgba(255, 247, 223, .86);
  font: 800 14px/1.2 "Be Vietnam Pro", Arial, sans-serif;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}

.admin-nav a:hover,
.admin-nav a.active,
.admin-logout:hover {
  transform: translateX(2px);
  border-color: rgba(255, 211, 111, .32);
  background: rgba(255, 248, 232, .12);
  color: #ffe6a5;
}

.admin-nav i,
.admin-logout i {
  width: 22px;
  color: #ffd36f;
  text-align: center;
}

.admin-logout {
  margin-top: auto;
  background: rgba(255, 248, 232, .08);
  cursor: pointer;
}

.admin-main {
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.admin-topbar h1 {
  margin-bottom: 12px;
  font-size: clamp(46px, 6vw, 82px);
  white-space: normal;
}

.admin-topbar p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #4b3934;
}

.admin-message {
  min-height: 28px;
  margin: 0 0 18px;
  color: var(--red-dark);
  font-weight: 800;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.admin-stat-card,
.admin-panel {
  background: var(--paper-bg);
  background-size: cover;
  border: 1px solid rgba(139, 30, 22, .14);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.admin-stat-card {
  padding: 22px;
}

.admin-stat-card span,
.admin-stat-card small {
  display: block;
}

.admin-stat-card span {
  color: var(--red-dark);
  font-weight: 900;
}

.admin-stat-card strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--red);
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.admin-stat-card small {
  color: #5b463f;
  line-height: 1.5;
}

.admin-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 24px;
  align-items: start;
}

.admin-panel {
  overflow: hidden;
  padding: 24px;
}

.admin-panel + .admin-panel {
  margin-top: 24px;
}

.admin-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.admin-panel-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(139, 30, 22, .16);
  border-radius: 999px;
  background: rgba(198, 148, 42, .14);
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
}

.quick-actions {
  display: grid;
  gap: 14px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 16px;
  border: 1px solid rgba(139, 30, 22, .12);
  border-radius: 18px;
  background: rgba(255, 248, 232, .68);
  color: var(--red-dark);
  font-weight: 900;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 30, 22, .32);
  color: var(--red);
}

.quick-action i {
  width: 24px;
  color: var(--gold);
  text-align: center;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 900;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  margin-bottom: 0;
}

.admin-form-actions {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px);
  gap: 14px;
  margin-bottom: 18px;
}

.admin-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
}

.admin-toolbar input,
.admin-toolbar select {
  margin-bottom: 0;
}

.admin-table {
  display: grid;
  gap: 0;
  min-width: 100%;
  overflow-x: auto;
}

.admin-table-row {
  display: grid;
  min-width: 760px;
  border-bottom: 1px solid rgba(139, 30, 22, .10);
}

.admin-table-row:last-child {
  border-bottom: 0;
}

.admin-table-row.header {
  border-radius: 14px 14px 0 0;
  background: rgba(139, 30, 22, .08);
  color: var(--red-dark);
  font-weight: 900;
}

.admin-table-cell {
  min-width: 0;
  padding: 13px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.product-admin-table .admin-table-row {
  grid-template-columns: .55fr .8fr 1.5fr 1fr .85fr .8fr .9fr 1.3fr;
}

.orders-admin-table .admin-table-row {
  grid-template-columns: .75fr 1.15fr 1fr 1.6fr .9fr .85fr 1.15fr 1.05fr .9fr;
  min-width: 1120px;
}

.order-items-table .admin-table-row {
  grid-template-columns: 1fr 2fr .8fr 1fr;
  min-width: 560px;
}

#recent-orders .admin-table-row {
  grid-template-columns: .85fr 1.35fr 1fr 1fr 1.15fr;
  min-width: 620px;
}

.admin-thumb {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  overflow: hidden;
  border: 3px double rgba(198, 148, 42, .58);
  border-radius: 14px;
  background: #f8f3de;
}

.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-select {
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(198, 148, 42, .14);
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
}

.status-badge.pending {
  background: rgba(198, 148, 42, .18);
}

.status-badge.shipping {
  background: rgba(21, 81, 132, .12);
  color: var(--blue);
}

.status-badge.completed {
  background: rgba(31, 107, 58, .12);
  color: var(--green);
}

.status-badge.cancelled,
.status-badge.hidden,
.status-badge.out_of_stock {
  background: rgba(139, 30, 22, .12);
  color: var(--red);
}

.order-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.order-filter-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(139, 30, 22, .18);
  border-radius: 999px;
  background: rgba(255, 248, 232, .74);
  color: var(--red-dark);
  font: 900 13px/1 "Be Vietnam Pro", Arial, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.order-filter-button:hover,
.order-filter-button.active-filter {
  transform: translateY(-2px);
  background: var(--red);
  color: #fff;
}

.order-detail-panel[hidden] {
  display: none;
}

@media (max-width: 1180px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-logout {
    margin-top: 0;
  }

  .admin-topbar {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .admin-main {
    padding: 24px 5vw;
  }

  .admin-nav,
  .admin-stat-grid,
  .admin-form,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 18px;
  }

  .admin-panel-heading {
    flex-direction: column;
  }

  .admin-topbar h1 {
    font-size: clamp(40px, 13vw, 58px);
  }
}

/* ===== FIX HERO OVERFLOW FINAL ===== */

/* Giữ toàn bộ hero không tràn ngang */
.hero {
  overflow: hidden;
}

.hero-content {
  max-width: min(1420px, calc(100vw - 80px));
  margin-left: auto;
  margin-right: auto;
}

/* Dòng: Di sản Việt Nam trong hình hài mới */
.hero .eyebrow:first-of-type {
  font-size: clamp(15px, 1.05vw, 21px);
  letter-spacing: 0.28em;
  font-weight: 900;
}

/* Dòng: Dự án gìn giữ... */
.hero .eyebrow.no-wrap {
  display: block;
  width: 100%;
  max-width: 100%;

  font-size: clamp(13px, 0.9vw, 18px);
  letter-spacing: 0.18em;
  font-weight: 900;
  line-height: 1.6;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

/* Quote gọn lại, không xuống dòng trên desktop */
.hero-quote {
  width: fit-content;
  max-width: calc(100vw - 160px);

  margin: 26px auto 32px;
  padding: 7px 0 7px 24px;

  border-left: 4px solid var(--red-dark);

  color: var(--red-dark);
  text-align: left;
  font-style: italic;
}

.hero-quote p {
  margin: 0;

  color: inherit;
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(19px, 1.45vw, 28px);
  font-weight: 700;
  line-height: 1.25;

  white-space: nowrap;
}

.hero-quote cite {
  display: block;
  margin-top: 8px;

  color: inherit;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: clamp(12px, 0.85vw, 15px);
  font-weight: 800;
  font-style: italic;
  opacity: 0.9;
}

/* Nút cân lại phía dưới */
.hero .actions {
  margin-top: 18px;
}

/* Màn hình vừa: giảm chữ để không tràn */
@media (max-width: 1200px) {
  .hero .eyebrow.no-wrap {
    font-size: 13px;
    letter-spacing: 0.11em;
  }

  .hero-quote p {
    font-size: 22px;
  }
}

/* Mobile: cho phép xuống dòng để không vỡ layout */
@media (max-width: 768px) {
  .hero-content {
    max-width: calc(100vw - 36px);
  }

  .hero .eyebrow.no-wrap,
  .hero-quote p {
    white-space: normal;
  }

  .hero .eyebrow:first-of-type {
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  .hero .eyebrow.no-wrap {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .hero-quote {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-quote p {
    font-size: 21px;
  }
}

/* ===== LÁ CỜ: PHẢI GIỮ NGUYÊN, TRÁI BAY MỀM ===== */

.hero-decor-right {
  transform-origin: 100% 50%;
  animation: flagLeftWave 8s ease-in-out infinite;
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes flagLeftWave {
  0% {
    transform:
      perspective(1200px)
      rotateZ(0deg)
      skewY(0deg)
      skewX(0deg)
      translateX(0)
      translateY(0)
      scaleX(1);
  }

  20% {
    transform:
      perspective(1200px)
      rotateZ(0.15deg)
      skewY(0.4deg)
      skewX(-0.8deg)
      translateX(-2px)
      translateY(1px)
      scaleX(1.003);
  }

  40% {
    transform:
      perspective(1200px)
      rotateZ(-0.2deg)
      skewY(-0.5deg)
      skewX(1deg)
      translateX(1px)
      translateY(-1px)
      scaleX(0.998);
  }

  60% {
    transform:
      perspective(1200px)
      rotateZ(0.18deg)
      skewY(0.35deg)
      skewX(-1.1deg)
      translateX(-3px)
      translateY(1px)
      scaleX(1.004);
  }

  80% {
    transform:
      perspective(1200px)
      rotateZ(-0.12deg)
      skewY(-0.25deg)
      skewX(0.7deg)
      translateX(1px)
      translateY(0)
      scaleX(0.999);
  }

  100% {
    transform:
      perspective(1200px)
      rotateZ(0deg)
      skewY(0deg)
      skewX(0deg)
      translateX(0)
      translateY(0)
      scaleX(1);
  }
}

/* ===== PayOS payment result pages ===== */
.payment-result-section {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  padding: clamp(72px, 10vw, 132px) 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(195, 45, 38, 0.22), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(26, 117, 114, 0.2), transparent 30%),
    linear-gradient(135deg, #160f0c 0%, #332016 48%, #102d31 100%);
}

.payment-result-card {
  width: min(720px, 100%);
  padding: clamp(32px, 6vw, 56px);
  border: 1px solid rgba(245, 213, 151, 0.28);
  border-radius: 24px;
  background: rgba(255, 250, 239, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.payment-result-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.payment-result-icon.pending {
  background: linear-gradient(135deg, #b8862f, #d9a74d);
}

.payment-result-icon.pending i {
  animation: avtdSpin 1.2s linear infinite;
}

.payment-result-icon.success {
  background: linear-gradient(135deg, #24745f, #46a879);
}

.payment-result-icon.cancel,
.payment-result-icon.failed {
  background: linear-gradient(135deg, #9c2723, #d15d43);
}

.payment-result-card h1 {
  margin: 0 0 14px;
  color: #261611;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.04;
}

.payment-result-card p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: #5c4438;
  line-height: 1.75;
}

.payment-result-detail {
  font-weight: 700;
  color: #8f2e27;
}

.payment-result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.status-badge.paid,
.status-badge.processing,
.status-badge.failed {
  color: #fff;
}

.status-badge.paid {
  background: #24745f;
}

.status-badge.processing {
  background: #b8862f;
}

.status-badge.failed {
  background: #9c2723;
}

@keyframes avtdSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 560px) {
  .payment-result-actions .btn {
    width: 100%;
  }
}

/* ===== FIX HERO MÚA RỐI NƯỚC KHÔNG XUỐNG DÒNG ===== */

@media (min-width: 981px) {
    .roi-nuoc-page .rn-hero-layout {
        grid-template-columns: minmax(720px, 1.15fr) minmax(300px, .55fr);
        gap: clamp(28px, 4vw, 64px);
    }

    .roi-nuoc-page .rn-hero-copy {
        max-width: 920px;
    }

    .roi-nuoc-page #rn-page-title {
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;

        font-size: clamp(72px, 7.4vw, 118px) !important;
        line-height: .9 !important;
        letter-spacing: -0.025em;
    }

    .roi-nuoc-page .rn-hero-subtitle {
        white-space: nowrap;
        font-size: clamp(28px, 3vw, 42px);
        line-height: 1.08;
    }
}

@media (max-width: 980px) {
    .roi-nuoc-page #rn-page-title,
    .roi-nuoc-page .rn-hero-subtitle {
        white-space: normal !important;
    }
}
/* Giãn dòng nội dung trang Múa Rối Nước */
.roi-nuoc-page .rn-prose p,
.roi-nuoc-page .rn-lede,
.roi-nuoc-page .rn-hero-text {
    line-height: 2.05;
}

.roi-nuoc-page .rn-prose {
    gap: 28px;
}

/*icon 4cards gallery.html */
.gallery-demo-main .memory-grid span {
    display: inline-grid;
    place-items: center;

    width: 46px;
    height: 46px;
    margin-bottom: 18px;

    border-radius: 50%;
    background: rgba(198, 148, 42, .14);
    color: var(--demo-gold);

    font-size: 22px;
}

/* ===== TINH CHỈNH KHU KHO ẢNH DI SẢN ===== */
.gallery-demo-main #visual-gallery {
    padding-top: 56px;
    padding-bottom: 64px;
}

.gallery-demo-main #visual-gallery h2 {
    font-size: clamp(42px, 4.8vw, 72px);
}

.gallery-demo-main #visual-gallery .section-heading {
    margin-bottom: 28px;
}

.gallery-demo-main .thumb {
    height: 230px;
    margin-bottom: 18px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
}

.gallery-demo-main .gallery-item {
    padding: 18px;
    border-radius: 24px;
}

.gallery-demo-main .gallery-item h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.gallery-demo-main .gallery-item p {
    font-size: 15px;
    line-height: 1.65;
}

/* FIX căn giữa chữ trong collection section */
.collection-hero {
    min-height: 520px;
    padding: 72px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 34px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.collection-hero > div {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.collection-hero .eyebrow {
    margin: 0 0 18px;
    text-align: center;
    letter-spacing: 0.28em;
}

.collection-hero h2 {
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
    line-height: 1.05;
    font-size: clamp(42px, 6vw, 88px);
    white-space: normal;
}

.collection-hero p:not(.eyebrow) {
    max-width: 960px;
    margin: 26px auto 32px;
    text-align: center;
    line-height: 1.65;
}

.collection-hero .btn {
    margin: 0 auto;
}

/* Mobile */
@media (max-width: 768px) {
    .collection-hero {
        min-height: 460px;
        padding: 56px 22px;
        border-radius: 24px;
    }

    .collection-hero h2 {
        font-size: clamp(36px, 12vw, 58px);
        line-height: 1.08;
    }

    .collection-hero p:not(.eyebrow) {
        font-size: 15px;
        line-height: 1.7;
        max-width: 100%;
    }
}

.product-description,
.product-detail-description,
.description {
  white-space: pre-line;
}

/* Căn đều vị trí Tồn kho trong card sản phẩm */
.product-card-content {
    display: grid;
    grid-template-rows: 110px 78px 34px 1fr auto auto;
    align-items: start;
}

/* Tên sản phẩm: giữ cùng chiều cao dù 1 dòng hay 2 dòng */
.product-card-content > b {
    display: block;
    min-height: 92px;
}

/* Mô tả ngắn: giữ cùng chiều cao */
.product-description {
    min-height: 78px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    line-height: 1.55;
}

/* Tồn kho nằm đúng hàng */
.product-stock {
    margin: 0;
    min-height: 34px;
}

/* Đẩy phần giá và nút xuống dưới cho các card đều nhau */
.product-meta {
    align-self: end;
}

.product-detail-page #detail-name {
    font-size: clamp(46px, 4.6vw, 68px);
    line-height: 0.98;
}

.product-detail-page #detail-price {
    font-size: clamp(30px, 2.8vw, 40px);
    line-height: 1;
}




/* ===== AVTD TOAST NOTIFICATION ===== */

.avtd-toast {
    position: fixed;
    top: 96px;
    right: 28px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 16px;

    min-width: 320px;
    max-width: 420px;
    padding: 18px 20px;

    background: rgba(255, 248, 232, 0.96);
    color: #3b1512;

    border: 1px solid rgba(196, 151, 47, 0.42);
    border-left: 6px solid #c9972f;
    border-radius: 18px;

    box-shadow: 0 24px 70px rgba(43, 18, 12, 0.22);
    backdrop-filter: blur(14px);

    opacity: 0;
    transform: translateY(-18px) translateX(20px);
    pointer-events: none;

    transition:
        opacity 0.28s ease,
        transform 0.28s ease;
}

.avtd-toast.is-show {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.avtd-toast.is-error {
    border-left-color: #8b2b20;
}

.avtd-toast-icon {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    color: #fff8e8;
    background: linear-gradient(135deg, #8b2b20, #c9972f);
    border-radius: 50%;
}

.avtd-toast-icon i,
.avtd-toast-icon span {
    font-size: 18px;
    line-height: 1;
}

.avtd-toast-content {
    display: grid;
    gap: 4px;
}

.avtd-toast-content strong {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 22px;
    line-height: 1;
    color: #4a1714;
}

.avtd-toast-content span {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(59, 21, 18, 0.82);
}

@media (max-width: 560px) {
    .avtd-toast {
        top: auto;
        right: 16px;
        bottom: 20px;
        left: 16px;

        min-width: 0;
        max-width: none;
    }
}

/* ===== Manual checkout bank QR and order success ===== */
.checkout-payment {
  display: grid;
  gap: 18px;
}

.checkout-payment .payment-option:has(input:checked) {
  border-color: rgba(201, 151, 47, .62);
  background: rgba(255, 248, 232, .9);
  box-shadow: 0 16px 42px rgba(66, 15, 13, .12);
}

.bank-qr-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(20px, 4vw, 34px);
  align-items: center;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(201, 151, 47, .36);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 151, 47, .18), transparent 32%),
    rgba(255, 248, 232, .82);
  box-shadow: 0 22px 58px rgba(43, 18, 12, .13);
}

.bank-qr-box[hidden] {
  display: none;
}

.bank-qr-copy h3 {
  margin-bottom: 10px;
  color: var(--red-dark);
}

.bank-qr-copy p {
  margin-bottom: 10px;
  color: #5b463f;
  line-height: 1.7;
}

.bank-qr-image {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(139, 30, 22, .14);
  border-radius: 22px;
  background: #fffdf7;
}

.bank-qr-image img,
.bank-qr-box img {
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
}

.order-success-page {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  padding: clamp(72px, 10vw, 132px) 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(201, 151, 47, .24), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(139, 30, 22, .18), transparent 30%),
    linear-gradient(135deg, #fff8e8 0%, #f5ead1 48%, #fdf9ef 100%);
}

.order-success-card {
  width: min(760px, 100%);
  padding: clamp(34px, 6vw, 58px);
  border: 1px solid rgba(139, 30, 22, .14);
  border-radius: 28px;
  background: rgba(255, 250, 239, .95);
  box-shadow: 0 28px 90px rgba(66, 15, 13, .18);
  text-align: center;
}

.order-success-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: #fff8e8;
  background: linear-gradient(135deg, #8b2b20, #c9972f);
  box-shadow: 0 18px 42px rgba(66, 15, 13, .2);
  font-size: 30px;
}

.order-success-card h1 {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.04;
}

.order-success-card p {
  max-width: 590px;
  margin-left: auto;
  margin-right: auto;
  color: #5b463f;
  line-height: 1.75;
}

.order-success-bank-note {
  padding: 14px 18px;
  border: 1px solid rgba(201, 151, 47, .38);
  border-radius: 18px;
  background: rgba(255, 248, 232, .8);
  font-weight: 700;
}

.order-success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

@media (max-width: 760px) {
  .bank-qr-box {
    grid-template-columns: 1fr;
  }

  .bank-qr-image img,
  .bank-qr-box img {
    width: min(100%, 260px);
  }
}

@media (max-width: 560px) {
  .order-success-actions .btn {
    width: 100%;
  }
}

/* ===== ORDER TRACKING PAGE ===== */
.order-success-code,
.order-success-save-note,
.order-success-fallback {
    width: 100%;
    margin: 14px 0 0;
    padding: 14px 16px;
    color: #4a1714;
    background: rgba(255, 248, 232, 0.72);
    border: 1px solid rgba(196, 151, 47, 0.34);
    border-radius: 14px;
}

.order-success-code strong {
    display: inline-block;
    margin-left: 6px;
    color: #8b2b20;
    letter-spacing: 0;
}

.order-tracking-page {
    min-height: 70vh;
    background: linear-gradient(180deg, rgba(255, 248, 232, 0.96), rgba(247, 226, 184, 0.62)), #fff8e8;
}

.order-tracking-hero {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 92px 0 84px;
}

.order-tracking-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 36px;
    color: #3b1512;
    background: rgba(255, 248, 232, 0.94);
    border: 1px solid rgba(196, 151, 47, 0.34);
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(43, 18, 12, 0.14);
}

.order-tracking-card h1 {
    margin: 0 0 12px;
    font-family: "EB Garamond", Georgia, serif;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.95;
    color: #4a1714;
}

.order-tracking-card > p:not(.eyebrow) {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(59, 21, 18, 0.78);
    font-size: 17px;
    line-height: 1.7;
}

.order-tracking-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-top: 24px;
}

.order-tracking-form label {
    display: grid;
    gap: 8px;
    color: #4a1714;
    font-weight: 700;
}

.order-tracking-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    color: #3b1512;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(139, 43, 32, 0.24);
    border-radius: 12px;
    outline: none;
}

.order-tracking-form input:focus {
    border-color: rgba(196, 151, 47, 0.78);
    box-shadow: 0 0 0 4px rgba(196, 151, 47, 0.14);
}

.tracking-message {
    min-height: 24px;
    margin-top: 18px;
    color: rgba(59, 21, 18, 0.74);
    font-weight: 700;
}

.tracking-message.is-error { color: #8b2b20; }
.tracking-message.is-success { color: #496628; }

.tracking-result {
    margin-top: 22px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(196, 151, 47, 0.3);
    border-radius: 16px;
}

.tracking-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(139, 43, 32, 0.14);
}

.tracking-result-header span,
.tracking-detail-grid span,
.tracking-note span {
    display: block;
    margin-bottom: 4px;
    color: rgba(59, 21, 18, 0.62);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.tracking-result-header strong {
    color: #8b2b20;
    font-size: 22px;
}

.tracking-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    color: #fff8e8;
    background: #8b2b20;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.tracking-status-badge.status-pending_payment,
.tracking-status-badge.status-pending_confirm { background: #1d69b4; }
.tracking-status-badge.status-confirmed,
.tracking-status-badge.status-preparing,
.tracking-status-badge.status-processing,
.tracking-status-badge.status-shipping { background: #efd6b2; }
.tracking-status-badge.status-completed {
    background: #bfefb2;
    color: #5a1f18;
    border: 1px solid rgba(157, 113, 38, 0.45);
}.tracking-status-badge.status-cancelled,
.tracking-status-badge.status-failed { background: #7d2018; }

.tracking-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tracking-detail-grid p,
.tracking-note {
    margin: 0;
    padding: 14px;
    background: rgba(255, 248, 232, 0.62);
    border: 1px solid rgba(196, 151, 47, 0.18);
    border-radius: 12px;
}

.tracking-detail-grid strong {
    color: #3b1512;
    line-height: 1.45;
}

.tracking-note {
    margin-top: 16px;
    color: #3b1512;
}

.tracking-items { margin-top: 22px; }

.tracking-items h2 {
    margin: 0 0 12px;
    color: #4a1714;
    font-size: 22px;
}

.tracking-item,
.tracking-empty {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(139, 43, 32, 0.14);
    color: #3b1512;
}

.tracking-item strong { white-space: nowrap; }

@media (max-width: 760px) {
    .order-tracking-hero {
        width: min(100% - 28px, 1120px);
        padding: 56px 0 62px;
    }

    .order-tracking-card {
        padding: 24px;
        border-radius: 14px;
    }

    .order-tracking-form,
    .tracking-detail-grid {
        grid-template-columns: 1fr;
    }

    .tracking-result-header,
    .tracking-item {
        flex-direction: column;
    }

    .tracking-status-badge,
    .tracking-item strong {
        white-space: normal;
    }
}

.shipping-code-box {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid rgba(139, 30, 22, 0.18);
    border-radius: 12px;
    background: rgba(255, 248, 232, 0.65);
}

.shipping-code-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #5a1f18;
}

.shipping-code-row {
    display: flex;
    gap: 10px;
}

.shipping-code-row input {
    min-width: 0;
    flex: 1;
    padding: 11px 13px;
    border: 1px solid rgba(90, 31, 24, 0.25);
    border-radius: 8px;
    font: inherit;
    text-transform: uppercase;
}

.shipping-code-row .btn {
    flex-shrink: 0;
    padding: 10px 16px;
}

.shipping-code-message {
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 0.88rem;
}

.shipping-code-message.is-success {
    color: #28713f;
}

.shipping-code-message.is-error {
    color: #a32020;
}

@media (max-width: 520px) {
    .shipping-code-row {
        flex-direction: column;
    }

    .shipping-code-row .btn {
        width: 100%;
    }
}