/* 
 ==========================================
   WEBSITE NỆM NHẤT MAI - STYLE SHEET
   Design System, Components & Pages
 ==========================================
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- 1. DESIGN SYSTEM VARIABLES --- */
:root {
  /* Typography */
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Colors */
  --primary: #0D5C3A;
  --primary-light: #1E8256;
  --primary-dark: #063A24;
  --accent: #C5A880;
  --accent-hover: #B29367;
  --accent-light: #F0F7F4;
  --bg-primary: #F7FAF8;
  --bg-secondary: #EEF5F1;
  --bg-white: #FFFFFF;
  --text-main: #1A2D24;
  --text-muted: #526E60;
  --text-white: #FFFFFF;
  
  /* UI Elements */
  --border-color: #E2E8F0;
  --border-focus: #0D5C3A;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(13, 92, 58, 0.04);
  --shadow-md: 0 10px 30px rgba(13, 92, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 92, 58, 0.15);
  
  /* Layout */
  --max-width: 1240px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 30px;
  --radius-round: 50%;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. CSS RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
  border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Common Typography & Resets */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* --- 3. LAYOUT UTILITIES --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section-padding {
  padding: 100px 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { display: flex; flex-direction: column; }

.text-center { text-align: center; }
.text-gold { color: var(--accent); }

.section-header {
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header span {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  border: 1px solid var(--primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent);
  transition: var(--transition);
  z-index: -1;
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-primary:hover {
  border-color: var(--accent);
  color: var(--primary-dark);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary-dark);
  border: 1px solid var(--accent);
}

.btn-accent:hover {
  background-color: transparent;
  color: var(--accent);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

/* Badges */
.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new { background-color: var(--accent); color: var(--primary-dark); }
.badge-hot { background-color: var(--danger); color: var(--text-white); }
.badge-rec { background-color: var(--primary); color: var(--text-white); }

/* --- 4. HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  height: 70px;
  box-shadow: var(--shadow-sm);
}

header.scrolled .nav-link {
  color: var(--text-main);
}
header.scrolled .logo h1 {
  color: var(--primary);
}
header.scrolled .nav-icon {
  color: var(--primary);
}

.header-container {
  height: 100%;
}

.logo h1 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--text-white);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  gap: 36px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: var(--bg-white);
  min-width: 200px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main) !important;
  transition: var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--bg-secondary);
  color: var(--accent) !important;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icon {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.nav-icon:hover {
  color: var(--accent) !important;
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--accent);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-white);
}

/* Page Headers (for inner pages) */
.page-header {
  background: linear-gradient(rgba(15, 30, 54, 0.8), rgba(15, 30, 54, 0.85)), url('https://images.unsplash.com/photo-1540518614846-7eded433c457?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  padding: 95px 0 20px 0;
  text-align: center;
  color: var(--text-white);
}

.page-header h1 {
  color: var(--text-white);
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.page-header .breadcrumbs {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  gap: 8px;
}

.page-header .breadcrumbs a:hover {
  color: var(--accent);
}

/* Inner header scrolled fix */
.inner-page header {
  background-color: var(--primary-dark);
}
.inner-page header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
}
.inner-page .nav-link {
  color: rgba(255, 255, 255, 0.8);
}
.inner-page .nav-icon {
  color: rgba(255, 255, 255, 0.8);
}

/* --- 5. HERO BANNER --- */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: var(--primary-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(11, 19, 43, 0.65), rgba(11, 19, 43, 0.55));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  color: var(--text-white);
  padding: 0 20px;
}

.hero-tag {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.hero-content h2 {
  font-size: 4rem;
  color: var(--text-white);
  margin-bottom: 24px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s ease 0.2s, opacity 0.8s ease 0.2s;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s ease 0.4s, opacity 0.8s ease 0.4s;
}

.hero-content .btn {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s ease 0.6s, opacity 0.8s ease 0.6s;
}

/* Active Slide Animations */
.hero-slide.active .hero-tag,
.hero-slide.active h2,
.hero-slide.active p,
.hero-slide.active .btn {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-round);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-white);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.hero-arrow:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.hero-arrow-left { left: 40px; }
.hero-arrow-right { right: 40px; }

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-round);
  background-color: rgba(255, 255, 255, 0.3);
  transition: var(--transition-fast);
}

.hero-dot.active {
  background-color: var(--accent);
  width: 30px;
  border-radius: 10px;
}

/* --- 6. CATEGORIES SECTION --- */
.category-card {
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 30, 54, 0.9) 10%, rgba(15, 30, 54, 0.3) 60%, transparent);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition);
}

.category-card h3 {
  color: var(--text-white);
  font-size: 1.4rem;
  margin-bottom: 8px;
  transform: translateY(10px);
  transition: var(--transition);
}

.category-card p {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(10px);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-card p i {
  transition: var(--transition);
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(15, 30, 54, 0.95) 20%, rgba(15, 30, 54, 0.4) 60%, rgba(15, 30, 54, 0.1));
}

.category-card:hover h3,
.category-card:hover p {
  transform: translateY(0);
}

.category-card:hover p i {
  transform: translateX(5px);
}

/* --- 7. PRODUCT CARD --- */
.product-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.product-img-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-slow);
  padding: 12px;
}

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

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

.product-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(transparent, rgba(15, 30, 54, 0.8));
  transition: var(--transition);
  opacity: 0;
}

.product-card:hover .product-actions {
  bottom: 0;
  opacity: 1;
}

.product-action-btn {
  width: 44px;
  height: 44px;
  background-color: var(--bg-white);
  color: var(--primary);
  border-radius: var(--radius-round);
  font-size: 1.1rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.product-action-btn:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
  transform: scale(1.1);
}

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

.product-material {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-dark);
  line-height: 1.4;
  height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--warning);
  margin-bottom: 16px;
}

.product-rating span {
  color: var(--text-muted);
  font-weight: 500;
}

.product-price-row {
  margin-top: auto;
}

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

.product-original-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 500;
}

/* --- 8. SLEEP QUIZ - INTERACTIVE SECTION --- */
.sleep-quiz-sec {
  background: linear-gradient(rgba(15, 30, 54, 0.9), rgba(15, 30, 54, 0.95)), url('https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: var(--text-white);
}

.sleep-quiz-sec .section-header h2,
.sleep-quiz-sec .section-header p {
  color: var(--text-white);
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.quiz-step-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-white);
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.quiz-option {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.quiz-option:hover {
  background-color: rgba(197, 168, 128, 0.1);
  border-color: var(--accent);
}

.quiz-option.selected {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.quiz-option i {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}

.quiz-option span {
  font-weight: 700;
  font-size: 1.1rem;
}

.quiz-progress {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 40px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background-color: var(--accent);
  width: 33.33%;
  transition: var(--transition);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
}

.quiz-result-card {
  display: flex;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  margin-top: 30px;
  animation: slideUp 0.6s ease;
}

.quiz-result-img {
  width: 40%;
}

.quiz-result-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f8f9fa;
  padding: 15px;
}

.quiz-result-info {
  width: 60%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-result-info h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.quiz-result-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.quiz-result-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

/* --- 9. TESTIMONIALS & NEWS PREVIEW --- */
.testimonials {
  background-color: var(--bg-secondary);
}

.testimonial-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 300px;
  background-color: var(--bg-white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.testimonial-stars {
  color: var(--warning);
  margin-bottom: 16px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 24px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-round);
}

.testimonial-user h5 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.testimonial-user span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* News Previews on Home */
.news-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.news-img {
  height: 220px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.news-card:hover .news-img img {
  transform: scale(1.05);
}

.news-info {
  padding: 24px;
}

.news-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.news-category {
  color: var(--accent);
  text-transform: uppercase;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 50px;
}

.news-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 68px;
}

.news-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-link:hover {
  color: var(--accent);
}

.news-link i {
  transition: var(--transition-fast);
}

.news-link:hover i {
  transform: translateX(4px);
}

/* --- 10. GIỚI THIỆU (ABOUT US) --- */
.about-story {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
  align-items: center;
}

.about-story-text {
  grid-column: 1 / 7;
}

.about-story-img {
  grid-column: 7 / 13;
  position: relative;
}

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

.about-badge-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 250px;
}

.about-badge-card h4 {
  color: var(--accent);
  font-size: 2.5rem;
  margin-bottom: 4px;
}

.about-badge-card p {
  font-size: 0.9rem;
  font-weight: 600;
}

.values-sec {
  background-color: var(--bg-secondary);
}

.value-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-round);
  background-color: var(--accent-light);
  color: var(--accent);
  font-size: 1.8rem;
  margin: 0 auto 24px auto;
}

.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.timeline-item-left {
  left: 0;
  text-align: right;
}

.timeline-item-right {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-round);
  background-color: var(--accent);
  border: 4px solid var(--bg-primary);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.timeline-item-left .timeline-dot { right: -8px; }
.timeline-item-right .timeline-dot { left: -8px; }

.timeline-content {
  background-color: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline-content h4 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-content h5 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* --- 11. SẢN PHẨM (PRODUCTS PAGE) --- */
.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* Sidebar Filter */
.filter-sidebar {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 500;
}

.filter-checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  border-radius: 4px;
  cursor: pointer;
}

/* Search bar on products list */
.products-search-bar {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 8px 8px 8px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.products-search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.products-search-bar input {
  flex-grow: 1;
  padding: 10px 0;
  font-weight: 500;
}

.products-search-bar i {
  color: var(--text-muted);
  margin-right: 12px;
  font-size: 1.1rem;
}

/* Product results info & sort */
.products-top-row {
  margin-bottom: 24px;
}

.products-count {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.products-sort select {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

/* --- 12. PRODUCT DETAIL MODAL --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 30, 54, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  animation: modalOpen 0.5s ease;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background-color: var(--bg-secondary);
}

.modal-close:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.modal-body {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  row-gap: 16px;
}

.modal-gallery {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-main-img {
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.modal-thumbs {
  display: flex;
  gap: 12px;
}

.modal-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.modal-thumb.active,
.modal-thumb:hover {
  border-color: var(--accent);
}

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

.modal-info {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--warning);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.modal-rating span {
  color: var(--text-muted);
}

.modal-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.modal-specs {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  font-size: 0.9rem;
}

.modal-spec-item strong {
  color: var(--primary-dark);
}

.modal-size-select {
  margin-bottom: 12px;
}

.modal-size-select span {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-size-select select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  font-weight: 600;
  cursor: pointer;
}

.modal-purchase {
  display: flex;
  gap: 16px;
}

.modal-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.modal-qty-btn {
  width: 44px;
  height: 100%;
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-qty input {
  width: 44px;
  text-align: center;
  font-weight: 700;
}

.modal-purchase .btn {
  flex-grow: 1;
}

/* --- 13. TIN TỨC (NEWS PAGE) --- */
.news-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin-top: 40px;
}

.news-sidebar {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 100px;
}

/* News Detail Reader Modal */
.news-modal .modal-content {
  max-width: 800px;
}
.news-modal .modal-body {
  padding: 48px;
  display: block;
}

.news-modal-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.news-modal-category {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: inline-block;
}

.news-modal-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.news-modal-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.news-modal-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
}

.news-modal-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.news-modal-content p {
  margin-bottom: 20px;
}

.news-modal-content h3 {
  font-size: 1.5rem;
  margin: 36px 0 16px 0;
}

.news-modal-content ul,
.news-modal-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.news-modal-content li {
  margin-bottom: 8px;
}

/* --- 14. LIÊN HỆ (CONTACT PAGE) --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  background-color: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-round);
  background-color: var(--accent-light);
  color: var(--accent);
  font-size: 1.3rem;
}

.contact-text h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form Contact */
.contact-form-card {
  background-color: var(--bg-white);
  padding: 48px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-form-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  font-weight: 500;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent);
  background-color: var(--bg-white);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Contact map & FAQS */
.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 80px;
}

.faq-sec {
  background-color: var(--bg-secondary);
}

.faqs-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-header {
  padding: 24px 30px;
  cursor: pointer;
  user-select: none;
}

.faq-header h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180px);
}

.faq-body {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-body {
  padding: 0 30px 24px 30px;
  max-height: 200px;
}

/* --- 15. SIMULATED SHOPPING CART --- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  z-index: 2500;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
  font-size: 1.4rem;
}

.cart-close {
  font-size: 1.3rem;
  cursor: pointer;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.cart-item-size {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.cart-item-remove {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-footer {
  padding: 30px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.cart-total-row {
  margin-bottom: 20px;
  font-weight: 700;
}

.cart-total-price {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 800;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--primary-dark);
  color: var(--text-white);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  animation: slideRight 0.4s ease, fadeOut 0.4s ease 2.6s forwards;
  border-left: 4px solid var(--accent);
}

/* --- 16. ANIMATIONS & TRANSITIONS --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideRight {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes modalOpen {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- 17. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  
  .products-layout {
    grid-template-columns: 1fr;
  }
  
  .filter-sidebar {
    position: static;
    margin-bottom: 30px;
  }
  
  .about-story {
    display: flex;
    flex-direction: column-reverse;
    gap: 50px;
  }
  
  .about-story-text, .about-story-img {
    width: 100%;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section-header h2 { font-size: 2.2rem; }
  .hero-content h2 { font-size: 2.6rem; }
  
  .grid-2 { grid-template-columns: 1fr; gap: 30px; }
  .grid-3 { grid-template-columns: 1fr; }
  
  /* Hide slider arrows on mobile (swipe works better) */
  .hero-arrow {
    display: none !important;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background-color: var(--primary-dark);
    transition: var(--transition);
    padding: 40px 30px;
    z-index: 100;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 24px;
  }
  
  .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
  }
  
  /* Collapsible Dropdown menu on mobile */
  .dropdown-menu {
    position: static;
    transform: none;
    background-color: rgba(255, 255, 255, 0.05);
    margin-top: 10px;
    padding: 0;
    display: none; /* Hidden by default on mobile */
    opacity: 1;
    visibility: visible;
    box-shadow: none;
  }
  
  .nav-item-dropdown.expanded .dropdown-menu {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
  }
  
  .dropdown-link {
    color: rgba(255, 255, 255, 0.7) !important;
  }
  
  .nav-item-dropdown .fa-chevron-down {
    transition: transform 0.3s ease;
  }
  
  .nav-item-dropdown.expanded .fa-chevron-down {
    transform: rotate(180deg);
  }
  
  .menu-toggle {
    display: block;
    color: var(--text-white);
  }
  
  header.scrolled .menu-toggle {
    color: var(--primary);
  }
  
  /* Make product actions touch-visible on mobile */
  .product-actions {
    position: absolute;
    bottom: 0 !important;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(transparent, rgba(15, 30, 54, 0.85));
    opacity: 1 !important;
    transition: none;
  }
  
  .product-action-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .modal-gallery, .modal-info, .modal-actions {
    grid-column: 1;
    grid-row: auto;
  }
  .modal-actions {
    margin-top: 12px;
  }
  
  .modal-main-img {
    height: 280px;
  }
  
  /* News Modal Title & Padding */
  .news-modal .modal-body {
    padding: 24px;
  }
  .news-modal-title {
    font-size: 1.5rem;
  }
  .news-modal-img {
    margin-bottom: 20px;
  }
  
  /* Contact form padding */
  .contact-form-card {
    padding: 24px;
  }
  .contact-form-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .quiz-options {
    grid-template-columns: 1fr;
  }
  
  .quiz-container {
    padding: 24px;
  }
  
  .quiz-result-card {
    flex-direction: column;
  }
  
  .quiz-result-img, .quiz-result-info {
    width: 100%;
  }
  
  /* Add explicit height for quiz result image on mobile */
  .quiz-result-img {
    height: 220px;
  }
  .quiz-result-img img {
    padding: 10px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-item-right {
    left: 0;
  }
  
  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }
  
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
  
  .news-page-layout {
    grid-template-columns: 1fr;
  }
  
  .news-sidebar {
    position: static;
    margin-top: 30px;
  }
  
  /* Optimize product card height & layout on mobile */
  .product-img-wrapper {
    height: 160px;
  }
  .product-info {
    padding: 12px;
  }
  .product-name {
    font-size: 0.95rem;
    height: 40px;
    margin-bottom: 8px;
  }
  .product-price {
    font-size: 1.05rem;
  }
  .product-original-price {
    font-size: 0.8rem;
    margin-left: 4px;
  }
  .product-material {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }
  .product-rating {
    margin-bottom: 8px;
  }
  
  /* Stack footer grid columns on mobile */
  footer .grid-4 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h2 {
    font-size: 2.1rem;
  }
  
  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  
  .hero-tag {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }
  
  /* Testimonial width fix for iPhone SE-sized screens */
  .testimonial-card {
    flex: 0 0 100%;
    min-width: 0;
    padding: 24px;
  }
  
  .modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

/* --- NEW SIZE & THICKNESS BUTTONS STYLES --- */
.size-options-container, .thickness-options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}
.size-options-container span.label, .thickness-options-container span.label {
  display: block;
  width: 100%;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 6px;
}
.variant-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}
.variant-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.variant-btn.active {
  border-color: #d93843;
  color: #d93843;
  font-weight: 600;
}
.variant-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #f9f9f9;
}
.btn-quick-order {
  background-color: #d93843;
  color: white;
  border: none;
  transition: all 0.3s ease;
}
.btn-quick-order:hover {
  background-color: #c12b36;
  transform: translateY(-2px);
}

/* --- FLOATING CART BUTTON (Góc phải dưới, nhấp nháy) --- */
#cartIcon {
  position: fixed !important;
  bottom: 40px !important;
  right: 40px !important;
  background-color: var(--danger) !important;
  color: white !important;
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
  z-index: 9999 !important;
  animation: pulse-cart 1.5s infinite !important;
  transition: transform 0.3s !important;
}

#cartIcon:hover {
  transform: scale(1.1) !important;
  animation: none !important;
}

#cartIcon i {
  font-size: 2.5rem !important; /* To gấp 4 lần */
}

#cartIcon .cart-count {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  background-color: white !important;
  color: var(--danger) !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 3px solid var(--danger) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
}

@keyframes pulse-cart {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7) !important;
  }
  70% {
    box-shadow: 0 0 0 20px rgba(239, 68, 68, 0) !important;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0) !important;
  }
}

@media (max-width: 768px) {
  #cartIcon {
    bottom: 20px !important;
    right: 20px !important;
    width: 65px !important;
    height: 65px !important;
  }
  #cartIcon i {
    font-size: 2rem !important;
  }
  #cartIcon .cart-count {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.95rem !important;
  }
}

.modal-actions {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

