/* ==============================================
   SECTIONS.CSS — All page sections & shared
   section-level components not covered by
   products.css or hero.css
   Yến Sào Yến Duyên
   ============================================== */


/* ==============================================
   2. WHY CHOOSE US SECTION
   ============================================== */

.why-us {
  position: relative;
  overflow: hidden;
  background: var(--color-brand);
}

/* Subtle dot pattern overlay */
.why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(201, 162, 75, 0.06) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
}

.why-us .section-header {
  position: relative;
  z-index: 1;
}

.why-us-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-40);
}

.why-us-item {
  text-align: center;
  padding: var(--space-32) var(--space-24);
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 75, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-base);
}

.why-us-item:hover {
  background: rgba(201, 162, 75, 0.07);
  border-color: rgba(201, 162, 75, 0.25);
  transform: translateY(-6px);
}

.why-us-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: var(--radius-lg);
  color: var(--color-gold);
  margin: 0 auto var(--space-24);
  transition: all var(--transition-base);
}

.why-us-item:hover .why-us-icon {
  background: rgba(201, 162, 75, 0.22);
  transform: scale(1.08);
}

.why-us-item h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-12);
}

.why-us-item p {
  font-size: var(--text-sm);
  color: rgba(250, 246, 241, 0.65);
  line-height: var(--leading-relaxed);
}

@media (max-width: 1023px) {
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-24);
  }
}

@media (max-width: 479px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .why-us-item {
    padding: var(--space-24) var(--space-20);
  }
}


/* ==============================================
   3. TESTIMONIALS SECTION
   (carousel controls moved here from base.css)
   ============================================== */

.testimonials {
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
}

/* Hoa văn chim yến pattern */
.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 20 C35 8,20 8,15 18 C20 14,28 18,40 20 C52 18,60 14,65 18 C60 8,45 8,40 20Z' fill='%23D4AF37' fill-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.testimonials .section-header,
.testimonials .testimonials-carousel,
.testimonials .carousel-controls {
  position: relative;
  z-index: 1;
}

/* Carousel wrapper */
.testimonials-carousel {
  max-width: 760px;
  margin: 0 auto var(--space-40);
  min-height: 260px;
}

.testimonial-slide {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.testimonial-slide[hidden] {
  display: none;
}

/* Card */
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-48) var(--space-64);
  box-shadow: var(--shadow-lg);
  border: var(--border-subtle);
  position: relative;
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 88px;
  line-height: 0.6;
  color: var(--color-gold);
  opacity: 0.25;
  position: absolute;
  top: var(--space-32);
  left: var(--space-40);
  user-select: none;
  pointer-events: none;
}

.testimonial-text {
  font-size: var(--text-md);
  font-style: italic;
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-32);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-gold);
  flex-shrink: 0;
  background: var(--color-gold-pale);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info {
  text-align: left;
}

.testimonial-info strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-20);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: var(--border-light);
  border-radius: 50%;
  color: var(--color-text-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--color-selected);
  border-color: var(--color-selected);
  color: var(--color-white);
  transform: scale(1.06);
  box-shadow: var(--shadow-brand);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.carousel-dots {
  display: flex;
  gap: var(--space-8);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-brand-light);
  opacity: 0.35;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  padding: 0;
}

.carousel-dot.active,
.carousel-dot[aria-selected="true"] {
  background: var(--color-selected);
  opacity: 1;
  transform: scale(1.3);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .testimonial-card {
    padding: var(--space-32) var(--space-24);
  }

  .testimonial-text {
    font-size: var(--text-base);
  }

  .testimonial-author {
    justify-content: flex-start;
  }

  .testimonial-stars {
    margin-left: 0;
    margin-top: var(--space-8);
    flex-basis: 100%;
  }

  .testimonials-carousel {
    min-height: auto;
  }
}


/* ==============================================
   4. GIFT SETS SECTION
   ============================================== */

.gift-sets {
  background: var(--color-surface);
}

.gift-sets-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
}

.gift-set-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: var(--border-subtle);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.gift-set-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.gift-set-card--reverse {
  direction: rtl;
}

.gift-set-card--reverse > * {
  direction: ltr;
}

/* Image */
.gift-set-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gift-set-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.gift-set-card:hover .gift-set-img img {
  transform: scale(1.04);
}

/* Content */
.gift-set-content {
  padding: var(--space-48) var(--space-64) var(--space-48) var(--space-48);
  background: var(--color-gold-pale);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-16);
}

.gift-set-card--reverse .gift-set-content {
  padding: var(--space-48) var(--space-48) var(--space-48) var(--space-64);
}

.gift-set-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  background: var(--color-gold-pale);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  width: fit-content;
}

.gift-set-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 2.5vw, var(--text-3xl));
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--leading-snug);
  margin: 0;
}

.gift-set-content > p {
  font-size: var(--text-base);
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.gift-set-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.gift-set-includes li {
  position: relative;
  padding: var(--space-8) 0 var(--space-8) var(--space-24);
  font-size: var(--text-sm);
  color: var(--color-text-medium);
  border-bottom: 1px solid rgba(140, 128, 116, 0.1);
  line-height: var(--leading-snug);
}

.gift-set-includes li:last-child {
  border-bottom: none;
}

.gift-set-includes li::before {
  content: '✦';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gold);
  font-size: 10px;
}

.gift-set-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  margin-top: var(--space-4);
}

.price-from {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.price-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

@media (max-width: 1023px) {
  .gift-set-card,
  .gift-set-card--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .gift-set-content,
  .gift-set-card--reverse .gift-set-content {
    padding: var(--space-32) var(--space-32);
  }

  .gift-set-img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767px) {
  .gift-set-content,
  .gift-set-card--reverse .gift-set-content {
    padding: var(--space-24) var(--space-24);
    gap: var(--space-12);
  }

  .gift-sets-list {
    gap: var(--space-32);
  }
}


/* ==============================================
   5. BLOG / ARTICLES SECTION
   ============================================== */

.blog-section {
  background: var(--color-cream);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
}

.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: var(--border-subtle);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img-link {
  display: block;
  overflow: hidden;
}

.blog-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-cream);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

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

.blog-card-body {
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-12);
}

.blog-category {
  display: inline-block;
  padding: 3px 12px;
  background: var(--color-gold-pale);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  width: fit-content;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
  margin: 0;
}

.blog-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-title a:hover {
  color: var(--color-selected);
}

.blog-title a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.blog-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-selected);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
  margin-top: auto;
  width: fit-content;
}

.blog-read-more:hover {
  gap: var(--space-8);
  color: var(--color-selected-hover);
}

.blog-read-more:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 1023px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-24);
  }
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-20);
  }

  .blog-card-body {
    padding: var(--space-20);
  }
}


/* ==============================================
   6. NEWSLETTER SECTION
   ============================================== */

.newsletter {
  background: var(--color-brand-medium);
  position: relative;
  overflow: hidden;
}

/* Subtle pattern */
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(201, 162, 75, 0.07) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: center;
}

.newsletter-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 3vw, var(--text-4xl));
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-16);
  line-height: var(--leading-snug);
}

.newsletter-text p {
  font-size: var(--text-md);
  color: rgba(250, 246, 241, 0.78);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.newsletter-text strong {
  color: var(--color-gold);
  font-weight: 700;
}

/* Form */
.newsletter-form {
  width: 100%;
}

.newsletter-input-group {
  display: flex;
  gap: var(--space-12);
}

.newsletter-input-group input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  font-size: var(--text-base);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.newsletter-input-group input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-group input[type="email"]:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2);
}

.newsletter-note {
  font-size: var(--text-xs);
  color: rgba(250, 246, 241, 0.5);
  margin-top: var(--space-12);
  margin-bottom: 0;
}

/* Success message */
.newsletter-success {
  display: none;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-16) var(--space-20);
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid rgba(46, 125, 50, 0.4);
  border-radius: var(--radius-sm);
  color: #a5d6a7;
  font-size: var(--text-sm);
  font-weight: 500;
}

.newsletter-success.visible {
  display: flex;
}

@media (max-width: 1023px) {
  .newsletter-inner {
    gap: var(--space-40);
  }
}

@media (max-width: 767px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-input-group .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==============================================
   7. ABOUT (GIỚI THIỆU) PAGE SECTIONS
   ============================================== */

/* Story section */
.story-section {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-gold-pale) 100%);
}

.story-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-80);
  align-items: center;
}

.story-text .about-para {
  font-size: var(--text-md);
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-20);
}

/* Certifications */
.certs-section {
  background: var(--color-cream);
}

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

.cert-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: var(--border-light);
  padding: var(--space-32) var(--space-24);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.cert-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cert-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-16);
  color: var(--color-gold);
}

.cert-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.cert-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Process steps */
.process-section {
  background: var(--color-surface);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-24);
  position: relative;
}

/* Connecting line */
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(10% + var(--space-32));
  right: calc(10% + var(--space-32));
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold) 100%);
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-20);
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.process-step:hover .process-step-num {
  background: var(--color-gold);
  color: var(--color-brand);
  transform: scale(1.08);
}

.process-step h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Team */
.team-section {
  background: var(--color-cream);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-40);
}

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

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-20);
  border: 3px solid var(--color-gold);
  box-shadow: var(--shadow-md);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.team-role {
  font-size: var(--text-sm);
  color: var(--color-gold);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-12);
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

@media (max-width: 1023px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-48);
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps::before {
    display: none;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}


/* ==============================================
   8. CONTACT / LIEN HE PAGE
   ============================================== */

.contact-section {
  background: var(--color-cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: start;
}

.contact-info-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-48);
  box-shadow: var(--shadow-md);
  border: var(--border-subtle);
}

.contact-info-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-32);
  color: var(--color-text);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  margin-bottom: var(--space-40);
}

.contact-info-item {
  display: flex;
  gap: var(--space-16);
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  flex-shrink: 0;
}

.contact-info-content strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-info-content a,
.contact-info-content address {
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
  font-style: normal;
  line-height: var(--leading-snug);
  transition: color var(--transition-fast);
}

.contact-info-content a:hover {
  color: var(--color-selected);
}

/* Map embed */
.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-light);
  box-shadow: var(--shadow-sm);
  height: 260px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Contact form */
.contact-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-48);
  box-shadow: var(--shadow-md);
  border: var(--border-subtle);
}

.contact-form-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-32);
  color: var(--color-text);
}

@media (max-width: 1023px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-40);
  }
}

@media (max-width: 767px) {
  .contact-info-card,
  .contact-form-card {
    padding: var(--space-32) var(--space-24);
  }
}


/* ==============================================
   9. ORDER FORM (dat-hang.html)
   ============================================== */

.order-section {
  background: var(--color-cream);
  padding-top: var(--space-64);
  padding-bottom: var(--space-96);
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-48);
  align-items: start;
}

.order-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-48);
  box-shadow: var(--shadow-md);
  border: var(--border-subtle);
}

.order-form-title {
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.order-form-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-40);
}

/* Progress steps */
.order-steps {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-48);
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  flex: 1;
  position: relative;
}

.order-step::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--color-gold-pale);
}

.order-step:last-child::after {
  display: none;
}

.order-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-gold-pale);
  border: 2px solid var(--color-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-brand-light);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.order-step.active .order-step-circle {
  background: var(--color-selected);
  border-color: var(--color-selected);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(31, 92, 78, 0.25);
}

.order-step.done .order-step-circle {
  background: var(--color-success);
  border-color: var(--color-success);
  color: var(--color-white);
}

.order-step.done::after {
  background: var(--color-success);
  opacity: 0.4;
}

.order-step-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  line-height: var(--leading-snug);
}

.order-step.active .order-step-label {
  color: var(--color-selected);
  font-weight: 600;
}

/* Confirm method radio */
.confirm-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  margin-top: var(--space-8);
}

.confirm-method-label {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-16) var(--space-20);
  background: var(--color-cream);
  border: 2px solid var(--color-gold-pale);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.confirm-method-label:hover {
  border-color: var(--color-brand-light);
  background: var(--color-gold-pale);
}

.confirm-method-label input[type="radio"] {
  accent-color: var(--color-selected);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.confirm-method-label input[type="radio"]:checked + span {
  color: var(--color-selected);
  font-weight: 600;
}

.confirm-method-label:has(input:checked) {
  border-color: var(--color-selected);
  background: rgba(31, 92, 78, 0.04);
}

.confirm-method-label span {
  font-size: var(--text-sm);
  color: var(--color-text-medium);
  line-height: var(--leading-snug);
}

/* Order summary sidebar */
.order-summary {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  box-shadow: var(--shadow-md);
  border: var(--border-subtle);
  position: sticky;
  top: calc(var(--header-height) + var(--space-32));
}

.order-summary-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-24);
  padding-bottom: var(--space-16);
  border-bottom: var(--border-light);
}

.order-summary-item {
  display: flex;
  gap: var(--space-12);
  padding: var(--space-12) 0;
  border-bottom: 1px solid rgba(140, 128, 116, 0.08);
}

.order-summary-item:last-of-type {
  border-bottom: none;
}

.order-summary-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-cream);
  border: var(--border-light);
}

.order-summary-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-summary-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-summary-item-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-summary-item-qty {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.order-summary-item-price {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 1023px) {
  .order-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
    order: -1;
  }

  .order-form-card {
    padding: var(--space-32) var(--space-24);
  }
}

@media (max-width: 767px) {
  .confirm-methods {
    grid-template-columns: 1fr;
  }

  .order-steps {
    margin-bottom: var(--space-32);
  }

  .order-step-label {
    display: none;
  }
}


/* ==============================================
   10. THANK YOU PAGE (dat-hang-thanh-cong.html)
   ============================================== */

.thankyou-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background: var(--color-cream);
  padding: var(--space-80) 0;
}

.thankyou-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-64);
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: var(--border-subtle);
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.1);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-24);
}

.thankyou-card h1 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  color: var(--color-text);
  margin-bottom: var(--space-16);
}

.thankyou-card > p {
  font-size: var(--text-md);
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-32);
}

.thankyou-order-id {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-24);
  background: var(--color-cream);
  border: var(--border-gold);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-brand);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-40);
}

.thankyou-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.thankyou-zalo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  padding: 16px var(--space-32);
  background: #0068ff;
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 104, 255, 0.3);
}

.thankyou-zalo-btn:hover {
  background: #0055cc;
  transform: translateY(-2px);
}

.thankyou-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  padding: 16px var(--space-32);
  background: var(--color-surface);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
}

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

@media (max-width: 767px) {
  .thankyou-card {
    padding: var(--space-40) var(--space-24);
  }
}


/* ==============================================
   11. CHINH SACH / POLICY PAGE
   ============================================== */

.policy-section {
  background: var(--color-cream);
  padding-top: var(--space-64);
  padding-bottom: var(--space-96);
}

.policy-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-48);
  align-items: start;
}

/* Sticky sidebar nav */
.policy-nav {
  position: sticky;
  top: calc(var(--header-height) + var(--space-32));
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  border: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.policy-nav-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-medium);
  margin-bottom: var(--space-16);
}

.policy-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.policy-nav-link {
  display: block;
  padding: var(--space-8) var(--space-12);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
}

.policy-nav-link:hover,
.policy-nav-link.active {
  color: var(--color-selected);
  border-left-color: var(--color-selected);
  background: rgba(31, 92, 78, 0.04);
  padding-left: calc(var(--space-12) + var(--space-4));
}

/* Policy content */
.policy-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-48);
  box-shadow: var(--shadow-sm);
  border: var(--border-subtle);
}

.policy-block {
  padding-bottom: var(--space-48);
  margin-bottom: var(--space-48);
  border-bottom: var(--border-light);
}

.policy-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.policy-block h2 {
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-24);
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.policy-block h2 svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

.policy-block h3 {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin: var(--space-24) 0 var(--space-12);
}

.policy-block p {
  font-size: var(--text-base);
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-16);
}

.policy-block ul,
.policy-block ol {
  padding-left: var(--space-24);
  margin-bottom: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.policy-block li {
  font-size: var(--text-base);
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-24) 0;
  font-size: var(--text-sm);
}

.policy-table th {
  background: var(--color-cream);
  padding: var(--space-12) var(--space-16);
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  border: 1px solid rgba(140, 128, 116, 0.2);
}

.policy-table td {
  padding: var(--space-12) var(--space-16);
  color: var(--color-text-medium);
  border: 1px solid rgba(140, 128, 116, 0.12);
  vertical-align: top;
}

.policy-table tr:nth-child(even) td {
  background: rgba(250, 246, 241, 0.6);
}

@media (max-width: 1023px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-nav {
    position: static;
  }

  .policy-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  .policy-nav-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-full);
  }

  .policy-nav-link:hover,
  .policy-nav-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--color-selected);
    padding-left: var(--space-12);
  }
}

@media (max-width: 767px) {
  .policy-content {
    padding: var(--space-32) var(--space-20);
  }

  .policy-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ==============================================
   12b. PAGE BANNER (hero chuẩn CHUNG cho các trang con)
   ------------------------------------------------
   1 nguồn duy nhất — mọi trang dùng .page-banner sẽ giống hệt nhau (nền
   gradient nâu + hoa văn vàng mờ, KHÔNG ảnh). Các trang trước đây tự định
   nghĩa .page-banner inline (lệch nhau) đã được gỡ để dùng bản này.
   .page-banner__sub là alias của __desc (giữ HTML cũ của giới thiệu/liên hệ).
   ============================================== */
.page-banner {
  background: var(--gradient-brand);
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner__label {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}
.page-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.page-banner__desc,
.page-banner__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.page-banner__breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.page-banner__breadcrumb a { color: var(--color-gold); text-decoration: none; }
.page-banner__breadcrumb a:hover { text-decoration: underline; }
.page-banner__breadcrumb span { margin: 0 8px; }


/* ==============================================
   12. PAGE HERO (inner pages)
   ============================================== */

.page-hero {
  background: var(--gradient-brand);
  padding: var(--space-80) 0 var(--space-64);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D4AF37' fill-opacity='0.05'%3E%3Cpath d='M30 12 C25 4,15 4,12 10 C15 8,20 10,30 12 C40 10,45 8,48 10 C45 4,35 4,30 12Z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-16);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-16);
  line-height: var(--leading-snug);
}

.page-hero-desc {
  font-size: var(--text-md);
  color: rgba(250, 246, 241, 0.78);
  max-width: 560px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}


/* ==============================================
   13. PAGINATION
   ============================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-64);
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-12);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-medium);
  background: var(--color-surface);
  border: var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.pagination-btn:hover {
  border-color: var(--color-selected);
  color: var(--color-selected);
}

.pagination-btn.active {
  background: var(--gradient-button);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-brand);
  pointer-events: none;
}

.pagination-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.pagination-ellipsis {
  color: var(--color-text-muted);
  padding: 0 var(--space-4);
  user-select: none;
}


/* ==============================================
   14. TOAST NOTIFICATIONS
   ============================================== */

.toast-container {
  position: fixed;
  top: calc(var(--header-height) + var(--space-16));
  right: var(--space-24);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-16) var(--space-20);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--color-success);
  pointer-events: auto;
  min-width: 280px;
  max-width: 360px;
  animation: toastIn 0.35s ease-out;
}

.toast--error {
  border-left-color: var(--color-sale);
}

.toast--info {
  border-left-color: var(--color-gold);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

.toast.hiding {
  animation: toastOut 0.3s ease-in forwards;
}

.toast-icon {
  flex-shrink: 0;
  color: var(--color-success);
}

.toast--error .toast-icon { color: var(--color-sale); }
.toast--info  .toast-icon { color: var(--color-gold); }

.toast-msg {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  flex: 1;
  line-height: var(--leading-snug);
}

.toast-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.toast-close:hover {
  background: var(--color-cream);
  color: var(--color-text);
}

@media (max-width: 767px) {
  .toast-container {
    top: auto;
    bottom: calc(60px + var(--space-16));
    right: var(--space-16);
    left: var(--space-16);
  }

  .toast {
    min-width: unset;
    max-width: 100%;
  }
}

/* ==============================================
   TESTIMONIALS TRACK (JS carousel)
   ============================================== */

.testimonials-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 75, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-48) var(--space-40);
  position: relative;
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: 6rem;
  line-height: 0.6;
  color: var(--color-gold);
  opacity: 0.4;
  margin-bottom: var(--space-24);
  display: block;
}

.testimonial-card__text {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: rgba(250, 246, 241, 0.9);
  margin-bottom: var(--space-32);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.testimonial-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
  flex-shrink: 0;
}

.testimonial-card__info {
  flex: 1;
}

.testimonial-card__name {
  display: block;
  color: var(--color-gold);
  font-weight: 600;
  font-size: var(--text-base);
}

.testimonial-card__role {
  display: block;
  color: rgba(250, 246, 241, 0.6);
  font-size: var(--text-sm);
  margin-top: 2px;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-left: auto;
  color: var(--color-gold);
}

/* ==============================================
   CART DRAWER
   ============================================== */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  justify-content: flex-end;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-drawer.is-open .cart-drawer__backdrop {
  opacity: 1;
}

.cart-drawer__panel {
  position: relative;
  width: 420px;
  max-width: 100vw;
  height: 100%;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

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

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-20) var(--space-24);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-cream);
}

.cart-drawer__title {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-brand);
  margin: 0;
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.cart-drawer__close:hover {
  background: var(--color-border);
  color: var(--color-brand);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-16) var(--space-24);
}

.cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  height: 100%;
  min-height: 300px;
  text-align: center;
  color: var(--color-text-muted);
}

.cart-drawer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cart-drawer__item {
  display: flex;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer__item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.cart-drawer__item-info {
  flex: 1;
  min-width: 0;
}

.cart-drawer__item-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-brand);
  margin-bottom: var(--space-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-drawer__item-price {
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

.cart-drawer__qty {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-brand);
  transition: var(--transition-fast);
  line-height: 1;
}

.qty-btn:hover {
  background: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-brand);
}

.cart-drawer__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  align-self: flex-start;
  flex-shrink: 0;
}

.cart-drawer__remove:hover {
  color: var(--color-sale);
  background: rgba(198, 40, 40, 0.06);
}

.cart-drawer__footer {
  padding: var(--space-20) var(--space-24);
  border-top: 1px solid var(--color-border);
  background: var(--color-cream);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-md);
  color: var(--color-brand);
  font-weight: 600;
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer__total strong {
  color: var(--color-primary);
  font-size: var(--text-lg);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Cart badge bump animation */
@keyframes cartBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.cart-badge--bump {
  animation: cartBump 0.4s ease;
}

/* ==============================================
   CART PAGE
   ============================================== */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-40);
  align-items: start;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-20);
  padding: var(--space-96) var(--space-24);
  text-align: center;
  color: var(--color-text-muted);
}

.cart-empty h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-brand);
}

.cart-table {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-24);
}

.cart-table__head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-24);
  background: var(--color-cream);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}

.cart-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: var(--space-16);
  padding: var(--space-20) var(--space-24);
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.cart-table__row:last-child {
  border-bottom: none;
}

.cart-table__product {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.cart-table__product img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.cart-table__name {
  font-weight: 600;
  color: var(--color-brand);
  font-size: var(--text-sm);
}

.cart-table__price,
.cart-table__subtotal {
  font-weight: 600;
  color: var(--color-text);
}

.cart-table__subtotal {
  color: var(--color-primary);
}

.cart-table__qty .qty-control {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.qty-input {
  width: 48px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand);
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: var(--space-8);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.cart-remove-btn:hover {
  color: var(--color-sale);
  background: rgba(198, 40, 40, 0.06);
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.voucher-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
}

.voucher-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  color: var(--color-brand);
  margin-bottom: var(--space-16);
}

.voucher-form {
  display: flex;
  gap: var(--space-12);
}

.voucher-input {
  flex: 1;
  padding: var(--space-12) var(--space-16);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
}

.voucher-note {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
}

.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  position: sticky;
  top: 100px;
}

.cart-summary__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-brand);
  margin-bottom: var(--space-24);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.cart-summary__rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-bottom: var(--space-20);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-base);
  color: var(--color-text);
}

.text-green { color: #22c55e; font-weight: 600; }
.text-red   { color: var(--color-primary); font-weight: 600; }

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-16) 0;
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.cart-summary__total span {
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--color-brand);
}

.cart-summary__total strong {
  font-size: var(--text-xl);
  color: var(--color-primary);
}

.cart-summary__vat {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-20);
}

.cart-summary__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.cart-summary__guarantees {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 1023px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
}

@media (max-width: 767px) {
  .cart-table__head,
  .cart-table__row {
    grid-template-columns: 1fr auto;
    gap: var(--space-12);
  }
  .cart-table__head span:not(:first-child):not(:last-child),
  .cart-table__price,
  .cart-table__qty { display: none; }
  .cart-table__subtotal { font-size: var(--text-sm); }
  .cart-actions { flex-direction: column; align-items: stretch; }
  .voucher-form { flex-direction: column; }
}

/* ==============================================
   FLASH SALE SECTION (trang chủ) — do JS render theo dữ liệu Supabase
   thật (flash_sales/flash_sale_items), tự ẩn nếu không có đợt nào.
   ============================================== */
.flash-sale-section {
  padding: 48px 0;
}
.flash-sale-section > .container {
  background: var(--color-sale-dark);
  border-radius: 24px;
  padding: 36px clamp(20px, 4vw, 48px);
}
.flash-sale-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.flash-sale-label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.flash-sale-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-white);
}
.flash-sale-countdown {
  display: flex;
  align-items: center;
  gap: 12px;
}
.flash-sale-countdown__label {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 600;
}
.flash-sale-countdown__timer {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fs-time-box {
  background: var(--color-surface);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
}
.fs-time-box span { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1; color: var(--color-sale-dark); font-weight: 700; }
.fs-time-box small { font-size: .6rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.fs-time-sep { color: var(--color-white); font-weight: 700; font-size: 1.2rem; }

.flash-sale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 14px;
}
.flash-sale-card {
  background: var(--color-surface);
  border: var(--border-subtle);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.flash-sale-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.flash-sale-card__img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.flash-sale-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flash-sale-card__pct {
  position: absolute; top: 10px; left: 10px;
  background: var(--color-accent-orange); color: #fff;
  font-size: .78rem; font-weight: 800; padding: 4px 9px; border-radius: 20px;
}
.flash-sale-card__status {
  font-size: .74rem; font-weight: 600; color: var(--color-accent-orange);
  margin-bottom: 4px;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.flash-sale-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.flash-sale-card__body .product-card__rating {
  margin-bottom: 8px;
}
.flash-sale-card__body .btn-add-cart {
  margin-top: auto;
}
.flash-sale-card__name {
  font-family: var(--font-heading);
  font-size: .95rem;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  color: var(--color-brand);
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.flash-sale-card__price-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 6px; }
.flash-sale-card__price { color: var(--color-sale); font-weight: 800; font-size: 1.05rem; }
.flash-sale-card__price-old { color: #9ca3af; text-decoration: line-through; font-size: .82rem; }
.flash-sale-card__progress-wrap { margin-bottom: 6px; }
.flash-sale-card__progress-bar { height: 7px; border-radius: 4px; background: var(--color-sale-pale); overflow: hidden; }
.flash-sale-card__progress-fill { height: 100%; background: linear-gradient(90deg, var(--color-sale), var(--color-accent-orange)); border-radius: 4px; }
.flash-sale-card .btn-add-cart { width: 100%; justify-content: center; }
.flash-sale-card.is-soldout .flash-sale-card__img-wrap::after {
  content: 'Hết suất'; position: absolute; inset: 0; background: rgba(44,24,16,.65);
  color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
}
.flash-sale-card.is-soldout .btn-add-cart,
.flash-sale-card.is-upcoming .btn-add-cart { opacity: .45; pointer-events: none; cursor: not-allowed; }

@media (max-width: 600px) {
  .flash-sale-head { flex-direction: column; align-items: flex-start; }

  /* Cuộn ngang thay vì xếp dọc — 6 sản phẩm xếp cột trên điện thoại
     sẽ dài tới ~3000px, quá dài cho 1 khu vực chỉ mang tính gợi ý nhanh. */
  .flash-sale-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .flash-sale-card {
    flex: 0 0 72%;
    max-width: 280px;
    scroll-snap-align: start;
  }
}
