:root {
  color-scheme: light;
  --ink: #222b21;
  --green: #284634;
  --paper: #fffdf7;
  --line: #e4e5da;
  --muted: #535e53;
  --yellow: #f7e6a3;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
select {
  cursor: pointer;
}

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

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #467451;
  outline-offset: 4px;
}

svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1220px, calc(100% - 72px));
  margin-inline: auto;
}

.topline {
  color: white;
  background: var(--green);
  text-align: center;
  padding: .48rem 1rem;
  font-size: .875rem;
}

header {
  border-bottom: 1px solid var(--line);
}

.head,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.head {
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: Georgia, serif;
  font-size: 1.62rem;
  font-weight: bold;
  letter-spacing: .06em;
  line-height: 1;
}

.brand small {
  display: block;
  font: 650 .72rem/1.2 system-ui;
  letter-spacing: .12em;
  margin-top: .28rem;
}

.brand-mark {
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a:hover,
.foot a:hover,
.footer-col a:hover,
.footer-link-btn:hover {
  text-decoration: underline;
}

.cart-button,
.secondary,
.icon-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .65rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-weight: 650;
}

.cart-button span {
  border-radius: 50%;
  background: #eef1e8;
  padding: .1rem .42rem;
  min-width: 1.4rem;
  font-size: .85rem;
  text-align: center;
}

.hero {
  margin: 30px 0 58px;
  min-height: 425px;
  background: #f8e9ab;
  display: grid;
  grid-template-columns: 1fr 1.09fr;
  border-radius: 24px;
  overflow: hidden;
}

.hero-copy {
  padding: clamp(36px, 6vw, 83px) clamp(28px, 5vw, 70px);
  align-self: center;
}

.hero img {
  height: 100%;
  max-height: 540px;
}

.hero h1,
h2,
h3,
.page h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.65rem, 5.1vw, 5rem);
  letter-spacing: -.065em;
  line-height: .99;
}

.hero h1 em {
  font-weight: 400;
  color: #31513b;
}

.hero p {
  max-width: 32ch;
  margin: 1.25rem 0 1.5rem;
  line-height: 1.6;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: white;
  padding: .76rem 1.27rem;
  font-weight: 650;
  min-height: 44px;
}

.primary:hover:not(:disabled) {
  background: #193426;
}

.primary:disabled,
.secondary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

#katalog {
  scroll-margin-top: 1.5rem;
}

.catalog-heading,
.results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-heading h2 {
  font-size: clamp(2.05rem, 4vw, 3.35rem);
  letter-spacing: -.04em;
}

.catalog-heading p {
  color: var(--muted);
  margin: .32rem 0 0;
}

.search {
  display: flex;
  gap: .55rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: .64rem 1rem;
  width: min(100%, 310px);
}

.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  outline: none;
}

.search:focus-within {
  outline: 2px solid #467451;
  outline-offset: 2px;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
}

.category {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: .54rem .89rem;
  font-size: .9rem;
}

.category[aria-pressed=true] {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.results {
  margin-bottom: 1.1rem;
  color: var(--muted);
}

select {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: .4rem .65rem;
  max-width: 100%;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-image {
  position: relative;
  border: 0;
  background: #f2e9d9;
  padding: 0;
  display: block;
  width: 100%;
  overflow: hidden;
}

.product img {
  aspect-ratio: 1.17;
  transition: transform .25s;
}

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

.product-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}

.product-meta {
  font-size: .875rem;
  color: var(--muted);
  margin: 0 0 .4rem;
}

.product h3 {
  font-size: 1.26rem;
  line-height: 1.2;
  margin-bottom: .9rem;
}

.product h3 button {
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  font: inherit;
}

.product h3 button:hover {
  text-decoration: underline;
}

.buy-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
}

.buy-row .secondary {
  padding: .48rem .65rem;
  font-size: .88rem;
}

.buy-row .secondary:hover:not(:disabled),
.icon-button:hover,
.secondary:hover:not(:disabled) {
  background: #eef1e8;
}

.more {
  margin: 1.8rem auto 0;
  display: flex;
}

.empty {
  grid-column: 1 / -1;
  padding: 2rem 0;
  color: var(--muted);
}

/* Badges & Fiyatlar */
.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 650;
  padding: .2rem .55rem;
  border-radius: 999px;
  line-height: 1.2;
}

.badge-sale {
  background: var(--yellow);
  color: var(--ink);
}

.badge-out {
  background: #ecece4;
  color: var(--muted);
}

.product-badges {
  position: absolute;
  top: .6rem;
  left: .6rem;
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.price-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem;
}

.old-price {
  color: var(--muted);
  font-size: .85rem;
}

/* Kurumsal Bant */
.corporate-band {
  margin-top: 4rem;
  background: #f8e9ab;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.corporate-band h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: -.03em;
}

.corporate-band p {
  margin: .5rem 0 0;
  max-width: 54ch;
  line-height: 1.55;
}

/* Footer */
footer {
  background: #edf0e7;
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  color: var(--green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col strong {
  font: 700 1.55rem Georgia, serif;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 700;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  margin-bottom: .75rem;
}

.footer-col p {
  margin: .4rem 0 .8rem;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}

.footer-contact {
  display: grid;
  gap: .4rem;
  font-size: .95rem;
}

.footer-contact a {
  overflow-wrap: anywhere;
}

.footer-link-btn {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #d7dcd0;
  font-size: .875rem;
  color: var(--muted);
}

/* Dialogs */
dialog {
  width: min(94%, 560px);
  max-height: 88dvh;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
}

dialog::backdrop {
  background: #17241acf;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dialog-head h2 {
  font-size: 1.85rem;
}

.icon-button {
  padding: .5rem;
}

.cart-entry {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: .7rem;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-entry img {
  aspect-ratio: 1;
  border-radius: 8px;
}

.cart-entry p {
  margin: .3rem 0;
  font-size: .9rem;
  color: var(--muted);
}

.cart-entry button {
  font-weight: 650;
  min-width: 32px;
  min-height: 34px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.quantity button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-remove {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.1rem;
  padding: 0 .25rem;
}

.cart-remove:hover {
  color: #9b2c2c;
}

.cart-totals {
  margin: 1rem 0;
  display: grid;
  gap: .45rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .95rem;
}

.total {
  display: flex;
  justify-content: space-between;
  margin: .35rem 0 0;
  padding-top: .55rem;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}

.shipping-hint {
  background: #f8e9ab;
  color: var(--ink);
  border-radius: 10px;
  padding: .55rem .8rem;
  font-size: .88rem;
  margin: .75rem 0 0;
}

/* Detail gallery & options */
.detail-photo {
  max-height: 320px;
  border-radius: 12px;
  background: #f2e9d9;
}

.detail-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
  overflow-x: auto;
  padding-bottom: .25rem;
}

.detail-thumb {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #f2e9d9;
  flex: none;
}

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

.detail-thumb img {
  height: 100%;
}

.detail-desc {
  margin: .85rem 0;
  line-height: 1.6;
}

.detail-desc p {
  margin: 0 0 .65rem;
}

.detail-options {
  display: grid;
  gap: .75rem;
  margin: 1rem 0;
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1rem;
}

.note {
  color: var(--muted);
  line-height: 1.5;
}

.detail-code {
  font-size: .9rem;
  color: var(--muted);
  margin: .75rem 0 0;
}

.empty-cart {
  padding: 1rem 0;
}

/* Forms & Checkout */
.field {
  display: grid;
  gap: .35rem;
  margin-bottom: .85rem;
}

.field > span {
  font-size: .9rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: .62rem .8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 .85rem;
}

.radio-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .9rem;
  margin: 0 0 1rem;
  display: grid;
  gap: .55rem;
}

.radio-group legend {
  font-size: .9rem;
  font-weight: 600;
  padding: 0 .35rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .94rem;
}

.radio-option.disabled {
  color: var(--muted);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .88rem;
  line-height: 1.45;
  margin: .85rem 0 1rem;
}

.consent-check a {
  text-decoration: underline;
  color: var(--green);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1rem;
}

.form-error {
  color: #9b2c2c;
  background: #fdf2f2;
  border: 1px solid #f5c6c6;
  border-radius: 10px;
  padding: .6rem .85rem;
  font-size: .9rem;
  margin: .75rem 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.order-success,
.request-success {
  display: grid;
  gap: .85rem;
  padding: .5rem 0;
}

.order-no-box {
  background: #edf0e7;
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}

.order-no-box span {
  display: block;
  font-size: .85rem;
  color: var(--muted);
}

.order-no-box strong {
  display: block;
  font-size: 1.65rem;
  letter-spacing: .04em;
  color: var(--green);
  margin-top: .25rem;
}

/* Info Pages */
.page {
  padding: 2.5rem 0 1rem;
}

.page h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -.04em;
  margin-bottom: 1.5rem;
}

.prose {
  max-width: 760px;
  line-height: 1.7;
}

.prose h2,
.prose h3 {
  margin: 2rem 0 .75rem;
}

.prose h2 {
  font-size: 1.6rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
  display: grid;
  gap: .4rem;
}

.prose a {
  color: var(--green);
  text-decoration: underline;
}

.prose code {
  background: #eef1e8;
  padding: .1rem .35rem;
  border-radius: 6px;
  font-size: .9em;
}

.contact-card,
.card-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem;
  margin-top: 1.5rem;
}

.contact-card h2 {
  margin-top: 0;
}

#toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 999px;
  max-width: calc(100% - 24px);
  width: max-content;
  z-index: 2;
}

#toast:empty {
  display: none;
}

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

  .hero {
    min-height: 350px;
  }

  .hero-copy {
    padding: 2rem;
  }

  .shell {
    width: calc(100% - 48px);
  }

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

@media (max-width: 690px) {
  .shell {
    width: calc(100% - 28px);
  }

  .head {
    min-height: 67px;
  }

  .head nav {
    display: none;
  }

  .brand {
    font-size: 1.3rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    font-size: .63rem;
  }

  .cart-button {
    padding: .45rem .65rem;
  }

  .hero {
    grid-template-columns: 1fr;
    margin: 18px 0 36px;
    min-height: 0;
  }

  .hero img {
    height: 240px;
  }

  .hero-copy {
    padding: 1.75rem 1.3rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 9.2vw, 4rem);
  }

  .catalog-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-copy {
    padding: .7rem;
  }

  .product h3 {
    font-size: 1.12rem;
  }

  .buy-row {
    align-items: flex-start;
    flex-direction: column;
    gap: .6rem;
  }

  .buy-row .secondary {
    min-height: 39px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
