/* ================================
   DESIGN TOKENS — Ziyalar Design System
================================ */
:root {
  /* Colors */
  --color-primary: #2d7a45;
  --color-primary-dark: #236335;
  --color-primary-light: #3aab5e;
  --color-success: #22c55e;
  --color-danger: #e53e3e;
  --color-warning: #f59e0b;
  --color-white: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-text-primary: #1a1a2e;
  --color-text-muted: #6b7280;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-20: 80px;

  /* Typography */
  --font-family: 'Outfit', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Border Radius */
  --radius: 8px;
  --radius-lg: 14px;
  --radius-full: 50px;

  /* Shadows */
  --shadow-sm: 0 1px 3px 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-green: 0 4px 14px rgba(45,122,69,0.3);

  /* Transitions */
  --transition: all 0.25s ease;
  --transition-slow: all 0.4s ease;
}

/* components/product-item.css — Ziyalar Modern Ürün Kartları */

/* ================================
   PRODUCT SECTION
================================ */
.products {
  padding: var(--space-20) 0;
  background: var(--color-bg-light);
}

/* ================================
   PRODUCT GRID
================================ */
.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* ================================
   PRODUCT CARD
================================ */
.product-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--color-gray-100);
}

.product-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

/* ================================
   PRODUCT IMAGE AREA
================================ */
.product-image {
  position: relative;
  width: 100%;
  padding-top: 75%;  /* 4:3 aspect ratio */
  overflow: hidden;
  background: var(--color-gray-50);
}

.product-image a {
  position: absolute;
  inset: 0;
  display: block;
}

.product-image .img1,
.product-image .img2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.product-image .img2 {
  z-index: 2;
  opacity: 0;
}

/* Hover: img2 belirir, img1 HER ZAMAN görünür kalır */
.product-item:hover .product-image .img1 {
  transform: scale(1.03);
}

.product-item:hover .product-image .img2 {
  opacity: 1;
  transform: scale(1.03);
}

/* ================================
   DISCOUNT BADGE
================================ */
.product-discount {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-danger);
  color: white;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
}

/* ================================
   QUICK ACTIONS OVERLAY
================================ */
.product-links {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 3;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
}

.product-item:hover .product-links {
  opacity: 1;
  transform: translateX(0);
}

.product-links button,
.product-links a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: white;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.product-links button:hover,
.product-links a:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.product-links .basket-count {
  display: none;
}

/* ================================
   PRODUCT INFO
================================ */
.product-info {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.product-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  cursor: default;
}

/* ================================
   STAR RATING
================================ */
.product-star {
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-star span i,
.product-star li i {
  font-size: 12px;
  color: #f59e0b;
}

/* ================================
   PRODUCT PRICE
================================ */
.product-price {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
}

.product-price .price-row,
.product-price {
  flex-wrap: wrap;
}

.new-price,
.old-price {
  display: inline;
}

.new-price {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.old-price {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* ================================
   ADD TO CART BUTTON
================================ */
.sepete-ekle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-family);
  cursor: pointer;
  transition: var(--transition);
  margin-top: var(--space-2);
}

.sepete-ekle::before {
  content: '\F217';
  font-family: 'bootstrap-icons';
  font-size: 0.95rem;
}

.sepete-ekle:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

.sepete-ekle:active {
  transform: scale(0.98);
}

.sepete-ekle.added {
  background: var(--color-success);
}

/* ================================
   WHATSAPP ORDER BUTTON (alternatif)
================================ */
.whatsapp-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-4);
  background: #25d366;
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  margin-top: var(--space-1);
}

.whatsapp-order:hover {
  background: #1ebe5d;
}

/* ================================
   PRODUCT LOAD MORE
================================ */
.product-load-more {
  text-align: center;
  margin-top: var(--space-10);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1280px) {
  .product-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .product-info {
    padding: var(--space-3);
  }

  .new-price {
    font-size: var(--font-size-base);
  }
}