/* --- DESIGN SYSTEM & RESET --- */
:root {
  --bg-cream: #FDFCF0;
  --bg-header: rgba(253, 250, 244, 0.98);
  --olive: #7B8B6F;
  --olive-hover: #65755b;
  --text-charcoal: #2C2C2C;
  --text-light: #F9F3E8;
  --hero-overlay: #211711;
  --badge-green: #3E7A3F;
  --terracotta: #C4714A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background-color: #FDFAF4;
  color: var(--text-charcoal);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Prevent horizontal panning / rubber-band sideways */
html,
body {
  overscroll-behavior-x: none;
}

@media (max-width: 900px) {
  html {
    overflow-x: clip;
  }

  body {
    touch-action: pan-y;
  }

  /* Prevent mobile browser auto-zoom on focus (layout "vỡ khung" after keyboard). */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  input[type="password"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Prevent off-canvas panels from widening layout */
html,
body {
  max-width: 100%;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
}

@media (min-width: 901px) {
  body {
    max-width: 1760px;
    min-width: 1200px;
  }
}

/* Guard against any accidental horizontal scroll on mobile */
@media (max-width: 900px) {

  html,
  body {
    overflow-x: clip;
  }
}

/* Global scrollbar (avoid oversized right scrollbar on Windows) */
html {
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: rgba(44, 44, 44, 0.35) rgba(0, 0, 0, 0.08);
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
}

html::-webkit-scrollbar-thumb {
  background: rgba(44, 44, 44, 0.30);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(44, 44, 44, 0.45);
}

a {
  text-decoration: none;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 2rem;
  background: var(--bg-header);
  z-index: 5000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  padding: 5px 2rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo a {
  color: inherit;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 -1px 0 rgba(255, 255, 255, 0.7);
}

.logo .logo-first {
  color: #333333;
}

.logo .logo-second {
  color: #a06a4b;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

/* (removed) legacy header menu styles: .menu, .dropdown-menu, .menu-item... */

/* =========================
   Mega menu (new header.php)
========================= */
.amz-mega-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5300;
  background: rgba(253, 250, 244, 0.97);
  backdrop-filter: blur(18px);
  /* border-bottom: 1px solid rgba(201, 169, 110, 0.2); */
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 901px) {
  .amz-mega-nav {
    max-width: 1760px;
    min-width: 1200px;
  }
}

#content-wrap {
  padding: 3rem 2rem 2rem;
  flex: 1 0 auto;
}

.amz-mega-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 3rem;
  margin: 0 auto;
  padding: 0;
  gap: 2rem;
}

.amz-mega-nav .nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1c1a17;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.18),
    0 -1px 0 rgba(255, 255, 255, 0.45);
}

.amz-mega-nav .logo-first {
  color: #333333;
  font-family: 'Kaushan Script', 'Segoe Script', cursive;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.amz-mega-nav .logo-second {
  color: #c4714a;
  font-style: normal;
  font-family: 'Finger Paint', 'Be Vietnam Pro', cursive;
  font-size: 1.08em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.amz-mega-nav .logo-image img.logo {
  max-height: 34px;
  width: auto;
  display: block;
}

.amz-mega-nav .nav-menu {
  display: flex;
  align-items: stretch;
  list-style: none;
  height: 100%;
  flex: 1;
  margin: 0;
  padding: 0;
}

/* hidden by default; only shown inside mobile drawer */
.amz-mega-nav .mob-head {
  display: none;
}

.amz-mega-nav .mob-drawer-head {
  display: none;
}

.amz-mega-nav .nav-item {
  position: static;
  display: flex;
  align-items: center;
}

.amz-mega-nav .nav-link-icon {
  flex-shrink: 0;
  font-size: 1.05em;
  line-height: 1;
  opacity: 0.92;
}

.amz-mega-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  line-height: 1.2;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6053;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.amz-mega-nav .nav-link:hover,
.amz-mega-nav .nav-item.active>.nav-link,
.amz-mega-nav .nav-item.has-children:hover>.nav-link {
  color: #1c1a17;
  border-color: #c4714a;
}

.amz-mega-nav .nav-link svg {
  flex-shrink: 0;
  transition: transform .2s;
}

.amz-mega-nav .nav-item.active>.nav-link svg,
.amz-mega-nav .nav-item.has-children:hover>.nav-link svg {
  transform: rotate(180deg);
}

.amz-mega-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 901px) {
  .amz-mega-nav .nav-logo {
    flex: 1 1 0;
  }

  .amz-mega-nav .nav-menu {
    flex: 0 0 auto;
    justify-content: center;
    max-width: none;
    padding-top: 8px;
  }

  .amz-mega-nav .nav-right {
    flex: 1 1 0;
    justify-content: flex-end;
  }
}

.amz-mega-nav .nav-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: #1c1a17;
}

.amz-mega-nav .nav-icon .icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.amz-mega-nav .cart-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  background: #c4714a;
  color: #fff;
  font-size: 9px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amz-mega-nav .mega-panel,
.amz-mega-nav .dropdown-panel {
  display: none;
  position: absolute;
  top: 3rem;
  left: 0;
  right: 0;
  background: #fdfaf4;
  border-top: 2px solid #c4714a;
  box-shadow: 0 20px 60px rgba(28, 26, 23, 0.1);
  z-index: 5100;
}

.amz-mega-nav .nav-item.active .mega-panel,
.amz-mega-nav .nav-item.active .dropdown-panel {
  display: block;
}

.amz-mega-nav .dropdown-panel {
  left: auto;
  right: auto;
  min-width: 220px;
  border: 1px solid #e8ddd0;
  border-top: 2px solid #c4714a;
  border-radius: 0 0 6px 6px;
  padding: 8px 0;
}

.amz-mega-nav .dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  color: #1c1a17;
  text-decoration: none;
  white-space: nowrap;
}

.amz-mega-nav .dd-item:hover {
  background: #f5f0e8;
  color: #c4714a;
}

.amz-mega-nav .dd-icon {
  width: 18px;
  text-align: center;
  opacity: .8;
  color: #b55239;
}

.amz-mega-nav .mega-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 60px 34px;
  display: grid;
}

.amz-mega-nav .mega-inner.cols-3 {
  grid-template-columns: 220px 1fr;
}

.amz-mega-nav .mega-cats {
  border-right: 1px solid #e8ddd0;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.amz-mega-nav .mega-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 4px;
  cursor: pointer;
  border-left: 2px solid transparent;
}

.amz-mega-nav .mega-cat-item:hover {
  background: #f5f0e8;
}

.amz-mega-nav .mega-cat-item:hover .mega-cat-name {
  color: #c4714a;
}

.amz-mega-nav .mega-cat-item.active {
  background: #f5f0e8;
  border-left-color: #c4714a;
}

.amz-mega-nav .mega-cat-icon {
  width: 20px;
  text-align: center;
  color: #c4714a;
}

.amz-mega-nav .mega-cat-name {
  font-size: 13px;
  color: #1c1a17;
  font-weight: 500;
}

.amz-mega-nav .mega-cat-link {
  text-decoration: none;
}

.amz-mega-nav .mega-subs {
  padding: 0 0 0 24px;
}

.amz-mega-nav .mega-subs-title {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6053;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8ddd0;
}

.amz-mega-nav .sub-section {
  display: none;
}

.amz-mega-nav .sub-section.active {
  display: block;
}

.amz-mega-nav .sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.amz-mega-nav .sub-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 4px;
  text-decoration: none;
}

.amz-mega-nav .sub-item:hover {
  background: #f5f0e8;
}

.amz-mega-nav .sub-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #e8ddd0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.amz-mega-nav .sub-name {
  font-size: 13px;
  color: #1c1a17;
}

.amz-mega-nav .sub-item:hover .sub-name {
  color: #c4714a;
}

@media (max-width: 900px) {
  .amz-mega-nav .nav-inner {
    height: 2.6rem;
    padding: 0 1rem;
  }

  /* Hide icons on mobile, keep hamburger */
  .amz-mega-nav .nav-right .nav-icon {
    display: none;
  }

  .amz-mega-nav .menu-toggle {
    display: inline-flex;
  }

  .bottom-nav {
    display: flex;
  }

  /* Overlay + mobile drawer */
  .amz-mob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 26, 23, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 5290;
  }

  body.nav-open .amz-mob-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .amz-mega-nav .mob-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 410px);
    max-width: 410px;
    height: 72px;
    padding: 18px 20px;
    background: #fdfaf4;
    border-right: 1px solid rgba(201, 169, 110, 0.18);
    border-bottom: 1px solid #efe7dc;
    z-index: 5311;
    transform: translateX(-105%);
    transition: transform .28s ease;
    visibility: hidden;
    pointer-events: none;
    margin-bottom: 0;
  }

  body.nav-open .amz-mega-nav .mob-head {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .amz-mega-nav .nav-menu {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    width: min(86vw, 410px);
    max-width: 410px;
    height: calc(100vh - 72px);
    background: #fdfaf4;
    border-right: 1px solid rgba(201, 169, 110, 0.18);
    box-shadow: 18px 0 45px rgba(28, 26, 23, 0.14);
    flex-direction: column;
    padding: 0;
    gap: 0;
    overflow: auto;
    z-index: 5310;
    transform: translateX(-105%);
    transition: transform .28s ease;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    pointer-events: none;
  }

  body.nav-open .amz-mega-nav .nav-menu {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    padding-top: 1rem;
  }

  .amz-mega-nav .mob-drawer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    text-decoration: none;
    color: #1c1a17;
    line-height: 1;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18), 0 -1px 0 rgba(255, 255, 255, 0.45);
  }

  .amz-mega-nav .mob-drawer-logo .logo-first {
    font-family: 'Kaushan Script', 'Segoe Script', cursive;
    font-style: normal;
    font-weight: 500;
    color: #333333;
    letter-spacing: 0.02em;
  }

  .amz-mega-nav .mob-drawer-logo .logo-second {
    color: #c4714a;
    font-style: normal;
    font-family: 'Finger Paint', 'Be Vietnam Pro', cursive;
    font-size: 1.08em;
    font-weight: 400;
    letter-spacing: 0.02em;
  }

  .amz-mega-nav .mob-drawer-logo .logo-image img.logo {
    max-height: 34px;
    width: auto;
    display: block;
  }

  .amz-mega-nav .mob-drawer-close {
    border: 0;
    background: transparent;
    color: #8a8070;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
  }

  body.nav-open .amz-mega-nav .nav-item {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  body.nav-open .amz-mega-nav .nav-link {
    height: auto;
    padding: 1rem;
    line-height: 1.25;
    border-bottom: 1px solid #f0e7db;
    justify-content: flex-start;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    color: #15120e;
    font-weight: 500;
  }

  body.nav-open .amz-mega-nav .nav-link svg {
    width: 12px;
    height: 12px;
    color: #8a8070;
    margin-left: auto;
  }

  body.nav-open .amz-mega-nav .dropdown-panel,
  body.nav-open .amz-mega-nav .mega-panel {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    display: block;
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height .28s ease, opacity .2s ease, transform .24s ease;
    pointer-events: none;
  }

  body.nav-open .amz-mega-nav .nav-item.active .dropdown-panel,
  body.nav-open .amz-mega-nav .nav-item.active .mega-panel {
    max-height: 70vh;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.nav-open .amz-mega-nav .dropdown-panel {
    min-width: 0;
    border-radius: 0;
    padding: 8px 0 12px;
  }

  body.nav-open .amz-mega-nav .dd-item {
    padding: 10px 12px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .22s ease;
  }

  body.nav-open .amz-mega-nav .nav-item.active .dd-item {
    opacity: 1;
    transform: translateY(0);
  }

  body.nav-open .amz-mega-nav .mega-inner,
  body.nav-open .amz-mega-nav .mega-inner.cols-3 {
    grid-template-columns: 1fr;
    padding: 10px 0 14px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .22s ease, transform .24s ease;
  }

  body.nav-open .amz-mega-nav .nav-item.active .mega-inner,
  body.nav-open .amz-mega-nav .nav-item.active .mega-inner.cols-3 {
    opacity: 1;
    transform: translateY(0);
  }

  /* Mobile: 3-level menu should behave as regular menu (no mega tabs) */
  body.nav-open .amz-mega-nav .mega-cats,
  body.nav-open .amz-mega-nav .mega-subs-title {
    display: none !important;
  }

  body.nav-open .amz-mega-nav .mega-subs {
    padding: 0;
  }

  body.nav-open .amz-mega-nav .sub-section {
    display: block;
  }

  body.nav-open .amz-mega-nav .sub-grid {
    display: block;
  }

  body.nav-open .amz-mega-nav .sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid #f0e7db;
    border-radius: 0;
  }

  body.nav-open .amz-mega-nav .sub-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 999px;
    background: #ece3d6;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #8a6f55;
  }

  body.nav-open .amz-mega-nav .sub-name {
    font-size: 15px;
    color: #4a3f35;
  }
}

.icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  margin-left: auto;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: transparent;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle-bar {
  width: 18px;
  height: 2px;
  background-color: #3B3529;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.nav-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.product-attrs-wrap {
  margin: 16px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-attr-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-attr-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b6a4a;
  display: flex;
  gap: 4px;
}

.product-attr-label .attr-label-text {
  font-weight: 600;
}

.product-attr-label .attr-label-value {
  font-weight: 700;
  color: #111827;
}

.product-attr-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-attr-pill {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  font-size: 13px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  transition: all 0.18s ease;
}

.product-attr-pill-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.product-attr-pill-img {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.product-attr-pill-icon {
  font-size: 16px;
  line-height: 1;
}

.product-attr-pill-swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.product-attr-pill-name {
  line-height: 1.1;
}

.product-attr-pill.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
  box-shadow: 0 0 0 1px #1118270d, 0 6px 12px rgba(0, 0, 0, 0.12);
}

.product-attr-pill.is-active .product-attr-pill-img,
.product-attr-pill.is-active .product-attr-pill-swatch {
  border-color: rgba(255, 255, 255, 0.55);
}

.product-attr-pill.is-active .product-attr-pill-swatch {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.product-attr-pill:hover:not(.is-active) {
  border-color: #d1d5db;
  background: #f9fafb;
}

/* Product attributes (match decor/product.html) */
.attr-group {
  margin-bottom: 18px;
}

.attr-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pd-muted, #8b6a4a);
  margin-bottom: 10px;
}

.attr-label strong {
  color: var(--pd-warm-black, #1b1b1b);
  font-weight: 500;
}

.color-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  /* luôn có viền nhẹ để màu trắng không chìm nền */
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  /* viền trong rất mảnh cho màu rất sáng */
}

.color-swatch.active {
  border-color: var(--pd-warm-black, #1b1b1b);
  box-shadow: 0 0 0 3px #FDFAF4, 0 0 0 5px var(--pd-warm-black, #1b1b1b);
}

.color-swatch:hover {
  transform: scale(1.08);
}

.option-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-btn {
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid var(--pd-sand, rgba(155, 137, 118, 0.35));
  background: #fff;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  cursor: pointer;
  color: var(--pd-warm-black, #1b1b1b);
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.opt-btn:hover:not(.disabled) {
  border-color: var(--pd-muted, #8b6a4a);
}

.opt-btn.active {
  border-color: var(--pd-warm-black, #1b1b1b);
  background: var(--pd-warm-black, #1b1b1b);
  color: #FDFAF4;
}

.opt-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.opt-btn .amz-opt-img {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.opt-btn .amz-opt-icon {
  font-size: 16px;
  line-height: 1;
}

.opt-btn .amz-opt-swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.opt-btn.active .amz-opt-img,
.opt-btn.active .amz-opt-swatch {
  border-color: rgba(255, 255, 255, 0.55);
}

.opt-btn.active .amz-opt-swatch {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #3B3529;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.icon-svg {
  width: 20px;
  height: 20px;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--badge-green);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--text-light);
  color: #3B3529;
}

.btn-primary:hover {
  background-color: #ffffff;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #3A2C23;
  color: #F4EDE4;
  padding: 1rem 2rem 1rem;
  margin-top: auto;
  z-index: 3;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 -1px 0 rgba(255, 255, 255, 0.45);
}

.site-footer .logo-first {
  color: #F4EDE4;
  font-family: 'Kaushan Script', 'Segoe Script', cursive;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-footer .logo-second {
  color: #c4714a;
  font-style: normal;
  font-family: 'Finger Paint', 'Be Vietnam Pro', cursive;
  font-size: 1.08em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer-text {
  font-size: 13px;
  color: #D8C9BB;
  line-height: 1.8;
  max-width: 240px;
}

.footer-heading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #F4EDE4;
  font-weight: 600;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #D8C9BB;
}

.footer-list li+li {
  margin-top: 6px;
}

.footer-list a {
  color: inherit;
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0 auto;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #CBB7A7;
}

.footer-copyright {
  margin: 0;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  color: #F4EDE4;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.footer-social-icon {
  display: block;
  object-fit: contain;
}

/* --- BOTTOM NAV (MOBILE) --- */
body>nav.bottom-nav,
nav.bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 60px;
  padding: 6px 14px calc(10px + env(safe-area-inset-bottom));
  background-color: #fefaf3;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: none;
  justify-content: space-between;
  gap: 8px;
  z-index: 1200;
  transform: translateZ(0);
  will-change: transform;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  .bottom-nav {
    display: none;
  }
}

@media (max-width: 900px) {

  body>nav.bottom-nav,
  nav.bottom-nav {
    display: flex;
  }
}

@supports (-webkit-touch-callout: none) {

  body>nav.bottom-nav,
  nav.bottom-nav {
    height: 62px;
  }
}

.bottom-nav-item {
  flex: 1;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: #5C5144;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
  min-width: 0;
}

.back-to-top {
  position: fixed;
  right: 6px;
  bottom: 3rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  /* nền trắng */
  backdrop-filter: blur(10px);
  color: #e3a321;
  /* icon màu cam */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  z-index: 1250;
  /* vòng progress border */
  --scroll-progress: 0deg;
  position: fixed;
}

.back-to-top:hover {
  background: #fff7e3;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top-icon {
  font-size: 18px;
  line-height: 1;
}

.back-to-top::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background:
    conic-gradient(#e3a321 var(--scroll-progress), rgba(227, 163, 33, 0.15) 0);
  -webkit-mask:
    radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask:
    radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  pointer-events: none;
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

/* --- FLOATING ACTION BUTTONS (RIGHT) --- */
.floating-right-actions {
  position: fixed;
  right: 3px;
  bottom: 8rem;
  /* nằm ngay trên nút back-to-top một chút */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 8000;
  pointer-events: none;
  /* không chặn click khu vực xung quanh */
}

.floating-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #3A2C23;
  /* cùng tông nền footer */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  pointer-events: auto;
  /* bản thân nút vẫn click được */
}

.floating-btn img {
  display: block;
}

.floating-btn-social {
  background-color: #3A2C23;
  color: #ffffff;
}

.floating-social-icon,
.floating-social-close {
  font-size: 18px;
  line-height: 0;
}

.floating-social-close {
  display: none;
}

.floating-right-actions.social-open .floating-social-icon {
  display: none;
}

.floating-right-actions.social-open .floating-social-close {
  display: inline;
}

.floating-social-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* hiển thị phía trên nút social */
  order: 1;
  margin-bottom: 6px;
  pointer-events: none;
}

.floating-btn-social {
  order: 2;
}

.floating-right-actions.social-open .floating-social-list {
  pointer-events: auto;
}

/* Hiệu ứng xổ lên mượt + so le cho từng nút social */
.floating-social-list .floating-btn {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 0.22s ease-out,
    transform 0.22s ease-out;
  pointer-events: none;
  /* mặc định không nhận hover/click để không che slide */
}

.floating-right-actions.social-open .floating-social-list .floating-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  /* chỉ cho phép click khi menu social đang mở */
}

.floating-right-actions.social-open .floating-social-list .floating-btn:nth-child(1) {
  transition-delay: 0.0s;
}

.floating-right-actions.social-open .floating-social-list .floating-btn:nth-child(2) {
  transition-delay: 0.03s;
}

.floating-right-actions.social-open .floating-social-list .floating-btn:nth-child(3) {
  transition-delay: 0.06s;
}

.floating-right-actions.social-open .floating-social-list .floating-btn:nth-child(4) {
  transition-delay: 0.09s;
}

.floating-btn-cart {
  position: relative;
}

.floating-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-cart-badge {
  position: absolute;
  margin-left: 45px;
  top: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background-color: #ff5a5f;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-btn-top {
  background-color: #e3a321;
  color: #fff;
}

.floating-top-icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 768px) {
  .floating-right-actions {
    right: 3px;
    bottom: 8rem;
  }
}

.bottom-nav-item span {
  line-height: 1.3;
}

/* --- SEARCH OVERLAY --- */
.search-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1300;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 6, 0.55);
  backdrop-filter: blur(8px);
}

.search-dialog {
  position: relative;
  max-width: 640px;
  width: calc(100% - 3rem);
  background: #fdf7ee;
  border-radius: 12px;
  padding: 26px 26px 24px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.3);
}

.search-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 26px;
  margin-bottom: 14px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: #7B8B6F;
  box-shadow: 0 0 0 1px rgba(123, 139, 111, 0.3);
}

.search-form .search-submit {
  min-width: 128px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(155, 137, 118, 0.5);
  border-radius: 999px;
  background: #465739;
  color: #fdfaf3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.search-form .search-submit:hover {
  background: #3e4f32;
  border-color: transparent;
  transform: translateX(1px);
  filter: brightness(0.97);
}

.search-form .search-submit.is-loading {
  pointer-events: none;
  opacity: 0.92;
}

.search-form .search-submit.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: amzSearchSubmitSpin 0.7s linear infinite;
}

@keyframes amzSearchSubmitSpin {
  to { transform: rotate(360deg); }
}

.search-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #7b6a59;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.search-open {
  overflow: hidden;
}

body.search-open .search-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* --- ACCOUNT OVERLAY --- */
.account-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1300;
}

.account-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 6, 0.55);
  backdrop-filter: blur(8px);
}

.account-dialog {
  position: relative;
  max-width: 440px;
  width: calc(100% - 3rem);
  background: #fdf7ee;
  border-radius: 12px;
  padding: 26px 26px 24px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.3);
}

.account-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 26px;
  margin-bottom: 18px;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.account-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 14px;
  outline: none;
}

.account-field input:focus {
  border-color: #7B8B6F;
  box-shadow: 0 0 0 1px rgba(123, 139, 111, 0.3);
}

.account-submit {
  margin-top: 4px;
  width: 100%;
  text-align: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(155, 137, 118, 0.5);
  border-radius: 999px;
  background: #465739;
  color: #fdfaf3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.account-submit:hover {
  background: #3e4f32;
  border-color: transparent;
  transform: translateX(1px);
  filter: brightness(0.97);
}

.account-submit.is-loading {
  pointer-events: none;
  opacity: 0.92;
}

.account-submit.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: amzAccountSubmitSpin 0.7s linear infinite;
}

@keyframes amzAccountSubmitSpin {
  to { transform: rotate(360deg); }
}

.account-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #7b6a59;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.account-open {
  overflow: hidden;
}

body.account-open .account-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* --- CART DRAWER --- */
.cart-drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 12000;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 6, 0.4);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(386px, 90vw);
  height: 100%;
  background: #fef9f1;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 1rem 10px;
}

.cart-drawer.is-loading .cart-panel {
  opacity: 0.75;
}

.cart-drawer.is-loading .cart-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(254, 249, 241, 0.45);
  pointer-events: none;
  z-index: 5;
}

.cart-drawer.is-loading .cart-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(77, 63, 51, 0.25);
  border-top-color: rgba(77, 63, 51, 0.9);
  animation: amzSpin 0.9s linear infinite;
  z-index: 6;
  pointer-events: none;
}

.cart-drawer.is-loading .cart-panel {
  pointer-events: auto;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-header h2 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 22px;
}

.cart-close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 28px;
  position: relative;
  top: -15px;
  right: -10px;
  cursor: pointer;
  color: #7b6a59;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding-top: 4px;
}

.cart-empty {
  margin: 10px 0 6px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(180, 120, 95, 0.45);
  background: linear-gradient(135deg, #FFF7F0 0%, #FFEDE1 100%);
  font-size: 14px;
  line-height: 1.6;
  color: #6e4a38;
  text-align: left;
}

.cart-body .cart-empty {
  text-align: center;
}

.cart-empty::before {
  content: "🛒";
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cart-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 12px;
  margin-top: 10px;
  padding-bottom: 2px;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 10px;
}

.cart-summary strong {
  font-size: 16px;
  color: var(--terracotta) !important;
  letter-spacing: 0.02em;
}

.cart-footer .cart-checkout {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: transparent;
  background: linear-gradient(135deg, var(--terracotta) 0%, #C07A55 55%, #E0A07B 100%);
  color: #fff !important;
  border: 1px solid rgba(180, 120, 95, 0.35);
  box-shadow:
    0 14px 28px rgba(180, 120, 95, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.18) inset;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.cart-footer .cart-checkout::before {
  content: "🛍️";
  font-size: 16px;
  line-height: 1;
}

.cart-footer .cart-checkout:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow:
    0 16px 32px rgba(180, 120, 95, 0.26),
    0 2px 0 rgba(255, 255, 255, 0.18) inset;
}

.cart-footer .cart-checkout:active {
  transform: translateY(0);
  box-shadow:
    0 10px 22px rgba(180, 120, 95, 0.20),
    0 2px 0 rgba(255, 255, 255, 0.16) inset;
}

.cart-footer .cart-checkout.is-loading {
  pointer-events: none;
  opacity: 0.92;
  filter: saturate(0.9);
}

.cart-footer .cart-checkout.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 0.98);
  animation: amzCartCheckoutSpin 0.8s linear infinite;
}

@keyframes amzCartCheckoutSpin {
  to {
    transform: rotate(360deg);
  }
}

/* --- MINI CART (DRAWER) --- */
.amz-mini-cart-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
}

.amz-mini-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 10px 10px 10px 10px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.amz-mini-cart-thumb,
.amz-mini-cart-meta,
.amz-mini-cart-remove {
  position: relative;
  z-index: 1;
}

.amz-mini-cart-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(254, 249, 241, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 2;
}

.amz-mini-cart-item::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(77, 63, 51, 0.25);
  border-top-color: rgba(77, 63, 51, 0.9);
  opacity: 0;
  pointer-events: none;
  animation: amzSpin 0.9s linear infinite;
  transition: opacity 0.18s ease;
  z-index: 3;
}

.amz-mini-cart-item.is-loading::after,
.amz-mini-cart-item.is-loading::before {
  opacity: 1;
}

.amz-mini-cart-item.is-loading .amz-qty-btn,
.amz-mini-cart-item.is-loading .amz-mini-cart-remove,
.amz-mini-cart-item.is-loading .amz-qty-input {
  pointer-events: none;
}

.amz-mini-cart-item.is-loading {
  filter: saturate(0.9);
}

@keyframes amzSpin {
  to {
    transform: rotate(360deg);
  }
}

.amz-mini-cart-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.amz-mini-cart-meta {
  min-width: 0;
}

.amz-mini-cart-name a,
.amz-mini-cart-name {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #2a231d;
  text-decoration: none;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.amz-mini-cart-attrs {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #6b5b4a;
}

.amz-mini-cart-attrs {
  display: block;
}

.amz-mini-cart-line {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.amz-mini-cart-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--terracotta) !important;
  white-space: nowrap;
}

.amz-mini-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.amz-qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #4d3f33;
}

.amz-qty-input {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 30px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: #2a231d !important;
  -webkit-text-fill-color: #2a231d !important;
  caret-color: #2a231d;
  font-variant-numeric: tabular-nums;
  background: #fff;
  line-height: 30px;
  padding: 0;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.amz-qty-input::-webkit-outer-spin-button,
.amz-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amz-mini-cart-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(180, 60, 60, 0.35);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 16px;
  color: #b43c3c;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

.amz-mini-cart-remove:hover {
  transform: scale(1.05);
  background: #fce9e9;
  border-color: rgba(180, 60, 60, 0.55);
  color: #a43636;
}

.amz-mini-cart-remove:active {
  transform: scale(0.98);
}

/* Mini cart inline confirm */
.amz-mini-confirm {
  position: absolute;
  right: 6px;
  top: 38px;
  /* ngay dưới nút X */
  z-index: 5;
  min-width: 190px;
  padding: 10px 12px 9px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.amz-mini-confirm-msg {
  font-size: 12px;
  color: #3a2c23;
  margin-bottom: 8px;
}

.amz-mini-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.amz-mini-confirm-actions button {
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #faf6f1;
  cursor: pointer;
  color: #4d3f33;
}

.amz-mini-confirm-ok {
  border-color: rgba(180, 60, 60, 0.45);
  background: linear-gradient(135deg, #b43c3c 0%, #d45d5d 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(180, 60, 60, 0.35);
}

.amz-mini-confirm-ok:hover {
  background: linear-gradient(135deg, #a43636 0%, #c04848 100%);
}

.amz-mini-confirm-actions .amz-mini-confirm-cancel:hover {
  background: #f4ece4;
}

body.cart-open {
  overflow: hidden;
}

body.cart-open .cart-drawer {
  opacity: 1;
  pointer-events: auto;
}

body.cart-open .cart-panel {
  transform: translateX(0);
}

/* Keep mini-cart fully interactive: hide floating buttons above it */
body.cart-open .floating-right-actions,
body.cart-open .back-to-top {
  opacity: 0;
  pointer-events: none !important;
}

/* --- TOAST (GLOBAL) --- */
.amz-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 99999;
  width: min(420px, calc(100% - 36px));
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.amz-toast.is-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.amz-toast-inner {
  position: relative;
  border-radius: 12px;
  padding: 14px 44px 14px 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.amz-toast.is-success .amz-toast-inner {
  background: #1E8E3E;
  color: #fff;
}

.amz-toast.is-error .amz-toast-inner {
  background: #D93025;
  color: #fff;
}

.amz-toast-msg {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.amz-toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.amz-toast-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* --- CONTENT AREA (WordPress) --- */
.site-main {
  margin: 0 auto;
  padding: 8px 2rem;
}

.entry-header {
  margin-bottom: 1rem;
}

.entry-title {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text-charcoal);
}

.entry-content {
  font-size: 1rem;
  line-height: 1.8;
}

.entry-content p {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  body {
    max-width: 100%;
    min-width: 100%;
    padding: 0;
    margin: 0;
    padding-bottom: 4rem;
  }

  .amz-mega-nav {
    max-width: 100%;
    min-width: 100%;
    padding: 0;
  }

  #content-wrap {
    padding: 3rem 1rem;
  }

  .bottom-nav {
    display: flex;
  }

  .back-to-top {
    bottom: 5rem;
    right: 6px;
  }

  .site-footer {
    padding: 1rem !important;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-col.footer-brand {
    grid-column: 1 / -1;
  }

  .site-main {
    padding: 0 !important;
  }
}

/* Confirm dialog (mobile-app style) */
.amz-confirm {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.amz-confirm.is-open {
  display: flex;
}

.amz-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 23, 0.38);
  backdrop-filter: blur(2px);
}

.amz-confirm-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--warm-white);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.amz-confirm.is-open .amz-confirm-dialog {
  transform: none;
  opacity: 1;
}

.amz-confirm-body {
  padding: 18px 18px 14px;
}

.amz-confirm-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 6px;
  color: #2a231d;
}

.amz-confirm-msg {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.amz-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 18px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.03));
}

.amz-confirm-btn {
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--sand);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.amz-confirm-btn.primary {
  border-color: rgba(180, 60, 60, 0.35);
  background: #b43c3c;
  color: #fff;
}

.amz-confirm-btn.primary:not(:disabled):hover {
  background: #a43636;
}

.amz-confirm-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Refine confirm placement when mini cart is open */
body.cart-open .amz-confirm {
  justify-content: flex-end;
  align-items: center;
  padding: 20px 360px 20px 20px;
  /* align dialog roughly over drawer width */
}

body.cart-open .amz-confirm-dialog {
  max-width: 340px;
}

body.cart-open .amz-confirm-backdrop {
  background: transparent;
  backdrop-filter: none;
}

/* Full-page loading overlay */
body.amz-page-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(28, 26, 23, 0.45);
  backdrop-filter: blur(2px);
}

body.amz-page-loading::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2101;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: amzSpin 0.8s linear infinite;
  margin: auto;
}

@media (max-width: 480px) {
  .amz-confirm {
    align-items: flex-end;
    padding: 0;
  }

  .amz-confirm-dialog {
    max-width: none;
    border-radius: 18px 18px 0 0;
  }
}

@media (max-width: 480px) {
  .search-dialog {
    width: calc(100% - 2rem);
    padding: 22px 18px 20px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-submit {
    width: 100%;
  }

  .account-dialog {
    width: calc(100% - 2rem);
    padding: 22px 18px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Mobile page-transition loading overlay */
.amz-page-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(28, 26, 23, 0.38);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s ease;
}

.amz-page-loading-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.amz-page-loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.96);
  animation: amzPageLoadingSpin 0.75s linear infinite;
}

@keyframes amzPageLoadingSpin {
  to { transform: rotate(360deg); }
}