/* ============================================================
   SGS Fashion — B2B Katalog
   Kurumsal sitenin tipografi ve renk paletini kullanır ama
   kendi sade kabuğu vardır: katalog kurumsal siteden ayrı gezilir.
   Fiyat ve stok alanı bilinçli olarak yoktur.
   ============================================================ */

body.b2b {
  background: var(--paper);
  display: flex; flex-direction: column; min-height: 100vh;
}

/* display:flex/grid veren kurallar hidden özniteliğini ezmesin */
.b2b [hidden] { display: none !important; }

.b2b-wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); width: 100%; }

/* ---------- Kabuk ---------- */
.b2b-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .b2b-head { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.b2b-head__inner {
  max-width: 1360px; margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.b2b-head__brand { display: flex; align-items: center; gap: 14px; flex: none; }
.b2b-head__brand img { height: 34px; width: auto; }
.b2b-head__brand span {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line);
}
.b2b-head__tools { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.b2b-head__back {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap;
  transition: color 0.3s;
}
.b2b-head__back:hover { color: var(--crimson); }

.b2b-search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: var(--ivory);
  padding: 9px 16px; border-radius: 999px;
  transition: border-color 0.3s;
}
.b2b-search:focus-within { border-color: var(--ink); }
.b2b-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.b2b-search input {
  border: none; background: none; outline: none;
  font-family: var(--font-body); font-size: 0.88rem; color: var(--ink);
  width: clamp(140px, 22vw, 260px);
}

.b2b-main { flex: 1; padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 8vw, 100px); }

.b2b-foot {
  background: var(--sand); border-top: 1px solid var(--line-sand);
  padding: 26px 0;
}
.b2b-foot__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em;
}
.b2b-foot a { color: var(--crimson); border-bottom: 1px solid currentColor; }
.b2b-foot__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.b2b-foot__legal a, .b2b-foot__legal button {
  font-family: inherit; font-size: inherit; letter-spacing: inherit;
  color: var(--ink-soft); background: none; border: 0; padding: 0;
  cursor: pointer; transition: color 0.3s;
}
.b2b-foot__legal a:hover, .b2b-foot__legal button:hover { color: var(--crimson); }

/* ---------- Katalog listesi ---------- */
.cat-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 46px);
}
.cat-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1;
}
.cat-sub { color: var(--muted); max-width: 560px; margin-top: 10px; font-size: 0.95rem; }

.cat-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(20px, 2.6vw, 32px);
  border-bottom: 1px solid var(--line);
}
.cat-chip {
  font-family: var(--font-body); cursor: pointer;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.cat-chip i { font-style: normal; opacity: 0.55; margin-left: 4px; }
.cat-chip:hover { border-color: var(--ink); color: var(--ink); }
.cat-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.cat-state {
  grid-column: 1 / -1; text-align: center;
  padding: clamp(50px, 8vw, 90px) 0; color: var(--muted);
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
}

.cat-card { display: block; color: inherit; }
.cat-card__media {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--ivory-deep);
  border: 1px solid var(--line); border-radius: 4px;
  display: grid; place-items: center;
}
.cat-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.cat-card:hover .cat-card__media img { transform: scale(1.04); }
.cat-card__ph {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.cat-card__body { padding: 14px 2px 0; }
.cat-card__code {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--crimson);
}
.cat-card__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.15rem; line-height: 1.25; margin: 5px 0 6px;
}
.cat-card__cat, .cat-card__colors {
  font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em;
}
.cat-card__colors::before { content: "· "; }

@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .b2b-head__inner { flex-wrap: wrap; }
  .b2b-search input { width: 100%; }
  .b2b-search { flex: 1; }
}

/* ---------- Ürün detayı ---------- */
.pd-crumb {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: clamp(22px, 3vw, 34px);
}
.pd-crumb a { color: var(--ink-soft); transition: color 0.3s; }
.pd-crumb a:hover { color: var(--crimson); }
.pd-crumb i { font-style: normal; color: var(--crimson); margin: 0 8px; }

.pd-layout {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 72px); align-items: start;
}
/* Galeri sayfa kaydırılırken yerinde kalır; yapışkan üst çubuğun altına
   hizalanır. align-self olmadan grid öğesi tüm satırı kaplayıp
   yapışkanlığı etkisiz bırakıyordu. */
.pd-gallery { position: sticky; top: 84px; align-self: start; }
.pd-main {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--ivory-deep);
  border: 1px solid var(--line); border-radius: 4px;
  display: grid; place-items: center;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs {
  display: flex; gap: 10px; margin-top: 12px;
  overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px;
}
.pd-thumb {
  flex: none; width: 68px; aspect-ratio: 3 / 4; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: var(--ivory-deep);
  border-radius: 3px; overflow: hidden;
  transition: border-color 0.3s, opacity 0.3s;
  opacity: 0.65;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: 1; }
.pd-thumb.is-active { border-color: var(--ink); opacity: 1; }

.pd-code {
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--crimson);
}
.pd-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08;
  margin: 10px 0 16px;
}
.pd-desc { color: var(--ink-soft); margin-bottom: 14px; max-width: 52ch; }
.pd-remark {
  font-size: 0.88rem; color: var(--ink-soft);
  border-left: 2px solid var(--crimson); padding-left: 14px; margin-bottom: 24px;
}

.pd-specs { border-top: 1px solid var(--line); margin-bottom: 30px; }
.pd-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.pd-row span { color: var(--muted); letter-spacing: 0.04em; }
.pd-row b { color: var(--ink); font-weight: 500; text-align: right; }

.pd-block { margin-bottom: 30px; }
.pd-block__title {
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: 16px;
}
.pd-block__title small { color: var(--crimson); margin-left: 8px; letter-spacing: 0.1em; }

.pd-care { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-care__item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 10px;
  font-size: 0.78rem; color: var(--ink-soft);
}
.pd-care__item .care-ico { width: 30px; height: 30px; flex: none; }

.pd-certs { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-cert {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px;
  background: var(--sand); color: var(--ink-soft);
}

.pd-docs { display: grid; gap: 8px; }
.pd-docs a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.86rem; color: var(--ink-soft);
  transition: color 0.3s;
}
.pd-docs a svg { width: 18px; height: 18px; color: var(--crimson); }
.pd-docs a:hover { color: var(--crimson); }

.pd-cta { margin-top: 34px; }

.pd-colors {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.pd-color { margin: 0; }
/* Renk kutuları kare */
.pd-color__swatch {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  border: 1px solid var(--line); border-radius: 3px;
}
.pd-color figcaption {
  margin-top: 8px; font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em;
}
.pd-color figcaption b { display: block; color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .pd-layout { grid-template-columns: 1fr; }
  .pd-gallery { position: static; max-width: 520px; }
}

/* İş ortağı girişi — katalog başlığında vurgulu bağlantı */
.b2b-head__back--cta {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); transition: background .3s, color .3s, border-color .3s;
}
.b2b-head__back--cta:hover {
  background: var(--crimson); border-color: var(--crimson); color: #fff;
}
