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

:root {
  --primary: #2E5A44;
  --primary-light: #4C7C63;
  --primary-dark: #1D3E2E;
  --primary-rgb: 46, 90, 68;
  
  --accent: #C5A880;
  --accent-light: #E5D9C8;
  --accent-dark: #A1855F;
  --accent-rgb: 197, 168, 128;
  
  --bg-cream: #FDFBF7;
  --bg-sand: #F5EFEB;
  --bg-card: #FFFFFF;
  
  --text-dark: #2B2A27;
  --text-light: #FFFFFF;
  --text-muted: #66635D;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.08);
  --border-glass: rgba(46, 90, 68, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary-dark);
}

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

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

/* Container */
.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.7rem 0;
  background: rgba(253, 251, 247, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Proportional Brand Logo */
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* Clean Single-Line Navigation */
nav {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
}

nav ul {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
}

nav ul li {
  flex-shrink: 0;
}

nav ul li a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.45rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-block;
  transition: var(--transition-smooth);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary);
  background: rgba(46, 90, 68, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

/* FIXED EASY-TO-CLICK LANGUAGE DROPDOWN */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropbtn {
  background: rgba(46, 90, 68, 0.08);
  border: 1px solid var(--border-glass);
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  user-select: none;
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: 0.3rem; /* NO MARGIN GAP TO PREVENT CLOSING ON HOVER */
  z-index: 1100;
}

.lang-dropdown-content-inner {
  background: #FFFFFF;
  min-width: 150px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  overflow: hidden;
}

/* Open on hover OR when active/open class is added */
.lang-dropdown:hover .lang-dropdown-content,
.lang-dropdown.open .lang-dropdown-content,
.lang-dropdown-content.show {
  display: block;
}

.lang-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.6rem 1rem;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.lang-btn:hover, .lang-btn.active {
  background: var(--primary);
  color: #FFFFFF;
}

/* Page Hero Header */
.page-hero {
  padding: 6.5rem 0 3rem 0;
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-sand) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border-glass);
}

.page-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(46, 90, 68, 0.1);
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

/* Key Image Hero & Carousel Components */
.hero-key-container {
  margin-top: 2rem;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-glass);
  background: #FFFFFF;
}

.key-image-single {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Carousel Container */
.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  color: #FFFFFF;
  text-align: left;
}

.carousel-caption h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.carousel-caption p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

/* Carousel Nav Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--primary-dark);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.carousel-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

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

.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

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

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

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

.btn-secondary:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

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

/* Product Controls & Cards */
.product-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.search-box {
  width: 100%;
  max-width: 500px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.8rem 1.5rem 0.8rem 2.8rem;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  background: #FFFFFF;
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
  outline: none;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.category-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-tab {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.category-tab.active, .category-tab:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.product-card-img-container {
  width: 100%;
  height: 260px;
  background: var(--bg-sand);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

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

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(46, 90, 68, 0.9);
  color: #FFFFFF;
  padding: 0.25rem 0.7rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.product-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.product-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  border-top: 1px dashed var(--border-glass);
  padding-top: 0.8rem;
}

.product-card-actions {
  display: flex;
  gap: 0.6rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 2.2rem;
  width: 90%;
  max-width: 520px;
  position: relative;
  box-shadow: var(--shadow-premium);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--bg-cream);
  padding: 3.5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col p, .footer-col ul {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* Responsive Mobile Toggle */
.menu-toggle {
  display: none;
}

@media (max-width: 1100px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    box-shadow: var(--shadow-premium);
    padding: 1.5rem;
  }
  
  nav.open {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
  }
  
  .carousel-wrapper {
    height: 300px;
  }
}
