/* Apeks - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #306F2F;
  --primary-dark: #245524;
  --primary-light: #4a8c49;
  --secondary: #1a1a1a;
  --text: #333333;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gray: #f0f2f5;
  --border: #e1e5e9;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

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

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

/* Header */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
}

.logo-text span {
  color: var(--primary);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 2px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

nav a.active::after {
  width: 100%;
}

@media (hover: hover) {
  nav a:hover {
    color: var(--primary);
  }
  nav a:hover::after {
    width: 100%;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(48,111,47,0.7) 0%, rgba(26,59,26,0.7) 100%),
              url('Photos/lightroom-main.jpg');
  background-size: cover;
  background-position: center center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
}

.hero-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}

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

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

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

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

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

.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

/* Section */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

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

.feature-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

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

.feature-icon {
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.feature-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--secondary);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Products Preview */
.products-preview {
  background: var(--bg-gray);
}

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

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.product-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.product-card h3 {
  padding: 20px 20px 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
}

.product-card p {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--text-light);
}

/* About Section */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 24px;
  line-height: 1.3;
}

.about-content p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-feature-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.about-feature span {
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
}

.about-image {
  background: url('Photos/cart-1.jpg');
  background-size: cover;
  background-position: center center;
  border-radius: 16px;
  height: 500px;
  min-height: 400px;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, rgba(48,111,47,0.85) 0%, rgba(26,59,26,0.9) 100%),
              url('Photos/lab-side-1.jpg');
  background-size: cover;
  background-position: center center;
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--secondary);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
}

footer h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
}

footer .footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 8px 0;
  transition: color 0.2s ease;
}

footer .footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 40px;
  }

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

  .about-grid {
    gap: 40px;
  }

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

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
    background-position: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-content > div[style*="flex"] {
    flex-direction: column;
    gap: 12px;
  }
  .hero-content > div[style*="flex"] .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .features-grid,
  .features-grid.features-grid-3,
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    height: 300px;
    min-height: 250px;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow);
  }
  
  nav.active {
    animation: slideDown 0.3s ease;
    display: flex;
  }
  
  nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Product Categories */
.product-categories {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.category-btn {
    padding: 12px 24px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.product-detail-grid:last-child {
    margin-bottom: 0;
}
.product-detail-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}
.product-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.product-detail-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}
.product-detail-content {
    padding: 24px;
}
.product-detail-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
}
.product-detail-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.product-tag {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-gray);
    border-radius: 4px;
    color: var(--text-light);
    cursor: default;
}
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }
    .product-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin-bottom: 32px;
    }
    .product-categories::-webkit-scrollbar {
        display: none;
    }
    .category-btn, .category-btn-link {
        flex-shrink: 0;
    }
}

/* Carnations: Dianthus subtitle readable on mobile */
@media (max-width: 576px) {
    .hero h1 span[data-i18n="carnations-suffix"],
    .hero h1 span[style*="font-size: 0.5em"] {
        font-size: 0.65em !important;
        opacity: 0.85 !important;
    }
}

.contact-form.submitting {
    opacity: 0.6;
    pointer-events: none;
}

.form-success, .form-error {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-success.show, .form-error.show {
    display: block;
}

/* Mobile menu slide animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header layout */
.header-inner a {
  display: flex;
  align-items: center;
}

header .header-inner > a {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

header .header-inner > a img {
    height: 42px !important;
    max-height: 42px !important;
    width: auto !important;
    display: block !important;
}

/* Mobile: header, logo, footer brand */
@media (max-width: 576px) {
    header .header-inner > a img {
        height: 36px !important;
        max-height: 36px !important;
    }
    .header-inner {
        padding: 10px 12px !important;
    }
    nav a img {
        height: 48px !important;
    }
    .footer-brand img {
        height: 48px !important;
    }
}

/* About section image (with photo) is defined above, merged */

/* about-feature-icon merged above */


/* Contact Page Styles */
.contact-section {
    padding: 80px 0;
    background: var(--bg-gray);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 40px;
}
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.contact-form-wrapper h2 {
    margin-bottom: 24px;
    color: var(--secondary);
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(48,111,47,0.1);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Focus states for accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Contact Info Styles */
.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.contact-info-content h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--secondary);
}
.contact-info-content p {
    color: var(--text-light);
    margin: 0;
}

/* Hero mobile fix */
@media (max-width: 576px) {
    .hero {
        background-size: cover;
    }
    .contact-form-wrapper {
        padding: 24px 16px;
    }
}

/* Carnations link button in product filter */
.category-btn-link {
    padding: 12px 24px;
    border: 2px solid var(--primary);
    background: var(--white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.category-btn-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* Contact grid responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Variety Cards (Carnations, etc.) */
.varieties-section {
    padding: 80px 0;
    background: var(--bg-gray);
}

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

.variety-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

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

.variety-card.variety-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.variety-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--bg-gray);
}

.variety-featured .variety-image {
    aspect-ratio: 4 / 3;
}

.variety-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.variety-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e63946;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variety-info {
    padding: 24px;
}

.variety-number {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.variety-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.variety-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.variety-featured .variety-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.variety-featured .variety-info h3 {
    font-size: 28px;
}

.variety-featured .variety-info p {
    font-size: 16px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 16px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: white;
}

/* View varieties link on product cards */
.product-detail-card .view-varieties {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-top: 8px;
    transition: gap 0.2s ease;
}

.product-detail-card .view-varieties:hover {
    gap: 10px;
}

@media (max-width: 992px) {
    .varieties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .variety-card.variety-featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .varieties-grid {
        grid-template-columns: 1fr;
    }
    .variety-card.variety-featured {
        grid-template-columns: 1fr;
    }
    .variety-featured .variety-info {
        padding: 24px;
    }
    .variety-featured .variety-info h3 {
        font-size: 22px;
    }
}

/* Contact Info Wrapper */
.contact-info-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.contact-info-wrapper h2 {
    margin-bottom: 24px;
    color: var(--secondary);
}

/* Mobile buttons — prevent text overlap */
@media (max-width: 480px) {
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: auto;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        flex-shrink: 0;
    }
    .hero-content > div[style*="flex"] {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100%;
    }
    .hero-content > div[style*="flex"] .btn {
        width: 100%;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero p {
        font-size: 15px;
    }
    .hero-stat-value {
        font-size: 28px;
    }
    .cta h2 {
        font-size: 24px;
    }
    .cta p {
        font-size: 15px;
    }
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    order: 3;
    flex-shrink: 0;
    margin-left: 24px;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.lang-switcher-btn svg {
    transition: transform 0.2s ease;
}

.lang-switcher.open .lang-switcher-btn svg {
    transform: rotate(180deg);
}

.lang-flag {
    font-size: 16px;
    line-height: 1;
}

.lang-switcher-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1001;
    min-width: 180px;
}

.lang-switcher.open .lang-switcher-dropdown {
    display: block;
    animation: slideDown 0.2s ease;
}

.lang-switcher-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    transition: background 0.15s ease;
    text-align: left;
}

.lang-switcher-item:hover {
    background: var(--bg-gray);
}

.lang-switcher-item.active {
    background: var(--bg-gray);
    color: var(--primary);
    font-weight: 600;
}

.lang-item-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-code {
    font-weight: 600;
    font-size: 13px;
    min-width: 24px;
}

.lang-name {
    color: var(--text-light);
    font-size: 13px;
}

.lang-switcher-item.active .lang-name {
    color: var(--primary);
}

/* Flex ordering for header items */
.header-inner > a:first-child {
    order: 1;
}

#mainNav {
    order: 2;
}

.mobile-menu-btn {
    order: 4;
}

/* Language switcher mobile */
@media (max-width: 768px) {
    .lang-switcher {
        order: 3;
        margin-left: auto;
        margin-right: 8px;
    }

    .mobile-menu-btn {
        order: 4;
    }
}
