:root {
  color-scheme: light;
  --paper: #fffafb;
  --text: #2c1722;
  --muted: #6e4f5d;
  --line: #eed5df;
  --brand: #a5194e;
  --blush: #f9e7ee;
  font: 16px/1.5 system-ui, sans-serif;
  background: #fcf5f8;
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
header { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar, main { width: min(56rem, calc(100% - 2rem)); margin: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { color: var(--text); text-decoration: none; font: 700 1.25rem Georgia, serif; }
.brand span { display: block; margin-top: .15rem; color: var(--brand); font: 650 .72rem system-ui, sans-serif; }
main { padding-block: clamp(1rem, 4vw, 2.5rem); }
h1 { margin: 0; font: 700 clamp(1.7rem, 5vw, 2.25rem)/1.1 Georgia, serif; }
p { color: var(--muted); }
.card { padding: clamp(1rem, 4vw, 2rem); border-radius: 1rem; border: 1px solid var(--line); background: var(--paper); }
.login { max-width: 28rem; margin: 6vh auto; }
.login form, .card > form { display: grid; gap: 1rem; margin-top: 1.3rem; }
.heading, .actions { display: flex; align-items: center; justify-content: space-between; gap: .7rem; flex-wrap: wrap; }
.actions { justify-content: flex-end; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.primary, .secondary, .text { min-height: 44px; border-radius: .55rem; padding: .58rem .9rem; font-size: .88rem; font-weight: 700; }
.primary { display: inline-flex; align-items: center; border: 1px solid var(--brand); background: var(--brand); color: white; text-decoration: none; }
.primary:hover { background: #83133c; }
.secondary { border: 1px solid var(--line); background: var(--blush); color: var(--brand); }
.text { padding-inline: .3rem; border: 0; color: var(--brand); background: transparent; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
label { display: grid; gap: .3rem; min-width: 0; font-size: .86rem; font-weight: 650; }
label[hidden] { display: none; }
input:not([type="checkbox"]), textarea, select {
  width: 100%; min-width: 0; min-height: 44px; padding: .55rem .65rem; border: 1px solid #d9b3c4; border-radius: .5rem;
  background: white; color: var(--text); font-size: 1rem; font-weight: 400;
}
textarea { resize: vertical; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: end; gap: .9rem; }
.check { display: flex; align-items: center; min-height: 44px; gap: .5rem; }
.check input { accent-color: var(--brand); width: 1.1rem; height: 1.1rem; flex: none; }
.preview { max-width: min(100%, 11rem); max-height: 11rem; object-fit: contain; border-radius: .5rem; }
.photo-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.photo-field { display: grid; align-content: start; gap: .5rem; min-width: 0; }
.photo-zip { margin-top: .8rem; }
.photo-zip summary { color: var(--brand); font-weight: 700; cursor: pointer; padding-block: .45rem; }
.photo-zip[open] label { margin-block: .45rem; }
fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: .6rem; padding: .75rem; }
legend { font-weight: 700; padding-inline: .35rem; }
fieldset p { margin: 0 0 .65rem; font-size: .88rem; }
.variant { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) minmax(0,.75fr) auto; align-items: end; gap: .55rem; margin-bottom: .6rem; }
.products { list-style: none; margin: 1rem 0 0; padding: 0; }
.products li { display: flex; align-items: center; gap: .7rem; border-top: 1px solid var(--line); }
.products li a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .8rem 0; text-decoration: none; }
.products li a:hover strong { text-decoration: underline; }
.product-edit { flex: 1; min-width: 0; }
.products .product-preview { flex: none; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.products .product-preview:hover { text-decoration: underline; }
.products small { display: block; color: var(--muted); margin-top: .15rem; }
.products strong { overflow-wrap: anywhere; }
.status { white-space: nowrap; border-radius: 1rem; background: var(--blush); color: var(--brand); padding: .25rem .53rem; font-size: .75rem; font-weight: 700; }
.status.live { background: #e7f3ea; color: #25623e; }
.alert { background: var(--blush); color: #86143c; border-radius: .55rem; padding: .8rem; }
.save-notice { background: #e7f3ea; color: #25623e; border-radius: .55rem; padding: .8rem; }
.back { margin-top: 0; }
.foot { text-align: right; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 1rem; align-items: start; margin-top: 1rem; }
.checkout-grid h2 { margin: 0 0 .8rem; font-family: Georgia, serif; font-size: 1.35rem; }
.checkout-items, .checkout-contact { margin: 0; padding: 0; list-style: none; }
.checkout-items li { display: flex; justify-content: space-between; align-items: baseline; gap: .55rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.checkout-items li div, .checkout-contact li { min-width: 0; overflow-wrap: anywhere; }
.checkout-items li > strong { flex: 0 0 auto; }
.checkout-items small { display: block; color: var(--muted); }
.checkout-totals { margin: .75rem 0 0; }
.checkout-totals div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .3rem 0; }
.checkout-totals dd { margin: 0; flex: 0 0 auto; }
.checkout-totals .checkout-total { margin-top: .35rem; padding: .55rem 0 0; border-top: 1px solid var(--line); color: var(--brand); font-weight: 750; }
.checkout-contact li + li { margin-top: .45rem; }
.checkout-support { display: inline-flex; align-items: center; text-decoration: none; }
.checkout-frame { display: block; width: 100%; margin-top: .8rem; border: 0; }
@media (max-width: 680px) {
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .details { grid-template-columns: minmax(0,1fr); }
  .photo-fields { grid-template-columns: minmax(0,1fr); }
  .variant { grid-template-columns: repeat(3, minmax(0,1fr)); gap: .4rem; padding-bottom: .25rem; border-bottom: 1px solid var(--line); }
  .variant .remove { grid-column: 1 / -1; justify-self: end; }
}

.video-card { margin-top: 20px; }
.video-card h2 { margin: 0 0 9px; }
.video-card .video-yayin { color: #694958; }
.video-yukleme { display: grid; gap: 10px; margin-top: 15px; }
.video-yukleme p { margin: 0; color: #694958; font-size: .88rem; }
.video-yukleme button, .video-remove button { justify-self: start; }
.panel-video { display: block; width: min(100%, 440px); max-height: 290px; border-radius: 8px; background: #21161c; margin: 18px 0 10px; }
.video-remove { margin-top: 8px; }

.panel-nav {
  width: min(56rem, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1rem;
}
.panel-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-inline: .6rem;
  border-bottom: 2px solid transparent;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.panel-nav a:hover,
.panel-nav a[aria-current="page"] { border-color: var(--brand); color: #83133c; }
.card .video-urun-sec { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.video-urun-sec label { margin-bottom: .3rem; }
@media (max-width: 450px) {
  .panel-nav { gap: .35rem; }
  .card .video-urun-sec { grid-template-columns: minmax(0,1fr); }
  .video-urun-sec button { justify-self: start; }
}
