/* =========================================================
   CHẠM COTTON — Full Responsive (PC + Mobile) Stylesheet
   Palette:
     Pink:   #F3A4B2 (soft: #FDE7EC, deep: #D97A8B)
     Cream:  #FFF8F0 (card: #FFFDF9)
     Olive:  #AAB182 (soft: #EEF1E3, deep: #788052)
   ========================================================= */

:root {
  --pink: #F3A4B2;
  --pink-light: #FCE2E7;
  --pink-deep: #D97A8B;
  --cream: #FFF8F0;
  --cream-card: rgba(255, 252, 248, 0.92);
  --olive: #AAB182;
  --olive-light: #EEF1E2;
  --olive-deep: #788052;
  --ink: #4A3E3B;
  --ink-muted: #7F706C;
  --border-soft: rgba(243, 164, 178, 0.36);
  --border-olive: rgba(170, 177, 130, 0.42);
  --shadow-soft: 0 12px 32px rgba(175, 130, 138, 0.15);
  --shadow-card: 0 4px 18px rgba(138, 118, 108, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(243, 164, 178, 0.42) 0%, transparent 45%),
    radial-gradient(circle at 92% 18%, rgba(255, 242, 232, 0.65) 0%, transparent 45%),
    radial-gradient(circle at 86% 88%, rgba(170, 177, 130, 0.4) 0%, transparent 50%),
    linear-gradient(155deg, #FDE8EC 0%, #FFF8F0 48%, #EBF0DF 100%);
  background-attachment: fixed;
  line-height: 1.5;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* =========================================================
   WELCOME SCREEN — FULL-SCREEN "NGÔI NHÀ COTTON" (Luminous)
   ========================================================= */
.welcome-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  overflow: hidden;
  background: #FFF7F2;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.85s;
}

.welcome-screen.is-entering {
  pointer-events: none;
}

.welcome-screen.is-entering .welcome-bg-layer {
  transform: scale(2.05) translateY(-3%);
  filter: brightness(1.18) blur(5px);
  opacity: 0;
}

.welcome-screen.is-entering .welcome-overlay-ui {
  opacity: 0;
  transform: scale(0.96);
}

.welcome-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Full-screen storefront backdrop with gentle breathing + parallax */
.welcome-bg-layer {
  position: absolute;
  inset: -24px;
  z-index: 1;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.85s ease, filter 0.85s ease;
  will-change: transform;
}

.welcome-house-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  animation: houseFloatSlow 11s ease-in-out infinite;
  user-select: none;
}

/* On PC/Tablet: melt top, left & right edges seamlessly into the outer pastel gradient + keep tagline snug on the beam above the doors */
@media (min-width: 768px) {
  .welcome-screen {
    background:
      radial-gradient(circle at 12% 18%, rgba(252, 224, 232, 0.55) 0%, transparent 48%),
      radial-gradient(circle at 88% 82%, rgba(226, 233, 206, 0.5) 0%, transparent 50%),
      linear-gradient(180deg, #FDF2F4 0%, #FDF7F1 30%, #FAF5EC 72%, #F4F1E8 100%);
  }
  .welcome-overlay-ui {
    padding-top: 26px;
    padding-bottom: 18px;
  }
  .welcome-logo {
    width: 170px;
  }
  .welcome-tagline {
    padding: 5px 16px;
    font-size: 12.5px;
    margin-top: 4px;
  }
  .welcome-bg-layer {
    top: 102px;
    left: 0;
    right: 0;
    bottom: -14px;
    padding-top: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 100%);
  }
  .welcome-bg-layer picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .welcome-house-full {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }
}

@keyframes houseFloatSlow {
  0%, 100% { transform: scale(1.01) translateY(0px); }
  50% { transform: scale(1.035) translateY(-5px); }
}

/* Soft pastel top & bottom vignette so logo & CTA pop cleanly */
.welcome-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(255, 244, 224, 0.14) 0%, transparent 48%),
    linear-gradient(180deg,
      rgba(253, 232, 237, 0.72) 0%,
      rgba(255, 248, 240, 0.16) 24%,
      rgba(255, 248, 240, 0) 48%,
      rgba(255, 248, 240, 0.12) 76%,
      rgba(235, 240, 223, 0.78) 100%
    );
}

/* Animated golden sunbeams streaming across the house */
.welcome-sunrays {
  position: absolute;
  inset: -10%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.sunray {
  position: absolute;
  top: -18%;
  width: 24%;
  height: 145%;
  background: linear-gradient(180deg, rgba(255, 250, 228, 0.42) 0%, rgba(255, 236, 210, 0.14) 55%, transparent 100%);
  transform-origin: top center;
  filter: blur(18px);
  animation: swayRay var(--rdur, 9s) ease-in-out infinite alternate;
  animation-delay: var(--rdelay, 0s);
}

.sunray.r1 { left: 12%; transform: rotate(-16deg); --rdur: 8.5s; }
.sunray.r2 { left: 42%; width: 22%; transform: rotate(-4deg); --rdur: 10s; --rdelay: -2s; }
.sunray.r3 { right: 10%; transform: rotate(15deg); --rdur: 9.2s; --rdelay: -4s; }

@keyframes swayRay {
  0% { opacity: 0.35; transform: rotate(var(--rrot, -10deg)) translateX(-18px); }
  100% { opacity: 0.78; transform: rotate(calc(var(--rrot, -10deg) + 5deg)) translateX(18px); }
}

/* Warm glowing bloom from inside the open doorway (NO dashed border!) */
.door-glow-aura {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: clamp(190px, 24vw, 340px);
  height: clamp(240px, 44vh, 460px);
  z-index: 4;
  border-radius: 24px;
  background: radial-gradient(ellipse at center, rgba(255, 245, 214, 0.52) 0%, rgba(255, 224, 230, 0.18) 52%, transparent 74%);
  filter: blur(12px);
  pointer-events: none;
  animation: auraBreathe 3.8s ease-in-out infinite;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.welcome-screen.is-door-hover .door-glow-aura {
  transform: translate(-50%, -50%) scale(1.18);
  opacity: 1;
}

@keyframes auraBreathe {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 0.92; transform: translate(-50%, -50%) scale(1.06); }
}

/* True Horizontal Sliding Glass Door (Cửa kéo ngang trên ray trượt) */
.door-leaves {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: clamp(190px, 28vw, 390px);
  height: clamp(230px, 50vh, 520px);
  z-index: 5;
  pointer-events: none;
  display: flex;
  overflow: hidden;
  border-top: 3px solid rgba(180, 174, 162, 0.48);
  border-bottom: 2px solid rgba(180, 174, 162, 0.32);
  transition: opacity 0.45s ease;
}

.door-leaf {
  flex: 1;
  height: 100%;
  background: linear-gradient(125deg, rgba(255, 253, 249, 0.42) 0%, rgba(255, 246, 236, 0.16) 48%, rgba(255, 255, 255, 0.34) 100%);
  border: 2.5px solid rgba(176, 172, 160, 0.55);
  box-shadow: inset 0 0 18px rgba(255, 250, 242, 0.45);
  backdrop-filter: blur(1.5px);
  position: relative;
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.85s ease;
}

/* Subtle recessed sliding-door handle */
.door-leaf::after {
  content: '';
  position: absolute;
  top: 47%;
  width: 5px;
  height: 36px;
  border-radius: 99px;
  background: rgba(160, 152, 140, 0.65);
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.8);
}
.door-leaf.left::after { right: 9px; }
.door-leaf.right::after { left: 9px; }

/* Pure horizontal slide open (either auto-on-load OR on-click) */
.welcome-screen.is-doors-open .door-leaf.left,
.welcome-screen.is-entering .door-leaf.left {
  transform: translateX(-102%);
  opacity: 0;
}
.welcome-screen.is-doors-open .door-leaf.right,
.welcome-screen.is-entering .door-leaf.right {
  transform: translateX(102%);
  opacity: 0;
}
.welcome-screen.is-doors-open .door-leaves,
.welcome-screen.is-entering .door-leaves {
  opacity: 0;
}

/* Spinning Cotton Flower Loading Overlay */
.flower-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 248, 240, 0.96) 0%, rgba(253, 232, 237, 0.96) 55%, rgba(235, 240, 223, 0.96) 100%);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.flower-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loader-spinner-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-flower-main {
  width: 62px;
  height: 62px;
  animation: spinFlower 2.2s linear infinite;
  filter: drop-shadow(0 6px 14px rgba(217, 122, 139, 0.3));
}

.loader-orbit {
  position: absolute;
  inset: 0;
  animation: spinFlower 3.6s linear infinite reverse;
}

.loader-orbit-dot {
  position: absolute;
  width: 16px;
  height: 16px;
}
.loader-orbit-dot.d1 { top: 0; left: 50%; transform: translateX(-50%); }
.loader-orbit-dot.d2 { bottom: 4px; left: 10px; }
.loader-orbit-dot.d3 { bottom: 4px; right: 10px; }

.loader-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.loader-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: -10px;
}

@keyframes spinFlower {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Inner Pages Ambient Effects Layer (Toggleable via Admin option) */
.inner-ambient-fx {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

body.fx-ambient-off .inner-ambient-fx {
  opacity: 0;
  visibility: hidden;
}

body.fx-motion-off *,
body.fx-motion-off *::before,
body.fx-motion-off *::after {
  animation: none !important;
  transition: none !important;
}

/* =========================================================
   CONTACT VIEW — LINK-IN-BIO STYLE (Matches Slide 11 Brief)
   ========================================================= */
.bio-shell {
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(180deg, #9EA677 0%, #AAB182 55%, #9BA374 100%);
  border-radius: 26px;
  padding: 26px 18px 22px;
  box-shadow: var(--shadow-soft);
  color: #FFFDF9;
  text-align: center;
  margin-bottom: 16px;
}

.bio-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #FFFDF9;
  padding: 10px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(74, 62, 59, 0.14);
}

.bio-avatar img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.bio-subtitle {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 14px;
}

.bio-links-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.bio-link-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  background: #FFFDF9;
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(74, 62, 59, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bio-link-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(74, 62, 59, 0.15);
}

.bio-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: var(--cream);
  flex-shrink: 0;
}

/* Zalo Community QR Card (Clean white card directly on olive bio — no outer blue box) */
.zalo-qr-frame {
  background: transparent;
  padding: 26px 0 8px;
  margin: 8px 0 18px;
}

.zalo-qr-card {
  background: #FFFDF9;
  color: var(--ink);
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  padding: 18px 16px 16px;
  max-width: 310px;
  margin: 0 auto;
  box-shadow: 0 10px 24px rgba(74, 62, 59, 0.14);
}

.zalo-qr-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFDF9;
  border: 2px solid #E8EEF8;
  padding: 5px;
  margin: -34px auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.zalo-qr-svg {
  width: 156px;
  height: 156px;
  margin: 10px auto 8px;
  display: block;
}

/* 3x2 Mini Gallery ("Chạm Cotton Vlog") */
.bio-vlog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.bio-vlog-item {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 253, 249, 0.75);
}

.bio-vlog-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-viewport {
  position: relative;
  z-index: 2;
}

/* Admin Effects Toggle Popover */
.fx-admin-popover {
  position: fixed;
  top: 72px;
  right: 16px;
  width: 300px;
  max-width: calc(100vw - 32px);
  z-index: 75;
  background: rgba(255, 253, 249, 0.97);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--pink);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(74, 62, 59, 0.18);
  display: none;
  animation: fadeScaleIn 0.22s ease;
}

.fx-admin-popover.is-open {
  display: block;
}

.fx-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 12.5px;
}

.fx-opt-row:last-child { border-bottom: none; }

/* Flower Burst Micro-animation on Add to Cart */
.burst-petal {
  position: fixed;
  pointer-events: none;
  z-index: 110;
  animation: burstOut 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes burstOut {
  0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) scale(1.1) rotate(180deg); opacity: 0; }
}

/* Invisible clickable doorway area (NO red/pink dashed outline!) */
.door-click-zone {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: clamp(150px, 21vw, 290px);
  height: clamp(200px, 42vh, 430px);
  z-index: 6;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Canvas + CSS particle layers */
.welcome-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.welcome-particles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  opacity: 0;
  animation: floatPetal var(--dur, 10s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 3px 6px rgba(217, 122, 139, 0.22));
}

@keyframes floatPetal {
  0% { transform: translate(0, -24px) rotate(0deg) scale(0.75); opacity: 0; }
  12% { opacity: 0.88; }
  50% { transform: translate(var(--dx, 36px), 48vh) rotate(170deg) scale(1.05); opacity: 0.78; }
  88% { opacity: 0.55; }
  100% { transform: translate(calc(var(--dx, 36px) * -0.5), 102vh) rotate(345deg) scale(0.8); opacity: 0; }
}

.sparkle-star {
  position: absolute;
  pointer-events: none;
  animation: twinkleStar var(--sdur, 2.6s) ease-in-out infinite;
  animation-delay: var(--sdelay, 0s);
}

@keyframes twinkleStar {
  0%, 100% { opacity: 0.12; transform: scale(0.45) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.22) rotate(45deg); }
}

/* Top Logo + Bottom CTA overlay */
.welcome-overlay-ui {
  position: relative;
  z-index: 8;
  width: 100%;
  height: 100%;
  padding: clamp(54px, 8.5vh, 92px) 20px clamp(74px, 12.5vh, 130px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.welcome-top {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: fadeSlideDown 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.welcome-logo {
  width: clamp(216px, 56vw, 276px);
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(255, 248, 240, 0.95)) drop-shadow(0 4px 12px rgba(217, 122, 139, 0.25));
  animation: gentleBob 4.8s ease-in-out infinite;
}

.welcome-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(10px);
  border: 1.4px solid rgba(243, 164, 178, 0.55);
  color: var(--ink);
  font-size: clamp(13.8px, 3.6vw, 15.5px);
  font-weight: 700;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(175, 130, 138, 0.16);
}

.welcome-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: fadeSlideUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.btn-enter-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 256px;
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #F6B2BE 0%, #F3A4B2 52%, #E58899 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  border: 2px solid rgba(255, 253, 249, 0.85);
  box-shadow:
    0 14px 32px rgba(217, 122, 139, 0.42),
    0 0 0 6px rgba(255, 248, 240, 0.45);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: ctaPulse 2.6s ease-in-out infinite;
}

.btn-enter-shop::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transform: skewX(-22deg);
  animation: shimmerSweep 3.2s ease-in-out infinite;
}

.btn-enter-shop:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 18px 38px rgba(217, 122, 139, 0.54),
    0 0 0 8px rgba(255, 248, 240, 0.6);
}

.btn-enter-shop:active {
  transform: scale(0.98);
}

.welcome-subhint {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.78);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 14px 32px rgba(217, 122, 139, 0.4), 0 0 0 6px rgba(255, 248, 240, 0.45); }
  50% { box-shadow: 0 16px 38px rgba(217, 122, 139, 0.56), 0 0 0 10px rgba(255, 248, 240, 0.62); }
}
@keyframes shimmerSweep {
  0%, 58% { left: -120%; }
  100% { left: 160%; }
}

/* =========================================================
   APP SHELL — FULL RESPONSIVE (Mobile + Desktop PC)
   ========================================================= */
.app-viewport {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Fixed Top Header + Scalloped Pink Border (Always stays pinned when scrolling) */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 45;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 4px 16px rgba(138, 118, 108, 0.06);
}

.scallop-strip {
  height: 11px;
  width: 100%;
  background: var(--pink);
  position: relative;
}

.scallop-strip::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 12px;
  background-image: radial-gradient(circle at 10px 0, var(--pink) 8px, transparent 8.5px);
  background-size: 20px 12px;
  background-repeat: repeat-x;
}

.header-bar {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 10px;
  gap: 16px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-soft);
  color: var(--ink);
  position: relative;
  transition: transform 0.2s, background 0.2s;
}

.icon-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.header-logo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  height: 36px;
  width: auto;
}

/* Desktop Horizontal Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.desktop-nav-link {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all 0.2s;
}

.desktop-nav-link:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.desktop-nav-link.is-active {
  background: var(--pink-light);
  color: var(--pink-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-cart-pill {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #F5AEBA, #F3A4B2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(217, 122, 139, 0.28);
}

.header-cart-pill .pill-count {
  background: #fff;
  color: var(--pink-deep);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--pink-deep);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream);
}

/* =========================================================
   MAIN CONTENT CONTAINER
   ========================================================= */
.app-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 16px 104px;
  min-height: 100vh;
}

.view {
  display: none;
  animation: viewFade 0.32s ease;
}

.view.is-active {
  display: block;
}

@keyframes viewFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reusable Rounded Content Box */
.soft-box {
  background: var(--cream-card);
  border: 1.2px solid rgba(255, 255, 255, 0.92);
  outline: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.soft-box--olive {
  background: linear-gradient(155deg, rgba(244, 246, 234, 0.94) 0%, rgba(255, 252, 248, 0.95) 100%);
  outline-color: var(--border-olive);
}

.soft-box--pink {
  background: linear-gradient(155deg, rgba(253, 234, 239, 0.92) 0%, rgba(255, 252, 248, 0.95) 100%);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Major Highlighted Section Headings (DANH MỤC SẢN PHẨM, THỬ VẢI LÊN MOCKUP, GÓC KIẾN THỨC, LIÊN HỆ...) */
.section-title--major {
  font-family: var(--font-body);
  font-size: clamp(19px, 2.3vw, 26px);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 14px 6px 10px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(243, 164, 178, 0.28) 0%, rgba(170, 177, 130, 0.2) 100%);
  border-left: 4px solid var(--pink-deep);
  line-height: 1.3;
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.18s, box-shadow 0.2s, background 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #F5AEBA 0%, #F3A4B2 60%, #E78D9D 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(217, 122, 139, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 8px 22px rgba(217, 122, 139, 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border-olive);
}

.btn-secondary:hover {
  background: var(--olive-light);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  background: #E8DFDD;
  color: #9A8D8A;
  box-shadow: none;
}

/* =========================================================
   HOME VIEW (Mobile 1-col → PC 2-col Hero, 4-col Cats)
   ========================================================= */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}

.hero-gallery {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #F6ECE6;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: rgba(255, 250, 245, 0.78);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(74, 62, 59, 0.25);
  transition: width 0.25s, background 0.25s;
}

.hero-dot.is-active {
  width: 18px;
  border-radius: var(--radius-pill);
  background: var(--pink-deep);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--olive-deep);
  background: var(--olive-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 13.8px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.hero-cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Category Grid — 1 big square card per row on Mobile, 3 big square cards on PC */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.cat-card {
  background: #fff;
  border: 1.4px solid var(--border-soft);
  border-radius: 22px;
  padding: 14px;
  text-align: left;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s, border-color 0.24s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--pink);
}

.cat-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cat-card-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.28;
}

.cat-card-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.48;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
  flex-wrap: wrap;
}

.cat-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.2px;
  font-weight: 700;
  color: var(--olive-deep);
  background: var(--olive-light);
  border: 1px solid var(--border-olive);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}

.cat-cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.2px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #F5AEBA, #E78D9D);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 10px rgba(217, 122, 139, 0.24);
}

.cat-card-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.wholesale-pill-box {
  display: flex;
  gap: 14px;
  align-items: center;
}

.wholesale-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(170, 177, 130, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wholesale-pill-box h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.wholesale-pill-box p {
  font-size: 13px;
  color: var(--ink-muted);
}

/* Home Contact + Maps Grid */
.home-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}

.contact-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 4px;
}

.btn-call {
  background: linear-gradient(135deg, #AAB182, #8E9666);
  color: #fff;
}

.btn-zalo {
  background: linear-gradient(135deg, #4B9BFF, #1D7CF2);
  color: #fff;
}

.map-embed-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-olive);
  background: #F3F5EB;
}

.map-embed-card iframe {
  width: 100%;
  height: 185px;
  border: 0;
  display: block;
}

/* =========================================================
   CATALOG VIEW
   ========================================================= */
.cat-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.cat-tabs-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 253, 249, 0.9);
  border: 1.2px solid var(--border-soft);
  color: var(--ink-muted);
  transition: all 0.2s;
}

.cat-pill:hover {
  border-color: var(--pink);
  color: var(--ink);
}

.cat-pill.is-active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(243, 164, 178, 0.35);
}

.cat-intro-title {
  font-family: var(--font-serif);
  font-size: 21px;
  margin-bottom: 6px;
}

.cat-intro-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.cat-specs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.spec-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-olive);
  color: var(--olive-deep);
}

.tier-strip {
  background: rgba(255, 248, 240, 0.92);
  border: 1px dashed var(--pink);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 12.5px;
}

.tier-strip strong { color: var(--pink-deep); }

.bundle-progress-banner {
  background: linear-gradient(135deg, rgba(238, 241, 226, 0.95), rgba(253, 236, 240, 0.92));
  border: 1.2px solid var(--olive);
  border-radius: 16px;
  padding: 11px 15px;
  margin-bottom: 16px;
  font-size: 12.8px;
}

.bundle-bar-track {
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  margin-top: 7px;
}

.bundle-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--pink), var(--olive));
  transition: width 0.35s ease;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.product-card {
  background: rgba(255, 253, 249, 0.96);
  border: 1.2px solid var(--border-soft);
  border-radius: 18px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.product-thumb-wrap {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-flower-pin {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.product-name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.stock-line {
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stock-dot.in { background: #7FA360; }
.stock-dot.low { background: #E39B4F; }
.stock-dot.out { background: #B8AEAB; }

.stock-text-in { color: #5B7842; }
.stock-text-low { color: #B97125; }
.stock-text-out { color: #9A8D8A; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price-now { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.price-old { font-size: 11.8px; color: var(--ink-muted); text-decoration: line-through; }
.price-wholesale-tag {
  font-size: 10.5px;
  font-weight: 700;
  background: var(--olive-light);
  color: var(--olive-deep);
  padding: 2px 7px;
  border-radius: 6px;
}

/* =========================================================
   PRODUCT DETAIL VIEW (Mobile 1-col → PC 2-col split)
   ========================================================= */
.back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--border-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.detail-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}

.zoom-toggle-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--border-soft);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.25;
  margin-bottom: 8px;
}

.detail-stock-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--olive-light);
  color: var(--olive-deep);
  font-size: 12.2px;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-price-main { font-size: 24px; font-weight: 800; color: var(--pink-deep); }
.detail-vat { font-size: 12.5px; color: var(--ink-muted); }

.attr-group { margin-bottom: 14px; }
.attr-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
}
.attr-label span { font-weight: 500; color: var(--ink-muted); }

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

.attr-chip {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12.8px;
  font-weight: 600;
  background: #fff;
  border: 1.3px solid var(--border-soft);
  color: var(--ink);
  transition: all 0.18s;
}

.attr-chip.is-selected {
  background: var(--pink-light);
  border-color: var(--pink-deep);
  color: var(--pink-deep);
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px dashed var(--border-soft);
  border-bottom: 1px dashed var(--border-soft);
  margin: 14px 0;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.3px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
}

.stepper button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stepper button:hover { background: var(--pink-light); }
.stepper-val { min-width: 48px; text-align: center; font-weight: 700; font-size: 14px; }

.quick-qty-chips { display: flex; gap: 7px; margin-bottom: 14px; }

.quick-qty-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-olive);
  color: var(--olive-deep);
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* =========================================================
   MOCKUP VIEW (Real Photo Mask + Multiply Shading, Wrap Tabs)
   ========================================================= */
.mockup-tabs,
#mockupCatFilter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.mockup-studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.mockup-stage-card {
  background: #FFFDF9;
  border: 1.5px solid var(--border-soft);
  border-radius: 22px;
  padding: 20px 16px 16px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.mockup-svg-box {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  height: auto !important;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.mockup-svg-box.is-switching { transform: scale(0.95); opacity: 0.7; }

/* Real Studio Photo Mockup Composite (Mask + Multiply) */
.photo-mockup-stage {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
  filter: drop-shadow(0 12px 22px rgba(120, 95, 95, 0.14));
}

.photo-mockup-fabric {
  position: absolute;
  inset: 0;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-size 0.15s ease;
}

.photo-mockup-shade {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.96;
  pointer-events: none;
  user-select: none;
}

.mockup-scale-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
}

.mockup-scale-bar input[type="range"] {
  accent-color: var(--pink-deep);
  width: 140px;
}

.mockup-active-fabric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--border-olive);
  border-radius: 16px;
  padding: 11px 14px;
  margin-bottom: 12px;
  text-align: left;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.18s;
}

.swatch-btn:hover { background: #fff; }

.swatch-btn.is-active {
  border-color: var(--pink-deep);
  background: #fff;
  box-shadow: 0 4px 12px rgba(217, 122, 139, 0.25);
}

.swatch-circle {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.swatch-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   CART VIEW — "SỔ ĐƠN HÀNG" (Spiral Notebook, 2-col on PC)
   ========================================================= */
.notebook-wrapper {
  position: relative;
  margin-top: 12px;
  padding-left: 14px;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.washi-tape {
  position: absolute;
  top: -10px;
  height: 22px;
  width: 86px;
  border-radius: 3px;
  opacity: 0.84;
  z-index: 3;
}
.washi-tape.left {
  left: 48px;
  background: repeating-linear-gradient(45deg, #F3A4B2, #F3A4B2 6px, #F8C6CF 6px, #F8C6CF 12px);
  transform: rotate(-4deg);
}
.washi-tape.right {
  right: 42px;
  background: repeating-linear-gradient(-45deg, #AAB182, #AAB182 6px, #C6CCA8 6px, #C6CCA8 12px);
  transform: rotate(3.5deg);
}

.notebook-paper {
  background: #FFFDF8;
  border: 1.5px solid rgba(243, 164, 178, 0.55);
  border-radius: 6px 24px 24px 6px;
  padding: 26px 20px 24px 28px;
  box-shadow:
    -6px 8px 0 rgba(243, 164, 178, 0.22),
    0 14px 34px rgba(155, 115, 120, 0.14);
  position: relative;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 35px,
    rgba(243, 164, 178, 0.18) 35px,
    rgba(243, 164, 178, 0.18) 36px
  );
}

.notebook-rings {
  position: absolute;
  left: -13px;
  top: 28px;
  bottom: 28px;
  width: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 4;
}

.ring {
  width: 24px;
  height: 9px;
  border-radius: 6px;
  background: linear-gradient(90deg, #6B5C59 0%, #9E8F8C 48%, #5D4F4C 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18);
  position: relative;
}

.ring::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #F6E6E9;
  border: 1.5px solid rgba(217, 122, 139, 0.45);
  z-index: -1;
}

.notebook-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.notebook-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notebook-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.cart-item-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(217, 122, 139, 0.35);
  align-items: flex-start;
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13.8px; font-weight: 700; line-height: 1.3; }
.cart-item-attrs { font-size: 11.8px; color: var(--ink-muted); margin: 2px 0 7px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.cart-mini-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  font-size: 12.5px;
  font-weight: 700;
}

.cart-mini-stepper button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream);
  font-size: 14px;
}

.cart-item-price { text-align: right; }
.cart-remove-btn { font-size: 11.5px; color: var(--ink-muted); text-decoration: underline; margin-left: 8px; }

.notebook-total-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(253, 236, 240, 0.65);
  border: 1px solid var(--border-soft);
}

.total-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.total-amount { font-size: 22px; font-weight: 800; color: var(--pink-deep); }
.vat-note { font-size: 12px; color: var(--ink-muted); margin-top: 6px; line-height: 1.45; }

.invoice-box {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1.2px solid var(--border-olive);
}

.toggle-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 700; }

.switch { position: relative; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: #DDD4D2;
  border-radius: var(--radius-pill);
  transition: 0.25s;
  cursor: pointer;
}
.slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
}
.switch input:checked + .slider { background: var(--olive); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.invoice-fields { margin-top: 12px; display: none; }
.invoice-fields.is-open { display: block; }

.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.seg-btn {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1.2px solid var(--border-soft);
  background: var(--cream);
  color: var(--ink-muted);
}
.seg-btn.is-active { background: var(--pink); border-color: var(--pink); color: #fff; }

.form-grid { display: flex; flex-direction: column; gap: 8px; }
.input-field {
  width: 100%;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1.2px solid var(--border-soft);
  background: #fff;
  font-size: 13px;
  outline: none;
}
.input-field:focus { border-color: var(--pink-deep); }

.delivery-box {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--olive-light);
  border: 1px solid var(--border-olive);
  font-size: 12.5px;
}
.delivery-box h4 { font-size: 13px; margin-bottom: 6px; color: var(--olive-deep); }
.delivery-box ul { padding-left: 16px; display: flex; flex-direction: column; gap: 3px; }

.payment-section { margin-top: 14px; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.pay-opt {
  padding: 11px;
  border-radius: 14px;
  border: 1.5px solid var(--border-soft);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pay-opt.is-active { background: var(--pink); border-color: var(--pink); color: #fff; }

.bank-transfer-box {
  display: none;
  background: #fff;
  border: 1px dashed var(--olive);
  border-radius: 14px;
  padding: 12px;
  font-size: 12.5px;
  margin-bottom: 12px;
}
.bank-transfer-box.is-open { display: block; }

/* =========================================================
   BLOG ("GÓC KIẾN THỨC") & ARTICLE DETAIL
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.blog-card {
  background: #fff;
  border: 1.3px solid var(--border-soft);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--pink);
}

.blog-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: #F7EEE8;
}

.blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-thumb {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 14px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.blog-card-excerpt {
  font-size: 12.6px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.blog-read-more {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pink-deep);
}

/* Article Detail Layout */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.28;
  margin: 10px 0 14px;
}

.article-body {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
}

.article-body p { margin-bottom: 14px; }
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 20px 0 10px;
  color: var(--ink);
}
.article-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 14px;
  border: 1px solid var(--border-olive);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.article-table th,
.article-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.article-table th {
  background: var(--olive-light);
  color: var(--olive-deep);
  font-weight: 700;
}

.article-tip-box {
  background: linear-gradient(135deg, rgba(253, 236, 240, 0.8), rgba(238, 241, 226, 0.75));
  border: 1.2px solid var(--pink);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13.5px;
  margin: 16px 0;
}

/* ---------- Option Switcher Pill (Compare Option 1 vs Option 2) ---------- */
.option-switcher {
  position: fixed;
  left: 14px;
  bottom: 78px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(74, 62, 59, 0.88);
  backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.option-switcher a {
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.option-switcher a.is-current {
  background: #FFF8F0;
  color: var(--ink);
}

@media (min-width: 960px) {
  .option-switcher { left: 22px; bottom: 26px; }
}

/* =========================================================
   FLOATING CONTACT & MOBILE BOTTOM NAV
   ========================================================= */
.floating-contact {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.float-pill {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s;
  text-decoration: none;
}

.float-pill:hover { transform: scale(1.08); }
.float-pill.call { background: linear-gradient(135deg, #AAB182, #7F8757); }
.float-pill.zalo { background: linear-gradient(135deg, #4CA1FF, #0068FF); }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 252, 248, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.2px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px 12px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  position: relative;
}

.nav-item.is-active { color: var(--pink-deep); }

.nav-item .nav-badge {
  position: absolute;
  top: -2px;
  right: 26%;
  min-width: 17px;
  height: 17px;
  border-radius: 99px;
  background: var(--pink-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   DRAWER, MODALS & TOAST
   ========================================================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(74, 62, 59, 0.35);
  backdrop-filter: blur(3px);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 285px;
  max-width: 82vw;
  background: linear-gradient(180deg, #FDECEF 0%, #FFF8F0 55%, #EFF2E4 100%);
  z-index: 65;
  padding: 20px 18px;
  transform: translateX(-105%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.12);
}
.drawer-panel.is-open { transform: translateX(0); }

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  margin-bottom: 4px;
}
.drawer-link:hover { background: rgba(255, 255, 255, 0.8); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(74, 62, 59, 0.45);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.is-open { display: flex; }

.modal-card {
  width: 100%;
  max-width: 400px;
  background: #FFFDF9;
  border: 1.5px solid var(--pink);
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(74, 62, 59, 0.25);
  animation: fadeScaleIn 0.28s ease;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 20px);
  background: rgba(74, 62, 59, 0.92);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   DESKTOP / PC RESPONSIVE BREAKPOINTS (>= 768px & >= 960px)
   ========================================================= */
@media (min-width: 600px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (min-width: 768px) {
  .app-main { padding: 94px 24px 80px; }
  .soft-box { padding: 24px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (min-width: 960px) {
  #btnOpenDrawer,
  #btnMobileCart,
  .bottom-nav {
    display: none !important;
  }

  .desktop-nav { display: flex; }
  .header-cart-pill { display: inline-flex; }
  .header-bar { padding: 14px 28px 11px; }
  .header-logo { height: 42px; }

  .app-main { padding: 102px 28px 64px; }
  .floating-contact { right: 24px; bottom: 28px; }
  .toast { bottom: 32px; }

  /* Home PC: 2-col Hero, 3-col Big Square Categories, 2-col Contact+Map */
  .hero-layout {
    grid-template-columns: 1.08fr 1fr;
    gap: 32px;
  }
  .hero-cta-group {
    display: flex;
    gap: 12px;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .home-contact-grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 28px;
  }
  .map-embed-card iframe { height: 220px; }

  /* Catalog PC: 3-col big square product grid */
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  /* Product Detail PC: 2-col split */
  .detail-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
  }
  .detail-preview { aspect-ratio: 1 / 1; }
  .detail-actions {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
  }

  /* Mockup Studio PC: 2-col split */
  .mockup-studio-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 24px;
  }
  .mockup-svg-box { max-width: 340px; height: 340px; }
  .swatch-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }

  /* Spiral Notebook Cart PC: 2-page open spread */
  .notebook-paper { padding: 32px 30px 28px 38px; }
  .notebook-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 30px;
  }
  .notebook-right-col {
    border-left: 1.5px dashed rgba(243, 164, 178, 0.45);
    padding-left: 26px;
  }
}
