/* ============================================================
   Kaynak & Kesim mağazası (ürün listesi + ürün detayı + /urunler/ kategori bloğu)
   Sade, açık zeminli e-ticaret düzeni. Üst menü bu sayfalarda hep koyu kalır.
   styles.css'ten sonra yüklenir.
   ============================================================ */
.shop-page { background: var(--white); }
.shop-page .site-header {
  background: rgba(7, 9, 12, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}
.shop-page main { padding-top: 88px; }

.shop-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.shop-button:hover,
.shop-button:focus-visible { border-color: var(--yellow-deep); background: var(--yellow-deep); }
.shop-button-ghost { color: var(--ink); background: transparent; border-color: #c9cdd0; }
.shop-button-ghost:hover,
.shop-button-ghost:focus-visible { color: var(--ink); background: #f1f3f3; border-color: var(--ink); }
.shop-button-small { min-height: 36px; padding: 0 14px; font-size: 12px; }

.shop-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: #6b7175; font-size: 13px; }
.shop-breadcrumb li + li::before { margin-right: 6px; color: #b3b8bb; content: "/"; }
.shop-breadcrumb a { color: inherit; text-decoration: none; }
.shop-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.shop-breadcrumb [aria-current] { color: var(--ink); }

.shop-page-head { padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.shop-page-head h1 { margin: 18px 0 10px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.shop-page-head p { max-width: 720px; margin: 0; color: #50565a; font-size: 16px; line-height: 1.6; }
.shop-page-head-compact { padding: 24px 0 0; border-bottom: 0; }

.shop-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 32px 0 96px; }
.shop-sidebar { position: sticky; top: 112px; align-self: start; }
.shop-filter + .shop-filter { margin-top: 32px; }
.shop-filter h2 { margin: 0 0 12px; color: #6b7175; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.shop-filter ul { margin: 0; padding: 0; list-style: none; }
.shop-filter li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--radius); color: var(--ink); font-size: 14px; text-decoration: none; }
.shop-filter li a span { color: #8a9094; font-size: 13px; }
.shop-filter li a:hover { background: #f1f3f3; }
.shop-filter li a[aria-current] { color: var(--white); background: var(--ink); }
.shop-filter li a[aria-current] span { color: rgba(255, 255, 255, 0.6); }
.shop-brand-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-brand-filter button { min-height: 36px; padding: 0 12px; border: 1px solid #c9cdd0; border-radius: 999px; color: var(--ink); background: var(--white); font: inherit; font-size: 13px; cursor: pointer; }
.shop-brand-filter button:hover { border-color: var(--ink); }
.shop-brand-filter button[aria-pressed="true"] { border-color: var(--ink); color: var(--white); background: var(--ink); }

.shop-count { margin: 0 0 16px; color: #6b7175; font-size: 14px; }
.shop-empty { padding: 48px 0; color: #6b7175; text-align: center; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shop-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e3e6e7; border-radius: 6px; background: var(--white); transition: border-color 160ms ease, box-shadow 160ms ease; }
.shop-card[hidden] { display: none; }
.shop-card:hover { border-color: #c9cdd0; box-shadow: 0 10px 28px rgba(10, 12, 15, 0.08); }
/* Görseller kutuya mutlak konumla oturur; böylece tüm kartlar aynı yükseklikte kalır. */
.shop-card-media,
.shop-category-media { position: relative; display: block; background: var(--white); }
.shop-card-media { aspect-ratio: 4 / 3; }
.shop-card-media img,
.shop-category-media img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 20px; object-fit: contain; }
.shop-card-media img { transition: transform 300ms ease; }
.shop-card:hover .shop-card-media img { transform: scale(1.03); }
.shop-card-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; border-top: 1px solid #eef0f1; }
.shop-card-brand { margin: 0 0 4px; color: #6b7175; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.shop-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.shop-card h3 a { color: var(--ink); text-decoration: none; }
/* Tüm kart tıklanabilir; "Fiyat al" butonu bunun üstünde kalır. */
.shop-card h3 a::after { position: absolute; inset: 0; content: ""; }
.shop-card h3 a:focus-visible { outline: none; }
.shop-card:focus-within { outline: 2px solid var(--yellow-deep); outline-offset: 2px; }
.shop-card-specs { margin: 0 0 16px; padding: 0; color: var(--ink); font-size: 13px; line-height: 1.45; list-style: none; }
.shop-card-specs li + li { margin-top: 4px; }
.shop-card-specs span { display: block; color: #8a9094; font-size: 11px; }
.shop-card-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid #eef0f1; }
.shop-card-foot > span { color: #50565a; font-size: 13px; font-weight: 600; }

/* /urunler/ sayfasındaki kategori bloğu */
.shop-teaser { border-top: 1px solid var(--line); }
.shop-teaser .catalog-intro .shop-button { margin-top: 18px; }
.shop-category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.shop-category-tile { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e3e6e7; border-radius: 6px; color: var(--ink); background: var(--white); text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.shop-category-tile:hover { border-color: #c9cdd0; box-shadow: 0 10px 28px rgba(10, 12, 15, 0.08); }
.shop-category-media { aspect-ratio: 1 / 1; }
.shop-category-copy { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; border-top: 1px solid #eef0f1; }
.shop-category-copy strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.shop-category-copy small { color: #6b7175; font-size: 13px; }

/* Ürün detay sayfası */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding: 24px 0 64px; }
.pdp-media { position: sticky; top: 112px; align-self: start; aspect-ratio: 1 / 1; border: 1px solid #e3e6e7; border-radius: 8px; background: var(--white); }
.pdp-media img { position: absolute; inset: 0; width: 100%; height: 100%; padding: clamp(24px, 4vw, 56px); object-fit: contain; }
.pdp-brand { display: inline-block; color: var(--yellow-deep); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }
.pdp-brand:hover { text-decoration: underline; }
.pdp h1 { margin: 8px 0; font-size: clamp(30px, 3.2vw, 42px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.pdp-code { margin: 0 0 18px; color: #6b7175; font-size: 14px; }
.pdp-code span { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.pdp-summary { margin: 0 0 22px; color: #3b4145; font-size: 16px; line-height: 1.65; }
.pdp-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 24px; padding: 0; overflow: hidden; border: 1px solid #e3e6e7; border-radius: 6px; background: #e3e6e7; list-style: none; }
.pdp-quick li { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--white); }
.pdp-quick span { color: #6b7175; font-size: 12px; }
.pdp-quick strong { font-size: 14px; font-weight: 600; line-height: 1.4; }
.pdp-buy { padding: 20px; border-radius: 6px; background: #f4f5f5; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.pdp-price span { color: #6b7175; font-size: 13px; }
.pdp-price strong { font-size: 22px; font-weight: 600; }
.pdp-price-note { margin: 4px 0 16px; color: #6b7175; font-size: 13px; }
.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-datasheet { display: inline-block; margin-top: 18px; color: var(--ink); font-size: 14px; font-weight: 600; text-underline-offset: 3px; }

.pdp-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; padding: 48px 0 64px; border-top: 1px solid var(--line); }
.pdp-block h2,
.pdp-related-head h2,
.pdp-quote h2 { margin: 0 0 18px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pdp-features { margin: 0; padding: 0; list-style: none; }
.pdp-features li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid #eef0f1; color: #3b4145; font-size: 15px; line-height: 1.5; }
.pdp-features li::before { position: absolute; top: 10px; left: 0; color: var(--yellow-deep); content: "✓"; font-weight: 700; }
.pdp-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.pdp-specs th,
.pdp-specs td { padding: 11px 14px; border-bottom: 1px solid #eef0f1; text-align: left; vertical-align: top; }
.pdp-specs tr:nth-child(odd) { background: #f7f8f8; }
.pdp-specs th { width: 42%; color: #50565a; font-weight: 500; }
.pdp-spec-note { margin: 14px 0 0; color: #6b7175; font-size: 13px; line-height: 1.5; }
.pdp-spec-note a { color: var(--ink); font-weight: 600; }

.pdp-quote { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; margin-bottom: 64px; padding: 40px; border-radius: 8px; background: #f4f5f5; scroll-margin-top: 104px; }
.pdp-quote p { margin: 0 0 12px; color: #50565a; font-size: 15px; line-height: 1.6; }
.pdp-quote .pdp-quote-product { display: inline-block; padding: 8px 12px; border-radius: var(--radius); color: var(--ink); background: var(--white); font-weight: 600; }
.pdp-form { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.pdp-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.pdp-form .form-row-quantity { grid-template-columns: 120px 1fr; }
.pdp-form label { display: grid; gap: 6px; margin: 0; color: #50565a; font-size: 13px; letter-spacing: 0; text-transform: none; }
.pdp-form input:not([type="checkbox"]) { padding: 12px; border: 1px solid #c9cdd0; border-radius: var(--radius); color: var(--ink); background: var(--white); font-size: 15px; }
.pdp-form input:not([type="checkbox"]):focus { border-color: var(--yellow-deep); box-shadow: 0 0 0 3px rgba(54, 197, 185, 0.2); }
.pdp-form .form-consent { grid-template-columns: 18px 1fr; align-items: start; }
.pdp-form .form-consent input { margin-top: 2px; }
.pdp-form .shop-button { justify-self: start; }

.pdp-related { padding: 0 0 96px; }
.pdp-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pdp-related-head a { color: var(--ink); font-size: 14px; font-weight: 600; }

@media (max-width: 1080px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp,
  .pdp-details,
  .pdp-quote { gap: 32px; }
}
@media (max-width: 820px) {
  .shop-page main { padding-top: 74px; }
  .shop-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  .shop-sidebar { position: static; min-width: 0; }
  .shop-filter ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .shop-filter li a { border: 1px solid #e3e6e7; white-space: nowrap; }
  .shop-filter + .shop-filter { margin-top: 16px; }
  .pdp,
  .pdp-details,
  .pdp-quote { grid-template-columns: minmax(0, 1fr); }
  .pdp-media { position: relative; top: auto; width: 100%; max-width: 440px; margin: 0 auto; }
  .pdp-quote { padding: 24px; }
}
@media (max-width: 520px) {
  .shop-grid,
  .shop-grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shop-card-media img { padding: 12px; }
  .shop-card-body { padding: 12px; }
  .shop-card h3 { font-size: 15px; }
  .shop-card-specs { display: none; }
  .shop-card-foot { flex-direction: column; align-items: stretch; }
  .shop-card-foot .shop-button { width: 100%; }
  .shop-category-grid { grid-template-columns: 1fr 1fr; }
  .pdp-actions,
  .pdp-quick { grid-template-columns: 1fr; }
  .pdp-form .form-row,
  .pdp-form .form-row-quantity { grid-template-columns: 1fr; }
  .pdp-form .shop-button { width: 100%; }
}
