/* Expanded product directory, supplied material photos and brand pages.
   Load after style.css, header.css and pages.css. */

/* Keep the desktop directory inside the available viewport. The panel is
   the only scrolling surface; its category grid never scrolls separately. */
#lh-products {
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - var(--lh-bottom, 96px) - 20px);
  padding: 26px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #a4b69a #f1f4eb;
}

#lh-products .lh-panel-intro { min-width: 0; }
#lh-products .lh-panel-intro strong { font-size: 25px; }
#lh-products .lh-panel-intro a { font-size: 17px; min-height: 44px; }

#lh-products .lh-categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 5px 10px;
  min-width: 0;
  max-height: none;
  overflow: visible;
}

#lh-products .lh-categories a {
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#lh-products .lh-categories a span { flex-shrink: 0; }

.catalog-sidebar {
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #a4b69a #eff2e8;
}

.catalog-sidebar nav a,
.catalog-sidebar button,
.catalog-sidebar > a {
  min-height: 46px;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Homepage brand introduction. */
.brand-strip {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 34px 38px;
  margin-top: 30px;
  margin-bottom: 58px;
  border: 1px solid #d7e1cf;
  border-left: 5px solid #c8a259;
  border-radius: 8px;
  background: #eef2e7;
  color: #173e2e;
}

.brand-strip > * { min-width: 0; }
.brand-strip-logo,
.brand-strip > img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  max-width: 100%;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #e0e7da;
  border-radius: 6px;
  background: #fff;
}

.brand-strip-logo img {
  display: block;
  width: 100%;
  max-width: 145px;
  height: 70px;
  object-fit: contain;
  background: #fff;
}

.brand-strip > img { height: 112px; object-fit: contain; }
.brand-strip h2,
.brand-strip h3 {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -.8px;
}

.brand-strip p {
  margin: 0;
  max-width: 650px;
  font-size: 17px;
  line-height: 1.7;
  color: #586d50;
}

.brand-strip .eyebrow {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 1.4px;
  color: #7f6737;
}

.brand-strip > .btn,
.brand-strip-copy + .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 50px;
  padding: 15px 22px;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

/* Real brand artwork stays on clean white, without cropping. */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.brand-grid > * { min-width: 0; }
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 30px;
  border: 1px solid #dce5d5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px #173e2e04;
  color: #1d422f;
  overflow-wrap: anywhere;
}

.brand-card img {
  display: block;
  align-self: center;
  width: 100%;
  max-width: 245px;
  height: 125px;
  margin: 0 auto 27px;
  padding: 8px;
  object-fit: contain;
  background: #fff;
}

.brand-card h2,
.brand-card h3 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -.5px;
}

.brand-card p {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.75;
  color: #61735a;
}

.brand-card > a,
.brand-card .textlink {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-top: auto;
  font-size: 17px;
  font-weight: 600;
  color: #214f35;
}

.brand-card > a:hover { color: #816124; }
.brand-card-note {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e5ebdf;
  font-size: 17px;
  line-height: 1.6;
  color: #63745c;
}

.product-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  min-height: 70px;
  margin: 0 0 24px;
  padding: 12px 17px;
  border: 1px solid #dce5d5;
  border-radius: 6px;
  background: #fff;
  color: #47623f;
  font-size: 17px;
  line-height: 1.5;
}

.product-brand-badge img {
  display: block;
  flex: 0 1 auto;
  width: 94px;
  max-width: 100%;
  height: 42px;
  object-fit: contain;
  background: #fff;
}

.product-brand-badge span { min-width: 0; overflow-wrap: anywhere; }

/* Optional broad product-group index. */
.group-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 20px;
  margin: 30px 0;
}

.group-directory > * { min-width: 0; }
.group-directory > a,
.group-directory > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 19px;
  border: 1px solid #dce4d4;
  border-radius: 5px;
  background: #f1f4eb;
  color: #2d4b34;
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: background .18s, border-color .18s;
}

ul.group-directory,
ol.group-directory { padding: 0; list-style: none; }
.group-directory > a:hover,
.group-directory > li > a:hover {
  background: #e7eddd;
  border-color: #aebf9e;
}

.group-directory a > b,
.group-directory a > i {
  flex-shrink: 0;
  font-size: 21px;
  font-style: normal;
  font-weight: 400;
  color: #9d7b3d;
}

.group-directory > section,
.group-directory > div {
  padding: 24px;
  border: 1px solid #dce4d4;
  border-radius: 6px;
  background: #f1f4eb;
}

.group-directory h3 { margin: 0 0 16px; font-size: 23px; line-height: 1.3; }
.group-directory > section a,
.group-directory > div a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 0;
  border-bottom: 1px solid #dfe7d7;
  font-size: 17px;
  line-height: 1.45;
  color: #45623e;
  overflow-wrap: anywhere;
}

.group-directory > section a:last-child,
.group-directory > div a:last-child { border-bottom: 0; }

/* Supplied material photographs use their frame, never their intrinsic width. */
.photo-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce4d4;
  border-radius: 8px;
  background: #e8eee1;
}

.provided-photo { display: block; max-width: 100%; }
.photo-frame .provided-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.catalog-image .provided-photo,
.productimage .provided-photo,
.detail-visual > .provided-photo,
.detail-visual > button .provided-photo,
.gallery-grid .provided-photo { object-fit: cover; }

.photo-frame figcaption {
  padding: 15px 19px;
  background: #f4f6ee;
  font-size: 17px;
  line-height: 1.6;
  color: #566e4d;
}

.brand-strip a:focus-visible,
.brand-card a:focus-visible,
a.brand-card:focus-visible,
.group-directory a:focus-visible {
  outline: 3px solid #ad8743;
  outline-offset: 4px;
}

@media (max-width: 1220px) {
  /* The full mobile navigation already scrolls. Remove panel scrolling. */
  #lh-products {
    display: block;
    max-height: none;
    padding: 8px 8px 20px;
    overflow: visible;
    overscroll-behavior: auto;
  }
  #lh-products .lh-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    max-height: none;
    overflow: visible;
  }
  #lh-products .lh-categories a { padding: 12px; min-height: 48px; }
  .brand-strip { grid-template-columns: 150px minmax(0, 1fr); gap: 26px; }
  .brand-strip-logo, .brand-strip > img { width: 150px; }
  .brand-strip > .btn { grid-column: 2; justify-self: start; }
  .brand-card { padding: 25px; }
}

@media (max-width: 850px) {
  .catalog-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }
  .catalog-sidebar nav a, .catalog-sidebar button, .catalog-sidebar > a { font-size: 17px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .group-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .brand-strip { padding: 28px; margin-bottom: 45px; }
}

@media (max-width: 600px) {
  #lh-products .lh-categories { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  #lh-products .lh-categories a { padding: 12px; font-size: 17px; }
  .brand-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
    padding: 26px 23px;
    margin-top: 20px;
    margin-bottom: 35px;
  }
  .brand-strip-logo, .brand-strip > img { width: 155px; min-height: 98px; height: 98px; }
  .brand-strip-logo img { height: 58px; }
  .brand-strip > .btn { grid-column: auto; width: 100%; }
  .brand-strip h2, .brand-strip h3 { font-size: 28px; }
  .brand-grid { grid-template-columns: minmax(0, 1fr); margin: 25px 0; }
  .brand-card { padding: 27px; }
  .brand-card img { height: 115px; margin-bottom: 23px; }
  .group-directory { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .group-directory > a, .group-directory > li > a { min-height: 60px; padding: 16px; font-size: 17px; }
  .product-brand-badge { gap: 12px; padding: 11px 14px; }
  .product-brand-badge img { width: 85px; }
  .photo-frame { border-radius: 6px; }
  .photo-frame figcaption { padding: 14px 17px; }
}

/* Exact supplied artwork in stable presentation frames. */
.brand-logo-box{display:flex;align-items:center;justify-content:center;width:100%;height:125px;overflow:hidden;background:#fff;border-radius:5px;margin-bottom:24px}
.brand-logo-box img{display:block;width:100%;height:100%;object-fit:contain;margin:0;padding:8px;max-width:100%}
.brand-logo-box.brand-cimsa img{object-fit:cover;padding:0}
.brand-strip>.brand-logo-box{width:180px;height:112px;margin:0}
.product-brand-badge>.brand-logo-box{width:125px;height:55px;margin:0;flex:none}
.product-brand-badge>.brand-logo-box img{width:100%;height:100%;padding:0}
.product-brand-badge span{line-height:1.5}.product-brand-badge small{font-size:13px;font-weight:400}
.material-symbol{height:100%;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:linear-gradient(145deg,#e6ecdf,#f4f5ee);color:#34573c;text-align:center;padding:25px}
.material-symbol svg{width:90px;height:90px;fill:none;stroke:#8a9c70;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.material-symbol span{font-size:20px;line-height:1.4;font-weight:600}.material-symbol small{font-size:11px;letter-spacing:2px;color:#758866}.detail-visual>.material-symbol{min-height:400px;border-radius:8px}
.photo-frame.supplied-photo{position:relative;display:block;width:100%;height:100%;overflow:hidden;margin:0;border:0;border-radius:0}
.photo-frame.supplied-photo img,.photo-frame.modal-photo img{display:block;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center}
.gallery-grid>.photo-frame{height:260px}.gallery-grid>button>.photo-frame{height:280px}
.photo-frame img.photo-cakil{transform:scale(1.3)}
.photo-frame img.photo-kirmizi-toprak{object-position:center 78%}
.photo-frame img.photo-filtre-malzemesi,.photo-frame img.photo-sondaj-drenaj{transform:scale(1.28)}
.photo-frame img.photo-halapa{object-position:center}
.photo-frame.modal-photo{width:100%;height:min(60vh,520px);overflow:hidden}
.photo-frame.modal-photo img{margin:0}
.supplied-section>p:not(.eyebrow){max-width:760px}
/* Preserve complete supplied packs and diagrams in white product frames. */
.photo-frame img.photo-eps-asmolen-plaka,.photo-frame img.photo-hirdavat-malzemeleri,.photo-frame img.photo-isi-ses-yalitim,.photo-frame img.photo-su-tesisat-malzemeleri,.photo-frame img.photo-yapi-kimyasallari,.photo-frame img.photo-betopan{object-fit:contain;background:#fff}
.photo-frame img.photo-jenerator{object-position:center 42%}
.photo-frame img.photo-profil,.photo-frame img.photo-boy-demir-etriye{object-position:center}
@media(max-width:600px){.brand-strip>.brand-logo-box{width:180px;height:90px}.gallery-grid>button>.photo-frame{height:245px}.photo-frame.modal-photo{height:330px}.material-symbol{min-height:210px}}
