/* ═══════════════════════════════════════════════════════════════
   UrunKarti — digital product card. Vertical by default; switches to
   a horizontal split when the card itself is wide (single product).
   ═══════════════════════════════════════════════════════════════ */

.cc_x4na41l7_XlTUvcld5V .urun-karti-wrap {
  container-type: inline-size;
  height: 100%;
}

.cc_x4na41l7_XlTUvcld5V .urun-karti {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: transform 300ms var(--ease-soft), box-shadow 300ms var(--ease-soft);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti--highlight {
  border: 2px solid var(--color-pudra);
}

/* Ribbon */

.cc_x4na41l7_XlTUvcld5V .urun-karti__ribbon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--color-surface);
  background: var(--color-accent);
  box-shadow: var(--shadow-soft);
}

/* Media */

/* Media keeps the product image's own proportions (e.g. a 4:5 cover) so
   nothing is cropped; only the empty placeholder has a fixed ratio. */
.cc_x4na41l7_XlTUvcld5V .urun-karti__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--color-paper);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 700ms var(--ease-soft);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti:hover .urun-karti__image {
  transform: scale(1.04);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__image--empty {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--color-pudra);
  background: linear-gradient(160deg, var(--color-accent-light), var(--color-surface-alt));
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(255, 255, 255, 0.92);
}

/* Body */

.cc_x4na41l7_XlTUvcld5V .urun-karti__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__stars {
  display: inline-flex;
  gap: 0.125rem;
  font-size: 0.9375rem;
  color: var(--color-border);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__stars .is-on {
  color: var(--color-honey);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__rating-text {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 450;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__title a {
  color: inherit;
  text-decoration: none;
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__title a:hover {
  color: var(--color-accent);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__features {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* Footer */

.cc_x4na41l7_XlTUvcld5V .urun-karti__footer {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--color-border);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__price-old {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text-muted);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__discount {
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__buy .ba-icon {
  font-size: 1.125rem;
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__soldout {
  display: block;
  padding: 0.875rem;
  border-radius: var(--radius-pill);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface-alt);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__delivery {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__delivery .ba-icon {
  margin-top: 0.125rem;
  font-size: 1rem;
  color: var(--color-accent);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__details {
  align-self: center;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__details:hover {
  color: var(--color-accent);
}

/* Editor-only empty state */

.cc_x4na41l7_XlTUvcld5V .urun-karti--empty {
  min-height: 16rem;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 2rem;
  border-style: dashed;
  box-shadow: none;
  text-align: center;
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__empty-icon {
  font-size: 2rem;
  color: var(--color-accent);
}

.cc_x4na41l7_XlTUvcld5V .urun-karti__empty-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

/* ─── Wide card (single product) → horizontal split ────────── */

@container (min-width: 46rem) {
  .cc_x4na41l7_XlTUvcld5V .urun-karti {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .cc_x4na41l7_XlTUvcld5V .urun-karti__media {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .cc_x4na41l7_XlTUvcld5V .urun-karti__body {
    gap: 1.25rem;
    padding: 2.5rem;
  }

  .cc_x4na41l7_XlTUvcld5V .urun-karti__title {
    font-size: var(--text-h2);
  }

  .cc_x4na41l7_XlTUvcld5V .urun-karti__ribbon {
    right: auto;
    left: 1rem;
  }

  .cc_x4na41l7_XlTUvcld5V .urun-karti__buy {
    width: auto;
    align-self: flex-start;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }

  .cc_x4na41l7_XlTUvcld5V .urun-karti__details {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_x4na41l7_XlTUvcld5V .urun-karti, .cc_x4na41l7_XlTUvcld5V .urun-karti__image {
    transition: none;
  }
}
