/* CSS Design System - Baby Bounce Scandinavian Whimsical Editorial */

:root {
  /* Classy, Clean Scandinavian & Made for Kids Combined Palette */
  --primary: #2C2A27;           /* Deep Charcoal Warm Brown */
  --secondary: #FF6B35;         /* Pop Accent Orange */
  --accent: #FFB800;            /* Golden Yellow */
  --toy-red: #E81C23;           /* Made for Kids Red */
  --bg-cream: #FAF6F0;          /* Warm Cream Milk background */
  --bg-white: #FFFFFF;
  
  --text-dark: #2C2A27;
  --text-muted: #6B6760;
  --border-color: #2C2A27;

  /* Richer Saturated Pastel Toy Colors (Pixar / Toy Story vibe) */
  --card-peach: #FFCEBA;        /* Rich Warm Coral Peach */
  --card-sage: #BCE6D9;         /* Vibrant Sweet Mint Green */
  --card-yellow: #FFE38E;       /* Bright Honey Butter Yellow */
  --card-blue: #BCE2F5;         /* Beautiful Sky Blue */

  /* Typography */
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* 99SHOP Flat Editorial Borders & Shadows */
  --border-thick: 3px solid var(--border-color);
  --border-medium: 2px solid var(--border-color);
  --border-thin: 1.5px solid var(--border-color);
  
  --shadow-flat-sm: 3.5px 3.5px 0px var(--border-color);
  --shadow-flat-md: 6px 6px 0px var(--border-color);
  --shadow-flat-lg: 10px 10px 0px var(--border-color);
  --shadow-inner: inset 0 2px 6px rgba(44, 42, 39, 0.05);

  /* Curves */
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 40px;
  
  /* Cartoon/Springy Physics Bezier Curves */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy overshoot curve */
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Screen-Fitting Constrained Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100vh;
  overflow: hidden; /* Prevent default vertical scrolling */
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-cream);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
}

/* Canvas Sparkle overlay */
#magic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Custom Local Scrollbar for Scrollable sub-sections */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
  border-left: var(--border-thin);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Header (Fixed Top across ALL views & subpages) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background-color: var(--bg-cream);
  border-bottom: 2.5px solid #2C2A27;
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 99999;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Original Black & Orange Theme Logo (Larger Size) */
.logo-svg {
  width: 48px;
  height: 48px;
  transition: transform 0.3s var(--ease-spring);
}
.logo:hover .logo-svg {
  transform: scale(1.08) rotate(-4deg);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: #2C2A27;
  letter-spacing: -0.8px;
}

.logo-text span {
  color: #FF6B35;
}

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

/* Transparent Background with Black Border Buttons (Blending with Web Cream BG) */
.action-btn {
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-pill);
  background-color: transparent !important;
  border: 2.5px solid #2C2A27 !important;
  color: #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
  transition: all 0.25s var(--ease-spring) !important;
  position: relative;
  cursor: pointer;
}

.action-btn:hover,
.action-btn:active {
  transform: translate(-3px, -3px) scale(1.06);
  box-shadow: 4px 4px 0 #2C2A27;
}

/* Vivid Gradient Hover/Touch Bursts */
.action-btn.header-filter-btn {
  background-color: #FF6B35 !important;
  color: #FFF !important;
  border: 2.5px solid #2C2A27 !important;
  box-shadow: 3px 3px 0 #2C2A27;
  padding: 0 16px;
  height: 42px;
}
.action-btn.header-filter-btn:hover {
  background: linear-gradient(135deg, #FF6B35 0%, #E81C23 100%) !important;
  color: #FFF !important;
  box-shadow: 5px 5px 0 #2C2A27;
}

.action-btn.lang-switch-btn:hover {
  background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%) !important;
  border-color: #9C27B0 !important;
  color: #4A148C !important;
}

.action-btn.appointment-btn:hover {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%) !important;
  border-color: #FF9800 !important;
  color: #E65100 !important;
}

.action-btn.user-btn {
  width: auto;
  padding: 0 14px;
  gap: 6px;
}
.user-btn-name {
  font-size: 12px;
  font-weight: 800;
  color: inherit;
}
.action-btn.user-btn:hover {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%) !important;
  border-color: #4CAF50 !important;
  color: #1B5E20 !important;
}

.action-btn.search-btn:hover {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%) !important;
  border-color: #2196F3 !important;
  color: #0D47A1 !important;
}

.action-btn.wishlist-toggle-btn:hover {
  background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 100%) !important;
  border-color: #E91E63 !important;
  color: #880E4F !important;
}

.action-btn.cart-toggle-btn:hover {
  background: linear-gradient(135deg, #FFF0F0 0%, #FFCDD2 100%) !important;
  border-color: #F44336 !important;
  color: #B71C1C !important;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--secondary);
  color: var(--bg-white);
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-medium);
  box-shadow: 1px 1px 0px var(--border-color);
}

/* Pill Editorial Buttons (99SHOP Press effect with Cartoon Pop) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  border: var(--border-medium);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  letter-spacing: 0.5px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-orange {
  background-color: var(--secondary);
  color: var(--bg-white);
  box-shadow: var(--shadow-flat-sm);
}

.btn-orange:hover {
  transform: translate(-4px, -4px) rotate(2deg) scale(1.04);
  box-shadow: 7px 7px 0px var(--border-color);
}

.btn-orange:active {
  transform: translate(3px, 3px) scale(0.92);
  box-shadow: 0px 0px 0px var(--border-color);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-flat-sm);
}

.btn-secondary:hover {
  transform: translate(-4px, -4px) rotate(-2deg) scale(1.04);
  box-shadow: 7px 7px 0px var(--border-color);
  background-color: var(--bg-cream);
}

.btn-secondary:active {
  transform: translate(3px, 3px) scale(0.92);
  box-shadow: 0px 0px 0px var(--border-color);
}

/* Flying stars particles on cart add */
.flying-star {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  font-size: 28px;
  animation: flyToCart 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes flyToCart {
  0% { transform: translate(var(--start-x), var(--start-y)) scale(1) rotate(0deg); opacity: 1; }
  50% { transform: translate(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.4), calc(var(--start-y) + (var(--end-y) - var(--start-y)) * 0.4 - 120px)) scale(1.4) rotate(180deg); }
  100% { transform: translate(var(--end-x), var(--end-y)) scale(0.3) rotate(360deg); opacity: 0; }
}

/* ======================================================== */
/* View 1: Main Hub Page (Split Screen: Top Promo, Bottom Cards) */
/* ======================================================== */
.hub-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px); /* Fill height below header */
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

/* 1. Upper Half: Promo Banner Section with Full Cover Widescreen Background Video */
.promo-banner {
  height: 60%; /* Expanded to 60% to show more video height without cutting! */
  width: 100%;
  /* Removed border-bottom to let the cloud cap wave serve as the main border division! */
  border-bottom: none;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Full Cover Widescreen Background Video */
.promo-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Blur & Tint Overlay to make text extremely readable */
.promo-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 42, 39, 0.42); /* Soft charcoal sand wash */
  backdrop-filter: blur(1px); /* Lowered blur slightly to make video clip sharper */
  z-index: 2;
  pointer-events: none;
}

.promo-banner-container {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 20; /* Guaranteed to sit above all cloud dividers and background overlays */
}

@keyframes floatBoard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(0.4deg); }
}

.promo-content {
  position: relative;
  max-width: 580px;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-left: 28px;
}


.promo-logo-mark {
  margin-bottom: 12px;
  filter: drop-shadow(2px 4px 8px rgba(44, 42, 39, 0.2));
  display: block;
  width: fit-content;
}

.logo-svg-main {
  display: block;
  transition: transform 0.4s var(--ease-spring);
}

.promo-logo-mark:hover .logo-svg-main {
  transform: scale(1.12) rotate(8deg);
}

.promo-title {
  font-family: 'Fredoka', var(--font-heading);
  font-size: 92px; /* Giant, majestic brand title matching the reference image layout */
  font-weight: 700;
  color: #FAF6F0; /* Soft warm cream */
  line-height: 0.95;
  margin-bottom: 8px;
  letter-spacing: -2px;
  text-shadow: 2px 4px 12px rgba(44, 42, 39, 0.3); /* Soft organic drop shadow for contrast */
  transition: transform 0.35s var(--ease-spring);
  cursor: default;
}

.promo-title:hover {
  transform: scale(1.04) rotate(0.5deg);
}

.promo-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #FAF6F0;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 18px;
  text-shadow: 1px 2px 6px rgba(44, 42, 39, 0.25);
  opacity: 0.95;
}

.promo-desc {
  font-size: 14px;
  color: #E8EFEF; /* Soft contrast white-mint */
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 500px;
  text-shadow: 1px 2px 6px rgba(44, 42, 39, 0.35);
}


.btn-promo-cta {
  padding: 11px 26px;
  font-size: 14px;
  border-radius: var(--radius-pill);
}

.promo-sticker {
  position: absolute;
  top: -24px;
  right: -32px;
  background-color: var(--accent);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-medium);
  box-shadow: var(--shadow-flat-sm);
  transform: rotate(12deg);
  animation: bounceSlow 3s infinite ease-in-out;
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-6px) rotate(15deg); }
}

/* 2. Lower Half: Selection Columns (Shunk to 40% height to sit lower!) */

.hub-cards-wrapper {
  height: 40%;
  width: 100%;
  display: flex;
  gap: 20px; /* Cozy spacing gap between cards */
  padding: 36px 28px 24px; /* Padding below giant cloud divider */
  background-color: var(--bg-cream); /* Warm cream page background */
  flex-shrink: 0;
  position: relative;
  border-top: none;
}

/* Clean Scandinavian Puffy Cloud Vector Divider (Zero Lines, Zero Seams) */
.promo-cloud-divider-wrapper {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 5; /* Sits BEHIND text (z-index 20) so text is 100% visible and unblocked */
  pointer-events: none;
  overflow: visible;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.promo-cloud-svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border: none !important;
  outline: none !important;
}

.hub-card {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border: var(--border-medium); /* Clean dark outlines for flat style */
  border-radius: var(--radius-md); /* Curved corners */
  cursor: pointer;
  overflow: hidden; /* Clips background images scale transitions smoothly! */
  box-shadow: var(--shadow-flat-sm); /* Flat flat shadow */
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring), flex 0.4s var(--ease-spring), filter 0.4s ease;
  background-color: var(--bg-white);
}

/* Fun vertical-only cartoon bounce on click (doesn't distort width or cloud shape!) */
@keyframes verticalSquash {
  0% { transform: scaleY(1); }
  30% { transform: scaleY(0.92); }
  60% { transform: scaleY(1.04); }
  85% { transform: scaleY(0.98); }
  100% { transform: scaleY(1); }
}

.hub-card.squashed {
  animation: verticalSquash 0.5s var(--ease-spring);
  transform-origin: bottom center;
}

/* Gentler horizontal co-widening hover effect to prevent excessive stretching! */
.hub-cards-wrapper:hover .hub-card {
  flex: 0.88;
  filter: brightness(0.95) contrast(96%);
}

.hub-cards-wrapper .hub-card:hover {
  flex: 1.35;
  transform: translateY(-8px); /* Lifts up on hover */
  box-shadow: var(--shadow-flat-md); /* Enhances shadow on lift */
  filter: brightness(1.02) contrast(100%);
}

/* Override: When a subpage is active, force cards back to equal width (stay still!) */
.hub-cards-wrapper.subpage-active .hub-card {
  flex: 1 !important;
  transform: none !important;
  box-shadow: var(--shadow-flat-sm) !important;
  filter: none !important;
}

/* Pastel colors for column blocks */
.hub-card.c-peach { background-color: var(--card-peach); }
.hub-card.c-sage { background-color: var(--card-sage); }
.hub-card.c-yellow { background-color: var(--card-yellow); }
.hub-card.c-blue { background-color: var(--card-blue); }

/* Clipped Background Image Container */
.hub-card-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
}

/* Background Image filling the container completely */
.hub-card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.65s var(--ease-spring);
}

.hub-card:hover .hub-card-bg-img {
  transform: scale(1.08) rotate(1deg);
}

/* Translucent Color Tint Filter Overlay on the background image */
.hub-card-overlay-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.75;
  transition: opacity 0.4s ease;
}

.c-peach .hub-card-overlay-tint { background-color: var(--card-peach); mix-blend-mode: multiply; }
.c-sage .hub-card-overlay-tint { background-color: var(--card-sage); mix-blend-mode: multiply; }
.c-yellow .hub-card-overlay-tint { background-color: var(--card-yellow); mix-blend-mode: multiply; }
.c-blue .hub-card-overlay-tint { background-color: var(--card-blue); mix-blend-mode: multiply; }

.hub-card:hover .hub-card-overlay-tint {
  opacity: 0.45; /* Becomes clearer on hover */
}


/* Styled floating sticker containing titles */
.hub-card-content {
  position: relative;
  z-index: 3;
  color: var(--primary);
  background-color: var(--bg-white);
  border: var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 16px; /* Compact padding to fit smaller height */
  box-shadow: var(--shadow-flat-sm);
  width: 100%;
  margin-top: auto;
  pointer-events: none;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring);
}

.hub-card:hover .hub-card-content {
  transform: translateY(-4px);
  box-shadow: var(--shadow-flat-md);
}

.hub-card-tag {
  font-size: 9px;
  font-weight: 750;
  color: var(--secondary);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  display: block;
}

.hub-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.hub-card p {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Floating round stamp containing doodles */
.hub-card-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px; /* Reduced slightly to fit shorter card height */
  height: 44px;
  background-color: var(--bg-white);
  border: var(--border-medium);
  border-radius: 50%;
  box-shadow: var(--shadow-flat-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  transition: transform 0.4s var(--ease-spring);
}

.hub-card:hover .hub-card-icon {
  transform: scale(1.1) translateY(-3px);
}

/* Cartoon animations for the SVG doodles */
@keyframes bagSwing {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
.c-peach .hub-card-icon svg {
  animation: bagSwing 2.5s infinite ease-in-out;
  transform-origin: top center;
}

@keyframes paletteFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(10deg); }
}
.c-sage .hub-card-icon svg {
  animation: paletteFloat 3s infinite ease-in-out;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(5deg); }
}
.c-yellow .hub-card-icon svg {
  animation: starPulse 2.2s infinite ease-in-out;
}

@keyframes balloonFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}
.c-blue .hub-card-icon svg {
  animation: balloonFloat 3.5s infinite ease-in-out;
}

.card-star-deco {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--secondary);
  font-size: 20px;
  opacity: 0.5;
  z-index: 1;
  transition: transform 0.6s var(--ease-spring);
  pointer-events: none;
}

.hub-card:hover .card-star-deco {
  transform: rotate(180deg) scale(1.3);
  opacity: 1;
}

/* ======================================================== */
/* Sub-page Slide-out Overlay System (FULL SCREEN PAGES!) */
/* ======================================================== */
.sub-view-overlay {
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  height: calc(100vh - 68px);
  height: calc(100dvh - 68px);
  z-index: 9000;
  background-color: var(--bg-cream);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-spring), visibility 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.sub-view-overlay.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.sub-view-header {
  height: 80px;
  border-bottom: var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background-color: var(--bg-cream);
  flex-shrink: 0;
}

.back-home-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: var(--border-medium);
  background-color: var(--bg-white);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-flat-sm);
  transition: all 0.3s var(--ease-spring);
}

.back-home-btn:hover {
  background-color: var(--primary);
  color: var(--bg-cream);
  transform: translate(-3px, -3px) rotate(-2deg);
  box-shadow: var(--shadow-flat-md);
}

.back-home-btn:active {
  transform: translate(2px, 2px) scale(0.92);
  box-shadow: 0px 0px 0px;
}

.sub-view-close { display: none !important; }

.sub-view-close:hover {
  background-color: #FF4757;
  color: #FFF;
  transform: rotate(90deg) scale(1.1);
  box-shadow: var(--shadow-flat-md);
}

.sub-view-title-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.sub-view-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 40px 28px;
}

/* ======================================================== */
/* Sub-view Overrides & Sections Layout */
/* ======================================================== */

/* Shopping Overrides */
.divider-spiral-container {
  width: 100%;
  overflow: hidden;
  padding: 0 0 40px 0;
}

.divider-spiral {
  width: 100%;
  height: 30px;
  display: block;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  background-color: var(--bg-white);
  border: var(--border-medium);
  box-shadow: var(--shadow-flat-sm);
  transition: all 0.3s var(--ease-spring);
}

.tab-btn:hover, .tab-btn.active {
  background-color: var(--primary);
  color: var(--bg-cream);
  transform: translate(-3px, -3px) rotate(1deg);
  box-shadow: var(--shadow-flat-md);
}

.tab-btn.active {
  background-color: var(--secondary);
  border-color: var(--border-color);
  color: #FFF;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  padding-bottom: 40px;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-medium);
  box-shadow: var(--shadow-flat-md);
  transition: all 0.3s var(--ease-spring);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translate(-4px, -4px) rotate(1.5deg) scale(1.02);
  box-shadow: var(--shadow-flat-lg);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--toy-red);
  color: var(--bg-white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: var(--border-medium);
  box-shadow: 1.5px 1.5px 0 var(--border-color);
  z-index: 2;
}

.product-wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-flat-sm);
  transition: all 0.2s var(--ease-spring);
  z-index: 2;
}

.product-wishlist:hover {
  background-color: var(--secondary);
  color: #FFF;
  transform: scale(1.15) rotate(-10deg);
}

.product-img-container {
  height: 230px;
  overflow: hidden;
  background-color: #E2ECEC;
  position: relative;
  border-bottom: var(--border-medium);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.03);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.product-title:hover {
  color: var(--secondary);
}

.product-rating {
  font-size: 12px;
  margin-bottom: 16px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: var(--border-medium);
}

.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.add-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--primary);
  border: var(--border-medium);
  box-shadow: var(--shadow-flat-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-spring);
}

.add-cart-btn:hover {
  background-color: var(--secondary);
  color: #FFF;
  transform: scale(1.15) rotate(15deg);
}

.star {
  fill: #E5EBEB;
  width: 14px;
  height: 14px;
}

.star.active {
  fill: var(--accent);
}

/* Room Planner Sub-page Viewport (whimsical iPad station styling) */
.decorator-viewport {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 160px);
  padding: 0 28px;
}

.decorator-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 32px;
  background-color: var(--bg-cream); /* Warm cream backing */
  border-radius: var(--radius-lg);
  padding: 24px;
  border: var(--border-medium);
  box-shadow: var(--shadow-flat-md);
  width: 100%;
  height: 90%;
  max-height: 560px;
  overflow: hidden;
  color: var(--primary);
}

.decorator-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: var(--border-medium);
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-flat-sm);
  overflow-y: auto;
}

.decorator-controls::-webkit-scrollbar {
  width: 5px;
}
.decorator-controls::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.decorator-controls h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  border-bottom: var(--border-medium);
  padding-bottom: 8px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: var(--border-medium);
  box-shadow: 1.5px 1.5px 0 var(--primary);
  transition: all 0.2s var(--ease-spring);
}

.color-dot:hover, .color-dot.active {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 2.5px 2.5px 0 var(--primary);
}

.color-dot.active {
  border-color: var(--secondary);
}

.rug-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rug-option {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: var(--border-medium);
  background-color: var(--bg-cream);
  color: var(--primary);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-flat-sm);
  transition: all 0.2s var(--ease-spring);
}

.rug-option:hover, .rug-option.active {
  background-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--primary);
}

.rug-option.active {
  background-color: var(--accent);
}

.furniture-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.toggle-container input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: var(--border-medium);
  border-radius: 5px;
  background-color: var(--bg-cream);
  display: inline-block;
  position: relative;
  transition: all 0.2s var(--ease-spring);
}

.toggle-container input:checked ~ .checkmark {
  background-color: var(--secondary);
}

.checkmark::after {
  content: '';
  position: absolute;
  display: none;
  left: 4.5px;
  top: 1.5px;
  width: 3.5px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.toggle-container input:checked ~ .checkmark::after {
  display: block;
}

.decorator-summary {
  margin-top: auto;
  border-top: var(--border-medium);
  padding-top: 14px;
  flex-shrink: 0;
}

.summary-total {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.summary-total span {
  font-size: 18px;
  font-weight: 800;
  color: var(--secondary);
}

/* Room Preview Canvas (Cozy Scandinavian Nursery Look) */
.decorator-preview {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-medium);
  box-shadow: var(--shadow-flat-sm);
  height: 100%;
  background-color: #FAF6F0;
}

.room-wall {
  height: 62%;
  background-color: var(--bg-cream);
  transition: background-color 0.8s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
}

/* Clouds patterns on wall */
.room-wall-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.45);
  width: 70px;
  height: 24px;
  border-radius: 20px;
}
.room-wall-cloud::before, .room-wall-cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}
.room-wall-cloud::before { width: 34px; height: 34px; top: -16px; left: 8px; }
.room-wall-cloud::after { width: 24px; height: 24px; top: -12px; right: 8px; }
.cloud-a { top: 16px; left: 8%; }
.cloud-b { top: 32px; right: 12%; }

.room-window {
  position: absolute;
  top: 20px;
  left: 36px;
  width: 80px;
  height: 110px;
  background-color: #E2ECEC;
  border: 5px solid #FFF;
  border-radius: 40px 40px 0 0;
  box-shadow: var(--shadow-flat-sm);
  overflow: hidden;
}

.room-frames {
  position: absolute;
  top: 30px;
  right: 44px;
}

.art-frame {
  width: 60px;
  height: 60px;
  border: 4px solid #FFF;
  border-radius: 10px;
  box-shadow: var(--shadow-flat-sm);
}

/* Realistic Wood Parquet Parralel Planks floor */
.room-floor {
  height: 38%;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(44, 42, 39, 0.05) 48px, rgba(44, 42, 39, 0.05) 50px),
    linear-gradient(to bottom, #E8C5A0 0%, #CE9C68 100%);
  border-top: var(--border-medium);
  position: relative;
  box-shadow: inset 0 8px 12px rgba(44, 42, 39, 0.1);
  perspective: 400px;
}

.room-rug {
  position: absolute;
  width: 68%;
  height: 40px;
  bottom: 15%;
  left: 16%;
  border-radius: 50%;
  transition: all 0.5s ease;
  border: var(--border-medium);
}

.room-rug.rug-star {
  background-color: var(--card-yellow);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}
.room-rug.rug-wave {
  background-color: var(--card-blue);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}
.room-rug.rug-clean {
  background-color: var(--bg-cream);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.room-furniture-item {
  position: absolute;
  bottom: 22%;
  transform-origin: bottom center;
  filter: drop-shadow(0 6px 10px rgba(44, 42, 39, 0.12));
  transition: all 0.4s var(--ease-spring);
}

.room-furniture-item:hover {
  transform: translateY(-4px) scale(1.03);
}

.canvas-img {
  max-height: 120px;
}

.badge-price {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--bg-cream);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.room-furniture-item:hover .badge-price {
  opacity: 1;
}

/* Puff smoke animation for designer checks */
@keyframes puffOut {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.puff-effect {
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  border: 4px dashed rgba(255, 255, 255, 0.8);
  pointer-events: none;
  animation: puffOut 0.5s ease-out forwards;
  z-index: 10;
}

/* Testimonials Carousel Style */
.testimonials-slider-container {
  max-width: 860px;
  margin: 40px auto;
  position: relative;
  background-color: var(--bg-cream);
  border-radius: var(--radius-lg);
  border: var(--border-medium);
  padding: 56px;
  box-shadow: var(--shadow-flat-md);
  overflow: hidden;
}

.testimonial-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
}

.testimonial-img-wrapper {
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-medium);
  box-shadow: var(--shadow-flat-sm);
  background-color: #DDEEEF;
}

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

.testimonial-content {
  display: flex;
  flex-direction: column;
}

.review-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.reviewer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.reviewer-tag {
  font-size: 12px;
  color: var(--secondary);
  font-weight: 700;
}

.slider-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: var(--border-medium);
  box-shadow: var(--shadow-flat-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
}

.slider-ctrl:hover {
  background-color: var(--primary);
  color: var(--bg-cream);
}

/* About Story Style */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 20px 0;
}

.about-img {
  border-radius: var(--radius-lg);
  border: var(--border-medium);
  box-shadow: var(--shadow-flat-md);
}

.about-subtitle {
  font-size: 13px;
  font-weight: 850;
  color: var(--secondary);
  margin-bottom: 8px;
}

.about-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-badges {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.badge-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary);
}

.badge-txt {
  font-size: 13px;
  color: var(--text-muted);
}

/* Shopping Cart Drawer & Modals standard styles */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 150000; /* Highest z-index so cart and close button sit above header */
  visibility: hidden;
  transition: visibility 0.4s;
}

.cart-drawer.open {
  visibility: visible;
}

.cart-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 42, 39, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.cart-drawer.open .cart-drawer-overlay {
  opacity: 1;
}

.cart-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: var(--bg-white);
  border-left: var(--border-medium);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-bounce);
  z-index: 2;
}

.cart-drawer.open .cart-drawer-content {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 24px;
  border-bottom: var(--border-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-cream);
}

.cart-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-white);
  border: var(--border-medium);
  box-shadow: var(--shadow-flat-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  z-index: 10;
}

.cart-close-btn:hover {
  background-color: var(--secondary);
  color: #FFF;
  transform: scale(1.1) rotate(90deg);
}

.cart-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  background-color: var(--bg-cream);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80%;
  color: var(--text-muted);
  gap: 16px;
  text-align: center;
}

.cart-empty-icon {
  font-size: 48px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  border: var(--border-medium);
  box-shadow: var(--shadow-flat-sm);
  margin-bottom: 16px;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: var(--border-medium);
  background-color: var(--bg-cream);
}

.cart-item-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--secondary);
}

.cart-item-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  border: var(--border-medium);
  border-radius: 15px;
  padding: 2px 10px;
  width: fit-content;
  background-color: var(--bg-cream);
}

.qty-btn {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.qty-btn:hover {
  color: var(--secondary);
}

.qty-val {
  font-size: 13px;
  font-weight: 600;
}

.cart-item-remove {
  color: var(--toy-red);
  font-size: 14px;
}

.cart-footer {
  padding: 24px;
  border-top: var(--border-medium);
  background-color: var(--bg-white);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.cart-subtotal span:last-child {
  font-size: 22px;
  font-weight: 800;
  color: var(--secondary);
}

/* Modals - Clean Universal Flexbox Centering */
.modal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

.modal.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(30, 28, 25, 0.68) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 1 !important;
}

.modal-content {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: auto !important;
  transform: scale(0.95) !important;
  opacity: 0 !important;
  background: #FAF4EA !important; /* Warm Aged Kraft Paper */
  border: 2px solid #2C2A27 !important;
  border-radius: 20px !important;
  box-shadow: 6px 6px 0 #2C2A27 !important;
  padding: 24px 28px !important;
  max-width: 540px !important;
  width: 100% !important;
  max-height: 85vh !important;
  max-height: 85dvh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  z-index: 10 !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease !important;
}

.modal.open .modal-content {
  transform: scale(1) !important;
  opacity: 1 !important;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid #2C2A27;
  background: #FAF6F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #2C2A27;
  cursor: pointer;
  box-shadow: 2px 2px 0 #2C2A27;
  transition: all 0.2s ease;
  z-index: 50;
}
.modal-close:hover {
  background: #FF4757;
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 #2C2A27;
}



/* Responsive Grid Layout */
@media (max-width: 1024px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }
  .hub-container {
    height: auto;
    overflow-y: auto;
  }
  .promo-banner {
    height: auto;
    padding: 40px 0;
  }
  .promo-banner-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .hub-cards-wrapper {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .hub-card {
    height: 220px; /* Taller height on mobile to display cover image */
    border-right: none;
    border-bottom: var(--border-medium);
    padding: 24px;
    overflow: visible;
  }
  .card-cloud-cap {
    display: none; /* Hide cloud caps on mobile stack layout to keep it clean */
  }
  .hub-cards-wrapper:hover .hub-card {
    flex: 1;
    filter: none;
  }
  .hub-cards-wrapper .hub-card:hover {
    flex: 1;
    filter: none;
  }
  .sub-view-overlay {
    top: 0;
    height: 100vh;
    border-top: none;
  }
  .sub-view-header {
    height: 80px;
  }
  .sub-view-body {
    padding: 40px 28px;
  }
  .decorator-layout {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
  .decorator-controls {
    border-right: none;
    border-bottom: var(--border-medium);
    padding-right: 0;
    padding-bottom: 24px;
  }
  .about-container {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .promo-title {
    font-size: 26px;
  }
  .sub-view-title-tag {
    font-size: 16px;
  }
  .testimonials-slider-container {
    padding: 24px;
  }
  .testimonial-slide {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .testimonial-img-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }
}

/* Confetti Burst Star Particles (Pixar magic click effects) */
.burst-star {
  font-family: var(--font-heading);
  line-height: 1;
  user-select: none;
  animation: starBurstOut 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes starBurstOut {
  0% {
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    opacity: 1;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
  }
  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.4) rotate(360deg);
    opacity: 0;
  }
}

/* Custom Cursor Glowing Follower & Magic Stars trail styling */
#magic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
}

.custom-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.45) 0%, rgba(255, 107, 53, 0.15) 60%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ======================================================== */
/* 21. Header Extended Actions (Lang, Wishlist, Appointment) */
/* ======================================================== */
.lang-switch-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-code {
  color: #8C867D;
  cursor: pointer;
  transition: color 0.2s ease;
}
.lang-code.active, .lang-code:hover {
  color: var(--primary);
  font-weight: 800;
}
.lang-divider {
  color: #D6D0C5;
  font-size: 10px;
}

.appointment-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent);
  border-color: var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.appointment-btn:hover {
  background: var(--secondary);
  color: #FFF;
}

.wishlist-toggle-btn {
  position: relative;
}
.wishlist-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--secondary);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--primary);
}

/* ======================================================== */
/* 22. Online Store Toolbar & Filter Sidebar Layout */
/* ======================================================== */
.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 12px 18px;
  background: #FFF;
  border: var(--border-medium);
  border-radius: var(--radius-card);
  box-shadow: 4px 4px 0 var(--primary);
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

.main-category-tabs {
  margin: 0;
}

.sort-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.sort-select {
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: #FAF6F0;
  border: var(--border-medium);
  border-radius: var(--radius-pill);
  cursor: pointer;
  outline: none;
}

.store-layout-grid {
  display: block;
  width: 100%;
}

.store-filter-sidebar {
  position: fixed;
  top: 0;
  left: -340px;
  width: 320px;
  height: 100vh;
  background: #FFF;
  border-right: var(--border-medium);
  padding: 24px;
  box-shadow: 10px 0 30px rgba(44, 42, 39, 0.2);
  z-index: 96000;
  overflow-y: auto;
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.store-filter-sidebar.open {
  left: 0;
}

#filter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 42, 39, 0.5);
  backdrop-filter: blur(4px);
  z-index: 95500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#filter-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #E0DACF;
}
.sidebar-header h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin: 0;
}
.sidebar-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid #2C2A27;
  background: #FAF6F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #2C2A27;
  cursor: pointer;
  box-shadow: 2px 2px 0 #2C2A27;
  transition: all 0.2s ease;
}

.filter-group {
  margin-bottom: 20px;
}
.filter-group-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 10px;
}
.filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #4A4640;
  cursor: pointer;
  transition: color 0.15s ease;
}
.filter-checkbox-label:hover {
  color: var(--secondary);
}
.filter-checkbox-label input[type="radio"] {
  accent-color: var(--secondary);
  cursor: pointer;
}

.price-preset-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.price-btn {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  background: #FAF6F0;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.price-btn.active, .price-btn:hover {
  background: var(--accent);
  box-shadow: 2px 2px 0 var(--primary);
}

.reset-filters-btn {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
}

.active-filter-tags-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFEAD9;
  border: 1.5px solid var(--secondary);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.filter-pill .remove-pill {
  cursor: pointer;
  font-size: 12px;
  color: var(--secondary);
}

/* Product Card Wishlist Button Extension */
.wishlist-card-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: var(--border-thin);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s var(--ease-spring), background 0.2s ease;
}
.wishlist-card-btn:hover {
  transform: scale(1.15);
  background: #FFF;
}
.wishlist-card-btn.active svg {
  fill: #FF4757;
  stroke: #FF4757;
}

/* ======================================================== */
/* 23. Modals & Overlays (Search, Wishlist, Checkout, Appt)  */
/* ======================================================== */
.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 0;
  color: var(--primary);
}
.modal-subtitle {
  font-size: 11px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: 1.5px;
}

.search-modal-content {
  max-width: 720px;
  padding: 32px;
}
.search-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 16px;
}
.search-input-wrap {
  position: relative;
  margin-bottom: 14px;
}
.search-input-wrap input {
  width: 100%;
  padding: 14px 44px 14px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: var(--border-medium);
  border-radius: var(--radius-pill);
  outline: none;
  background: #FAF6F0;
}
.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: #8C867D;
  cursor: pointer;
}
.search-suggest-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  color: #6C665D;
}
.suggest-chip {
  background: #FAF6F0;
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.suggest-chip:hover {
  background: var(--accent);
  border-color: var(--primary);
}
.search-modal-body {
  max-height: 420px;
  overflow-y: auto;
  margin-top: 20px;
  padding-right: 6px;
}

.wishlist-modal-content {
  max-width: 680px;
  padding: 32px;
}
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.checkout-modal-content {
  max-width: 820px;
  padding: 32px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.checkout-section.full-width {
  grid-column: span 2;
}
.checkout-section h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--primary);
  border-bottom: 2px dashed #E5DFD5;
  padding-bottom: 6px;
}

.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--primary);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  border: var(--border-medium);
  border-radius: var(--radius-card);
  background: #FAF6F0;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--secondary);
  background: #FFF;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #FAF6F0;
  border: var(--border-medium);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: all 0.2s ease;
}
.payment-card.active, .payment-card:hover {
  background: #FFF;
  border-color: var(--secondary);
  box-shadow: 3px 3px 0 var(--primary);
}
.payment-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.payment-desc {
  display: block;
  font-size: 12px;
  color: #6C665D;
  margin-top: 2px;
}

.checkout-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: var(--border-medium);
}
.checkout-subtotal span {
  font-size: 13px;
  color: #6C665D;
  display: block;
}
.checkout-subtotal strong {
  font-size: 22px;
  color: var(--secondary);
  font-family: var(--font-heading);
}

.appointment-modal-content {
  max-width: 640px;
  padding: 36px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.form-grid .full-width {
  grid-column: span 2;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000000;
  pointer-events: none;
}
.toast-notice {
  background: var(--primary);
  color: #FFF;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.35s var(--ease-spring) forwards;
  pointer-events: auto;
}
@keyframes toastIn {
  0% { transform: translateY(20px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ======================================================== */
/* 24. Floating Contact Toolbar (Hotline, Zalo, Email, Appt) */
/* ======================================================== */
.floating-contact-toolbar {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99990;
}
.contact-fab {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: var(--border-medium);
  box-shadow: 4px 4px 0 var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}
.contact-fab:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 6px 6px 0 var(--primary);
}
.fab-phone {
  background: #FFD166;
}
.fab-zalo {
  background: #0068FF;
  color: #FFF;
}
.zalo-icon-text {
  font-weight: 900;
  font-size: 12px;
}
.fab-email {
  background: #06D6A0;
  color: #FFF;
}
.fab-appointment {
  background: #FF6B6B;
  color: #FFF;
}

.fab-tooltip {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #FFF;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.contact-fab:hover .fab-tooltip {
  opacity: 1;
}

/* Responsive adjustments for Store Grid & Mobile Sidebar */
@media (max-width: 992px) {
  .store-layout-grid {
    grid-template-columns: 1fr;
  }
  .store-filter-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    z-index: 99999;
    overflow-y: auto;
    transition: left 0.3s ease;
  }
  .store-filter-sidebar.open {
    left: 0;
  }
  .sidebar-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid #2C2A27;
  background: #FAF6F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #2C2A27;
  cursor: pointer;
  box-shadow: 2px 2px 0 #2C2A27;
  transition: all 0.2s ease;
}
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-section.full-width {
    grid-column: span 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full-width {
    grid-column: span 1;
  }
  .btn-text-desktop {
    display: none;
  }
}

/* ======================================================== */
/* 25. Member Auth, Profile, Voucher & VietQR Styles       */
/* ======================================================== */
.user-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent);
  border-color: var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-btn:hover {
  background: var(--secondary);
  color: #FFF;
}
.user-btn-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-modal-content {
  max-width: 480px;
  padding: 32px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
  background: #FAF6F0;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: var(--border-thin);
}
.auth-tab-btn {
  padding: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #6C665D;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab-btn.active {
  background: #FFF;
  color: var(--primary);
  box-shadow: 2px 2px 0 var(--primary);
  font-weight: 700;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 8px;
}
.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.forgot-pass-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.auth-divider {
  text-align: center;
  margin: 20px 0 14px;
  position: relative;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #E0DACF;
  z-index: 1;
}
.auth-divider span {
  position: relative;
  z-index: 2;
  background: #FFF;
  padding: 0 12px;
  font-size: 12px;
  color: #8C867D;
}

.social-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}

/* User Profile Modal */
.user-menu-content {
  max-width: 440px;
  padding: 32px;
}
.user-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px dashed #E0DACF;
}
.user-avatar {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border: var(--border-medium);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.user-profile-info h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0 0 2px;
}
.user-role-badge {
  display: inline-block;
  background: #FFEAD9;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.user-profile-info p {
  font-size: 12px;
  color: #6C665D;
  margin: 4px 0 0;
}

.user-vip-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.vip-stat-box {
  background: #FAF6F0;
  border: var(--border-thin);
  border-radius: var(--radius-card);
  padding: 12px;
  text-align: center;
}
.vip-stat-box span {
  font-size: 11px;
  color: #6C665D;
  display: block;
}
.vip-stat-box strong {
  font-size: 16px;
  font-family: var(--font-heading);
  color: var(--primary);
  margin-top: 4px;
  display: block;
}

/* Cart Voucher & Discounts */
.cart-voucher-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.cart-voucher-box input {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  border: var(--border-medium);
  border-radius: var(--radius-pill);
  outline: none;
  background: #FAF6F0;
}
.cart-discount-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

/* VietQR & Order Receipt Success Modal */
.order-success-content {
  max-width: 580px;
  padding: 36px;
}
.success-icon {
  font-size: 54px;
  margin-bottom: 8px;
}
.vietqr-container {
  margin: 20px 0;
  padding: 16px;
  background: #F4FBF7;
  border: 2px dashed #06D6A0;
  border-radius: var(--radius-card);
}
.vietqr-container h4 {
  font-size: 13px;
  font-weight: 800;
  color: #06D6A0;
  margin-bottom: 12px;
}
.vietqr-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border: var(--border-medium);
  border-radius: var(--radius-card);
  margin: 0 auto 10px;
  background: #FFF;
  padding: 8px;
}
.qr-bank-info {
  font-size: 13px;
  color: var(--primary);
  margin: 0;
  line-height: 1.5;
}
.receipt-details-box {
  background: #FAF6F0;
  border: var(--border-thin);
  border-radius: var(--radius-card);
  padding: 16px;
  text-align: left;
  font-size: 13px;
  margin-top: 16px;
}

/* ======================================================== */
/* 26. Large Shop Category Banners & Collapsible Search Bar */
/* ======================================================== */
.shop-category-banners-header {
  text-align: center !important;
  margin-bottom: 26px !important;
  padding: 18px 24px !important;
  background: #F7EFE4 !important; /* Signature Warm Aged Beige Kraft Paper */
  border: 2px dashed #2C2A27 !important;
  border-radius: 18px !important;
  box-shadow: 3px 3px 0 rgba(44, 42, 39, 0.08) !important;
  box-sizing: border-box !important;
}

.shop-banners-title {
  font-family: var(--font-heading) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: 0.5px !important;
}

.shop-banners-subtitle {
  font-size: 13px !important;
  color: #6C6458 !important;
  margin: 0 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.shop-category-grid,
.shop-subcategory-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  margin-bottom: 32px !important;
  box-sizing: border-box !important;
}

#shop-level1-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* ========================================================================= */
/* VINTAGE SCANDINAVIAN AGED-BEIGE KRAFT PAPER CATEGORY CARDS (SANG XỊN)      */
/* ========================================================================= */

.shop-cat-card,
.shop-subcat-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 275px !important;
  border-radius: 20px !important;
  border: 2px solid #2C2A27 !important;
  background: #FAF4EA !important; /* Warm Aged Beige Paper */
  box-shadow: 4px 4px 0 #2C2A27 !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: transform 0.35s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)), box-shadow 0.35s ease, border-color 0.35s ease !important;
  box-sizing: border-box !important;
  padding: 0 !important; /* Clean edge-to-edge newspaper photo structure */
}

/* Hover: Lifts up with warm golden oak ink shadow */
.shop-cat-card:hover,
.shop-subcat-card:hover {
  transform: translateY(-5px) scale(1.015) !important;
  box-shadow: 6px 6px 0 #C86A3D !important;
  border-color: #C86A3D !important;
}

/* Top Photo Box: Natural, Bright, Clear with Fine Bottom Inking */
.shop-cat-bg {
  position: relative !important;
  width: 100% !important;
  height: 175px !important;
  background: #EDE4D5 !important;
  border-bottom: 2px solid #2C2A27 !important;
  overflow: hidden !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.shop-cat-bg img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.5s var(--ease-spring) !important;
}

.shop-cat-card:hover .shop-cat-bg img,
.shop-subcat-card:hover .shop-cat-bg img {
  transform: scale(1.05) !important;
}

.shop-cat-overlay {
  display: none !important;
}

/* Vintage Wax Seal / Stamp Icon Badge */
.shop-cat-stamp {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: #FAF4EA !important;
  border: 1.5px solid #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  z-index: 5 !important;
  transition: transform 0.35s var(--ease-spring) !important;
}

.shop-cat-card:hover .shop-cat-stamp,
.shop-subcat-card:hover .shop-cat-stamp {
  transform: scale(1.18) rotate(10deg) !important;
}

/* Bottom Editorial Info Section: Fine Inked Typography on Warm Kraft Beige */
.shop-cat-content {
  position: relative !important;
  z-index: 2 !important;
  padding: 14px 18px 16px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  color: #2C2A27 !important;
  background: #FAF4EA !important;
  box-sizing: border-box !important;
  flex: 1 !important;
}

/* Elegant Kraft Tag Pill */
.shop-cat-tag {
  font-family: var(--font-heading) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  width: fit-content !important;
  margin-bottom: 2px !important;
  letter-spacing: 0.4px !important;
  background: #EDE2D0 !important;
  color: #4A4237 !important;
  border: 1.2px solid #2C2A27 !important;
  box-shadow: 1.5px 1.5px 0 #2C2A27 !important;
  text-transform: uppercase !important;
}

.shop-cat-content h4 {
  font-family: var(--font-heading) !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
  margin: 0 !important;
  text-shadow: none !important;
  line-height: 1.3 !important;
  letter-spacing: -0.2px !important;
}

.shop-cat-desc {
  font-size: 12px !important;
  color: #5C5549 !important;
  margin: 0 !important;
  line-height: 1.45 !important;
  text-shadow: none !important;
  font-weight: 500 !important;
}

/* Featured Hero Banner Card (Full Width Kraft Editorial on Desktop) */
.shop-cat-card.card-featured-hero {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  min-height: 145px !important;
  background: #FAF4EA !important;
}

.shop-cat-card.card-featured-hero .shop-cat-bg {
  flex: 0 0 240px !important;
  width: 240px !important;
  height: auto !important;
  border-bottom: none !important;
  border-right: 2px solid #2C2A27 !important;
}

.shop-cat-card.card-featured-hero .shop-cat-content {
  flex: 1 !important;
  padding: 16px 24px !important;
  justify-content: center !important;
  gap: 6px !important;
}

.shop-cat-card.card-featured-hero h4 {
  font-size: 20px !important;
}

@media (max-width: 992px) {
  .shop-category-grid,
  .shop-subcategory-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 768px) {
  .shop-category-grid,
  .shop-subcategory-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .shop-cat-card,
  .shop-subcat-card {
    min-height: auto !important;
    border-radius: 18px !important;
  }

  .shop-cat-card.card-featured-hero {
    flex-direction: column !important;
  }

  .shop-cat-card.card-featured-hero .shop-cat-bg {
    flex: none !important;
    width: 100% !important;
    height: 155px !important;
    border-right: none !important;
    border-bottom: 2px solid #2C2A27 !important;
  }

  .shop-cat-bg {
    height: 150px !important;
  }

  .shop-cat-content {
    padding: 12px 14px 14px 14px !important;
  }

  .shop-cat-content h4 {
    font-size: 15px !important;
  }
}


.product-view-mode-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #F7EFE4 !important; /* Signature Warm Aged Beige Kraft Paper */
  border: 2px solid #2C2A27 !important;
  border-radius: 18px !important;
  padding: 10px 18px !important;
  margin-bottom: 22px !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
  box-sizing: border-box !important;
}

.view-mode-title {
  font-family: var(--font-heading) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
}

.view-mode-buttons {
  display: flex !important;
  gap: 8px !important;
}

.view-mode-btn {
  padding: 6px 14px !important;
  font-size: 11.5px !important;
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  border: 2px solid #2C2A27 !important;
  border-radius: 20px !important;
  background: #EDE2D0 !important;
  color: #2C2A27 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
}

.view-mode-btn:hover,
.view-mode-btn.active {
  background: #FF6B35 !important;
  color: #FFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
}

/* ========================================================================= */
/* BASE PRODUCT CARD: WARM AGED BEIGE KRAFT PAPER (Ít màu trắng, sang xịn)   */
/* ========================================================================= */

.product-card {
  position: relative !important;
  background: #FAF4EA !important; /* Warm Aged Beige Paper */
  border: 2px solid #2C2A27 !important;
  border-radius: 20px !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.35s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)), box-shadow 0.35s ease, border-color 0.35s ease !important;
  box-sizing: border-box !important;
}

/* Playful Spring Tilt "Lúc Lắc" on Hover */
.product-card:hover {
  transform: translate(-4px, -4px) rotate(1.5deg) scale(1.025) !important;
  box-shadow: 8px 8px 0 #FF6B35 !important;
  border-color: #FF6B35 !important;
}
.product-card:nth-child(even):hover {
  transform: translate(-4px, -4px) rotate(-1.5deg) scale(1.025) !important;
}

/* Image Container Stage: Warm Beige Natural Frame with 0 Whitespace */
.product-img-container {
  position: relative !important;
  width: 100% !important;
  background: #EDE2D0 !important;
  border-bottom: 2px solid #2C2A27 !important;
  overflow: hidden !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.product-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.45s var(--ease-spring) !important;
}

.product-card:hover .product-img {
  transform: scale(1.06) !important;
}

/* Wishlist Button: Kraft Parchment Glassmorphism */
.wishlist-card-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: rgba(250, 244, 234, 0.95) !important;
  border: 1.5px solid #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 6 !important;
  color: #2C2A27 !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}
.wishlist-card-btn:hover {
  background: #FFEAD9 !important;
  transform: scale(1.12) !important;
}
.wishlist-card-btn.active {
  background: #FFE5E5 !important;
  border-color: #FF4757 !important;
  color: #FF4757 !important;
}

/* Card Content / Info Section on Aged Kraft Paper */
.product-info {
  padding: 14px 16px 16px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  background: #FAF4EA !important;
  box-sizing: border-box !important;
  flex: 1 !important;
}

.product-cat-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.product-cat {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #4A4237 !important;
  background: #EDE2D0 !important;
  border: 1.2px solid #2C2A27 !important;
  padding: 2.5px 8px !important;
  border-radius: 6px !important;
  display: inline-block !important;
  width: fit-content !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}


.product-age-tag {
  font-family: var(--font-heading) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #2D5A27 !important;
  background: #E8F5E9 !important;
  border: 1.2px solid #81C784 !important;
  padding: 2.5px 7px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
}

.product-promo-tag {
  font-family: var(--font-heading) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #C0392B !important;
  background: #FCE8E6 !important;
  border: 1.2px solid #E74C3C !important;
  padding: 2.5px 8px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
}

.product-title {
  font-family: var(--font-heading) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  cursor: pointer !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-title:hover {
  color: #FF6B35 !important;
}

.product-stars {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  font-size: 12px !important;
  color: #FFB800 !important;
  margin: 2px 0 !important;
}

.product-footer {
  margin-top: auto !important;
  padding-top: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.product-price {
  font-family: var(--font-heading) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #C86A3D !important;
  margin: 0 !important;
}

/* ========================================================================= */
/* VIBRANT ORANGE ADD TO CART BUTTON (MÀU CAM RỰC RỠ + XOAY XOAY BẬC THẦY)   */
/* ========================================================================= */

.add-cart-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  border: 2px solid #2C2A27 !important;
  background: #FF6B35 !important; /* Vibrant Orange! */
  color: #FFFFFF !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.4s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)), background 0.25s ease, box-shadow 0.25s ease !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}
.add-cart-btn svg {
  stroke: #FFFFFF !important;
  transition: transform 0.4s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)) !important;
}
.add-cart-btn:hover {
  background: #E85822 !important;
  transform: scale(1.18) rotate(90deg) !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
}
.add-cart-btn:hover svg {
  transform: rotate(90deg) !important;
}
.add-cart-btn:active {
  transform: scale(0.92) rotate(180deg) !important;
  box-shadow: 1px 1px 0 #2C2A27 !important;
}

/* ========================================================================= */
/* 4 AUTHORITATIVE VIEW MODES (MỌI THỨ TRONG BOX SẮP XẾP HÀI HÒA)            */
/* ========================================================================= */

/* 1. MODE 🖼️ ẢNH TO (.grid-feed): 1 THẺ TO ĐẸP DUY NHẤT */
#product-grid.grid-feed,
.product-grid.grid-feed {
  display: grid !important;
  grid-template-columns: 1fr !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  gap: 28px !important;
  width: 100% !important;
}

#product-grid.grid-feed .product-card,
.product-grid.grid-feed .product-card {
  border-radius: 24px !important;
  border: 2.5px solid #2C2A27 !important;
  box-shadow: 6px 6px 0 #2C2A27 !important;
  background: #FAF4EA !important;
}

#product-grid.grid-feed .product-img-container,
.product-grid.grid-feed .product-img-container {
  width: 100% !important;
  height: 420px !important;
  background: #EDE2D0 !important;
  border-bottom: 2.5px solid #2C2A27 !important;
}

#product-grid.grid-feed .product-info,
.product-grid.grid-feed .product-info {
  padding: 20px 24px 24px 24px !important;
  gap: 8px !important;
}

#product-grid.grid-feed .product-title,
.product-grid.grid-feed .product-title {
  font-size: 20px !important;
  height: auto !important;
  -webkit-line-clamp: 2 !important;
}

#product-grid.grid-feed .product-price,
.product-grid.grid-feed .product-price {
  font-size: 22px !important;
}

#product-grid.grid-feed .add-cart-btn,
.product-grid.grid-feed .add-cart-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
}

/* 2. MODE 1 CỘT (.grid-1col): DẸT ĐẸP NHIỀU HÀNG (SLIM HORIZONTAL STRIP) */
#product-grid.grid-1col,
.product-grid.grid-1col {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
}

#product-grid.grid-1col .product-card,
.product-grid.grid-1col .product-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 115px !important;
  height: auto !important;
  padding: 10px 18px 10px 12px !important;
  gap: 16px !important;
  border-radius: 18px !important;
  border: 2px solid #2C2A27 !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
  background: #FAF4EA !important;
}

#product-grid.grid-1col .product-img-container,
.product-grid.grid-1col .product-img-container {
  flex: 0 0 95px !important;
  width: 95px !important;
  height: 95px !important;
  border-radius: 12px !important;
  border: 1.5px solid #2C2A27 !important;
  border-bottom: 1.5px solid #2C2A27 !important;
  background: #EDE2D0 !important;
}

#product-grid.grid-1col .product-info,
.product-grid.grid-1col .product-info {
  flex: 1 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 0 !important;
  background: transparent !important;
  min-width: 0 !important;
}

#product-grid.grid-1col .product-info-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

#product-grid.grid-1col .product-title,
.product-grid.grid-1col .product-title {
  font-size: 14.5px !important;
  height: auto !important;
  -webkit-line-clamp: 1 !important;
}

#product-grid.grid-1col .product-footer,
.product-grid.grid-1col .product-footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

#product-grid.grid-1col .product-price,
.product-grid.grid-1col .product-price {
  font-size: 16px !important;
}

/* 3. MODE 2 CỘT (.grid-2col): XINH XẮN, TIÊU CHUẨN TAOBAO BẮC ÂU */
#product-grid.grid-2col,
.product-grid.grid-2col,
#product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

#product-grid.grid-2col .product-img-container,
.product-grid.grid-2col .product-img-container,
#product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .product-img-container {
  height: 240px !important;
}

/* 4. MODE 4 CỘT (.grid-4col): NHIỀU Ô NHỎ XINH TRÊN MÀN HÌNH RỘNG */
#product-grid.grid-4col,
.product-grid.grid-4col {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
}

#product-grid.grid-4col .product-img-container,
.product-grid.grid-4col .product-img-container {
  height: 185px !important;
}

#product-grid.grid-4col .product-info,
.product-grid.grid-4col .product-info {
  padding: 12px 14px 14px 14px !important;
  gap: 4px !important;
}

#product-grid.grid-4col .product-title,
.product-grid.grid-4col .product-title {
  font-size: 13.5px !important;
  height: 36px !important;
}

#product-grid.grid-4col .product-price,
.product-grid.grid-4col .product-price {
  font-size: 15px !important;
}

#product-grid.grid-4col .add-cart-btn,
.product-grid.grid-4col .add-cart-btn {
  width: 34px !important;
  height: 34px !important;
}

/* Hide back-home-btn across all layers */
.back-home-btn {
  display: none !important;
}

@media (max-width: 768px) {
  #product-grid.grid-4col,
  .product-grid.grid-4col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  #product-grid.grid-feed .product-img-container,
  .product-grid.grid-feed .product-img-container {
    height: 260px !important;
  }

  #product-grid.grid-2col .product-img-container,
  .product-grid.grid-2col .product-img-container {
    height: 180px !important;
  }
}


.store-toolbar-compact {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.store-tools-toggle-btn {
  background: var(--accent);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.store-tools-expandable {
  background: #FAF6F0;
  border: var(--border-medium);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  animation: fadeInDown 0.3s ease forwards;
}
.store-search-box {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 260px;
}
.store-search-box input {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
  border: var(--border-medium);
  border-radius: var(--radius-pill);
  outline: none;
  background: #FFF;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Quick Cart FAB & Drawer Tab Switcher */
.fab-cart-quick {
  background: var(--primary) !important;
  color: #FAF6F0 !important;
  border-color: #FAF6F0 !important;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4) !important;
  position: relative;
}
.fab-cart-quick:hover {
  background: #E85A24 !important;
  transform: scale(1.12) rotate(-6deg) !important;
}

.fab-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #E81C23;
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FAF6F0;
}

.cart-tab-switcher {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: #F5EFE6;
  border-bottom: var(--border-medium);
}

.cart-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #6C665D;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-tab-btn.active {
  background: #FAF6F0;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 2px 2px 0 var(--primary);
}

/* ======================================================== */
/* 27. MOBILE RESPONSIVE OPTIMIZATIONS (HEADER & CART FIX)  */
/* ======================================================== */
@media (max-width: 768px) {
  /* 1. Header Layout on Mobile */
  .header {
    height: 52px;
  }

  body {
    padding-top: 52px;
  }

  .sub-view-overlay {
    top: 52px;
    height: calc(100vh - 52px);
    height: calc(100dvh - 52px);
  }

  .header-container {
    padding: 0 6px;
    height: 52px;
  }

  .logo {
    gap: 4px;
  }

  .logo-svg {
    width: 28px;
    height: 28px;
  }

  .logo-text {
    font-size: 15px;
  }

  .header-actions {
    gap: 4px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
  }

  .action-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    font-size: 10px !important;
    justify-content: center !important;
    border-width: 2px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    box-shadow: 1.5px 1.5px 0 #2C2A27 !important;
  }

  .action-btn.header-filter-btn,
  .action-btn.user-btn,
  .action-btn.appointment-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    color: #2C2A27 !important;
  }

  .action-btn.header-filter-btn:hover,
  .action-btn.header-filter-btn:active {
    background: linear-gradient(135deg, #FF6B35 0%, #E81C23 100%) !important;
    color: #FFF !important;
  }

  .action-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  /* Hide desktop text in appointment, filter, and user login buttons on mobile */
  .btn-text-desktop,
  .user-btn-name {
    display: none !important;
  }

  .lang-switch-btn {
    width: auto !important;
    padding: 2px 6px !important;
    font-size: 9px !important;
    height: 32px !important;
    border-radius: var(--radius-pill) !important;
  }

  .cart-count, .wishlist-count {
    top: -5px;
    right: -5px;
    font-size: 9px;
    min-width: 16px;
    height: 16px;
    padding: 0 2px;
  }

  /* 2. Cart Drawer on Mobile */
  .cart-drawer-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh;
    height: 100dvh;
    border-radius: 0 !important;
  }

  .cart-header {
    padding: 12px 14px;
  }

  .cart-header h3 {
    font-size: 14px;
  }

  .cart-tab-switcher {
    padding: 8px 10px;
    gap: 6px;
  }

  .cart-tab-btn {
    padding: 7px 6px;
    font-size: 11px;
  }

  .cart-body,
  .cart-purchased-body {
    padding: 12px !important;
  }

  .cart-footer {
    padding: 12px 14px 20px;
    position: sticky;
    bottom: 0;
    background: #FAF6F0;
    border-top: var(--border-medium);
    box-shadow: 0 -4px 12px rgba(44, 42, 39, 0.1);
  }

  .cart-voucher-box input {
    font-size: 11px;
    padding: 8px 10px;
  }

  .cart-voucher-box button {
    padding: 8px 10px;
    font-size: 11px;
  }

  #checkout-btn {
    font-size: 14px;
    padding: 12px;
  }

  /* 3. Floating Contact Toolbar & FAB on Mobile */
  .floating-contact-toolbar {
    right: 10px;
    bottom: 14px;
    gap: 8px;
  }

  .contact-fab {
    width: 42px;
    height: 42px;
  }

  .contact-fab svg {
    width: 19px;
    height: 19px;
  }

  /* 4. Subpage Header & Back Buttons on Mobile */
  .sub-view-header {
    padding: 8px 10px;
    height: 44px;
  }

  .back-home-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .subpage-container {
    padding: 12px 8px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 14px;
  }

  .logo-text span {
    display: inline;
  }
  
  .header-actions {
    gap: 2px;
  }

  .action-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 0;
  }

  .action-btn svg {
    width: 15px;
    height: 15px;
  }

  .cart-header h3 {
    font-size: 13px;
  }
}

/* ======================================================== */
/* 28. STORE MULTI-LEVEL CATEGORY NAVIGATION (BREADCRUMB)  */
/* ======================================================== */
.shop-breadcrumb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAF6F0;
  border: var(--border-medium);
  border-radius: var(--radius-card);
  padding: 12px 18px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-flat-sm);
}

.breadcrumb-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-item.clickable {
  cursor: pointer;
  color: var(--primary);
  transition: color 0.2s ease;
}
.breadcrumb-item.clickable:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--secondary);
}

.breadcrumb-sep {
  color: #A0988C;
}

.shop-back-level-btn {
  font-size: 12px;
  padding: 6px 14px;
}

/* ======================================================== */
/* 29. SCANDINAVIAN FILTER DRAWER & CHECKOUT MODAL FIX       */
/* ======================================================== */
/* Fix Desktop Product Area Full Width (Remove 280px Empty Left Sidebar Column) */
.store-layout-grid {
  display: block !important;
  width: 100% !important;
}

.store-catalog-main {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.store-filter-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: -380px !important;
  width: 340px !important;
  max-width: 90vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-color: #FAF6F0 !important;
  border-right: 3.5px solid #2C2A27 !important;
  box-shadow: 10px 0 30px rgba(44, 42, 39, 0.3) !important;
  z-index: 250000 !important;
  overflow-y: auto !important;
  padding: 24px 20px !important;
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.store-filter-sidebar.open {
  left: 0 !important;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2.5px solid #2C2A27;
}

.sidebar-header h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.sidebar-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid #2C2A27;
  background: #FAF6F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #2C2A27;
  cursor: pointer;
  box-shadow: 2px 2px 0 #2C2A27;
  transition: all 0.2s ease;
}
.sidebar-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
  background: #FF6B6B;
  color: #FFF;
}

/* Beautiful Filter Group Cards with Handcrafted Borders */
.filter-group {
  background: #FFF !important;
  border: 2.5px solid #2C2A27 !important;
  border-radius: 20px !important;
  padding: 16px !important;
  margin-bottom: 18px !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
}

.filter-group-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: #4A463D;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-checkbox-label:hover {
  background: #FAF6F0;
  color: var(--secondary);
}

.filter-checkbox-label input[type="radio"]:checked + span {
  font-weight: 800;
  color: var(--secondary);
}

/* Masterpiece Clean & Responsive Checkout Modal (.checkout-modal) */
.checkout-modal .modal-content {
  width: 92vw !important;
  max-width: 780px !important;
  max-height: 90vh !important;
  max-height: 90dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 3.5px solid #2C2A27 !important;
  box-shadow: 12px 12px 0 #2C2A27 !important;
  border-radius: 28px !important;
  background: #FFF !important;
  padding: 0 !important;
}

.checkout-modal .modal-header {
  flex-shrink: 0 !important;
  padding: 18px 24px !important;
  border-bottom: 2.5px solid #2C2A27 !important;
  background: #FAF6F0 !important;
}

.checkout-modal .modal-header h3 {
  font-family: var(--font-heading) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  margin: 0 !important;
}

.checkout-modal .modal-body {
  overflow-y: auto !important;
  max-height: calc(90vh - 150px) !important;
  max-height: calc(90dvh - 150px) !important;
  padding: 24px !important;
  background: #FFF !important;
}

.checkout-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  margin-bottom: 10px !important;
}

.checkout-section h4 {
  font-family: var(--font-heading) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  margin-bottom: 12px !important;
  border-bottom: 2px dashed #E0DACF !important;
  padding-bottom: 6px !important;
}

.checkout-section .form-group {
  margin-bottom: 12px !important;
}

.checkout-section label {
  font-family: var(--font-heading) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-bottom: 4px !important;
  display: block !important;
}

.checkout-section input,
.checkout-section select,
.checkout-section textarea {
  width: 100% !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  border: 2px solid #2C2A27 !important;
  border-radius: 14px !important;
  background: #FAF6F0 !important;
  color: var(--primary) !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.checkout-section input:focus,
.checkout-section select:focus,
.checkout-section textarea:focus {
  background: #FFF !important;
  border-color: #FF6B35 !important;
  box-shadow: 2.5px 2.5px 0 #2C2A27 !important;
}

.payment-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.payment-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  background: #FAF6F0 !important;
  border: 2.5px solid #2C2A27 !important;
  border-radius: 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 2.5px 2.5px 0 #2C2A27 !important;
}

.payment-card.active,
.payment-card:hover {
  background: #FFF !important;
  border-color: #FF6B35 !important;
  transform: translateY(-2px) !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
}

.payment-title {
  font-family: var(--font-heading) !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
}

.payment-desc {
  font-size: 12px !important;
  color: #6C665D !important;
  margin-top: 2px !important;
  line-height: 1.4 !important;
}

.checkout-summary-bar {
  position: sticky !important;
  bottom: 0 !important;
  background: #FAF6F0 !important;
  border-top: 2.5px solid #2C2A27 !important;
  padding: 14px 24px !important;
  margin-top: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 20 !important;
  border-radius: 0 0 24px 24px !important;
}

.checkout-subtotal span {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #6C665D !important;
  display: block !important;
}

.checkout-subtotal strong {
  font-family: var(--font-heading) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #FF6B35 !important;
}

@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .checkout-summary-bar {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
    padding: 12px 16px !important;
  }
  .checkout-subtotal {
    text-align: center !important;
  }
}

/* Quickview Product Detail Modal Carousel & Full Information Display */
/* Cute Scandinavian Zoom Slider Track Widget (Thanh ray trượt zoom xinh xắn ngay trên viền ảnh) */
.zoom-slider-widget {
  position: absolute !important;
  bottom: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(8px) !important;
  border: 2.5px solid #2C2A27 !important;
  border-radius: var(--radius-pill) !important;
  padding: 5px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 3.5px 3.5px 0 #2C2A27 !important;
  z-index: 25 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.zoom-slider-widget:hover {
  transform: translateX(-50%) scale(1.04) !important;
  box-shadow: 5px 5px 0 #2C2A27 !important;
}

.zoom-btn {
  background: #FFF !important;
  border: 2px solid #2C2A27 !important;
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  cursor: pointer !important;
  box-shadow: 1.5px 1.5px 0 #2C2A27 !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.zoom-btn:hover {
  background: #FF6B35 !important;
  color: #FFF !important;
  transform: scale(1.15) !important;
}

.zoom-slider-range {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100px !important;
  height: 7px !important;
  background: #E0DACF !important;
  border-radius: 6px !important;
  outline: none !important;
  border: 1.5px solid #2C2A27 !important;
  cursor: pointer !important;
}

.zoom-slider-range::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #FF6B35 !important;
  border: 2px solid #2C2A27 !important;
  cursor: pointer !important;
  box-shadow: 1.5px 1.5px 0 #2C2A27 !important;
  transition: transform 0.15s ease !important;
}

.zoom-slider-range::-webkit-slider-thumb:hover {
  transform: scale(1.25) !important;
  background: #FF8A5B !important;
}

.zoom-level-badge {
  font-family: var(--font-heading) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  min-width: 38px !important;
  text-align: center !important;
}

/* Cart Quick Support Bar (Hàng ngang Zalo, Hotline, Hộp Thư ngay trên khung áp dụng mã) */
.cart-quick-support-bar {
  background: #FFF !important;
  border: 2.5px solid #2C2A27 !important;
  border-radius: 20px !important;
  padding: 10px 14px !important;
  margin-bottom: 14px !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
}

.cart-support-title {
  font-family: var(--font-heading) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  display: block !important;
  margin-bottom: 8px !important;
  letter-spacing: 0.5px !important;
}

.cart-support-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.cart-support-chip {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 8px 6px !important;
  border-radius: var(--radius-pill) !important;
  border: 2px solid #2C2A27 !important;
  font-family: var(--font-heading) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 2.5px 2.5px 0 #2C2A27 !important;
}

.chip-zalo {
  background: #0068FF !important;
  color: #FFF !important;
}
.chip-phone {
  background: #2ED573 !important;
  color: #FFF !important;
}
.chip-inbox {
  background: #FF6B35 !important;
  color: #FFF !important;
}

.cart-support-chip:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 3.5px 3.5px 0 #2C2A27 !important;
}



/* Fullscreen Single Image Lightbox (Mở ảnh to full khi double-click) */
.lightbox-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease !important;
}

.lightbox-modal.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.lightbox-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(14, 12, 10, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  cursor: zoom-out !important;
}

.lightbox-content {
  position: relative !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 95vw !important;
  max-height: 94vh !important;
  max-height: 94dvh !important;
}

.lightbox-img {
  max-width: 92vw !important;
  max-height: 88vh !important;
  max-height: 88dvh !important;
  object-fit: contain !important;
  border-radius: 20px !important;
  border: 3px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85) !important;
  transition: opacity 0.15s ease !important;
}

.lightbox-close-btn {
  position: fixed !important;
  top: 24px !important;
  right: 28px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px) !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  color: #FFF !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  z-index: 20 !important;
}

.lightbox-close-btn:hover {
  background: #FF6B35 !important;
  border-color: #FF6B35 !important;
  transform: scale(1.1) rotate(90deg) !important;
}

.lightbox-nav-btn {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  color: #FFF !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  z-index: 20 !important;
}

.lightbox-nav-btn.prev-btn {
  left: 24px !important;
}

.lightbox-nav-btn.next-btn {
  right: 24px !important;
}

.lightbox-nav-btn:hover {
  background: #FF6B35 !important;
  border-color: #FF6B35 !important;
  transform: translateY(-50%) scale(1.12) !important;
}

.lightbox-caption {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  color: #FFF !important;
  font-family: var(--font-heading) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  z-index: 20 !important;
}

.quickview-info-scrollable {
  border: 2px dashed #E0DACF !important;
  border-radius: 20px !important;
  padding: 16px !important;
  background: #FAF6F0 !important;
  margin: 14px 0 !important;
}

/* In-Place Image Zoom Cursor & Smooth Transition */
.product-img-container img {
  cursor: pointer;
  will-change: transform;
}

@media (max-width: 768px) {
  .quickview-modal .modal-content {
    width: 96vw !important;
    max-height: 94vh !important;
    max-height: 94dvh !important;
    padding: 18px 14px !important;
    border-radius: 26px !important;
  }
  .quickview-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .quickview-main-img-wrap {
    width: 100% !important;
    height: 380px !important;
    min-height: 340px !important;
    max-height: 52vh !important;
    background: #FAF6F0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 24px !important;
    border: 3px solid #2C2A27 !important;
    box-shadow: 5px 5px 0 #2C2A27 !important;
    overflow: hidden !important;
    touch-action: none !important;
  }
  .quickview-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    touch-action: none !important;
  }
  .quickview-thumbs-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 10px !important;
    padding: 6px 4px 10px !important;
    margin-top: 12px !important;
  }
  .quickview-thumb-btn {
    width: 68px !important;
    height: 68px !important;
    border-radius: 16px !important;
    border: 2.5px solid #2C2A27 !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    box-shadow: 3px 3px 0 #2C2A27 !important;
  }
  .quickview-thumb-btn img {
    border-radius: 12px !important;
  }
}

/* Compact, Neat & Space-Efficient Product Card View Modes (Gọn gàng xinh xinh) */

/* 4 CỘT (Compact 4-Column Grid) */


/* CONSOLIDATED MASTERPIECE QUICKVIEW MODAL CSS (WARM BEIGE THEME & DEAD-CENTERED STUDIO) */
/* ============================================================================================== */
.quickview-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 120000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.quickview-modal.open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.quickview-modal .modal-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(35, 33, 30, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  cursor: pointer !important;
  z-index: 1 !important;
  pointer-events: auto !important;
}

/* Master Desktop Studio Modal Box (100% Dead-Centered, Warm Beige Theme) */
.quickview-modal .modal-content,
.quickview-modal.open .modal-content {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important; /* CRITICAL: OVERRIDE BASE MODAL TRANSFORM TO PREVENT SHIFTING RIGHT */
  width: 90vw !important;
  max-width: 1040px !important;
  height: auto !important;
  max-height: 85vh !important;
  max-height: 85dvh !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 28px !important;
  border: 3.5px solid #2C2A27 !important;
  box-shadow: 14px 14px 0 #2C2A27 !important;
  background-color: var(--bg-cream, #FAF6F0) !important; /* SIGNATURE WARM BEIGE/CREAM */
  padding: 0 !important;
  z-index: 10 !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  margin: auto !important;
  opacity: 1 !important;
}

.quickview-modal .modal-body {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  padding: 0 !important;
  background-color: var(--bg-cream, #FAF6F0) !important;
  box-sizing: border-box !important;
}

/* 1. TIER 1: RIGID TOP HEADER (Warm Beige Tone) */
.quickview-modal-header {
  flex: 0 0 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  background: #F3ECE2 !important; /* Soft warm beige-gold tint */
  border-bottom: 2.5px solid #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 20px !important;
  z-index: 15 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.quickview-modal-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.quickview-sku-badge {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  background: #FFF !important;
  border: 1.5px solid #2C2A27 !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
  color: #2C2A27 !important;
  white-space: nowrap !important;
}

.quickview-modal-close-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: 2px solid #2C2A27 !important;
  background: #FFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
  cursor: pointer !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}
.quickview-modal-close-btn:hover {
  background: #FF4757 !important;
  color: #FFF !important;
  transform: translateY(-2px) !important;
}

/* 2. TIER 2: SCROLLABLE MAIN BODY (Snug Padding, Zero Waste Whitespace) */
.quickview-modal-scroll-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 18px 22px !important;
  background-color: var(--bg-cream, #FAF6F0) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.quickview-grid {
  display: grid !important;
  grid-template-columns: 440px 1fr !important;
  gap: 22px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.quickview-img-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Crisp White Studio Stage inside Beige Modal */
.quickview-main-img-wrap {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 330px !important;
  background: #FFFFFF !important;
  border-radius: 20px !important;
  border: 2.5px solid #2C2A27 !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}

.quickview-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 12px !important;
  display: block !important;
  margin: auto !important;
  transition: opacity 0.15s ease !important;
}

.quickview-img-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  background: #FF6B35 !important;
  color: #FFF !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  border: 1.5px solid #2C2A27 !important;
  z-index: 5 !important;
}

.quickview-photo-counter-badge {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: rgba(44, 42, 39, 0.88) !important;
  backdrop-filter: blur(4px) !important;
  color: #FFF !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  border: 1.5px solid #2C2A27 !important;
  z-index: 5 !important;
}

/* Zoom Slider Widget */
.zoom-slider-widget {
  position: absolute !important;
  bottom: 8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(8px) !important;
  border: 2px solid #2C2A27 !important;
  border-radius: 18px !important;
  padding: 3px 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  z-index: 25 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
}

.zoom-btn {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  border: 1.5px solid #2C2A27 !important;
  background: #FAF6F0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  padding: 0 !important;
}

.zoom-slider-range {
  width: 70px !important;
  accent-color: #FF6B35 !important;
  cursor: pointer !important;
  height: 4px !important;
}

.zoom-level-badge {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
  min-width: 32px !important;
  text-align: center !important;
}

.main-img-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(4px) !important;
  border: 2px solid #2C2A27 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  z-index: 20 !important;
  transition: all 0.2s ease !important;
}
.main-img-nav-btn.prev-nav { left: 8px !important; }
.main-img-nav-btn.next-nav { right: 8px !important; }
.main-img-nav-btn:hover {
  background: #FF6B35 !important;
  color: #FFF !important;
}

/* Thumbnail Carousel Container with Navigation Arrows */
.quickview-carousel-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.quickview-carousel-container .carousel-arrow-btn {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  border: 2px solid #2C2A27 !important;
  background: #FFF !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}
.quickview-carousel-container .carousel-arrow-btn:hover {
  background: #FF6B35 !important;
  color: #FFF !important;
}

/* 4-5 Visible Thumbnails on Desktop */
.quickview-thumbs-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  flex: 1 !important;
  max-width: calc(5 * 54px + 4 * 8px) !important;
  padding: 3px 2px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  scroll-snap-type: x mandatory !important;
}
.quickview-thumbs-bar::-webkit-scrollbar {
  display: none !important;
}

.quickview-thumb-btn {
  flex: 0 0 50px !important;
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  height: 50px !important;
  border-radius: 12px !important;
  border: 2px solid #2C2A27 !important;
  background: #FFF !important;
  padding: 2px !important;
  cursor: pointer !important;
  overflow: hidden !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  scroll-snap-align: center !important;
}
.quickview-thumb-btn img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
}
.quickview-thumb-btn.active,
.quickview-thumb-btn:hover {
  border-color: #FF6B35 !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 3px 3px 0 #FF6B35 !important;
}

/* Right Column (Warm Beige Aesthetic) */
.quickview-info-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.quickview-title {
  font-family: var(--font-heading) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  margin: 0 0 2px 0 !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}

.quickview-price-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 2px !important;
}

.quickview-price {
  font-size: 23px !important;
  font-weight: 800 !important;
  color: #FF6B35 !important;
}

.quickview-stock-tag {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #B48800 !important;
  background: #FFF9E6 !important;
  padding: 3px 10px !important;
  border-radius: 8px !important;
  border: 1.5px solid #FFB800 !important;
}

.quickview-info-scrollable {
  background: #FFF !important; /* Clean contrast white card on beige modal */
  border: 2px dashed #2C2A27 !important;
  border-radius: 16px !important;
  padding: 12px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

.quickview-spec-box .spec-heading {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  margin: 0 0 3px 0 !important;
}

.quickview-desc {
  font-size: 11.5px !important;
  line-height: 1.5 !important;
  color: #4A463D !important;
  margin: 0 !important;
}

.quickview-specs-list {
  font-size: 11px !important;
  color: #4A463D !important;
  padding-left: 16px !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

.quickview-warranty {
  font-size: 11px !important;
  color: #4A463D !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}

/* 3. TIER 3: RIGID FIXED BOTTOM ACTION BAR (Warm Tone & Snug Layout) */
.quickview-modal-bottom-bar {
  flex: 0 0 62px !important;
  height: 62px !important;
  min-height: 62px !important;
  background: #F3ECE2 !important; /* Matching header warm beige */
  border-top: 2.5px solid #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 22px !important;
  z-index: 15 !important;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.06) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.qv-cart-btn {
  flex: 1 !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  background: #FF6B35 !important;
  color: #FFF !important;
  border: 2.5px solid #2C2A27 !important;
  border-radius: 12px !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
}
.qv-cart-btn:hover {
  background: #FF5216 !important;
  transform: translateY(-2px) !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
}

/* Vibrant Golden Yellow "MUA NGAY" Button */
.qv-buy-btn {
  flex: 1.25 !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  background: #FFB800 !important;
  color: #2C2A27 !important;
  border: 2.5px solid #2C2A27 !important;
  border-radius: 12px !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
}
.qv-buy-btn:hover {
  background: #FFA000 !important;
  transform: translateY(-2px) !important;
  box-shadow: 4.5px 4.5px 0 #2C2A27 !important;
}

.qv-wish-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  border: 2.5px solid #2C2A27 !important;
  background: #FFF !important;
  box-shadow: 2.5px 2.5px 0 #2C2A27 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
}
.qv-wish-btn:hover {
  background: #FFEAD9 !important;
  transform: scale(1.08) !important;
}

/* ========================================================================= */
/* 100% FULL-SCREEN MOBILE MODAL (PRECISE NATIVE APP FEEL & BEIGE THEME)     */
/* ========================================================================= */
@media (max-width: 768px) {
  .quickview-modal {
    padding: 0 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  .quickview-modal .modal-content,
  .quickview-modal.open .modal-content {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: var(--bg-cream, #FAF6F0) !important;
  }

  .quickview-modal-header {
    flex: 0 0 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 16px !important;
    border-bottom: 2.5px solid #2C2A27 !important;
    background: #F3ECE2 !important;
  }

  .quickview-modal-scroll-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 14px 16px 20px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-y: auto !important;
    background-color: var(--bg-cream, #FAF6F0) !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .quickview-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .quickview-img-col {
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
  }

  .quickview-main-img-wrap {
    height: 270px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px !important;
    border-radius: 16px !important;
    border: 2px solid #2C2A27 !important;
    background: #FFFFFF !important;
  }

  .quickview-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .zoom-slider-widget {
    bottom: 6px !important;
    padding: 2px 8px !important;
  }

  .zoom-slider-range {
    width: 50px !important;
  }

  .main-img-nav-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
  }
  .main-img-nav-btn.prev-nav { left: 6px !important; }
  .main-img-nav-btn.next-nav { right: 6px !important; }

  .quickview-carousel-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    gap: 6px !important;
  }

  .quickview-carousel-container .carousel-arrow-btn {
    display: flex !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 9px !important;
  }

  /* 4-5 Visible Thumbnails on Mobile */
  .quickview-thumbs-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 2px !important;
    width: 100% !important;
    max-width: calc(5 * 46px + 4 * 6px) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .quickview-thumb-btn {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    scroll-snap-align: center !important;
    box-sizing: border-box !important;
    background: #FFF !important;
  }

  .quickview-info-col {
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
  }

  .quickview-title {
    font-size: 16px !important;
  }

  .quickview-price {
    font-size: 19px !important;
  }

  .quickview-info-scrollable {
    max-height: none !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: #FFF !important;
  }

  /* Fixed Bottom Bar on Mobile (Never clipped, always on top) */
  .quickview-modal-bottom-bar {
    flex: 0 0 62px !important;
    height: 62px !important;
    min-height: 62px !important;
    padding: 0 14px !important;
    gap: 8px !important;
    border-top: 2.5px solid #2C2A27 !important;
    background: #F3ECE2 !important;
  }

  .qv-cart-btn {
    padding: 11px 10px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
  }

  .qv-buy-btn {
    padding: 11px 10px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
  }

  .qv-wish-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
  }
}


/* ========================================================================= */
/* COMPACT HORIZONTAL CART DRAWER ITEMS (BÉ VÀ NGANG GỌN GÀNG, SANG XỊN)     */
/* ========================================================================= */

.cart-body {
  padding: 12px 14px !important;
  background: #FAF6F0 !important;
}

.cart-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  min-height: 62px !important;
  margin-bottom: 8px !important;
  background: #FAF4EA !important; /* Warm Aged Beige Kraft Paper */
  border: 1.5px solid #2C2A27 !important;
  border-radius: 12px !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.cart-item-img {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: 1.2px solid #2C2A27 !important;
  background: #EDE2D0 !important;
  flex-shrink: 0 !important;
}

.cart-item-details {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.cart-item-title {
  font-family: var(--font-heading) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #2C2A27 !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.cart-item-price {
  font-family: var(--font-heading) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #C86A3D !important;
  margin: 0 !important;
}

.cart-item-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.qty-btn-group {
  display: inline-flex !important;
  align-items: center !important;
  background: #EDE2D0 !important;
  border: 1.2px solid #2C2A27 !important;
  border-radius: 8px !important;
  padding: 1px 4px !important;
  gap: 4px !important;
}

.qty-btn-group button {
  background: none !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
  cursor: pointer !important;
  width: 18px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.qty-btn-group button:hover {
  color: #FF6B35 !important;
}

.qty-btn-group span {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
  min-width: 14px !important;
  text-align: center !important;
}

.cart-item-remove {
  background: none !important;
  border: none !important;
  color: #8C8275 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  padding: 2px 5px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.cart-item-remove:hover {
  background: #FCE8E6 !important;
  color: #E74C3C !important;
}

.cart-close-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: #EDE2D0 !important;
  border: 1.5px solid #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
  transition: all 0.2s ease !important;
}

.cart-close-btn:hover {
  background: #FF6B35 !important;
  color: #FFF !important;
  transform: rotate(90deg) !important;
}


@keyframes cartBadgePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.cart-badge-bounce {
  animation: cartBadgePop 0.35s var(--ease-spring) forwards !important;
}


/* ========================================================================= */
/* RED & BLACK THEMED WISHLIST BUTTONS (TOÀN BỘ NÚT TRÁI TIM ĐỎ ĐEN SANG XỊN) */
/* ========================================================================= */

.wishlist-card-btn {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: #2C2A27 !important; /* Deep Charcoal Black */
  border: 1.5px solid #2C2A27 !important;
  box-shadow: 2px 2px 0 #E74C3C !important; /* Red Ink Offset Shadow */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 6 !important;
  transition: transform 0.25s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)), background 0.2s ease, box-shadow 0.2s ease !important;
  padding: 0 !important;
}

.wishlist-card-btn svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #FF4D4D !important;
  fill: none !important;
  transition: transform 0.25s var(--ease-spring), fill 0.2s ease !important;
}

.wishlist-card-btn:hover {
  transform: scale(1.15) rotate(-6deg) !important;
  background: #1A1918 !important;
  box-shadow: 3px 3px 0 #FF4D4D !important;
}

.wishlist-card-btn.active {
  background: #E74C3C !important; /* Vibrant Red */
  border-color: #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
}

.wishlist-card-btn.active svg {
  fill: #FFFFFF !important;
  stroke: #FFFFFF !important;
  transform: scale(1.1) !important;
}

/* Header Wishlist Button Red & Black */
#wishlist-btn-indicator.action-btn,
.wishlist-toggle-btn.action-btn {
  background: #2C2A27 !important;
  border: 2px solid #2C2A27 !important;
  color: #FF4D4D !important;
  box-shadow: 2px 2px 0 #E74C3C !important;
}

#wishlist-btn-indicator.action-btn svg,
.wishlist-toggle-btn.action-btn svg {
  stroke: #FF4D4D !important;
}

#wishlist-btn-indicator.action-btn:hover,
.wishlist-toggle-btn.action-btn:hover {
  background: #E74C3C !important;
  color: #FFF !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
  transform: translateY(-2px) !important;
}

#wishlist-btn-indicator.action-btn:hover svg,
.wishlist-toggle-btn.action-btn:hover svg {
  stroke: #FFF !important;
  fill: #FFF !important;
}

/* Quickview Modal Wishlist Button Red & Black */
.qv-wish-btn,
.quickview-wish-btn {
  background: #2C2A27 !important;
  border: 2px solid #2C2A27 !important;
  color: #FF4D4D !important;
  box-shadow: 2px 2px 0 #E74C3C !important;
  border-radius: 12px !important;
}

.qv-wish-btn svg,
.quickview-wish-btn svg {
  stroke: #FF4D4D !important;
}

.qv-wish-btn:hover,
.quickview-wish-btn:hover {
  background: #E74C3C !important;
  color: #FFF !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
}

.qv-wish-btn:hover svg,
.quickview-wish-btn:hover svg {
  stroke: #FFF !important;
  fill: #FFF !important;
}

.qv-wish-btn.active,
.quickview-wish-btn.active {
  background: #E74C3C !important;
  color: #FFF !important;
}

.qv-wish-btn.active svg,
.quickview-wish-btn.active svg {
  fill: #FFF !important;
  stroke: #FFF !important;
}

/* ========================================================================= */
/* HORIZONTALLY SCROLLABLE TAG ROW (TIẾT KIỆM DIỆN TÍCH, TRƯỢT NGANG ÊM ÁI)    */
/* ========================================================================= */

.product-cat-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  width: 100% !important;
  padding-bottom: 2px !important;
  margin-bottom: 2px !important;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important;  /* IE/Edge */
  -webkit-overflow-scrolling: touch !important;
}

.product-cat-row::-webkit-scrollbar {
  display: none !important; /* Chrome/Safari/Opera */
}

.product-cat,
.product-age-tag,
.product-promo-tag {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  font-size: 9.5px !important;
  padding: 2px 6px !important;
  border-radius: 5px !important;
  line-height: 1.2 !important;
}

/* ========================================================================= */
/* MOBILE ULTRA-COMPACT BOXES FOR 2-COLUMN & 4-COLUMN MODES                  */
/* ========================================================================= */

@media (max-width: 768px) {
  /* 2-Column Mode on Mobile: Cute & Compact */
  #product-grid.grid-2col,
  .product-grid.grid-2col,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  #product-grid.grid-2col .product-card,
  .product-grid.grid-2col .product-card,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .product-card {
    border-radius: 14px !important;
    border-width: 1.5px !important;
    box-shadow: 2.5px 2.5px 0 #2C2A27 !important;
  }

  #product-grid.grid-2col .product-img-container,
  .product-grid.grid-2col .product-img-container,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .product-img-container {
    height: 140px !important;
    border-bottom-width: 1.5px !important;
  }

  #product-grid.grid-2col .product-info,
  .product-grid.grid-2col .product-info,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .product-info {
    padding: 8px 10px 10px 10px !important;
    gap: 3px !important;
  }

  #product-grid.grid-2col .product-title,
  .product-grid.grid-2col .product-title,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .product-title {
    font-size: 12.5px !important;
    height: 32px !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
  }

  #product-grid.grid-2col .product-price,
  .product-grid.grid-2col .product-price,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .product-price {
    font-size: 13.5px !important;
  }

  #product-grid.grid-2col .add-cart-btn,
  .product-grid.grid-2col .add-cart-btn,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .add-cart-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    border-width: 1.5px !important;
  }
  #product-grid.grid-2col .add-cart-btn svg,
  .product-grid.grid-2col .add-cart-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  #product-grid.grid-2col .wishlist-card-btn,
  .product-grid.grid-2col .wishlist-card-btn,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .wishlist-card-btn {
    width: 26px !important;
    height: 26px !important;
    top: 6px !important;
    right: 6px !important;
    border-radius: 8px !important;
  }
  #product-grid.grid-2col .wishlist-card-btn svg,
  .product-grid.grid-2col .wishlist-card-btn svg {
    width: 13px !important;
    height: 13px !important;
  }

  /* 4-Column Mode on Mobile: Micro Card Grid */
  #product-grid.grid-4col,
  .product-grid.grid-4col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  #product-grid.grid-4col .product-card,
  .product-grid.grid-4col .product-card {
    border-radius: 12px !important;
    border-width: 1.2px !important;
    box-shadow: 2px 2px 0 #2C2A27 !important;
  }

  #product-grid.grid-4col .product-img-container,
  .product-grid.grid-4col .product-img-container {
    height: 120px !important;
    border-bottom-width: 1.2px !important;
  }

  #product-grid.grid-4col .product-info,
  .product-grid.grid-4col .product-info {
    padding: 6px 8px 8px 8px !important;
    gap: 2px !important;
  }

  #product-grid.grid-4col .product-title,
  .product-grid.grid-4col .product-title {
    font-size: 11.5px !important;
    height: 28px !important;
    line-height: 1.2 !important;
    -webkit-line-clamp: 2 !important;
  }

  #product-grid.grid-4col .product-price,
  .product-grid.grid-4col .product-price {
    font-size: 12.5px !important;
  }

  #product-grid.grid-4col .add-cart-btn,
  .product-grid.grid-4col .add-cart-btn {
    width: 26px !important;
    height: 26px !important;
    border-radius: 7px !important;
  }
  #product-grid.grid-4col .add-cart-btn svg,
  .product-grid.grid-4col .add-cart-btn svg {
    width: 12px !important;
    height: 12px !important;
  }

  #product-grid.grid-4col .wishlist-card-btn,
  .product-grid.grid-4col .wishlist-card-btn {
    width: 24px !important;
    height: 24px !important;
    top: 5px !important;
    right: 5px !important;
    border-radius: 7px !important;
  }
  #product-grid.grid-4col .wishlist-card-btn svg,
  .product-grid.grid-4col .wishlist-card-btn svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* 1-Column Mode on Mobile: Slim Strip */
  #product-grid.grid-1col .product-card,
  .product-grid.grid-1col .product-card {
    min-height: 84px !important;
    padding: 6px 10px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }
  #product-grid.grid-1col .product-img-container,
  .product-grid.grid-1col .product-img-container {
    width: 72px !important;
    height: 72px !important;
    flex: 0 0 72px !important;
  }
  #product-grid.grid-1col .product-title,
  .product-grid.grid-1col .product-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 2 !important;
  }
}


/* ========================================================================= */
/* UNIFIED AGED-BEIGE MODAL DESIGN SYSTEM (ZERO-LAG & EDITORIAL ELEGANCE)     */
/* ========================================================================= */

.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

.modal.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(44, 42, 39, 0.6) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}

.modal-content {
  position: relative !important;
  z-index: 10 !important;
  background: #FAF4EA !important; /* Warm Aged Beige Kraft Paper */
  border: 2px solid #2C2A27 !important;
  border-radius: 18px !important;
  box-shadow: 5px 5px 0 #2C2A27 !important;
  padding: 24px 28px !important;
  max-width: 580px !important;
  width: 92% !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  transform: scale(0.95) translateY(10px) !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.modal.open .modal-content {
  transform: scale(1) translateY(0) !important;
}

.modal-header h3 {
  font-family: var(--font-heading) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
  margin: 0 0 14px 0 !important;
}

.modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: #EDE2D0 !important;
  border: 1.5px solid #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
  transition: all 0.2s ease !important;
}

.modal-close:hover {
  background: #FF6B35 !important;
  color: #FFF !important;
  transform: rotate(90deg) !important;
}

/* Modal Form Inputs on Cream */
.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content input[type="date"],
.modal-content select,
.modal-content textarea {
  width: 100% !important;
  background: #FFFDF9 !important;
  border: 1.5px solid #2C2A27 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-family: var(--font-body) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #2C2A27 !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  border-color: #FF6B35 !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18) !important;
}

/* Search Modal Specifics */
.search-modal-content {
  max-width: 620px !important;
}

.search-input-wrap input {
  padding-left: 16px !important;
  border-radius: 14px !important;
}

.suggest-chip {
  background: #EDE2D0 !important;
  border: 1.2px solid #2C2A27 !important;
  color: #2C2A27 !important;
  font-weight: 700 !important;
}

.suggest-chip:hover {
  background: #FF6B35 !important;
  color: #FFF !important;
}

/* Auth Modal Tabs */
.auth-tabs {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
  border-bottom: 2px solid #2C2A27 !important;
  padding-bottom: 10px !important;
}

.auth-tab-btn {
  flex: 1 !important;
  padding: 10px !important;
  font-family: var(--font-heading) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  background: #EDE2D0 !important;
  border: 1.5px solid #2C2A27 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  color: #2C2A27 !important;
  transition: all 0.2s ease !important;
}

.auth-tab-btn.active {
  background: #FF6B35 !important;
  color: #FFF !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
}


/* ========================================================================= */
/* ORANGE & WHITE WISHLIST BUTTON (ĐỒNG BỘ KIỂU NÚT + CAM, TIM TRẮNG NỀN CAM)*/
/* ========================================================================= */

.wishlist-card-btn {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: #FF6B35 !important; /* Cam tươi rực rỡ như nút + */
  border: 1.8px solid #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 6 !important;
  transition: transform 0.25s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)), background 0.2s ease, box-shadow 0.2s ease !important;
  padding: 0 !important;
}

.wishlist-card-btn svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #FFFFFF !important;
  fill: none !important;
  transition: transform 0.25s var(--ease-spring), fill 0.2s ease !important;
}

.wishlist-card-btn:hover {
  transform: scale(1.14) rotate(-6deg) !important;
  background: #FF5722 !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
}

.wishlist-card-btn.active {
  background: #FF3838 !important; /* Đỏ cam rực rỡ khi đã thả tim */
  border-color: #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
}

.wishlist-card-btn.active svg {
  fill: #FFFFFF !important;
  stroke: #FFFFFF !important;
  transform: scale(1.1) !important;
}

/* Quickview Modal Wishlist Button */
.qv-wish-btn,
.quickview-wish-btn {
  background: #FF6B35 !important;
  border: 2px solid #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  border-radius: 12px !important;
}

.qv-wish-btn svg,
.quickview-wish-btn svg {
  stroke: #FFFFFF !important;
  fill: none !important;
}

.qv-wish-btn:hover,
.quickview-wish-btn:hover {
  background: #FF5722 !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
}

.qv-wish-btn.active,
.quickview-wish-btn.active {
  background: #FF3838 !important;
}

.qv-wish-btn.active svg,
.quickview-wish-btn.active svg {
  fill: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* ========================================================================= */
/* HEADER MENU WISHLIST BUTTON (GIỮ NGUYÊN KIỂU TRONG SUỐT / MỘC BẢN GỐC)   */
/* ========================================================================= */

#wishlist-btn-indicator.action-btn,
.wishlist-toggle-btn.action-btn {
  background: #FAF6F0 !important;
  border: 2px solid #2C2A27 !important;
  color: #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
}

#wishlist-btn-indicator.action-btn svg,
.wishlist-toggle-btn.action-btn svg {
  stroke: #2C2A27 !important;
  fill: none !important;
}

#wishlist-btn-indicator.action-btn:hover,
.wishlist-toggle-btn.action-btn:hover {
  background: #FFEAD9 !important;
  transform: translateY(-2px) !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
}

#wishlist-btn-indicator.action-btn:hover svg,
.wishlist-toggle-btn.action-btn:hover svg {
  stroke: #FF6B35 !important;
  fill: #FF6B35 !important;
}

/* ========================================================================= */
/* PRODUCT TAGS STYLED COHESIVELY WITH BUTTON + (VIỀN ĐEN, BÓNG MỰC 1.5PX)    */
/* ========================================================================= */

.product-cat {
  background: #EDE2D0 !important;
  color: #2C2A27 !important;
  border: 1.5px solid #2C2A27 !important;
  box-shadow: 1.5px 1.5px 0 #2C2A27 !important;
  font-family: var(--font-heading) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
  padding: 2.5px 7px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.product-age-tag {
  background: #27AE60 !important; /* Xanh lá tươi hữu cơ */
  color: #FFFFFF !important;
  border: 1.5px solid #2C2A27 !important;
  box-shadow: 1.5px 1.5px 0 #2C2A27 !important;
  font-family: var(--font-heading) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
  padding: 2.5px 7px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.product-promo-tag {
  background: #E74C3C !important; /* Thẻ đỏ tươi nổi bật */
  color: #FFFFFF !important;
  border: 1.5px solid #2C2A27 !important;
  box-shadow: 1.5px 1.5px 0 #2C2A27 !important;
  font-family: var(--font-heading) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
  padding: 2.5px 7px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}


/* ========================================================================= */
/* 2. MODE 1 CỘT (.grid-1col): DẸT ĐẸP, ĐẦY ĐỦ THÔNG TIN & NÚT ẤN CHUẨN XỊN */
/* ========================================================================= */

#product-grid.grid-1col,
.product-grid.grid-1col {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 960px !important;
  margin: 0 auto !important;
}

#product-grid.grid-1col .product-card,
.product-grid.grid-1col .product-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  position: relative !important;
  width: 100% !important;
  min-height: 120px !important;
  height: auto !important;
  padding: 12px 18px !important;
  gap: 16px !important;
  border-radius: 18px !important;
  border: 2px solid #2C2A27 !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
  background: #FAF4EA !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

#product-grid.grid-1col .product-img-container,
.product-grid.grid-1col .product-img-container {
  flex: 0 0 105px !important;
  width: 105px !important;
  height: 105px !important;
  border-radius: 14px !important;
  border: 1.5px solid #2C2A27 !important;
  background: #EDE2D0 !important;
  overflow: hidden !important;
}

#product-grid.grid-1col .product-img-container img,
.product-grid.grid-1col .product-img-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#product-grid.grid-1col .wishlist-card-btn,
.product-grid.grid-1col .wishlist-card-btn {
  position: absolute !important;
  top: 12px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  z-index: 5 !important;
}

#product-grid.grid-1col .product-info,
.product-grid.grid-1col .product-info {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 0 !important;
  padding-right: 44px !important; /* Spacing for top-right wishlist button */
  background: transparent !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#product-grid.grid-1col .product-cat-row,
.product-grid.grid-1col .product-cat-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 5px !important;
  overflow-x: auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding-bottom: 2px !important;
}

#product-grid.grid-1col .product-title,
.product-grid.grid-1col .product-title {
  font-family: var(--font-heading) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #2C2A27 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: auto !important;
}

#product-grid.grid-1col .product-rating,
.product-grid.grid-1col .product-rating {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  margin: 0 !important;
}

#product-grid.grid-1col .product-footer,
.product-grid.grid-1col .product-footer {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-top: 4px !important;
  padding-top: 0 !important;
  border-top: none !important;
}

#product-grid.grid-1col .product-price,
.product-grid.grid-1col .product-price {
  font-family: var(--font-heading) !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  color: #C86A3D !important;
  margin: 0 !important;
}

#product-grid.grid-1col .add-cart-btn,
.product-grid.grid-1col .add-cart-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: #FF6B35 !important;
  border: 2px solid #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  #product-grid.grid-1col .product-card,
  .product-grid.grid-1col .product-card {
    min-height: 100px !important;
    padding: 10px 14px !important;
    gap: 12px !important;
    border-radius: 14px !important;
  }

  #product-grid.grid-1col .product-img-container,
  .product-grid.grid-1col .product-img-container {
    flex: 0 0 85px !important;
    width: 85px !important;
    height: 85px !important;
    border-radius: 10px !important;
  }

  #product-grid.grid-1col .product-info,
  .product-grid.grid-1col .product-info {
    padding-right: 36px !important;
    gap: 3px !important;
  }

  #product-grid.grid-1col .product-title,
  .product-grid.grid-1col .product-title {
    font-size: 13.5px !important;
    line-height: 1.3 !important;
  }

  #product-grid.grid-1col .product-price,
  .product-grid.grid-1col .product-price {
    font-size: 14.5px !important;
  }

  #product-grid.grid-1col .add-cart-btn,
  .product-grid.grid-1col .add-cart-btn {
    width: 32px !important;
    height: 32px !important;
  }

  #product-grid.grid-1col .wishlist-card-btn,
  .product-grid.grid-1col .wishlist-card-btn {
    top: 8px !important;
    right: 10px !important;
    width: 28px !important;
    height: 28px !important;
  }
}


/* ========================================================================= */
/* CHUNKY & SOFT KRAFT PRODUCT CARDS (DÀY DẶN, MỀM MẠI, BO TRÒN SANG XỊN)    */
/* ========================================================================= */

.product-card {
  position: relative !important;
  background-color: #FAF4EA !important; /* Warm Aged Beige Kraft */
  border: 2px solid #2C2A27 !important;
  border-radius: 20px !important; /* Soft thick curves */
  box-shadow: 4px 4px 0 #2C2A27 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.28s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)), box-shadow 0.28s ease !important;
  box-sizing: border-box !important;
}

.product-card:hover {
  transform: translateY(-4px) rotate(0.8deg) !important;
  box-shadow: 5.5px 5.5px 0 #2C2A27 !important;
}

.product-img-container {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  background-color: #EDE2D0 !important;
  border-bottom: 2px solid #2C2A27 !important;
}

/* Strictly 1-Row Swipeable Tag Row (Cực Tiết Kiệm Diện Tích, Không Bao Giờ Tràn Dòng) */
.product-cat-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
  max-height: 24px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 0 0 2px 0 !important;
  padding: 0 0 2px 0 !important;
}

.product-cat-row::-webkit-scrollbar {
  display: none !important;
}

.product-cat,
.product-age-tag,
.product-promo-tag {
  flex-shrink: 0 !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  border: 1.5px solid #2C2A27 !important;
  box-shadow: 1px 1px 0 #2C2A27 !important;
  line-height: 1.2 !important;
}

/* ========================================================================= */
/* BULLETPROOF QUICKVIEW CLOSE BUTTON (KHÔNG BAO GIỜ BỊ MẤT / BỊ CHE)         */
/* ========================================================================= */

.quickview-modal-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px !important;
  height: 54px !important;
  min-height: 54px !important;
  background: #F3ECE2 !important;
  border-bottom: 2.5px solid #2C2A27 !important;
  position: relative !important;
  z-index: 100 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.quickview-modal-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.quickview-modal-header-left::-webkit-scrollbar {
  display: none !important;
}

.quickview-modal-close-btn {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  border-radius: 10px !important;
  border: 2px solid #2C2A27 !important;
  background: #EDE2D0 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
  cursor: pointer !important;
  z-index: 101 !important;
  margin-left: 10px !important;
  transition: all 0.2s ease !important;
}

.quickview-modal-close-btn:hover {
  background: #FF6B35 !important;
  color: #FFFFFF !important;
  transform: rotate(90deg) !important;
}

/* ========================================================================= */
/* MOBILE COMPACT & CUTE BOXES (CỘT 2 VÀ CỘT 4 BÉ BÉ XINH XINH)              */
/* ========================================================================= */

@media (max-width: 768px) {
  /* Mode 2 Cột trên Mobile: Bé bé xinh xinh, mềm mại */
  #product-grid.grid-2col,
  .product-grid.grid-2col,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  #product-grid.grid-2col .product-card,
  .product-grid.grid-2col .product-card,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .product-card {
    border-radius: 15px !important;
    border: 1.5px solid #2C2A27 !important;
    box-shadow: 2.5px 2.5px 0 #2C2A27 !important;
  }

  #product-grid.grid-2col .product-img-container,
  .product-grid.grid-2col .product-img-container,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .product-img-container {
    height: 130px !important;
    border-bottom: 1.5px solid #2C2A27 !important;
  }

  #product-grid.grid-2col .product-info,
  .product-grid.grid-2col .product-info,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .product-info {
    padding: 6px 8px 8px 8px !important;
    gap: 2px !important;
  }

  #product-grid.grid-2col .product-title,
  .product-grid.grid-2col .product-title,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .product-title {
    font-size: 11.8px !important;
    height: 30px !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
  }

  #product-grid.grid-2col .product-price,
  .product-grid.grid-2col .product-price,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .product-price {
    font-size: 12.8px !important;
  }

  #product-grid.grid-2col .add-cart-btn,
  .product-grid.grid-2col .add-cart-btn,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .add-cart-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
  }

  #product-grid.grid-2col .wishlist-card-btn,
  .product-grid.grid-2col .wishlist-card-btn,
  #product-grid:not(.grid-1col):not(.grid-4col):not(.grid-feed) .wishlist-card-btn {
    width: 26px !important;
    height: 26px !important;
    top: 6px !important;
    right: 6px !important;
  }

  /* Mode 4 Cột trên Mobile: Micro Grid Xinh Xắn */
  #product-grid.grid-4col,
  .product-grid.grid-4col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  #product-grid.grid-4col .product-card,
  .product-grid.grid-4col .product-card {
    border-radius: 13px !important;
    border: 1.3px solid #2C2A27 !important;
    box-shadow: 2px 2px 0 #2C2A27 !important;
  }

  #product-grid.grid-4col .product-img-container,
  .product-grid.grid-4col .product-img-container {
    height: 115px !important;
    border-bottom: 1.3px solid #2C2A27 !important;
  }

  #product-grid.grid-4col .product-info,
  .product-grid.grid-4col .product-info {
    padding: 5px 7px 7px 7px !important;
    gap: 2px !important;
  }

  #product-grid.grid-4col .product-title,
  .product-grid.grid-4col .product-title {
    font-size: 11px !important;
    height: 26px !important;
    line-height: 1.2 !important;
    -webkit-line-clamp: 2 !important;
  }

  #product-grid.grid-4col .product-price,
  .product-grid.grid-4col .product-price {
    font-size: 12px !important;
  }

  #product-grid.grid-4col .add-cart-btn,
  .product-grid.grid-4col .add-cart-btn {
    width: 25px !important;
    height: 25px !important;
    border-radius: 7px !important;
  }

  #product-grid.grid-4col .wishlist-card-btn,
  .product-grid.grid-4col .wishlist-card-btn {
    width: 24px !important;
    height: 24px !important;
    top: 5px !important;
    right: 5px !important;
  }
}


/* ========================================================================= */
/* ZERO-LAG GPU-ACCELERATED INFINITE TAG MARQUEE (TỰ ĐỘNG CHẠY NGANG MƯỢT MÀ)*/
/* ========================================================================= */

.product-cat-row {
  position: relative !important;
  width: 100% !important;
  max-height: 24px !important;
  height: 24px !important;
  overflow: hidden !important;
  margin: 0 0 2px 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%) !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%) !important;
}

.product-cat-track {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: max-content !important;
  will-change: transform !important;
  animation: tagMarqueeScroll 26s linear infinite !important;
}

.product-card:hover .product-cat-track {
  animation-play-state: paused !important;
}

.product-cat-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding-right: 5px !important;
  flex-shrink: 0 !important;
}

@keyframes tagMarqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}


/* ========================================================================= */
/* CRISP ZERO-LAG MODAL CENTERING & SMOOTH OPEN/CLOSE SYSTEM                 */
/* ========================================================================= */

.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease !important;
}

.modal.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(30, 28, 25, 0.68) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

.modal-content {
  position: relative !important;
  z-index: 10 !important;
  background: #FAF4EA !important; /* Warm Aged Kraft Paper */
  border: 2px solid #2C2A27 !important;
  border-radius: 20px !important;
  box-shadow: 6px 6px 0 #2C2A27 !important;
  padding: 24px 28px !important;
  max-width: 580px !important;
  width: 90% !important;
  max-height: 86vh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  transform: scale(0.96) translateY(8px) !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.modal.open .modal-content {
  transform: scale(1) translateY(0) !important;
}

.checkout-modal-content {
  max-width: 780px !important;
}

.auth-modal-content {
  max-width: 480px !important;
}

.user-menu-content {
  max-width: 480px !important;
}

.appointment-modal-content {
  max-width: 560px !important;
}

.search-modal-content {
  max-width: 620px !important;
}

.wishlist-modal-content {
  max-width: 600px !important;
}

.order-success-content {
  max-width: 520px !important;
}

/* User profile card */
.user-profile-card {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 16px !important;
  background: #EDE2D0 !important;
  border: 1.5px solid #2C2A27 !important;
  border-radius: 14px !important;
  margin-bottom: 16px !important;
}

.user-vip-stats {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
}

.vip-stat-box {
  padding: 12px !important;
  background: #FFF !important;
  border: 1.5px solid #2C2A27 !important;
  border-radius: 12px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.vip-stat-box strong {
  color: #FF6B35 !important;
  font-size: 16px !important;
}


/* ========================================================================= */
/* ABSOLUTE MASTER OVERRIDE: PERFECT CENTERED POPUPS ON MOBILE               */
/* ========================================================================= */

@media (max-width: 768px) {
  .modal,
  .auth-modal,
  .user-menu-modal,
  .search-modal,
  .wishlist-modal,
  .appointment-modal,
  .checkout-modal,
  .order-success-modal {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  .modal-content,
  .auth-modal-content,
  .user-menu-content,
  .search-modal-content,
  .wishlist-modal-content,
  .appointment-modal-content,
  .checkout-modal-content,
  .order-success-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    padding: 20px 16px !important;
    border-radius: 16px !important;
    box-shadow: 4px 4px 0 #2C2A27 !important;
    box-sizing: border-box !important;
    transform: scale(0.95) !important;
  }

  .modal.open .modal-content,
  .auth-modal.open .auth-modal-content,
  .user-menu-modal.open .user-menu-content,
  .search-modal.open .search-modal-content,
  .wishlist-modal.open .wishlist-modal-content,
  .appointment-modal.open .appointment-modal-content,
  .checkout-modal.open .checkout-modal-content,
  .order-success-modal.open .order-success-content {
    transform: scale(1) !important;
    opacity: 1 !important;
  }
}


/* ========================================================================= */
/* NEAT LEFT SIDEBAR CATEGORY LAYER EXPLORER (DANH MỤC GỌN GÀNG BÊN TRÁI)   */
/* ========================================================================= */

.store-filter-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: -380px !important;
  width: 350px !important;
  max-width: 88vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #FAF4EA !important; /* Warm Aged Beige Kraft */
  border-right: 2.5px solid #2C2A27 !important;
  padding: 20px 18px !important;
  box-shadow: 10px 0 35px rgba(44, 42, 39, 0.25) !important;
  z-index: 999999 !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.store-filter-sidebar.open {
  left: 0 !important;
}

#filter-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(30, 28, 25, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 999990 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

#filter-modal-overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.category-nav-tree {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

.cat-nav-item,
.cat-nav-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  background: #EDE2D0 !important;
  border: 1.5px solid #2C2A27 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  transition: all 0.2s ease !important;
}

.cat-nav-item:hover,
.cat-nav-header:hover {
  background: #E4D5BE !important;
  transform: translateX(3px) !important;
}

.all-cat-item {
  background: #FF6B35 !important;
  color: #FFF !important;
}
.all-cat-item:hover {
  background: #E85A24 !important;
}
.all-cat-item .cat-nav-badge {
  background: #FFF !important;
  color: #2C2A27 !important;
}

.cat-nav-icon {
  font-size: 16px !important;
  line-height: 1 !important;
}

.cat-nav-name {
  flex: 1 !important;
  font-family: var(--font-heading) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}

.cat-nav-badge {
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  border: 1.2px solid #2C2A27 !important;
  background: #FAF4EA !important;
  color: #2C2A27 !important;
}

.cat-nav-parent {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.cat-nav-sublist {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding-left: 12px !important;
}

.cat-sub-pill {
  font-family: var(--font-body) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #2C2A27 !important;
  background: #FFF !important;
  border: 1.2px solid #2C2A27 !important;
  border-radius: 8px !important;
  padding: 5px 9px !important;
  cursor: pointer !important;
  box-shadow: 1.5px 1.5px 0 #2C2A27 !important;
  transition: all 0.15s ease !important;
}

.cat-sub-pill:hover {
  background: #FF6B35 !important;
  color: #FFF !important;
  transform: translateY(-1px) !important;
}


/* ========================================================================= */
/* STEP-BY-STEP CATEGORY & FILTER SELECTION TILES & PINNED FOOTER           */
/* ========================================================================= */

.filter-category-tiles-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
  margin-top: 6px !important;
}

.cat-tile-btn {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  background: #EDE2D0 !important;
  border: 1.5px solid #2C2A27 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  transition: all 0.18s ease !important;
}

.cat-tile-btn:hover {
  background: #E5D6C0 !important;
  transform: translateY(-1px) !important;
}

.cat-tile-btn.active {
  background: #FF6B35 !important;
  color: #FFFFFF !important;
  box-shadow: 2.5px 2.5px 0 #2C2A27 !important;
}

.cat-tile-icon {
  font-size: 18px !important;
  line-height: 1 !important;
}

.cat-tile-label {
  font-family: var(--font-heading) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.filter-subcat-pills-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 6px !important;
}

.cat-sub-pill {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #2C2A27 !important;
  background: #FFF !important;
  border: 1.5px solid #2C2A27 !important;
  border-radius: 9px !important;
  padding: 7px 11px !important;
  cursor: pointer !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  transition: all 0.15s ease !important;
}

.cat-sub-pill:hover {
  background: #FFE8D6 !important;
  transform: translateY(-1px) !important;
}

.cat-sub-pill.active {
  background: #27AE60 !important; /* Vibrant Organic Green */
  color: #FFFFFF !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
}

.sidebar-action-footer {
  margin-top: 24px !important;
  padding-top: 16px !important;
  border-top: 2px dashed #D5C8B5 !important;
  position: sticky !important;
  bottom: 0 !important;
  background: #FAF4EA !important;
  padding-bottom: 8px !important;
  z-index: 5 !important;
}

#filter-confirm-apply-btn {
  font-family: var(--font-heading) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 13px !important;
  box-shadow: 3.5px 3.5px 0 #2C2A27 !important;
  letter-spacing: 0.3px !important;
}


/* ========================================================================= */
/* FULLSCREEN LIGHTBOX MODAL (XEM FULL ẢNH KHI CLICK / DOUBLE TAP)          */
/* ========================================================================= */

.lightbox-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.lightbox-modal.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.lightbox-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(18, 16, 14, 0.92) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 1 !important;
}

.lightbox-content {
  position: relative !important;
  z-index: 10 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 95vw !important;
  max-height: 92vh !important;
}

.lightbox-img {
  max-width: 90vw !important;
  max-height: 80vh !important;
  max-height: 80dvh !important;
  object-fit: contain !important;
  border-radius: 18px !important;
  border: 2.5px solid #2C2A27 !important;
  box-shadow: 6px 6px 0 #2C2A27 !important;
  background: #FFFFFF !important;
  transition: opacity 0.15s ease !important;
}

.lightbox-close-btn {
  position: absolute !important;
  top: -46px !important;
  right: 0 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: #FF6B35 !important;
  color: #FFFFFF !important;
  border: 2px solid #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 100 !important;
  transition: transform 0.2s ease !important;
}

.lightbox-close-btn:hover {
  transform: rotate(90deg) scale(1.08) !important;
}

.lightbox-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #FAF4EA !important;
  color: #2C2A27 !important;
  border: 2px solid #2C2A27 !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 50 !important;
}

.lightbox-nav-btn.prev-btn { left: -56px !important; }
.lightbox-nav-btn.next-btn { right: -56px !important; }

.lightbox-caption {
  margin-top: 12px !important;
  font-family: var(--font-heading) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #FAF4EA !important;
  background: rgba(44, 42, 39, 0.75) !important;
  padding: 4px 14px !important;
  border-radius: 20px !important;
  border: 1.5px solid #FAF4EA !important;
}

@media (max-width: 768px) {
  .lightbox-nav-btn.prev-btn { left: 8px !important; }
  .lightbox-nav-btn.next-btn { right: 8px !important; }
  .lightbox-close-btn { top: -42px !important; right: 4px !important; width: 36px !important; height: 36px !important; }
  .lightbox-img { max-width: 95vw !important; max-height: 75vh !important; }
}

/* ========================================================================= */
/* SEAMLESS NON-FLOATING CHECKOUT MODAL & SUMMARY BAR                       */
/* ========================================================================= */

.checkout-modal-content {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  max-width: 680px !important;
  width: 94% !important;
  max-height: 90vh !important;
  max-height: 90dvh !important;
  border-radius: 20px !important;
}

.checkout-modal .modal-header {
  padding: 16px 22px !important;
  background: #F3ECE2 !important;
  border-bottom: 2px solid #2C2A27 !important;
  border-radius: 20px 20px 0 0 !important;
}

.checkout-modal .modal-header h3 {
  font-size: 16px !important;
  margin: 0 !important;
}

.checkout-modal .modal-body {
  padding: 18px 22px !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  max-height: calc(88vh - 130px) !important;
  max-height: calc(88dvh - 130px) !important;
  box-sizing: border-box !important;
}

.checkout-summary-bar {
  position: relative !important;
  bottom: auto !important;
  margin-top: 20px !important;
  padding: 14px 18px !important;
  background: #EDE2D0 !important;
  border: 2px solid #2C2A27 !important;
  border-radius: 14px !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.checkout-subtotal {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.checkout-subtotal span {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #6C665D !important;
}

.checkout-subtotal strong {
  font-family: var(--font-heading) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #C86A3D !important;
}

.checkout-summary-bar button[type="submit"] {
  padding: 12px 20px !important;
  font-family: var(--font-heading) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  box-shadow: 2.5px 2.5px 0 #2C2A27 !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  .checkout-modal .modal-header {
    padding: 12px 16px !important;
  }
  .checkout-modal .modal-body {
    padding: 14px 16px !important;
  }
  .checkout-summary-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  .checkout-subtotal {
    text-align: center !important;
  }
  .checkout-summary-bar button[type="submit"] {
    width: 100% !important;
  }
}


/* ========================================================================= */
/* ZOOM HINT BADGE & FULLSCREEN LIGHTBOX STYLES                              */
/* ========================================================================= */

.img-zoom-hint {
  position: absolute !important;
  bottom: 6px !important;
  left: 6px !important;
  background: rgba(44, 42, 39, 0.75) !important;
  color: #FAF4EA !important;
  font-family: var(--font-heading) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  z-index: 4 !important;
}

.product-card:hover .img-zoom-hint {
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .img-zoom-hint {
    opacity: 0.8 !important;
    font-size: 8px !important;
    padding: 1px 4px !important;
    bottom: 4px !important;
    left: 4px !important;
  }
}


/* ========================================================================= */
/* MASTER QUICKVIEW MODAL & FULLSCREEN LIGHTBOX CSS                          */
/* ========================================================================= */

#quickview-modal.modal,
.quickview-modal.modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  transition: opacity 0.22s ease, visibility 0.22s ease !important;
}

#quickview-modal.modal.open,
.quickview-modal.modal.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#quickview-modal .quickview-modal-content,
.quickview-modal .quickview-modal-content {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: auto !important;
  width: 92vw !important;
  max-width: 960px !important;
  max-height: 88vh !important;
  max-height: 88dvh !important;
  background: #FAF4EA !important; /* Warm Aged Beige Kraft Paper */
  border: 2px solid #2C2A27 !important;
  border-radius: 20px !important;
  box-shadow: 6px 6px 0 #2C2A27 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transform: scale(0.96) !important;
  opacity: 0 !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease !important;
}

#quickview-modal.modal.open .quickview-modal-content,
.quickview-modal.modal.open .quickview-modal-content {
  transform: scale(1) !important;
  opacity: 1 !important;
}

#quickview-modal .quickview-modal-header,
.quickview-modal .quickview-modal-header {
  flex: 0 0 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  background: #F3ECE2 !important;
  border-bottom: 2px solid #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 18px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#quickview-modal .quickview-modal-scroll-body,
.quickview-modal .quickview-modal-scroll-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 18px 20px !important;
  box-sizing: border-box !important;
}

#quickview-modal .quickview-modal-bottom-bar,
.quickview-modal .quickview-modal-bottom-bar {
  flex: 0 0 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  background: #EDE2D0 !important;
  border-top: 2px solid #2C2A27 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  #quickview-modal .quickview-modal-content,
  .quickview-modal .quickview-modal-content {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    border-radius: 16px !important;
    box-shadow: 4px 4px 0 #2C2A27 !important;
  }

  #quickview-modal .quickview-modal-scroll-body,
  .quickview-modal .quickview-modal-scroll-body {
    padding: 12px 14px !important;
  }

  #quickview-modal .quickview-modal-bottom-bar,
  .quickview-modal .quickview-modal-bottom-bar {
    padding: 0 14px !important;
  }
}


/* ========================================================================= */
/* 5 MASTER FIXES: QUICKVIEW CLOSE, LONGER ZOOM SLIDER, AUTH MODAL, SPARKLES */
/* ========================================================================= */

/* 1. QUICKVIEW PINNED CLOSE BUTTON (ALWAYS VISIBLE & HIGH-CONTRAST) */
.quickview-pinned-close-btn {
  position: absolute !important;
  top: 10px !important;
  right: 14px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #FF6B35 !important;
  color: #FFFFFF !important;
  border: 2.5px solid #2C2A27 !important;
  box-shadow: 2.5px 2.5px 0 #2C2A27 !important;
  font-family: var(--font-heading) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.quickview-pinned-close-btn:hover {
  background: #E0531D !important;
  transform: scale(1.12) rotate(90deg) !important;
}

.quickview-modal-close-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #FF6B35 !important;
  color: #FFFFFF !important;
  border: 2px solid #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 100 !important;
}

/* 2. WIDER LONGER ZOOM SLIDER */
.zoom-slider-widget {
  padding: 6px 18px !important;
  gap: 12px !important;
  background: rgba(250, 244, 234, 0.96) !important;
  border: 2.5px solid #2C2A27 !important;
  border-radius: 30px !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
}

.zoom-slider-range {
  width: 220px !important; /* DOUBLED FROM 100px */
  height: 8px !important;
  background: #E5DAC9 !important;
  border: 1.8px solid #2C2A27 !important;
  border-radius: 8px !important;
}

.zoom-slider-range::-webkit-slider-thumb {
  width: 20px !important;
  height: 20px !important;
  background: #FF6B35 !important;
  border: 2px solid #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
}

/* 3. CLEAN AUTH MODAL & VIP MEMBER POPUP */
.auth-modal-content,
.user-menu-content {
  position: relative !important;
  max-width: 480px !important;
  width: 92% !important;
  background: #FAF4EA !important;
  border: 2.5px solid #2C2A27 !important;
  border-radius: 22px !important;
  box-shadow: 6px 6px 0 #2C2A27 !important;
  padding: 22px 24px !important;
  box-sizing: border-box !important;
}

.auth-modal-content .modal-close,
.user-menu-content .modal-close {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #FF6B35 !important;
  color: #FFFFFF !important;
  border: 2px solid #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 50 !important;
}

.auth-tabs {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
  padding-right: 44px !important; /* PREVENT OVERLAPPING CLOSE BUTTON */
}

.auth-tab-btn {
  flex: 1 !important;
  padding: 10px 12px !important;
  font-family: var(--font-heading) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  background: #EDE2D0 !important;
  color: #2C2A27 !important;
  border: 1.8px solid #2C2A27 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  transition: all 0.15s ease !important;
}

.auth-tab-btn.active {
  background: #FF6B35 !important;
  color: #FFFFFF !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
}

/* 4. MAGIC CANVAS STYLES */
.magic-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 999999 !important;
}

@media (max-width: 768px) {
  .quickview-pinned-close-btn {
    top: 8px !important;
    right: 10px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
  }

  .zoom-slider-range {
    width: 160px !important; /* WIDER ON MOBILE */
  }

  .auth-tabs {
    padding-right: 38px !important;
    gap: 6px !important;
  }

  .auth-tab-btn {
    font-size: 11.5px !important;
    padding: 8px 8px !important;
  }
}


/* ========================================================================= */
/* PERFECT SNUG PC QUICKVIEW LAYOUT & CLEAN MOBILE DESIGN & DEFAULT 4-COL    */
/* ========================================================================= */

/* Default 4-Column Grid Rules */
#product-grid,
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

/* PC Snug Quickview Modal Layout (No Empty Space) */
@media (min-width: 769px) {
  #quickview-modal .quickview-modal-content,
  .quickview-modal .quickview-modal-content {
    max-width: 880px !important;
    width: 86vw !important;
    max-height: 84vh !important;
  }

  .quickview-grid {
    grid-template-columns: 400px 1fr !important;
    gap: 20px !important;
    align-items: stretch !important;
  }

  .quickview-main-img-wrap {
    height: 310px !important;
  }

  .quickview-info-col {
    justify-content: space-between !important;
  }

  .quickview-info-scrollable {
    padding: 14px 18px !important;
    gap: 10px !important;
  }
}

/* Clean, Mạch Lạc Mobile Quickview Layout */
@media (max-width: 768px) {
  #product-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  #quickview-modal .quickview-modal-content,
  .quickview-modal .quickview-modal-content {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    border-radius: 18px !important;
    box-shadow: 4px 4px 0 #2C2A27 !important;
  }

  .quickview-modal-header {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
  }

  .quickview-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .quickview-main-img-wrap {
    height: 210px !important;
    border-radius: 14px !important;
    padding: 6px !important;
  }

  .quickview-title {
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .quickview-price {
    font-size: 19px !important;
  }

  .quickview-info-scrollable {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    gap: 6px !important;
  }

  .quickview-spec-box .spec-heading {
    font-size: 11px !important;
  }

  .quickview-desc,
  .quickview-specs-list,
  .quickview-warranty {
    font-size: 10.5px !important;
    line-height: 1.4 !important;
  }

  .quickview-modal-bottom-bar {
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 12px !important;
    gap: 6px !important;
  }

  .qv-cart-btn,
  .qv-buy-btn {
    padding: 9px 8px !important;
    font-size: 11.5px !important;
    border-radius: 10px !important;
  }
}


/* ========================================================================= */
/* FIX DUPLICATE CLOSE BUTTON & ELIMINATE EMPTY SPACE UNDER THUMBS ON PC     */
/* ========================================================================= */

/* Single High-Contrast Quickview Close Button in Header */
.quickview-modal-close-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #FF6B35 !important;
  color: #FFFFFF !important;
  border: 2.5px solid #2C2A27 !important;
  box-shadow: 2.5px 2.5px 0 #2C2A27 !important;
  font-family: var(--font-heading) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 100 !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.quickview-modal-close-btn:hover {
  background: #E0531D !important;
  transform: scale(1.12) rotate(90deg) !important;
}

/* Eliminate Empty Space under Thumbnails on PC */
@media (min-width: 769px) {
  .quickview-grid {
    grid-template-columns: 430px 1fr !important;
    gap: 22px !important;
    align-items: start !important; /* PREVENT STRETCHING DEAD SPACE */
  }

  .quickview-img-col {
    height: fit-content !important;
    gap: 12px !important;
  }

  .quickview-main-img-wrap {
    height: 390px !important; /* ENLARGED MAIN IMAGE TO FILL COLUMN PERFECTLY */
    border-radius: 20px !important;
  }

  .quickview-carousel-container {
    margin-top: 2px !important;
    height: 64px !important;
  }

  .quickview-info-col {
    height: fit-content !important;
    gap: 12px !important;
  }

  .quickview-info-scrollable {
    padding: 14px 18px !important;
    gap: 10px !important;
  }
}


/* ========================================================================= */
/* FRAMED NEWSPAPER KRAFT BEIGE TEXT CARD IN QUICKVIEW POPUP                 */
/* ========================================================================= */

.quickview-info-scrollable {
  background: #EDE2D0 !important; /* Warm Newspaper Kraft Beige */
  border: 2px solid #2C2A27 !important; /* Solid Ink Border */
  border-radius: 16px !important;
  box-shadow: 3.5px 3.5px 0 #2C2A27 !important; /* Tactile Vintage Shadow */
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  box-sizing: border-box !important;
}

.quickview-spec-box {
  background: #FAF4EA !important; /* Lighter Kraft Paper Tile inside Card */
  border: 1.5px solid #2C2A27 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  transition: transform 0.15s ease !important;
}

.quickview-spec-box:hover {
  transform: translateY(-1px) !important;
}

.quickview-spec-box .spec-heading {
  font-family: var(--font-heading) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #FF6B35 !important; /* Vibrant Orange Heading */
  margin: 0 0 4px 0 !important;
  letter-spacing: 0.2px !important;
}

.quickview-desc {
  font-size: 11.5px !important;
  line-height: 1.55 !important;
  color: #2C2A27 !important; /* Clear Solid Ink Black Text */
  font-weight: 600 !important;
  margin: 0 !important;
}

.quickview-specs-list {
  font-size: 11px !important;
  color: #2C2A27 !important;
  font-weight: 600 !important;
  padding-left: 16px !important;
  margin: 0 !important;
  line-height: 1.55 !important;
}

.quickview-specs-list strong {
  color: #1A1918 !important;
  font-weight: 800 !important;
}

.quickview-warranty {
  font-size: 11px !important;
  color: #2C2A27 !important;
  font-weight: 600 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

.quickview-warranty strong {
  color: #1A1918 !important;
  font-weight: 800 !important;
}


/* ========================================================================= */
/* UNIFIED RIGHT COLUMN KRAFT CARD & ZERO WHITE SPACE PC QUICKVIEW MODAL     */
/* ========================================================================= */

.quickview-modal-scroll-body {
  background: #FAF4EA !important; /* Rich Warm Kraft Paper Modal Body */
}

.quickview-info-card {
  background: #EDE2D0 !important; /* Warm Newspaper Kraft Beige Card */
  border: 2.5px solid #2C2A27 !important; /* Solid Dark Ink Border */
  border-radius: 18px !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
  padding: 16px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.quickview-meta-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
}

.quickview-unit-tag {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #6C665D !important;
  background: #FAF4EA !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  border: 1.2px solid #2C2A27 !important;
}

.quickview-info-scrollable {
  flex: 1 1 auto !important;
  max-height: 260px !important; /* SCROLLABLE INFORMATION CONTAINER */
  overflow-y: auto !important;
  padding-right: 4px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Custom Scrollbar for Details inside Kraft Card */
.quickview-info-scrollable::-webkit-scrollbar {
  width: 5px !important;
}
.quickview-info-scrollable::-webkit-scrollbar-track {
  background: #EDE2D0 !important;
  border-radius: 4px !important;
}
.quickview-info-scrollable::-webkit-scrollbar-thumb {
  background: #FF6B35 !important;
  border-radius: 4px !important;
}

/* PC Zero Whitespace Grid Alignment */
@media (min-width: 769px) {
  #quickview-modal .quickview-modal-content,
  .quickview-modal .quickview-modal-content {
    max-width: 900px !important;
    width: 88vw !important;
    max-height: 85vh !important;
  }

  .quickview-grid {
    grid-template-columns: 430px 1fr !important;
    gap: 20px !important;
    align-items: stretch !important; /* STRETCH TO FILL FULL HEIGHT EQUALLY */
  }

  .quickview-img-col {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .quickview-main-img-wrap {
    height: 380px !important; /* RICH FULL IMAGE STAGE */
    border-radius: 18px !important;
  }

  .quickview-carousel-container {
    margin-top: 8px !important;
    height: 64px !important;
  }
}


/* ========================================================================= */
/* FRAMED BLACK TITLE BOX & EXACT EQUAL BOTTOM ALIGNMENT (THUMBS = SPECS)    */
/* ========================================================================= */

.quickview-title-frame {
  background: #FAF4EA !important; /* Warm Kraft Paper Beige Tile */
  border: 2px solid #2C2A27 !important; /* Solid Ink Border */
  border-radius: 14px !important;
  padding: 10px 14px !important;
  box-shadow: 2.5px 2.5px 0 #2C2A27 !important;
  margin-bottom: 4px !important;
}

.quickview-title-frame .quickview-title {
  font-family: var(--font-heading) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important; /* Clear Crisp Solid Ink Black Text */
  margin: 0 !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}

/* PC Equal Bottom Alignment: Bottom of Thumbs = Bottom of Right Info Column */
@media (min-width: 769px) {
  #quickview-modal .quickview-modal-content,
  .quickview-modal .quickview-modal-content {
    max-width: 890px !important;
    width: 88vw !important;
    max-height: 85vh !important;
  }

  .quickview-grid {
    grid-template-columns: 420px 1fr !important;
    gap: 20px !important;
    align-items: stretch !important;
  }

  .quickview-img-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 400px !important;
  }

  .quickview-main-img-wrap {
    height: 330px !important;
    flex: 0 0 330px !important;
  }

  .quickview-carousel-container {
    height: 60px !important;
    flex: 0 0 60px !important;
    margin-top: 10px !important;
  }

  .quickview-info-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 400px !important; /* EXACT SAME HEIGHT AS LEFT IMAGE COLUMN (330 + 10 + 60 = 400px) */
    gap: 8px !important;
  }

  .quickview-info-scrollable {
    flex: 1 1 auto !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
  }
}


/* ========================================================================= */
/* MASTER 3D ROASTED OAK BROWN FRAMED TILES & ZERO-DISTORTION PC LAYOUT     */
/* ========================================================================= */

/* PC Quickview Modal & Grid Layout */
@media (min-width: 769px) {
  #quickview-modal .quickview-modal-content,
  .quickview-modal .quickview-modal-content {
    width: 880px !important;
    max-width: 90vw !important;
    height: auto !important;
    max-height: 86vh !important;
    max-height: 86dvh !important;
    border-radius: 22px !important;
    background: #FAF4EA !important; /* Warm Kraft Paper Modal */
    box-shadow: 8px 8px 0 #2C2A27 !important;
  }

  .quickview-grid {
    display: grid !important;
    grid-template-columns: 410px 1fr !important;
    gap: 22px !important;
    align-items: start !important; /* PREVENT STRETCHING OR SQUISHING IMAGES */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .quickview-img-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
  }

  .quickview-main-img-wrap {
    position: relative !important;
    width: 100% !important;
    height: 330px !important;
    background: #FFFFFF !important;
    border: 2.5px solid #2C2A27 !important;
    border-radius: 18px !important;
    box-shadow: 4px 4px 0 #2C2A27, inset 0 1px 0 rgba(255,255,255,0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }

  .quickview-img {
    max-width: 96% !important;
    max-height: 96% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* 100% ORIGINAL ASPECT RATIO - ZERO DISTORTION */
    display: block !important;
    margin: auto !important;
  }

  .quickview-carousel-container {
    height: 64px !important;
    margin-top: 2px !important;
  }

  .quickview-info-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
  }
}

/* 3D Roasted Oak Brown Framed Title & Specs Tiles */
.quickview-title-frame {
  background: #EEDCC8 !important; /* Rich Roasted Oak Kraft Brown Tile */
  border: 2.5px solid #2C2A27 !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  box-shadow: 3.5px 3.5px 0 #2C2A27, inset 0 1px 0 rgba(255, 255, 255, 0.7) !important; /* 3D TACTILE POP */
  margin-bottom: 2px !important;
}

.quickview-title-frame .quickview-title {
  font-family: var(--font-heading) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important; /* Clear Crisp Solid Ink Black Text */
  margin: 0 !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}

.quickview-info-scrollable {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-height: 250px !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.quickview-spec-box {
  background: #EAD8C3 !important; /* Warm Roasted Oak Brown Tile */
  border: 2px solid #2C2A27 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  box-shadow: 3px 3px 0 #2C2A27, inset 0 1px 0 rgba(255, 255, 255, 0.6) !important; /* 3D TACTILE POP */
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.quickview-spec-box:hover {
  transform: translateY(-2px) !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
}

.quickview-spec-box .spec-heading {
  font-family: var(--font-heading) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #C86A3D !important; /* Vibrant Amber Roasted Brown Heading */
  margin: 0 0 4px 0 !important;
  letter-spacing: 0.2px !important;
}

.quickview-desc,
.quickview-specs-list,
.quickview-warranty {
  font-size: 11.5px !important;
  line-height: 1.55 !important;
  color: #2C2A27 !important; /* Clear Crisp Solid Ink Black Text */
  font-weight: 600 !important;
  margin: 0 !important;
}

.quickview-specs-list strong,
.quickview-warranty strong {
  color: #1A1918 !important;
  font-weight: 800 !important;
}

.quickview-thumb-btn {
  border: 2px solid #2C2A27 !important;
  box-shadow: 2px 2px 0 #2C2A27 !important;
  border-radius: 10px !important;
}

.quickview-thumb-btn.active {
  border-color: #FF6B35 !important;
  background: #FFE8D6 !important;
  transform: translateY(-2px) !important;
  box-shadow: 3px 3px 0 #2C2A27 !important;
}


/* ========================================================================= */
/* SOFT SCANDINAVIAN CREAM SILK QUICKVIEW SPEC BOX & MOBILE FULLSCREEN MODAL  */
/* ========================================================================= */

.quickview-title-frame {
  background: #FAF6F0 !important; /* Soft Cream Silk Tile */
  border: 2px solid #2C2A27 !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  box-shadow: 3px 3px 0 #2C2A27, inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 2px !important;
}

.quickview-title-frame .quickview-title {
  font-family: var(--font-heading) !important;
  font-size: 17.5px !important;
  font-weight: 800 !important;
  color: #2C2A27 !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}

.quickview-spec-box {
  background: #FAF6F0 !important; /* Soft Organic Cream Silk Tile */
  border: 2px solid #2C2A27 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  box-shadow: 3px 3px 0 #2C2A27, inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.quickview-spec-box:hover {
  transform: translateY(-2px) !important;
  box-shadow: 4px 4px 0 #2C2A27 !important;
}

.quickview-spec-box .spec-heading {
  font-family: var(--font-heading) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #FF6B35 !important; /* Soft Vibrant Coral Orange Accent */
  margin: 0 0 6px 0 !important;
  letter-spacing: 0.2px !important;
}

.quickview-desc,
.quickview-specs-list,
.quickview-warranty {
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  color: #38342E !important; /* Soft Warm Charcoal Ink Text */
  font-weight: 600 !important;
  margin: 0 !important;
}

.quickview-specs-list strong,
.quickview-warranty strong {
  color: #2C2A27 !important;
  font-weight: 800 !important;
}

/* MOBILE 100% FULLSCREEN QUICKVIEW MODAL & ALIGNMENT FIX */
@media (max-width: 768px) {
  #quickview-modal.modal,
  .quickview-modal.modal {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
  }

  #quickview-modal .quickview-modal-content,
  .quickview-modal .quickview-modal-content {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    background: #FAF4EA !important;
  }

  #quickview-modal .quickview-modal-header,
  .quickview-modal .quickview-modal-header {
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 14px !important;
    border-bottom: 2px solid #2C2A27 !important;
    background: #FAF6F0 !important;
  }

  #quickview-modal .quickview-modal-scroll-body,
  .quickview-modal .quickview-modal-scroll-body {
    padding: 12px 14px !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .quickview-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .quickview-main-img-wrap {
    height: 240px !important;
    max-height: 240px !important;
    border-radius: 14px !important;
  }

  #quickview-modal .quickview-modal-bottom-bar,
  .quickview-modal .quickview-modal-bottom-bar {
    height: 62px !important;
    min-height: 62px !important;
    padding: 0 14px !important;
    border-top: 2px solid #2C2A27 !important;
    background: #FAF6F0 !important;
  }
}
