/*
Theme Name: Danehane
Author: Danehane
Description: El yapımı tesbih vitrini. Koyu editorial atölye. Ödeme almaz; sipariş notu tarayıcıda kalır.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: danehane
*/

:root {
  --ink: #0c0b0a;
  --ink-2: #161410;
  --paper: #f4f1ea;
  --muted: #a3988c;
  --line: #2a2622;
  --accent: #c45c3e;
  --display: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Avenir Next", system-ui, sans-serif;
  --wrap: 72rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
  background: var(--ink);
  color: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--ink);
  color: var(--paper);
}

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 560; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--paper); }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand { display: block; }
.brand-name { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.brand-kicker {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.875rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .count { margin-left: 0.5rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 0 6rem;
}
.site-footer p { margin-top: 0.5rem; max-width: 20rem; color: var(--muted); font-size: 0.875rem; }
.foot-links { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.foot-links a:hover { color: var(--accent); }
@media (min-width: 640px) {
  .site-footer .wrap { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted { color: var(--muted); }
.lead { max-width: 28rem; color: var(--muted); line-height: 1.6; }

.hero {
  display: grid;
  gap: 2rem;
  align-items: end;
  padding: 2.5rem 0 3rem;
}
.hero-copy { order: 2; }
.hero h1 { margin-top: 1rem; font-size: clamp(2.6rem, 6vw, 3.75rem); line-height: 1.05; }
.hero .lead { margin-top: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-fig { order: 1; }
.hero-fig img, .split img, .frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.caption {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.caption a:hover { color: var(--paper); }
@media (min-width: 800px) {
  .hero { grid-template-columns: 5fr 7fr; gap: 3rem; padding: 4rem 0; }
  .hero-copy { order: 1; }
  .hero-fig { order: 2; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.875rem;
}
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { background: var(--paper); color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--paper); }
.btn-ghost:hover, .btn-ghost[aria-pressed="true"], .chip[aria-pressed="true"] {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.btn-block { width: 100%; }

.band { border-top: 1px solid var(--line); padding: 3rem 0; }
@media (min-width: 800px) { .band { padding: 4rem 0; } }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.band-head h2, .page-title { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.band-head a { font-size: 0.875rem; color: var(--muted); }
.band-head a:hover { color: var(--paper); }

.cards {
  display: grid;
  gap: 2.5rem 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--ink-2); }
.card-meta, .card-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.card-meta { margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted); }
.card-title { margin-top: 0.25rem; }
.card-title h2, .card-title h3 { font-size: 1.5rem; }
.card:hover h2, .card:hover h3 { color: var(--accent); }
.price { font-variant-numeric: tabular-nums; font-size: 0.875rem; white-space: nowrap; }
.card .lead-sm { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }

.split { display: grid; gap: 2rem; }
.split h2 { margin-top: 0.75rem; font-size: clamp(2rem, 4vw, 2.5rem); }
.split p + p { margin-top: 1rem; }
@media (min-width: 800px) {
  .split { grid-template-columns: 7fr 5fr; align-items: center; }
}

.materials { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.materials li {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.materials strong { font-family: var(--display); font-size: 1.5rem; font-weight: 560; }
.materials span { color: var(--muted); font-size: 0.875rem; }
@media (min-width: 640px) {
  .materials li { grid-template-columns: 1fr 3fr; align-items: baseline; }
}

.page { padding: 2.5rem 0 3.5rem; }
.page h1 { margin-top: 0.75rem; font-size: clamp(2.6rem, 6vw, 3.25rem); }
.page > .lead { margin-top: 1rem; }

.filters { margin-top: 2rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-row + .filter-row { margin-top: 1rem; justify-content: space-between; align-items: center; }
.chip {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-size: 0.875rem;
}
.chip:hover { border-color: var(--paper); }
.sort { min-height: 2.75rem; background: none; border: 0; color: var(--muted); font-size: 0.875rem; }
.sort:hover { color: var(--paper); }

.product {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 3.5rem;
}
.product img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--ink-2); }
.product h1 { margin-top: 0.75rem; font-size: clamp(2.6rem, 6vw, 3.25rem); }
.product .story { margin-top: 1rem; color: var(--muted); line-height: 1.6; }
.bead-row { display: flex; gap: 0.5rem; margin-top: 2rem; }
.product .amount { margin-top: 1.5rem; font-family: var(--display); font-size: 2.4rem; font-variant-numeric: tabular-nums; }
.product .fine { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.added { margin-top: 0.75rem; font-size: 0.875rem; }
.added a { color: var(--accent); }
.added a:hover { color: var(--paper); }
.spec { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 1fr 2fr; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.spec dt { color: var(--muted); }
@media (min-width: 800px) {
  .product { grid-template-columns: 7fr 5fr; align-items: start; padding-top: 3.5rem; }
}

.cart-layout { display: grid; gap: 3rem; margin-top: 2.5rem; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lines li { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.lines img { width: 5rem; aspect-ratio: 3/4; object-fit: cover; }
.line-top { display: flex; justify-content: space-between; gap: 0.75rem; }
.line-top h2 { font-size: 1.5rem; }
.line-top h2:hover { color: var(--accent); }
.qty { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.qty button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
}
.qty button:hover { border-color: var(--paper); }
.qty .n { width: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.linkish { margin-left: auto; background: none; border: 0; color: var(--muted); min-height: 2.75rem; }
.linkish:hover { color: var(--paper); }

.panel { border: 1px solid var(--line); background: var(--ink-2); padding: 1.25rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.panel-head h2 { font-size: 1.5rem; }
.panel .note { margin-top: 0.75rem; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
label.field { display: block; margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }
label.field input, label.field textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}
label.field input { height: 3rem; }
.form-error { margin-top: 0.75rem; color: var(--accent); font-size: 0.875rem; }
.panel .btn { margin-top: 1.25rem; }

.receipt { margin-top: 2rem; }
.receipt-lines { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); font-size: 0.875rem; }
.receipt-lines li, .total-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.total-row { border-bottom: 0; padding-bottom: 0; }
.empty { margin-top: 2.5rem; padding: 3rem 0; border-top: 1px solid var(--line); }
.empty .btn { margin-top: 1.5rem; }

@media (min-width: 1024px) {
  .cart-layout { grid-template-columns: 7fr 5fr; align-items: start; }
}

@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
}
