/* ==========================================
   Safa Çiçekçilik - Ana Stil Dosyası
   Renk Paleti: Zeytin Yeşili, Beyaz, Altın
   ========================================== */

:root {
  /* header height used to offset non-hero content */
  --header-height: 70px;
  --olive-green: #556b2f;
  --dark-olive: #3d4f21;
  --light-olive: #6b8e23;
  --gold: #d4af37;
  --light-gold: #f4e6c3;
  --white: #ffffff;
  --off-white: #faf9f6;
  --cream: #fffef2;
  --fuchsia: #db0077;
  --shadow-color: rgba(85, 107, 47, 0.1);
  --text-dark: #2c3e1f;
  --text-light: #e8e8e8;
  --ahsap: #deb887;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100vw; /* Prevent tiny overflow on some devices */
}

body {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden; /* Ensure no horizontal scroll */
}

/* Extra safety for full viewport width edge cases */
@media (max-width: 1024px) {
  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /*
  background: linear-gradient(
    120deg,
    rgba(219, 0, 119, 0.95) 0%,
    var(--ahsap) 40%,
    rgb(241, 233, 159) 100%
  );
*/
  background: rgba(226, 222, 210, 0.644);
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  transition: background 320ms ease, box-shadow 320ms ease, padding 220ms ease;
}
.header.scrolled {
  background: var(--white);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.15);
}
.header.scrolled .nav-container {
  padding: 0.2rem 0.7rem;
}
.logo-tagline {
  font-size: 0.75rem;
  color: var(--olive-green);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: transform 220ms ease, color 220ms ease;
  flex-direction: column;
}

.logo:hover {
  color: var(--light-gold);
  transform: scale(1.03);
}
.logo-subtext {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}
.logo-subtext:hover {
  color: var(--light-gold);
  transform: scale(1.03);
}
.logo-icon {
  font-size: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  height: 1.5rem;
}
.nav-menu li a.active {
  color: var(--olive-green);
  font-weight: 600;
}

.nav-menu li a i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.nav-menu li:hover > a i {
  transform: rotate(180deg);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--olive-green));
  transition: width 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--olive-green);
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 15px;
  padding: 0; /* base padding removed; applied when visible to avoid layout jumps */
  min-width: 650px;
  display: none;
  opacity: 0;
  margin-top: 0.5rem;
  z-index: 1001;
}

/* Hide mobile helper by default; show only on mobile via media query */
.dropdown-all {
  display: none;
}

.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  width: 100%;
  height: 1.5rem;
  background: var(--white);
}

/* Desktop only: hover opens multi-column dropdown */
@media (min-width: 769px) {
  /* Desktop: show the full multi-column dropdown on hover.
     Use max-height instead of height:100% because percentage heights rely on parent height
     which can be auto and cause collapse. */
  .dropdown:hover .dropdown-menu {
    display: flex !important;
    animation: fadeInDown 0.28s ease forwards;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    padding: 1.6rem; /* ensure background covers full content */
    min-width: 850px;
    max-width: min(1200px, 94vw);
    z-index: 2000;
    max-height: 80vh; /* cap by viewport to avoid overflow */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start; /* allow content to flow naturally */
  }

  /* Also show when JS forces open (prevents flicker when mouse moves quickly) */
  .dropdown.dropdown-open .dropdown-menu {
    display: flex !important;
    animation: fadeInDown 0.28s ease forwards;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    padding: 1.6rem;
    min-width: 850px;
    max-width: min(1200px, 94vw);
    z-index: 2000;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
  }

  /* Ensure columns layout properly */
  .dropdown-menu > .dropdown-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 180px;
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* small triangle for dropdown menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--white);
}

.dropdown-column {
  flex: 1;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(85, 107, 47, 0.1);
}

.dropdown-column:last-child {
  border-right: none;
}

.dropdown-column h4 {
  font-size: 0.95rem;
  color: var(--olive-green);
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dropdown-column a {
  display: block;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.dropdown-column a:hover {
  color: var(--olive-green);
  padding-left: 0.7rem;
}

/* Dropdown column link tweaks */
.dropdown-links a {
  padding: 6px 0;
  display: block;
  transition: all 0.18s ease;
}
.dropdown-links a:hover {
  padding-left: 8px;
  color: var(--olive-green);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--olive-green);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.mobile-menu-btn.active {
  color: var(--gold);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  /* remove top-gap so header can sit visually on top of the carousel image */
  margin-top: 0;
  height: 100vh;
  background: linear-gradient(135deg, var(--cream) 0%, var(--light-gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  animation: float 20s infinite ease-in-out;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(85, 107, 47, 0.08) 0%,
    transparent 70%
  );
  animation: float 25s infinite ease-in-out reverse;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
  animation: fadeInUp 1s ease;
}

/* ==========================================
   Carousel-specific styles for homepage hero
   ========================================== */
.carousel {
  position: relative;
  height: 100vh; /* cover the viewport fully */
  overflow: hidden;
}

/* Ensure content sections that are not hero are not hidden under fixed header */
/* Add top padding equal to header height for the first non-hero sections */
body > section:not(.hero),
main > section:not(.hero),
section:not(.hero) {
  padding-top: calc(var(--header-height) + 12px);
}

/* When a page has a hero, remove padding from the hero itself so header overlays it */
.hero {
  padding-top: 0;
}

.carousel-slides {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  flex-direction: column;
}

.carousel-text {
  text-align: center;
  color: #fff;
  max-width: 980px;
}

/* Typography & glass pill for carousel (Option A) */
.carousel-text {
  font-family: 'Poppins', sans-serif;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) inset;
}

.carousel-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--ahsap);
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.6px;
  margin-bottom: 0.35rem;
  animation: fadeInUp 900ms ease both;
}

/* decorative underline */
.carousel-title::after {
  content: '';
  display: block;
  width: 86px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, 0.9));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.carousel-desc {
  font-family: 'Poppins', sans-serif;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 0.6rem;
}

/* optional gradient text class */
.carousel-title.gradient {
  background: linear-gradient(90deg, #ffffff, #f8eaf5 60%);
  -webkit-background-clip: text;
  color: transparent;
}

@media (max-width: 768px) {
  .carousel-text {
    padding: 0.7rem 1rem;
    width: min(92%, 520px);
  }
  .carousel-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}

.carousel-title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.carousel-desc {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  max-width: 60ch;
  margin: 0 auto;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 5;
  transition: transform 200ms ease, background 200ms ease;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(255, 255, 255, 0.12);
}

.carousel-arrow.prev {
  left: 18px;
}
.carousel-arrow.next {
  right: 18px;
}

.carousel-indicators {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 6;
}

.carousel-indicators button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 220ms ease;
}

.carousel-indicators button.active {
  transform: scale(1.25);
  background: #fff;
}

@media (max-width: 768px) {
  .carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  .carousel-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .carousel-desc {
    font-size: 0.95rem;
  }
}

/* Moving floral icons overlay inside hero */
.hero-flowers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-flowers .flower {
  position: absolute;
  font-size: 28px;
  opacity: 0.35;
  transition: transform 300ms ease, opacity 300ms ease;
  pointer-events: none;
}
.hero-flowers .flower.green {
  color: var(--light-olive);
}
.hero-flowers .flower.fuchsia {
  color: var(--fuchsia);
}

/* floating animation variations */
@keyframes float-slow {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(6deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}
@keyframes float-slower {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-28px) rotate(-6deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.hero-flowers .flower.f1 {
  left: 14%;
  top: 18%;
  animation: float-slower 8s ease-in-out infinite;
  font-size: 54px;
}
.hero-flowers .flower.f2 {
  right: 8%;
  top: 14%;
  animation: float-slow 6.5s ease-in-out infinite;
  font-size: 60px;
}
.hero-flowers .flower.f3 {
  left: 17%;
  bottom: 25%;
  animation: float-slow 7.5s ease-in-out infinite;
  font-size: 26px;
}
.hero-flowers .flower.f4 {
  right: 15%;
  bottom: 30%;
  animation: float-slower 9s ease-in-out infinite;
  font-size: 28px;
}
.hero-flowers .flower.f5 {
  left: 65%;
  top: 6%;
  transform: translateX(-50%);
  animation: float-slow 7s ease-in-out infinite;
  font-size: 40px;
}
.hero-flowers .flower.f6 {
  left: 32%;
  top: 6%;
  animation: float-slower 10s ease-in-out infinite;
  font-size: 22px;
}

/* Additional flower positions for SVGs f7-f9 (were missing) */
.hero-flowers .flower.f7 {
  left: 35%;
  bottom: 4%;
  animation: float-slow 9.5s ease-in-out infinite;
  font-size: 24px;
}
.hero-flowers .flower.f8 {
  right: 20%;
  bottom: 5%;
  animation: float-slower 11s ease-in-out infinite;
  font-size: 20px;
}

/* make them a bit subtler on small screens */
@media (max-width: 768px) {
  .hero-flowers .flower {
    opacity: 0.9;
    font-size: 20px;
  }
  .hero-flowers .flower.f5 {
    display: none;
  }
}

/* HIDE HERO FLOWERS ON SMALL SCREENS */
@media (max-width: 768px) {
  .hero-flowers {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* If a flower contains an external <img>, constrain its size so it fits the layout */
.hero-flowers .flower img {
  display: block;
  max-width: 140px;
  max-height: 140px;
  width: auto;
  height: auto;
  pointer-events: none;
}

/* Subtle matte <-> translucent pulsing animation for decorative icons */
.hero-flowers .flower,
.hero-flowers .flower img {
  /* base slightly muted */
  opacity: 0.82;
  filter: saturate(0.95) contrast(0.98);
}

@keyframes mattePulse {
  0% {
    opacity: 0.25;
    transform: scale(1);
    filter: saturate(0.9) blur(0px) contrast(0.98);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.03);
    filter: saturate(1.05) blur(0px) contrast(1);
  }
  100% {
    opacity: 0.25;
    transform: scale(1);
    filter: saturate(0.9) blur(0px) contrast(0.98);
  }
}

/* Apply mattePulse on the inner <img> so float transforms on the parent remain smooth */
.hero-flowers .flower img {
  animation: mattePulse 7s ease-in-out infinite;
  will-change: opacity, transform, filter;
}

/* Slight desync so not all pulse together */
.hero-flowers .flower.f1 img {
  animation-duration: 7.6s;
}
.hero-flowers .flower.f2 img {
  animation-duration: 6.8s;
  animation-delay: 0.2s;
}
.hero-flowers .flower.f3 img {
  animation-duration: 8.1s;
  animation-delay: 0.4s;
}
.hero-flowers .flower.f4 img {
  animation-duration: 7.2s;
  animation-delay: 0.15s;
}
.hero-flowers .flower.f5 img {
  animation-duration: 6.6s;
  animation-delay: 0.35s;
}
.hero-flowers .flower.f6 img {
  animation-duration: 9s;
  animation-delay: 0.05s;
}
.hero-flowers .flower.f7 img {
  animation-duration: 7.8s;
  animation-delay: 0.25s;
}
.hero-flowers .flower.f8 img {
  animation-duration: 6.9s;
  animation-delay: 0.18s;
}
.hero-flowers .flower.f9 img {
  animation-duration: 8.4s;
  animation-delay: 0.12s;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--olive-green);
  font-weight: 500;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  animation: fadeIn 1.2s ease;
}

.hero-title {
  font-size: 5rem;
  font-weight: 700;
  color: var(--dark-olive);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(
    135deg,
    var(--dark-olive) 0%,
    var(--olive-green) 50%,
    var(--gold) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1.4s ease;
}

.hero-description {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  animation: fadeIn 1.6s ease;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, var(--olive-green), var(--light-olive));
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(85, 107, 47, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1.8s ease;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(85, 107, 47, 0.4);
}

/* Alternate CTA style for secondary action */
.cta-button.cta-alt {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--gold);
  box-shadow: none;
  padding: 1rem 2.4rem;
}

.cta-button.cta-alt::before {
  display: none;
}
/* Mobil (varsayılan) — alt alta */
.giris_butonlari {
  flex-direction: column;
}

/* Masaüstü (769px ve üzeri) — yan yana */
@media (min-width: 769px) {
  .giris_butonlari {
    flex-direction: row;
  }
}
.cta-button.cta-alt:hover {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.15),
    rgba(85, 107, 47, 0.06)
  );
  color: var(--light-gold);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.12);
}

/* ==========================================
   FEATURED SECTION
   ========================================== */

.featured {
  padding: 8rem 3rem;
  background: var(--white);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

.section-title {
  font-size: 3.5rem;
  color: var(--dark-olive);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--olive-green));
  margin: 1.5rem auto;
  border-radius: 2px;
}

.section-description {
  font-size: 1.2rem;
  color: var(--text-dark);
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  opacity: 0.9;
}

.products-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow-color);
  transition: all 0.5s ease;
  position: relative;
  cursor: pointer;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(212, 175, 55, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 60px rgba(85, 107, 47, 0.2);
}

.product-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-info {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  z-index: 3;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.product-badge.popular {
  background: var(--olive-green);
  box-shadow: 0 5px 15px rgba(85, 107, 47, 0.25);
}

.product-badge.discount {
  position: absolute;
  top: 20px;
  left: 20px;
  background: red;
  color: var(--light-gold);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 5px 12px rgba(212, 175, 55, 0.12);
}

/* Ensure description visually clamps to 2 lines as a fallback */
.product-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name {
  font-size: 1.8rem;
  color: var(--dark-olive);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.product-description {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  opacity: 0.85;
  line-height: 1.7;
}

.product-price {
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.product-button {
  display: inline-block;
  width: 100%;
  padding: 1rem;
  background: var(--olive-green);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
  border: 2px solid var(--olive-green);
}

.product-button:hover {
  background: transparent;
  color: var(--olive-green);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features {
  padding: 8rem 3rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 100%);
}

.features-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.feature-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--olive-green));
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 0;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(85, 107, 47, 0.15);
}

.feature-icon {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
}

.feature-title {
  font-size: 1.6rem;
  color: var(--dark-olive);
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-description {
  font-size: 1rem;
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.8;
  opacity: 0.85;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */

.testimonials {
  padding: 8rem 3rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background: linear-gradient(135deg, var(--off-white) 0%, var(--cream) 100%);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 50px var(--shadow-color);
  margin: 2rem;
  text-align: center;
}

.testimonial-text {
  font-size: 1.3rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.9;
  font-family: 'Playfair Display', serif;
}

.testimonial-author {
  font-size: 1.2rem;
  color: var(--olive-green);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

.testimonial-rating {
  color: var(--gold);
  font-size: 1.5rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background: linear-gradient(
    135deg,
    var(--dark-olive) 0%,
    var(--olive-green) 100%
  );
  color: var(--text-light);
  padding: 5rem 3rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.footer-section p,
.footer-section a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  text-decoration: none;
  display: block;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--gold);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet ve büyük ekranlar için dropdown ayarı */
@media (min-width: 769px) and (max-width: 1024px) {
  .dropdown-menu {
    min-width: 550px;
    padding: 1.5rem;
  }

  .dropdown-column {
    padding: 0 1rem;
  }

  .dropdown-column h4 {
    font-size: 0.85rem;
  }

  .dropdown-column a {
    font-size: 0.85rem;
    padding-bottom: 3rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .nav-container {
    padding: 1rem 2rem;
  }

  .nav-menu {
    gap: 2rem;
  }

  .nav-menu li a {
    font-size: 0.9rem;
  }
}

/* Mobil */
@media (max-width: 768px) {
  /* show mobile menu button on small screens */
  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 1201; /* above header content and nav */
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 10px;
    border-radius: 8px;
  }

  /* when nav becomes active (toggled by JS), slide it into view */
  .nav-menu.active {
    left: 0;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 0;
    transition: left 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .nav-menu li a {
    text-decoration: none;
    /* keep brand green, but improve contrast on fuchsia background */
    color: var(--olive-green);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 220ms ease, text-shadow 220ms ease;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    height: 1.5rem;
    /* subtle text shadow to aid legibility */
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  }
  .nav-menu li a.active {
    color: var(--white);
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    position: relative;
  }
  .dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--cream);
  }

  /* Mobile: simplify menu — hide dropdown children and style main links as full-width buttons */
  .dropdown .dropdown-menu {
    display: none !important;
    max-height: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
  }
  /* Ensure any nested dropdown columns / links are also not focusable/visible on mobile */
  .dropdown .dropdown-column,
  .dropdown .dropdown-menu a {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .dropdown > a i {
    display: none; /* hide chevron on mobile */
  }

  .nav-menu {
    padding-top: 1.2rem;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    width: 100%;
    margin: 1rem;
    border-radius: 0;
    background: transparent;
    color: var(--olive-green);
    font-weight: 600;
    box-shadow: none;
    text-align: left;
    border-bottom: 1px solid rgba(85, 107, 47, 0.06);
  }

  .nav-menu li a:hover {
    background: var(--cream);
    color: var(--olive-green);
    transform: none;
  }

  .nav-menu li a.active {
    background: transparent;
    color: var(--olive-green);
    font-weight: 700;
  }

  /* Make the mobile menu a simple overlay panel */
  .nav-menu {
    left: -100%;
    right: 0;
    width: 100%;
    top: var(--header-height);
    background: var(--white);
    transition: left 240ms ease;
  }

  .nav-menu.active {
    left: 0;
  }

  /* Ensure no dropdown forces horizontal overflow on very small screens */
  @media (max-width: 480px) {
    .dropdown:hover .dropdown-menu {
      display: none !important;
      max-width: 94vw;
      min-width: auto;
    }
    .dropdown .dropdown-menu {
      min-width: auto;
    }
  }

  /* Fix mobile menu button: keep it fixed and visible */
  .mobile-menu-btn {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 1300;
  }

  /* Disable hover-based desktop opening on touch devices to prevent conflicts */
  .dropdown:hover .dropdown-menu {
    display: block; /* keep block but hidden via max-height */
  }

  .dropdown > a::after {
    display: none;
  }

  .dropdown > a i {
    transition: transform 0.3s ease;
    color: var(--olive-green);
    font-size: 1rem;
  }

  /* Hide desktop multi-column dropdown on mobile */
  .dropdown-menu {
    display: none;
  }

  /* Hide the down chevron on mobile since dropdown is disabled there */
  @media (max-width: 768px) {
    .dropdown > a i {
      display: none;
    }
  }

  .dropdown.active > a {
    color: var(--olive-green);
    background: rgba(85, 107, 47, 0.05);
  }

  .dropdown.active > a i {
    transform: rotate(180deg);
  }

  /* Mobile: hide dropdown content completely (Ürünler acts as link) */
  .dropdown-menu {
    display: none;
    position: static;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  /* ensure desktop min-width doesn't leak into mobile */
  .dropdown-menu {
    min-width: 0 !important;
  }

  .dropdown-menu::before,
  .dropdown-menu::after {
    display: none;
  }

  .dropdown-column {
    width: 100%;
    border: none;
    padding: 1rem 0;
    margin: 0;
    background: var(--off-white);
  }

  .dropdown-column:not(:last-child) {
    border-bottom: 1px solid rgba(85, 107, 47, 0.1);
  }

  .dropdown-column h4 {
    font-size: 0.75rem;
    margin: 0 0 0.75rem 0;
    padding: 0 1.5rem;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .dropdown-column a {
    display: block;
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-dark);
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
  }

  .dropdown-column a::after {
    display: none;
  }

  .dropdown-column a:hover,
  .dropdown-column a:active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--olive-green);
    border-left-color: var(--gold);
  }

  .mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    font-size: 1.8rem;
    color: var(--dark-olive);
    cursor: pointer;
    transition: transform 220ms ease, background 220ms ease;
  }
  .mobile-menu-btn:hover {
    color: var(--gold);
    transform: scale(1.08);
    border-radius: 8px;
    transition: transform 200ms ease, background 200ms ease;
  }

  /* Açıldığında yüksekliği JS ile ayarlanacak; fallback olarak büyük değer */
  .dropdown.active .dropdown-menu {
    max-height: 1200px;
    padding: 0.6rem 0;
  }

  .dropdown-all {
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid rgba(85, 107, 47, 0.06);
    background: var(--white);
    display: block;
  }

  .dropdown-all a {
    display: block;
    color: var(--olive-green);
    text-decoration: none;
    font-weight: 600;
  }

  .dropdown-column {
    width: 100%;
    border: none;
    padding: 0.45rem 1rem; /* tighter padding so it fits */
    margin: 0;
    background: transparent;
  }

  /* Ensure no horizontal overflow */
  .nav-menu,
  .nav-menu * {
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .hero {
    margin-top: 70px;
    height: auto;
    min-height: 70vh;
    padding: 3rem 0;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }

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

  .section-subtitle {
    font-size: 0.9rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-container {
    padding: 1rem 1.5rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo-icon {
    font-size: 1.8rem;
  }

  .featured,
  .features,
  .testimonials {
    padding: 4rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .testimonial-card {
    margin: 1rem;
    padding: 2rem;
  }

  .testimonial-text {
    font-size: 1.1rem;
  }
}

/* Küçük mobil cihazlar */
@media (max-width: 480px) {
  /* Ensure full dropdown is visible on hover (make rule more specific/strong).
     Use visibility/opacity and enforce display flex to avoid being overridden. */
  .dropdown .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .dropdown:hover .dropdown-menu {
    display: flex !important;
    animation: none;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    padding: 1.2rem 1.6rem; /* compact but enough to contain content */
    /* prevent forcing wide dropdown on small screens */
    min-width: auto;
    max-width: min(1200px, 94vw);
    z-index: 2000;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .logo-icon {
    font-size: 1.5rem;
  }

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

  .nav-container {
    padding: 0.8rem 1rem;
  }

  .nav-menu {
    padding: 1.5rem;
  }

  .featured,
  .features,
  .testimonials {
    padding: 3rem 1rem;
  }

  .product-name {
    font-size: 1.5rem;
  }

  .product-price {
    font-size: 1.6rem;
  }

  .feature-icon {
    font-size: 3rem;
  }

  .feature-title {
    font-size: 1.3rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
}

/* Çok küçük ekranlar */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.8rem;
  }

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

  .logo {
    font-size: 1.1rem;
  }

  .nav-menu li a {
    font-size: 1rem;
  }
}

/* Ensure mobile menu button is visible (override any later rules) */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block !important;
    z-index: 1201 !important;
  }
}
