/* NEXORA MOBİL PARÇA — site stilleri */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Tek marka rengi: değiştirmek için bu üç satır yeterli. */
  --brand: #0f7a5a;
  --brand-strong: #0b5f46;
  --brand-tint: #e7f2ee;

  --ink: #17211d;
  --ink-soft: #4b5953;
  --line: #d7dfdb;
  --line-strong: #84928b;
  --surface: #ffffff;
  --surface-alt: #f3f6f4;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --gutter: 1.25rem;

  --color-transition: 150ms ease;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Temel ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  accent-color: var(--brand);
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--color-transition);
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 1.4rem + 3.4vw, 3.75rem);
  font-weight: 750;
  font-stretch: 80%;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  font-weight: 700;
  font-stretch: 87.5%;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 650;
}

.container {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}

.lead {
  max-width: 46ch;
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-soft);
}

.note {
  max-width: 70ch;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* --- Üst bölüm ------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  font-size: 1.625rem;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 0.5rem;
  height: 1.375rem;
  background: var(--brand);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 3.5rem;
  border-block: 2px solid transparent;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--color-transition), border-color var(--color-transition);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--brand);
  color: var(--brand);
}

@media (max-width: 39.99rem) {
  .site-nav {
    flex-basis: 100%;
  }

  .site-nav ul {
    justify-content: space-between;
    gap: 0 0.75rem;
  }

  .site-nav a {
    min-height: 2.75rem;
    font-size: 0.9375rem;
  }
}

@media (max-width: 22.49rem) {
  .site-nav ul {
    gap: 0 0.5rem;
  }

  .site-nav a {
    font-size: 0.875rem;
  }
}

/* --- Düğmeler ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--color-transition),
    border-color var(--color-transition),
    color var(--color-transition),
    transform 120ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

/* --- Ana sayfa: giriş ----------------------------------------------------- */

.hero {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  max-width: 15ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-figure {
  display: none;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface-alt);
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .hero-figure {
    display: block;
  }
}

.diagram {
  width: 100%;
}

.d-part {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 2;
}

.d-area {
  fill: var(--surface-alt);
  stroke: var(--line-strong);
  stroke-width: 1.25;
}

.d-notch {
  fill: var(--surface);
  stroke: var(--line-strong);
  stroke-width: 1.25;
}

.d-shine {
  fill: none;
  stroke: var(--surface);
  stroke-width: 5;
  stroke-linecap: round;
}

.d-flex {
  fill: var(--brand-tint);
  stroke: var(--brand);
  stroke-width: 1.5;
}

.d-solid {
  fill: var(--ink);
}

.d-mute {
  fill: var(--line-strong);
}

.d-accent {
  fill: var(--brand);
}

.d-seam,
.d-leader {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.25;
}

.d-leader {
  stroke: var(--ink-soft);
  stroke-width: 1;
}

.d-dot {
  fill: var(--ink-soft);
}

.d-label {
  font-size: 15px;
  font-weight: 550;
  font-stretch: 87.5%;
  fill: var(--ink-soft);
}

/* --- Bölümler ------------------------------------------------------------- */

.section {
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.75rem;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.section-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
}

.split {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

.prose {
  max-width: 62ch;
}

.prose p + p {
  margin-top: 1rem;
}

/* --- Kategoriler ---------------------------------------------------------- */

.category-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 44rem) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.category {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--color-transition);
}

.category img {
  width: 100%;
  border-radius: 4px;
  background: var(--surface-alt);
}

.category h3 {
  font-size: 1.375rem;
  font-weight: 700;
  font-stretch: 87.5%;
}

.category-desc {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
}

.category-meta {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.category-link {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}

@media (min-width: 60rem) {
  .category {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 1.75rem;
    padding: 1.5rem;
  }
}

/* --- Ürün kartları -------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.product {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-media {
  border-radius: 4px;
  background: var(--surface-alt);
}

.product-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.product-name {
  line-height: 1.3;
}

.product-meta {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.product-desc {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Kartın alt bölümü: varsa fiyat/stok satırı ve WhatsApp düğmesi. */
.product-end {
  display: grid;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.product-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
}

.product-action {
  min-height: 2.75rem;
  padding-inline: 1rem;
  font-size: 0.9375rem;
}

.product-price {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.product-stock {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

.product-stock.is-out {
  color: var(--ink-soft);
}

@media (min-width: 36rem) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: stretch;
  }

  .product-body {
    display: flex;
    flex-direction: column;
  }

  .product-end {
    margin-top: auto;
    padding-top: 0.875rem;
  }
}

@media (min-width: 56rem) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- Katalog sayfaları ---------------------------------------------------- */

.page-head {
  padding-top: clamp(2rem, 1.5rem + 3vw, 3.5rem);
}

.catalog {
  padding-bottom: clamp(3rem, 2rem + 5vw, 5.5rem);
}

.filters {
  display: grid;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--line);
}

@media (min-width: 36rem) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 20rem));
  }
}

.filter-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 650;
}

/* Açılır liste: 25 marka ve yüzlerce modelde de tek satır yer tutar. */
.select {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0 2.75rem 0 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2317211d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
  font: inherit;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
  transition: border-color var(--color-transition);
}

.select:disabled {
  background-color: var(--surface-alt);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.status {
  margin-block: 1.5rem;
  color: var(--ink-soft);
}

.result-count {
  margin-block: 1.5rem 1rem;
  font-weight: 600;
}

/* --- İletişim ------------------------------------------------------------- */

.contact-list {
  display: grid;
  gap: 1.5rem 2.5rem;
}

@media (min-width: 36rem) {
  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-item dt {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.contact-item svg {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item dd {
  margin-top: 0.25rem;
  padding-left: 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Dokunma alanı yerleşimi değiştirmeden 44px'e tamamlanır. */
.contact-item a {
  display: inline-block;
  padding-block: 0.5625rem;
  margin-block: -0.5625rem;
  color: var(--ink);
}

/* --- Alt bölüm ------------------------------------------------------------ */

.site-footer {
  padding-block: 2.5rem 1.5rem;
  background: var(--ink);
  color: #d5ddd9;
}

.site-footer :focus-visible {
  outline-color: #fff;
}

.footer-inner {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 48rem) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr);
  }
}

.footer-brand {
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: 0.01em;
  color: #fff;
}

.footer-about {
  max-width: 32ch;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.footer-nav a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  overflow-wrap: anywhere;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  font-size: 0.875rem;
}

/* --- 404 ------------------------------------------------------------------ */

.notfound {
  padding-block: clamp(3rem, 2rem + 8vw, 7rem);
}

.notfound .hero-actions {
  margin-top: 2rem;
}

/* --- Etkileşim: yalnız fare ile hover; azaltılmış hareket ----------------- */

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    color: var(--brand);
  }

  .btn-primary:hover {
    background: var(--brand-strong);
  }

  .btn-secondary:hover,
  .select:not(:disabled):hover {
    border-color: var(--ink);
  }

  .category:hover {
    border-color: var(--brand);
  }

  .category:hover .category-link,
  .site-footer a[href]:hover {
    text-decoration: underline;
  }

  .section-links a:hover,
  .note a:hover,
  .contact-item a[href]:hover {
    color: var(--brand-strong);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition-property: background-color, border-color, color;
  }

  .btn:active {
    transform: none;
  }
}
