html.aem-global-ui.route-product-categories body {
  background: radial-gradient(circle at 88% 4%, rgba(255, 196, 31, .12), transparent 25%), #f3f7fa !important;
}

.aem-category-directory {
  --acd-navy: #07345f;
  --acd-blue: #0f6caf;
  --acd-yellow: #ffc41f;
  --acd-ink: #102b44;
  --acd-muted: #61798d;
  --acd-line: #dce7ee;
  padding-bottom: 64px;
  color: var(--acd-ink);
}

.aem-category-directory * { box-sizing: border-box; }
.aem-category-directory [hidden] { display: none !important; }

.aem-category-directory__breadcrumbs,
.aem-category-directory__shell {
  width: min(1480px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.aem-category-directory__breadcrumbs { padding: 18px 0 10px; }
.aem-category-directory__breadcrumbs ol { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.aem-category-directory__breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #9badba; }
.aem-category-directory__breadcrumbs a { color: var(--acd-muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.aem-category-directory__breadcrumbs li:last-child a { color: var(--acd-navy); }

.aem-category-directory__hero {
  position: relative;
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  padding: 42px 48px;
  border-radius: 26px;
  background: linear-gradient(120deg, #062e55 0%, #074a7c 58%, #0879ae 100%);
  color: #fff;
  box-shadow: 0 24px 55px rgba(7, 52, 95, .2);
}

.aem-category-directory__hero::after {
  content: "";
  position: absolute;
  right: 15%;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
}

.aem-category-directory__hero-copy { position: relative; z-index: 1; max-width: 760px; }
.aem-category-directory__eyebrow { color: var(--acd-yellow); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.aem-category-directory__hero h1 { margin: 8px 0 12px; color: #fff; font-size: clamp(34px, 4vw, 58px); font-weight: 950; letter-spacing: -.045em; line-height: 1; }
.aem-category-directory__hero p { max-width: 670px; margin: 0; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.65; }

.aem-category-directory__summary {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 175px;
  grid-template-columns: 42px 1fr;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}

.aem-category-directory__summary svg { width: 30px; fill: var(--acd-yellow); }
.aem-category-directory__summary strong { font-size: 30px; line-height: 1; }
.aem-category-directory__summary span { grid-column: 2; color: rgba(255,255,255,.7); font-size: 11px; font-weight: 700; }

.aem-category-directory__tools { display: flex; align-items: center; gap: 10px; margin: 22px 0; }
.aem-category-directory__tools label { position: relative; display: block; flex: 1; margin: 0; }
.aem-category-directory__tools label svg { position: absolute; top: 50%; left: 18px; width: 20px; fill: none; stroke: #71889a; stroke-width: 2; transform: translateY(-50%); pointer-events: none; }
.aem-category-directory__tools input { width: 100%; height: 54px; padding: 0 48px; border: 1px solid var(--acd-line); border-radius: 15px; background: #fff; color: var(--acd-ink); font-size: 14px; outline: 0; box-shadow: 0 9px 25px rgba(18, 54, 82, .06); }
.aem-category-directory__tools input:focus { border-color: var(--acd-blue); box-shadow: 0 0 0 4px rgba(15,108,175,.1); }
.aem-category-directory__tools button { height: 54px; padding: 0 20px; border: 0; border-radius: 15px; background: var(--acd-navy); color: #fff; font-size: 12px; font-weight: 850; }

.aem-category-directory__layout { display: flex; gap: 24px; }
.aem-category-directory__content { min-width: 0; flex: 1; }
.aem-category-directory__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.aem-category-directory__card { overflow: hidden; border: 1px solid var(--acd-line); border-radius: 20px; background: #fff; box-shadow: 0 15px 35px rgba(18, 54, 82, .08); }
.aem-category-directory__card-head { display: grid; grid-template-columns: 45px minmax(0, 1fr) 34px; align-items: center; gap: 13px; padding: 19px; border-bottom: 1px solid #e7eef3; background: linear-gradient(145deg, #fff, #f5f9fc); }
.aem-category-directory__card-icon { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 13px; background: var(--acd-navy); color: var(--acd-yellow); }
.aem-category-directory__card-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.aem-category-directory__card-head div > span { color: var(--acd-blue); font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.aem-category-directory__card h2 { margin: 3px 0 0; font-size: 16px; line-height: 1.25; }
.aem-category-directory__card h2 a { color: var(--acd-ink); text-decoration: none; }
.aem-category-directory__root-link { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--acd-line); border-radius: 10px; color: var(--acd-navy); }
.aem-category-directory__root-link svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; }

.aem-category-directory__level { margin: 0; padding: 13px 17px 17px; list-style: none; }
.aem-category-directory__level .aem-category-directory__level { padding: 2px 0 3px 15px; border-left: 1px solid #dce7ee; }
.aem-category-directory__level li { margin: 0; }
.aem-category-directory__level a { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 8px; color: #486278; font-size: 11px; font-weight: 750; line-height: 1.35; text-decoration: none; transition: background .15s ease, color .15s ease, transform .15s ease; }
.aem-category-directory__level a:hover { background: #edf5fa; color: var(--acd-blue); transform: translateX(2px); }
.aem-category-directory__level a svg { width: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; opacity: .55; }
.aem-category-directory__level--2 a { min-height: 31px; color: #6b8091; font-size: 10px; font-weight: 650; }
.aem-category-directory__level--3 a,
.aem-category-directory__level--4 a { font-size: 9px; }

.aem-category-directory__empty { display: grid; min-height: 220px; place-items: center; align-content: center; gap: 8px; border: 1px dashed #cbd9e2; border-radius: 20px; background: #fff; color: var(--acd-muted); text-align: center; }
.aem-category-directory__empty strong { color: var(--acd-ink); font-size: 18px; }

@media (max-width: 1100px) { .aem-category-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .aem-category-directory { padding-bottom: 36px; }
  .aem-category-directory__breadcrumbs, .aem-category-directory__shell { width: calc(100% - 20px); }
  .aem-category-directory__hero { min-height: 0; align-items: flex-start; flex-direction: column; padding: 28px 24px; border-radius: 20px; }
  .aem-category-directory__hero h1 { font-size: 35px; }
  .aem-category-directory__hero p { font-size: 13px; }
  .aem-category-directory__summary { width: 100%; min-width: 0; }
  .aem-category-directory__grid { grid-template-columns: 1fr; }
  .aem-category-directory__tools input { height: 50px; }
}

@media (prefers-reduced-motion: reduce) { .aem-category-directory__level a { transition: none; } }

/* V2: compact technical catalogue with dense, readable category groups. */
html.aem-global-ui.route-product-categories body {
  background-color: #eef3f5 !important;
  background-image:
    linear-gradient(rgba(7, 52, 95, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 52, 95, .025) 1px, transparent 1px),
    radial-gradient(circle at 92% 0, rgba(255, 196, 31, .16), transparent 28%) !important;
  background-size: 28px 28px, 28px 28px, auto !important;
}

.aem-category-directory { padding-bottom: 78px; }
.aem-category-directory__breadcrumbs { padding: 16px 4px 12px; }
.aem-category-directory__breadcrumbs a { font-size: 11px; letter-spacing: .01em; }

.aem-category-directory__hero {
  min-height: 188px;
  padding: 34px 40px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background:
    linear-gradient(115deg, rgba(4, 35, 65, .98), rgba(6, 62, 103, .97) 62%, rgba(8, 112, 158, .95)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.025) 18px 19px);
  box-shadow: 0 18px 42px rgba(7, 43, 72, .18);
}

.aem-category-directory__hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: var(--acd-yellow);
}

.aem-category-directory__hero::after {
  right: 24%;
  bottom: -205px;
  width: 390px;
  height: 390px;
  box-shadow: 0 0 0 54px rgba(255,255,255,.025), 0 0 0 108px rgba(255,255,255,.018);
}

.aem-category-directory__hero-copy { max-width: 790px; }
.aem-category-directory__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: .2em;
}
.aem-category-directory__eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.aem-category-directory__hero h1 { margin: 9px 0 9px; font-size: clamp(32px, 3.4vw, 49px); }
.aem-category-directory__hero p { max-width: 720px; font-size: 13px; line-height: 1.55; }

.aem-category-directory__summary {
  min-width: 190px;
  padding: 19px 22px;
  border-color: rgba(255,196,31,.38);
  border-radius: 16px;
  background: rgba(2, 28, 52, .36);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.aem-category-directory__summary svg { width: 27px; }
.aem-category-directory__summary strong { color: #fff; font-size: 28px; }
.aem-category-directory__summary span { color: rgba(255,255,255,.67); text-transform: uppercase; letter-spacing: .08em; }

.aem-category-directory__tools {
  position: relative;
  z-index: 3;
  width: min(820px, calc(100% - 36px));
  margin: -22px auto 28px;
  padding: 7px;
  border: 1px solid #d9e5ec;
  border-radius: 17px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 34px rgba(18, 54, 82, .14);
}
.aem-category-directory__tools::before {
  content: "KATEGORİ BUL";
  flex: 0 0 auto;
  padding-left: 12px;
  color: #688095;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .14em;
}
.aem-category-directory__tools label { flex: 1; }
.aem-category-directory__tools input {
  height: 43px;
  padding: 0 42px;
  border: 0;
  border-radius: 11px;
  background: #f2f6f8;
  font-size: 12px;
  box-shadow: none;
}
.aem-category-directory__tools input::placeholder { color: #8497a7; opacity: 1; }
.aem-category-directory__tools input:focus { background: #fff; box-shadow: inset 0 0 0 2px rgba(15,108,175,.22); }
.aem-category-directory__tools label svg { left: 14px; width: 17px; }
.aem-category-directory__tools button { height: 43px; border-radius: 11px; font-size: 10px; }

.aem-category-directory__grid {
  display: block;
  columns: 2;
  column-gap: 20px;
}

.aem-category-directory__card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid #d6e2e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 47, 72, .08);
}

.aem-category-directory__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 3px;
  background: var(--card-accent, var(--acd-yellow));
}
.aem-category-directory__card:nth-child(4n + 2) { --card-accent: #29b780; }
.aem-category-directory__card:nth-child(4n + 3) { --card-accent: #39a9e8; }
.aem-category-directory__card:nth-child(4n + 4) { --card-accent: #ff8f3d; }

.aem-category-directory__card-head {
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 12px;
  padding: 17px 18px;
  border-bottom-color: rgba(255,255,255,.1);
  background: linear-gradient(110deg, #082f54, #0a4774);
}
.aem-category-directory__card-icon { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.08); color: var(--card-accent); }
.aem-category-directory__card-icon svg { width: 22px; }
.aem-category-directory__card-head div > span { color: var(--card-accent); font-size: 7px; letter-spacing: .16em; }
.aem-category-directory__card h2 { margin-top: 2px; font-size: 15px; }
.aem-category-directory__card h2 a { color: #fff; }
.aem-category-directory__root-link { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; }
.aem-category-directory__root-link:hover { border-color: var(--card-accent); color: var(--card-accent); }

.aem-category-directory__level--1 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #f7fafb;
}
.aem-category-directory__level--1 > li {
  overflow: hidden;
  align-self: start;
  border: 1px solid #dfe8ee;
  border-radius: 12px;
  background: #fff;
}
.aem-category-directory__level--1 > li > a {
  min-height: 40px;
  padding: 9px 11px;
  border-bottom: 1px solid #edf2f5;
  border-radius: 0;
  color: #173a58;
  font-size: 10px;
  font-weight: 900;
}
.aem-category-directory__level--1 > li > a:hover { background: #f3f8fb; transform: none; }
.aem-category-directory__level--1 > li > a svg { color: var(--acd-blue); }

.aem-category-directory__level .aem-category-directory__level {
  padding: 6px 7px 8px;
  border-left: 0;
  background: #fff;
}
.aem-category-directory__level .aem-category-directory__level a {
  min-height: 28px;
  padding: 5px 7px;
  color: #60778a;
  font-size: 9px;
  font-weight: 700;
}
.aem-category-directory__level .aem-category-directory__level a::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #b4c3ce;
}
.aem-category-directory__level .aem-category-directory__level a span { margin-right: auto; }
.aem-category-directory__level .aem-category-directory__level .aem-category-directory__level {
  margin: 0 7px 6px 12px;
  padding: 3px 0 3px 7px;
  border-left: 1px solid #d9e4eb;
}
.aem-category-directory__level .aem-category-directory__level .aem-category-directory__level a { font-size: 8px; }

html.aem-dark.route-product-categories body { background-color: #0d151d !important; }
html.aem-dark .aem-category-directory__tools,
html.aem-dark .aem-category-directory__card,
html.aem-dark .aem-category-directory__level--1 > li,
html.aem-dark .aem-category-directory__level .aem-category-directory__level { border-color: #283947; background: #15212b; }
html.aem-dark .aem-category-directory__level--1 { background: #101b24; }
html.aem-dark .aem-category-directory__level--1 > li > a { border-color: #283947; color: #e7f0f6; }
html.aem-dark .aem-category-directory__level .aem-category-directory__level a { color: #a9bac7; }
html.aem-dark .aem-category-directory__tools input { background: #101b24; color: #eef4f8; }

@media (max-width: 980px) {
  .aem-category-directory__level--1 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .aem-category-directory { padding-bottom: 42px; }
  .aem-category-directory__hero { padding: 26px 22px 44px 28px; border-radius: 17px; }
  .aem-category-directory__hero::before { width: 5px; }
  .aem-category-directory__hero h1 { font-size: 32px; }
  .aem-category-directory__summary { display: flex; width: auto; min-width: 0; align-items: center; gap: 9px; padding: 11px 14px; }
  .aem-category-directory__summary svg { width: 21px; }
  .aem-category-directory__summary strong { font-size: 21px; }
  .aem-category-directory__summary span { grid-column: auto; }
  .aem-category-directory__tools { width: calc(100% - 20px); margin-top: -23px; margin-bottom: 20px; }
  .aem-category-directory__tools::before { display: none; }
  .aem-category-directory__grid { columns: 1; }
  .aem-category-directory__card { margin-bottom: 14px; border-radius: 15px; }
  .aem-category-directory__level--1 { grid-template-columns: 1fr; padding: 10px; }
}
