/* Product page: rules only this page uses (active and inactive product). Loaded after style.css through the pageCss prop of Layout. */

.modal-brand {
  font-size: 0.75rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.modal-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.modal-category {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modal-category .category-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.modal-category .category-link:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.modal-details {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-details li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.modal-details li span.detail-label {
  color: var(--text-secondary);
}

.modal-details li span.detail-val {
  font-weight: 600;
  color: var(--text-primary);
}

.modal-cta {
  margin-top: auto;
}

.btn-whatsapp {
  background-color: var(--wa-green);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
  width: 100%;
  justify-content: center;
}

.btn-whatsapp:hover {
  background-color: #1eb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

[data-theme="dark"] .pd-grid-off .pd-image .product-img { padding: 1.5rem; border-radius: calc(var(--radius-md) - 4px); }

[data-theme="dark"] .pd-grid-off .pd-thumb img { padding: 3px; border-radius: 4px; }

[data-theme="dark"] .pd-title-thumb { border-radius: var(--radius-sm); }

/* Product page: status bar under the title, then the way on */
.pd-status {
  display: flex; align-items: center; gap: 0.8rem; margin: 0 0 0.75rem; padding: 0.5rem 1rem; min-height: 44px;
  background: var(--nfs-bar-bg); color: var(--nfs-bar-fg);
  border: 0; border-inline-start: 4px solid var(--nfs-bar-rule); border-radius: var(--radius-sm);
}

.pd-status-icon { display: block; flex: 0 0 auto; width: 24px; height: 24px; color: var(--nfs-bar-rule); }

.pd-status-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }

.pd-status-title { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; }

/* Inactive title row: a small grey photo by the title on one-column screens (the gallery is below the text there) */
.pd-titlerow { display: flex; align-items: flex-start; gap: 0.85rem; }

.pd-titlerow .pd-title { flex: 1 1 auto; min-width: 0; }

.pd-title-thumb { display: none; flex: 0 0 auto; width: 60px; height: 60px; object-fit: contain; margin-top: 0.35rem; background: #fff; border: 1px solid var(--border-color); padding: 3px; }

[data-theme="dark"] .pd-title-thumb { background: var(--bg-card); }

.pd-notforsale-link { margin: 0 0 1rem; }

.pd-notforsale-link .btn > span { min-width: 0; text-wrap: balance; }

.pd-status-arrow { display: inline-block; width: 18px; height: 18px; margin-inline-start: 0.25rem; vertical-align: -3px; transition: transform 0.2s ease; }

/* inside the label: it follows the last word on every line count */
.pd-notforsale-link .btn:hover .pd-status-arrow { transform: translateX(3px); }

[data-theme="dark"] .pd-notforsale-link .btn { color: #06090e; }

/* white on the light dark-theme blue was about 2:1; this is 9:1 */
.pd-notforsale-link .btn:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 3px; }

/* One column (tablet, phone): the status, the way on and the facts come before the grey photo, so they stay above the fold and clear of the fixed cookie banner and language chip */
@media (max-width: 1024px) {
  .pd-grid-off .pd-info { order: -1; }
  .pd-title-thumb { display: block; }
}

.pd-grid { display: grid; align-items: start; margin-bottom: 0; }

.pd-media { display: flex; flex-direction: column; gap: 1rem; width: 100%; }

.pd-image .product-img { max-height: 90%; max-width: 90%; transition: opacity 0.2s ease; }

.pd-info { padding: 3rem; display: flex; flex-direction: column; }

.pd-brand { font-size: 0.85rem; }

.pd-title { font-size: 2.25rem; margin-top: 0.25rem; margin-bottom: 1rem; }

.pd-category { margin-bottom: 1.25rem; }

.pd-description { display: block; color: var(--text-secondary); line-height: 1.7; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

.pd-details { margin-bottom: 2.5rem; }

.pd-ref { font-weight: 700; }

.pd-cta { display: flex; flex-direction: column; gap: 0.75rem; }

/* Inactive product: no stock/price rows and no CTA follow the facts, so the list closes without the extra space */
.pd-grid-off .pd-details { margin-bottom: 0; }

.pd-grid-off .pd-keyfacts { margin-top: 1.25rem; }

.pd-cta-main { padding: 1rem; border-radius: 30px; justify-content: center; font-size: 1rem; font-weight: 700; }

.pd-cta-wa { padding: 0.85rem; border-radius: 30px; justify-content: center; }

.pd-back { margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; display: flex; gap: 1rem; }

.pd-specs { display: block; }

.pd-specs-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }

.pd-specs-table tr { border-bottom: 1px solid var(--border-color); }

/* pd-redesign:start - ürün sayfası bölümleri (galeri, öne çıkanlar, gruplu özellikler, dokümanlar, seçenekler, etiketler).
   Yalnızca tema değişkenleri kullanılır; sabit genişlik yok (yatay kaydırma çıkmaz); dokunma hedefleri en az 44px. */
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.25rem; }

.pd-thumbs[hidden] { display: none; }

.pd-thumb { display: inline-flex; align-items: center; justify-content: center; inline-size: 4.5rem; block-size: 4.5rem; min-inline-size: 44px; min-block-size: 44px; padding: 0.35rem; background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.2s ease; }

.pd-thumb:hover { border-color: var(--border-hover); }

.pd-thumb.is-active { border: 2px solid var(--accent-blue); }

.pd-thumb:focus-visible, .pd-tag:focus-visible, .pd-doc:focus-visible, .pd-variant:focus-visible, .pd-jump a:focus-visible, .pd-spec-nav a:focus-visible, .pd-spec-group-title:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }

.pd-keyfacts { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-color); }

.pd-keyfacts-title { margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }

/* dark --text-muted was about 2.5:1 on the card; this is above 4.5:1 */
.pd-keyfacts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0.6rem; margin: 0; }

.pd-keyfact { min-inline-size: 0; padding: 0.6rem 0.75rem; background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); }

.pd-keyfact dt { margin: 0; font-size: 0.75rem; color: var(--text-secondary); overflow-wrap: anywhere; }

/* muted grey was 4.47:1, under AA at this size */
.pd-keyfact dd { margin: 0.15rem 0 0; font-weight: 700; color: var(--text-primary); overflow-wrap: anywhere; }

.pd-jump, .pd-spec-nav { display: flex; gap: 0.5rem; margin: 2rem 0 0; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }

.pd-spec-nav { margin: 0 0 1.25rem; flex-wrap: wrap; overflow-x: visible; }

.pd-jump a:hover, .pd-spec-nav a:hover { border-color: var(--border-hover); }

.pd-section { display: block; margin-top: 1.5rem; padding: 2rem; scroll-margin-top: calc(var(--header-height) + 1rem); }

.pd-section:hover { transform: none; }

.pd-jump + .pd-section { margin-top: 1rem; }

.pd-section-title { margin: 0 0 1.25rem; padding-bottom: 0.75rem; font-size: 1.5rem; font-weight: 700; color: var(--text-primary); border-bottom: 2px solid var(--accent-blue); }

.pd-section-note { margin: -0.5rem 0 1.25rem; font-size: 0.9rem; color: var(--text-muted); }

.pd-spec-group { margin-top: 1rem; scroll-margin-top: calc(var(--header-height) + 1rem); border: 1px solid var(--border-color); border-radius: var(--radius-sm); }

.pd-spec-group:first-of-type { margin-top: 0; }

.pd-spec-group-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-block-size: 44px; padding: 0.5rem 1rem; font-weight: 700; color: var(--text-primary); background-color: var(--bg-primary); border-radius: var(--radius-sm); cursor: pointer; list-style: none; }

.pd-spec-group-title::-webkit-details-marker { display: none; }

.pd-spec-group-title::after { content: ''; flex: 0 0 auto; inline-size: 0.5rem; block-size: 0.5rem; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s ease; }

.pd-spec-group[open] > .pd-spec-group-title::after { transform: rotate(-135deg); }

.pd-spec-group-title > span:first-child { flex: 1 1 auto; min-inline-size: 0; overflow-wrap: anywhere; }

.pd-count { flex: 0 0 auto; padding: 0.1rem 0.6rem; font-size: 0.8rem; font-weight: 700; color: var(--accent-blue); background-color: var(--accent-glow-strong); border-radius: 999px; }

.pd-spec-group .pd-specs-table { margin: 0; }

.pd-spec-group .pd-specs-table th, .pd-spec-group .pd-specs-table td { padding-inline: 1rem; }

.pd-spec-group .pd-specs-table tr:last-child { border-bottom: 0; }

.pd-doc-group + .pd-doc-group { margin-top: 1.5rem; }

.pd-doc-group-title { margin: 0 0 0.6rem; font-size: 1rem; font-weight: 700; color: var(--text-secondary); }

.pd-doc-list, .pd-variant-list, .pd-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }

.pd-doc-list { flex-direction: column; flex-wrap: nowrap; gap: 0.4rem; }

.pd-doc, .pd-variant, .pd-tag { display: inline-flex; align-items: center; gap: 0.6rem; min-block-size: 44px; max-inline-size: 100%; padding: 0.4rem 1rem; color: var(--text-primary); text-decoration: none; background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); transition: border-color 0.2s ease, background-color 0.2s ease; }

.pd-doc { inline-size: 100%; }

.pd-doc:hover, .pd-variant:hover, .pd-tag:hover { border-color: var(--border-hover); background-color: var(--accent-glow); }

.pd-doc-lang { flex: 0 0 auto; padding: 0.1rem 0.45rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; color: var(--accent-blue); background-color: var(--accent-glow-strong); border-radius: 4px; }

.pd-doc-title, .pd-variant-label { flex: 1 1 auto; min-inline-size: 0; overflow-wrap: anywhere; }

.pd-variant-sku { flex: 0 0 auto; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }

.pd-variant-static { cursor: default; }

.pd-ext { flex: 0 0 auto; inline-size: 1rem; block-size: 1rem; fill: var(--text-muted); }

.pd-tag { border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--accent-blue); }

@media (max-width: 768px) {
  .pd-section { margin-top: 1rem; padding: 1.25rem; }
  .pd-section-title { font-size: 1.25rem; margin-bottom: 0.9rem; }
  .pd-jump { margin-top: 1rem; margin-inline: -16px; padding-inline: 16px; }
  .pd-keyfacts { margin-top: 1.1rem; padding-top: 1rem; }
  .pd-spec-group .pd-specs-table th, .pd-spec-group .pd-specs-table td { padding-inline: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-thumb, .pd-jump a, .pd-spec-nav a, .pd-doc, .pd-variant, .pd-tag, .pd-spec-group-title::after { transition: none; }
}
/* pd-redesign:end */

@media (max-width: 768px) {
  .pd-grid { gap: 1rem; margin-bottom: 0; }
  .pd-info .pd-title { font-size: 1.4rem; margin-bottom: 0.4rem; line-height: 1.25; overflow-wrap: anywhere; }
  .pd-info .pd-category { margin-bottom: 0.9rem; }
  .pd-info .pd-details { margin-bottom: 1rem; }
  .pd-info .pd-back { margin-top: 1.25rem; padding-top: 1rem; }
  .pd-image { height: 260px; padding: 1rem; }
  .pd-info { padding: 1.25rem; }
  .pd-cta-main { padding: 0.9rem; }
  .pd-specs-table th, .pd-specs-table td { font-size: 0.85rem; padding: 0.7rem 0.4rem 0.7rem 0; }
  .pd-specs-table th { width: 40%; }
  .pd-details li { gap: 1rem; font-size: 0.88rem; align-items: baseline; }
  .pd-details .detail-label { flex: 0 0 auto; white-space: nowrap; }
  .pd-details .detail-val { text-align: right; overflow-wrap: anywhere; }
  .pd-grid-off .pd-info .pd-details { margin-bottom: 0; }
}

/* Spec icons (single-colour SVG from the manufacturer, painted with the brand colour) */
.spec-icon { display: inline-block; width: 1.25rem; height: 1.25rem; margin-right: .6rem; vertical-align: -0.3rem; object-fit: contain; /* the SVGs are black; this filter paints them #1D4ED8 like the former mask */ filter: brightness(0) saturate(100%) invert(24%) sepia(97%) saturate(2866%) hue-rotate(222deg) brightness(93%) contrast(92%); }

/* Description blocks: paragraphs, headed lists, attribute chips (one text convention for every source) */
.pd-desc-blocks { white-space: normal; }

.pd-desc-blocks > p { margin: 0 0 0.9rem; white-space: pre-line; }

.pd-desc-blocks > :last-child { margin-bottom: 0; }

.pd-desc-heading { margin: 1.25rem 0 0.6rem; font-size: 1rem; font-weight: 700; color: var(--text-primary); }

.pd-desc-blocks > .pd-desc-heading:first-child { margin-top: 0; }

.pd-bullets { margin: 0 0 0.9rem; padding-inline-start: 1.25rem; display: grid; gap: 0.35rem; }

.pd-bullets li::marker { color: var(--accent-blue, var(--primary)); }

.pd-attrs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.pd-attrs li { padding: 0.3rem 0.7rem; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-primary); font-size: 0.9rem; color: var(--text-primary); overflow-wrap: anywhere; }

/* Documents grouped by type use the same accordion as the spec groups */
.pd-doc-group.pd-spec-group { margin-top: 0.75rem; }

.pd-doc-group.pd-spec-group > .pd-doc-list { padding: 0.75rem 1rem 1rem; margin: 0; }

.pd-doc-group-title { margin: 0; font-size: 1rem; }

/* Series variants with options: one row per variant */
.pd-variant-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border-color); border-radius: var(--radius-sm); }

.pd-variant-table-wrap:focus-visible { outline: 3px solid var(--accent-blue, #1D4ED8); outline-offset: 2px; }

.pd-variant-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.pd-variant-table th, .pd-variant-table td { padding: 0.55rem 0.75rem; text-align: start; border-bottom: 1px solid var(--border-color); white-space: nowrap; }

.pd-variant-table thead th { background: var(--bg-primary); color: var(--text-primary); font-weight: 700; position: sticky; top: 0; }

.pd-variant-table tbody th { font-weight: 600; }

.pd-variant-table tbody tr:last-child > * { border-bottom: 0; }

/* Product page: one-sentence answer block under the title (GEO) */
.pd-summary { margin: 0.35rem 0 0.9rem; color: var(--text-secondary, #475569); font-size: 0.95rem; line-height: 1.55; }
