/* =============================================
   COMPONENTS — AromaLand
   components.css: Header, Hero, Features, Products,
   Steps, Testimonials, CTA, Channels, Footer, Float
   ============================================= */

/* ============ HEADER / NAV ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.nav {
  display: flex;
  align-items: center;
  height: 70px;
  gap: var(--space-6);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.nav__logo-icon { font-size: 1.6rem; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  position: relative;
  transition: color 0.2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
  border-radius: 2px;
}
.nav__link:hover,
.nav__link--active { color: var(--color-primary); }
.nav__link:hover::after,
.nav__link--active::after { width: 100%; }

.nav__cta { margin-left: var(--space-2); flex-shrink: 0; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer; padding: var(--space-2);
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(150deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, #5d9970 100%);
  padding: var(--space-16) 0 0;
  position: relative;
  overflow: clip;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -8%;
  width: 520px; height: 520px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 30%; left: -5%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  padding-bottom: var(--space-12);
  position: relative;
  z-index: 1;
}
.hero__text { color: #fff; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.95);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-5);
  backdrop-filter: blur(6px);
}
.hero__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: 1.18;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}
.hero__desc {
  font-size: var(--text-lg);
  opacity: 0.88;
  margin-bottom: var(--space-8);
  line-height: 1.75;
}
.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
/* override button colors inside hero */
.hero__actions .btn--primary {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: #fff;
}
.hero__actions .btn--primary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-primary-dark);
}
.hero__actions .btn--outline-white:hover { background: rgba(255,255,255,0.18); }

.hero__stats { display: flex; gap: var(--space-8); }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong { font-size: var(--text-2xl); font-weight: var(--font-bold); color: var(--color-accent); line-height: 1; margin-bottom: 2px; }
.hero__stat span { font-size: var(--text-xs); opacity: 0.75; text-transform: uppercase; letter-spacing: 0.05em; }

/* Bottle visual */
.hero__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.hero__bottles {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
}
.bottle { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); flex-shrink: 0; }

.bottle__img {
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.38)) drop-shadow(0 4px 8px rgba(0,0,0,0.22));
  max-width: none;
}
.bottle--main .bottle__img { height: 460px; width: auto; }
.bottle--side  .bottle__img { height: 340px; width: auto; }
.bottle--back  .bottle__img { opacity: 0.82; }

.hero__bottles:hover .bottle__img            { transform: translateY(-12px); filter: drop-shadow(0 24px 40px rgba(0,0,0,0.45)) drop-shadow(0 6px 12px rgba(0,0,0,0.25)); }
.hero__bottles:hover .bottle--back .bottle__img { transform: translateY(-7px); }

.bottle__label {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  font-weight: var(--font-medium);
  background: rgba(0,0,0,0.22);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* hero wave */
.hero__wave { margin-top: -2px; line-height: 0; }
.hero__wave svg { width: 100%; }

/* ============ FEATURES ============ */
.features {
  padding: var(--space-20) 0;
  background: var(--color-bg);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}
.feature-card__icon { font-size: 2.5rem; display: block; margin-bottom: var(--space-4); }
.feature-card__title { font-size: var(--text-lg); font-weight: var(--font-semibold); margin-bottom: var(--space-3); }
.feature-card__desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }

/* ============ PRODUCTS ============ */
.products {
  padding: var(--space-20) 0;
  background: var(--color-secondary);
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

/* Product Card */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card__badge {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: var(--color-primary); color: #fff;
  font-size: 11px; font-weight: var(--font-semibold);
  padding: 3px 10px; border-radius: var(--radius-full); z-index: 2;
}
.product-card__badge--new  { background: #3B82F6; }
.product-card__badge--sale { background: #EF4444; }

/* Product image zone */
.product-card__img {
  height: 240px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.product-card:hover .product-card__img .product-bottle { transform: translateY(-6px) scale(1.04); }
.product-card__img img {
  height: 205px;
  width: auto;
  object-fit: contain;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}
.product-card:hover .product-card__img img {
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.35));
}
.product-card:hover .product-card__img img { transform: translateY(-6px) scale(1.04); }


/* Per-product colour gradients */
.product-img--coco        { background: linear-gradient(145deg, #c8edbc, #8dcc7d); }
.product-img--hygien      { background: linear-gradient(145deg, #2a2a40, #111124); }
.product-img--huyen-bi    { background: linear-gradient(145deg, #c882e0, #6a1d88); }
.product-img--ban-mai     { background: linear-gradient(145deg, #b8e4f2, #6bb8d4); }
.product-img--nang-mai    { background: linear-gradient(145deg, #ffe9a0, #f5c842); }
.product-img--phan-trang  { background: linear-gradient(145deg, #f5e4f8, #d8aae0); }
.product-img--combo       { background: linear-gradient(145deg, #e8f5e9, #a5d6a7); }
.product-img--hygien-hong { background: linear-gradient(145deg, #ffd6e8, #e8609a); }
.product-img--hygien-xanh { background: linear-gradient(145deg, #c8e6f5, #3a86c8); }
.product-img--hygien-trang{ background: linear-gradient(145deg, #f0f0f0, #d4d4d4); }
.product-img--aromacharme { background: linear-gradient(145deg, #f5deb3, #c89040); }

/* CSS bottle */
.product-bottle {
  width: 78px; height: 148px;
  background: rgba(255,255,255,0.32);
  border-radius: 38px 38px 20px 20px;
  position: relative;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22), inset 0 2px 0 rgba(255,255,255,0.5);
  transition: transform 0.35s ease;
  flex-shrink: 0;
}
/* cap */
.product-bottle::before {
  content: '';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 18px;
  background: rgba(255,255,255,0.32);
  border-radius: 5px 5px 0 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.12);
}
/* shine streak */
.product-bottle::after {
  content: '';
  position: absolute; top: 16%; left: 13%;
  width: 15%; height: 52%;
  background: rgba(255,255,255,0.45);
  border-radius: var(--radius-full);
}

/* Combo: grid 2×2 ảnh thật */
.product-card--combo .product-card__img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: var(--space-3);
  align-items: center;
  justify-items: center;
}
.product-card--combo .product-card__img img {
  height: 96px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
  transition: transform 0.3s ease;
}
.product-card:hover .product-card--combo .product-card__img img,
.product-card--combo:hover .product-card__img img {
  transform: scale(1.06);
}

.product-card__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex; flex-direction: column; flex: 1;
}
.product-card__name {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-card__scent {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.4;
  flex: 1;
}
.product-card__sizes {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.size-tag {
  font-size: 11px; padding: 3px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer; color: var(--color-text-muted);
  transition: var(--transition);
  min-height: 24px; display: inline-flex; align-items: center;
}
.size-tag--active, .size-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(74,124,89,0.08);
}
.product-card__footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: var(--space-2);
  margin-top: auto;
}
.product-card__price { display: flex; flex-direction: column; gap: 2px; }
.price-current { font-size: var(--text-lg); font-weight: var(--font-bold); color: var(--color-primary-dark); line-height: 1; }
.price-old { font-size: var(--text-xs); color: var(--color-text-muted); text-decoration: line-through; }

.products__more { text-align: center; }

/* ============ HOW TO USE ============ */
.how-to-use {
  padding: var(--space-20) 0;
  background: var(--color-bg);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 44px; left: calc(16.67% + 28px); right: calc(16.67% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent), var(--color-primary-light));
  opacity: 0.3;
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }

.step__number {
  width: 56px; height: 56px;
  background: var(--color-primary); color: #fff;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl); font-weight: var(--font-bold);
  margin: 0 auto var(--space-5);
  box-shadow: 0 4px 14px rgba(74,124,89,0.35);
}
.step__icon { font-size: 2rem; display: block; margin-bottom: var(--space-4); }
.step__title { font-size: var(--text-xl); font-weight: var(--font-semibold); margin-bottom: var(--space-3); }
.step__desc { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.7; }

/* ============ TESTIMONIALS ============ */
.testimonials {
  padding: var(--space-20) 0;
  background: var(--color-primary);
}
.testimonials .section-title { color: #fff; }
.testimonials .section-desc  { color: rgba(255,255,255,0.75); }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.testimonial {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  backdrop-filter: blur(6px);
  transition: var(--transition);
}
.testimonial:hover { background: rgba(255,255,255,0.16); transform: translateY(-5px); }
.testimonial__stars { color: var(--color-accent); font-size: var(--text-lg); letter-spacing: 3px; margin-bottom: var(--space-4); }
.testimonial__text { color: rgba(255,255,255,0.88); font-size: var(--text-sm); line-height: 1.75; margin-bottom: var(--space-6); font-style: italic; }
.testimonial__author { display: flex; align-items: center; gap: var(--space-3); color: #fff; }
.testimonial__author strong { display: block; font-size: var(--text-sm); font-weight: var(--font-semibold); }
.testimonial__author span  { font-size: var(--text-xs); opacity: 0.65; }
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-base); font-weight: var(--font-bold); color: #fff;
  flex-shrink: 0;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  padding: var(--space-20) 0;
  background: linear-gradient(130deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute;
  top: -120px; right: -80px;
  width: 380px; height: 380px;
  background: rgba(255,255,255,0.08); border-radius: 50%;
}
.cta-banner::after {
  content: ''; position: absolute;
  bottom: -80px; left: -60px;
  width: 260px; height: 260px;
  background: rgba(255,255,255,0.06); border-radius: 50%;
}
.cta-banner__content { text-align: center; position: relative; z-index: 1; }
.cta-banner__title {
  font-size: var(--text-3xl); font-weight: var(--font-bold);
  color: #fff; margin-bottom: var(--space-4); line-height: 1.25;
}
.cta-banner__desc {
  font-size: var(--text-lg); color: rgba(255,255,255,0.88);
  margin-bottom: var(--space-8); max-width: 580px;
  margin-left: auto; margin-right: auto;
}
.cta-banner__actions {
  display: flex; gap: var(--space-4);
  justify-content: center; flex-wrap: wrap;
}
/* btn override inside cta (dark accent bg) */
.cta-banner .btn--primary {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.cta-banner .btn--primary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============ SOCIAL CHANNELS ============ */
.channels {
  padding: var(--space-20) 0;
  background: var(--color-surface);
}
.channels__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.channel-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  transition: var(--transition);
  color: var(--color-text);
}
.channel-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); border-color: var(--color-primary-light); }

.channel-card__icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}
.channel-card__icon--shopee  { background: #fff0ee; }
.channel-card__icon--tiktok  { background: #f0f0f0; }
.channel-card__icon--facebook{ background: #eef4ff; }
.channel-card__icon--zalo    { background: #e8f2ff; }

.channel-card__name   { font-size: var(--text-lg); font-weight: var(--font-bold); margin-bottom: var(--space-1); }
.channel-card__handle { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.channel-card__cta    { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-primary); }

/* ============ FOOTER ============ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding-top: var(--space-16);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer__logo {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xl); font-weight: var(--font-bold); color: #fff;
  margin-bottom: var(--space-4);
}
.footer__tagline {
  font-size: var(--text-sm); opacity: 0.65; margin-bottom: var(--space-6); line-height: 1.6; max-width: 280px;
}
.footer__socials { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-base); font-weight: var(--font-bold); color: #fff;
  transition: var(--transition);
}
.social-icon:hover { background: rgba(255,255,255,0.20); transform: translateY(-2px); }
.social-icon--fb  { font-style: normal; }
.social-icon--tt  { font-style: normal; }

.footer__heading {
  font-size: var(--text-xs); font-weight: var(--font-semibold); color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__links a { font-size: var(--text-sm); color: rgba(255,255,255,0.68); transition: color 0.2s; line-height: 1.5; }
.footer__links a:hover { color: #fff; }
.footer__contact-list li { display: flex; align-items: flex-start; gap: var(--space-2); }

.footer__bottom {
  padding: var(--space-6) 0;
  display: flex; align-items: center; justify-content: center;
}
.footer__bottom p { font-size: var(--text-sm); color: rgba(255,255,255,0.4); text-align: center; }

/* ============ FLOATING ZALO ============ */
.zalo-float {
  position: fixed;
  bottom: var(--space-8); right: var(--space-6);
  height: 48px;
  background: #0068FF;
  color: #fff;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-5) 0 var(--space-4);
  font-size: var(--text-sm); font-weight: var(--font-bold);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,104,255,0.45);
  z-index: 999;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 3px solid #fff;
  text-decoration: none;
}
.zalo-float__icon {
  width: 26px; height: 26px;
  background: #fff;
  color: #0068FF;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  flex-shrink: 0;
}
.zalo-float:hover { transform: scale(1.06); box-shadow: 0 6px 28px rgba(0,104,255,0.55); }
.zalo-float::before {
  content: '';
  position: absolute; inset: -5px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(0,104,255,0.35);
  animation: zalo-pulse 2s infinite;
}
@keyframes zalo-pulse {
  0%   { transform: scale(1);   opacity: 1; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
