:root {
  --navy: #0c2037;
  --cream: #f7f1e6;
  --copper: #af754e;
  --line: #ded6c7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font:
    15px/1.6 Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.btn {
  background: var(--navy);
  color: var(--cream);
  border: 1px solid var(--navy);
  padding: 12px 22px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-block;
}
button:hover,
.btn:hover {
  background: #25415e;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.light {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
header {
  height: 100px;
  max-width: 1320px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 25px;
}
.logo {
  font:
    bold 42px Georgia,
    serif;
  letter-spacing: -2px;
}
.logo span {
  display: block;
  font: 8px Arial;
  letter-spacing: 3px;
  text-align: center;
  margin-top: 4px;
}
nav {
  display: flex;
  gap: 30px;
}
header > div {
  display: flex;
  gap: 22px;
  align-items: center;
}
#count {
  margin-left: 10px;
  background: var(--cream);
  color: var(--navy);
  padding: 2px 7px;
  border-radius: 20px;
}
.demo {
  background: #e9e1d2;
  text-align: center;
  font-size: 10px;
  letter-spacing: 1.2px;
  padding: 9px;
}
.demo span {
  letter-spacing: 0.3px;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 38px 40px 60px;
}
.eyebrow {
  color: var(--copper);
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: bold;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  line-height: 1.1;
  font-weight: normal;
}
h1 {
  font-size: 70px;
  letter-spacing: -2px;
  margin: 20px 0;
}
h2 {
  font-size: 37px;
  margin: 12px 0 25px;
}
h3 {
  font-size: 24px;
  margin: 12px 0;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
  color: var(--cream);
  border-radius: 12px;
  overflow: hidden;
  min-height: 470px;
}
.hero .copy {
  padding: 48px 42px;
}
.hero p {
  color: #c4c9cb;
  max-width: 330px;
  margin-bottom: 27px;
}
.hero .btn {
  background: var(--cream);
  color: var(--navy);
}
.brand-art {
  background: url("assets/brand.jpeg") left center/auto 100% no-repeat;
  min-height: 430px;
}
.hero .brand-art {
  background-size: auto 100%;
  background-position: left center;
}
.meta {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  font-size: 11px;
  color: #c9b69d;
}
.service {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: 40px;
  font-size: 12px;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fffcf6;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.card .inside {
  padding: 22px;
}
.food {
  height: 210px;
  background: url("assets/brand.jpeg") left 12%/190% auto no-repeat;
  background-color: var(--navy);
  position: relative;
}
.card:nth-child(2) .food {
  background-position: left 18%;
}
.card:nth-child(3) .food {
  background-position: left 7%;
}
.tag {
  display: inline-block;
  background: #eee5d6;
  color: #735137;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.7px;
  padding: 4px 9px;
}
.food .tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--cream);
}
.heart {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 4px 10px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  font-size: 21px;
}
.card p {
  color: #737975;
  font-size: 13px;
  min-height: 42px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price {
  font-size: 20px;
  font-weight: bold;
}
.club {
  background: #e9e1d2;
  border: 1px solid var(--line);
  padding: 30px 36px;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}
.club h2 {
  margin: 5px 0 10px;
}
.filters {
  display: flex;
  gap: 9px;
  overflow: auto;
  margin: 24px 0;
}
.filters button {
  white-space: nowrap;
}
.active {
  background: var(--navy) !important;
  color: var(--cream) !important;
}
.panel {
  background: #fffcf6;
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 9px;
  margin: 20px 0;
}
.twocol {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
}
.field {
  display: block;
  margin: 16px 0;
}
.field input,
.field textarea,
.field select,
input.search {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 5px;
  color: var(--navy);
}
.check {
  display: block;
  padding: 9px 0;
}
.muted {
  color: #747a7c;
  font-size: 13px;
}
small {
  display: block;
  font-size: 11px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td,
th {
  text-align: left;
  padding: 14px 9px;
  border-bottom: 1px solid var(--line);
}
.tablewrap {
  overflow: auto;
}
progress {
  width: 100%;
  accent-color: var(--copper);
  height: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stats strong {
  font: 32px Georgia;
}
.step {
  padding: 18px;
  border-left: 3px solid var(--line);
}
.done {
  border-color: var(--copper);
  background: #f0eadf;
}
.note {
  background: #eee5d6;
  padding: 14px;
  border-radius: 6px;
  font-size: 12px;
  margin: 20px 0;
}
footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 35px 20px 45px;
}
footer p {
  font-size: 12px;
  color: #777;
}
footer a {
  font-size: 12px;
}
footer small {
  margin-top: 20px;
  color: #777;
}
.bottom {
  display: none;
}
dialog {
  background: var(--cream);
  color: var(--navy);
  border: 0;
  border-radius: 12px;
  max-width: 560px;
  width: 94%;
  padding: 30px;
  max-height: 90vh;
}
dialog::backdrop {
  background: #081a2ac9;
}
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--cream);
  padding: 12px 24px;
  border-radius: 8px;
  display: none;
  z-index: 10;
}
.empty {
  text-align: center;
  padding: 60px 20px;
}
.mini {
  font-size: 12px;
  padding: 7px 12px;
}
.danger {
  color: #aa382b;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  header {
    height: 80px;
    padding: 0 20px;
  }
  .logo {
    font-size: 32px;
  }
  header nav,
  .account {
    display: none;
  }
  header button {
    padding: 8px 12px;
  }
  .demo {
    font-size: 8px;
  }
  .demo span {
    display: block;
  }
  main {
    padding: 22px 18px 35px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero .copy {
    padding: 30px 27px;
  }
  .hero h1 {
    font-size: 49px;
    margin: 15px 0;
  }
  .hero p {
    font-size: 13px;
  }
  .hero .brand-art {
    min-height: 270px;
    background-size: auto 155%;
    background-position: left 20%;
  }
  .meta {
    margin-top: 22px;
  }
  .service {
    gap: 12px;
    font-size: 10px;
    margin-bottom: 25px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .food {
    height: 150px;
    background-size: 200% auto;
  }
  .card .inside {
    padding: 14px;
  }
  .card h3 {
    font-size: 21px;
  }
  .card p {
    font-size: 11px;
  }
  .card .row {
    flex-wrap: wrap;
  }
  .card button {
    padding: 8px 12px;
    font-size: 12px;
  }
  .price {
    font-size: 17px;
  }
  h2 {
    font-size: 29px;
  }
  h1 {
    font-size: 42px;
  }
  .club {
    padding: 22px;
    display: block;
  }
  .club .btn {
    margin-top: 12px;
  }
  .twocol {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  .bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    justify-content: space-around;
    padding: 8px 0 12px;
    z-index: 5;
  }
  .bottom a {
    font-size: 23px;
    text-align: center;
  }
  .bottom span {
    display: block;
    font-size: 9px;
  }
  body {
    padding-bottom: 65px;
  }
  .stats {
    gap: 8px;
  }
  .stats .panel {
    padding: 12px;
  }
  .stats strong {
    font-size: 25px;
  }
  .stats p {
    font-size: 10px;
  }
  .sectionhead {
    margin-top: 25px;
  }
  footer {
    padding-bottom: 30px;
  }
}

.admin-header {
  max-width: none;
  background: var(--navy);
  color: var(--cream);
  height: 90px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 75vh;
}
.admin-sidebar {
  border-right: 1px solid var(--line);
  padding: 35px 20px;
}
.admin-sidebar small {
  letter-spacing: 1.5px;
  color: var(--copper);
  margin-bottom: 22px;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-sidebar a {
  padding: 11px 15px;
  border-radius: 6px;
}
.admin-sidebar .selected {
  background: var(--navy);
  color: var(--cream);
}
.admin-sidebar p {
  font-size: 11px;
  color: #747a7c;
  margin-top: 35px;
}
.admin-layout main {
  width: 100%;
  padding: 35px;
  min-width: 0;
}
.admin-tabs {
  display: none;
}
body[data-area="admin"] {
  padding-bottom: 0;
}
body[data-area="admin"] h1 {
  font-size: 45px;
}
body[data-area="admin"] footer {
  padding: 20px;
}
@media (max-width: 760px) {
  .admin-header {
    padding: 0 18px;
  }
  .admin-header .tag {
    font-size: 8px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-sidebar small,
  .admin-sidebar p {
    display: none;
  }
  .admin-sidebar nav {
    flex-direction: row;
    overflow: auto;
    gap: 8px;
  }
  .admin-sidebar a {
    white-space: nowrap;
    font-size: 12px;
  }
  .admin-layout main {
    padding: 22px 18px;
  }
  body[data-area="admin"] h1 {
    font-size: 36px;
  }
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
}
.color-fields {
  display: flex;
  gap: 20px;
}
.color-fields input {
  height: 44px;
  min-width: 70px;
  padding: 4px;
}
input[type="file"] {
  font-size: 12px;
}
.admin-sidebar {
  min-width: 0;
}
@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
/* İşletme yönetimi ve medya */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.toolbar .search {
  flex: 1;
  min-width: 180px;
}
.toolbar select,
.period-controls input {
  padding: 10px;
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 6px;
  color: var(--navy);
}
.period-controls label {
  font-size: 11px;
  display: grid;
  gap: 5px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.metric {
  margin: 0;
  min-width: 0;
}
.metric small {
  font-size: 9px;
  letter-spacing: 1.1px;
  color: #7d6954;
}
.metric strong {
  font:
    32px Georgia,
    serif;
  display: block;
  margin: 12px 0 3px;
  overflow-wrap: anywhere;
}
.metric p {
  margin-bottom: 0;
  font-size: 11px;
}
.product-cell {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 190px;
}
.thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.brand-thumb {
  background: var(--navy) url("assets/brand.jpeg") left 15%/200% auto no-repeat;
}
.product-cell small {
  color: #777;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.actions button {
  white-space: nowrap;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.upload-preview {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9e1d2;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  padding: 10px;
}
.upload-preview img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.has-photo {
  background: none !important;
}
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.food .tag,
.food .heart {
  z-index: 1;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}
.voided {
  opacity: 0.5;
}
.voided td:nth-child(2) {
  text-decoration: line-through;
}
.admin-sidebar {
  background: #f0e9dc;
}
.admin-sidebar nav a {
  font-size: 13px;
}
.admin-layout .sectionhead {
  margin-top: 10px;
}
.admin-layout h2 {
  font-size: 29px;
}
.admin-layout .note {
  font-size: 11px;
}
details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: bold;
}
dialog {
  max-width: 680px;
}
button:disabled {
  pointer-events: none;
}
.admin-layout .row {
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .metric-grid {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 25px;
  }
  .metric small {
    font-size: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar > * {
    max-width: 100%;
  }
  .quick-links a {
    font-size: 12px;
  }
  .admin-layout h2 {
    font-size: 26px;
  }
  .product-cell {
    min-width: 170px;
  }
  .metric p {
    font-size: 10px;
  }
}
@media print {
  header,
  aside,
  footer,
  .bottom,
  .demo,
  #toast,
  .admin-layout,
  body > main {
    display: none !important;
  }
  dialog[open] {
    position: static !important;
    display: block !important;
    max-height: none;
    width: 100%;
    border: 0;
  }
  dialog button {
    display: none !important;
  }
  dialog::backdrop {
    background: white;
  }
}
.custom-hero {
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.custom-hero img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
}
/* Ana ekran ve ekran çentiği/alt hareket alanı uyumu. */
[hidden] {
  display: none !important;
}
.connection-notice {
  background: #e5c6a5;
  color: #30251d;
  text-align: center;
  padding: 10px 18px;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 8;
}
.pwa-tools {
  margin: 22px auto 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 600px;
}
.pwa-tools small {
  width: 100%;
  margin-top: 0;
}
.pwa-tools button {
  font-size: 12px;
}
.bottom {
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
body {
  padding-top: env(safe-area-inset-top, 0px);
}
@media (max-width: 760px) {
  body:not([data-area="admin"]) {
    padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
  }
  header {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
}
@media (display-mode: standalone) {
  body {
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
  }
  .pwa-tools #install-app {
    display: none;
  }
}
.data-notice {
  padding: 14px 20px;
  background: #f2d5b1;
  color: #352414;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}
.data-notice span {
  flex: 1;
  min-width: 200px;
}
