/* Yün Cenneti — shared design tokens & global layout
   Renk paleti Stitch tasarım sisteminden (design.zip) türetilmiştir. */

:root {
  --primary: #03192e;
  --primary-soft: #1a2e44;
  --secondary: #645d53;
  --accent: #b4854a;

  --surface: #fbf9f7;
  --surface-soft: #f5f3f1;
  --surface-strong: #efedec;

  --outline: #c4c6cd;
  --outline-soft: #e4e2e0;

  --subtle: #43474d;
  --muted: #706f6c;

  --danger: #d9534f;
  --success: #5cb85c;
  --swatch: #e4e2e0;

  --shadow: 0 10px 30px rgba(26, 46, 68, 0.08);

  --page: 5vw;
}

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--surface);
  color: var(--primary);
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Playfair Display", serif;
  color: var(--primary);
}

p {
  margin: 0;
  color: var(--subtle);
}

button {
  font-family: inherit;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  padding: 0;
}

/* Page shell */
.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-shell main {
  flex: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--page);
  background: var(--surface);
  box-shadow: 0 1px 0 var(--outline-soft);
}

.site-header .brand {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.site-header .main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--subtle);
  transition: color 0.2s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.is-active {
  color: var(--primary);
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.site-header .search-box input {
  width: 100%;
  min-width: 180px;
  border: 1px solid var(--outline-soft);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 8px 16px 8px 36px;
  font-size: 0.85rem;
  color: var(--primary);
}

.site-header .search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.site-header .search-box .material-symbols-outlined {
  position: absolute;
  left: 10px;
  color: var(--muted);
  font-size: 20px;
}

.site-header .icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--subtle);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header .icon-button:hover {
  background: var(--surface-strong);
  color: var(--primary);
}

@media (max-width: 860px) {
  .site-header .main-nav {
    display: none;
  }

  .site-header .search-box {
    display: none;
  }
}

/* Buttons */
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.button-primary:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  border-color: var(--outline);
  color: var(--primary);
}

.button-secondary:hover {
  border-color: var(--primary);
  background: var(--surface-soft);
}

/* Section layout */
.page-section {
  padding: 56px var(--page);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 4px;
}

.eyebrow {
  display: block;
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(26, 46, 68, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(26, 46, 68, 0.12);
}

.product-card__image {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
  background: var(--surface-soft);
  object-fit: cover;
}

.product-card__meta {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 600;
}

.product-card__body p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.product-card__footer .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

/* Footer */
.site-footer {
  padding: 32px var(--page);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--outline-soft);
}
