/* 
 * TRẠI TRÀ LANDING PAGE - DESIGN SYSTEM & STYLES
 * Brand Primary Color: #6a8a22 (Olive Green)
 * Warm Cream Accent Color: #faf8f5
 */

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

:root {
  /* Colors */
  --primary: #6a8a22;
  --primary-hover: #546e1a;
  --primary-light: #f0f5e5;
  --primary-rgb: 106, 138, 34;
  
  --secondary: #c8963e;
  --secondary-hover: #a87d30;
  --secondary-light: #fdf8ef;
  
  --bg-warm: #faf8f5;
  --bg-card: #ffffff;
  --bg-dark: #12150b;
  
  --text-dark: #1c2012;
  --text-muted: #5e6450;
  --text-light: #ffffff;
  --text-light-muted: #dcdfd5;
  
  --border-light: rgba(106, 138, 34, 0.1);
  --border-medium: rgba(106, 138, 34, 0.2);
  
  /* Typography */
  --font-heading: 'Lora', 'Playfair Display', Georgia, serif;
  --font-subheading: 'Montserrat', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(106, 138, 34, 0.04);
  --shadow-md: 0 12px 32px rgba(106, 138, 34, 0.08);
  --shadow-lg: 0 24px 48px rgba(106, 138, 34, 0.12);
  --shadow-glow: 0 0 24px rgba(106, 138, 34, 0.3);
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Layout constraints */
  --container-width: 1200px;
  --header-height: 80px;
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Ensure proper scroll alignment with sticky header */
#trang-chu {
  scroll-margin-top: var(--header-height); /* 80px on desktop */
}

#khong-gian,
#thuc-don,
#lien-he {
  scroll-margin-top: 70px; /* matches compact scrolled header height */
}

@media (max-width: 992px) {
  #trang-chu {
    scroll-margin-top: 70px; /* matches mobile header height */
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button, input, textarea {
  font-family: inherit;
}

ul {
  list-style: none;
}

/* Hide scrollbar for Chrome, Safari, Opera and all Webkit browsers */
::-webkit-scrollbar {
  display: none;
}

/* --- Reusable Components & Typography Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

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

.section-title-wrapper {
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-tag {
  font-family: var(--font-subheading);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: inline-block;
  position: relative;
  padding-left: 30px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--primary);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 32px;
  }
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-subheading);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(106, 138, 34, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(106, 138, 34, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-order {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(106, 138, 34, 0.2);
  border: none;
  font-size: 14px;
  padding: 10px 22px;
}

.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-order::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s ease;
  z-index: 1;
}

.btn-order:hover::before {
  left: 120%;
}

/* --- Header Section --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-light);
}

header.scrolled {
  height: 70px;
  background: rgba(250, 248, 245, 0.97);
}

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

.logo-container {
  display: flex;
  align-items: center;
  height: 48px;
}

.logo-container img {
  height: 100%;
  width: auto;
  transition: var(--transition-smooth);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-subheading);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-dark);
  transition: var(--transition-smooth);
}

/* Parallax blurred backing to fit portrait promotions gracefully */
.hero-blur-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.3);
  transform: scale(1.1);
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0; /* Align perfectly underneath header */
}

/* Container for full-screen cover banner (No borders, no rounded corners) */
.promo-image-container {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  box-shadow: none;
  border: none;
  position: relative;
  transform: scale(1.03); /* Cinematic slightly larger start */
  opacity: 0;
  animation: heroScaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  background-color: transparent;
}

.promo-image-container img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover; /* Cover edge-to-edge perfectly without distortion */
  display: block;
}

@keyframes heroScaleIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}



.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light-muted);
  font-family: var(--font-subheading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: var(--transition-fast);
}

.hero-scroll-indicator:hover {
  color: var(--text-light);
}

.hero-scroll-indicator svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* --- About Space & Gallery Section --- */
.about {
  background-color: var(--bg-warm);
  position: relative;
}

.about-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.about-intro p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Modern Masonry/Grid Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  height: 380px;
  border: 1px solid var(--border-light);
  background-color: rgba(106, 138, 34, 0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(28, 32, 18, 0.8) 0%, rgba(28, 32, 18, 0) 60%);
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  z-index: 2;
}

.gallery-overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 54px;
  height: 54px;
  background-color: rgba(250, 248, 245, 0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-overlay-icon svg {
  width: 24px;
  height: 24px;
}

.gallery-title {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.gallery-desc {
  color: var(--text-light-muted);
  font-size: 14px;
  margin-top: 4px;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  transition-delay: 0.05s;
}

/* Hover effects */
.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover .gallery-title,
.gallery-item:hover .gallery-desc {
  transform: translateY(0);
}

/* Grid Layout Allocation */
.gallery-item.col-6 {
  grid-column: span 6;
}

.gallery-item.col-12 {
  grid-column: span 12;
}

.gallery-item.col-4 {
  grid-column: span 4;
}

.gallery-item.col-8 {
  grid-column: span 8;
}

@media (max-width: 992px) {
  .gallery-item.col-6,
  .gallery-item.col-4,
  .gallery-item.col-8 {
    grid-column: span 6;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    gap: 16px;
  }
  .gallery-item {
    height: 280px;
  }
  .gallery-item.col-6,
  .gallery-item.col-4,
  .gallery-item.col-8,
  .gallery-item.col-12 {
    grid-column: span 12;
  }
  .gallery-overlay {
    padding: 20px;
  }
  .gallery-title {
    font-size: 18px;
  }
}

/* --- Products Section --- */
.products {
  background-color: #ffffff;
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, var(--bg-warm) 0%, transparent 100%);
  pointer-events: none;
}

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

.product-card {
  background-color: var(--bg-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.product-image-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
  background-color: #e8eae1;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary);
  color: var(--text-light);
  padding: 6px 14px;
  font-family: var(--font-subheading);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-badge.badge-new {
  background-color: var(--secondary);
}

.product-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.product-price {
  font-family: var(--font-subheading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.product-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-footer {
  border-top: 1px dashed var(--border-medium);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
}

.product-rating svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-card-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-subheading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-card-order:hover {
  color: var(--primary-hover);
  background-color: var(--primary-light);
  transform: translateX(2px);
}

.btn-card-order svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
}

/* Card Hover */
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.06);
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-image-wrapper {
    height: 220px;
  }
}

/* --- Footer & Location Section --- */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.footer-info-col {
  grid-column: span 5;
}

.footer-map-col {
  grid-column: span 7;
}

@media (max-width: 992px) {
  .footer-info-col {
    grid-column: span 12;
  }
  .footer-map-col {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }
  
  .footer-desc {
    max-width: 100%;
    margin-bottom: 24px;
  }
  
  .contact-list {
    margin-bottom: 24px;
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .contact-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
  }
  
  .contact-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .contact-detail p,
  .contact-detail a {
    font-size: 14.5px;
  }
  
  .social-channels {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .social-link svg {
    width: 18px;
    height: 18px;
  }
}


.footer-logo {
  height: 52px;
  margin-bottom: 24px;
}

.footer-logo img {
  height: 100%;
  width: auto;
}

.footer-desc {
  color: var(--text-light-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 440px;
}

/* Contact Info list */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background-color: rgba(106, 138, 34, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid rgba(106, 138, 34, 0.25);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail h4 {
  font-family: var(--font-subheading);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-detail p,
.contact-detail a {
  font-size: 15px;
  color: var(--text-light-muted);
  line-height: 1.5;
}

.contact-detail a:hover {
  color: var(--primary);
}

/* Social Media Channels */
.social-channels {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-title {
  font-family: var(--font-subheading);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-link {
  width: 46px;
  height: 46px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-muted);
  transition: var(--transition-smooth);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(106, 138, 34, 0.3);
}

/* Map Iframe Wrapper */
.map-wrapper {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  background-color: #1a1e12;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* Premium visual treatment: subtle dark filter to blend with the dark footer */
  filter: grayscale(0.2) contrast(1.1) invert(0.02);
}

@media (max-width: 768px) {
  .map-wrapper {
    height: 300px;
  }
}

.footer-bottom {
  padding-top: 30px;
  padding-bottom: 30px;
}

.footer-bottom-flex {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 20px;
}

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.credits {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.credits a {
  color: var(--primary);
  font-weight: 500;
}

.credits a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Deliveries Order Modal (Popup Selection) --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 21, 11, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  z-index: 5;
  width: 90%;
  max-width: 520px;
  background-color: var(--bg-warm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--border-medium);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background-color: rgba(106, 138, 34, 0.1);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 30px;
}

/* Delivery Option Cards */
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.delivery-card {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 2.5px solid var(--border-light);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.delivery-logo-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px; /* Smooth rounded corners (bo góc) */
  border: 1px solid var(--border-medium);
  margin-right: 20px;
  flex-shrink: 0;
}

.delivery-details {
  flex-grow: 1;
}

.delivery-name {
  font-family: var(--font-subheading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.delivery-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.delivery-arrow {
  width: 32px;
  height: 32px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.delivery-arrow svg {
  width: 16px;
  height: 16px;
}

/* Hover behaviors */
.delivery-card.grab:hover {
  border-color: #00b14f;
  box-shadow: 0 8px 24px rgba(0, 177, 79, 0.12);
}
.delivery-card.grab:hover .delivery-arrow {
  background-color: #00b14f;
  color: var(--white);
  transform: translateX(4px);
}

.delivery-card.shopee:hover {
  border-color: #fe5722;
  box-shadow: 0 8px 24px rgba(254, 87, 34, 0.12);
}
.delivery-card.shopee:hover .delivery-arrow {
  background-color: #fe5722;
  color: var(--white);
  transform: translateX(4px);
}

/* --- Lightbox Modal (Space Gallery) --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 21, 11, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.lightbox-container {
  position: relative;
  z-index: 5;
  width: 90%;
  max-width: 960px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-container {
  transform: scale(1);
}

.lightbox-image-wrapper {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  background-color: #000;
}

.lightbox-image-wrapper img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lightbox-info {
  margin-top: 20px;
  text-align: center;
  color: var(--text-light);
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
}

.lightbox-desc {
  font-size: 14.5px;
  color: var(--text-light-muted);
  margin-top: 4px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background-color: var(--white);
  color: var(--text-dark);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: var(--transition-smooth);
}

.lightbox-nav:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

@media (max-width: 1100px) {
  .lightbox-prev {
    left: 20px;
    z-index: 10;
  }
  .lightbox-next {
    right: 20px;
    z-index: 10;
  }
  .lightbox-close {
    top: 20px;
    right: 20px;
    z-index: 10;
  }
}

/* Mobile responsive menu slide-in panel */
@media (max-width: 768px) {
  .logo-container {
    height: 36px;
  }

  .nav-menu {
    position: fixed;
    top: 70px; /* Aligns with compact mobile header height */
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-warm);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 16px 30px rgba(0,0,0,0.05);
    overflow-y: auto;
    z-index: 999;
  }
  
  header.scrolled .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 18px;
    color: var(--text-dark) !important;
    text-shadow: none !important;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(106, 138, 34, 0.05);
    padding-bottom: 16px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-right {
    gap: 8px;
  }
  
  .btn-order {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  /* Proportional scaling for Hero banner on mobile */
  .hero {
    height: auto !important;
    min-height: auto !important;
    margin-top: 70px !important; /* Vertically below mobile header */
    display: block !important;
  }
  
  .hero-content {
    height: auto !important;
    padding-top: 0 !important;
  }
  
  .promo-image-container {
    height: auto !important;
    max-height: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
  
  .promo-image-container img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
  
  .hero-scroll-indicator {
    display: none !important;
  }
  
  .hero-blur-bg {
    display: none !important;
  }
}

/* Extra small devices styling fixes (Modals, Lightbox, and Headers) */
@media (max-width: 576px) {
  .modal-container {
    padding: 24px 16px;
    width: 92%;
  }
  
  .modal-title {
    font-size: 24px;
  }
  
  .modal-subtitle {
    margin-bottom: 20px;
  }
  
  .delivery-card {
    padding: 12px 16px;
  }
  
  .delivery-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 8px; /* Smooth rounded corners (bo góc) on mobile */
    margin-right: 14px;
  }
  
  .delivery-name {
    font-size: 15px;
  }
  
  .delivery-tagline {
    font-size: 12px;
  }
  
  .delivery-arrow {
    width: 28px;
    height: 28px;
  }
  
  /* Responsive Lightbox buttons */
  .lightbox-nav {
    width: 38px;
    height: 38px;
    background-color: rgba(18, 21, 11, 0.5);
  }
  
  .lightbox-nav svg {
    width: 18px;
    height: 18px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    background-color: rgba(18, 21, 11, 0.5);
  }
  
  .lightbox-close svg {
    width: 18px;
    height: 18px;
  }
  
  .lightbox-title {
    font-size: 18px;
  }
  
  .lightbox-desc {
    font-size: 13px;
  }
}

/* Extremely narrow viewport widths - prevent header overflows completely */
@media (max-width: 380px) {
  .btn-order span {
    display: none;
  }
  
  .btn-order {
    padding: 8px 12px;
    border-radius: var(--radius-full);
  }
}


/* --- Scroll Reveal Effects --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
