:root {
  --c-bg: transparent;
  --c-bg-light: transparent;
  --c-gradient: linear-gradient(135deg, #cee6f9 0%, #ffffff 50%, #aeccec 100%);
  --c-brand: #1f1b62;
  --c-brand-hover: #141147;
  --c-gold: #C68A4C;
  --c-gold-dark: #B87B37;
  --c-lavender: #8E63BB;
  --c-brown: #4A2E1B;
  --c-text: #2c2c2c;
  --c-text-muted: #555;
  --c-white: #FFFFFF;

  --font-display: 'iCielBC Downtown', 'Playfair Display', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Poppins', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
}

@font-face {
  font-family: 'iCielBC Downtown';
  src: url('assets/iCielBCDowntown-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/FzPoppins/FZ Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/FzPoppins/FZ Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/FzPoppins/FZ Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

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

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-gradient);
  background-attachment: fixed; /* Keep gradient fixed while scrolling for nice effect */
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Utility */
.section-title {
  font-family: var(--font-display);
  color: var(--c-brand);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.section-subtitle {
  font-family: var(--font-script);
  color: var(--c-brown);
  font-size: 2rem;
  display: block;
}
.section-desc {
  color: var(--c-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
}
.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- TOPBAR --- */
.topbar {
  background-color: var(--c-brown);
  color: var(--c-white);
  font-size: 0.9rem;
  padding: 8px 0;
}
.topbar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  text-align: center;
}
.topbar-divider {
  opacity: 0.5;
}

/* --- HEADER --- */
.header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  background: var(--c-gold);
  color: var(--c-white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  border-radius: var(--radius-sm);
}
.logo-text-group {
  display: flex;
  flex-direction: column;
}
.logo-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--c-brand);
  line-height: 1.2;
}
.logo-sub {
  font-size: 0.75rem;
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.logo-frame {
  border: 1px solid rgba(31, 27, 98, 0.25);
  border-radius: 8px;
  background: #ffffff;
  padding: 5px 15px;
}
.logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
}
.footer-logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-brand);
  transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--c-brand-hover);
  font-weight: bold;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid #ddd;
}
.lang-btn {
  background: none;
  border: 2px solid transparent;
  padding: 2px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.5;
}
.lang-btn img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.lang-btn:hover {
  opacity: 0.8;
}
.lang-btn.active {
  opacity: 1;
  border-color: var(--c-gold);
}
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-brand);
  position: relative;
  display: flex;
  align-items: center;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--c-gold);
  color: var(--c-white);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}
.btn-cta {
  background: var(--c-brand);
  color: var(--c-white);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-cta:hover {
  background: var(--c-brand-hover);
}
.btn-outline {
  background: transparent;
  color: var(--c-brown);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--c-brown);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-outline:hover {
  background: var(--c-brown);
  color: var(--c-white);
}

/* --- HERO --- */
.hero {
  background-color: var(--c-bg);
  padding: 0;
  overflow: hidden;
  width: 100%;
}
.hero-banner-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  display: block;
}
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-actions-overlay {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- SECTION 1: HERBAL ACCORDION --- */
.section-herbal {
  padding: 80px 0;
  background-color: var(--c-white);
}
.herbal-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}
.herbal-visual {
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
}
.herbal-img-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.5s ease;
}
.herbal-visual:hover .herbal-img-large {
  transform: scale(1.05);
}
.accordion-item {
  border: 1px solid #E5E5E5;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.accordion-item.active {
  border-color: var(--c-gold);
  box-shadow: var(--shadow-sm);
}
.accordion-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--c-white);
}
.acc-title {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--c-brown);
}
.acc-icon {
  color: var(--c-gold);
  transition: transform 0.3s ease;
}
.accordion-item.active .acc-icon {
  transform: rotate(180deg);
}
.accordion-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #ffffff;
}
.accordion-item.active .accordion-body {
  padding: 0 20px 20px 20px;
  max-height: 500px;
}
.accordion-body ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}
.accordion-body li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* --- SECTION 2: PRODUCTS --- */
.section-products {
  padding: 80px 0;
  background-color: var(--c-bg);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.product-card {
  background: var(--c-white);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--c-white);
}
.lavender-badge { background: var(--c-lavender); }
.best-seller { background: var(--c-gold); }

.product-img-wrapper {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.product-img-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--c-brand);
  margin-bottom: 8px;
}
.product-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 15px;
}
.star-filled {
  color: #F59E0B;
  fill: #F59E0B;
  width: 16px;
  height: 16px;
}
.volume-select {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.vol-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: var(--c-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.vol-btn.active {
  background: var(--c-brand);
  color: var(--c-white);
  border-color: var(--c-brand);
}
.product-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 15px;
}
.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-gold);
}
.btn-add-cart {
  background: var(--c-brand);
  color: var(--c-white);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}
.btn-add-cart:hover {
  background: var(--c-brand-hover);
}

/* --- SECTION 3: DETAILS --- */
.section-details {
  padding: 80px 0;
  background-color: var(--c-white);
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.details-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.details-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  cursor: grab;
}
.details-carousel:active {
  cursor: grabbing;
}
.slide-item {
  min-width: 100%;
  box-sizing: border-box;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-dots .dot.active {
  background: var(--c-gold);
}
.step-title {
  font-size: 1.3rem;
  color: var(--c-brand);
  margin-bottom: 20px;
  margin-top: 20px;
}
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.step-num {
  background: var(--c-brand);
  color: var(--c-white);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}
.detail-img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

/* --- SECTION 4: REVIEWS --- */
.section-reviews {
  padding: 80px 0;
  background-color: var(--c-bg-light);
}
.overall-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.star-filled.large {
  width: 24px;
  height: 24px;
}
.score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-brand);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.review-card {
  background: var(--c-white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.avatar {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--c-gold);
}
.role {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.verified {
  color: #10B981;
  font-weight: 500;
}
.stars {
  color: #F59E0B;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.review-text {
  font-style: italic;
  color: var(--c-text);
}

/* --- SECTION 5: NEWS --- */
.section-news {
  padding: 80px 0;
  background-color: var(--c-white);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
}
.news-img {
  height: 220px;
  background-color: #E5E5E5;
  background-size: cover;
  background-position: center;
}
.news-img.bg-1 {
  background-image: url('assets/news_1_routine.jpg');
}
.news-img.bg-2 {
  background-image: url('assets/news_2_thien_tai.jpg');
}
.news-img.bg-3 {
  background-image: url('assets/news_3_thao_duoc.jpg');
}
.news-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.news-content h3 {
  font-size: 1.05rem;
  color: var(--c-brand);
  margin-bottom: 15px;
  line-height: 1.45;
  font-weight: 700;
}
.read-more {
  color: var(--c-gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}
.read-more:hover {
  text-decoration: underline;
}

/* --- SECTION 6: CONTACT --- */
.section-contact {
  padding: 80px 0;
  background-color: var(--c-bg);
}
.contact-wrapper {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-md);
}
.contact-info {
  background: var(--c-brand);
  color: var(--c-white);
  padding: 50px;
}
.contact-info .section-title {
  color: var(--c-white);
  font-size: 2rem;
  margin-bottom: 30px;
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1rem;
  line-height: 1.5;
}
.info-list i {
  color: var(--c-gold);
  flex-shrink: 0;
}
.contact-form {
  padding: 50px;
}
.contact-form h3 {
  font-size: 1.5rem;
  color: var(--c-brand);
  margin-bottom: 25px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--c-gold);
}
.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--c-brand);
  color: var(--c-white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-submit:hover {
  background: var(--c-brand-hover);
}

/* --- FOOTER --- */
.footer {
  background: var(--c-brand);
  color: var(--c-white);
  padding: 40px 0 20px;
}
.footer-bottom {
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  color: var(--c-white);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* --- TOAST --- */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--c-brown);
  color: var(--c-white);
  padding: 15px 25px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast i {
  color: #10B981;
}

/* --- FLOATING CTAS --- */
.floating-ctas {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}
.cta-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  text-decoration: none;
}
.cta-btn:hover {
  transform: scale(1.1);
}
.icon-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fff;
}
.btn-phone .icon-wrapper {
  background-color: #4CAF50;
  color: white;
  animation: pulse-green 2s infinite;
}
.btn-phone i {
  width: 24px;
  height: 24px;
}
.cta-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Tooltip on hover */
.cta-btn::before {
  content: attr(title);
  position: absolute;
  right: 60px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cta-btn:hover::before {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-grid, .herbal-grid, .details-grid, .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none; /* simple mobile handling */
  }
  .hero-title {
    font-size: 3rem;
  }
}
