/* TrioPopularProducts — banner + 2x2 ürün ızgarası (1:1 from triogold) */

.cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products {
  font-family: var(--tg-font);
  overflow-x: clip;
  max-width: 100%;
}

.cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-products {
  margin-bottom: 88px;
}

.cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 0 -16px;
}

.cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-col {
  padding: 0 16px;
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
}

.cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-banner {
  position: relative;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid #bebebe;
  border-radius: 10px;
  background-color: #fff;
  height: auto;
  box-sizing: border-box;
  overflow: hidden;
  align-self: flex-start;
}

/* Linkli ve linksiz banner birebir aynı görünür — <a> sarmalayıcı şekil dayatmaz */
.cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-banner > a {
  display: block;
  min-height: 0;
}

.cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-banner .popular-banner-image {
  height: auto;
}

.cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-banner .popular-banner-image img {
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 10px;
  display: block;
}

.cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 0;
  margin: 0 -16px;
}

.cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col {
  padding: 0 16px;
  min-width: 0;
  display: flex;
}

.cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col .showcase {
  width: 100%;
  margin-bottom: 32px;
}

@media (min-width: 992px) {
  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-col-banner {
    flex: 0 0 50%;
    max-width: 50%;
    order: 1;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-col-products {
    flex: 0 0 50%;
    max-width: 50%;
    order: 2;
  }

  /* Ürün kolonu banner kutusuyla birebir aynı hizada başlar ve biter.
     Yükseklik JS ile ölçülüp --popular-banner-height olarak yazılır. */
  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-col-products {
    height: var(--popular-banner-height, auto);
    max-height: var(--popular-banner-height, none);
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-products-grid {
    height: 100%;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col {
    min-height: 0;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col .showcase {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    margin-bottom: 0;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 0;
  }

  /* Görsel esner, içerik sabit kalır — kart hücresine sığar, taşmaz */
  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col .showcase .showcase-image-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col .showcase .showcase-image {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col .showcase .showcase-image a {
    height: 100%;
    padding-top: 0;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col .showcase .showcase-content {
    flex: 0 0 auto;
    padding-top: 12px;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col .showcase .showcase-title {
    margin-bottom: 6px;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col .showcase .showcase-title a {
    height: 40px;
    line-height: 20px;
    font-size: 14px;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col .showcase .showcase-brand {
    height: 22px;
    margin-bottom: 6px;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col .showcase .showcase-content .showcase-price {
    height: 60px;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col .showcase .showcase-content .showcase-price .showcase-price-new {
    font-size: 15px;
    line-height: 20px;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-product-col .showcase .showcase-content .showcase-price .showcase-price-vat {
    font-size: 20px;
    line-height: 26px;
  }
}

@media (max-width: 991px) {
  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-col-banner {
    order: 2;
  }

  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-col-products {
    order: 1;
  }
}

@media (max-width: 575px) {
  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .cc_faIvPdY3Rx_q4nNZ8y1sC .trio-popular-products .popular-products {
    margin-bottom: 48px;
  }
}
