/* URUNLER.CSS - ÜRÜN KATALOĞU */

.products-hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 60%, #3d7a35 100%);
  color: white;
  text-align: center;
  padding: clamp(70px, 12vw, 110px) 0;
  position: relative;
  overflow: hidden;
}

.products-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 45%);
  pointer-events: none;
}

.products-hero .hero-content {
  position: relative;
  z-index: 1;
}

.products-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent-gold, #FF9800);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255,152,0,0.35);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255,152,0,0.45);
  color: white;
}

.products-catalog {
  padding: clamp(60px, 8vw, 90px) 0;
  background: var(--warm-white, #FAFAF8);
}

.catalog-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.catalog-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.catalog-intro p {
  color: var(--medium-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.category-section {
  margin-bottom: clamp(50px, 8vw, 80px);
}

.category-section:last-child {
  margin-bottom: 0;
}

.category-title {
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-weight: 700;
}

.category-title i {
  font-size: 1.75rem;
  color: var(--primary-green);
  background: rgba(45,90,39,0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(45,90,39,0.12);
}

.product-image {
  position: relative;
  min-height: 300px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 1.25rem 1.25rem 0.85rem;
  background: linear-gradient(180deg, #f9fbf8 0%, #eef3eb 100%);
  overflow: hidden;
}

.product-gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.product-gallery-main {
  position: relative;
  flex: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-main-img {
  width: 100%;
  max-height: 260px;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease, opacity 0.25s ease;
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 0.15rem;
}

.product-gallery-thumb {
  width: 58px;
  height: 58px;
  padding: 3px;
  border: 2px solid rgba(45, 90, 39, 0.15);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-gallery-thumb:hover {
  border-color: var(--light-green);
}

.product-gallery-thumb.is-active {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(45, 90, 39, 0.12);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.product-image img:not(.product-gallery-main-img) {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

.product-card:hover .product-gallery-main-img,
.product-card:hover .product-image img:not(.product-gallery-thumb img) {
  transform: scale(1.04);
}

.product-image .badge,
.product-gallery-main .badge {
  position: absolute;
  top: 14px;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  line-height: 1.2;
}

.product-image .badge.popular {
  left: 14px;
  right: auto;
  background: var(--accent-gold, #FF9800);
}

.product-image .badge.new,
.product-image .badge.economy {
  left: auto;
  right: 14px;
}

.product-image .badge.new {
  background: var(--primary-green);
}

.product-image .badge.economy {
  background: #28a745;
}

.product-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 {
  color: var(--primary-green);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.product-info p {
  color: var(--medium-text);
  margin-bottom: 1.25rem;
  line-height: 1.65;
  font-size: 0.95rem;
  flex: 1;
}

.product-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card-title-link:hover {
  color: var(--primary-green);
}

.product-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
}

.buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: #25D366;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
  border: none;
  cursor: pointer;
}

.buy-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,211,102,0.4);
}

.buy-btn i {
  font-size: 1.2rem;
}

.products-cta-banner {
  background: linear-gradient(135deg, #1e4620 0%, var(--primary-green) 100%);
  padding: clamp(50px, 8vw, 70px) 0;
}

.products-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.products-cta-inner h2 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.products-cta-inner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin: 0;
  max-width: 520px;
}

.products-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--primary-green);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.products-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: var(--primary-green);
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 280px;
  max-width: 400px;
  background: var(--primary-green, #2D5A27);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  z-index: 10002;
  animation: notificationSlideIn 0.4s ease forwards;
  font-size: 0.95rem;
  font-weight: 500;
}

.notification.success {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.notification.error {
  background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@keyframes notificationSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes notificationSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .products-catalog .products-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    max-width: 420px;
    margin: 0 auto;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    padding: 0;
  }

  .products-catalog .product-card {
    flex: unset !important;
    min-width: 0 !important;
    width: 100% !important;
    scroll-snap-align: unset !important;
  }

  .products-catalog .product-image {
    min-height: 0;
    height: auto;
    padding: 1rem 0.9rem 0.95rem;
    overflow: visible;
  }

  .products-catalog .product-gallery {
    gap: 0.6rem;
  }

  .products-catalog .product-gallery-main {
    min-height: 170px;
  }

  .products-catalog .product-gallery-main-img {
    max-height: 180px;
  }

  .products-catalog .product-gallery-thumbs {
    gap: 0.4rem;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .products-catalog .product-gallery-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
  }

  .category-title {
    flex-direction: column;
    gap: 0.75rem;
  }

  .products-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .products-cta-inner p {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .products-catalog .product-image {
    height: auto;
    min-height: 0;
    padding: 0.9rem 0.7rem 0.85rem;
  }

  .products-catalog .product-gallery-main {
    min-height: 155px;
  }

  .products-catalog .product-gallery-main-img {
    max-height: 165px;
  }

  .products-catalog .product-gallery-thumb {
    width: 42px;
    height: 42px;
    padding: 2px;
  }

  .product-info {
    padding: 1.25rem;
  }
}
