/* ========================================
   VĨNH CỬU GROUP - DESIGN SYSTEM
   ======================================== */

/* === CSS VARIABLES === */
/* @import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap'); */

:root {
  /* Brand Colors */
  --primary: #16A34A;
  /* Vibrant Leaf Green */
  --primary-dark: #14532D;
  /* Deep Forest Green */
  --primary-light: #86EFAC;
  /* Soft Mint/Lime */
  --primary-bg: #F0FDF4;
  /* Very light clean mint */
  --primary-bg-light: #F0FDF4;
  /* Very light clean mint */
  --accent: #F59E0B;
  /* Vibrant Amber */
  --accent-light: #FCD34D;

  /* Neutral Colors */
  --text-primary: #0F172A;
  /* Slate 900 */
  --text-secondary: #334155;
  /* Slate 700 */
  --text-muted: #64748B;
  /* Slate 500 */
  --border: #E2E8F0;
  /* Slate 200 */
  --bg-white: #FFFFFF;
  /* Pure White */
  --bg-light: #F8FAFC;
  /* Crisp Cool White */
  --bg-soft-green: #16a34a1c;
  /* Crisp Mint */
  --bg-dark: #0F172A;
  /* Slate 900 */

  /* Typography */
  --font-primary: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  --font-heading: var(--font-primary);
  /* Sans Serif */

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 32px;
  --space-3xl: 40px;
  --space-4xl: 40px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-leaf: 2px 24px 2px 24px;
  /* Organic leaf shape */
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 4px 20px rgba(47, 77, 51, 0.04);
  --shadow-md: 0 10px 30px rgba(47, 77, 51, 0.06);
  --shadow-lg: 0 20px 40px rgba(47, 77, 51, 0.08);
  --shadow-xl: 0 25px 60px rgba(47, 77, 51, 0.12);
  --shadow-green: 0 10px 25px rgba(82, 130, 88, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max: 1400px;
  --header-height: 72px;
  --sub-header-height: 44px;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-white);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E"),
    radial-gradient(circle at 0% 0%, rgba(139, 168, 143, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(139, 168, 143, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(200, 141, 106, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

/* === UTILITY CLASSES === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: var(--space-md) auto 0;
  display: none;
}

.text-primary {
  color: var(--primary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.bg-light {
  background: var(--bg-light);
}

.bg-green-light {
  background: var(--primary-bg);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-leaf);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(76, 175, 80, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #d4691e);
  color: white;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 117, 42, 0.4);
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-lg);
}

.header-logo img {
  height: 52px;
  width: auto;
  transition: transform var(--transition-normal);
}

.header-logo:hover img {
  transform: scale(1.05);
}

/* Search bar in header */
.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 44px 10px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  background: var(--bg-light);
  transition: all var(--transition-normal);
}

.header-search input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.header-search button:hover {
  background: var(--primary-dark);
}

.header-search button svg {
  width: 16px;
  height: 16px;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header-nav .nav-link {
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.header-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Dropdown menu */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: var(--primary-bg);
  color: var(--primary);
  padding-left: 24px;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-action-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  background: transparent;
}

.header-action-btn:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.header-action-btn svg {
  width: 22px;
  height: 22px;
}

.header-action-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* User Dropdown */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid var(--border);
}

.user-dropdown.active .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-menu a {
  padding: 10px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  display: block;
}

.user-dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Sub header - USP Bar */
.sub-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  height: var(--sub-header-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 999;
}

.sub-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usp-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.usp-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.usp-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sub-header .hotline {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.sub-header .hotline svg {
  width: 16px;
  height: 16px;
  animation: ringPhone 2s infinite;
}

@keyframes ringPhone {

  0%,
  100% {
    transform: rotate(0);
  }

  10% {
    transform: rotate(-15deg);
  }

  20% {
    transform: rotate(15deg);
  }

  30% {
    transform: rotate(-10deg);
  }

  40% {
    transform: rotate(10deg);
  }

  50% {
    transform: rotate(0);
  }
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  z-index: 1;
  margin-top: calc(var(--header-height) + var(--sub-header-height));
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transform: rotate(-45deg);
  z-index: -1;
}

.custom-shape-divider-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.custom-shape-divider-bottom .shape-fill {
  fill: var(--bg-white);
}

.hero-slider {
  position: relative;
  height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  color: white;
  padding: var(--space-2xl) 0;
}

.hero-content .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--primary-light);
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.hero-dot.active {
  background: white;
  width: 32px;
  border-radius: 6px;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* === PRODUCT CATEGORIES === */
.categories-section {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-soft-green);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.category-card {
  position: relative;
  background: white;
  border-radius: var(--radius-leaf);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  group: true;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.category-card-img {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-bg), #c8e6c9);
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover .category-card-img img {
  transform: scale(1.08);
}

.category-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.category-card:hover .category-card-body h3 {
  color: var(--primary);
}

.category-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.category-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  align-self: flex-start;
}

.category-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.category-card:hover .category-card-link svg {
  transform: translateX(4px);
}

/* === PRODUCT CARDS === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.product-card {
  background: white;
  border-radius: var(--radius-leaf);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Make entire product card clickable */
.product-card h4 a::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.product-card .add-to-cart-btn,
.product-card .product-card-actions {
  position: relative;
  z-index: 2;
}

.product-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--primary-bg-light);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateX(12px);
  transition: all var(--transition-normal);
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card-actions button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: white;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.product-card-actions button:hover {
  background: var(--primary);
  color: white;
}

.product-card-actions button svg {
  width: 16px;
  height: 16px;
}

.product-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-leaf);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
}

.product-card-tag.sale {
  background: #FF5252;
  color: white;
}

.product-card-tag.new {
  background: var(--primary);
  color: white;
}

.product-card-tag.hot {
  background: var(--accent);
  color: white;
}

.product-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-category {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.product-card-body h4 {
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 42px;
}

.product-card-body h4 a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.product-card-body h4 a:hover {
  color: var(--primary);
}

.product-price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.product-price .current {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.product-price .original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-price .discount {
  display: none;
}

.product-card .add-to-cart-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-leaf);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all var(--transition-normal);
  margin-top: auto;
}

.product-card .add-to-cart-btn:hover {
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

.product-card .add-to-cart-btn svg {
  width: 16px;
  height: 16px;
}

/* === ABOUT / INTRO SECTION === */
.about-section {
  padding: var(--space-4xl) 0;
  background: var(--primary-dark);
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.about-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  transform: rotate(25deg);
  z-index: -1;
}

.about-section h2,
.about-section h3,
.about-section h4 {
  color: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* .about-image::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-xl);
  z-index: -1;
} */

.about-stats {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-stats .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.about-stats .stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

.about-content h2 span {
  color: var(--accent-light);
  /* Better contrast on dark background */
}

.about-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
  font-size: 0.92rem;
}

.about-feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-light);
  /* Better contrast on dark background */
  flex-shrink: 0;
}

/* === WHY CHOOSE US === */
.benefits-section {
  background: var(--bg-white);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.benefits-section .section-header h2 {
  color: var(--primary-dark);
}

.benefits-section .section-header p {
  color: var(--text-secondary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.benefit-card {
  background: white;
  border-radius: var(--radius-leaf);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: 0 10px 30px rgba(47, 77, 51, 0.08);
  border-bottom: 4px solid var(--primary-light);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.benefit-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(47, 77, 51, 0.15);
  border-bottom-color: var(--accent);
}

.benefit-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-leaf);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 8px 24px rgba(82, 130, 88, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: white;
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.benefit-card h4 {
  color: var(--primary-dark);
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* === CERTIFICATES === */
.certificates-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-soft-green);
}

.cert-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  max-width: 100%;
}

.certificates-slider {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
  padding: var(--space-sm) 0;
  flex: 1;
  min-width: 0;
}

.certificates-slider::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.cert-card {
  width: calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
  flex-shrink: 0;
  text-align: center;
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
  border: 1px solid var(--border);
  position: relative;
}

@media (max-width: 992px) {
  .cert-card {
    width: calc(50% - 12px);
    min-width: calc(50% - 12px);
  }
}

@media (max-width: 576px) {
  .cert-card {
    width: 100%;
    min-width: 100%;
  }
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: calc(var(--radius-md) - 4px);
  pointer-events: none;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(76, 175, 80, 0.15);
  border-color: var(--primary-light);
}

.cert-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.cert-nav-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.cert-nav-btn svg {
  width: 20px;
  height: 20px;
}

.cert-doc-img {
  width: 75%;
  aspect-ratio: 1 / 1.414;
  /* A4 proportion for vertical docs */
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin: 0 auto var(--space-sm);
  display: block;
}

.cert-card h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: var(--primary-dark);
}

.cert-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* === PARTNERS SECTION === */
.partners-section {
  padding: var(--space-4xl) 0;
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Abstract Background Elements */
.partners-section::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.partners-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  /* Organic blob shape */
  transform: rotate(-15deg);
  z-index: -1;
}

.partners-section .section-header h2,
.partners-section .section-header p {
  color: white;
}

.partners-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-marquee-track {
  display: inline-flex;
  gap: var(--space-2xl);
  width: max-content;
  padding: 20px 0;
  animation: marqueeLeftToRight 25s linear infinite;
}

.partners-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeLeftToRight {
  0% {
    transform: translateX(calc(-50% - (var(--space-2xl) / 2)));
  }

  100% {
    transform: translateX(0);
  }
}

.partner-logo {
  height: 90px;
  width: 220px;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1.15rem;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  flex-shrink: 0;
  cursor: pointer;
}

.partner-logo:hover {
  transform: scale(1.08) translateY(-4px);
  color: var(--primary-dark);
  border-color: var(--primary-light);
  box-shadow: 0 15px 30px rgba(82, 130, 88, 0.15);
}

/* === NEWS SECTION === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.news-card {
  background: white;
  border-radius: var(--radius-leaf);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  height: 220px;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card-img img {
  transform: scale(1.06);
}

.news-card-body {
  padding: var(--space-lg);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.news-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card-meta svg {
  width: 14px;
  height: 14px;
}

.news-card-body h4 {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body h4 a:hover {
  color: var(--primary);
}

.news-card-body p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
}

.news-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.news-card:hover .news-card-link svg {
  transform: translateX(4px);
}

/* === TESTIMONIALS SECTION === */
.testimonials-section {
  background-color: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.testimonial-card {
  background: var(--bg-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-leaf);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #F59E0B;
  /* Amber for stars */
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: auto;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.author-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* === NEWSLETTER CTA SECTION === */
.cta-section {
  padding: var(--space-xl) 0;
  background: var(--bg-white);
  /* To separate from the footer below it */
}

.cta-box {
  background: var(--gradient-morning);
  border-radius: var(--radius-leaf);
  padding: var(--space-2xl) var(--space-2xl);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/noise.png');
  opacity: 0.15;
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 1.1rem;
  color: var(--primary-dark);
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 14px 20px;
  border: 2px solid transparent;
  border-radius: 30px 30px 30px 4px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.newsletter-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 168, 143, 0.3);
}

.newsletter-form .btn {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* === FOOTER === */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-3xl);
  padding-bottom: 40px;
}

.footer-grid>div:not(:first-child) {
  padding-top: 60px;
  /* manually pushed down */
}

.footer-brand img {
  height: 140px;
  display: block;
  margin: 0 auto var(--space-lg);
  filter: brightness(100);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
}

.footer-socials a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin: 0 !important;
  display: block;
}

.footer h4 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-links a svg {
  width: 12px;
  height: 12px;
}

.footer-contact-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.88rem;
}

.footer-contact-item div {
  flex: 1;
}

.contact-link {
  color: inherit;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--primary-light);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary-light);
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* === FLOATING CONTACT BUTTONS === */
.floating-btns {
  position: fixed;
  bottom: 84px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  z-index: 999;
}

.floating-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn svg {
  width: 26px;
  height: 26px;
}

.floating-btn-phone {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  animation: pulseGreen 2s infinite;
}

.floating-btn-zalo {
  background: #0068FF;
}

.floating-btn-zalo:hover {
  background: #0052cc;
}

.floating-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: rippleOut 2s infinite;
}

.floating-btn-phone::before {
  border-color: var(--primary);
}

.floating-btn-zalo::before {
  border-color: #0068FF;
}

.floating-btn-label {
  position: absolute;
  right: 68px;
  background: white;
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all var(--transition-normal);
}

.floating-btn:hover .floating-btn-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.floating-btn-label::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: white;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(76, 175, 80, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

@keyframes rippleOut {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* === SCROLL TO TOP === */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 30px;
  left: auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
  z-index: 998;
  cursor: pointer;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* === PAGE: PRODUCTS === */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: var(--space-3xl) 0;
  margin-top: var(--header-height);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 50%;
}

.page-header h1 {
  font-size: 2.2rem;
  color: white;
  margin-bottom: var(--space-sm);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: white;
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb span {
  opacity: 0.5;
}

/* Products page layout */
.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

.products-layout .products-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mobile-filter-toggle {
  display: none;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  height: fit-content;
}

.sidebar-widget {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
}

.sidebar-widget h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary-bg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-widget h3 svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.category-filter-list li {
  margin-bottom: 2px;
}

.category-filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.category-filter-list a:hover,
.category-filter-list a.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}

.category-filter-list .count {
  font-size: 0.78rem;
  background: var(--border);
  padding: 2px 8px;
  border-radius: 50px;
}

.category-filter-list a.active .count,
.category-filter-list a:hover .count {
  background: var(--primary);
  color: white;
}

/* Price filter */
.price-range {
  padding: var(--space-sm) 0;
}

.price-range input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* Sort bar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.products-toolbar .results-count {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.products-toolbar .sort-select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-primary);
  background: white;
  cursor: pointer;
}

.products-toolbar .sort-select:focus {
  border-color: var(--primary);
}

/* === PAGE: PRODUCT DETAIL === */
.product-detail {
  padding: var(--space-3xl) 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  height: fit-content;
}

.product-gallery-main {
  width: 100%;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary-bg-light);
  margin-bottom: var(--space-md);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
}

.product-gallery-thumbs .thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--primary-bg-light);
}

.product-gallery-thumbs .thumb.active,
.product-gallery-thumbs .thumb:hover {
  border-color: var(--primary);
}

.product-gallery-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* Product info */
.product-info {
  padding-top: var(--space-md);
}

.product-info .product-category {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.product-info h1 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.product-info .product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.product-info .stars {
  color: #FFC107;
  font-size: 1rem;
}

.product-info .rating-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-detail-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.product-detail-price .current {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.product-detail-price .original {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-detail-price .save-badge {
  padding: 4px 12px;
  background: #FF5252;
  color: white;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-description {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.product-quantity {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.product-quantity label {
  font-weight: 600;
  font-size: 0.92rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-selector button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.qty-selector button:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.qty-selector input {
  width: 56px;
  height: 40px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
}

.product-detail-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-detail-actions .btn {
  flex: 1;
  padding: 14px 24px;
  font-size: 1rem;
}

.product-meta-info {
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
}

.product-meta-info .meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.88rem;
}

.product-meta-info .meta-row strong {
  min-width: 100px;
  color: var(--text-secondary);
}

/* Product tabs */
.product-tabs {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.product-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.product-tabs-nav::-webkit-scrollbar {
  display: none;
}

.product-tabs-nav button {
  flex: 1;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  background: transparent;
}

.product-tabs-nav button.active {
  color: var(--primary);
}

.product-tabs-nav button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.product-tabs-nav button:hover {
  background: var(--primary-bg);
}

.product-tab-content {
  padding: var(--space-xl);
}

.product-tab-pane {
  display: none;
}

.product-tab-pane.active {
  display: block;
}

.product-tab-pane h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.product-tab-pane p,
.product-tab-pane li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.product-tab-pane ul {
  padding-left: var(--space-lg);
}

.product-tab-pane ul li {
  list-style: disc;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.review-card {
  padding: var(--space-lg);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

/* === PAGE: AUTH === */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  background: linear-gradient(135deg, var(--primary-bg), var(--bg-light));
  margin-top: var(--header-height);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.auth-card-header {
  text-align: center;
  padding: var(--space-xl) var(--space-xl) 0;
}

.auth-card-header img {
  height: 48px;
  margin: 0 auto var(--space-lg);
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin: 0 var(--space-xl);
}

.auth-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  background: transparent;
}

.auth-tab.active {
  color: var(--primary);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.auth-form-container {
  padding: var(--space-xl);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  background: var(--bg-light);
}

.form-control:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-check label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.form-link:hover {
  text-decoration: underline;
}

.auth-form .btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* === PAGE: CART === */
.cart-page {
  padding: var(--space-3xl) 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}

.cart-table {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cart-table-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 50px;
  padding: var(--space-md) var(--space-lg);
  background: var(--primary-bg);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.cart-item {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 50px;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cart-item-info img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--primary-bg-light);
  padding: 4px;
}

.cart-item-info h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.cart-item-info .cart-item-category {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-item .cart-item-price {
  font-weight: 600;
  font-size: 0.92rem;
}

.cart-item .cart-item-total {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.cart-item .remove-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.cart-item .remove-btn:hover {
  background: #FFEBEE;
  color: #FF5252;
}

.cart-item .remove-btn svg {
  width: 18px;
  height: 18px;
}

/* Cart summary */
.cart-summary {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.cart-summary h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary-bg);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: 0.92rem;
}

.cart-summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-summary-row.total .value {
  color: var(--accent);
  font-size: 1.2rem;
}

.cart-summary .btn {
  width: 100%;
  margin-top: var(--space-lg);
}

.cart-summary .promo-code {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.cart-summary .promo-code input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.cart-summary .promo-code input:focus {
  border-color: var(--primary);
}

.cart-summary .promo-code .btn {
  width: auto;
  margin-top: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.cart-empty {
  text-align: center;
  padding: var(--space-4xl);
}

.cart-empty svg {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.cart-empty h3 {
  margin-bottom: var(--space-sm);
}

.cart-empty p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* === NEWS PAGE === */
.news-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.news-list-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.news-list-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.news-list-card-img {
  height: 100%;
  min-height: 200px;
  overflow: hidden;
}

.news-list-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-list-card:hover .news-list-card-img img {
  transform: scale(1.05);
}

.news-list-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-card-body .news-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  width: fit-content;
}

.news-list-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.news-list-card-body h3 a:hover {
  color: var(--primary);
}

.news-list-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

/* News sidebar */
.news-sidebar .popular-post {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.news-sidebar .popular-post:last-child {
  border-bottom: none;
}

.news-sidebar .popular-post img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.news-sidebar .popular-post h5 {
  font-size: 0.85rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.news-sidebar .popular-post h5 a:hover {
  color: var(--primary);
}

.news-sidebar .popular-post .date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === ANIMATIONS (SCROLL REVEAL) === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-children.revealed>*:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger-children.revealed>*:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-children.revealed>*:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger-children.revealed>*:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger-children.revealed>* {
  opacity: 1;
  transform: translateY(0);
}

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination a {
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.pagination .active {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

/* === MOBILE NAV OVERLAY === */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: white;
  z-index: 1000;
  padding: var(--space-xl);
  transition: right var(--transition-normal);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
  background: #FFEBEE;
  color: #FF5252;
}

.mobile-nav-logo {
  margin-bottom: var(--space-xl);
}

.mobile-nav-logo img {
  height: 40px;
}

.mobile-nav-links {
  margin-bottom: var(--space-xl);
}

.mobile-nav-links .btn {
  border-radius: 30px !important;
}

.mobile-nav-links a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.mobile-nav-links a:not(.btn):hover,
.mobile-nav-links a:not(.btn).active {
  color: var(--primary-dark);
}

.mobile-nav-links a.active {
  color: var(--primary-dark);
}

.mobile-nav-links a.has-dropdown svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
}

.mobile-nav-links a.has-dropdown.active-dropdown svg {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  padding-left: 20px;
  flex-direction: column;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-submenu.active {
  display: flex;
}

.mobile-nav-links .mobile-submenu a {
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: none;
  color: var(--text-secondary);
}

.mobile-nav-links .mobile-submenu a:hover,
.mobile-nav-links .mobile-submenu a.active {
  color: var(--primary-dark);
}

.mobile-nav-contact {
  padding: var(--space-lg);
  background: var(--primary-bg);
  border-radius: var(--radius-md);
}

.mobile-nav-contact a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-weight: 600;
  color: var(--primary-dark);
}

.mobile-nav-contact a svg {
  width: 20px;
  height: 20px;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .desktop-only {
    display: none !important;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .header-search {
    display: none;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    min-height: unset;
    aspect-ratio: 3 / 1;
  }

  .hero-slider {
    height: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: 1px solid var(--border);
    justify-content: center;
  }
  
  .hide-on-mobile {
    display: none !important;
  }

  .sidebar {
    position: static;
    display: none;
  }
  
  .sidebar.show {
    display: block;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .news-page-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .usp-list {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: var(--space-xl) 0;
  }

  .products-layout {
    padding: 16px 0;
  }

  .section, 
  .cta-section, 
  .categories-section, 
  .about-section, 
  .benefits-section, 
  .certificates-section, 
  .partners-section, 
  .testimonials-section {
    padding: 16px 0 !important;
    min-height: auto !important;
    display: block !important;
  }

  .cta-box {
    padding: 24px 16px !important;
  }

  .products-layout .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card .add-to-cart-btn {
    padding: 8px 4px;
    font-size: 0.78rem;
    gap: 4px;
    white-space: nowrap;
  }
  
  .product-card .add-to-cart-btn svg {
    width: 14px;
    height: 14px;
  }

  .reviews-list {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
    scroll-snap-type: x mandatory;
  }
  
  .reviews-list::-webkit-scrollbar {
    display: none;
  }
  
  .review-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .sub-header-actions {
    gap: 12px !important;
    justify-content: space-between;
    width: 100%;
  }

  .sub-header .hotline {
    font-size: 0.82rem;
    white-space: nowrap;
    gap: 4px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }

  .section,
  .about-section,
  .benefits-section,
  .certificates-section,
  .partners-section,
  .categories-section {
    padding: 24px 0;
  }

  .footer {
    padding-top: 24px;
  }

  .section-header {
    margin-bottom: 16px;
  }

  .hero {
    min-height: unset;
    aspect-ratio: 3 / 1;
  }

  .hero-slider {
    height: 100%;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .categories-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: 16px;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .categories-grid::-webkit-scrollbar {
    display: none;
  }
  .categories-grid > * {
    flex: 0 0 75%;
    scroll-snap-align: start;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .news-slider-wrapper {
    position: relative;
  }

  .news-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 16px;
    padding-bottom: 10px;
  }

  .news-grid::-webkit-scrollbar {
    display: none;
  }

  .news-grid>.news-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 16px;
    padding-bottom: 16px;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonials-grid > .testimonial-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .news-slider-controls.desktop-hidden {
    display: flex !important;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
  }

  .slider-btn {
    display: none !important;
  }

  .slider-btn svg {
    width: 20px;
    height: 20px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .benefit-card {
    padding: var(--space-md);
  }

  .benefit-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
  }

  .benefit-icon svg {
    width: 24px;
    height: 24px;
  }

  .benefit-card h4 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
  }

  .partners-section {
    overflow: hidden;
  }

  .partners-grid {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: marqueeMobile 15s linear infinite;
    gap: 16px;
  }

  .partner-logo {
    flex: 0 0 auto;
    min-width: 110px;
    height: 55px;
    font-size: 0.85rem;
  }

  @keyframes marqueeMobile {
    0% {
      transform: translateX(100vw);
    }

    100% {
      transform: translateX(-100%);
    }
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-grid>div:not(:first-child) {
    padding-top: 15px;
  }

  .footer-brand p {
    margin-bottom: 8px;
  }

  .footer-socials {
    margin-top: 8px;
  }

  .footer-contact-item {
    margin-bottom: 2px;
  }
  
  .footer h4 {
    margin-bottom: 8px;
  }

  .footer-links li {
    margin-bottom: 2px;
  }

  .cart-table-header {
    display: none;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .cart-item-info {
    margin-bottom: var(--space-sm);
  }

  .news-list-card {
    grid-template-columns: 1fr;
  }

  .news-list-card-img {
    height: 200px;
  }

  .floating-btns {
    bottom: 70px;
    right: 16px;
  }

  .scroll-top {
    right: 18px;
    bottom: 16px;
    left: auto;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .floating-btn svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section-header h2 {
    font-size: 1.35rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card-body {
    padding: var(--space-md);
  }

  .product-title {
    font-size: 0.95rem;
  }

  .product-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .product-price .current {
    font-size: 1.1rem;
  }

  .product-category {
    font-size: 0.7rem;
  }

  .header-inner {
    height: 60px;
  }

  .header-logo img {
    height: 40px;
  }

  :root {
    --header-height: 60px;
  }
}

/* === LOADING SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-light) 25%, #e8e8e8 50%, var(--bg-light) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* === TOAST NOTIFICATION === */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: transform var(--transition-normal);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--primary-dark);
}

.toast svg {
  width: 20px;
  height: 20px;
}

/* === HEADER DROPDOWN === */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
  padding: var(--space-sm) 0;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.nav-dropdown a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* === ABOUT SECTION UPDATE === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-image {
  position: relative;
  /* padding-right: var(--space-xl); */
  padding-bottom: var(--space-xl);
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 480px;
  height: 560px;
  object-fit: cover;
  border-radius: 240px 240px 40px 40px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.about-farm-badge {
  position: absolute;
  bottom: 0px;
  left: 10px;
  width: 150px;
  height: 150px;
  background: #F4B41A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: floatBadge 5s ease-in-out infinite;
}

.about-farm-badge .badge-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1A1A1A;
  font-family: var(--font-heading);
}

.about-farm-badge .badge-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: spinBadge 15s linear infinite;
}

@keyframes spinBadge {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes floatBadge {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

/* === NATURE ELEMENTS (VECTOR/LEAVES) === */
.nature-leaf {
  position: absolute;
  opacity: 0.85;
  /* Highly visible */
  z-index: 0;
  pointer-events: none;
  animation: swayLeaf 8s ease-in-out infinite alternate;
  color: var(--primary);
  filter: drop-shadow(2px 4px 6px rgba(44, 122, 63, 0.15));
}

@keyframes swayLeaf {
  0% {
    transform: rotate(-5deg) translateY(0);
  }

  100% {
    transform: rotate(5deg) translateY(-10px);
  }
}

.leaf-1 {
  top: -30px;
  left: -30px;
  width: 250px;
  height: 250px;
  animation-delay: 0s;
  transform-origin: top left;
}

.leaf-2 {
  top: 30%;
  right: -40px;
  width: 300px;
  height: 300px;
  animation-delay: -2s;
  transform-origin: top right;
  opacity: 0.6;
  color: var(--primary-dark);
}

.leaf-3 {
  bottom: -30px;
  left: -20px;
  width: 220px;
  height: 220px;
  animation-delay: -4s;
  transform-origin: bottom left;
}

.leaf-4 {
  bottom: -50px;
  right: -30px;
  width: 320px;
  height: 320px;
  animation-delay: -1s;
  transform-origin: bottom right;
}

.nature-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.section {
  position: relative;
}

/* === IMAGE LIGHTBOX MODAL === */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.image-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  transform: scale(1.1);
  color: var(--primary-light);
}

@media (max-width: 992px) {
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .about-content {
    display: contents;
  }

  .about-content h2 {
    order: 1;
    margin-bottom: var(--space-md);
  }

  .about-image {
    order: 2;
    margin-bottom: var(--space-lg);
  }

  .about-content p {
    order: 3;
  }

  .about-features {
    order: 4;
  }

  .about-content .btn {
    order: 5;
    align-self: center;
  }
}

/* === SLIDER GRID === */
.slider-wrapper {
  position: relative;
  width: 100%;
}

.slider-grid {
  display: flex !important;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: none;
}

.slider-grid::-webkit-scrollbar {
  display: none;
}

.slider-grid .product-card {
  flex: 0 0 calc(25% - (var(--space-lg) * 3 / 4));
  scroll-snap-align: start;
}

.slider-btn {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.slider-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.slider-btn.prev-btn {
  left: -20px;
}

.slider-btn.next-btn {
  right: -20px;
}

@media (max-width: 1200px) {
  .slider-btn.prev-btn {
    left: 0px;
  }

  .slider-btn.next-btn {
    right: 0px;
  }
}

@media (max-width: 1024px) {
  .slider-grid .product-card {
    flex: 0 0 calc(33.333% - (var(--space-lg) * 2 / 3));
  }
}

@media (max-width: 768px) {
  .slider-grid {
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .slider-grid .product-card {
    flex: 0 0 240px;
  }
}

@media (max-width: 480px) {
  .slider-grid .product-card {
    flex: 0 0 70%;
  }
}
/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}


.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 550px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  text-align: center;
}

.tracking-form .form-group {
  margin-bottom: var(--space-md);
}

.tracking-form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.tracking-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.tracking-form input:focus {
  outline: none;
  border-color: var(--primary);
}
