:root {
  /* myQresto logo palette: vibrant red accent, dark gray text – tüm sayfa bu palete uyumlu */
  --primary: #e60000;
  --primary-soft: #fff0f0;
  --primary-dark: #c00;
  --accent: #e60000;
  --background: #f5f5f7;
  --surface: #ffffff;
  --border-subtle: #e5e5e7;
  --border: #e5e5e7;
  --bg-secondary: #f0f0f2;
  --text-main: #333333;
  --text-muted: #6e6e73;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.06);
  --shadow-subtle: 0 6px 20px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 4px 14px rgba(230, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: linear-gradient(160deg, #f8f8f9 0%, #f0f0f2 50%, #ececef 100%);
  color: var(--text-main);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-subtle);
}

.brand-image {
  height: 40px;
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(230, 0, 0, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.app-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

/* Login ekranı etrafında restaurant ikonları */
.login-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.login-deco img {
  display: block;
  width: 140px;
  height: auto;
  opacity: 0.7;
}

/* Masa operasyon özeti (admin tarafı) */
.operations-summary {
  margin-top: 16px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.operations-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.operations-summary-card {
  flex: 1 1 120px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.operations-summary-label {
  font-size: 12px;
  color: var(--text-muted);
}

.operations-summary-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.operations-summary-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.operations-summary-filters label {
  color: var(--text-muted);
}

.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.inline-checkbox input[type="checkbox"] {
  margin: 0;
}

.status-warning-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff7e6;
  color: #b06500;
  font-size: 11px;
  font-weight: 500;
}

.login-deco-top-right {
  top: 8%;
  right: 18%;
}

.login-deco-right {
  top: 52%;
  right: 10%;
}

.login-deco-bottom-left {
  bottom: 10%;
  left: 18%;
}

.app-main .card {
  position: relative;
  z-index: 1;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.login-card {
  max-width: 420px;
  width: 100%;
}

.card-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.card-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-inline {
  gap: 10px;
}

.form-row-2,
.form-row-3 {
  display: grid;
  gap: 10px;
}

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

.form-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

.form-field input {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--surface);
}

.form-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.12);
  background: var(--surface);
}

.form-footer {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-footer-login {
  flex-direction: column;
  align-items: stretch;
  margin-top: 8px;
}

.form-footer-login .btn {
  margin-top: 4px;
  padding: 12px 18px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.checkbox input {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
}

.btn {
  border-radius: 999px;
  border: none;
  font-size: 14px;
  padding: 9px 18px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(230, 0, 0, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230, 0, 0, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(230, 0, 0, 0.25);
}

.btn-block {
  width: 100%;
}

.hint-text {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.tiny-text {
  font-size: 11px;
}

.app-footer {
  padding: 12px 24px 18px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

/* ADMIN LAYOUT */

.admin-layout {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
}

.admin-sidebar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px 14px 14px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-sidebar-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-menu-item {
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 8px 13px;
  font-size: 13px;
  text-align: left;
  background: var(--bg-secondary);
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease,
    transform 0.08s ease;
}

.admin-menu-item:hover {
  background: var(--primary-soft);
}

.admin-menu-item.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.btn-secondary-light {
  margin-top: 4px;
  width: 100%;
  background: var(--bg-secondary);
  color: var(--text-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.btn-secondary-light:hover {
  background: var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.admin-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.admin-section h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.admin-section + .admin-section {
  margin-top: 14px;
}

.table-wrapper {
  margin-top: 12px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 520px;
}

.data-table thead {
  background: var(--primary-soft);
}

.data-table th,
.data-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}

.table-action {
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  margin-right: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
}
.table-action:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.table-action.delete {
  color: var(--primary);
}

.order-payment-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
}
.order-payment-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* MENU LAYOUT */

.menu-layout {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
}

.menu-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-header {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-subtle);
}

.menu-header h2 {
  margin: 0 0 2px;
  font-size: 18px;
}

.select {
  margin-top: 10px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 9px 13px;
  font-size: 13px;
  background: var(--surface);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.12);
}

.category-list {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcategories-container {
  margin-bottom: 20px;
}

.subcategories-container .category-list {
  margin-top: 12px;
}

.category-pill {
  padding: 7px 11px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 12px;
  cursor: pointer;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
}

.category-pill span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.category-pill.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.category-pill.active span.dot {
  background: rgba(255, 255, 255, 0.9);
}

.menu-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.menu-topbar h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.menu-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-soft);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-dark);
  box-shadow: var(--shadow-primary);
}

.menu-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.badge {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
}

.badge-outline {
  border: 1px solid rgba(230, 0, 0, 0.35);
  color: var(--primary-dark);
  background: var(--primary-soft);
}

/* Kampanyalı ürün toggle */
.menu-discount-toggle {
  margin-left: auto;
  align-self: center;
}

.discount-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  box-shadow: var(--shadow-subtle);
}

.discount-toggle-label-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.discount-toggle-label-text.highlight {
  color: var(--primary-dark);
  font-weight: 600;
}

.discount-toggle-switch {
  position: relative;
  width: 46px;
  height: 22px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border-subtle);
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.discount-toggle-switch .discount-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.18s ease;
}

.discount-toggle-switch[aria-pressed="true"] {
  background: var(--primary);
  box-shadow: var(--shadow-primary);
}

.discount-toggle-switch[aria-pressed="true"] .discount-toggle-knob {
  transform: translateX(24px);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.product-image {
  height: 110px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04),
    transparent
  );
}

.product-body {
  padding: 10px 11px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.product-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.product-footer {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 14px;
}

.btn-ghost {
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 7px 12px;
  font-size: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(230, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.12s ease, transform 0.1s ease,
    box-shadow 0.12s ease;
}

.btn-ghost:hover {
  background: rgba(230, 0, 0, 0.12);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

.order-summary {
  padding: 14px 14px 11px;
}

.cart-items {
  list-style: none;
  margin: 10px 0 8px;
  padding: 0;
  max-height: 180px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  padding: 6px 4px;
  border-radius: 999px;
}

.cart-item:nth-child(odd) {
  background: var(--bg-secondary);
}

.cart-item-qty {
  font-weight: 600;
  color: var(--primary-dark);
}

.cart-item-name {
  flex: 1;
}

.cart-item-price {
  font-weight: 500;
}

.order-total {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
}

.back-business {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .app-main {
    align-items: stretch;
  }

  .menu-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .app-header {
    padding: 14px 16px 4px;
  }

  .app-main {
    padding: 10px;
  }

  .login-card {
    padding: 22px 18px 18px;
  }

  .menu-content {
    padding: 16px 14px 12px;
  }

  .menu-topbar {
    flex-direction: column;
  }

  .app-footer {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .admin-content {
    padding: 16px 14px 12px;
  }

  .data-table {
    font-size: 12px;
    min-width: 460px;
  }

  .btn,
  .btn-secondary-light {
    padding: 10px 18px;
  }

  .order-summary {
    padding: 12px 10px 10px;
  }

  .menu-header {
    padding: 14px 12px 12px;
  }

  /* Garson paneli sipariş tablosu için kart görünüm */
  #waiter-orders-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  #waiter-orders-table thead {
    display: none;
  }

  #waiter-orders-table tbody {
    display: block;
  }

  #waiter-orders-table tr {
    display: block;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    padding: 10px 12px 8px;
    margin-bottom: 10px;
  }

  #waiter-orders-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: none;
    font-size: 12px;
  }

  #waiter-orders-table td::before {
    content: attr(data-label);
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 8px;
  }

  #waiter-orders-table td:last-child {
    justify-content: flex-end;
  }
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.modal-body {
  padding: 20px 22px;
}

.order-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.order-detail-item:last-child {
  border-bottom: none;
}

.order-detail-item-name {
  flex: 1;
  font-weight: 500;
}

.order-detail-item-qty {
  margin: 0 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.order-detail-item-price {
  font-weight: 600;
  color: var(--primary-dark);
}

.order-detail-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

/* Adisyon (sipariş detay / yazdır) */
.modal-content-adisyon {
  max-width: 480px;
}

.adisyon-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.adisyon-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.05em;
}

.adisyon-meta {
  margin: 4px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.adisyon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.adisyon-table th,
.adisyon-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.adisyon-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-secondary);
}

.adisyon-table tbody tr:last-child td {
  border-bottom: none;
}

.adisyon-total {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
}

/* Ürün detay modalı – telefon için kısa, sepete ekle üstte */
#product-detail-modal .modal-content {
  max-width: 420px;
  max-height: 90vh;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

#product-detail-modal .modal-body {
  padding: 16px 0 20px;
}

.product-detail-top {
  padding: 0 16px 20px;
}

.product-detail-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.product-detail-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-secondary);
}

.product-detail-meta {
  flex: 1;
  min-width: 0;
}

.product-detail-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
}

.product-detail-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-detail-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.product-detail-qty-label {
  font-size: 14px;
  color: var(--text-muted);
}

.product-detail-qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-detail-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-main);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.product-detail-qty-btn:hover {
  background: var(--border-subtle);
}

.product-detail-qty-input {
  width: 40px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  background: var(--surface);
  -moz-appearance: textfield;
}

.product-detail-qty-input::-webkit-outer-spin-button,
.product-detail-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-detail-add-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
}

.product-detail-desc-wrap {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.product-detail-desc-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-detail-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  max-height: 120px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.product-detail-recommended {
  padding-top: 16px;
}

.product-detail-recommended-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.product-detail-recommended-grid {
  display: grid;
  gap: 10px;
}

.product-detail-rec-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
  cursor: pointer;
  font-size: 14px;
}

.product-detail-rec-card input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.product-detail-rec-name {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1 1 100%;
}

.product-detail-rec-desc {
  font-size: 12px;
  color: var(--text-muted);
  flex: 1 1 100%;
}

.product-detail-rec-price {
  font-weight: 600;
  color: var(--primary);
}

/* Ürün yönetimi – önerilen ürünler listesi */
.recommended-list {
  max-height: 180px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  background: var(--bg-secondary);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px 8px;
}

.recommended-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.recommended-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

@media (min-width: 520px) {
  #product-detail-modal .modal-content {
    max-width: 560px;
  }

  .product-detail-hero {
    gap: 24px;
    padding: 16px 0 20px;
  }

  .product-detail-image {
    width: 160px;
    height: 160px;
  }

  .product-detail-name {
    font-size: 20px;
  }

  .product-detail-price {
    font-size: 22px;
  }

  .product-detail-desc {
    max-height: 160px;
  }
}

