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

:root {
  /* HAPPi Health inspired Color System */
  --primary: #8673e8;        /* HAPPi Royal Purple */
  --primary-hover: #735fe6;  
  --secondary: #322566;      /* HAPPi Deep Purple-Navy */
  --secondary-hover: #21174a;
  --accent-orange: #f38a00;  /* Brand Accent Orange */
  --accent-gold: #FFB81C;    /* Star Rating/Alert Gold */
  
  --dark: #322566;           /* Deep Charcoal / HAPPi Purple Text */
  --light: #f6f5fb;          /* Cool Light Background */
  --white: #ffffff;
  --grey: #efefef;
  --grey-dark: #666666;
  --border-color: #e2dff5;   /* Light Border Color */
  --header-bg: #35276c;      /* Header background matching the gift box */
  
  --font-family: 'Nunito', sans-serif;
  
  /* Shadows and Borders */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s ease-in-out;
}

/* Base Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

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

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

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

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

.text-center {
  text-align: center;
}

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

.clearfix {
  clear: both;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: var(--transition);
  gap: 8px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  transform: translateY(-1px);
}

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

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

/* ==========================================
   HEADER SECTION - NATURE'S WAY STYLE
   ========================================== */
.top-brand-bar {
  background-color: var(--white);
  border-bottom: 1.5px solid var(--border-color);
  padding: 4px 0;
}

.brand-menu-list {
  display: flex;
  align-items: center;
  width: 100%;
}

.brand-menu-list li {
  padding: 0 15px;
  border-right: 1.5px solid var(--border-color);
}

.brand-menu-list li:last-child {
  border-right: none;
}

.brand-menu-list a {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.85rem;
}

.brand-menu-list img {
  height: 24px;
  object-fit: contain;
  margin-right: 6px;
  opacity: 0.8;
  transition: var(--transition);
}

.brand-menu-list a:hover img {
  opacity: 1;
  transform: scale(1.05);
}

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

/* Main Navbar */
header {
  background-color: var(--header-bg);
  border-bottom: 1px solid rgba(50, 37, 102, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
}

/* Shrink header when scrolled */
header.scrolled {
  box-shadow: var(--shadow-lg);
}

.header-main {
  height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  position: relative;
  transition: height 0.3s ease;
}

header.scrolled .header-main {
  height: 62px;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

header.scrolled .logo img {
  height: 38px;
}

/* Search Box style (Nature's way input) */
.search-box {
  width: 250px;
  position: relative;
  transition: var(--transition);
}

.search-box:focus-within {
  width: 280px;
}

.search-box form {
  display: flex;
}

.search-box input {
  width: 100%;
  padding: 10px 45px 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(15, 36, 87, 0.15);
  background-color: var(--white);
  color: var(--secondary);
  font-size: 0.88rem;
  transition: var(--transition);
}

.search-box input::placeholder {
  color: var(--grey-dark);
}

.search-box input:focus {
  background-color: var(--white);
  color: var(--secondary);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.search-box input:focus ~ button {
  color: var(--secondary);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 8px;
  height: 100%;
  align-items: center;
  justify-self: center;
}

.nav-menu > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-menu > li > a {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 6px;
  margin: 0 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition);
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 6px;
  right: 6px;
  height: 3px;
  background-color: var(--white);
  transform: scaleX(0);
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.nav-menu > li:hover > a::after,
.nav-menu > li.active > a::after {
  transform: scaleX(1);
}

.nav-menu > li:hover > a,
.nav-menu > li.active > a {
  color: var(--white);
}

/* Dropdown Menu styling */
.nav-menu .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  z-index: 1001;
  border-top: 3px solid var(--secondary);
}

.nav-menu li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  text-align: left;
}

.nav-menu .dropdown-menu li a:hover {
  background-color: rgba(42, 92, 218, 0.04);
  color: var(--primary);
  padding-left: 24px;
}

/* Header Action (Cart & Hamburger) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-trigger {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  color: var(--secondary);
  font-size: 1.25rem;
  transition: var(--transition);
}

.cart-trigger:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--accent-orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  color: var(--secondary);
  font-size: 1.3rem;
  transition: var(--transition);
}

.menu-toggle:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ==========================================
   HERO CAROUSEL WITH BOTTOM TAB INDICATORS
   ========================================== */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background-color: var(--white);
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 460px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.carousel-content {
  flex: 1;
  padding-right: 50px;
  z-index: 2;
}

.carousel-subtitle {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: inline-block;
  border-bottom: 2px solid var(--accent-orange);
  padding-bottom: 4px;
}

.carousel-title {
  color: var(--secondary);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 15px;
}

.carousel-desc {
  color: var(--grey-dark);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.carousel-buttons {
  display: flex;
  gap: 15px;
}

.carousel-image {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.carousel-image img {
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(15, 36, 87, 0.15));
  animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Custom Slide Text Indicators below the slider on Desktop */
.carousel-indicators-custom {
  display: flex;
  justify-content: center;
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.indicator-tab {
  flex: 1;
  max-width: 300px;
  padding: 15px 20px;
  text-align: center;
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--grey-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3.5px solid transparent;
}

.indicator-tab:first-child {
  border-left: 1px solid var(--border-color);
}

.indicator-tab:hover {
  background-color: #fdfdfd;
  color: var(--primary);
}

.indicator-tab.active {
  border-bottom-color: var(--accent-orange);
  color: var(--secondary);
  background-color: #fafbfc;
}

/* ==========================================
   INTRODUCTION SECTION (#block-120)
   ========================================== */
.brand-intro-section {
  background-color: var(--white);
  border-bottom: 2px solid var(--primary);
  padding: 50px 0;
}

.brand-intro-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 50px;
  align-items: center;
}

.brand-intro-left {
  text-align: center;
}

.brand-intro-left h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.brand-intro-left img {
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 100%;
}

.brand-intro-right {
  font-size: 1.05rem;
  color: #3f4756;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-intro-right p {
  position: relative;
  padding-left: 24px;
}

.brand-intro-right p::before {
  content: "✦";
  color: var(--accent-orange);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

/* ==========================================
   PRODUCT CATEGORIES SECTION
   ========================================== */
.categories-section {
  padding: 40px 0;
}

.section-title-row {
  margin-bottom: 35px;
  text-align: center;
  position: relative;
}

.section-title-row .heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.section-title-row .heading::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background-color: var(--accent-orange);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.categories-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.category-card {
  width: 210px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px 15px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.category-circle-img {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  margin: 0 auto 16px auto;
  overflow: hidden;
  border: 4px solid var(--light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  transition: var(--transition);
}

.category-card:hover .category-circle-img {
  border-color: var(--primary);
}

.category-circle-img img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.category-title {
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 700;
  transition: var(--transition);
}

.category-card:hover .category-title {
  color: var(--primary);
}

/* ==========================================
   PRODUCT CARD COMPONENT
   ========================================== */
.product-grid-container {
  position: relative;
}

.product-item-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  padding: 16px;
  height: 100%;
}

.product-item-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* Tag/Badge */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--white);
  z-index: 10;
}

.card-badge.day { background-color: var(--accent-orange); }
.card-badge.night { background-color: var(--secondary); }
.card-badge.lactoferrin { background-color: var(--primary); }

.card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  margin-bottom: 15px;
  overflow: hidden;
}

.card-thumb img {
  max-height: 100%;
  max-width: 90%;
  object-fit: contain;
  transition: var(--transition);
}

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

.card-category-lbl {
  color: var(--grey-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title a:hover {
  color: var(--primary);
}

.card-score-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.card-score-row span {
  color: var(--grey-dark);
  margin-left: 2px;
  font-weight: 600;
}

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 15px;
  font-size: 1.15rem;
  font-weight: 800;
}

.card-price-current {
  color: #d32f2f; /* Red standard for price */
}

.card-price-original {
  font-size: 0.9rem;
  color: var(--grey-dark);
  text-decoration: line-through;
  font-weight: 600;
}

.card-tools {
  margin-top: auto;
}

.card-add2cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  background-color: var(--accent-orange);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  gap: 6px;
  transition: var(--transition);
}

.card-add2cart-btn:hover {
  background-color: #d67a00;
}

/* ==========================================
   WIDE PROMOTION BANNER MIDDLE
   ========================================== */
.wide-promo-banner {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.wide-promo-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* ==========================================
   MULTIPLE PROMO & NEWS GRID (#block-118)
   ========================================== */
.promo-news-section {
  padding: 20px 0 50px 0;
}

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

.promo-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.promo-card .thumb-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  height: 200px;
}

.promo-card .thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.promo-card:hover .thumb-link img {
  transform: scale(1.04);
}

.promo-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  height: 52px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.promo-card-title a:hover {
  color: var(--primary);
}

.promo-card-btn {
  margin-top: auto;
  align-self: center;
  padding: 6px 18px;
  background-color: var(--accent-orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.promo-card-btn:hover {
  background-color: #d67a00;
}

/* ==========================================
   FOOTER SECTION - NATURE'S WAY STYLE
   ========================================== */
footer {
  background: linear-gradient(135deg, rgba(27, 18, 62, 0.94) 0%, rgba(23, 14, 53, 0.96) 100%), 
              url('/assets/images/lactoferrin_bg.png') no-repeat center center / cover;
  background-size: cover;
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
  border-image: linear-gradient(to right, var(--primary), var(--accent-orange)) 1;
  padding: 80px 0 45px 0;
  font-size: 0.95rem;
  color: #d1c9f3;
}

footer::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 30%;
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(134, 115, 232, 0.15) 0%, rgba(134, 115, 232, 0) 70%);
  pointer-events: none;
  filter: blur(50px);
}

footer::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: 10%;
  width: 400px;
  height: 250px;
  background: radial-gradient(circle, rgba(243, 138, 0, 0.08) 0%, rgba(243, 138, 0, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-left h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.footer-left p {
  margin-bottom: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
}

.footer-left strong {
  color: var(--white);
}

.footer-zalo-oa {
  margin-top: 20px;
}

.zalo-oa-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  font-weight: 600;
}

.zalo-oa-qr-img {
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px;
  border-radius: var(--radius-md);
  background-color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.zalo-oa-qr-img:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 15px 30px rgba(134, 115, 232, 0.4);
}

.footer-dmca-row {
  margin-top: 15px;
}

.footer-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 30px;
}
.fb-page-container {
  margin-top: 20px;
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(134, 115, 232, 0.15), 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1.5px solid rgba(134, 115, 232, 0.25);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.fb-page-container:hover {
  transform: translateY(-3px);
  border-color: rgba(134, 115, 232, 0.6);
  box-shadow: 0 12px 35px rgba(134, 115, 232, 0.3), 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Custom Facebook Widget Simulation */
.fb-page-custom {
  background: #ffffff;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  user-select: none;
}

.fb-custom-contact {
  background: #ffffff;
  padding: 12px 14px;
  border-top: 1px solid #dddfe2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fb-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #65676b;
}

.fb-contact-icon {
  width: 16px;
  height: 16px;
  fill: #65676b;
  flex-shrink: 0;
}

.fb-contact-link {
  color: #1877f2 !important;
  text-decoration: none;
  font-weight: 500;
}

.fb-contact-link:hover {
  text-decoration: underline;
}


.fb-custom-cover {
  height: 130px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65)), url('/assets/images/fb-cover.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.fb-custom-header {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.fb-custom-avatar {
  width: 48px;
  height: 48px;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fb-custom-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fb-custom-info {
  display: flex;
  flex-direction: column;
  color: #ffffff;
  overflow: hidden;
}

.fb-custom-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.fb-custom-name:hover {
  text-decoration: underline;
}

.fb-custom-likes {
  font-size: 11px;
  color: #e4e6eb;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  margin-top: 2px;
}

.fb-custom-bar {
  height: 50px;
  background: #f5f6f7;
  border-top: 1px solid #dddfe2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.fb-custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #ccd0d5;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.fb-custom-btn-primary {
  background: #ffffff;
  color: #4b4f56 !important;
}

.fb-custom-btn-primary:hover {
  background: #f5f6f7;
  border-color: #bec3c9;
}

.fb-custom-btn-secondary {
  background: #ffffff;
  color: #4b4f56 !important;
}

.fb-custom-btn-secondary:hover {
  background: #f5f6f7;
  border-color: #bec3c9;
}

.fb-custom-icon {
  width: 12px;
  height: 12px;
  fill: #4b4f56;
}

.fb-custom-right-group {
  display: flex;
  gap: 6px;
}


/* Footer Dealer Compact Section Redesign (Dark Glassmorphism) */
.footer-dealer-compact {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 35px;
  width: 100%;
}

.footer-dealer-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px 35px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.footer-dealer-card:hover {
  box-shadow: 0 18px 50px rgba(134, 115, 232, 0.15);
  border-color: rgba(255, 255, 255, 0.12);
}

.dealer-compact-title {
  font-family: var(--font-family);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.dealer-compact-title i {
  color: var(--accent-orange);
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 8px rgba(243, 138, 0, 0.3));
}

.dealer-compact-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  font-weight: 500;
  line-height: 1.6;
}

.dealer-compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.dealer-compact-row.row-2 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  margin-bottom: 0;
}

.dealer-input-group {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.dealer-input-group .dealer-icon {
  position: absolute;
  left: 18px;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.8;
  font-size: 0.9rem;
  pointer-events: none;
  transition: all 0.2s ease;
}

.footer-dealer-compact input[type="text"],
.footer-dealer-compact input[type="tel"],
.footer-dealer-compact input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 10px 20px 10px 45px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.06);
  outline: none;
  transition: all 0.25s ease;
}

.footer-dealer-compact input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer-dealer-compact input:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.09);
}

.footer-dealer-compact input:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(134, 115, 232, 0.25);
}

.footer-dealer-compact input:focus + .dealer-icon,
.dealer-input-group:focus-within .dealer-icon {
  color: var(--primary);
  opacity: 1;
}

.btn-dealer-compact-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white);
  padding: 0 35px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(134, 115, 232, 0.3);
}

.btn-dealer-compact-submit:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #5d4bc4 100%);
  box-shadow: 0 8px 25px rgba(134, 115, 232, 0.5);
  transform: translateY(-3px);
}

.btn-dealer-compact-submit:active {
  transform: translateY(-1px);
}

.btn-dealer-compact-submit i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.btn-dealer-compact-submit:hover i {
  transform: translate(2px, -2px);
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 22px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
  letter-spacing: 0.5px;
}

.footer-col h4::after {
  content: "";
  display: block;
  width: 40px;
  height: 2.5px;
  background-color: var(--accent-orange);
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-links a::before {
  content: "›";
  font-size: 1.2rem;
  color: var(--accent-orange);
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 6px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.footer-links a:hover::before {
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   OFFICIAL STORES (POINTS OF SALE) SECTION
   ========================================== */
.official-stores-section {
  background-color: #f7f6fc;
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}

/* Tabs */
.store-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.store-tab-btn {
  background-color: var(--white);
  border: 1.5px solid var(--border-color);
  color: var(--secondary);
  padding: 12px 30px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.store-tab-btn i {
  color: var(--primary);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.store-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-tab-btn:hover i {
  transform: translateY(-2px);
}

.store-tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(134, 115, 232, 0.3);
}

.store-tab-btn.active i {
  color: var(--white);
}

/* Tab panes visibility */
.store-tab-pane {
  display: none;
  animation: fadeInStorePane 0.5s ease forwards;
}

.store-tab-pane.active {
  display: block;
}

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

/* Store Grid Layout */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Store Cards */
.store-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(134, 115, 232, 0.12);
  box-shadow: 0 6px 20px rgba(50, 37, 102, 0.04);
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(134, 115, 232, 0.12);
}

.store-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1.5px dashed rgba(134, 115, 232, 0.15);
  padding-bottom: 15px;
}

.store-card-icon {
  background-color: rgba(134, 115, 232, 0.1);
  color: var(--primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.store-card-header h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0;
  line-height: 1.3;
}

.store-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.store-info-item i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
  opacity: 0.85;
}

.store-info-item p {
  font-size: 0.9rem;
  color: var(--secondary);
  margin: 0;
  line-height: 1.5;
}

.store-info-item strong {
  font-weight: 700;
}

/* Responsive Styles for Store Grid on Mobile */
@media (max-width: 768px) {
  .official-stores-section {
    padding: 50px 0;
  }
  
  .store-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 20px 25px 20px;
    margin-left: -20px;
    margin-right: -20px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  /* Hide default scrollbar for aesthetics */
  .store-grid::-webkit-scrollbar {
    display: none;
  }
  
  .store-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .store-card {
    min-width: 290px;
    width: 85%;
    flex-shrink: 0;
    scroll-snap-align: center;
    box-shadow: 0 8px 25px rgba(50, 37, 102, 0.06);
  }
  
  .store-card:hover {
    transform: none;
  }
}

/* ==========================================
   CART DRAWER PANEL & OVERLAY
   ========================================== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

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

.cart-header {
  padding: 20px;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-close {
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
  color: var(--white);
}

.cart-close:hover {
  color: var(--accent-orange);
}

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

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.cart-item img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px;
}

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

.cart-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-price {
  color: #d32f2f;
  font-weight: 700;
  font-size: 0.85rem;
}

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

.cart-qty-btn {
  width: 24px;
  height: 24px;
  background-color: var(--light);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-input {
  width: 30px;
  text-align: center;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-item-remove {
  color: var(--grey-dark);
  cursor: pointer;
  font-size: 0.95rem;
}

.cart-item-remove:hover {
  color: #d32f2f;
}

.cart-footer {
  border-top: 1.5px solid var(--border-color);
  padding: 20px;
  background-color: #fafbfc;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
}

.cart-total span:last-child {
  color: #d32f2f;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-actions .btn {
  width: 100%;
}

/* ==========================================
   PRODUCT DETAIL VIEW STYLING
   ========================================== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  background-color: var(--white);
  padding: 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-top: 20px;
}

.detail-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  height: 380px;
}

.detail-img-container img {
  max-height: 100%;
  object-fit: contain;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.detail-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 5px 2px;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f1f1f1;
}

.detail-thumbnails::-webkit-scrollbar {
  height: 5px;
}

.detail-thumbnails::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.detail-thumbnails::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.detail-thumbnails::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.thumb-item {
  width: 75px;
  height: 75px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--white);
  flex-shrink: 0;
}

.thumb-item:hover, .thumb-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(2, 178, 142, 0.15);
  transform: translateY(-2px);
}

.thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-info {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Fixes grid item overflow with white-space: nowrap children */
}

.detail-title {
  font-size: 2rem;
  color: var(--secondary);
  font-weight: 900;
  line-height: 1.25;
  margin: 10px 0 15px 0;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.detail-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: #d32f2f;
  margin-bottom: 15px;
}

.detail-short-desc {
  color: #4a5568;
  font-size: 1.02rem;
  margin-bottom: 25px;
}

.detail-purchase-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.detail-qty-select {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 44px;
}

.detail-qty-select .qty-btn {
  width: 40px;
  height: 100%;
  background-color: var(--light);
  font-weight: 700;
  font-size: 1.1rem;
}

.detail-qty-select input {
  width: 50px;
  text-align: center;
  border: none;
  font-weight: 700;
}

.detail-tabs {
  margin-top: 30px;
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  gap: 30px;
  margin-bottom: 25px;
}

.tab-nav-btn {
  padding: 12px 0;
  font-weight: 700;
  color: var(--grey-dark);
  font-size: 1.05rem;
  border-bottom: 3.5px solid transparent;
  transition: var(--transition);
}

.tab-nav-btn.active,
.tab-nav-btn:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h3, .tab-content h4 {
  color: var(--secondary);
  font-weight: 700;
  margin: 20px 0 10px 0;
}

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

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

/* ==========================================
   BLOG / NEWS CARD COMPONENT
   ========================================== */
.article-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

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

.article-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  gap: 15px;
  color: var(--grey-dark);
  font-size: 0.8rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.35;
  margin-bottom: 10px;
  height: 46px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-title a:hover {
  color: var(--primary);
}

.article-summary {
  color: #4a5568;
  font-size: 0.9rem;
  margin-bottom: 15px;
  height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.article-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-link:hover {
  color: var(--primary-hover);
  padding-left: 4px;
}

/* ==========================================
   FLOATING ACTION BUTTONS
   ========================================== */
.floating-widget-bar {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.widget-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 1.3rem;
  transition: var(--transition);
  cursor: pointer;
}

.widget-btn:hover {
  transform: scale(1.1);
}

.widget-btn.gotop {
  background-color: var(--secondary);
}

.widget-btn.zalo {
  background-color: #0084FF;
}

.widget-btn.call {
  background-color: #00E676;
}

/* ==========================================
   ADMIN DASHBOARD SPECIFIC STYLES (PRESERVED)
   ========================================== */
.admin-login {
  max-width: 400px;
  margin: 100px auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.admin-login h2 {
  color: var(--secondary);
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background-color: var(--white);
  border-color: var(--primary);
}

.admin-header {
  background-color: var(--secondary);
  color: var(--white);
  padding: 20px 0;
  margin-bottom: 40px;
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-title-row h1 {
  font-weight: 800;
  font-size: 1.8rem;
}

.admin-table-container {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow-x: auto;
  margin-bottom: 40px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: #f8fafc;
  color: var(--secondary);
  font-weight: 700;
}

.admin-table tr:hover td {
  background-color: #fafbf9;
}

.admin-product-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  background-color: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 3px;
}

.admin-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-badge.day { background-color: rgba(244, 162, 97, 0.15); color: var(--accent-orange); }
.admin-badge.night { background-color: rgba(42, 111, 151, 0.15); color: var(--accent-night); }
.admin-badge.lactoferrin { background-color: rgba(153, 188, 133, 0.15); color: var(--primary); }

.admin-actions {
  display: flex;
  gap: 10px;
}

.admin-actions .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* Modal Overlay & Modal Content */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 36, 87, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  width: 100%;
  max-width: 650px;
  padding: 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

.modal-title {
  color: var(--secondary);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* Review Summary styling for dynamic stars */
.reviews-summary-container {
  display: flex;
  background-color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 25px;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--border-color);
  margin-top: 15px;
}

.reviews-summary-score {
  text-align: center;
  flex: 1;
  border-right: 1px solid var(--border-color);
  padding-right: 20px;
}

.reviews-summary-score .average-score {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}

.reviews-stars-progress {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
}

.progress-bar-row span:first-child {
  width: 30px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.progress-bar-row span:last-child {
  width: 35px;
  text-align: right;
  color: var(--grey-dark);
}

.progress-bar-bg {
  flex: 1;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--accent-gold);
  border-radius: var(--radius-full);
}

.review-verified-badge {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================
   MOBILE & RESPONSIVE COMPATIBILITY MEDIA QUERIES
   ========================================== */

/* Tablet view styling */
@media (max-width: 1024px) {
  .carousel-title {
    font-size: 2.5rem;
  }
  .carousel-inner {
    height: 400px;
  }
  .brand-intro-grid {
    gap: 30px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-right-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-right-grid .footer-col:last-child {
    grid-column: span 2;
  }
}

/* Mobile Layout view styling */
@media (max-width: 768px) {
  /* Brand bar becomes horizontal scrollable block on mobile */
  .top-brand-bar .container {
    padding: 0;
    display: block;
  }
  
  .brand-menu-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    width: 100% !important;
    padding: 8px 15px;
    margin: 0;
    list-style: none;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbars */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .brand-menu-list::-webkit-scrollbar {
    display: none;
  }
  
  .brand-menu-list li {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto !important;
    padding: 0 12px;
    border-right: 1px solid var(--border-color);
  }
  
  .brand-menu-list li:last-child {
    border-right: none;
  }
  
  .brand-menu-list a {
    display: flex !important;
    align-items: center;
    white-space: nowrap !important;
  }
  
  .brand-hotline {
    display: none; /* Hide hotline to save horizontal space on mobile */
  }
  
  /* Collapsible Navigation Menu Drawer */
  .header-main {
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-menu > li > a::after {
    display: none !important;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .logo img {
    height: 38px;
  }
  
  .search-box {
    display: none; /* Hide standard header search box */
  }
  
  /* Mobile drawer nav-menu placement */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1500;
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .nav-menu > li {
    width: 100%;
    height: auto; /* Fixes vertical stretching / spacing issue */
    display: block;
  }
  
  .nav-menu > li > a {
    color: var(--dark);
    width: 100%;
    padding: 12px 16px;
    margin: 0;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
  }
  
  .nav-menu > li:hover > a,
  .nav-menu > li.active > a {
    background-color: rgba(42, 92, 218, 0.08);
    color: var(--primary);
  }
  
  .mobile-search-li {
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    display: block !important;
  }
  
  .mobile-search-li form {
    display: flex;
    position: relative;
  }
  
  .mobile-search-li input {
    width: 100%;
    padding: 12px 45px 12px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--light);
    color: var(--dark);
    font-size: 0.9rem;
    transition: var(--transition);
  }

  .mobile-search-li input:focus {
    background-color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
  }
  
  .mobile-search-li button {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Dropdowns on Mobile */
  .nav-menu .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 5px 0 5px 15px;
    width: 100%;
    transform: none;
    border-top: none;
    border-left: 2px solid var(--primary);
    border-radius: 0;
    margin-top: 5px;
    display: none; /* Toggled by JS */
  }

  .nav-menu .dropdown-menu li {
    width: 100%;
    height: auto;
    display: block;
  }

  .nav-menu .dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--grey-dark);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    border-radius: var(--radius-sm);
  }

  .nav-menu .dropdown-menu li a:hover {
    color: var(--primary);
    background-color: rgba(42, 92, 218, 0.04);
    padding-left: 16px;
  }
  
  .nav-menu li.open-dropdown .dropdown-menu {
    display: block;
  }
  
  /* Hero Carousel Mobile View */
  .carousel-inner {
    height: auto;
    padding: 40px 0;
  }
  
  .carousel-slide {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    flex-direction: column-reverse;
    text-align: center;
    height: 0;
    overflow: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  }

  .carousel-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
  }
  
  .carousel-content {
    padding-right: 0;
    margin-top: 25px;
  }
  
  .carousel-title {
    font-size: 2.1rem;
  }
  
  .carousel-desc {
    font-size: 0.95rem;
    margin: 0 auto 20px auto;
  }
  
  .carousel-buttons {
    justify-content: center;
    gap: 8px;
  }
  
  .carousel-buttons .btn {
    padding: 8px 16px;
    font-size: 0.75rem;
    white-space: nowrap;
    gap: 4px;
  }
  
  .carousel-image img {
    max-height: 250px;
  }
  
  .carousel-indicators-custom {
    display: none; /* Hides desktop indicators on mobile */
  }
  
  /* Stacked Grid Layouts */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .brand-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .brand-intro-left img {
    max-height: 250px;
  }
  
  .promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-right-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-right-grid .footer-col:last-child {
    grid-column: span 1;
  }
  
  .dealer-compact-row,
  .dealer-compact-row.row-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .btn-dealer-compact-submit {
    width: 100%;
  }
  
  /* Product Detail Page on Mobile */
  .product-detail-grid {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 25px;
    width: 100%;
    max-width: 100%;
  }
  
  .detail-info {
    width: 100%;
    max-width: 100%;
  }
  
  .detail-img-container {
    height: 280px;
  }

  .thumb-item {
    width: 65px;
    height: 65px;
    padding: 4px;
  }
  
  .detail-title {
    font-size: 1.5rem;
  }

  .detail-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .detail-purchase-row {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .detail-qty-select {
    justify-content: center;
    width: 100%;
  }

  .detail-qty-select input {
    flex-grow: 1;
  }
  
  .tab-nav {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 20px;
    scrollbar-width: none;
  }
  
  .tab-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-nav-btn {
    flex-shrink: 0;
    font-size: 0.95rem;
    padding: 10px 0;
  }
  
  /* Review section layout on mobile */
  .reviews-summary-container {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }
  
  .reviews-summary-score {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 15px;
    width: 100%;
  }
  
  .reviews-stars-progress {
    width: 100%;
  }
  
  /* EXACT 2-COLUMN GRID ON MOBILE */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .product-item-card {
    padding: 10px;
  }
  
  .card-thumb {
    height: 125px;
    margin-bottom: 8px;
  }
  
  .card-title {
    font-size: 0.85rem;
    height: 36px;
    margin-bottom: 6px;
  }
  
  .card-price-row {
    font-size: 0.95rem;
    gap: 6px;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .card-price-original {
    font-size: 0.8rem;
  }
  
  .card-add2cart-btn {
    padding: 8px;
    font-size: 0.78rem;
  }
  
  /* PURE CSS SWIPEABLE COLLECTION CAROUSEL ON MOBILE */
  .mobile-swipe-carousel {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 10px 5px 20px 5px;
    scrollbar-width: none; /* Hide scrollbars */
    -ms-overflow-style: none;
  }
  
  .mobile-swipe-carousel::-webkit-scrollbar {
    display: none;
  }
  
  .mobile-swipe-carousel .carousel-item {
    min-width: 200px;
    flex: 0 0 200px;
    scroll-snap-align: start;
  }
  
  .mobile-swipe-carousel .product-item-card {
    height: 100%;
  }
  
  /* Category Swipe Carousel */
  .categories-container.mobile-swipe-carousel .category-card {
    min-width: 150px;
    flex: 0 0 150px;
    padding: 15px 10px;
  }
  
  .categories-container.mobile-swipe-carousel .category-circle-img {
    width: 80px;
    height: 80px;
  }
  
  .categories-container.mobile-swipe-carousel .category-title {
    font-size: 0.9rem;
  }

  /* --- Mobile UI Enhancements & Fixes --- */

  /* Overriding inline padding for inner pages (about, blog, news) */
  main.section-padding {
    padding: 30px 15px !important;
    margin-top: 10px !important;
  }
  
  main.section-padding h1 {
    font-size: 1.6rem !important;
    margin-bottom: 20px !important;
  }

  main.section-padding h2 {
    font-size: 1.35rem !important;
  }

  .activity-title {
    font-size: 1.1rem !important;
  }

  /* Improve touch targets for cart quantity buttons */
  .cart-qty-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }
  
  .cart-qty-input {
    width: 38px !important;
    font-size: 0.9rem !important;
  }

  /* Refine floating widgets (smaller buttons & margins) */
  .floating-widget-bar {
    bottom: 15px !important;
    right: 15px !important;
    gap: 10px !important;
  }
  
  .widget-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.15rem !important;
  }
}

@media (max-width: 480px) {
  .carousel-title {
    font-size: 1.7rem;
  }
  .carousel-desc {
    font-size: 0.88rem;
  }
}

/* ==========================================
   FEATURED PRODUCTS TRIO SECTION
   ========================================== */
.featured-trio-section {
  padding: 50px 0;
  background-color: var(--white);
}

.featured-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.trio-card {
  border-radius: 20px;
  padding: 35px 25px 0 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 580px;
  cursor: pointer;
}

.trio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.trio-card.card-yellow {
  background-color: #ffd83b;
  background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%),
                    radial-gradient(circle at 90% 35%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 45%),
                    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 40%);
}

.trio-card.card-cyan {
  background-color: #12b6ec;
  background-image: radial-gradient(circle at 15% 15%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 55%),
                    radial-gradient(circle at 85% 30%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 40%),
                    radial-gradient(circle at 25% 65%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 45%);
}

.trio-card.card-grey {
  background-color: #939597;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%),
                    radial-gradient(circle at 80% 40%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 45%),
                    radial-gradient(circle at 35% 75%, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 40%);
}

.trio-title {
  font-size: 1.35rem;
  font-weight: 850;
  color: #111111;
  line-height: 1.3;
  margin-bottom: 15px;
}

.trio-title a {
  color: inherit;
  text-decoration: none;
}

.trio-title a:hover {
  color: var(--primary);
}

.trio-desc {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.8);
  line-height: 1.4;
  margin-bottom: 20px;
  text-align: center;
}

.trio-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  height: 30px;
}

.trio-price-original {
  font-size: 1rem;
  color: rgba(17, 17, 17, 0.6);
  text-decoration: line-through;
  font-weight: 500;
}

.trio-price-current {
  font-size: 1.25rem;
  color: #111111;
  font-weight: 800;
}

.trio-btn-row {
  margin-bottom: 25px;
  width: 100%;
}

.trio-btn {
  display: inline-block;
  width: 100%;
  max-width: 200px;
  padding: 11px 25px;
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.trio-btn:hover {
  background-color: #222222;
  transform: scale(1.02);
}

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

.trio-img-wrapper {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 250px;
  overflow: hidden;
}

.trio-img-wrapper img {
  max-width: 85%;
  max-height: 250px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

@media (max-width: 991px) {
  .featured-trio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .trio-title {
    font-size: 1.15rem;
  }
  .trio-img-wrapper {
    height: 200px;
  }
  .trio-img-wrapper img {
    max-height: 200px;
  }
}

@media (max-width: 768px) {
  .featured-trio-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 10px;
  }
  .trio-card {
    min-height: auto;
    padding: 30px 20px 0 20px;
  }
  .trio-img-wrapper {
    height: 220px;
  }
  .trio-img-wrapper img {
    max-height: 220px;
  }
}
