:root {
  color-scheme: light;
  --ink: #181817;
  --muted: #6c675f;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #ded8ce;
  --green: #0b5148;
  --coral: #c55a3d;
  --navy: #14385f;
  --plum: #78345c;
  --sand: #efe7d8;
  --shadow: 0 18px 42px rgba(21, 18, 14, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#koleksiyonlar,
#urunler {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 16px;
  padding: 10px 12px;
  position: fixed;
  top: -60px;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(24, 24, 23, 0.08);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr;
  left: 0;
  padding: 14px 32px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 180px;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.main-nav a {
  color: #36322d;
  font-size: 14px;
}

.primary-action,
.filter-tabs button,
.product-card button,
.thumb-row button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero {
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.hero-media,
.hero-media img,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 18, 15, 0.76) 0%, rgba(13, 18, 15, 0.48) 46%, rgba(13, 18, 15, 0.08) 100%),
    linear-gradient(0deg, rgba(13, 18, 15, 0.42) 0%, rgba(13, 18, 15, 0) 42%);
}

.hero-content {
  color: #fff;
  max-width: 680px;
  padding: 120px 32px 88px;
  position: relative;
}

.eyebrow {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd0bd;
}

.hero h1 {
  font-size: 68px;
  line-height: 0.98;
  margin: 0 0 18px;
}

.hero p {
  font-size: 18px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action {
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
}

.primary-action:hover,
.product-card button:hover {
  transform: translateY(-1px);
}

.section,
.catalog-section {
  padding: 72px 32px;
}

.section-heading {
  margin: 0 auto 28px;
  max-width: 1180px;
}

.section-heading h2,
.catalog-toolbar h2 {
  font-size: 36px;
  line-height: 1.08;
  margin: 0;
}

.collection-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.collection-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 280px;
  overflow: hidden;
  position: relative;
}

.collection-card img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.collection-card::after {
  background: linear-gradient(0deg, rgba(13, 18, 15, 0.72), rgba(13, 18, 15, 0.04));
  content: "";
  inset: 0;
  position: absolute;
}

.collection-card div {
  bottom: 0;
  color: #fff;
  padding: 22px;
  position: absolute;
  z-index: 1;
}

.collection-card h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.collection-card p {
  margin: 0;
}

.catalog-section {
  background: #f3efe7;
}

.catalog-toolbar {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 1.4fr);
  margin: 0 auto 18px;
  max-width: 1180px;
}

.catalog-controls {
  display: grid;
  gap: 14px;
}

.search-control {
  display: grid;
  gap: 7px;
}

.search-control span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-control input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 46px;
  outline: none;
  padding: 0 14px;
}

.search-control input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 81, 72, 0.14);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  background: transparent;
  border-color: #cfc7ba;
  color: #38332c;
  min-height: 38px;
  padding: 8px 12px;
}

.filter-tabs button[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.results-line {
  color: var(--muted);
  margin: 0 auto 18px;
  max-width: 1180px;
}

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.product-card {
  background: var(--surface);
  border: 1px solid rgba(24, 24, 23, 0.09);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
}

.product-media {
  background: var(--sand);
  border: 0;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  width: 100%;
}

.product-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-badge {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  left: 10px;
  padding: 5px 9px;
  position: absolute;
  top: 10px;
}

.product-copy {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.product-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card h3 {
  font-size: 19px;
  line-height: 1.2;
  margin: 0;
}

.product-card p {
  color: var(--muted);
  margin: 0;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.swatch {
  border: 1px solid rgba(24, 24, 23, 0.18);
  border-radius: 999px;
  height: 18px;
  width: 18px;
}

.product-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin-top: 4px;
}

.product-actions button {
  background: #f4f1eb;
  border-color: #dad2c5;
  color: var(--ink);
  min-height: 40px;
  padding: 8px 10px;
}

.product-actions button {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 26px 32px;
}

.site-footer p {
  margin: 0;
}

.modal {
  background: rgba(10, 10, 10, 0.42);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 80;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-copy .detail-list div {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.plain-icon {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}


.modal {
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 90vh;
  max-width: 1040px;
  overflow: auto;
  position: relative;
  width: min(100%, 1040px);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 1;
}

.modal-layout {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(300px, 1.05fr) minmax(280px, 0.95fr);
  padding: 26px;
}

.modal-gallery > img {
  background: var(--sand);
  border-radius: var(--radius);
  height: clamp(360px, 58vh, 620px);
  object-fit: cover;
  width: 100%;
}

.thumb-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 10px;
}

.thumb-row button {
  background: transparent;
  border: 2px solid transparent;
  min-height: auto;
  padding: 0;
}

.thumb-row button[aria-current="true"] {
  border-color: var(--green);
}

.thumb-row img {
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.modal-copy {
  align-content: start;
  display: grid;
  gap: 18px;
  padding: 44px 8px 8px;
}

.modal-copy h2 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
}

.modal-copy p {
  color: var(--muted);
  margin: 0;
}

.detail-list {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-list dd {
  margin: 0;
  text-align: right;
}

body.modal-lock {
  overflow: hidden;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar,
  .modal-layout {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-copy {
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: 96px 18px 64px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 16px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .section,
  .catalog-section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section,
  .catalog-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .section-heading h2,
  .catalog-toolbar h2 {
    font-size: 30px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 12px;
  }

  .modal-layout {
    padding: 16px;
  }

  .modal-gallery > img {
    height: 52vh;
    min-height: 300px;
  }

  .thumb-row {
    grid-template-columns: repeat(4, 1fr);
  }
}
