/* Ortak ekler ve ödeme sayfası */
/* --- sunucu sürümü eklemeleri --- */
html {
  color-scheme: light;
}
body {
  margin: 0;
}
img {
  max-width: 100%;
}
.prod-img img,
.col-img img,
.line .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.prod-img {
  overflow: hidden;
}
.stock-note {
  font-size: 12px;
  color: var(--sale);
  font-weight: 600;
}
.cat-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 6px 5px 12px;
  margin-top: 8px;
}
.cat-filter button {
  border: 0;
  background: var(--line);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  line-height: 1;
}
.drawer-foot .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ödeme sayfası */
.co {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
  padding-block: 36px 56px;
}
.co h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 6px;
}
.co .sub {
  color: var(--muted);
  margin: 0 0 22px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.f {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.f.full {
  grid-column: 1/-1;
}
.f label {
  font-size: 13px;
  font-weight: 600;
}
.f input,
.f select,
.f textarea {
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
  width: 100%;
}
.f input:focus,
.f select:focus,
.f textarea:focus {
  border-color: var(--iznik);
  outline: none;
}
.f small {
  color: var(--muted);
  font-size: 12px;
}
.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  display: grid;
  gap: 12px;
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 130px);
}
.summary h2 {
  font-size: 20px;
}
.sline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.sline span:first-child {
  min-width: 0;
}
.sline.total {
  font-weight: 700;
  font-size: 17px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.err {
  background: color-mix(in srgb, var(--sale) 12%, transparent);
  color: var(--sale);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
}
.pay-btn {
  width: 100%;
  justify-content: center;
  background: var(--iznik);
  color: var(--iznik-ink);
  margin-top: 6px;
}
.pay-closed {
  background: color-mix(in srgb, var(--saffron) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--saffron) 45%, transparent);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
}
.pay-closed a {
  color: inherit;
  text-decoration: underline;
}
.terms-links {
  font-size: 12.5px;
  margin: -4px 0 0 28px;
}
.terms-links a {
  color: var(--iznik);
  text-decoration: underline;
}
[dir='rtl'] .terms-links {
  margin: -4px 28px 0 0;
}
.pay-btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.secure {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}
.terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}
.terms input {
  margin-top: 3px;
}
.result {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding-block: 64px;
}
.result .mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 30px;
  font-weight: 700;
}
.result .mark.ok {
  background: color-mix(in srgb, #2e8b57 18%, transparent);
  color: #2e8b57;
}
.result .mark.wait {
  background: color-mix(in srgb, var(--saffron) 22%, transparent);
  color: var(--fg);
}
.result .mark.no {
  background: color-mix(in srgb, var(--sale) 18%, transparent);
  color: var(--sale);
}
.result h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 10px;
}
.result p {
  color: var(--muted);
}
.result .code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  background: var(--surface);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
}
@media (max-width: 820px) {
  .co {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
}
@media (max-width: 480px) {
  .fields {
    grid-template-columns: 1fr;
  }
}
