:root { --ana: #1d6f5c; --koyu: #18231f; --zemin: #f5f4ef; --cizgi: #dedbd0; --soluk: #66706b; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 15px/1.45 system-ui, "Segoe UI", Roboto, sans-serif; color: var(--koyu); background: var(--zemin); }
button, input, select { font: inherit; color: inherit; }
input, select { padding: 9px 11px; border: 1px solid var(--cizgi); border-radius: 8px; background: #fff; max-width: 100%; }
:focus-visible { outline: 3px solid #e0a526; outline-offset: 2px; }

.ust { position: sticky; top: 0; z-index: 5; display: flex; gap: 14px; align-items: center; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--cizgi); }
.marka { font-weight: 800; font-size: 18px; color: var(--ana); text-decoration: none; white-space: nowrap; }
#ara { flex: 1; min-width: 0; border-radius: 99px; padding-inline: 18px; }
.ust-sag { display: flex; gap: 8px; }
.dugme { cursor: pointer; border: 1px solid var(--ana); background: var(--ana); color: #fff; border-radius: 8px; padding: 9px 14px; font-weight: 600; white-space: nowrap; }
.dugme.cizgili { background: #fff; color: var(--ana); }
.dugme:disabled { cursor: default; background: #e9e7df; border-color: #e9e7df; color: var(--soluk); }
.dugme.genis { width: 100%; white-space: normal; }
.dugme b { background: #fff; color: var(--ana); border-radius: 99px; padding: 0 8px; margin-left: 4px; }
.bag { background: none; border: 0; color: var(--ana); text-decoration: underline; cursor: pointer; padding: 4px 6px; }

.serit { text-align: center; padding: 9px 16px; font-weight: 600; background: #fdf0cc; font-variant-numeric: tabular-nums; }
.serit.acik { background: #d5efe3; }
.serit.bitti { background: #eadfdd; }

main { max-width: 1280px; margin: 0 auto; padding: 20px; }
.duzen { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
aside { background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 14px; }
summary { font-weight: 700; cursor: pointer; }
aside h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--soluk); margin: 16px 0 6px; }
aside ul { list-style: none; margin: 0; padding: 0; }
aside li button { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
aside li button span { color: var(--soluk); }
aside li button.secili { background: #e2efe9; font-weight: 700; }
aside select { width: 100%; }
.onay { display: flex; gap: 8px; align-items: center; margin-top: 12px; }

.vitrin-ust { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--soluk); }
.urunler { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; margin-bottom: 20px; }
.urun-kart { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 12px; transition: box-shadow .15s, transform .15s; }
.urun-kart:hover { box-shadow: 0 8px 22px #0000001a; transform: translateY(-2px); }
.urun-kart.tukendi .kapak { filter: grayscale(1); opacity: .55; }
.urun-kart h4 { margin: 10px 0 2px; font-size: 14px; line-height: 1.3; }
.urun-kart p { margin: 0 0 4px; }
.yazar { color: var(--soluk); font-size: 13px; }
.stok { font-size: 12px; margin-bottom: 10px !important; margin-top: auto !important; padding-top: 4px; }
.stok b { color: var(--ana); }
.kapak-dugme { border: 0; background: none; padding: 0; cursor: pointer; }

.kapak { --renk: #4f5a63; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; aspect-ratio: 2 / 3; width: 100%; padding: 12px 12px 0 18px; overflow: hidden; border-radius: 3px 8px 8px 3px; color: #fff; background-color: var(--renk); box-shadow: inset 7px 0 0 #0000002e, inset 9px 0 0 #ffffff26, 0 3px 8px #0003; font-family: Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }
.kapak.desen0 { background-image: radial-gradient(circle at 100% 0, #ffffff30 0 30%, transparent 31%), radial-gradient(circle at 0 100%, #00000025 0 40%, transparent 41%); }
.kapak.desen1 { background-image: repeating-linear-gradient(45deg, #ffffff0f 0 8px, transparent 8px 18px); }
.kapak.desen2 { background-image: radial-gradient(#ffffff24 1.5px, transparent 2px); background-size: 16px 16px; }
.kapak.desen3 { background-image: linear-gradient(160deg, #ffffff26, transparent 45%, #00000030); }
.kapak-kat { font: 600 9px/1.3 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.kapak-ad { margin: auto 0 8px; padding: 10px 0; border-block: 1px solid #ffffff80; width: 100%; font-size: 18px; line-height: 1.2; }
.kapak-ad.orta { font-size: 16px; }
.kapak-ad.uzun { font-size: 13px; }
.kapak-yazar { font-style: italic; font-size: 12px; margin-bottom: auto; }
.kapak-okul { align-self: stretch; margin: 8px -12px 0 -18px; padding: 7px 8px 8px 16px; background: #fffffff0; color: var(--koyu); font: 600 10px/1.25 system-ui, sans-serif; }
.kapak-okul small { display: block; font-weight: 400; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; color: var(--soluk); }

dialog { border: 0; padding: 20px; color: var(--koyu); box-shadow: 0 20px 60px #0005; }
dialog::backdrop { background: #0008; }
.pencere { border-radius: 14px; width: min(620px, 94vw); }
.pencere.dar { width: min(400px, 94vw); }
.kapat { float: right; border: 0; background: none; font-size: 20px; cursor: pointer; }
.pencere form { display: grid; gap: 12px; clear: both; }
.pencere label { display: grid; gap: 4px; font-weight: 600; }
.urun-detay { display: grid; grid-template-columns: 220px 1fr; gap: 22px; clear: both; }
dl { margin: 0 0 18px; } dt { font-size: 12px; color: var(--soluk); } dd { margin: 0 0 8px; font-weight: 600; }
.cekmece { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(430px, 96vw); }
.cekmece-ust { display: flex; justify-content: space-between; align-items: center; }
.cekmece progress { width: 100%; accent-color: var(--ana); }
.cekmece ul { list-style: none; padding: 0; }
.cekmece li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cizgi); }
.cekmece li div { flex: 1; }
.cekmece li div span { display: block; font-size: 12px; color: var(--soluk); }
.adet { white-space: nowrap; font-size: 13px; }
.not { font-size: 13px; color: var(--soluk); }
.uyari { color: #a32b1d; margin: 0; }

#yonetim { background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 18px; margin-bottom: 24px; }
.ayarlar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-bottom: 16px; }
.ayarlar label:not(.onay) { display: grid; gap: 4px; }
.tablo { overflow-x: auto; margin-bottom: 14px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--cizgi); }

#bildirim { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 20; padding: 12px 18px; border-radius: 10px; background: var(--koyu); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 92vw; }
#bildirim.gorunur { opacity: 1; }
#bildirim.kotu { background: #a32b1d; }
footer { text-align: center; padding: 20px; }

@media (max-width: 760px) {
  .ust { flex-wrap: wrap; padding: 10px 12px; }
  #ara { order: 3; flex-basis: 100%; }
  .ust-sag { margin-left: auto; }
  .marka { font-size: 15px; }
  main { padding: 12px; }
  .duzen { grid-template-columns: 1fr; gap: 14px; }
  .urunler { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .urun-kart { padding: 8px; }
  .kapak-ad { font-size: 15px; } .kapak-ad.orta { font-size: 13px; } .kapak-ad.uzun { font-size: 11px; }
  .urun-detay { grid-template-columns: 1fr; }
  .urun-detay .kapak { max-width: 220px; margin: 0 auto; }
}
@media print {
  body > *:not(#sepet) { display: none !important; }
  #sepet { position: static; box-shadow: none; height: auto; max-height: none; width: 100%; }
  #sepet button { display: none; }
}
