/* Güllüoğlu satış yüzünün marka katmanı: kasa (uygulama/pos.html), yönetim ve eski prototip
   (satis-taslak.html) ortak kullanır. 03.10.2026 görsel tur A7: altı görsel yönün ezilmiş
   (ölü) kuralları silindi; hesaplanmış stil karşılaştırması 224 görünümde fark 0 verdi. Renkler
   uygulama/v4-temel.css token'larından gelir; prototip v4-temel'i yüklemediği için her rengin
   yanında eski değer yedektir: var(--token, #eski). */
@font-face {
  font-family: Greycliff;
  src: url('assets/greycliff-regular.ttf');
}
@font-face {
  font-family: Greycliff;
  src: url('assets/greycliff-demibold.ttf');
  font-weight: 600;
}
@font-face {
  font-family: Greycliff;
  src: url('assets/greycliff-bold.ttf');
  font-weight: 700;
}
@font-face {
  font-family: Blaak;
  src: url('assets/blaak.otf');
}
:root {
  --ink: var(--siyah, #2c2a29);
  --green: var(--koyu-kirmizi, #ac242a);
  --gold: var(--altin, #c7a663);
  --line: var(--cizgi, #e4d9cf);
  --bg: var(--krem, #f4eadf);
  --muted: var(--soluk, #756b64);
}
body {
  font-family: var(--yazi, Greycliff, Arial, sans-serif);
}
button,
input,
textarea {
  font-family: inherit;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  object-fit: contain;
  width: 163px;
  height: 56px;
}
.brand small {
  font-family: var(--yazi, Greycliff, sans-serif);
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.demo {
  font-size: 12px;
}
.head-right button {
  font-size: 14px;
  font-weight: 600;
}
.product {
  transition:
    background 0.12s,
    border-color 0.12s;
}
.product .price small {
  font-weight: 400;
}
.stock {
  font-size: 12px;
}
.row-top strong {
  font-weight: 600;
}
.primary {
  background: var(--koyu-kirmizi, #ac242a);
  border-color: var(--koyu-kirmizi, #ac242a);
}
@media (hover: hover) {
  .primary:hover:not(:disabled) {
    background: var(--koyu-kirmizi-basili, #861b20);
  }
}
.primary:active:not(:disabled) {
  background: var(--koyu-kirmizi-basili, #861b20);
}
.secondary-actions button {
  border: 0;
  background: transparent;
}
.secondary-actions button:last-child {
  color: var(--koyu-kirmizi, #ac242a);
}
dialog {
  box-shadow: var(--golge-pencere, 0 25px 100px #2c2a2933);
}
dialog::backdrop {
  background: var(--perde, #2c2a2980);
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--siyah, #ac242a);
  outline-offset: 2px;
}
.notice {
  background: var(--siyah, #2c2a29);
}
.hint,
#box-banner {
  background: var(--krem, #f4eadf);
}
@media (max-width: 1100px) {
  .brand small {
    display: none;
  }
  .demo {
    display: none;
  }
}
@media (max-width: 700px) {
  header {
    flex-wrap: wrap;
  }
  .head-right {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
body {
  background: var(--beyaz, #fff);
}
header {
  padding: 8px 22px;
}
.brand small {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.4px;
}
.head-right button {
  background: var(--beyaz, #fff);
  padding: 10px 18px;
}
.demo {
  background: transparent;
  color: var(--soluk, #756b64);
  padding: 0;
  margin-right: 12px;
}
@media (hover: hover) {
  .head-right button:hover:not(:disabled) {
    background: var(--krem-acik, #f4eadf);
  }
}
main {
  min-height: 580px;
  grid-template-columns: minmax(0, 1fr) 380px;
}
.catalog {
  padding: 0;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 0;
}
.searchline {
  grid-column: 1 / -1;
  grid-row: 1;
  padding: 14px 22px;
  margin: 0;
  border-bottom: 1px solid var(--cizgi, #ddd5cd);
  gap: 24px;
}
.searchline h1 {
  font-family: var(--yazi, Greycliff, sans-serif);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.searchline input {
  width: auto;
  flex: 1;
  height: 46px;
  box-shadow: none;
  margin-left: 0;
  padding: 0 14px;
}
.quick-actions {
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  padding: 0 18px;
  margin: 0;
  gap: 18px;
  border-bottom: 1px solid var(--cizgi, #ddd5cd);
}
.quick-actions button {
  border: 0;
  padding: 0;
  min-height: 44px;
  border-radius: 0;
  font-weight: 600;
  font-size: 12px;
  background: none;
}
.tabs {
  grid-column: 1;
  grid-row: 2 / 5;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-right: 1px solid var(--cizgi, #ddd5cd);
  overflow: auto;
}
.tabs button {
  flex-shrink: 0;
  text-align: left;
  min-height: 57px;
  padding: 12px 17px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--cizgi, #e2d6c9);
  font-size: 14px;
  line-height: 1.25;
}
.tabs button[aria-pressed='true'] {
  font-weight: 600;
}
@media (hover: hover) {
  .tabs button:hover:not(:disabled) {
    background: var(--krem-acik, #eaddce);
  }
}
.products {
  grid-column: 2;
  grid-row: 3;
  display: grid;
  border: 0;
}
.product {
  background: var(--beyaz, #fff);
}
.product strong {
  font-weight: 600;
}
.product .price {
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
  .product:hover {
    background: var(--krem-acik, #faf4ed);
    border-color: var(--cizgi, #ddd5cd);
  }
}
.catalog-note {
  grid-column: 2;
  grid-row: 4;
  margin: 0;
  padding: 9px 18px;
  font-size: 12px;
  border-top: 1px solid var(--cizgi, #ddd5cd);
}
.basket {
  box-shadow: none;
}
.basket-head {
  border-top: 0;
  border-bottom: 1px solid var(--cizgi, #ddd5cd);
  padding: 24px 22px;
}
.basket-head h2 {
  font-family: var(--yazi, Greycliff, sans-serif);
  font-weight: 700;
}
.basket-head span {
  font-size: 12px;
}
.sale-context {
  padding: 13px 20px;
  gap: 6px;
}
.sale-context button {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 6px 9px;
  font-size: 14px;
  min-height: 40px;
}
.sale-context button + button {
  border-left: 1px solid var(--cizgi, #ddd5cd);
}
.cart {
  padding: 0 22px;
  overscroll-behavior: contain;
}
.empty {
  text-align: left;
  padding: 55px 0 0;
  max-width: 220px;
  margin: 0 auto;
  color: var(--soluk, #82766b);
  font-size: 14px;
  line-height: 1.6;
}
.empty b {
  font-family: var(--yazi, Greycliff);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 9px;
  color: var(--siyah, #54473c);
}
.row {
  padding: 19px 0;
}
.row-top b {
  white-space: nowrap;
}
.row-bottom .edit {
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  color: var(--koyu-kirmizi, #ac242a);
}
.row-bottom .remove {
  font-size: 12px;
}
.checkout {
  padding: 12px 22px 18px;
}
.secondary-actions {
  border-bottom: 1px solid var(--cizgi, #ddd5cd);
  padding-bottom: 9px;
}
.secondary-actions button {
  font-size: 12px;
  padding: 6px 10px;
  min-height: 38px;
}
.subtotal {
  margin: 20px 0;
  align-items: center;
}
.subtotal span {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.subtotal b {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}
.primary,
.pay {
  border-radius: 4px;
}
.pay {
  font-size: 18px;
}
.pay:disabled {
  background: var(--pasif-zemin, #e4dbd0);
  border-color: var(--pasif-zemin, #e4dbd0);
  color: var(--pasif-metin, #958777);
  opacity: 1;
}
.checkout-note {
  font-size: 12px;
  text-align: left;
}
.brand {
  gap: 17px;
}
footer {
  height: 30px;
  border: 0;
  font-size: 12px;
  padding: 0 22px;
}
.dialog-top h2 {
  font-family: var(--yazi, Greycliff);
  font-weight: 700;
  font-size: 24px;
}
dialog {
  border-radius: 4px;
}
.numpad button,
.presets button,
.methods button {
  border-radius: 4px;
}
.field,
#amount {
  border-radius: 4px;
}
#line-preview {
  font-size: 32px;
}
.notice {
  border-radius: 4px;
}
@media (max-width: 1050px) {
  main {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .catalog {
    grid-template-columns: 130px minmax(0, 1fr);
  }
  .tabs button {
    padding: 12px;
    font-size: 12px;
  }
  .head-right button {
    padding: 10px;
  }
  .subtotal b {
    font-size: 32px;
  }
}
@media (max-width: 700px) {
  header {
    gap: 8px;
    padding: 8px 12px;
  }
  .brand img {
    width: 130px;
    height: 45px;
  }
  .head-right button {
    padding: 8px;
    font-size: 12px;
  }
  main {
    display: flex;
    min-height: 0;
  }
  .catalog {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 0;
  }
  .searchline {
    padding: 10px 12px;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .searchline h1 {
    font-size: 16px;
  }
  .searchline input {
    min-width: 0;
    width: auto;
    font-size: 14px;
  }
  .quick-actions {
    padding: 0 12px;
  }
  .tabs button {
    min-height: 50px;
    font-size: 12px;
  }
  .products {
    max-height: none;
  }
  .catalog-note {
    font-size: 12px;
    padding: 6px 10px;
  }
  .basket {
    border-top: 1px solid var(--siyah, #2c2a29);
  }
  .empty {
    padding: 25px 0;
  }
  footer {
    height: auto;
    min-height: 30px;
    padding: 8px 12px;
  }
}
/* Motifsiz A ve özel kasa ikonları */
#held-button::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 9px;
  background: currentColor;
  mask: url('icons/held.svg') center/contain no-repeat;
  -webkit-mask: url('icons/held.svg') center/contain no-repeat;
}
#cashbox::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 9px;
  background: currentColor;
  mask: url('icons/cashbox.svg') center/contain no-repeat;
  -webkit-mask: url('icons/cashbox.svg') center/contain no-repeat;
}
#mixed::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 9px;
  background: currentColor;
  mask: url('icons/mixed-box.svg') center/contain no-repeat;
  -webkit-mask: url('icons/mixed-box.svg') center/contain no-repeat;
}
#barcode::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 9px;
  background: currentColor;
  mask: url('icons/barcode.svg') center/contain no-repeat;
  -webkit-mask: url('icons/barcode.svg') center/contain no-repeat;
}
#customer::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 9px;
  background: currentColor;
  mask: url('icons/customer.svg') center/contain no-repeat;
  -webkit-mask: url('icons/customer.svg') center/contain no-repeat;
}
#delivery::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 9px;
  background: currentColor;
  mask: url('icons/delivery.svg') center/contain no-repeat;
  -webkit-mask: url('icons/delivery.svg') center/contain no-repeat;
}
#discount::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 9px;
  background: currentColor;
  mask: url('icons/discount.svg') center/contain no-repeat;
  -webkit-mask: url('icons/discount.svg') center/contain no-repeat;
}
#hold::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 9px;
  background: currentColor;
  mask: url('icons/hold-sale.svg') center/contain no-repeat;
  -webkit-mask: url('icons/hold-sale.svg') center/contain no-repeat;
}
#pay::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 9px;
  background: currentColor;
  mask: url('icons/payment.svg') center/contain no-repeat;
  -webkit-mask: url('icons/payment.svg') center/contain no-repeat;
}
header {
  border-bottom: 1px solid var(--cizgi, #e1d9cf);
  height: 84px;
}
.head-right button {
  border: 1px solid var(--cizgi, #e3ded7);
  border-radius: 4px;
  min-height: 48px;
}
.head-right {
  gap: 8px;
}
.brand small {
  color: var(--soluk, #756b64);
}
main {
  height: calc(100vh - 114px);
  height: calc(100dvh - 114px);
}
.catalog {
  background: var(--yuzey-2, #faf9f6);
  grid-template-rows: 76px 52px minmax(0, 1fr) 34px;
}
.tabs {
  background: var(--beyaz, #fff);
}
.tabs button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--siyah, #2c2a29);
}
.tabs button::before {
  content: '';
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: currentColor;
  mask: var(--category-icon, url('icons/catalog.svg')) center/contain no-repeat;
  -webkit-mask: var(--category-icon, url('icons/catalog.svg')) center/contain no-repeat;
}
.tabs button[aria-pressed='true'] {
  background: var(--krem, #f4eadf);
  color: var(--koyu-kirmizi, #ac242a);
  box-shadow: inset 3px 0 var(--koyu-kirmizi, #ac242a);
}
.products {
  background: var(--yuzey-2, #faf9f6);
}
.product {
  border: 1px solid var(--cizgi, #ddd6cd);
  border-radius: 4px;
  box-shadow: none;
}
.product::before {
  content: '';
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  background: var(--altin-koyu, #a68a58);
  mask: var(--product-icon, url('icons/baklava.svg')) center/contain no-repeat;
  -webkit-mask: var(--product-icon, url('icons/baklava.svg')) center/contain no-repeat;
}
.product .price {
  color: var(--koyu-kirmizi, #ac242a);
  font-weight: 700;
}
.product .stock {
  display: block;
  width: 100%;
  border-top: 1px solid var(--cizgi-acik, #eee6de);
  color: var(--siyah, #4f5c4b);
  font-weight: 700;
}
.product.chosen {
  border-color: var(--koyu-kirmizi, #ac242a);
  background: var(--krem-acik, #fffaf5);
  box-shadow: none;
}
.basket {
  background: var(--beyaz, #fff);
  border-left: 1px solid var(--cizgi, #dcd4ca);
}
.basket-head,
.cart,
.checkout {
  background: var(--beyaz, #fff);
}
.basket-head {
  height: 76px;
}
.basket-head h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 24px;
}
.sale-context {
  border-bottom: 1px solid var(--cizgi, #e4ded6);
}
.sale-context button {
  display: flex;
  align-items: center;
  text-align: left;
}
.row {
  border-bottom: 1px solid var(--cizgi, #e4ded6);
}
.checkout {
  border-top: 1px solid var(--cizgi, #e4ded6);
}
.pay {
  border-radius: 4px;
  min-height: 64px;
}
.catalog-note {
  background: var(--yuzey-2, #faf9f6);
}
.searchline input {
  border: 1px solid var(--cizgi, #d8d0c8);
  background: var(--beyaz, #fff);
  border-radius: 4px;
}
footer {
  background: var(--beyaz, #fff);
  color: var(--soluk, #746b62);
  border-top: 1px solid var(--cizgi, #e4ded6);
}
@media (max-width: 700px) {
  header {
    height: auto;
  }
  main {
    height: auto;
  }
  .tabs button {
    gap: 6px;
    padding: 10px 8px;
  }
  .tabs button::before {
    width: 18px;
    height: 18px;
  }
  .sale-context button {
    font-size: 12px;
  }
}
/* Fotoğraflı ve fotoğrafsız kartların ortak satır düzeni. */
.product,
.product.has-photo {
  overflow: hidden;
}
.product::before,
.product.has-photo::before {
  display: none;
}
.product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--krem, #f0ebe4);
}
.product-media:empty::before {
  content: '';
  background: var(--altin-koyu, #a68a58);
  mask: var(--product-icon, url('icons/baklava.svg')) center/contain no-repeat;
  -webkit-mask: var(--product-icon, url('icons/baklava.svg')) center/contain no-repeat;
}
.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
  margin: 0;
}
.product strong,
.product.has-photo strong {
  align-self: start;
}
@media (hover: hover) {
  .tabs button[aria-pressed='true']:hover {
    background: var(--krem, #eadfce);
    color: var(--koyu-kirmizi, #ac242a);
  }
}
/* Kasa yoğunluğu (1200 px ve üstü). */
@media (min-width: 1200px) {
  header {
    height: 64px;
    padding: 4px 18px;
  }
  .brand img {
    height: 48px;
    width: 150px;
  }
  .head-right button {
    min-height: 44px;
  }
  main {
    height: calc(100vh - 88px);
    height: calc(100dvh - 88px);
    min-height: 650px;
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  footer {
    height: 24px;
  }
  .catalog {
    grid-template-columns: 125px minmax(0, 1fr);
    grid-template-rows: 60px 44px minmax(0, 1fr) 24px;
  }
  .searchline {
    padding: 7px 14px;
  }
  .searchline input {
    height: 44px;
  }
  .quick-actions {
    padding: 0 12px;
  }
  .catalog-note {
    padding: 4px 12px;
    font-size: 12px;
    line-height: 16px;
  }
  .tabs button {
    padding: 10px;
    min-height: 53px;
    font-size: 12px;
    gap: 7px;
  }
  .tabs button::before {
    width: 21px;
    height: 21px;
  }
  .product-media {
    border: 0;
    overflow: hidden;
  }
  .basket-head {
    height: 60px;
    padding: 16px;
  }
  .basket-head h2 {
    font-size: 20px;
  }
  .sale-context {
    padding: 8px;
  }
  .sale-context button {
    font-size: 12px;
    padding: 5px;
  }
  .checkout {
    padding: 10px 16px 14px;
  }
  .subtotal b {
    font-size: 32px;
  }
}
@media (min-width: 1600px) {
  main {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
  .catalog {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}
/* Sepette ürünün küçük görseli, fiyat ve miktar alanını korur. */
.row-top {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.row-top strong {
  max-width: none;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}
.row-top b {
  font-size: 16px;
}
.cart-product-media {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--krem, #f0ebe4);
  border-radius: 4px;
  overflow: hidden;
}
.cart-product-media img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: center;
}
.cart-product-media .cart-product-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
/* Sepette beş tam satır: 36 px fotoğraf ve 44 px dokunma alanları. */
.cart .row {
  padding: 2px 0;
}
.cart .row-top {
  min-height: 36px;
}
.cart .row-bottom {
  margin-top: 0;
  gap: 4px;
  align-items: center;
}
.cart .row-bottom button {
  min-height: 44px;
  padding: 4px 0;
}
.cart .row-bottom .edit {
  min-width: 0;
  text-align: left;
  font-size: 12px;
}
.cart .row-bottom .remove {
  min-width: 44px;
  flex-shrink: 0;
}
/* Sık kullanılan yöntemler toplamın hemen altında, kaydırmadan erişilir (22.09 renkleri). */
.quick-payments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.quick-payments button {
  min-height: 48px;
  padding: 8px 4px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.quick-payments #pay-cash {
  color: var(--beyaz, #fff);
  background: var(--odeme-nakit, #285540);
  border-color: var(--odeme-nakit, #285540);
}
.quick-payments #pay-card {
  color: var(--beyaz, #fff);
  background: var(--odeme-kart, #294e70);
  border-color: var(--odeme-kart, #294e70);
}
.quick-payments #pay-account {
  color: var(--beyaz, #fff);
  background: var(--odeme-cari, #852f40);
  border-color: var(--odeme-cari, #852f40);
}
.quick-payments #pay {
  color: var(--odeme-diger-metin, #343a40);
  background: var(--odeme-diger, #eceeef);
  border-color: var(--odeme-diger-cizgi, #d1d6da);
}
@media (hover: hover) {
  .quick-payments #pay-cash:hover:not(:disabled) {
    background: var(--odeme-nakit-basili, #1e4131);
  }
  .quick-payments #pay-card:hover:not(:disabled) {
    background: var(--odeme-kart-basili, #203d58);
  }
  .quick-payments #pay-account:hover:not(:disabled) {
    background: var(--odeme-cari-basili, #692533);
  }
  .quick-payments #pay:hover:not(:disabled) {
    background: var(--odeme-diger-basili, #dfe3e6);
  }
}
.quick-payments #pay-cash:active:not(:disabled) {
  background: var(--odeme-nakit-basili, #1e4131);
}
.quick-payments #pay-card:active:not(:disabled) {
  background: var(--odeme-kart-basili, #203d58);
}
.quick-payments #pay-account:active:not(:disabled) {
  background: var(--odeme-cari-basili, #692533);
}
.quick-payments #pay:active:not(:disabled) {
  background: var(--odeme-diger-basili, #dfe3e6);
}
.checkout .checkout-note {
  margin-top: 2px;
}
.methods button[aria-pressed='true'] {
  background: var(--koyu-kirmizi, #ac242a);
  color: var(--beyaz, #fff);
  border-color: var(--koyu-kirmizi, #ac242a);
}
.payment-dialog {
  width: 640px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 22px;
}
.payment-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  margin-bottom: 16px;
  font-size: 14px;
}
.payment-totals strong {
  display: block;
  font-size: 24px;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.payment-dialog .methods {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}
.payment-dialog .methods button {
  min-height: 48px;
  padding: 8px 4px;
  font-size: 14px;
}
.payment-entry {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.payment-entry .field {
  margin: 0;
  min-width: 0;
  font-size: 24px;
}
.payment-entry button {
  font-size: 14px;
  min-width: 125px;
}
#payment-preview {
  min-height: 20px;
  font-size: 14px;
  margin: 8px 0;
}
.payment-dialog .wide {
  min-height: 48px;
  margin-top: 6px;
}
.payment-part {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  gap: 12px;
}
.payment-part small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.payment-part button {
  min-height: 48px;
  font-size: 14px;
}
#payment-extra {
  margin-top: 12px;
}
.single-cash-actions {
  display: flex;
  gap: 8px;
}
.single-cash-actions button {
  flex: 1;
  font-size: 14px;
  padding: 8px;
}
#single-change {
  font-size: 24px;
  font-weight: 700;
}
.payment-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.payment-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  mask: var(--payment-icon) center/contain no-repeat;
  -webkit-mask: var(--payment-icon) center/contain no-repeat;
}
.quick-payments #pay::before {
  display: none;
}
#single-payment {
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
@media (max-width: 500px) {
  .payment-dialog .methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payment-totals strong {
    font-size: 18px;
  }
  .payment-dialog {
    padding: 16px;
  }
}
/* Kullanıcı kararı (30.09): ürünleri sığdırmak için kart/metin küçültülmez; kart en az 240 × 270. */
.products {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-template-rows: none;
  grid-auto-rows: 270px;
  align-content: start;
  gap: 10px;
  padding: 12px;
  overflow: auto;
  overscroll-behavior: contain;
}
.product-card {
  position: relative;
  min-width: 240px;
  height: 270px;
}
.product,
.product.has-photo {
  width: 100%;
  height: 270px;
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 128px minmax(44px, max-content) 26px 24px;
  gap: 6px;
  padding: 0 14px 12px;
  align-content: start;
  align-items: start;
  text-align: left;
}
.product-media {
  grid-column: 1;
  grid-row: 1;
  width: calc(100% + 28px);
  height: 128px;
  margin: 0 -14px;
  border-radius: 3px 3px 0 0;
  border-bottom: 1px solid var(--cizgi-acik, #e6dfd5);
  align-self: stretch;
}
.product-media:empty::before {
  width: 44px;
  height: 44px;
}
.product strong,
.product.has-photo strong {
  grid-column: 1;
  grid-row: 2;
  font-size: 16px;
  line-height: 20px;
  min-height: 0;
  overflow-wrap: anywhere;
}
.product .price,
.product.has-photo .price {
  grid-column: 1;
  grid-row: 3;
  font-size: 20px;
  line-height: 26px;
  margin: 0;
}
.product .price small {
  font-size: 12px;
}
.product .stock,
.product.has-photo .stock {
  grid-column: 1;
  grid-row: 4;
  font-size: 14px;
  line-height: 20px;
  padding: 3px 0 0;
  margin: 0;
}
.favorite-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: 4px;
  background: var(--beyaz, #fff);
  color: var(--soluk, #756b64);
  border: 1px solid var(--cizgi, #d6cabc);
  display: grid;
  place-items: center;
}
.favorite-toggle span {
  display: block;
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: url('icons/favorite.svg') center/contain no-repeat;
  -webkit-mask: url('icons/favorite.svg') center/contain no-repeat;
}
.favorite-toggle[aria-pressed='true'] {
  color: var(--koyu-kirmizi, #ac242a);
  background: var(--krem, #fff1dc);
  border-color: var(--koyu-kirmizi, #ac242a);
}
@media (hover: hover) {
  .favorite-toggle:hover:not(:disabled) {
    background: var(--krem-acik, #f4eadf);
  }
}
#catalog-user {
  margin-left: auto;
  font-size: 12px;
  color: var(--soluk, #756b64);
}
.products-empty {
  grid-column: 1/-1;
  padding: 24px;
  line-height: 1.6;
  color: var(--soluk, #756b64);
}
.products-empty button {
  display: block;
  margin-top: 16px;
}
@media (max-width: 700px) {
  .quick-actions {
    gap: 8px;
    flex-wrap: wrap;
    min-height: 48px;
  }
  .catalog {
    grid-template-rows: 70px auto 330px 40px;
  }
  #catalog-user {
    width: 100%;
    margin: 0;
    padding-bottom: 6px;
  }
}
/* Sepette kaydedilmiş indirimin önce/sonra görünümü. */
.checkout .secondary-actions {
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 10px;
}
.checkout #discount {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--koyu-kirmizi, #ac242a);
  border-radius: 4px;
  color: var(--koyu-kirmizi, #ac242a);
  background: var(--krem-acik, #fff5ed);
  font-size: 14px;
  font-weight: 600;
}
.checkout #discount.has-discount {
  background: var(--koyu-kirmizi, #ac242a);
  color: var(--beyaz, #fff);
}
@media (hover: hover) {
  .checkout #discount:hover:not(:disabled) {
    background: var(--koyu-kirmizi-basili, #861b20);
    color: var(--beyaz, #fff);
  }
}
.checkout #discount:active:not(:disabled) {
  background: var(--koyu-kirmizi-basili, #861b20);
  color: var(--beyaz, #fff);
}
.checkout #discount::before {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
.checkout .secondary-actions #hold,
.checkout .secondary-actions #clear {
  min-height: 44px;
  padding: 6px;
  font-size: 14px;
}
.discount-totals {
  padding-top: 10px;
  font-size: 14px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}
.discount-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.discount-totals .discount-saving {
  color: var(--koyu-kirmizi, #9b2228);
  font-weight: 700;
}
.discount-totals[hidden] {
  display: none;
}
.checkout .subtotal {
  margin: 8px 0 12px;
}
.row-discount {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 6px;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 18px;
  background: var(--uyari-zemin, #fff4e9);
  color: var(--koyu-kirmizi, #9b2228);
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.row-discount del {
  color: var(--soluk, #756b64);
  text-decoration-thickness: 1px;
  white-space: nowrap;
}
.row-discount strong {
  white-space: nowrap;
  font-size: 14px;
}
