/*
Theme Name: Tra Viet
Theme URI: https://travietnam.vn
Author: Tra Viet Team
Author URI: https://travietnam.vn
Description: WordPress theme for Tra Viet Nam tea company website
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tra-viet
*/
/* ============================================
   TEA COMPANY - Main Stylesheet
   Version: 1.0.1
   ============================================ */

/* CSS Variables */
:root {
  /* Colors - Green Tea Theme */
  --primary-color: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;
  --secondary-color: #81c784;
  --secondary-dark: #388e3c;
  --accent-color: #a5d6a7;
  --text-color: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --white: #ffffff;
  --off-white: #f5f9f5;
  --light-gray: #e0e0e0;
  --dark-gray: #2e3d30;
  --black: #000000;
  --o-clr: #2e7d32;
  --p-clr: #2e7d32;

  /* Typography */
  --font-primary: 'Nunito', sans-serif;
  --font-display: 'Nunito', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  text-align: left;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-color);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.25rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* Section Header */
.section-header {
  margin-bottom: var(--spacing-xl);
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

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

.section-header.text-center .section-title::after {
  left: 50%;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: var(--spacing-md) auto 0;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  min-width: 160px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.header-top {
  background: var(--primary-color);
  padding: 8px 0;
  font-size: 0.8125rem;
}

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

.header-contact {
  display: flex;
  gap: var(--spacing-md);
  color: var(--white);
}

.header-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-language {
  display: flex;
  gap: 8px;
}

.lang-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.lang-link.active,
.lang-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.header-main {
  padding: 15px 0;
  transition: var(--transition-base);
}

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

.site-branding .logo {
  display: block;
}

.site-branding .logo img {
  height: 50px;
  width: auto;
  max-width: 200px;
}

.site-branding img,
.site-branding .logo img,
.custom-logo-link img {
  height: 50px !important;
  width: auto !important;
  max-width: 200px;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  display: block;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-color);
  position: relative;
  transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  -ms-transition: all 0.2s linear;
  -moz-transition: all 0.2s linear;
  -webkit-transition: all 0.2s linear;
}

/* Menu hover effect - corner box animation */
.menu > .menu-item > a::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 80px;
  height: 60px;
  display: block;
  border: 1px solid var(--primary-color);
  border-width: 1px 0 0 1px;
  opacity: 0;
  -webkit-transition: all 0.2s ease-in-out 0s;
  transition: all 0.2s ease-in-out 0s;
  pointer-events: none;
}

.menu > .menu-item > a::after {
  content: '';
  position: absolute;
  top: auto;
  left: auto;
  bottom: 0;
  right: 0px;
  width: 80px;
  height: 60px;
  display: block;
  border: 1px solid var(--primary-color);
  border-width: 0 1px 1px 0;
  opacity: 0;
  -webkit-transition: all 0.2s ease-in-out 0s;
  transition: all 0.2s ease-in-out 0s;
  pointer-events: none;
}

.menu-item:hover > a::before,
.menu-item:hover > a::after {
  width: 20px;
  height: 20px;
  opacity: 1;
}

/* Current menu item - border bottom style */
.menu-item.current-menu-item > a {
  border-bottom: 2px solid var(--o-clr);
  color: var(--p-clr);
}

/* Submenu */
.menu-item.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-base);
  padding: 10px 0;
}

/* Keep submenu open when child is active/current */
.submenu-parent.current-menu-item > .submenu,
.submenu-parent:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-parent > a {
  font-weight: 700;
  color: var(--primary-color) !important;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.submenu-parent > a:hover {
  background: transparent;
  color: var(--secondary-color) !important;
}

.submenu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text-color);
  transition: var(--transition-fast);
}

.submenu li a:hover {
  background: var(--off-white);
  color: var(--primary-color);
}

/* Third-level menu */
.submenu .submenu {
  position: absolute;
  top: -10px;
  left: 100%;
  min-width: 200px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-base);
  padding: 10px 0;
  z-index: 1001;
}

.submenu li:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu .submenu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text-color);
  white-space: nowrap;
}

.submenu .submenu li a:hover {
  background: var(--off-white);
  color: var(--primary-color);
}

/* Active state for static fallback menu items */
.menu-item.current > a,
.menu-item.current-menu-item > a {
  color: var(--primary-color);
  font-weight: 600;
}

.submenu .current-menu-item > a,
.submenu .current > a {
  background: var(--off-white);
  color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-color);
  transition: var(--transition-base);
}

/* Header Scroll Effect */
.site-header.scrolled .header-main {
  padding: 10px 0;
}

.site-header.scrolled .site-branding .logo img {
  height: 40px;
}

/* Header Actions (Search Button) */
.header-actions {
  display: flex;
  align-items: center;
  margin-left: var(--spacing-md);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-color);
  transition: var(--transition-base);
}

.search-btn:hover,
.search-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

/* Search Popup */
.search-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-popup-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  width: 100%;
  max-width: 600px;
  margin: 0 var(--spacing-md);
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.search-popup-overlay.active .search-popup-box {
  transform: translateY(0);
}

.search-popup-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border: none;
  border-radius: 50%;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-popup-close:hover {
  background: var(--light-gray);
  color: var(--primary-color);
}

.search-popup-box h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--heading-color);
}

.search-popup-form {
  display: flex;
  gap: var(--spacing-sm);
}

.search-popup-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color 0.2s ease;
  outline: none;
}

.search-popup-input:focus {
  border-color: var(--primary-color);
}

.search-popup-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border: none;
  border-radius: var(--radius-md);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-popup-submit:hover {
  background: var(--secondary-color);
}

body.search-popup-open {
  overflow: hidden;
}

/* Floating Contact Buttons */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-contact.hidden {
  display: none;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--primary-color);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
  transition: all 0.3s ease;
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.6);
}

.whatsapp-btn {
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.back-to-top-btn {
  box-shadow: 0 4px 15px rgba(129, 199, 132, 0.4);
}

.back-to-top-btn:hover {
  box-shadow: 0 6px 20px rgba(129, 199, 132, 0.6);
}

/* Search Page */
.search-page-section {
  padding: var(--spacing-xxl) 0;
}

.search-form-wrapper {
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}

.search-input-group {
  display: flex;
  gap: var(--spacing-sm);
}

.search-input-group input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition-base);
}

.search-input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-input-group .btn {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-results {
  margin-top: var(--spacing-xl);
}

.search-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.search-count {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   HERO SECTION - SLIDESHOW
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(46, 125, 50, 0.4) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding-top: 80px;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(93, 64, 55, 0.5) 100%
  );
}

/* Slideshow Controls */
.slideshow-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 10;
}

.slide-prev,
.slide-next {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition-base);
}

.slide-prev:hover,
.slide-next:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.slide-dots {
  display: none;
  /* display: flex; */
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
}

.dot.active,
.dot:hover {
  background: var(--white);
  transform: scale(1.2);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.hero-logo {
  margin-bottom: var(--spacing-lg);
}

.hero-logo img {
  width: 200px;
  margin: 0 auto;
  animation: fadeInDown 1s ease;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 1s ease 0.3s both;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.5s both;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.7s both;
}

.scroll-down {
  display: block;
  color: var(--white);
}

.mouse {
  display: block;
  width: 26px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 20px;
  position: relative;
}

.wheel {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-bottom: var(--spacing-xxl);
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-color);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-text h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.about-text p {
  color: var(--text-light);
  line-height: 1.8;
}

.ceo-quote {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--off-white);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.ceo-quote p {
  font-style: italic;
  font-size: 1.0625rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

.ceo-quote cite {
  font-weight: 600;
  color: var(--primary-color);
  font-style: normal;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--light-gray);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-text {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-top: var(--spacing-xs);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
  padding: var(--spacing-xxl) 0;
  background: var(--off-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  cursor: pointer;
}

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

.product-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

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

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

.product-info {
  padding: var(--spacing-md);
  text-align: center;
}

.product-name {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--text-color);
}

.product-name-en {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   FACTORY SECTION
   ============================================ */
.factory-section {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
}

.factory-content {
  max-width: 900px;
  margin: 0 auto;
}

.factory-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.factory-image {
  height: 100%;
  min-height: 350px;
}

.factory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-info {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.factory-info h3 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.factory-stats {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

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

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.factory-stat .stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}

.factory-desc {
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */
.certifications-section {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 100%
  );
  color: var(--white);
}

.certifications-section .section-subtitle,
.certifications-section .section-title {
  color: var(--white);
}

.certifications-section .section-title::after {
  background: var(--white);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.certification-item {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.certification-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.certification-item img {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  object-fit: contain;
}

.certification-item span {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 1px;
}

/* ============================================
   SUSTAINABILITY SECTION
   ============================================ */
.sustainability-section {
  padding: var(--spacing-xxl) 0;
  background: var(--off-white);
}

.sustainability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.sustainability-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

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

.sustainability-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sustainability-icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.sustainability-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

.sustainability-card p {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
}

.news-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.news-content {
  padding: var(--spacing-md);
}

.news-title {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

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

.news-excerpt {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.read-more:hover {
  color: var(--primary-dark);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: var(--spacing-xxl) 0;
  background: var(--off-white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: left;
  transition: var(--transition-base);
}

.faq-question:hover {
  background: var(--off-white);
  color: var(--primary-color);
}

.faq-item.active .faq-question {
  background: var(--primary-color);
  color: var(--white);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  transition: var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

/* ============================================
   CONTACT SECTION (Homepage)
   ============================================ */
.contact-section {
  padding: var(--spacing-xxl) 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page-section {
  padding: var(--spacing-xxl) 0;
}

.contact-page-section .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-page-section .contact-item > svg {
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-page-section .contact-item-text h3 {
  font-size: 1.125rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-page-section .contact-item-text p {
  color: var(--text-light);
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-page-section .contact-item-text a {
  color: var(--text-color);
}

.contact-page-section .contact-item-text a:hover {
  color: var(--primary-color);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.contact-info {
  padding-right: var(--spacing-lg);
}

.contact-item {
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.contact-item > svg {
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-text h3 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-item-text p {
  color: var(--text-color);
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-item-text a {
  color: var(--text-color);
}

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

.contact-social h3 {
  font-size: 1.125rem;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--text-color);
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

/* Contact Form 7 Styling */
.wpcf7-form .form-group {
  margin-bottom: var(--spacing-md);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-base);
  color: var(--text-color);
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.wpcf7-form textarea {
  resize: vertical;
  min-height: 120px;
}

.wpcf7-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.wpcf7-form .wpcf7-submit {
  display: inline-block;
  width: 100%;
  padding: 14px 32px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-base);
  letter-spacing: 0.5px;
}

.wpcf7-form .wpcf7-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 4px;
}

.wpcf7 form.sent .wpcf7-success,
.wpcf7-response-output.wpcf7-mail-sent-ok {
  background: rgba(46, 125, 50, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: var(--radius-sm);
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
  text-align: center;
  font-weight: 600;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 formspam .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border: 1px solid #dc3545;
  color: #dc3545;
  border-radius: var(--radius-sm);
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.wpcf7-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

.wpcf7 form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.wpcf7-acceptance,
.wpcf7-validates-as-required {
  display: block;
}

/* CF7 5.6+ Complete Override */
.wpcf7-form .form-group {
  margin-bottom: var(--spacing-md);
  width: 100%;
}

.wpcf7-form .form-group input[type="text"],
.wpcf7-form .form-group input[type="email"],
.wpcf7-form .form-group input[type="tel"],
.wpcf7-form .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--light-gray) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--white) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  color: var(--text-color) !important;
  box-shadow: none !important;
  transition: border-color 0.3s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  line-height: 1.4 !important;
}

.wpcf7-form .form-group input[type="text"]:focus,
.wpcf7-form .form-group input[type="email"]:focus,
.wpcf7-form .form-group input[type="tel"]:focus,
.wpcf7-form .form-group textarea:focus {
  outline: none !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

.wpcf7-form .form-group textarea {
  resize: vertical !important;
  min-height: 120px !important;
}

/* Select dropdown */
.wpcf7-form .form-group select {
  width: 100%;
  padding: 14px 40px 14px 18px !important;
  border: 1px solid var(--light-gray) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--white) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  color: var(--text-color) !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
}

.wpcf7-form .form-group select:focus {
  outline: none !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

/* Submit button */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: inline-block !important;
  padding: 14px 32px !important;
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  line-height: 1.4 !important;
  width: auto !important;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Hide CF7 default labels (we use placeholders) */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block !important;
}

.wpcf7-form .wpcf7-list-item {
  margin-left: 0 !important;
}

/* Error messages */
.wpcf7-not-valid-tip {
  color: #dc3545 !important;
  font-size: 0.875rem !important;
  margin-top: 4px !important;
  display: block !important;
}

.wpcf7-response-output.wpcf7-display-none,
.wpcf7-validation-errors {
  display: none !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border: 1px solid #dc3545 !important;
  color: #dc3545 !important;
  border-radius: var(--radius-sm) !important;
  padding: var(--spacing-md) !important;
  margin: var(--spacing-md) 0 0 !important;
  background: rgba(220, 53, 69, 0.05) !important;
}

.wpcf7 form.sent .wpcf7-response-output.wpcf7-mail-sent-ok {
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  border-radius: var(--radius-sm) !important;
  padding: var(--spacing-md) !important;
  margin: var(--spacing-md) 0 0 !important;
  background: rgba(46, 125, 50, 0.05) !important;
  text-align: center !important;
  font-weight: 600 !important;
}

/* Remove CF7 default injected spans and broken markup */
.wpcf7-form label {
  display: none !important;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form .wpcf7-select {
  width: 100% !important;
  padding: 14px 18px !important;
  border: 1px solid var(--light-gray) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--white) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  color: var(--text-color) !important;
}

.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-tel:focus,
.wpcf7-form .wpcf7-textarea:focus,
.wpcf7-form .wpcf7-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
  outline: none !important;
}

.wpcf7-form .wpcf7-textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

.wpcf7-form .wpcf7-submit {
  display: inline-block !important;
  padding: 14px 32px !important;
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  width: auto !important;
}

.wpcf7-form .wpcf7-submit:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

.wpcf7-form .wpcf7-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  padding-right: 40px !important;
}

.wpcf7 .wpcf7-response-output {
  margin: var(--spacing-md) 0 0 !important;
  padding: var(--spacing-md) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.9375rem !important;
}

.wpcf7-mail-sent-ok {
  background: rgba(46, 125, 50, 0.05) !important;
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  text-align: center !important;
}

.wpcf7-validation-errors,
.wpcf7-spam-blocked,
.wpcf7-aborted {
  background: rgba(220, 53, 69, 0.05) !important;
  border: 1px solid #dc3545 !important;
  color: #dc3545 !important;
}

.wpcf7-spinner {
  display: inline-block !important;
  vertical-align: middle !important;
  margin-left: 8px !important;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--off-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
}

.contact-form .form-group {
  margin-bottom: var(--spacing-md);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition-base);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

/* Map Section */
.map-section {
  height: 450px;
}

.map-container {
  width: 100%;
  height: 100%;
}

.map-container iframe {
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark-gray);
  color: rgba(255, 255, 255, 0.8);
}

.footer-main {
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--spacing-xl);
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.footer-logo {
  margin-bottom: var(--spacing-md);
}

.footer-logo img {
  width: 180px;
}

.footer-about p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: var(--transition-base);
  color: rgba(255, 255, 255, 0.9);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

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

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: var(--spacing-sm);
  font-size: 0.9375rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--primary-color);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: var(--spacing-md) 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

/* Hide mobile nav logo on desktop */
.nav-logo {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }

  /* Show menu toggle on tablet */
  .menu-toggle {
    display: flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1003;
  }

  /* Header main - relative for absolute positioning */
  .header-main {
    position: relative;
  }

  /* Header inner - logo left, toggle right */
  .header-inner {
    position: relative;
    justify-content: flex-start;
    gap: 50px;
  }

  .site-branding {
    flex-shrink: 0;
  }

  .site-branding {
    z-index: 10;
  }

  /* Logo on mobile */
  .site-branding .logo img {
    max-width: 150px;
    height: auto;
  }

  /* Hide header actions on mobile */
  .header-actions {
    display: none;
  }

  /* Mobile header actions */
  .mobile-header-actions {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
  }

  .mobile-header-actions .search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-color);
  }

  /* Nav logo hidden by default on desktop */
  .nav-logo {
    display: none;
  }

  /* Show nav logo inside mobile menu, pinned to TOP */
  .main-navigation.active .nav-logo {
    display: block;
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    right: var(--spacing-lg);
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    z-index: 10;
  }

  .main-navigation.active .nav-logo .logo img,
  .main-navigation.active .nav-logo img {
    max-width: 120px;
    height: auto;
  }

  /* Hide desktop menu on tablet - show toggle */
  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-xl) var(--spacing-lg);
    box-shadow: var(--shadow-xl);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .main-navigation.active {
    left: 0;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: var(--spacing-lg);
  }

  .menu-item {
    width: 100%;
  }

  .menu-item > a {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .menu-item > a::before,
  .menu-item > a::after {
    display: none;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: var(--spacing-md);
    display: none;
  }

  .menu-item.has-submenu.active > .submenu {
    display: block;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .about-image {
    order: -1;
  }

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

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

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

  .factory-card {
    grid-template-columns: 1fr;
  }

  .factory-image {
    min-height: 300px;
  }

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

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate.delay-1 {
  transition-delay: 0.1s;
}
.scroll-animate.delay-2 {
  transition-delay: 0.2s;
}
.scroll-animate.delay-3 {
  transition-delay: 0.3s;
}
.scroll-animate.delay-4 {
  transition-delay: 0.4s;
}

/* Body no-scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Mobile menu overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
}

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

@media (max-width: 768px) {
  :root {
    --spacing-xxl: 3rem;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Header */
  .header-top {
    display: none;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-xl) var(--spacing-lg);
    box-shadow: var(--shadow-xl);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .main-navigation.active {
    left: 0;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: var(--spacing-lg);
  }

  .menu-item {
    width: 100%;
  }

  .menu-item > a {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .menu-item > a::before,
  .menu-item > a::after {
    display: none;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: var(--spacing-md);
    display: none;
  }

  .menu-item.has-submenu.active > .submenu {
    display: block;
  }

  /* Hero */
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
  }

  /* Slideshow - show controls on mobile */
  .slideshow-controls {
    top: 50%;
    transform: translateY(-50%);
    padding: 0 15px;
  }

  .slide-prev,
  .slide-next {
    width: 40px;
    height: 40px;
  }

  /* Floating Contact Buttons - smaller on mobile */
  .floating-contact {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }

  .float-btn {
    width: 40px;
    height: 40px;
  }

  .float-btn svg {
    width: 20px;
    height: 20px;
  }

  /* About */
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Factory */
  .factory-stats {
    justify-content: center;
  }

  /* Certifications */
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sustainability */
  .sustainability-grid {
    grid-template-columns: 1fr;
  }

  /* News */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding-right: 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact-item {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-content {
    padding: var(--spacing-md);
  }

  .hero-logo img {
    width: 150px;
  }

  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .certification-item {
    padding: var(--spacing-sm);
  }

  .certification-item img {
    width: 60px;
    height: 60px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 80px;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(46, 125, 50, 0.4) 100%
  );
}

.page-header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.page-header-content h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.page-header-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin: 0;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  background: var(--off-white);
  padding: 15px 0;
  font-size: 0.9375rem;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb a {
  color: var(--primary-color);
}

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

.breadcrumb span {
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page-section {
  padding: var(--spacing-xxl) 0;
}

.mission-vision {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin: var(--spacing-xxl) 0;
}

.mission-card {
  background: var(--off-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
}

.mission-icon {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.mission-card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.mission-card p {
  color: var(--text-light);
  margin: 0;
}

.ceo-section {
  margin: var(--spacing-xxl) 0;
}

.ceo-quote-large {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background: var(--off-white);
  border-radius: var(--radius-lg);
  text-align: center;
  border-left: none;
}

.ceo-quote-large p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

.ceo-quote-large cite {
  font-weight: 600;
  color: var(--primary-color);
  font-style: normal;
}

/* Why Choose */
.why-choose-section {
  padding: var(--spacing-xxl) 0;
  background: var(--off-white);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.why-choose-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.why-choose-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.why-choose-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.why-choose-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
}

.why-choose-card p {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: 0;
}

/* About - Request Quotation CTA */
.about-quote-cta {
  padding: var(--spacing-xxl) 0;
  background: var(--primary-dark);
  color: var(--white);
}

.about-quote-cta-inner p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

/* About - Video Section */
.about-video-section {
  margin-top: var(--spacing-xxl);
}

.about-video-section .container {
  padding: 0;
}

.about-video-section video {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.products-filter-section {
  background: var(--off-white);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 80px;
  z-index: 100;
}

.products-filter {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

.products-page-section {
  padding: var(--spacing-xxl) 0;
}

.product-category {
  margin-bottom: var(--spacing-xxl);
}

.product-category-section {
  margin-bottom: var(--spacing-xxl);
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.product-category-section:last-child {
  border-bottom: none;
}

.product-category-section::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.category-view-all {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.product-subcategory {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.subcategory-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.top-category {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--secondary-color);
  color: var(--white);
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.product-card .product-image {
  position: relative;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

.product-price {
  margin-bottom: var(--spacing-md);
}

.product-price .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.product-price .unit {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   FACTORY PAGE
   ============================================ */
.factory-page-section {
  padding: var(--spacing-xxl) 0;
}

.factory-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxl);
}

.factory-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.factory-item.reverse .factory-image {
  order: 2;
}

.factory-item .factory-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.factory-item .factory-content h3 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.factory-meta {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-size: 0.9375rem;
}

.factory-meta span {
  color: var(--text-light);
}

.factory-meta strong {
  color: var(--text-color);
}

.factory-products {
  margin-top: var(--spacing-md);
  padding-left: var(--spacing-md);
}

.factory-products li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-light);
}

.factory-products li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* ============================================
   NEWS PAGE
   ============================================ */
.news-page-section {
  padding: var(--spacing-xxl) 0;
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-page-section {
  padding: var(--spacing-xxl) 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page-section {
  padding: var(--spacing-xxl) 0;
}

/* Responsive for new pages */
@media (max-width: 1024px) {
  .mission-vision {
    grid-template-columns: 1fr;
  }

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

  .factory-item {
    grid-template-columns: 1fr;
  }

  .factory-item.reverse .factory-image {
    order: 0;
  }
}

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

  .page-header-content h1 {
    font-size: 2rem;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
  }

  .factory-item .factory-image img {
    height: 250px;
  }
}

/* ============================================
   PRODUCT DETAIL PAGE STYLES
   ============================================ */

/* Product Detail Layout */
.product-detail-section {
    padding: var(--spacing-xxl) 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.product-gallery {
    position: sticky;
    top: 100px;
}

/* Single product: main + slider (single-product.php) */
.product-gallery .product-main-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

.product-gallery__main-stage,
.product-gallery--has-slider .product-gallery__main-stage {
    position: relative;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #111;
}

.product-gallery__main-stage:focus {
    outline: none;
}

.product-gallery__main-stage:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Overlay nav — same language as homepage hero (.slide-prev / .slide-next).
   Selectors use .product-gallery__main-stage so styles apply even if --has-slider is missing from cache/old HTML. */
.product-gallery__main-stage .product-gallery__controls,
.product-gallery--has-slider .product-gallery__controls {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    z-index: 5;
    pointer-events: none;
}

.product-gallery__main-stage .product-gallery__arrow,
.product-gallery--has-slider .product-gallery__arrow {
    pointer-events: auto;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    line-height: 0;
    /* Nền sáng + icon xanh — đọc được trên ảnh sáng (hero dùng trắng vì có overlay tối) */
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(129, 199, 132, 0.75);
    border-radius: 50%;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
    -webkit-appearance: none;
    appearance: none;
}

.product-gallery__main-stage .product-gallery__arrow svg,
.product-gallery--has-slider .product-gallery__arrow svg {
    display: block;
    flex-shrink: 0;
}

.product-gallery__main-stage .product-gallery__arrow:hover,
.product-gallery--has-slider .product-gallery__arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.product-gallery__main-stage .product-main-image,
.product-gallery--has-slider .product-main-image {
    position: relative;
    z-index: 1;
    min-height: 240px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin: 0;
}

.product-gallery__main-stage .product-main-image img,
.product-gallery--has-slider .product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* Thumbnail strip: horizontal scroll; ~4 visible desktop, ~3 mobile (container query) */
.product-thumbs-viewport {
    container-type: inline-size;
    container-name: traviet-thumbs;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding-bottom: 6px;
    --tv-thumb-gap: 0.75rem;
    --tv-thumb-slots: 4;
}

.product-thumbs-viewport::-webkit-scrollbar {
    height: 6px;
}

.product-thumbs-viewport::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 99px;
}

@media (max-width: 768px) {
    .product-thumbs-viewport {
        --tv-thumb-slots: 3;
    }
}

.nam-long-thumb-slider.product-thumbnails {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--tv-thumb-gap);
    width: max-content;
}

.nam-long-thumb-btn.product-thumb {
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: none;
    opacity: 0.88;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    aspect-ratio: 1 / 1;
}

.nam-long-thumb-btn.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nam-long-thumb-btn.product-thumb:hover,
.nam-long-thumb-btn.product-thumb.is-active {
    border-color: rgba(129, 199, 132, 0.9);
    opacity: 1;
}

@supports (width: 1cqi) {
    .nam-long-thumb-btn.product-thumb {
        width: calc((100cqi - (var(--tv-thumb-slots) - 1) * var(--tv-thumb-gap)) / var(--tv-thumb-slots));
        max-width: calc((100cqi - (var(--tv-thumb-slots) - 1) * var(--tv-thumb-gap)) / var(--tv-thumb-slots));
    }
}

@supports not (width: 1cqi) {
    .nam-long-thumb-btn.product-thumb {
        width: 96px;
        height: 96px;
        max-width: 96px;
    }
}

.product-gallery__main {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
}

.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-gallery__main:hover .product-main-img {
    transform: scale(1.05);
}

.product-gallery__thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.thumbnail-btn {
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
    opacity: 0.7;
    padding: 0;
    background: none;
}

.thumbnail-btn:hover,
.thumbnail-btn.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding-top: var(--spacing-md);
}

.product-category-tag {
    display: inline-block;
    background: var(--off-white);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.product-title {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.product-sku {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-lg);
}

.product-price-block {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--off-white);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.product-price-block .product-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-block .product-original-price {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background: #e53935;
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
}

.product-excerpt {
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
    line-height: 1.7;
}

.product-meta-list {
    margin-bottom: var(--spacing-lg);
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9375rem;
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    min-width: 120px;
    color: var(--text-color);
    font-weight: 600;
}

.meta-value {
    color: var(--text-light);
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.product-quantity label {
    font-weight: 600;
    color: var(--text-color);
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    font-size: 1.25rem;
    color: var(--text-color);
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    border-radius: var(--radius-sm);
}

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

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    padding: 14px 28px;
    font-size: 1rem;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

.btn-outline svg {
    flex-shrink: 0;
}

.product-features {
    margin-bottom: var(--spacing-lg);
}

.features-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.feature-check {
    flex-shrink: 0;
}

/* Tabs */
.product-tabs-section {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--light-gray);
}

.product-tabs-wrapper {
    max-width: 100%;
}

.tab-buttons {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: var(--spacing-xl);
    overflow-x: auto;
    flex-wrap: nowrap;
}

.tab-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-base);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tab-content-wrapper {
    /* wrapper for panels */
}

.tab-panel {
    display: none;
}

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

.tab-panel-content {
    /* content area */
}

.tab-panel-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.tab-panel-content p,
.tab-panel-content li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.tab-panel-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: var(--spacing-md);
}

.origin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.origin-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.brewing-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.brewing-step {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--off-white);
    border-radius: var(--radius-lg);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
}

.step-title {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-color);
}

.step-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-md);
}

.nutrition-table th,
.nutrition-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.nutrition-table th {
    background: var(--off-white);
    font-weight: 600;
    color: var(--text-color);
}

.nutrition-table td {
    color: var(--text-light);
}

.nutrition-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: var(--spacing-md);
}

.review-summary {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--off-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.review-avg .avg-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.review-avg .avg-label {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.review-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.review-item {
    padding: var(--spacing-lg);
    background: var(--off-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    object-fit: cover;
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-color);
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.review-text {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.write-review-cta {
    text-align: center;
    padding: var(--spacing-lg);
    border-top: 1px solid var(--light-gray);
    margin-top: var(--spacing-xl);
}

.write-review-link {
    color: var(--primary-color);
    font-weight: 600;
}

.related-products-section {
    padding: var(--spacing-xxl) 0;
    background: var(--off-white);
}

.related-products-section .section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.breadcrumb-wrapper {
    padding: var(--spacing-md) 0;
}

/* ============================================
   NEWS DETAIL PAGE STYLES
   ============================================ */

.news-detail-section {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.news-detail-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: var(--spacing-xl);
}

.news-detail-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
}

.news-detail-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    color: var(--text-light);
    font-size: 0.9375rem;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-detail-meta svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.news-detail-featured-image {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.news-detail-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.news-detail-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
}

.news-detail-content p {
    margin-bottom: var(--spacing-md);
}

.news-detail-content h2 {
    font-size: 1.5rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.news-detail-content h3 {
    font-size: 1.25rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.news-detail-content li {
    margin-bottom: 0.5rem;
}

.news-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-xl);
}

.news-tags-label {
    font-weight: 600;
    color: var(--text-color);
}

.news-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--off-white);
    color: var(--text-light);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.news-tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

.news-share {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
}

.news-share-label {
    font-weight: 600;
    color: var(--text-color);
    margin-right: var(--spacing-sm);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition-base);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook { background: #1877F2; }
.share-btn.facebook:hover { background: #166fe5; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.twitter:hover { background: #0d8ddb; }
.share-btn.zalo { background: #0068FF; }
.share-btn.zalo:hover { background: #0056d6; }
.share-btn.copy { background: var(--text-light); }
.share-btn.copy:hover { background: var(--text-color); }

.author-box {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--off-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xxl);
}

.author-avatar img,
.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.author-info .author-role {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.author-info p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.related-news-section {
    padding: var(--spacing-xxl) 0;
    background: var(--off-white);
}

.breadcrumb-wrapper .breadcrumb {
    padding: 0;
}

.faq-contact-cta {
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-xxl);
    background: var(--off-white);
    border-radius: var(--radius-lg);
}

.faq-contact-cta h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.faq-contact-cta p {
    color: var(--text-light);
}

/* Search page */
.search-page-section {
    padding: var(--spacing-xxl) 0;
}

.search-section {
    margin-top: var(--spacing-xxl);
}

.search-section-title {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.search-section .search-pagination {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-section .search-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    text-align: center;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.search-section .search-page-num:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.search-section .search-page-num.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.search-form {
    margin-bottom: var(--spacing-xl);
}

.search-form-wrapper {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.search-input-group {
    display: flex;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
}

.search-submit-btn {
    padding: 14px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit-btn:hover {
    background: var(--primary-dark);
}

.search-results .search-title {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.search-results .search-count {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

.no-results {
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.no-results h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.no-results p {
    color: var(--text-light);
}

.pagination {
    margin-top: var(--spacing-xl);
    text-align: center;
}

/* Product archive filter */
.products-filter-section {
    position: sticky;
    top: 80px;
    background: var(--white);
    z-index: 100;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--light-gray);
}

.products-filter {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-xl);
    background: transparent;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.product-category {
    margin-bottom: var(--spacing-xxl);
}

.products-page-section {
    padding: var(--spacing-xxl) 0;
}

.search-page-section {
    padding: var(--spacing-xxl) 0;
}

.contact-page-section {
    padding: var(--spacing-xxl) 0;
}

.map-section {
    margin-top: var(--spacing-xl);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
    text-align: center;
}

.contact-page-content,
.factory-page-content {
    /* page content wrapper */
}

.about-page-content {
    /* about page content */
}

/* No results message */
.no-related-msg,
.no-steps-msg {
    text-align: center;
    color: var(--text-muted);
    padding: var(--spacing-xl) 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .product-gallery {
        position: static;
    }

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

    .origin-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.75rem;
    }

    .product-price-block .product-price {
        font-size: 2rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        max-width: 100%;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .brewing-steps {
        grid-template-columns: 1fr 1fr;
    }

    .product-gallery__thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .tab-buttons {
        gap: 2px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .review-summary {
        flex-direction: column;
        text-align: center;
    }

    .factory-item .factory-image img {
        height: 250px;
    }

    .factory-item {
        flex-direction: column;
    }

    .factory-item.reverse {
        flex-direction: column;
    }

    .factory-item .factory-image,
    .factory-item .factory-content {
        width: 100%;
    }
}
