/**
 * Yesti Ürünler — front-end styles
 *
 * Uses hubsteel's CSS variables and Bootstrap container/row/col-* classes for
 * automatic harmony with the rest of the site.
 *   --primary-color  -> theme green (#2b803a)
 *
 * Class prefix: yu- (yesti-urunler)
 */

:root {
  --yu-green:       var(--primary-color, #2b803a);
  --yu-green-dark:  #246c30;
  --yu-text:        #1f1f1f;
  --yu-muted:       #6c6c6c;
  --yu-bg-soft:     #f6f7f5;
  --yu-border:      rgba(0,0,0,.08);
}

/* ================== HERO ================== */
.yu-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  margin-top: -83px;       /* tuck under the fixed-height header on desktop */
  margin-bottom: 60px;
}
.yu-hero--archive { min-height: 280px; }
@media (max-width: 991.98px) {
  .yu-hero { margin-top: -70px; }
}
.yu-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.55);
}
.yu-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.yu-hero--archive { background-color: #2a2a2a; }
.yu-hero__inner {
  position: relative;
  padding: 70px 0;
  max-width: 760px;
}
.yu-hero__title {
  color: #fff;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin: 18px 0 22px;
}

/* ================== TAGS / LABELS ================== */
.yu-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--yu-green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
}
.yu-tag--small { padding: 3px 10px; font-size: 11px; }
.yu-tag--center { display: block; width: max-content; margin: 0 auto 12px; }

.yu-breadcrumb {
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.yu-breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.yu-breadcrumb a:hover { color: #fff; }
.yu-breadcrumb .sep { margin: 0 8px; opacity: .6; }
.yu-breadcrumb .current { color: #fff; font-weight: 600; }

/* ================== BODY LAYOUT ================== */
.yu-body { padding-bottom: 80px; }
.yu-side { display: flex; flex-direction: column; gap: 26px; }

/* ================== CARDS ================== */
.yu-card {
  background: #fff;
  border: 1px solid var(--yu-border);
  border-radius: 4px;
  overflow: hidden;
}
.yu-card__head {
  background: var(--yu-green);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 22px;
  margin: 0;
  line-height: 1.3;
}
.yu-card__subhead {
  background: var(--yu-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 22px;
  margin: 0;
}
.yu-card__head--white {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin: 14px 0 18px;
  line-height: 1.25;
}

/* Info list (left card, below green head) */
.yu-info-list {
  list-style: none;
  margin: 0;
  padding: 14px 22px;
}
.yu-info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--yu-border);
  font-size: 14px;
}
.yu-info-list li:last-child { border-bottom: none; }
.yu-info-list__icon {
  color: var(--yu-green);
  font-size: 18px;
  width: 22px;
  flex-shrink: 0;
}
.yu-info-list__label { color: var(--yu-muted); flex-shrink: 0; }
.yu-info-list__value { color: var(--yu-text); font-weight: 600; margin-left: auto; text-align: right; }

/* Download card */
.yu-card--download {
  padding: 0 0 20px;
}
.yu-card--download p {
  padding: 14px 22px 4px;
  margin: 0 0 8px;
  color: var(--yu-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Contact CTA card (dark) */
.yu-card--cta {
  background: #1a1a1a;
  color: #fff;
  padding: 28px 26px;
  border-color: #1a1a1a;
  text-align: left;
}
.yu-card--cta .yu-phone {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
}
.yu-card--cta .yu-meta-line {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  margin: 4px 0;
}

/* ================== BUTTONS ================== */
.yu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 22px 0;
  padding: 12px 22px;
  background: var(--yu-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s ease;
}
.yu-btn:hover { background: var(--yu-green-dark); color: #fff; }
.yu-btn--primary { padding: 14px 24px; }
.yu-btn--ghost {
  background: var(--yu-green);
  margin: 18px 0 0;
}
.yu-btn--ghost:hover { background: var(--yu-green-dark); }
.yu-btn .dashicons { font-size: 18px; width: auto; height: auto; }

/* ================== MAIN RIGHT COLUMN ================== */
.yu-main { padding-left: 30px; }
.yu-section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--yu-text);
  margin: 0 0 22px;
  padding-bottom: 12px;
  position: relative;
}
.yu-section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 50px; height: 3px;
  background: var(--yu-green);
}
.yu-content { color: var(--yu-text); font-size: 16px; line-height: 1.7; }
.yu-content p { margin: 0 0 18px; }
.yu-content strong { color: var(--yu-text); }

.yu-block { margin-top: 50px; }
.yu-block--gallery-top { margin-top: 0; margin-bottom: 50px; }

/* Feature list with green ticks */
.yu-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
}
.yu-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--yu-text);
  font-size: 15px;
  line-height: 1.55;
}
.yu-check {
  color: var(--yu-green);
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
}

/* Bullet list */
.yu-bullet-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 30px;
}
.yu-bullet-list li {
  color: var(--yu-text);
  font-size: 15px;
  line-height: 1.55;
}

/* ----- Slick core (the theme loads slick.min.js but not slick.css; embed the
   minimum CSS needed for layout so the carousel actually shows up) ----- */
.slick-slider { position: relative; display: block; box-sizing: border-box;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  -ms-touch-action: pan-y; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.slick-list { position: relative; display: block; overflow: hidden; margin: 0; padding: 0; }
.slick-list:focus { outline: none; }
.slick-list.dragging { cursor: pointer; cursor: hand; }
.slick-slider .slick-track,
.slick-slider .slick-list { transform: translate3d(0, 0, 0); }
.slick-track { position: relative; top: 0; left: 0; display: block; margin: 0 auto; }
.slick-track::before, .slick-track::after { display: table; content: ''; }
.slick-track::after { clear: both; }
.slick-loading .slick-track { visibility: hidden; }
.slick-slide { float: left; height: 100%; min-height: 1px; display: none; }
[dir='rtl'] .slick-slide { float: right; }
.slick-slide img { display: block; }
.slick-slide.slick-loading img { display: none; }
.slick-initialized .slick-slide { display: block; }
.slick-loading .slick-slide { visibility: hidden; }
.slick-arrow.slick-hidden { display: none; }

/* Gallery — slick carousel: 2-up desktop, 1-up mobile */
.yu-gallery-slider { position: relative; margin: 0 -8px; }
/* Fallback layout shown until slick initialises (or if JS fails entirely) */
.yu-gallery-slider:not(.slick-initialized) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
}
@media (max-width: 767.98px) {
  .yu-gallery-slider:not(.slick-initialized) { grid-template-columns: 1fr; }
}
.yu-gallery-slider .slick-slide { padding: 0 8px; }
.yu-gallery__slide { display: block; }
.yu-gallery__item {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4/3;
  background: var(--yu-bg-soft);
}
.yu-gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.yu-gallery__item:hover img { transform: scale(1.06); }

/* Slick arrows — pinned inside the slide area, locked size on hover */
.yu-gallery-slider .slick-arrow {
  position: absolute;
  top: 50%;
  margin-top: -18px;            /* fixed offset instead of transform: lets us forbid scaling */
  z-index: 5;
  width: 36px; height: 36px;
  padding: 0;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color .2s ease;
}
.yu-gallery-slider .slick-arrow:hover,
.yu-gallery-slider .slick-arrow:focus {
  background: var(--yu-green);
  color: #fff;
  /* explicitly lock geometry so the theme button rules can't grow the arrow */
  width: 36px; height: 36px; padding: 0; transform: none; outline: none;
}
.yu-gallery-slider .slick-prev { left: 16px; }
.yu-gallery-slider .slick-next { right: 16px; }

/* Slick dots */
.yu-gallery-slider .slick-dots {
  display: flex !important;
  justify-content: center;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  gap: 8px;
}
.yu-gallery-slider .slick-dots li button {
  width: 10px; height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  font-size: 0;
  cursor: pointer;
}
.yu-gallery-slider .slick-dots li.slick-active button { background: var(--yu-green); }

/* ================== RELATED PRODUCTS ================== */
.yu-related {
  background: var(--yu-bg-soft);
  padding: 80px 0 90px;
  margin-top: 30px;
}
.yu-related__title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 40px;
}
.yu-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.yu-related__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.yu-related__card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.yu-related__image {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.yu-related__body {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.yu-related__name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--yu-text);
  line-height: 1.3;
}
.yu-arrow {
  width: 36px; height: 36px;
  background: var(--yu-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  flex-shrink: 0;
}
.yu-arrow .dashicons { font-size: 18px; width: auto; height: auto; }

/* ================== ARCHIVE PAGE ================== */
.yu-archive { padding: 60px 0 80px; }
.yu-archive__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.yu-card-item {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.yu-card-item:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.yu-card-item__inner {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.yu-card-item__image {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.yu-card-item__arrow {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: var(--yu-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.yu-card-item__arrow .dashicons { font-size: 22px; width: auto; height: auto; }
.yu-card-item__body { padding: 26px 28px 30px; }
.yu-card-item__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--yu-text);
}
.yu-card-item__excerpt {
  font-size: 15px;
  color: var(--yu-muted);
  line-height: 1.55;
  margin: 0 0 22px;
}
.yu-card-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yu-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.yu-archive__pagination {
  margin-top: 40px;
  text-align: center;
}
.yu-archive__pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid var(--yu-border);
  color: var(--yu-text);
  text-decoration: none;
  border-radius: 2px;
}
.yu-archive__pagination .page-numbers.current {
  background: var(--yu-green);
  color: #fff;
  border-color: var(--yu-green);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 991.98px) {
  .yu-main { padding-left: 15px; padding-top: 40px; }
  .yu-related__grid { grid-template-columns: repeat(2, 1fr); }
  .yu-archive__grid { grid-template-columns: 1fr; }
  /* Arrows inside the slide area on tablet (no negative offset) */
  .yu-gallery-slider .slick-prev { left: 6px; }
  .yu-gallery-slider .slick-next { right: 6px; }
}
@media (max-width: 767.98px) {
  /* Hero readable on phones */
  .yu-hero { min-height: 320px; margin-bottom: 30px; }
  .yu-hero__inner { padding: 50px 0; }
  .yu-hero__title { font-size: clamp(24px, 7vw, 36px); }

  /* Body padding tighter, no double-padding from sidebar gap */
  .yu-body { padding-bottom: 50px; }
  .yu-side { gap: 18px; }

  /* Section title smaller on phones */
  .yu-section-title { font-size: 22px; }

  /* Feature / application lists collapse to single column */
  .yu-feature-list,
  .yu-bullet-list { grid-template-columns: 1fr; gap: 8px; }
  .yu-bullet-list { padding-left: 18px; }

  /* Slick arrows: smaller and inside on phones */
  .yu-gallery-slider .slick-arrow { width: 36px; height: 36px; font-size: 20px; line-height: 36px; }
  .yu-gallery-slider .slick-prev { left: 4px; }
  .yu-gallery-slider .slick-next { right: 4px; }

  /* Info card values stay readable */
  .yu-info-list li { font-size: 13px; }
  .yu-info-list__value { font-size: 13px; }

  /* Dark CTA card tighter */
  .yu-card--cta { padding: 22px 20px; }
  .yu-card--cta .yu-phone { font-size: 19px; }
  .yu-card__head--white { font-size: 19px; }

  /* Related products stack */
  .yu-related { padding: 50px 0 60px; }
  .yu-related__title { font-size: 24px; margin-bottom: 26px; }
  .yu-related__grid { grid-template-columns: 1fr; }

  /* Archive cards: shorter image, tighter padding */
  .yu-archive { padding: 30px 0 50px; }
  .yu-card-item__image { height: 220px; }
  .yu-card-item__body { padding: 20px 22px 22px; }
  .yu-card-item__title { font-size: 18px; }
}
@media (max-width: 480px) {
  .yu-hero__title { font-size: 24px; }
  .yu-breadcrumb { font-size: 11px; }
  .yu-card-item__image { height: 180px; }
}
