/* YekTek catalog cards v10 — vertical layout with readable type hierarchy. */
main:not(.home-page) .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 16px !important;
}

@media (max-width: 720px) {
  .product-card .card-actions button,
  .product-card .card-actions a,
  main:not(.home-page) .product-card .card-actions button,
  main:not(.home-page) .product-card .card-actions a {
    min-height: 44px;
  }
}

main:not(.home-page) .product-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d9e2ea;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(17, 28, 42, .055);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

main:not(.home-page) .product-card:hover {
  transform: translateY(-3px);
  border-color: #c4d1dc;
  box-shadow: 0 18px 42px rgba(17, 28, 42, .11);
}

main:not(.home-page) .product-card::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 3px;
  background: linear-gradient(90deg, #e31b35 0 36%, #0d7c78 36% 100%);
  content: "";
  opacity: 0;
  transition: opacity .2s ease;
}

main:not(.home-page) .product-card:hover::before { opacity: 1; }

main:not(.home-page) .product-card .product-image,
main:not(.home-page) .product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 228px;
  min-height: 228px;
  padding: 18px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e3e9ef;
  background: #f5f8fa;
}

main:not(.home-page) .product-card .product-image::before,
main:not(.home-page) .product-card__media::before {
  position: absolute;
  inset: 12px;
  border: 1px solid #dde6ed;
  border-radius: 12px;
  background: #fff;
  content: "";
}

main:not(.home-page) .product-card .product-image::after,
main:not(.home-page) .product-card__media::after { display: none; }

main:not(.home-page) .product-card .product-image img,
main:not(.home-page) .product-card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 190px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 12px rgba(17, 28, 42, .08));
  transition: transform .24s ease;
}

main:not(.home-page) .product-card:hover .product-image img,
main:not(.home-page) .product-card:hover .product-card__media img { transform: scale(1.025); }

main:not(.home-page) .product-card .product-info,
main:not(.home-page) .product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  color: #344256;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

main:not(.home-page) .product-card .product-title,
main:not(.home-page) .product-card h3,
main:not(.home-page) .product-card h3 a {
  order: 1;
  display: block;
  min-height: calc(1.42em * 3);
  max-height: none;
  margin: 0 0 13px;
  overflow: visible;
  color: #172231;
  font-size: 14.2px;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  text-decoration: none;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

main:not(.home-page) .product-card .product-title:hover,
main:not(.home-page) .product-card h3 a:hover { color: #c81b31; }

main:not(.home-page) .product-card .product-info > small,
main:not(.home-page) .product-card__body > small {
  order: 2;
  margin: 0 0 4px;
  color: #65758a;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

main:not(.home-page) .product-card .price-row,
main:not(.home-page) .product-card .monthly {
  order: 3;
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-height: 48px;
  margin: 0;
  padding: 7px 11px 6px;
  border: 1px solid #f0c8cf;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #fff4f6;
}

main:not(.home-page) .product-card .price-row strong,
main:not(.home-page) .product-card .monthly strong {
  color: #d51d36;
  font-size: clamp(20px, 1.65vw, 24px);
  font-weight: 820;
  line-height: 1;
  letter-spacing: -.025em;
}

main:not(.home-page) .product-card .price-row em,
main:not(.home-page) .product-card .monthly em,
main:not(.home-page) .product-card .monthly span {
  color: #a5162a;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

main:not(.home-page) .product-card .total-price,
main:not(.home-page) .product-card .total {
  order: 4;
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 7px;
  padding: 8px 11px;
  border: 1px solid #d8e0e8;
  border-top-color: #ead4d8;
  border-radius: 0 0 10px 10px;
  background: #f7f9fb;
  color: #172231;
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0;
}

main:not(.home-page) .product-card .total-price::before,
main:not(.home-page) .product-card .total::before { display: none; }

main:not(.home-page) .product-card .old-price {
  order: 5;
  min-height: 18px;
  margin: 0 2px 7px;
  color: #758397;
  font-size: 10.2px;
  font-weight: 550;
}

main:not(.home-page) .product-card .old-price span {
  text-decoration: line-through;
  text-decoration-color: #d8243c;
}

main:not(.home-page) .product-card .badges {
  order: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 25px;
  margin: 0 0 12px;
}

main:not(.home-page) .product-card .badges span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 7px;
  border: 1px solid #dbe4eb;
  border-radius: 7px;
  background: #f7f9fb;
  color: #56667a;
  font-size: 8.5px;
  font-weight: 650;
}

main:not(.home-page) .product-card .badges span:nth-child(n+2) {
  border-color: #d3e8de;
  background: #f2faf6;
  color: #176b4e;
}

main:not(.home-page) .product-card .card-actions,
main:not(.home-page) .product-card .actions {
  order: 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: auto;
}

main:not(.home-page) .product-card .card-actions button,
main:not(.home-page) .product-card .card-actions a,
main:not(.home-page) .product-card .actions button,
main:not(.home-page) .product-card .actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 7px;
  border: 1px solid #e31b35;
  border-radius: 9px;
  background: #e31b35;
  color: #fff;
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

main:not(.home-page) .product-card .card-actions a,
main:not(.home-page) .product-card .actions a:last-child {
  border-color: #cbd6e0;
  background: #172231;
  color: #fff;
}

main:not(.home-page) .product-card .card-actions button:hover,
main:not(.home-page) .product-card .actions button:hover {
  border-color: #bd162b;
  background: #bd162b;
  transform: translateY(-1px);
}

main:not(.home-page) .product-card .card-actions a:hover,
main:not(.home-page) .product-card .actions a:last-child:hover {
  border-color: #07101b;
  background: #07101b;
  transform: translateY(-1px);
}

main:not(.home-page) .product-card .discount-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  min-height: 27px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 8px;
  background: #e31b35;
  box-shadow: 0 7px 16px rgba(227,27,53,.2);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

main:not(.home-page) .product-card a:focus-visible,
main:not(.home-page) .product-card button:focus-visible {
  outline: 3px solid rgba(8,124,120,.28);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  main:not(.home-page) .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 860px) {
  main:not(.home-page) .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}

@media (max-width: 560px) {
  main:not(.home-page) .product-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  main:not(.home-page) .product-card { border-radius: 14px; }
  main:not(.home-page) .product-card:hover { transform: none; }
  main:not(.home-page) .product-card .product-image,
  main:not(.home-page) .product-card__media { height: 242px; min-height: 242px; padding: 16px; }
  main:not(.home-page) .product-card .product-image img,
  main:not(.home-page) .product-card__media img { max-height: 205px; }
  main:not(.home-page) .product-card .product-info,
  main:not(.home-page) .product-card__body { padding: 15px; }
  main:not(.home-page) .product-card .product-title,
  main:not(.home-page) .product-card h3,
  main:not(.home-page) .product-card h3 a { min-height: auto; margin-bottom: 12px; font-size: 14.6px; line-height: 1.5; }
  main:not(.home-page) .product-card .price-row strong,
  main:not(.home-page) .product-card .monthly strong { font-size: 24px; }
  main:not(.home-page) .product-card .total-price,
  main:not(.home-page) .product-card .total { font-size: 16.5px; }
  main:not(.home-page) .product-card .badges span { font-size: 9px; }
  main:not(.home-page) .product-card .card-actions button,
  main:not(.home-page) .product-card .card-actions a,
  main:not(.home-page) .product-card .actions button,
  main:not(.home-page) .product-card .actions a { min-height: 45px; font-size: 10px; font-weight: 750; }
}

@media (prefers-reduced-motion: reduce) {
  main:not(.home-page) .product-card,
  main:not(.home-page) .product-card img,
  main:not(.home-page) .product-card a,
  main:not(.home-page) .product-card button { transition: none; }
}

/* YekTek catalog cards v11 — simplified, honest price hierarchy. */
.product-card,
main:not(.home-page) .product-card {
  border-color: #dce3e9;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(17, 28, 42, .05);
}

.product-card:hover,
main:not(.home-page) .product-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5de;
  box-shadow: 0 12px 28px rgba(17, 28, 42, .09);
}

.product-card::before,
main:not(.home-page) .product-card::before {
  display: none !important;
}

.product-card .product-image,
.product-card__media,
main:not(.home-page) .product-card .product-image,
main:not(.home-page) .product-card__media {
  height: 218px;
  min-height: 218px;
  padding: 15px;
  border-bottom: 1px solid #e5e9ed;
  background: #f8fafb;
}

.product-card .product-image::before,
.product-card__media::before,
main:not(.home-page) .product-card .product-image::before,
main:not(.home-page) .product-card__media::before {
  inset: 9px;
  border-color: #edf0f2;
  border-radius: 10px;
  background: #fff;
}

.product-card .product-image img,
.product-card__media img,
main:not(.home-page) .product-card .product-image img,
main:not(.home-page) .product-card__media img {
  max-height: 184px;
  filter: none;
}

.product-card .product-info,
.product-card__body,
main:not(.home-page) .product-card .product-info,
main:not(.home-page) .product-card__body {
  padding: 15px;
  color: #465467;
  font-weight: 400;
}

.product-card .product-title,
.product-card h3,
.product-card h3 a,
main:not(.home-page) .product-card .product-title,
main:not(.home-page) .product-card h3,
main:not(.home-page) .product-card h3 a {
  min-height: calc(1.44em * 3);
  margin: 0 0 12px;
  color: #172231;
  font-size: 14.2px;
  font-weight: 680;
  line-height: 1.44;
  letter-spacing: 0;
}

.product-card .product-info > small,
.product-card__body > small,
main:not(.home-page) .product-card .product-info > small,
main:not(.home-page) .product-card__body > small {
  margin: 0 0 3px;
  color: #6a788a;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .035em;
}

.product-card .price-row,
.product-card .monthly,
main:not(.home-page) .product-card .price-row,
main:not(.home-page) .product-card .monthly {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-card .price-row strong,
.product-card .monthly strong,
main:not(.home-page) .product-card .price-row strong,
main:not(.home-page) .product-card .monthly strong {
  color: #d51d36;
  font-size: clamp(21px, 1.65vw, 25px);
  font-weight: 800;
  letter-spacing: -.025em;
}

.product-card .price-row em,
.product-card .monthly em,
.product-card .monthly span,
main:not(.home-page) .product-card .price-row em,
main:not(.home-page) .product-card .monthly em,
main:not(.home-page) .product-card .monthly span {
  color: #a51c2f;
  font-size: 10px;
  font-weight: 700;
}

.product-card .total-price,
.product-card .total,
main:not(.home-page) .product-card .total-price,
main:not(.home-page) .product-card .total {
  min-height: 0;
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #202c3b;
  font-size: clamp(17.5px, 1.35vw, 20px);
  font-weight: 760;
  line-height: 1.25;
}

.product-card .old-price,
main:not(.home-page) .product-card .old-price {
  min-height: 0;
  margin: 4px 0 0;
  color: #6f7c8c;
  font-size: 12px;
  font-weight: 520;
}

.product-card .badges,
main:not(.home-page) .product-card .badges {
  min-height: 0;
  margin: 10px 0 12px;
  gap: 5px;
}

/* The monthly label already explains the installment; avoid repeating it as a badge. */
.product-card .badges span:first-child,
main:not(.home-page) .product-card .badges span:first-child {
  display: none;
}

.product-card .badges span,
main:not(.home-page) .product-card .badges span {
  min-height: 22px;
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  background: #eef8f3;
  color: #176b4e;
  font-size: 8.5px;
  font-weight: 650;
}

.product-card .card-actions,
.product-card .actions,
main:not(.home-page) .product-card .card-actions,
main:not(.home-page) .product-card .actions {
  gap: 7px;
  padding-top: 0;
}

.product-card .card-actions button,
.product-card .card-actions a,
.product-card .actions button,
.product-card .actions a,
main:not(.home-page) .product-card .card-actions button,
main:not(.home-page) .product-card .card-actions a,
main:not(.home-page) .product-card .actions button,
main:not(.home-page) .product-card .actions a {
  min-height: 44px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 720;
}

.product-card .card-actions a,
.product-card .actions a:last-child,
main:not(.home-page) .product-card .card-actions a,
main:not(.home-page) .product-card .actions a:last-child {
  border-color: #cbd5de;
  background: #fff;
  color: #172231;
}

.product-card .discount-pill,
main:not(.home-page) .product-card .discount-pill {
  top: 12px;
  left: 12px;
  min-height: 24px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-size: 8px;
}

@media (max-width: 560px) {
  .product-card .product-image,
  .product-card__media,
  main:not(.home-page) .product-card .product-image,
  main:not(.home-page) .product-card__media {
    height: 220px;
    min-height: 220px;
    padding: 14px;
  }

  .product-card .product-image img,
  .product-card__media img,
  main:not(.home-page) .product-card .product-image img,
  main:not(.home-page) .product-card__media img { max-height: 188px; }

  .product-card .product-title,
  .product-card h3,
  .product-card h3 a,
  main:not(.home-page) .product-card .product-title,
  main:not(.home-page) .product-card h3,
  main:not(.home-page) .product-card h3 a {
    min-height: auto;
    font-size: 14px;
    line-height: 1.45;
  }

  .product-card .price-row strong,
  .product-card .monthly strong,
  main:not(.home-page) .product-card .price-row strong,
  main:not(.home-page) .product-card .monthly strong { font-size: 23px; }

  .product-card .total-price,
  .product-card .total,
  main:not(.home-page) .product-card .total-price,
  main:not(.home-page) .product-card .total { font-size: 18px; }

  .product-card .old-price,
  main:not(.home-page) .product-card .old-price { font-size: 12px; }
}

/* YekTek catalog cards v14 — clearer monthly, total and list-price hierarchy. */
.product-card .price-row strong,
.product-card .monthly strong,
main:not(.home-page) .product-card .price-row strong,
main:not(.home-page) .product-card .monthly strong {
  font-size: clamp(22px, 1.7vw, 25px);
  font-weight: 820;
}

.product-card .total-price,
.product-card .total,
main:not(.home-page) .product-card .total-price,
main:not(.home-page) .product-card .total {
  display: block;
  margin-top: 7px;
  color: #172231;
  font-size: clamp(19px, 1.42vw, 21px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.product-card .old-price,
main:not(.home-page) .product-card .old-price {
  margin-top: 5px;
  color: #68778a;
  font-size: 12.5px;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .product-card .price-row strong,
  .product-card .monthly strong,
  main:not(.home-page) .product-card .price-row strong,
  main:not(.home-page) .product-card .monthly strong { font-size: 23px; }

  .product-card .total-price,
  .product-card .total,
  main:not(.home-page) .product-card .total-price,
  main:not(.home-page) .product-card .total { font-size: 19.5px; }
}

/* YekTek catalog cards v15 — larger imagery without stretched, empty card bodies. */
.product-grid,
.home-deals .product-grid {
  align-items: start !important;
}

.product-card,
main:not(.home-page) .product-card {
  align-self: start;
  height: auto;
}

.product-card .product-image,
.product-card__media,
main:not(.home-page) .product-card .product-image,
main:not(.home-page) .product-card__media {
  height: 246px;
  min-height: 246px;
  padding: 8px;
}

.product-card .product-image::before,
.product-card__media::before,
main:not(.home-page) .product-card .product-image::before,
main:not(.home-page) .product-card__media::before {
  inset: 6px;
}

.product-card .product-image img,
.product-card__media img,
main:not(.home-page) .product-card .product-image img,
main:not(.home-page) .product-card__media img {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  max-width: none;
  max-height: 228px;
}

.product-card .product-info,
.product-card__body,
main:not(.home-page) .product-card .product-info,
main:not(.home-page) .product-card__body {
  flex: 0 0 auto;
  padding: 14px 15px 14px;
}

.product-card .product-title,
.product-card h3,
.product-card h3 a,
main:not(.home-page) .product-card .product-title,
main:not(.home-page) .product-card h3,
main:not(.home-page) .product-card h3 a {
  min-height: 0;
  margin-bottom: 10px;
}

.product-card .badges,
main:not(.home-page) .product-card .badges {
  margin-top: 9px;
  margin-bottom: 0;
}

.product-card .card-actions,
.product-card .actions,
main:not(.home-page) .product-card .card-actions,
main:not(.home-page) .product-card .actions {
  margin-top: 12px;
}

@media (max-width: 1180px) {
  .product-card .product-image,
  .product-card__media,
  main:not(.home-page) .product-card .product-image,
  main:not(.home-page) .product-card__media {
    height: 238px;
    min-height: 238px;
  }

  .product-card .product-image img,
  .product-card__media img,
  main:not(.home-page) .product-card .product-image img,
  main:not(.home-page) .product-card__media img { max-height: 222px; }
}

@media (max-width: 860px) {
  .product-card .product-image,
  .product-card__media,
  main:not(.home-page) .product-card .product-image,
  main:not(.home-page) .product-card__media {
    height: 228px;
    min-height: 228px;
  }

  .product-card .product-image img,
  .product-card__media img,
  main:not(.home-page) .product-card .product-image img,
  main:not(.home-page) .product-card__media img { max-height: 212px; }
}

@media (max-width: 560px) {
  .product-card .product-image,
  .product-card__media,
  main:not(.home-page) .product-card .product-image,
  main:not(.home-page) .product-card__media {
    height: 232px;
    min-height: 232px;
    padding: 7px;
  }

  .product-card .product-image img,
  .product-card__media img,
  main:not(.home-page) .product-card .product-image img,
  main:not(.home-page) .product-card__media img { max-height: 218px; }

  .product-card .product-info,
  .product-card__body,
  main:not(.home-page) .product-card .product-info,
  main:not(.home-page) .product-card__body { padding: 13px 14px 13px; }
}

@media (max-width: 380px) {
  .product-card .product-image,
  .product-card__media,
  main:not(.home-page) .product-card .product-image,
  main:not(.home-page) .product-card__media {
    height: 214px;
    min-height: 214px;
  }

  .product-card .product-image img,
  .product-card__media img,
  main:not(.home-page) .product-card .product-image img,
  main:not(.home-page) .product-card__media img { max-height: 200px; }
}

/* Home keeps two columns on phones; size media to the narrower card width. */
@media (max-width: 720px) {
  main.home-page .product-card .product-image,
  main.home-page .product-card__media {
    height: 178px;
    min-height: 178px;
    padding: 6px;
  }

  main.home-page .product-card .product-image img,
  main.home-page .product-card__media img {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    max-height: 164px;
  }
}

@media (max-width: 380px) {
  main.home-page .product-card .product-image,
  main.home-page .product-card__media {
    height: 170px;
    min-height: 170px;
  }

  main.home-page .product-card .product-image img,
  main.home-page .product-card__media img { max-height: 156px; }
}

/* YekTek catalog cards v17 — net fiyat sırası: toplam, taksit etiketi, aylık tutar. */
.product-card .total-price,
.product-card .total,
main:not(.home-page) .product-card .total-price,
main:not(.home-page) .product-card .total {
  display: block;
  margin: 0 0 5px;
  color: #172231;
  font-size: clamp(22px, 1.7vw, 25px);
  font-weight: 820;
  line-height: 1.15;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.product-card .product-info > small.installment-label,
.product-card__body > small.installment-label,
main:not(.home-page) .product-card .product-info > small.installment-label,
main:not(.home-page) .product-card__body > small.installment-label {
  display: block;
  margin: 2px 0 1px;
  color: #69788b;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .045em;
}

.product-card .price-row,
.product-card .monthly,
main:not(.home-page) .product-card .price-row,
main:not(.home-page) .product-card .monthly {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 0;
}

.product-card .price-row strong,
.product-card .monthly strong,
main:not(.home-page) .product-card .price-row strong,
main:not(.home-page) .product-card .monthly strong {
  font-size: clamp(19.1px, 1.47vw, 21.8px);
  line-height: 1.15;
}

@media (max-width: 720px) {
  .product-card .total-price,
  .product-card .total,
  main:not(.home-page) .product-card .total-price,
  main:not(.home-page) .product-card .total {
    font-size: clamp(17px, 4.8vw, 20px);
  }

  .product-card .price-row strong,
  .product-card .monthly strong,
  main:not(.home-page) .product-card .price-row strong,
  main:not(.home-page) .product-card .monthly strong {
    font-size: clamp(17.3px, 4.73vw, 19.1px);
  }

  .product-card .product-info > small.installment-label,
  .product-card__body > small.installment-label,
  main:not(.home-page) .product-card .product-info > small.installment-label,
  main:not(.home-page) .product-card__body > small.installment-label {
    font-size: 8.5px;
  }
}

/* YekTek catalog cards v18 — indirimli üründe güncel ve eski toplam aynı satırda. */
.product-card .total-line,
main:not(.home-page) .product-card .total-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0 0 5px;
}

.product-card .total-line .total-price,
main:not(.home-page) .product-card .total-line .total-price {
  margin: 0;
}

.product-card .total-line .old-price,
main:not(.home-page) .product-card .total-line .old-price {
  margin: 0;
  color: #7a8695;
  font-size: clamp(11px, .82vw, 12.5px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.product-card .total-line .old-price span,
main:not(.home-page) .product-card .total-line .old-price span {
  text-decoration-thickness: 1.25px;
  text-decoration-color: #7a8695;
}

@media (max-width: 720px) {
  .product-card .total-line,
  main:not(.home-page) .product-card .total-line {
    gap: 3px 6px;
    margin-bottom: 4px;
  }

  .product-card .total-line .old-price,
  main:not(.home-page) .product-card .total-line .old-price {
    font-size: clamp(9px, 2.8vw, 11px);
  }
}

/* YekTek catalog cards v19 — every storefront grid uses one card system. */
main .product-grid.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 16px !important;
}

main .product-grid.product-grid > .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
}

main .product-grid.product-grid > .product-card .product-image,
main .product-grid.product-grid > .product-card .product-card__media {
  width: 100%;
  height: 228px;
  min-height: 228px;
  padding: 10px;
}

main .product-grid.product-grid > .product-card .product-image img,
main .product-grid.product-grid > .product-card .product-card__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 210px;
  object-fit: contain;
  object-position: center;
}

main .product-grid.product-grid > .product-card .product-info,
main .product-grid.product-grid > .product-card .product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
}

main .product-grid.product-grid > .product-card .product-title,
main .product-grid.product-grid > .product-card h3,
main .product-grid.product-grid > .product-card h3 a {
  order: 1;
  min-height: calc(1.4em * 3);
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

main .product-grid.product-grid > .product-card .total-price,
main .product-grid.product-grid > .product-card .total,
main .product-grid.product-grid > .product-card .total-line { order: 2; }

main .product-grid.product-grid > .product-card .product-info > small.installment-label,
main .product-grid.product-grid > .product-card .product-card__body > small.installment-label { order: 3; }

main .product-grid.product-grid > .product-card .price-row,
main .product-grid.product-grid > .product-card .monthly { order: 4; }

main .product-grid.product-grid > .product-card .old-price { order: 5; }

main .product-grid.product-grid > .product-card .badges { order: 6; }

main .product-grid.product-grid > .product-card .card-actions,
main .product-grid.product-grid > .product-card .actions {
  order: 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  margin-top: auto;
}

main .product-grid.product-grid > .product-card .card-actions > :only-child,
main .product-grid.product-grid > .product-card .actions > :only-child {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  main .product-grid.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 860px) {
  main .product-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  main .product-grid.product-grid > .product-card .product-image,
  main .product-grid.product-grid > .product-card .product-card__media {
    height: 190px;
    min-height: 190px;
    padding: 7px;
  }

  main .product-grid.product-grid > .product-card .product-image img,
  main .product-grid.product-grid > .product-card .product-card__media img { max-height: 176px; }

  main .product-grid.product-grid > .product-card .product-info,
  main .product-grid.product-grid > .product-card .product-card__body { padding: 11px; }

  main .product-grid.product-grid > .product-card .product-title,
  main .product-grid.product-grid > .product-card h3,
  main .product-grid.product-grid > .product-card h3 a {
    min-height: calc(1.38em * 3);
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.38;
  }
}

@media (max-width: 560px) {
  main .product-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  main .product-grid.product-grid > .product-card .product-image,
  main .product-grid.product-grid > .product-card .product-card__media {
    height: 170px;
    min-height: 170px;
    padding: 5px;
  }

  main .product-grid.product-grid > .product-card .product-image img,
  main .product-grid.product-grid > .product-card .product-card__media img { max-height: 160px; }

  main .product-grid.product-grid > .product-card .product-info,
  main .product-grid.product-grid > .product-card .product-card__body { padding: 9px; }

  main .product-grid.product-grid > .product-card .product-title,
  main .product-grid.product-grid > .product-card h3,
  main .product-grid.product-grid > .product-card h3 a {
    min-height: calc(1.35em * 3);
    margin-bottom: 7px;
    font-size: 11px;
    line-height: 1.35;
  }

  main .product-grid.product-grid > .product-card .total-price,
  main .product-grid.product-grid > .product-card .total { font-size: 16px; }

  main .product-grid.product-grid > .product-card .price-row strong,
  main .product-grid.product-grid > .product-card .monthly strong { font-size: 16.4px; }

  main .product-grid.product-grid > .product-card .card-actions button,
  main .product-grid.product-grid > .product-card .card-actions a,
  main .product-grid.product-grid > .product-card .actions button,
  main .product-grid.product-grid > .product-card .actions a {
    min-height: 40px;
    padding: 6px 4px;
    font-size: 8px;
  }
}

@media (max-width: 380px) {
  main .product-grid.product-grid > .product-card .product-image,
  main .product-grid.product-grid > .product-card .product-card__media {
    height: 154px;
    min-height: 154px;
  }

  main .product-grid.product-grid > .product-card .product-image img,
  main .product-grid.product-grid > .product-card .product-card__media img { max-height: 144px; }
}

/* v20: every storefront product image carries the same installment promise. */
.product-card .product-image::after,
.product-card .product-card__media::after,
main:not(.home-page) .product-card .product-image::after,
main:not(.home-page) .product-card .product-card__media::after {
  content: "Vade farksız 3 taksit";
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  display: inline-flex !important;
  align-items: center;
  min-height: 23px;
  max-width: calc(100% - 68px);
  padding: 4px 8px;
  border: 1px solid rgba(9, 135, 117, .23);
  border-radius: 999px;
  background: rgba(244, 253, 250, .96);
  box-shadow: 0 7px 18px rgba(18, 52, 62, .10);
  color: #087a69;
  font-size: 8.8px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  pointer-events: none;
  transform: none;
}

.product-card.product-card--discounted .product-image::after,
.product-card.product-card--discounted .product-card__media::after,
main:not(.home-page) .product-card.product-card--discounted .product-image::after,
main:not(.home-page) .product-card.product-card--discounted .product-card__media::after {
  top: 12px;
  left: 82px;
  max-width: calc(100% - 138px);
}

@media (max-width: 560px) {
  .product-card .product-image::after,
  .product-card .product-card__media::after,
  main:not(.home-page) .product-card .product-image::after,
  main:not(.home-page) .product-card .product-card__media::after {
    top: 8px;
    left: 8px;
    min-height: 20px;
    max-width: calc(100% - 56px);
    padding: 3px 6px;
    font-size: 7.4px;
  }

  .product-card.product-card--discounted .product-image::after,
  .product-card.product-card--discounted .product-card__media::after,
  main:not(.home-page) .product-card.product-card--discounted .product-image::after,
  main:not(.home-page) .product-card.product-card--discounted .product-card__media::after {
    top: 8px;
    left: 70px;
    max-width: calc(100% - 116px);
  }
}

@media (max-width: 390px) {
  .product-card .product-image::after,
  .product-card .product-card__media::after,
  main:not(.home-page) .product-card .product-image::after,
  main:not(.home-page) .product-card .product-card__media::after {
    content: "3 taksit";
  }

  .product-card.product-card--discounted .product-image::after,
  .product-card.product-card--discounted .product-card__media::after,
  main:not(.home-page) .product-card.product-card--discounted .product-image::after,
  main:not(.home-page) .product-card.product-card--discounted .product-card__media::after {
    left: 66px;
    max-width: calc(100% - 108px);
    padding-inline: 4px;
    font-size: 6.6px;
    letter-spacing: 0;
  }
}

/* v21: total price is the primary figure; monthly installment stays secondary. */
.product-card .total-price,
.product-card .total,
main:not(.home-page) .product-card .total-price,
main:not(.home-page) .product-card .total {
  font-size: clamp(23.1px, 1.785vw, 26.25px);
}

.product-card .price-row strong,
.product-card .monthly strong,
main:not(.home-page) .product-card .price-row strong,
main:not(.home-page) .product-card .monthly strong {
  font-size: clamp(18.15px, 1.397vw, 20.7px);
}

@media (max-width: 560px) {
  main .product-grid.product-grid > .product-card .total-price,
  main .product-grid.product-grid > .product-card .total {
    font-size: 16.8px;
  }

  main .product-grid.product-grid > .product-card .price-row strong,
  main .product-grid.product-grid > .product-card .monthly strong {
    font-size: 15.6px;
  }
}
