/* Approved İnformal catalog, Superdesign version 6. Login has its own visual system. */
body:not(.welcomemode) {
  --ink: #263d50;
  --muted: #627181;
  --line: #e0e5e7;
  --blue: #173956;
  --bg: #f6f5f2;
  color: var(--ink);
  background: var(--bg);
  font: 14px/1.5 "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:not(.welcomemode) :is(button, .button, input, select) { min-height: 44px; }
body:not(.welcomemode) :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #3c779f; outline-offset: 3px; }
body:not(.welcomemode) .shell { margin-left: 0; width: 100%; min-width: 0; }
body:not(.welcomemode) .shell > .portal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 144px minmax(180px, 600px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  height: 72px;
  padding: 12px 24px;
  background: #fff;
  border: 0;
  box-shadow: none;
}
body:not(.welcomemode) .portal-header .portal-brand {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  width: 144px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body:not(.welcomemode) .portal-header .portal-brand .portal-logo { width: 144px; height: 48px; object-fit: contain; border: 0; border-radius: 0; padding: 0; background: transparent; }
body:not(.welcomemode) .portal-global-search { display: flex; position: relative; align-items: center; min-width: 0; width: 100%; margin: 0; }
body:not(.welcomemode) .portal-global-search > svg { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
body:not(.welcomemode) #global-search { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 10px 58px 10px 41px; border: 1px solid var(--line); border-radius: 7px; background: #f6f5f2; font-size: 14px; color: var(--ink); }
body:not(.welcomemode) #global-search::placeholder { color: var(--muted); opacity: 1; }
body:not(.welcomemode) #global-search:focus { background: #fff; border-color: #173956; }
body:not(.welcomemode) .portal-global-search > button { position: absolute; top: 0; right: 0; height: 44px; min-width: 48px; padding: 8px; background: transparent; color: var(--blue); border: 0; border-left: 1px solid var(--line); border-radius: 0 6px 6px 0; font-size: 12px; }
body:not(.welcomemode) .portal-header-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
body:not(.welcomemode) .header-favorites { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 6px; color: var(--muted); }
body:not(.welcomemode) .header-favorites:hover { color: #ae3652; background: #fff4f6; }
body:not(.welcomemode) .header-favorites > span { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 4px; background: #edf0f2; color: #263d50; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; }
body:not(.welcomemode) .portal-header .cartbutton { display: flex; align-items: center; justify-content: center; gap: 9px; width: auto; min-width: 76px; height: 44px; padding: 9px 12px; border: 1px solid #173956; border-radius: 7px; background: #173956; color: #fff; }
body:not(.welcomemode) .portal-header .cartbutton > span { margin: 0; min-width: 22px; height: 22px; padding: 2px 5px; background: #ffffff26; border-radius: 4px; color: #fff; font-size: 12px; line-height: 18px; }
body:not(.welcomemode) .portal-header .header-account { display: flex; align-items: center; gap: 9px; min-width: 44px; min-height: 44px; margin: 0; padding: 0 0 0 4px; border: 0; border-radius: 5px; }
body:not(.welcomemode) .header-account-name { min-width: 0; max-width: 160px; text-align: right; }
body:not(.welcomemode) .header-account-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; color: #173956; }
body:not(.welcomemode) .header-account-name small { margin: 0; font-size: 10px; color: var(--muted); }
body:not(.welcomemode) .header-account .avatar { width: 34px; min-width: 34px; height: 34px; border-radius: 50%; background: #f6f5f2; border: 1px solid var(--line); color: #173956; }
body:not(.welcomemode) :is(#sidebar .closemenu, .nav-section) { display: none; }

/* One navigation row frees the full desktop width for products. */
body:not(.welcomemode) #sidebar {
  position: sticky;
  inset: auto;
  top: 72px;
  z-index: 29;
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-width: 1px 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px #17395603;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
body:not(.welcomemode) #sidebar::-webkit-scrollbar { display: none; }
body:not(.welcomemode) #nav { display: flex; align-items: center; gap: 24px; width: max-content; min-width: 100%; height: 44px; }
body:not(.welcomemode) #nav a { display: flex; align-items: center; flex-shrink: 0; gap: 6px; min-height: 44px; height: 44px; margin: 0; padding: 8px 0; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: none; }
body:not(.welcomemode) #nav a:hover { background: transparent; color: #173956; border-bottom-color: #dce5eb; }
body:not(.welcomemode) #nav a.active { background: transparent; color: #173956; border-bottom-color: #173956; font-weight: 600; box-shadow: none; }
body:not(.welcomemode) #nav a[href="#destek"] { margin-left: auto; color: #846232; }
body:not(.welcomemode) #nav .logout { flex-shrink: 0; min-height: 44px; height: 44px; margin: 0; padding: 8px 0; color: #627181; background: transparent; border: 0; font-size: 11px; font-weight: 400; }
body:not(.welcomemode) #nav .logout:disabled { display: none; }
body:not(.welcomemode) #main { max-width: 1920px; width: 100%; min-width: 0; padding: 18px 20px 32px; margin: 0 auto; }
body:not(.welcomemode) .pagehead { margin-bottom: 20px; }
body:not(.welcomemode) .pagehead h1 { color: #173956; font: 400 28px/1.25 Georgia, "Times New Roman", serif; letter-spacing: -.4px; }
body:not(.welcomemode) footer { padding: 18px 24px 24px; border-top: 1px solid var(--line); color: #627181; background: #fff; }
body:not(.welcomemode) .preview-banner { padding: 6px 24px; }
body:not(.welcomemode) .preview-banner a { min-height: 32px; }

/* All catalog controls retain the application's data and event hooks. */
body:not(.welcomemode) .catalog-page .catalog-heading { flex-direction: row; align-items: center; gap: 12px 20px; margin: 0 0 14px; }
body:not(.welcomemode) .catalog-page .catalog-eyebrow { display: none; }
body:not(.welcomemode) .catalog-page .catalog-heading h1 { margin: 0 0 3px; font-size: 28px; }
body:not(.welcomemode) .catalog-page .catalog-heading p { font-size: 12px; }
body:not(.welcomemode) .catalog-page .catalog-heading .actions { width: auto; max-width: none; justify-content: flex-end; }
body:not(.welcomemode) .catalog-page .catalog-heading .actions .cart-icon-link { display: none; }
body:not(.welcomemode) .catalog-page .catalog-searchbar { display: none; }
body:not(.welcomemode) .catalog-page .catalog-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: start; }
body:not(.welcomemode) .catalog-page .catalog-categories { position: sticky; top: 132px; width: 190px; max-height: calc(100dvh - 148px); padding: 16px 10px; margin: 0; border-radius: 7px; border: 1px solid var(--line); background: #fff; overflow-y: auto; overflow-x: hidden; box-shadow: none; }
body:not(.welcomemode) .catalog-page .category-heading h2 { margin: 0 6px 12px; padding-bottom: 12px; font-size: 14px; }
body:not(.welcomemode) .catalog-page .category-option { gap: 6px; margin: 0; padding: 9px 7px; min-height: 44px; font-size: 12px; }
body:not(.welcomemode) .catalog-page .category-option > span:last-child { min-width: 20px; padding: 1px 3px; font-size: 10px; }
body:not(.welcomemode) .catalog-page .category-section + .category-section { margin-top: 15px; padding-top: 15px; }
body:not(.welcomemode) .catalog-page .category-section h3 { margin: 12px 7px 4px; font-size: 10px; letter-spacing: .7px; }
body:not(.welcomemode) .catalog-page .category-options { max-height: 300px; }
body:not(.welcomemode) .catalog-page .category-print { margin: 16px 6px 0; padding-top: 14px; }
body:not(.welcomemode) .catalog-page .category-print p { font-size: 11px; }
body:not(.welcomemode) .catalog-page .category-close { display: none; }
/* Native, draggable book strip: covers lead, with a compact title underneath. */
body:not(.welcomemode) .catalog-page .new-releases { display: block; min-width: 0; margin: 0 0 18px; }
body:not(.welcomemode) .catalog-page .new-releases[hidden] { display: none; }
body:not(.welcomemode) .catalog-page .releases-heading { display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 10px; }
body:not(.welcomemode) .catalog-page .releases-heading h2 { margin: 0; font: 600 18px/1.3 "Segoe UI", Arial, sans-serif; letter-spacing: -.2px; }
body:not(.welcomemode) .catalog-page .release-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-left: auto; }
body:not(.welcomemode) .catalog-page .release-all { min-height: 44px; margin-right: 8px; padding: 4px 0; font-size: 12px; color: #47677f; }
body:not(.welcomemode) .catalog-page .release-arrow,
body:not(.welcomemode) .catalog-page .release-playback { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid #c4d0d9; border-radius: 6px; color: #173956; background: #fff; font-size: 12px; line-height: 1.3; }
body:not(.welcomemode) .catalog-page .release-arrow:disabled,
body:not(.welcomemode) .catalog-page .release-playback:disabled { color: #6a7883; background: #f2f5f7; border-color: #dce3e8; cursor: default; }
body:not(.welcomemode) .catalog-page .release-arrow:hover:not(:disabled),
body:not(.welcomemode) .catalog-page .release-playback:hover:not(:disabled) { background: #edf2f6; border-color: #69849a; }
body:not(.welcomemode) .catalog-page .release-list { display: flex; gap: 14px; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 2px 10px; scroll-snap-type: none; scroll-behavior: auto; scrollbar-width: thin; scrollbar-color: #b8c6d1 #edf1f4; touch-action: pan-x pan-y; cursor: grab; }
body:not(.welcomemode) .catalog-page .release-list.is-dragging { cursor: grabbing; user-select: none; }
body:not(.welcomemode) .catalog-page .release-card,
body:not(.welcomemode) .catalog-page .release-card:nth-child(n+3) { display: flex; flex: 0 0 168px; width: 168px; min-width: 0; min-height: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; padding: 8px 8px 10px; border: 1px solid #e0e5e9; border-radius: 7px; background: #fff; text-align: center; cursor: inherit; scroll-snap-align: none; user-select: none; transition: border-color 160ms ease, background-color 160ms ease; }
body:not(.welcomemode) .catalog-page .release-card:hover { border-color: #8fa5b7; background: #fafcfd; box-shadow: none; }
body:not(.welcomemode) .catalog-page .release-cover { display: flex; align-items: center; justify-content: center; width: 150px; height: 210px; background: #fff; }
body:not(.welcomemode) .catalog-page .release-card img { display: block; width: 150px; height: 210px; object-fit: contain; pointer-events: none; user-select: none; }
body:not(.welcomemode) .catalog-page .release-copy { display: block; width: 100%; }
body:not(.welcomemode) .catalog-page .release-copy strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; max-height: 36px; font-size: 12px; line-height: 18px; font-weight: 500; color: #354d60; }
body:not(.welcomemode) .catalog-page .new-releases :is(button, a, .release-list):focus-visible { outline: 2px solid #173956; outline-offset: 2px; }
body:not(.welcomemode) .catalog-page .connectionbar { gap: 12px; min-height: 44px; padding: 6px 10px; margin: 0 0 10px; background: #f0f3f5; border-radius: 5px; }
body:not(.welcomemode) .catalog-page .connectionbar p { margin: 0; }
body:not(.welcomemode) .catalog-page .connectionbar button { min-height: 44px; padding: 7px 10px; }
body:not(.welcomemode) .catalog-page .catalog-toolbar { padding: 10px 0 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
body:not(.welcomemode) .catalog-page .catalog-toolbar .searchbar { gap: 8px; flex-direction: row; align-items: center; }
body:not(.welcomemode) .catalog-page .catalog-list-heading { min-width: 120px; }
body:not(.welcomemode) .catalog-page .catalog-list-heading h2 { font-size: 14px; margin-bottom: 2px; }
body:not(.welcomemode) .catalog-page .catalog-list-heading .resultcount { font-size: 11px; }
body:not(.welcomemode) .catalog-page .catalog-view-switch { margin-left: 0; }
body:not(.welcomemode) .catalog-page .catalog-toolbar .searchbar select { width: 175px; min-width: 150px; max-width: 200px; flex: 0 1 175px; font-size: 12px; }
body:not(.welcomemode) .catalog-page .catalog-viewbar { padding: 6px 0; }
body:not(.welcomemode) .catalog-page .chips { gap: 5px; }
body:not(.welcomemode) .catalog-page .chips button { min-height: 44px; padding: 8px 11px; border-color: transparent; background: transparent; font-size: 11px; }
body:not(.welcomemode) .catalog-page .chips button.selected { color: #173956; background: #e9eff3; border-color: #dbe4eb; }
body:not(.welcomemode) .catalog-page .active-catalog-filters { padding-bottom: 8px; }
body:not(.welcomemode) .catalog-page .catalog-results.grid-view { padding: 4px 0 0; }
body:not(.welcomemode) .catalog-page .publication-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: stretch; }
body:not(.welcomemode) .catalog-page .publication-card.product { padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px #17395603; }
body:not(.welcomemode) .catalog-page .publication-card.product:hover { border-color: #afbfcb; box-shadow: 0 4px 14px #17395609; }
body:not(.welcomemode) .catalog-page .publication-card-top { position: absolute; top: 8px; right: 8px; left: 8px; min-height: 44px; margin: 0; align-items: flex-start; }
body:not(.welcomemode) .catalog-page .publication-badge { margin-top: 5px; padding: 3px 6px; font-size: 9px; color: #846232; background: #faf6ee; border-color: #e9dfce; }
body:not(.welcomemode) .catalog-page .publication-card .favorite { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 10px; background: #ffffffef; border-color: transparent; color: #627181; }
body:not(.welcomemode) .catalog-page .publication-card .favorite:hover,
body:not(.welcomemode) .catalog-page .publication-card .favorite.on { color: #ae3652; background: #fff4f6; border-color: #f0dce2; }
body:not(.welcomemode) .catalog-page .publication-card .favorite svg { width: 21px; height: 21px; }
body:not(.welcomemode) .catalog-page .publication-card .favorite[aria-pressed="true"] svg { fill: currentColor; }
body:not(.welcomemode) .catalog-page .publication-image { display: grid; place-items: center; width: 100%; height: 264px; padding: 30px 12px 12px; margin: 0 0 10px; border: 0; border-radius: 0; background: #fff; overflow: hidden; }
body:not(.welcomemode) .catalog-page .publication-image img { width: 100%; max-width: 100%; height: 100%; max-height: 222px; padding: 0; object-fit: contain; filter: drop-shadow(0 5px 6px #17395612); border-radius: 0; }
body:not(.welcomemode) .catalog-page .publication-copy { margin: 0 0 8px; }
body:not(.welcomemode) .catalog-page .publication-series { margin: 0 0 4px; color: #846232; font-size: 9px; line-height: 1.5; }
body:not(.welcomemode) .catalog-page .publication-card h3 { display: -webkit-box; min-height: 55px; max-height: 55px; margin: 0; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; color: #263d50; font: 600 13px/1.4 "Segoe UI", Arial, sans-serif; }
body:not(.welcomemode) .catalog-page .publication-isbn { font-size: 10px; line-height: 1.5; margin-top: 5px; color: #627181; }
body:not(.welcomemode) .catalog-page .publication-pricing { gap: 3px 6px; padding-top: 8px; margin-top: auto; border-top: 0; }
body:not(.welcomemode) .catalog-page .publication-pricing > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
body:not(.welcomemode) .catalog-page .publication-list-price { font-size: 11px; color: #627181; }
body:not(.welcomemode) .catalog-page .publication-discount { padding: 2px 5px; font-size: 10px; color: #486f5c; background: #edf4ef; }
body:not(.welcomemode) .catalog-page .publication-price { flex: 1 1 auto; font-size: 20px; line-height: 1.35; color: #173956; letter-spacing: -.4px; }
body:not(.welcomemode) .catalog-page .publication-pricing > small { flex: 0 0 auto; font-size: 10px; color: #627181; }
body:not(.welcomemode) .catalog-page .publication-stock { margin: 5px 0 8px; font-size: 10px; }
body:not(.welcomemode) .catalog-page .publication-card .productfoot { flex-direction: row; gap: 6px; margin: 0; padding-top: 9px; border-top: 1px solid #e9edef; }
body:not(.welcomemode) .catalog-page .publication-card .qtyinput { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; padding: 9px 2px; font-size: 14px; appearance: textfield; }
body:not(.welcomemode) .catalog-page .publication-card .qtyinput::-webkit-inner-spin-button,
body:not(.welcomemode) .catalog-page .publication-card .qtyinput::-webkit-outer-spin-button { appearance: none; margin: 0; }
body:not(.welcomemode) .catalog-page .publication-card .productfoot button[data-action="add"] { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 8px 5px; font-size: 12px; line-height: 1.35; }
body:not(.welcomemode) .catalog-page .publication-card .productfoot button svg { width: 18px; height: 18px; flex-shrink: 0; }
body:not(.welcomemode) .catalog-page .publication-in-list { min-height: 15px; margin: 5px 0 0; font-size: 10px; }
body:not(.welcomemode) .catalog-page .pricecontext,
body:not(.welcomemode) .catalog-page .catalog-help { margin: 12px 0; font-size: 11px; }
body:not(.welcomemode) .catalog-page .loadmore:empty { display: none; }
body:not(.welcomemode) .catalog-page .catalog-table { table-layout: auto; }
body:not(.welcomemode) .catalog-page .catalog-results.table-view { border: 1px solid var(--line); border-radius: 7px; }
body:not(.welcomemode) .catalog-page .catalog-table-wrap:has(> .table-view) { overflow-x: auto; }

/* Order and account pages share the same restrained surfaces. */
body:not(.welcomemode) :is(.panel, .stat, .order-summary) { border-color: #e0e5e7; border-radius: 7px; box-shadow: none; }
body:not(.welcomemode) .twocol { grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
body:not(.welcomemode) .summary { position: sticky; top: 132px; }
body:not(.welcomemode) .cart-publication img { width: 60px; height: 84px; object-fit: contain; }
body:not(.welcomemode) .summary .total { color: #173956; }
body:not(.welcomemode) .checkout-steps { margin: 0 0 20px; }
body:not(.welcomemode) .checkout-steps a { border-radius: 5px; }
body:not(.welcomemode) #toast { background: #173956; border-radius: 7px; }
body:not(.welcomemode) dialog { border-radius: 9px; }
body:not(.welcomemode) dialog .quote-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 10px 0; color: #627181; font-size: 12px; }
body:not(.welcomemode) dialog .quote-summary > b { flex-shrink: 0; color: #263d50; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
body:not(.welcomemode) dialog .draftlines > p { align-items: baseline; }
body:not(.welcomemode) dialog .draftlines > p > span:first-child { flex: 1; min-width: 0; }
body:not(.welcomemode) dialog .draftlines > p > b { flex-shrink: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
body:not(.welcomemode) dialog .draftlines small { display: block; margin-top: 4px; color: #627181; font-size: 11px; line-height: 1.5; }
/* Successful reads stay compact; loading and failure explanations remain visible. */
body:not(.welcomemode) .catalog-page .connectionbar:is([data-state="live"], [data-state="snapshot"]) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-height: 56px; padding: 5px 10px; }
body:not(.welcomemode) .catalog-page .connectionbar:is([data-state="live"], [data-state="snapshot"]) .connectiontext { grid-column: 1; grid-row: 1; min-width: 0; align-self: end; }
body:not(.welcomemode) .catalog-page .connectionbar:is([data-state="live"], [data-state="snapshot"]) .connectiontext > strong { display: block; font-size: 11px; line-height: 1.4; }
body:not(.welcomemode) .catalog-page .connectionbar:is([data-state="live"], [data-state="snapshot"]) .connectiontext > p { display: none; }
body:not(.welcomemode) .catalog-page .connectionbar:is([data-state="live"], [data-state="snapshot"]) .connectionmeta { display: contents; }
body:not(.welcomemode) .catalog-page .connectionbar:is([data-state="live"], [data-state="snapshot"]) .connectionmeta > span { grid-column: 1; grid-row: 2; align-self: start; min-width: 0; font-size: 10px; line-height: 1.5; }
body:not(.welcomemode) .catalog-page .connectionbar:is([data-state="live"], [data-state="snapshot"]) .connectionmeta > button { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; padding: 7px 9px; }
body:not(.welcomemode) .catalog-page .connectionbar:is([data-state="live"], [data-state="snapshot"]):not(:has(.connectionmeta > span)) .connectiontext { grid-row: 1 / span 2; align-self: center; }
body.welcomemode #sidebar { display: none; }

@media (min-width: 640px) {
  body:not(.welcomemode) .catalog-page .publication-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  body:not(.welcomemode) .catalog-page .publication-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  body:not(.welcomemode) .catalog-page .publication-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 1100px) {
  body:not(.welcomemode) .shell > .portal-header { grid-template-columns: 130px minmax(180px, 1fr) auto; gap: 20px; padding-left: 20px; padding-right: 20px; }
  body:not(.welcomemode) .portal-header .portal-brand,
  body:not(.welcomemode) .portal-header .portal-brand .portal-logo { width: 130px; }
  body:not(.welcomemode) .header-account-name { display: none; }
  body:not(.welcomemode) .portal-header-actions { gap: 9px; }
  body:not(.welcomemode) #nav { gap: 20px; }
  body:not(.welcomemode) .catalog-page .catalog-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 1023px) {
  body:not(.welcomemode) .catalog-page .catalog-layout { display: block; }
  body:not(.welcomemode) .catalog-page .catalog-categories { display: none; }
  body:not(.welcomemode) .catalog-page .catalog-category-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin: 0 0 12px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); color: #173956; font-size: 12px; }
  body:not(.welcomemode) .catalog-page .catalog-category-toggle > span { color: #627181; font-size: 11px; }
  body:not(.welcomemode) .catalog-page .catalog-categories.open { display: block; position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(310px, 92vw); height: 100dvh; max-height: 100dvh; padding: 16px; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: -20px 0 70px #17395635; overflow-y: auto; }
  body:not(.welcomemode) .catalog-page .category-close { display: block; width: 100%; margin: 0 0 20px; text-align: left; background: #f0f4f7; }
  body:not(.welcomemode) .catalog-page .category-section { display: block; }
  body:not(.welcomemode) .catalog-page .category-options { display: block; max-height: none; overflow: visible; }
  body:not(.welcomemode) .catalog-page .category-option { display: flex; width: 100%; }
  body:not(.welcomemode) .twocol { grid-template-columns: minmax(0, 1fr); }
  body:not(.welcomemode) .summary { position: static; }
}
@media (max-width: 760px) {
  body:not(.welcomemode) .shell > .portal-header { grid-template-columns: 1fr auto; grid-template-rows: 44px 44px; gap: 10px 12px; height: 120px; padding: 10px 12px 12px; }
  body:not(.welcomemode) .portal-header .portal-brand { grid-column: 1; grid-row: 1; min-height: 36px; width: 108px; }
  body:not(.welcomemode) .portal-header .portal-brand .portal-logo { width: 108px; height: 36px; }
  body:not(.welcomemode) .portal-header-actions { grid-column: 2; grid-row: 1; gap: 6px; }
  body:not(.welcomemode) .portal-header .header-account { padding: 0; min-width: 44px; justify-content: center; }
  body:not(.welcomemode) .header-account .avatar { width: 32px; min-width: 32px; height: 32px; }
  body:not(.welcomemode) .portal-header .cartbutton { min-width: 70px; height: 44px; padding: 9px; gap: 6px; }
  body:not(.welcomemode) .portal-global-search { grid-column: 1 / -1; grid-row: 2; }
  body:not(.welcomemode) #global-search { font-size: 14px; padding-left: 38px; }
  body:not(.welcomemode) #sidebar { top: 120px; padding: 0 12px; }
  body:not(.welcomemode) #nav { gap: 22px; height: 44px; }
  body:not(.welcomemode) #nav a { font-size: 12px; }
  body:not(.welcomemode) #nav .logout { font-size: 11px; }
  body:not(.welcomemode) #main { padding: 16px 12px 24px; }
  body:not(.welcomemode) .catalog-page .catalog-heading { gap: 10px; align-items: flex-start; margin-bottom: 12px; }
  body:not(.welcomemode) .catalog-page .catalog-heading h1 { font-size: 26px; }
  body:not(.welcomemode) .catalog-page .catalog-heading p { font-size: 12px; line-height: 1.55; }
  body:not(.welcomemode) .catalog-page .catalog-heading .actions { flex-shrink: 0; max-width: 116px; }
  body:not(.welcomemode) .catalog-page .catalog-heading .actions .button { min-height: 44px; padding: 9px; font-size: 11px; text-align: center; }
  body:not(.welcomemode) .catalog-page .new-releases { display: block; margin-bottom: 10px; }
  body:not(.welcomemode) .catalog-page .releases-heading { flex-direction: row; align-items: center; justify-content: space-between; margin: 0 0 6px; gap: 10px; }
  body:not(.welcomemode) .catalog-page .releases-heading h2 { font-size: 16px; }
  body:not(.welcomemode) .catalog-page .release-all { font-size: 11px; min-height: 44px; }
  body:not(.welcomemode) .catalog-page .release-list { gap: 10px; }
  body:not(.welcomemode) .catalog-page .release-controls { gap: 8px; }
  body:not(.welcomemode) .catalog-page .release-all { margin-right: 0; }
  body:not(.welcomemode) .catalog-page .release-card,
  body:not(.welcomemode) .catalog-page .release-card:nth-child(n+3) { flex-basis: 138px; width: 138px; gap: 8px; }
  body:not(.welcomemode) .catalog-page .release-cover,
  body:not(.welcomemode) .catalog-page .release-card img { width: 120px; height: 170px; }
  body:not(.welcomemode) .catalog-page .catalog-toolbar .searchbar { display: flex; flex-wrap: wrap; gap: 8px; }
  body:not(.welcomemode) .catalog-page .catalog-list-heading { flex: 1 1 100%; }
  body:not(.welcomemode) .catalog-page .catalog-toolbar .searchbar select { flex: 1; width: auto; min-width: 140px; max-width: none; font-size: 12px; }
  body:not(.welcomemode) .catalog-page .catalog-view-switch { margin-left: auto; }
  body:not(.welcomemode) .catalog-page .catalog-view-switch button { min-width: 50px; padding: 8px; }
  body:not(.welcomemode) .catalog-page .catalog-viewbar { padding: 7px 0; }
  body:not(.welcomemode) .catalog-page .chips { flex-wrap: wrap; gap: 3px; }
  body:not(.welcomemode) .catalog-page .chips button { padding: 7px 9px; }
  body:not(.welcomemode) .catalog-page .connectionbar { align-items: flex-start; flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  body:not(.welcomemode) .catalog-page .connectionmeta { width: 100%; justify-content: space-between; }
  body:not(.welcomemode) .catalog-page .publication-image { height: 256px; }
  body:not(.welcomemode) .catalog-page .publication-image img { max-height: 214px; }
  body:not(.welcomemode) .catalog-page .publication-card h3 { font-size: 14px; min-height: 40px; max-height: 60px; }
  body:not(.welcomemode) .catalog-page .publication-series { font-size: 10px; }
  body:not(.welcomemode) .catalog-page .publication-pricing { gap: 4px 8px; }
  body:not(.welcomemode) .catalog-page .publication-price { font-size: 22px; }
  body:not(.welcomemode) .catalog-page .publication-card .qtyinput { width: 52px; flex-basis: 52px; font-size: 16px; }
  body:not(.welcomemode) .catalog-page .publication-card .productfoot button[data-action="add"] { font-size: 13px; }
  body:not(.welcomemode) .pagehead h1 { font-size: 26px; }
  body:not(.welcomemode) .pagehead p { font-size: 12px; }
  body:not(.welcomemode) .preview-banner { padding: 6px 12px; }
  body:not(.welcomemode) footer { padding: 16px 12px 80px; }
  body:not(.welcomemode) #toast { bottom: 76px; }
  body:not(.welcomemode) .mobile-nav { display: grid; z-index: 35; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 5px 7px max(5px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e0e5e7; }
  body:not(.welcomemode) .mobile-nav a { min-height: 44px; font-size: 10px; color: #627181; }
  body:not(.welcomemode) .mobile-nav a[aria-current] { background: #eef2f5; color: #173956; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.welcomemode) :is(.publication-card.product, .release-card) { transition: none; }
}

/* Soft iPhone-inspired navigation surfaces; the catalog remains the focus. */
body:not(.welcomemode) {
  --chrome-blue: #1456b8;
  --chrome-purple: #6443a8;
  --chrome-teal: #126b65;
  --chrome-text: #26374e;
  --chrome-muted: #536379;
  --chrome-line: #dce3ef;
  --chrome-surface: #f7f9ff;
  --bg: #f3f5fb;
  background: radial-gradient(ellipse at 7% 0, #e6edff 0, transparent 40%), radial-gradient(ellipse at 96% 14%, #eeebfa 0, transparent 34%), #f3f5fb;
}
body:not(.welcomemode) .shell > .portal-header {
  background: #ffffffed;
  border-bottom: 1px solid #ffffff;
  box-shadow: 0 4px 20px #37578008;
}
body:not(.welcomemode) #global-search {
  border-color: #dce4f1;
  border-radius: 16px;
  background: #edf1f8;
  box-shadow: inset 0 1px 2px #2a4b7105, 0 1px 0 #fff;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
body:not(.welcomemode) #global-search:focus {
  background: #fff;
  border-color: #7a9dd9;
  box-shadow: 0 0 0 3px #2571d313;
}
body:not(.welcomemode) .portal-global-search > button { border-radius: 0 15px 15px 0; border-left-color: #dce4f1; color: var(--chrome-blue); font-weight: 600; }
body:not(.welcomemode) .header-favorites { border-radius: 15px; color: #9a3656; background: #fff0f5; }
body:not(.welcomemode) .header-favorites > span { border-radius: 8px; background: #f6dfe8; color: #802c4b; }
body:not(.welcomemode) .portal-header .cartbutton {
  border: 1px solid #1c5ec4;
  border-radius: 15px;
  background: linear-gradient(145deg, #246bce, #1750ad);
  box-shadow: 0 4px 10px #2568c424, inset 0 1px 0 #ffffff30;
}
body:not(.welcomemode) .portal-header .cartbutton > span { border-radius: 8px; background: #123f8e; }
body:not(.welcomemode) .header-account .avatar { border-radius: 13px; background: #f0edfb; border-color: #ded8ee; color: var(--chrome-purple); }

/* Rounded segmented navigation; links and route semantics are unchanged. */
body:not(.welcomemode) #sidebar {
  top: 80px;
  width: calc(100% - 40px);
  margin: 8px 20px 0;
  padding: 5px;
  border: 1px solid #ffffff;
  border-radius: 22px;
  background: #f9faffed;
  box-shadow: 0 6px 24px #294d7c0b, inset 0 0 0 1px #dce4f58c;
  scrollbar-width: thin;
  scrollbar-color: #bfcce0 transparent;
}
body:not(.welcomemode) #nav { height: 48px; gap: 5px; padding: 0; }
body:not(.welcomemode) #nav a {
  min-height: 44px;
  height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--chrome-muted);
  font: 500 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
body:not(.welcomemode) #nav a[href="#yeniler"] { color: var(--chrome-purple); background: #eeebfa; }
body:not(.welcomemode) #nav a[href="#hizli"] { color: var(--chrome-teal); background: #e7f4ef; }
body:not(.welcomemode) #nav a[href="#destek"] { color: #80501e; background: #fcf0df; }
body:not(.welcomemode) #nav a:hover { border-color: #d5e0f0; background: #e8eefb; color: var(--chrome-blue); }
body:not(.welcomemode) #nav a.active,
body:not(.welcomemode) #nav a[aria-current="page"] {
  border-color: #1b5dbd;
  background: linear-gradient(145deg, #276bd0, #1853b1);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 3px 9px #2663bd24, inset 0 1px 0 #ffffff35;
}
body:not(.welcomemode) #nav .logout { padding: 10px 14px; border-radius: 14px; color: var(--chrome-muted); }
body:not(.welcomemode) #nav .logout:hover { background: #f0eaf3; color: #794167; }
body:not(.welcomemode) #nav :is(a, button):focus-visible { outline: 2px solid #174eab; outline-offset: -3px; }
body:not(.welcomemode) #nav a.active:focus-visible { outline-color: #fff; }

/* Inset category groups echo the grouped lists in iPhone settings. */
body:not(.welcomemode) .catalog-page .catalog-categories {
  top: 156px;
  max-height: calc(100dvh - 172px);
  padding: 16px 10px 12px;
  border: 1px solid #ffffff;
  border-radius: 22px;
  background: #f7f9ff;
  color: var(--chrome-text);
  box-shadow: 0 8px 28px #284e7d0b, inset 0 0 0 1px #e0e7f2;
  scrollbar-color: #bbcbe0 transparent;
}
body:not(.welcomemode) .catalog-page .category-heading h2 {
  margin: 0 7px 13px;
  padding: 0;
  border: 0;
  color: var(--chrome-text);
  font: 650 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.2px;
}
body:not(.welcomemode) .catalog-page .category-section { --group-accent: #1456b8; --group-tint: #e7effe; margin-top: 17px; }
body:not(.welcomemode) .catalog-page .category-section:nth-of-type(2) { --group-accent: #6443a8; --group-tint: #efe9fb; }
body:not(.welcomemode) .catalog-page .category-section:nth-of-type(3) { --group-accent: #126b65; --group-tint: #e2f2ee; }
body:not(.welcomemode) .catalog-page .category-section + .category-section { margin-top: 17px; padding-top: 0; border: 0; }
body:not(.welcomemode) .catalog-page .category-section h3 {
  margin: 0 8px 7px;
  color: var(--group-accent);
  font: 650 10px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .7px;
}
body:not(.welcomemode) .catalog-page .category-options {
  border: 1px solid #e1e7f1;
  border-radius: 15px;
  background: #fff;
  overflow: auto;
}
body:not(.welcomemode) .catalog-page .category-option {
  margin: 0;
  min-height: 46px;
  padding: 10px 9px;
  border: 0;
  border-radius: 12px;
  color: #435770;
  background: transparent;
  font: 400 12px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color 150ms ease, color 150ms ease;
}
body:not(.welcomemode) .catalog-page .category-options .category-option { border-radius: 0; }
body:not(.welcomemode) .catalog-page .category-options .category-option + .category-option { border-top: 1px solid #edf0f6; }
body:not(.welcomemode) .catalog-page .category-option > span:last-child {
  min-width: 26px;
  padding: 2px 5px;
  border-radius: 8px;
  color: var(--group-accent, #1456b8);
  background: var(--group-tint, #e7effe);
  font-size: 10px;
  font-weight: 600;
}
body:not(.welcomemode) .catalog-page .category-option:hover { background: var(--group-tint, #e7effe); color: var(--group-accent, #1456b8); }
body:not(.welcomemode) .catalog-page .category-option[aria-pressed="true"] {
  color: var(--group-accent, #1456b8);
  background: var(--group-tint, #e7effe);
  box-shadow: inset 3px 0 0 var(--group-accent, #1456b8);
}
body:not(.welcomemode) .catalog-page .category-option[aria-pressed="true"] > b { font-weight: 700; }
body:not(.welcomemode) .catalog-page .category-all { border-radius: 14px; background: #e9effb; color: #1752ac; }
body:not(.welcomemode) .catalog-page .category-all[aria-pressed="true"] {
  border: 0;
  background: linear-gradient(135deg, #286ac9, #1a52ac);
  color: #fff;
  box-shadow: 0 4px 10px #1d57b020, inset 0 1px 0 #ffffff26;
}
body:not(.welcomemode) .catalog-page .category-all[aria-pressed="true"] > span:last-child { color: #fff; background: #123f8e; }
body:not(.welcomemode) .catalog-page .category-options .category-option:focus-visible { outline: 2px solid var(--group-accent, #1456b8); outline-offset: -3px; }
body:not(.welcomemode) .catalog-page .category-print {
  margin: 16px 0 0;
  padding: 13px 11px 5px;
  border: 1px solid #eddbc7;
  border-radius: 15px;
  background: linear-gradient(140deg, #fff5e9, #fff7f2);
}
body:not(.welcomemode) .catalog-page .category-print > span { color: #80501e; font-size: 10px; }
body:not(.welcomemode) .catalog-page .category-print p { color: #69594c; }
body:not(.welcomemode) .catalog-page .category-print a { color: #80451b; font-weight: 600; }
body:not(.welcomemode) .catalog-page .catalog-view-switch { padding: 3px; border-radius: 13px; background: #e9edf6; border: 1px solid #dce3ef; }
body:not(.welcomemode) .catalog-page .catalog-view-switch button { border: 0; border-radius: 10px; background: transparent; color: #526077; }
body:not(.welcomemode) .catalog-page .catalog-view-switch button[aria-pressed="true"] { color: #1956af; background: #fff; box-shadow: 0 2px 5px #29497015; }
body:not(.welcomemode) .catalog-page .chips button { border-radius: 12px; }
body:not(.welcomemode) .catalog-page .chips button.selected { color: #1857b1; border-color: #cbd9f4; background: #e7effe; }
body:not(.welcomemode) .summary { top: 156px; }

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  body:not(.welcomemode) .shell > .portal-header,
  body:not(.welcomemode) #sidebar {
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
  }
}
@media (max-width: 1023px) {
  body:not(.welcomemode) .catalog-page .catalog-category-toggle {
    padding: 12px 15px;
    border: 1px solid #d6e1f3;
    border-radius: 16px;
    background: #f8faff;
    color: #1a55b0;
    box-shadow: 0 3px 12px #284f8308;
    font-weight: 600;
  }
  body:not(.welcomemode) .catalog-page .catalog-category-toggle > span { color: #536b91; }
  body:not(.welcomemode) .catalog-page .catalog-categories.open {
    inset: 12px 12px 12px auto;
    width: min(330px, calc(100vw - 24px));
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
    border: 1px solid #fff;
    border-radius: 24px;
    background: #f5f7fe;
    box-shadow: 0 20px 70px #20385930, 0 0 0 100vmax #172b4d38;
  }
  body:not(.welcomemode) .catalog-page .category-close { padding: 12px 15px; border: 1px solid #d9e3f5; border-radius: 14px; color: #1956ad; background: #e7eefc; font-weight: 600; }
  body:not(.welcomemode) .catalog-page .catalog-categories.open .category-option { font-size: 14px; min-height: 48px; }
}
@media (max-width: 760px) {
  body:not(.welcomemode) .shell > .portal-header { padding-left: 12px; padding-right: 12px; }
  body:not(.welcomemode) #global-search { font-size: 16px; }
  body:not(.welcomemode) #sidebar { top: 126px; width: calc(100% - 24px); margin: 6px 12px 0; padding: 4px; border-radius: 19px; }
  body:not(.welcomemode) #nav { height: 48px; gap: 4px; }
  body:not(.welcomemode) #nav a { padding: 10px 14px; border-radius: 14px; font-size: 12px; }
  body:not(.welcomemode) .header-account .avatar { border-radius: 11px; }
  body:not(.welcomemode) .mobile-nav {
    inset: auto 10px max(8px, env(safe-area-inset-bottom)) 10px;
    width: auto;
    padding: 5px;
    gap: 3px;
    border: 1px solid #d9e3f3;
    border-radius: 20px;
    background: #fbfcff;
    box-shadow: 0 5px 25px #1d427c20;
  }
  body:not(.welcomemode) .mobile-nav a { border-radius: 14px; color: #4e6079; }
  body:not(.welcomemode) .mobile-nav a[aria-current] { background: #e5edfc; color: #1855b0; font-weight: 700; }
  body:not(.welcomemode) footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  body:not(.welcomemode) #toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.welcomemode) :is(#nav a, #global-search, .category-option) { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  body:not(.welcomemode) .shell > .portal-header,
  body:not(.welcomemode) #sidebar { background: #f9faff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  body:not(.welcomemode) #nav a.active,
  body:not(.welcomemode) .catalog-page .category-option[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
}

/* Mobile category navigation: a dedicated left drawer and compact header trigger. */
#menu { display: none; }
.category-drawer-backdrop { position: fixed; inset: 0; z-index: 59; background: #172b4d66; touch-action: none; }
@media (max-width: 1023px) {
  body:not(.welcomemode) .shell > .portal-header { grid-template-columns: 44px 116px minmax(140px, 1fr) auto; gap: 12px; }
  body:not(.welcomemode) #menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 10px; border: 1px solid #d6e1f3; border-radius: 14px; color: #1956af; background: #eaf0fd; cursor: pointer; }
  body:not(.welcomemode) #menu:hover { background: #dfe9fc; }
  body:not(.welcomemode) #menu:active { background: #d2e0fa; }
  body:not(.welcomemode) .portal-header .portal-brand,
  body:not(.welcomemode) .portal-header .portal-brand .portal-logo { width: 116px; }
  body:not(.welcomemode) .catalog-page .catalog-categories.open {
    inset: 0 auto 0 0; width: min(340px, calc(100vw - 36px)); height: 100dvh; max-height: 100dvh;
    padding: max(16px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    border: 0; border-right: 1px solid #dce5f4; border-radius: 0 24px 24px 0; background: #f5f7fe;
    box-shadow: 18px 0 54px #17395630; overscroll-behavior-y: contain; touch-action: pan-y;
    animation: category-drawer-enter .18s ease-out;
  }
  body:not(.welcomemode) .catalog-page .category-close { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-bottom: 18px; }
  body:not(.welcomemode) .catalog-page .category-close span { font-size: 26px; font-weight: 400; line-height: 1; }
}
@media (max-width: 760px) {
  body:not(.welcomemode) .shell > .portal-header { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 8px; }
  body:not(.welcomemode) #menu { grid-column: 1; grid-row: 1; }
  body:not(.welcomemode) .portal-header .portal-brand { grid-column: 2; grid-row: 1; width: 108px; max-width: 100%; }
  body:not(.welcomemode) .portal-header .portal-brand .portal-logo { width: 108px; max-width: 100%; }
  body:not(.welcomemode) .portal-header-actions { grid-column: 3; grid-row: 1; gap: 4px; }
  body:not(.welcomemode) .portal-header .cartbutton { position: relative; width: 44px; min-width: 44px; padding: 10px; }
  body:not(.welcomemode) .portal-header .cartbutton > span { position: absolute; top: 1px; right: 0; min-width: 16px; width: auto; height: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; }
  body:not(.welcomemode) .portal-header .header-account { width: 44px; min-width: 44px; }
}
@keyframes category-drawer-enter { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { body:not(.welcomemode) .catalog-page .catalog-categories.open { animation: none; } }

/* Authenticated product detail: generous cover, account price and a focused order action. */
.product-detail-page { max-width: 1240px; margin: 0 auto; }
.product-detail-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-bottom: 16px; padding: 8px 0; color: #285d9d; font-size: 14px; font-weight: 600; text-decoration: none; }
.product-detail-back:hover { color: #154fbc; text-decoration: underline; text-underline-offset: 4px; }
.product-detail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.product-detail-media { position: relative; min-width: 0; padding: 20px 26px 32px; border: 1px solid #dce4ef; border-radius: 25px; background: #fff; box-shadow: 0 10px 36px #29497008; }
.product-detail-media-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin: 0 -7px 8px; }
.product-detail-new { padding: 7px 11px; border-radius: 9px; background: #eee9fb; color: #6144a0; font-size: 12px; font-weight: 600; }
.product-detail-media .favorite { position: static; display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #dce4ef; border-radius: 14px; background: #fff; color: #59697e; }
.product-detail-media .favorite.on { border-color: #efcbd7; background: #fff0f4; color: #b82f59; }
.product-detail-media .favorite.on svg { fill: currentColor; }
.product-detail-cover { display: block; width: 100%; max-width: 480px; height: clamp(350px, 43vw, 570px); margin: 0 auto; object-fit: contain; object-position: center; }
.product-detail-info { min-width: 0; padding: 8px 0; }
.product-detail-kicker { margin: 0 0 12px; color: #5b6e8a; font-size: 12px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.product-detail-info h1 { margin: 0 0 25px; color: #213c5e; font-size: clamp(24px, 2.25vw, 34px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.product-detail-pricebox { padding: 20px 22px; border: 1px solid #d9e5fa; border-radius: 19px; background: linear-gradient(120deg, #edf4ff, #f4f3ff); }
.product-detail-price-label { display: block; margin-bottom: 6px; color: #466184; font-size: 13px; font-weight: 500; }
.product-detail-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 16px; }
.product-detail-price-row strong { color: #174b98; font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.3; }
.product-detail-price-row del { color: #64738a; font-size: 17px; }
.product-detail-discount { display: inline-block; margin-top: 12px; padding: 6px 10px; border: 1px solid #d1dff7; border-radius: 9px; background: #fff9; color: #365f9f; font-size: 12px; font-weight: 600; }
.product-detail-stock { display: flex; align-items: center; gap: 8px; margin: 21px 0 18px; color: #23725e; font-size: 13px; font-weight: 500; }
.product-detail-stock > span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.product-detail-stock.unavailable { color: #ae3b4f; }
.product-detail-stock.low { color: #9b5d1f; }
.product-detail-stock.pending { color: #667489; }
.product-detail-purchase { display: flex; align-items: end; gap: 12px; }
.product-detail-quantity { display: grid; flex: 0 0 100px; gap: 6px; margin: 0; color: #53657e; font-size: 12px; font-weight: 500; }
.product-detail-quantity input { width: 100%; height: 52px; min-width: 0; margin: 0; padding: 12px; border: 1px solid #ccd9e8; border-radius: 13px; background: #fff; color: #203d5c; font-size: 16px; text-align: center; }
.product-detail-purchase .product-detail-add { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 18px; border: 1px solid #235abb; border-radius: 13px; background: linear-gradient(145deg, #2c71d3, #2059b6); color: #fff; font-size: 15px; font-weight: 600; }
.product-detail-purchase .product-detail-add:hover:not(:disabled) { background: #1c54b2; }
.product-detail-purchase .product-detail-add:disabled { border-color: #d6deea; background: #e4e9f1; color: #6c7c92; cursor: not-allowed; }
.product-detail-cart-count { min-height: 20px; margin: 8px 0 0; color: #276a58; font-size: 12px; }
.product-detail-price-context { margin: 10px 0 24px; color: #66758a; font-size: 12px; line-height: 1.7; }
.product-detail-specs { padding-top: 22px; border-top: 1px solid #dce3ed; }
.product-detail-specs h2 { margin: 0 0 13px; color: #344d6b; font-size: 15px; font-weight: 600; }
.product-detail-specs dl { margin: 0; }
.product-detail-specs dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid #e7ebf3; font-size: 13px; line-height: 1.55; }
.product-detail-specs dt { color: #69798e; }
.product-detail-specs dd { margin: 0; color: #2b4464; font-weight: 500; overflow-wrap: anywhere; }
.product-detail-empty { max-width: 760px; margin: 12px auto 0; border-radius: 24px; }
.product-detail-empty h1 { font-size: 24px; line-height: 1.35; }
.product-detail-empty .loadingtrack { margin-top: 24px; }
.publication-card .product-detail-link { color: inherit; text-decoration: none; }
.publication-card h3 .product-detail-link:hover, .catalog-name .product-detail-link:hover { color: #2057ad; text-decoration: underline; text-underline-offset: 3px; }
.catalog-cover .product-detail-link { display: inline-flex; align-items: center; min-height: 44px; }
.catalog-name .product-detail-link { display: inline; color: inherit; text-decoration: none; }
.product-detail-page :is(a, button, input):focus-visible,
.product-detail-link:focus-visible { outline: 3px solid #316bd2; outline-offset: 3px; }
@media (max-width: 760px) {
  .product-detail-back { margin-bottom: 10px; }
  .product-detail { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .product-detail-media { padding: 12px 20px 24px; border-radius: 21px; }
  .product-detail-media-top { margin-bottom: 0; }
  .product-detail-cover { height: clamp(290px, 80vw, 430px); }
  .product-detail-info { padding: 0; }
  .product-detail-info h1 { margin-bottom: 19px; font-size: 24px; }
  .product-detail-pricebox { padding: 18px; border-radius: 17px; }
  .product-detail-price-row strong { font-size: 32px; }
  .product-detail-quantity { flex-basis: 90px; }
  .product-detail-specs dl > div { grid-template-columns: 94px minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-detail-page :is(a, button, input) { transition: none; }
}

/* Keep shared legacy product/button rules from flattening the detail layout. */
body:not(.welcomemode) .product-detail-page .product-detail {
  border: 0; border-radius: 0; background: transparent; overflow: visible; box-shadow: none;
}
body:not(.welcomemode) .product-detail-info {
  padding: 24px; border: 1px solid #dce4ef; border-radius: 25px; background: #fff;
}
body:not(.welcomemode) .product-detail-media .favorite {
  width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 10px;
  border-radius: 14px;
}
body:not(.welcomemode) .product-detail-purchase .product-detail-add {
  min-height: 52px; border-color: #235abb; border-radius: 13px;
  background: linear-gradient(145deg, #2c71d3, #2059b6); color: #fff;
  font-size: 15px; font-weight: 600;
}
body:not(.welcomemode) .product-detail-purchase .product-detail-add:hover:not(:disabled) { background: #1c54b2; }
body:not(.welcomemode) .product-detail-purchase .product-detail-add:disabled { border-color: #d6deea; background: #e4e9f1; color: #6c7c92; opacity: 1; }
@media (max-width: 760px) {
  body:not(.welcomemode) .product-detail-info { padding: 20px 18px; border-radius: 21px; }
}
