.content-type-page--service,
.services-listing-page {
  padding-block: 42px 84px;
}

.products-listing-page .content-listing-layout {
	grid-template-columns: 236px minmax(0, 1fr);
	gap: 32px;
}

.products-listing-page .content-listing-sidebar {
  order: 1;
}

.products-listing-page .content-listing-main {
	order: 2;
}

.products-listing-shell {
	display: grid;
	gap: 24px;
}

.products-listing-toolbar {
	display: flex;
	align-items: center;
	min-height: 64px;
	padding: 16px 20px;
	color: #6f7f98;
	border: 1px solid #dce4ef;
	border-radius: 14px;
	background: #f8fafc;
	font-size: 0.94rem;
	font-weight: 600;
}

.product-filter-sidebar {
  position: sticky;
  top: calc(var(--main-header-height, 72px) + 28px);
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-filter-sidebar__section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.product-filter-sidebar__title {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  padding-bottom: 8px;
  color: #15191d;
  border-bottom: 2px solid var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.product-filter-sidebar__search {
  margin-bottom: 12px;
}

.product-filter-sidebar__search-input {
  width: 100%;
  padding: 8px 12px;
  color: #252a31;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  outline: none;
  background: #fafafa;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.product-filter-sidebar__search-input:focus {
  border-color: var(--color-primary);
  background: #ffffff;
}

.product-filter-sidebar__list {
  max-height: 260px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.product-filter-sidebar__list::-webkit-scrollbar {
  width: 4px;
}

.product-filter-sidebar__list::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #d0d0d0;
}

.product-filter-sidebar__item {
  margin: 0;
}

.product-filter-sidebar__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  color: #252a31;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.3;
  transition: background-color 0.15s ease;
  user-select: none;
}

.product-filter-sidebar__checkbox:hover {
  background: #f7f7f7;
}

.product-filter-sidebar__checkbox input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.product-filter-sidebar__check-mark {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid #cccccc;
  border-radius: 4px;
  background: #ffffff;
  transition: all 0.15s ease;
}

.product-filter-sidebar__checkbox input:checked + .product-filter-sidebar__check-mark {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.product-filter-sidebar__checkbox input:checked + .product-filter-sidebar__check-mark::after {
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 10px;
  content: "";
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.product-filter-sidebar__checkbox input:focus-visible + .product-filter-sidebar__check-mark {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.product-filter-sidebar__label-text {
  flex: 1;
}

.product-filter-sidebar__apply-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  background: var(--color-primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.product-filter-sidebar__apply-btn:hover,
.product-filter-sidebar__apply-btn:focus-visible {
  color: #ffffff;
  background: #c81820;
}

.product-filter-sidebar__clear-btn {
  display: block;
  margin-top: 8px;
  color: #888888;
  font-size: 0.82rem;
  text-align: center;
}

.product-filter-sidebar__clear-btn:hover,
.product-filter-sidebar__clear-btn:focus-visible {
  color: var(--color-primary);
}

.products-listing-page .service-list-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.products-listing-page .service-list-card__link {
	min-height: 0;
	border: 1px solid #dce4ef;
	background: #ffffff;
	box-shadow: none;
}

.products-listing-page .service-list-card__link::after {
	display: none;
}

.products-listing-page .service-list-card__media {
	position: relative;
	aspect-ratio: 1 / 0.92;
	border-bottom: 1px solid #edf1f6;
	background: #ffffff;
}

.products-listing-page .service-list-card__image {
	object-fit: contain;
	padding: 14px;
}

.products-listing-page .service-list-card__content {
	position: relative;
	right: auto;
	bottom: auto;
	left: auto;
	min-height: 72px;
	padding: 18px 14px;
	text-align: center;
}

.products-listing-page .service-list-card__title {
	color: #15191d;
	font-size: 0.98rem;
	letter-spacing: -0.02em;
}

@media (max-width: 1100px) {
	.products-listing-page .content-listing-layout {
		grid-template-columns: 1fr;
	}

	.products-listing-page .service-list-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.product-filter-sidebar {
		position: static;
	}
}

.content-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.content-type-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 42px rgba(15, 23, 32, 0.06);
}

.content-type-card__media {
  display: block;
  aspect-ratio: 1 / 0.74;
  overflow: hidden;
  background: #eef1f4;
}

.content-type-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.content-type-card:hover .content-type-card__media img,
.content-type-card:focus-within .content-type-card__media img {
  transform: scale(1.04);
}

.content-type-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #6e7780;
  font-size: 0.98rem;
  font-weight: 600;
}

.content-type-card__content {
  display: grid;
  gap: 12px;
  padding: 22px 22px 24px;
}

.content-type-card__meta {
  margin: 0;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-type-card__title {
  margin: 0;
  color: #15191d;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.content-type-card__title a:hover,
.content-type-card__title a:focus-visible {
  color: var(--color-primary);
}

.content-type-card__excerpt {
  margin: 0;
  color: #6d7680;
  font-size: 0.98rem;
  line-height: 1.75;
}

.content-type-pagination {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.content-type-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-type-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  color: #15191d;
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.content-type-pagination .page-numbers.current,
.content-type-pagination .page-numbers:hover,
.content-type-pagination .page-numbers:focus-visible {
  color: #ffffff;
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.content-type-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 28px;
  border: 1px dashed rgba(17, 17, 17, 0.12);
  border-radius: 24px;
  background: #ffffff;
  text-align: center;
}

.content-type-empty__title,
.content-type-empty__text {
  margin: 0;
}

.content-type-empty__title {
  color: #15191d;
  font-size: 1.6rem;
  line-height: 1.15;
}

.content-type-empty__text {
  color: #6d7680;
  line-height: 1.75;
}

.service-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-list-card {
  min-width: 0;
}

.service-list-card__link {
  position: relative;
  display: grid;
  height: 100%;
  overflow: hidden;
  min-height: 230px;
  border: 0;
  border-radius: 0;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 32, 0.07);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.service-list-card__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 58%;
  background: linear-gradient(180deg, rgba(15, 23, 32, 0) 0%, rgba(15, 23, 32, 0.82) 100%);
  pointer-events: none;
}

.service-list-card__link:hover,
.service-list-card__link:focus-visible {
  color: inherit;
  box-shadow: 0 20px 42px rgba(15, 23, 32, 0.12);
  transform: translateY(-2px);
}

.service-list-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #eef2f5;
}

.service-list-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-list-card__link:hover .service-list-card__image,
.service-list-card__link:focus-visible .service-list-card__image {
  transform: scale(1.05);
}

.service-list-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #68717b;
  font-size: 0.98rem;
  font-weight: 600;
}

.service-list-card__content {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 0;
  pointer-events: none;
}

.service-list-card__title {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.03em;
}

/* Hizmet listeleme sayfasındaki dikey, görsel odaklı kartlar. */
.services-listing-page {
  background: #ffffff;
}

.services-listing-page .service-list-grid {
  gap: clamp(22px, 2vw, 30px);
  padding: 8px 14px 12px 0;
}

.services-listing-page .service-list-card {
  min-width: 0;
}

.services-listing-page .service-list-card__link {
  display: block;
  min-height: clamp(430px, 35vw, 520px);
  overflow: visible;
  border-radius: 12px;
  background: #11161c;
  box-shadow: 0 18px 38px rgba(17, 22, 28, 0.13);
}

.services-listing-page .service-list-card__link::after {
  inset: 0;
  height: auto;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(7, 10, 13, 0.02) 22%, rgba(7, 10, 13, 0.28) 50%, rgba(7, 10, 13, 0.97) 100%);
}

.services-listing-page .service-list-card__link:hover,
.services-listing-page .service-list-card__link:focus-visible {
  box-shadow: 0 25px 52px rgba(17, 22, 28, 0.2);
  transform: translateY(-5px);
}

.services-listing-page .service-list-card__media {
  border-radius: 12px;
}

.services-listing-page .service-list-card__content {
  right: 24px;
  bottom: 26px;
  left: 24px;
  gap: 16px;
}

.services-listing-page .service-list-card__title {
  max-width: 92%;
  font-size: clamp(1.04rem, 1.2vw, 1.25rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.services-listing-page .service-list-card__description {
  margin: 0;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.78rem, 0.78vw, 0.9rem);
  font-weight: 500;
  line-height: 1.62;
}

.services-listing-page .service-list-card__arrow {
  position: absolute;
  top: 0;
  right: -13px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 9px;
  color: #ffffff;
  background: rgb(227, 30, 37);
  box-shadow: 0 0 0 8px #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.services-listing-page .service-list-card__link:hover .service-list-card__arrow,
.services-listing-page .service-list-card__link:focus-visible .service-list-card__arrow {
  background: #11161c;
  transform: translate(2px, -2px);
}

@media (max-width: 1024px) {
  .content-type-grid,
  .service-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .content-type-page--service,
  .services-listing-page {
    padding-block: 30px 64px;
  }

  .content-type-grid,
  .service-list-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .content-type-card__content {
    padding: 16px;
  }

  .content-type-card__title,
  .service-list-card__title {
    font-size: 1rem;
  }

  .service-list-card__link {
    min-height: 210px;
  }

  .services-listing-page .service-list-grid {
    padding-right: 10px;
  }

  .services-listing-page .service-list-card__link {
    min-height: 480px;
  }

  .services-listing-page .service-list-card__content {
    right: 22px;
    bottom: 24px;
    left: 22px;
  }

  .services-listing-page .service-list-card__arrow {
    right: -10px;
    width: 50px;
    height: 50px;
  }
}

/*
 * Ürün kartları hizmet kartlarıyla aynı temel sınıfları kullanıyor.
 * Bu blok hizmetlere özel dikey kart kurallarını ürün sayfasından tamamen ayırır.
 */
.services-listing-page.products-listing-page .service-list-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
}

.services-listing-page.products-listing-page .service-list-card__link {
  display: block;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  border: 1px solid #dce4ef;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  transform: none;
}

.services-listing-page.products-listing-page .service-list-card__link::after {
  display: none;
}

.services-listing-page.products-listing-page .service-list-card__link:hover,
.services-listing-page.products-listing-page .service-list-card__link:focus-visible {
  border-color: rgba(227, 30, 37, 0.35);
  box-shadow: 0 15px 34px rgba(15, 23, 32, 0.09);
  transform: translateY(-2px);
}

.services-listing-page.products-listing-page .service-list-card__media {
  position: relative;
  inset: auto;
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 0.92;
  border-bottom: 1px solid #edf1f6;
  border-radius: 0;
  background: #ffffff;
}

.services-listing-page.products-listing-page .service-list-card__image {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
}

.services-listing-page.products-listing-page .service-list-card__link:hover .service-list-card__image,
.services-listing-page.products-listing-page .service-list-card__link:focus-visible .service-list-card__image {
  transform: scale(1.025);
}

.services-listing-page.products-listing-page .service-list-card__content {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  display: block;
  min-height: 72px;
  padding: 18px 14px;
  text-align: center;
  pointer-events: auto;
}

.services-listing-page.products-listing-page .service-list-card__title {
  max-width: none;
  color: #15191d;
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

@media (max-width: 1100px) {
  .services-listing-page.products-listing-page .service-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .services-listing-page.products-listing-page .service-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .services-listing-page.products-listing-page .service-list-grid {
    grid-template-columns: 1fr;
  }
}
