/* ============================================
   Büyük Kartlar – Kompakt, renkli sol çerçeve
   ============================================ */

.theme-cards {
  --cards-accent-1: #0ea5e9;
  --cards-accent-2: #10b981;
  --cards-accent-3: #8b5cf6;
  --cards-accent-4: #f59e0b;
  --cards-accent-5: #ec4899;
  --cards-bar-bg: #334155;
  --cards-cta-bg: #ea580c;
  --cards-cta-hover: #c2410c;
}

/* Daha sık grid – kartlar küçük */
.theme-cards .home-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (min-width: 1400px) {
  .theme-cards .home-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}
@media (max-width: 1100px) {
  .theme-cards .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .theme-cards .home-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 420px) {
  .theme-cards .home-grid {
    grid-template-columns: 1fr;
  }
}

.theme-cards .product,
.theme-cards .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (min-width: 1200px) {
  .theme-cards .product,
  .theme-cards .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1500px) {
  .theme-cards .product,
  .theme-cards .grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 768px) {
  .theme-cards .product,
  .theme-cards .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 420px) {
  .theme-cards .product,
  .theme-cards .grid {
    grid-template-columns: 1fr;
  }
}

/* Kart – ince sol çerçeve (sürpriz: renk yanda) */
.theme-cards .product-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid var(--cards-accent-1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}
.theme-cards .product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.theme-cards .home-grid .product-card:nth-child(5n+1),
.theme-cards .product .product-card:nth-child(5n+1),
.theme-cards .grid .product-card:nth-child(5n+1) { border-left-color: var(--cards-accent-1); }
.theme-cards .home-grid .product-card:nth-child(5n+2),
.theme-cards .product .product-card:nth-child(5n+2),
.theme-cards .grid .product-card:nth-child(5n+2) { border-left-color: var(--cards-accent-2); }
.theme-cards .home-grid .product-card:nth-child(5n+3),
.theme-cards .product .product-card:nth-child(5n+3),
.theme-cards .grid .product-card:nth-child(5n+3) { border-left-color: var(--cards-accent-3); }
.theme-cards .home-grid .product-card:nth-child(5n+4),
.theme-cards .product .product-card:nth-child(5n+4),
.theme-cards .grid .product-card:nth-child(5n+4) { border-left-color: var(--cards-accent-4); }
.theme-cards .home-grid .product-card:nth-child(5n+5),
.theme-cards .product .product-card:nth-child(5n+5),
.theme-cards .grid .product-card:nth-child(5n+5) { border-left-color: var(--cards-accent-5); }

/* Görsel – kompakt oran */
.theme-cards .product-card .imgwrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f1f5f9;
}
.theme-cards .product-card .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.theme-cards .product-card:hover .thumb {
  transform: scale(1.04);
}


/* Renkli pill (kart rengine uyum) – JS yok, nth-child ile parent’tan */

/* Rozetler – sağ üst, küçük */
.theme-cards .product-card .pc-badges {
  top: 8px;
  right: 8px;
  left: auto;
  transform: none;
}
.theme-cards .product-card .pc-badges-inner { gap: 4px; align-items: flex-end; }
.theme-cards .product-card .pc-badge {
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  border: none;
}
.theme-cards .product-card .pc-badge i { font-size: 8px; }

/* Gövde – sıkı */
.theme-cards .product-card .card-body {
  padding: 10px 12px 12px;
}
.theme-cards .product-card .badge-row { margin-bottom: 6px; }
.theme-cards .product-card .badge-row .badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}
.theme-cards .product-card .p-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-cards .product-card .p-name a {
  color: #1e293b;
  text-decoration: none;
}
.theme-cards .product-card .p-name a:hover { color: #0ea5e9; }
.theme-cards .product-card .p-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Fiyat – kompakt */
.theme-cards .product-card .price {
  margin-bottom: 0;
  gap: 6px;
}
.theme-cards .product-card .price .new {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.theme-cards .product-card .price.is-campaign .new {
  color: #dc2626;
}
.theme-cards .product-card .price .old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}

.theme-cards .product-card .pc-bottom .addcart {
  display: none;
}

/* Alt bar – ince */
.theme-cards .product-card .pc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--cards-bar-bg);
  color: #fff;
  margin-top: auto;
}
.theme-cards .product-card .pc-card-footer-loc {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-cards .product-card .pc-card-footer .addcart-footer { flex-shrink: 0; margin: 0; }
.theme-cards .product-card .pc-card-footer-btn {
  padding: 6px 12px;
  background: var(--cards-cta-bg);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.theme-cards .product-card .pc-card-footer-btn:hover {
  background: var(--cards-cta-hover);
  transform: translateY(-1px);
}

.theme-cards .product-card .variants { margin-bottom: 8px; }
.theme-cards .product-card .variant-btn {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
}

.theme-cards .carousel-item { flex: 0 0 200px; }
@media (max-width: 720px) {
  .theme-cards .carousel-item { flex-basis: 180px; }
}

.theme-cards .section-head h2 {
  font-size: 18px;
  font-weight: 800;
}
