/* Kılınç product cards 1.4.0 — shared storefront card skin; no price/data rewriting. */
.kg-product-card .kg-product-card__body {
  padding: 10px 0 0 !important;
  min-height: 0 !important;
}
.kg-product-card .kg-product-card__title {
  height: 2.7em !important;
  min-height: 2.7em !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  overflow: hidden;
}
.kg-product-card .kg-product-card__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.kg-product-card .kg-product-card__meta {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 20px auto;
  gap: 3px 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* An explicit rating row replaces the old desktop-only 38px spacer. */
.kg-product-card .kg-product-card__meta::before {
  content: none !important;
  display: none !important;
}
.kg-product-card .kg-product-card__meta > :is(.ty-rating-container, .star-rating) {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  max-height: 20px;
}
.kg-product-card .kg-product-card__meta > :is(.price, .ks-price-range, .kg-product-card__price) {
  grid-row: 2;
  grid-column: 1;
}
/* A normal price (including WooCommerce ranges) sits on the sale-price baseline. */
.kg-product-card .kg-product-card__meta :is(.price, .ks-price-range, .kg-product-card__price) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  box-sizing: border-box;
  min-width: 0;
  margin: 0 !important;
  padding: calc(var(--kg-price-card-badge-h, 20px) + 3px) 0 0 !important;
  column-gap: 4px !important;
  row-gap: 3px !important;
  line-height: 1.25 !important;
}
/* Outer Woo price wrappers must not duplicate the nested range's top row. */
.kg-product-card .kg-product-card__meta .price:has(> .ks-price-range) {
  display: block !important;
  padding: 0 !important;
}
.kg-product-card .kg-product-card__meta :is(.price, .ks-price-range, .kg-product-card__price):has(> del) {
  display: grid !important;
  grid-template-columns: auto auto;
  grid-template-rows: var(--kg-price-card-badge-h, 20px) auto;
  justify-content: start !important;
  align-items: center !important;
  column-gap: 6px !important;
  padding: 0 !important;
}
.kg-product-card .kg-product-card__meta :is(.price, .ks-price-range, .kg-product-card__price) > del {
  grid-row: 1;
  grid-column: 1;
  margin: 0 !important;
  font-size: var(--kg-price-card-old, 11.5px) !important;
}
.kg-product-card .kg-product-card__meta .price-discount-perc {
  grid-row: 1;
  grid-column: 2;
  margin: 0 !important;
  box-sizing: border-box;
  height: var(--kg-price-card-badge-h, 20px) !important;
  min-height: 0 !important;
  padding: 0 6px !important;
  font-size: var(--kg-price-card-badge, 10px) !important;
}
.kg-product-card .kg-product-card__meta :is(.price, .ks-price-range, .kg-product-card__price) > ins {
  grid-row: 2;
  grid-column: 1 / -1;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: var(--kg-price-card-sale, 14px) !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}
.kg-product-card .kg-product-card__meta :is(del, ins) .amount {
  white-space: nowrap;
}
.kg-product-card .kg-product-card__meta :is(.price, .ks-price-range) > br {
  display: none !important;
}
@media (max-width: 640px) {
  .kg-product-card .kg-product-card__body { padding-top: 8px !important; }
  .kg-product-card .kg-product-card__meta { grid-template-rows: 18px auto; }
}

/* Shared storefront card skin. Product-detail pages stay intentionally untouched. */
.kg-shop-container ul.products { gap:20px !important; }
body:not(.single-product) .kg-product-card { display:flex; flex-direction:column; border:1px solid #ededed; border-radius:16px; background:#fff; overflow:hidden; }
body:not(.single-product) .kg-product-card__media { background:#f2f2f2; border-radius:15px 15px 0 0; }
body:not(.single-product) .kg-product-card .kg-product-card__body { flex:1; padding:12px 18px 24px !important; }
body:not(.single-product) .kg-product-card .kg-product-card__title { font-size:15px; font-weight:400; line-height:1.4 !important; height:2.8em !important; min-height:2.8em !important; margin-bottom:10px !important; }
body:not(.single-product) .kg-product-card .kfav-heart { width:44px !important; height:44px !important; top:12px !important; right:12px !important; background:transparent !important; border:0 !important; box-shadow:none !important; }
body:not(.single-product) .kg-product-card .kfav-heart svg { width:28px; height:28px; }
body:not(.single-product) .kg-product-card__media.klc-card-gallery-box .klc-card-gallery__dots { gap:3px; bottom:22px; }
body:not(.single-product) .kg-product-card__media.klc-card-gallery-box .klc-card-gallery__dot { width:14px; height:3px; }
body:not(.single-product) .kg-product-card__media.klc-card-gallery-box .klc-card-gallery__dot.is-active { width:6px; }
@media (min-width:768px) and (max-width:1100px) {
 .kg-shop-container ul.products { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}
@media (max-width:767px) {
 .kg-shop-container ul.products { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:18px 20px !important; }
 body:not(.single-product) .kg-product-card { border-radius:12px; }
 body:not(.single-product) .kg-product-card__media { border-radius:11px 11px 0 0; }
 body:not(.single-product) .kg-product-card .kg-product-card__body { padding:10px 10px 18px !important; }
 body:not(.single-product) .kg-product-card .kg-product-card__title { font-size:12px; }
 body:not(.single-product) .kg-product-card .kfav-heart { top:4px !important; right:4px !important; }
 body:not(.single-product) .kg-product-card .kfav-heart svg { width:23px; height:23px; }
}


/* 1.5.0 — Option A: SoChic geometry, Kılınç 3:4 media standard. */
@media (max-width:767px) {
  body:not(.single-product) .kg-product-card {
    border-radius:12px !important;
  }
  body:not(.single-product) .kg-product-card__media {
    aspect-ratio:3 / 4 !important;
    border-radius:11px 11px 0 0 !important;
    background:#f2f2f2 !important;
  }
  body:not(.single-product) .kg-product-card__media img {
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }
  body:not(.single-product) .kg-product-card .kg-product-card__body {
    padding:10px 10px 16px !important;
  }
}
