/* SgProductTrio — titled product list | tall promo banner | titled product list.
   Phone: banner on top, each list a swipe rail. */

.cc_b3eorip4_pUVFECvpdE .sg-trio__layout {
  display: grid;
  grid-template-columns: var(--trio-cols, minmax(0, 1fr) 30% minmax(0, 1fr));
  grid-template-areas: var(--trio-areas, "l b r");
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
}
.cc_b3eorip4_pUVFECvpdE .sg-trio__col--left { grid-area: l; }
.cc_b3eorip4_pUVFECvpdE .sg-trio__col--right { grid-area: r; }
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner { grid-area: b; }

/* ---------- list column ---------- */
.cc_b3eorip4_pUVFECvpdE .sg-trio__col { display: flex; flex-direction: column; min-width: 0; }
.cc_b3eorip4_pUVFECvpdE .sg-trio__colhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 34px;
  margin-bottom: 14px;
}
.cc_b3eorip4_pUVFECvpdE .sg-trio__title {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-family: var(--sg-font-display);
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--sg-text, var(--sg-ink));
}
/* accent tick before the title */
.cc_b3eorip4_pUVFECvpdE .sg-trio__title::before {
  content: "";
  position: absolute;
  top: 0.12em;
  bottom: 0.12em;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--sg-accent);
}
.cc_b3eorip4_pUVFECvpdE .sg-trio__all {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sg-text, var(--sg-ink));
  text-decoration: none;
  white-space: nowrap;
}
.cc_b3eorip4_pUVFECvpdE .sg-trio__all svg { transition: transform var(--sg-t-fast) var(--sg-ease-out); }
@media (hover: hover) {
  .cc_b3eorip4_pUVFECvpdE .sg-trio__all:hover { text-decoration: underline; text-underline-offset: 4px; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__all:hover svg { transform: translateX(3px); }
}

.cc_b3eorip4_pUVFECvpdE .sg-trio__frame { position: relative; flex: 1; display: flex; flex-direction: column; }
.cc_b3eorip4_pUVFECvpdE .sg-trio__grid {
  /* up to --sg-trio-cols columns; fewer when a cell would get narrower than 200px */
  --trio-min: 200px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(var(--trio-min), calc((100% - (var(--sg-trio-cols, 2) - 1) * var(--trio-g, 0px)) / var(--sg-trio-cols, 2))), 1fr));
  align-content: start;
}

/* table look (gap 0): every cell draws its top + left lines (overlapping the neighbour's by 1px)
   plus outer right / bottom shadows, which the next cell covers — so a half-filled last row still
   reads as closed cells. The frame clips the outer lines and draws the outline. */
.cc_b3eorip4_pUVFECvpdE .sg-trio--table .sg-trio__frame {
  overflow: hidden;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-r-card);
  background: #fff;
}
.cc_b3eorip4_pUVFECvpdE .sg-trio--table .sg-trio__grid { flex: 1; }
.cc_b3eorip4_pUVFECvpdE .sg-trio--table .sg-trio__grid > * {
  margin: -1px 0 0 -1px;
  border-style: solid;
  border-color: var(--sg-line);
  border-width: 1px 0 0 1px;
  box-shadow: 1px 0 0 var(--sg-line), 0 1px 0 var(--sg-line), 1px 1px 0 var(--sg-line);
}

/* cards look (gap > 0) */
.cc_b3eorip4_pUVFECvpdE .sg-trio--cards .sg-trio__grid { --trio-g: var(--sg-trio-gap, 12px); gap: var(--trio-g); }
.cc_b3eorip4_pUVFECvpdE .sg-trio--cards .sg-trio__grid > * { overflow: hidden; border: 1px solid var(--sg-line); border-radius: var(--sg-r-card); }

/* editor hint (empty list) */
.cc_b3eorip4_pUVFECvpdE .sg-trio__hint {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed var(--sg-line-strong, var(--sg-line));
  border-radius: var(--sg-r-card);
  background: var(--sg-surface-2);
  color: var(--sg-ink-2);
  font-size: var(--sg-fs-sm);
  line-height: 1.5;
}
.cc_b3eorip4_pUVFECvpdE .sg-trio__hint svg { flex: none; margin-top: 1px; }

/* ---------- promo banner ---------- */
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner {
  --trio-fg: var(--sg-ink);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--sg-r-card);
  background: var(--trio-bg, var(--sg-surface-2));
  color: var(--trio-fg);
  text-decoration: none;
}
.cc_b3eorip4_pUVFECvpdE .sg-trio__bmedia.sg-mf {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: transparent;
}
.cc_b3eorip4_pUVFECvpdE .sg-trio__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--trio-scrim) 0%, transparent 62%);
  pointer-events: none;
}
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner--v-center .sg-trio__scrim { background: radial-gradient(ellipse at 50% 50%, var(--trio-scrim) 0%, transparent 72%); }
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner--v-end .sg-trio__scrim { background: linear-gradient(to top, var(--trio-scrim) 0%, transparent 62%); }

.cc_b3eorip4_pUVFECvpdE .sg-trio__btext {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 36px);
  text-align: left;
}
/* vertical place of the text block */
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner--v-center .sg-trio__btext { margin-block: auto; }
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner--v-end .sg-trio__btext { margin-top: auto; }
/* horizontal alignment */
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner--h-center .sg-trio__btext { align-items: center; text-align: center; }
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner--h-right .sg-trio__btext { align-items: flex-end; text-align: right; }
.cc_b3eorip4_pUVFECvpdE .sg-trio__logo { display: block; max-width: min(180px, 70%); max-height: 46px; width: auto; height: auto; object-fit: contain; }
.cc_b3eorip4_pUVFECvpdE .sg-trio__beyebrow { font-size: var(--sg-fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.cc_b3eorip4_pUVFECvpdE .sg-trio__btitle {
  margin: 0;
  font-family: var(--sg-font-display);
  font-size: clamp(24px, 2.3vw, 36px);
  font-weight: var(--sg-display-weight, 700);
  line-height: 1.08;
  letter-spacing: var(--sg-display-track, -0.02em);
  text-wrap: balance;
}
.cc_b3eorip4_pUVFECvpdE .sg-trio__bsub {
  display: inline-block;
  margin: 2px 0 0;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--trio-sub-bg, var(--sg-accent));
  color: var(--trio-sub-fg, var(--sg-on-accent));
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.3;
}
.cc_b3eorip4_pUVFECvpdE .sg-trio__bbtn { margin-top: 8px; pointer-events: none; }
@media (hover: hover) {
  .cc_b3eorip4_pUVFECvpdE a.sg-trio__banner:hover .sg-trio__bbtn { --b-bg: var(--b-hover-bg); --b-fg: var(--b-hover-fg); }
  .cc_b3eorip4_pUVFECvpdE a.sg-trio__banner:hover .sg-trio__bbtn .sg-btn__arrow { transform: translateX(4px); }
  .cc_b3eorip4_pUVFECvpdE a.sg-trio__banner:hover .sg-trio__bmedia .sg-mf__img { transform: scale(1.06); }
}
.cc_b3eorip4_pUVFECvpdE a.sg-trio__banner:focus-visible { outline: 2px solid var(--sg-ink); outline-offset: 3px; }

/* "Sığdır" (bannerFit contain): a card — the texts in their own band and the whole photo under them
   (over them with the "end" text position), never covering it. White by default (bannerBackground
   changes it), so a white-background photo meets no visible edge; framed like the list tables. */
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner.is-fit {
  background: var(--trio-bg, #fff);
  border: 1px solid var(--sg-line);
}
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner.is-fit .sg-trio__bmedia.sg-mf {
  position: relative;
  inset: auto;
  z-index: auto;
  flex: 1 1 0;
  min-height: 180px;
  height: auto;
  aspect-ratio: auto;
  padding: 0 clamp(14px, 1.4vw, 22px) clamp(14px, 1.4vw, 22px);
  background: transparent;
}
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner.is-fit .sg-trio__btext { order: -1; gap: 8px; margin: 0; padding: clamp(18px, 1.8vw, 26px) clamp(18px, 1.8vw, 26px) 12px; }
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner.is-fit .sg-trio__btitle { font-size: clamp(21px, 1.8vw, 28px); }
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner.is-fit .sg-trio__bsub { margin: 0; }
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner.is-fit .sg-trio__bbtn { margin-top: 4px; }
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner--v-end.is-fit .sg-trio__btext { order: 1; padding-top: 12px; padding-bottom: clamp(18px, 1.8vw, 26px); }
.cc_b3eorip4_pUVFECvpdE .sg-trio__banner--v-end.is-fit .sg-trio__bmedia.sg-mf { padding: clamp(14px, 1.4vw, 22px) clamp(14px, 1.4vw, 22px) 0; }

/* ---------- tablet: still three columns (the lists drop to one cell per row by themselves) ---------- */
@media (max-width: 1023px) {
  .cc_b3eorip4_pUVFECvpdE .sg-trio__layout { gap: 16px; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__banner { min-height: 420px; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__btext { padding: 20px; }
}

/* ---------- phone: banner on top, each list a swipe rail ---------- */
@media (max-width: 767px) {
  .cc_b3eorip4_pUVFECvpdE .sg-trio .sg-trio__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "b" "l" "r"; gap: 32px; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__banner { min-height: 0; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__bmedia.sg-mf { position: relative; inset: auto; z-index: -2; height: auto; aspect-ratio: var(--sg-ratio-m, 4 / 5); }
  /* text over the photo: stacked on top of it in the same grid cell */
  .cc_b3eorip4_pUVFECvpdE .sg-trio__banner:not(.is-plain) { display: grid; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__banner:not(.is-plain) > * { grid-area: 1 / 1; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__banner:not(.is-plain) .sg-trio__btext { align-self: start; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__banner--v-center:not(.is-plain) .sg-trio__btext { align-self: center; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__banner--v-end:not(.is-plain) .sg-trio__btext { align-self: end; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__scrim { grid-area: 1 / 1; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__banner.is-plain { min-height: 240px; }

  .cc_b3eorip4_pUVFECvpdE .sg-trio--table .sg-trio__frame, .cc_b3eorip4_pUVFECvpdE .sg-trio--cards .sg-trio__frame {
    margin-inline: calc(var(--sg-gutter) * -1);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .cc_b3eorip4_pUVFECvpdE .sg-trio .sg-trio__grid {
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--sg-gutter);
    padding: 0 var(--sg-gutter) 2px;
    scrollbar-width: none;
  }
  .cc_b3eorip4_pUVFECvpdE .sg-trio .sg-trio__grid::-webkit-scrollbar { display: none; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio--table .sg-trio__grid > *, .cc_b3eorip4_pUVFECvpdE .sg-trio--cards .sg-trio__grid > * {
    flex: 0 0 min(58%, 230px);
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sg-line);
    border-radius: var(--sg-r-card);
    box-shadow: none;
    scroll-snap-align: start;
  }
  /* cells stand upright in the rail: photo on top */
  .cc_b3eorip4_pUVFECvpdE .sg-trio__cell.sg-pcell--row {
    --pc-pad: 12px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "media" "body";
  }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__cell.sg-pcell--row .sg-pcell__name { min-height: calc(2em * 1.38); }
  /* upright cells: the add button goes back into the price row */
  .cc_b3eorip4_pUVFECvpdE .sg-trio__cell.sg-pcell--row .sg-pcell__buy { min-height: 40px; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__cell.sg-pcell--row .sg-pcell__now { font-size: 16px; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__cell.sg-pcell--row .sg-pcell__add { position: relative; top: auto; left: auto; width: 40px; height: 40px; margin: 0; box-shadow: none; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__cell.sg-pcell--row .sg-pcell__meta { justify-content: space-between; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__progress { margin-top: 18px; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__hint { margin-inline: 0; }
}
@media (max-width: 767px) and (hover: hover) and (pointer: fine) {
  .cc_b3eorip4_pUVFECvpdE .sg-trio .sg-trio__grid { scroll-snap-type: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cc_b3eorip4_pUVFECvpdE .sg-trio__all svg { transition: none; }
}

/* phone, "Sığdır": text band + photo in the mobile ratio, stacked instead of layered */
@media (max-width: 767px) {
  .cc_b3eorip4_pUVFECvpdE .sg-trio__banner.is-fit { display: flex; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__banner.is-fit > * { grid-area: auto; }
  .cc_b3eorip4_pUVFECvpdE .sg-trio__banner.is-fit .sg-trio__bmedia.sg-mf { flex: none; min-height: 0; aspect-ratio: var(--sg-ratio-m, 4 / 5); }
}
