/* ===== CSS VARIABLES ===== */
:root {
  --p: #6122E8;
  --p2: #7c3aed;
  --p3: #a78bfa;
  --p4: #f3efff;
  --p5: #ede9fe;
  --pink: #ED008C;
  --pink2: #ff4dac;
  --pink3: #ffe0f4;
  --gold: #e2c1fb; /* Updated to pastel tone */
  --dark: #1a0838;
  --mid: #3d1a6e;
  --text: #2d1654;
  --muted: #7c6a9e;
  --bg: #fdfbff;
  --card: #fff;
  --border: #ede9fe;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); }
button, input, textarea, select { font-family: inherit; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 2px 16px rgba(97, 34, 232, 0.06);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 66px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-size: 20px; font-weight: 900; color: var(--p); white-space: nowrap; }
.logo-pink { color: var(--pink); }
.nav-menu { display: flex; gap: 28px; }
.nav-link { font-size: 13px; color: var(--muted); font-weight: 500; transition: color 0.2s; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--p); font-weight: 800; }
.nav-link.active { border-bottom: 2.5px solid var(--p); padding-bottom: 3px; }

/* Dropdown styling */
.dropdown { position: relative; }
.dropdown-menu {
  display: none; /* Changed from flex & opacity:0 to just none */
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0px 8px 24px rgba(97, 34, 232, 0.15);
  border-radius: 12px;
  padding: 8px 0;
  z-index: 100;
  border: 1px solid var(--border);
}
.dropdown:hover .dropdown-menu { display: flex; }
.dropdown-item {
  color: var(--text);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  display: block; /* Ensure it expands vertically */
}
.dropdown-item:hover { background-color: var(--p4); color: var(--p); font-weight: 800; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-lang {
  background: var(--p4);
  color: var(--p);
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-lang:hover { background: var(--p3); color: #fff; }
.btn-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-cart i { font-size: 18px; color: var(--p); }
.btn-cart:hover { border-color: var(--p4); background: var(--bg); }
.cart-count {
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--p);
  cursor: pointer;
}

/* ===== HERO SLIDER ===== */
.slider { position: relative; height: 500px; overflow: hidden; }
.slides { display: flex; transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); height: 100%; }
.slide {
  min-width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
}
.slide-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
}
.slide-1 { background: linear-gradient(125deg, #1a0838 0%, #3d1270 45%, #6122E8 100%); }
.slide-2 { background: linear-gradient(125deg, #1a0838 0%, #6122E8 40%, #ED008C 100%); }
.slide-3 { background: linear-gradient(125deg, #0f0828 0%, #3d1270 50%, #5b21b6 100%); }
.slide-content { position: relative; z-index: 2; max-width: 520px; }
.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 24px;
  margin-bottom: 18px;
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,0.2);
}
.slide h1 { font-size: 40px; font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.slide h1 em { color: var(--gold); font-style: normal; }
.slide p { color: rgba(255,255,255,0.78); font-size: 14px; line-height: 1.8; margin-bottom: 28px; }
.slide-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.sbtn-primary {
  background: #fff;
  color: var(--p);
  border: none;
  border-radius: 32px;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s;
}
.sbtn-primary:hover { transform: translateY(-2px); }
.sbtn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 32px;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.sbtn-outline:hover { background: rgba(255,255,255,0.1); }
.slide-deco {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 180px;
  opacity: 0.1;
  user-select: none;
}
.slide-badge {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 24px 32px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.slide-badge-num { font-size: 36px; font-weight: 900; color: #fff; }
.slide-badge-label { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.slide-badge-stars { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 10px; }
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.arrow:hover { background: rgba(255,255,255,0.25); }
.arrow-left { left: 18px; }
.arrow-right { right: 18px; }
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
.dot.active { background: #fff; width: 28px; border-radius: 5px; }

/* ===== STATS STRIP ===== */
.stats-strip {
  background: linear-gradient(90deg, var(--p) 0%, var(--pink) 100%);
  padding: 24px 0;
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 40px;
}
.stat-item {
  text-align: center;
  padding: 8px 0;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 26px; font-weight: 900; color: #fff; }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 3px; }

/* ===== SECTION COMMON ===== */
.section { padding: 64px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-tag {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--pink);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title { font-size: 28px; font-weight: 900; color: var(--dark); margin-bottom: 10px; line-height: 1.2; }
.section-sub { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* ===== CATEGORY FILTER ===== */
.category-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.cat-btn {
  background: #fff;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-btn:hover, .cat-btn.active {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}

/* ===== PRODUCTS - UPDATED TO 4 COLUMNS ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr) !important; gap: 20px; }
.product-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(97, 34, 232, 0.12);
}
.product-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--p4), var(--pink3));
  position: relative;
}
.product-emoji { font-size: 60px; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 14px;
  color: #fff;
}
.badge-le { background: var(--p); }
.badge-si { background: #4f46e5; }
.badge-order { background: var(--pink); }
.product-body { padding: 14px 16px; }
.product-name { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.product-row { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 16px; font-weight: 900; color: var(--p); }
.product-old { font-size: 11px; color: #c4b5d4; text-decoration: line-through; margin-left: 5px; font-weight: 400; }
.add-cart-btn {
  background: var(--p);
  color: #fff;
  border: 1.5px solid var(--p);
  border-radius: 14px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(97, 34, 232, 0.3);
}
.add-cart-btn:hover { background: var(--p2); color: #fff; border-color: var(--p2); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(97, 34, 232, 0.4);}
.see-more { text-align: center; margin-top: 32px; }
.btn-see-more {
  background: transparent;
  color: var(--p);
  border: 2px solid var(--p);
  border-radius: 32px;
  padding: 12px 36px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-see-more:hover { background: var(--p); color: #fff; }

/* ===== STORY ===== */
.story-section { background: linear-gradient(135deg, #f8f4ff, #fff0f8); }
.story-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-img {
  background: linear-gradient(135deg, var(--p4), var(--pink3));
  border-radius: 28px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.story-content h2 { font-size: 28px; font-weight: 900; color: var(--dark); margin-bottom: 16px; line-height: 1.3; }
.story-content p { font-size: 13px; color: var(--muted); line-height: 1.9; margin-bottom: 12px; }
.story-values { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.story-val {
  background: var(--p4);
  color: var(--p);
  border-radius: 14px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--p5);
}

/* ===== PROCESS ===== */
.process-section {
  background: linear-gradient(135deg, var(--dark), #3d1270);
  padding: 64px 0;
  margin: 0 auto;
  max-width: 1200px;
  border-radius: 20px;
}
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 40px;}
.process-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
}
.process-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.process-icon { font-size: 36px; margin-bottom: 12px; }
.process-title { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.process-desc { font-size: 11px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
}
.blog-img-1 { background: linear-gradient(135deg, var(--p4), var(--p5)); }
.blog-img-2 { background: linear-gradient(135deg, var(--pink3), var(--p4)); }
.blog-img-3 { background: linear-gradient(135deg, #fff9e6, var(--pink3)); }
.blog-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--p);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
}
.blog-body { padding: 16px; }
.blog-title { font-size: 13px; font-weight: 800; color: var(--dark); line-height: 1.45; margin-bottom: 8px; }
.blog-meta { font-size: 11px; color: var(--muted); display: flex; gap: 12px; }
.blog-read {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--p);
  margin-top: 10px;
  cursor: pointer;
}

/* ===== FLOATING CONTACTS ===== */
.floating-contacts {
  position: fixed;
  right: 24px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}
.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid #fff;
  text-decoration: none;
}
.float-btn:hover { 
  transform: translateY(-6px) scale(1.08); 
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.float-zalo { background: linear-gradient(135deg, #0088FF, #0055FF); font-size: 14px; font-family: 'Segoe UI', Arial, sans-serif; letter-spacing: 0.5px; }
.float-fb { background: linear-gradient(135deg, #1877F2, #0A5BD0); font-size: 28px; }
.float-phone { background: linear-gradient(135deg, var(--pink), #D6007A); font-size: 26px; }

/* ===== CART OVERLAY STYLES ===== */
.cart-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(45, 22, 84, 0.7); /* dark purple overlay */
  z-index: 9999;
  display: flex; justify-content: flex-end;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }
.cart-sidebar {
  width: 100%; max-width: 400px; background: #fff; height: 100%;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.cart-overlay.active .cart-sidebar { transform: translateX(0); }
.cart-header {
  padding: 24px; border-bottom: 1.5px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h2 { font-size: 18px; color: var(--dark); font-weight: 800; }
.close-cart {
  background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.2s;
}
.close-cart:hover { background: var(--p4); color: var(--p); }
.cart-footer { padding: 24px; border-top: 1.5px solid var(--border); }
.checkout-btn {
  width: 100%; background: var(--p); color: white; border: none; padding: 16px;
  border-radius: 14px; font-size: 14px; font-weight: 800; cursor: pointer; transition: 0.2s;
  box-shadow: 0 4px 12px rgba(97, 34, 232, 0.25);
}
.checkout-btn:hover { background: var(--p2); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(97, 34, 232, 0.35); }
.cart-items input {
  font-family: inherit; font-size: 13px; color: var(--dark); background: var(--bg);
}
.cart-items input:focus { outline: none; border-color: var(--p) !important; background: #fff; box-shadow: 0 0 0 3px var(--p4); }

/* ===== FOOTER ===== */
.footer { background: var(--dark); padding: 56px 0 28px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--pink); }
.footer-col p { font-size: 12px; color: #9b7dc8; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 13px; margin-bottom: 14px; font-weight: 800; }
.footer-col a { font-size: 12px; color: #9b7dc8; line-height: 2.4; display: block; transition: color 0.2s; }
.footer-col a:hover { color: var(--p3); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.social-icon {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; transition: background 0.2s;
}
.social-icon:hover { background: rgba(255,255,255,0.15); }
.footer-bottom {
  background: #0f0820; text-align: center; padding: 16px; font-size: 11px; color: #5a3a7a;
  display: flex; justify-content: center; gap: 24px; margin-top: 28px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .blog-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .story-wrap { grid-template-columns: 1fr; gap: 32px; }
  .story-img { height: 260px; }
}

@media (max-width: 768px) {
  .nav-container { padding: 0 16px; gap: 8px; height: 60px; }
  .logo-text { font-size: 16px; }
  .nav-right { gap: 8px; }
  .btn-lang { padding: 6px 10px; font-size: 11px; }
  .btn-cart { 
    width: 36px; height: 36px; border-radius: 50%; padding: 0; 
    justify-content: center; border: none; background: var(--p4); 
    position: relative;
  }
  .btn-cart span[data-i18n="nav_cart"] { display: none; }
  .btn-cart i { font-size: 18px; margin: 0; }
  .cart-count { 
    position: absolute; top: -3px; right: -3px; width: 16px; 
    height: 16px; font-size: 9px; border: 2px solid #fff; 
  }
  .mobile-toggle { 
    display: flex; width: 36px; height: 36px; border-radius: 50%; 
    background: #fff; border: 1.5px solid var(--border); 
    align-items: center; justify-content: center; font-size: 20px; 
    color: var(--dark);
  }
  .nav-menu { display: none; }
  .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; padding: 20px 16px; border-bottom: 1px solid var(--border); gap: 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
  .slide { padding: 0 30px; }
  .slide h1 { font-size: 28px; }
  .slide-badge { display: none; }
  .slide-deco { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); max-width: 100%; border-radius: 0; margin-top: 0;}
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .blog-grid, .testi-grid, .process-grid { grid-template-columns: 1fr; }
  .process-section { border-radius: 0; }
  .footer-container { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr !important; }
}
