:root {
  --ink:#27302d;
  --muted:#77807b;
  --cream:#f8f6f0;
  --paper:#fffefb;
  --sage:#647c70;
  --dark:#3e574c;
  --line:#e5e5dd;
  --red:#bd7057
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font:15px 'DM Sans',sans-serif
}
.app-shell {
  max-width:1180px;
  margin:auto;
  padding:0 34px 80px
}
.topbar {
  height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  color:var(--ink);
  text-decoration:none
}
.brand-mark {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:12px;
  background:var(--sage);
  color:#fff;
  font-size:19px
}
.brand strong {
  display:block;
  font:600 19px 'Playfair Display'
}
.brand small {
  display:block;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase
}
.status {
  color:var(--muted);
  font-size:12px
}
.status i {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#65b88e;
  margin-right:7px
}
.hero {
  background:#536c5e;
  color:#fff;
  border-radius:25px;
  padding:48px 58px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:260px
}
.hero small,.admin-head small,.login>small {
  letter-spacing:.18em;
  font-weight:700;
  color:#c3d4c7;
  font-size:10px
}
.hero h1,.admin-head h1,.login h1 {
  font:600 48px/.98 'Playfair Display';
  margin:12px 0
}
.hero h1 em {
  color:#f3bf7d;
  font-style:normal
}
.hero p,.admin-head p {
  color:#d7e1d9
}
.hero-cake {
  font-size:120px;
  background:#efe6d7;
  border:12px solid #e8eee8;
  border-radius:50%;
  width:190px;
  height:190px;
  display:grid;
  place-items:center;
  transform:rotate(-8deg)
}
.heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  margin:38px 0 22px
}
.heading small,.admin-head small,.login>small {
  font-size:10px;
  letter-spacing:.18em;
  color:#809087;
  font-weight:700
}
.heading h2 {
  font:600 29px 'Playfair Display';
  margin:8px 0 0
}
.cart-btn {
  border:0;
  border-radius:12px;
  padding:13px 17px;
  background:#edf0eb;
  color:var(--dark);
  font-weight:700;
  cursor:pointer
}
.cart-btn b {
  background:#d9825e;
  color:#fff;
  border-radius:20px;
  padding:2px 7px;
  margin-left:5px
}
.categories {
  display:flex;
  gap:9px;
  overflow:auto;
  margin-bottom:22px
}
.cat {
  border:1px solid var(--line);
  background:transparent;
  color:var(--muted);
  border-radius:30px;
  padding:10px 17px;
  white-space:nowrap;
  cursor:pointer
}
.cat.active {
  background:var(--dark);
  color:#fff
}
.grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:17px
}
.product {
  background:var(--paper);
  border:1px solid #ecece5;
  border-radius:17px;
  padding:17px;
  min-height:260px;
  display:flex;
  flex-direction:column
}
.product .pic {
  height:112px;
  border-radius:13px;
  background:#f0eee7;
  display:grid;
  place-items:center;
  font-size:58px;
  margin-bottom:16px;
  overflow:hidden
}
.product .pic img,.admin-emoji img,.image-preview img {
  width:100%;
  height:100%;
  object-fit:cover
}
.product h3 {
  font:600 18px 'Playfair Display';
  margin:0 0 5px
}
.product p {
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  margin:0 0 13px;
  min-height:36px
}
.product-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:auto
}
.product-foot strong {
  color:var(--dark)
}
.add,.primary {
  border:0;
  border-radius:10px;
  padding:10px 14px;
  background:var(--sage);
  color:#fff;
  font-weight:700;
  cursor:pointer
}
.empty {
  padding:30px;
  text-align:center;
  color:var(--muted);
  background:#ffffff66;
  border-radius:14px
}
.backdrop {
  position:fixed;
  inset:0;
  background:#26362e88;
  display:grid;
  place-items:center;
  padding:20px;
  z-index:5
}
.modal {
  background:var(--paper);
  border-radius:20px;
  padding:30px;
  max-width:520px;
  width:100%;
  position:relative;
  box-shadow:0 25px 70px #0003;
  max-height:90vh;
  overflow:auto
}
.modal h2 {
  font:600 29px 'Playfair Display';
  margin:7px 0 20px
}
.modal>small {
  font-size:10px;
  letter-spacing:.18em;
  color:#809087;
  font-weight:700
}
.close {
  position:absolute;
  right:18px;
  top:13px;
  background:none;
  border:0;
  font-size:23px;
  color:var(--muted);
  cursor:pointer
}
.cart-line {
  padding:13px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center
}
.cart-name {
  display:flex;
  align-items:center;
  gap:7px
}
.cart-name img {
  width:32px;
  height:32px;
  object-fit:cover;
  border-radius:6px
}
.qty {
  display:flex;
  gap:8px;
  align-items:center
}
.qty button {
  border:1px solid #dfe5df;
  background:#f4f7f3;
  border-radius:6px;
  width:25px;
  height:25px;
  cursor:pointer
}
.qty strong {
  margin-left:7px
}
.remove {
  color:var(--red)!important;
  border:0!important;
  background:none!important
}
.total {
  display:flex;
  justify-content:space-between;
  padding:18px 0;
  font-size:17px
}
.full {
  width:100%;
  margin-top:5px
}
.hint {
  color:var(--muted);
  font-size:11px;
  text-align:center
}
.hint.left {
  text-align:left
}
.form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
label {
  display:block;
  font-size:12px;
  font-weight:700;
  color:var(--dark);
  margin:12px 0
}
input,select,textarea {
  display:block;
  width:100%;
  margin-top:7px;
  border:1px solid var(--line);
  border-radius:9px;
  padding:12px;
  background:#fafaf6;
  font:14px 'DM Sans';
  color:var(--ink)
}
textarea {
  min-height:92px;
  resize:vertical
}
input[type=file] {
  padding:9px
}
.custom-cake {
  width:100%;
  border:1px solid #d8e2d9;
  border-radius:14px;
  padding:16px;
  background:#eef5ee;
  color:#3e574c;
  text-align:left;
  font-weight:700;
  cursor:pointer;
  margin-bottom:22px
}
.custom-cake span {
  display:block;
  font-size:12px;
  font-weight:400;
  color:#77807b;
  margin-top:4px
}
.admin-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin:45px 0 28px
}
.admin-head h1 {
  color:var(--ink);
  font-size:42px
}
.view-link,.back-link {
  color:var(--sage);
  text-decoration:none;
  font-weight:700;
  margin-right:15px
}
.logout {
  border:0;
  background:transparent;
  color:var(--red);
  font-weight:700;
  cursor:pointer
}
.toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:22px 0 15px
}
.admin-list {
  margin-top:12px
}
.admin-row {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:14px;
  padding:13px 16px;
  margin:10px 0;
  display:flex;
  align-items:center;
  gap:13px
}
.admin-emoji {
  font-size:30px;
  background:#f0eee7;
  border-radius:9px;
  padding:8px;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  overflow:hidden
}
.admin-info {
  flex:1
}
.admin-info strong,.admin-info small {
  display:block
}
.admin-info small {
  color:var(--muted);
  font-size:12px;
  margin-top:4px
}
.pill {
  border-radius:20px;
  padding:6px 10px;
  font-size:11px;
  font-weight:700
}
.pill.on {
  background:#e9f5ec;
  color:#4a9565
}
.pill.off {
  background:#f8e9e5;
  color:var(--red)
}
.secondary,.danger {
  border:1px solid var(--line);
  border-radius:8px;
  background:transparent;
  padding:8px 10px;
  color:var(--dark);
  cursor:pointer
}
.danger {
  color:var(--red)
}
.login {
  max-width:410px;
  margin:70px auto;
  background:var(--paper);
  border-radius:20px;
  padding:38px;
  box-shadow:0 18px 50px #3e574c12
}
.login .brand-mark {
  display:grid;
  width:40px;
  height:40px;
  margin-bottom:24px
}
.login h1 {
  font-size:35px;
  margin-bottom:10px
}
.login p {
  color:var(--muted)
}
.error {
  color:var(--red);
  font-size:12px;
  min-height:18px
}
.settings-card {
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:28px;
  background:#edf3ed;
  border:1px solid #d8e2d9;
  border-radius:17px;
  padding:22px;
  margin-bottom:25px
}
.settings-card h2 {
  font:600 25px 'Playfair Display';
  margin:8px 0
}
.settings-card p {
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  margin:0
}
.settings-card form {
  margin-top:-12px
}
.settings-card .primary {
  margin-top:6px
}
.setting-note,.field-help {
  font-size:11px!important;
  color:var(--muted);
  line-height:1.45
}
.field-help {
  margin:0 0 12px
}
.image-preview {
  display:block;
  width:100%;
  height:100px;
  margin-top:8px;
  border-radius:10px;
  background:#f0eee7;
  overflow:hidden;
  text-align:center;
  font-size:48px;
  line-height:100px
}
.image-preview img {
  display:block
}
.toast {
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translate(-50%,20px);
  background:var(--dark);
  color:#fff;
  border-radius:30px;
  padding:13px 20px;
  font-size:13px;
  opacity:0;
  pointer-events:none;
  transition:.25s;
  z-index:10
}
.toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
@media(max-width:700px) {
  .app-shell {
  padding:0 17px 60px
}
.hero {
  padding:32px 25px;
  min-height:300px
}
.hero h1 {
  font-size:39px
}
.hero-cake {
  width:130px;
  height:130px;
  font-size:75px;
  border-width:8px
}
.grid {
  grid-template-columns:1fr
}
.admin-head {
  align-items:flex-start;
  flex-direction:column;
  gap:15px
}
.admin-head h1 {
  font-size:34px
}
.admin-row {
  flex-wrap:wrap
}
.admin-info {
  min-width:calc(100% - 70px)
}
.pill {
  margin-left:70px
}
.form-row,.settings-card {
  grid-template-columns:1fr
}
.settings-card form {
  margin-top:0
}
.heading h2 {
  font-size:24px
}
.status {
  font-size:0
}
.status i {
  font-size:initial
}
.cart-line {
  align-items:flex-start;
  flex-direction:column
}
.qty {
  align-self:flex-end
}

}

.heading-actions {
  display:flex;
  align-items:center;
  gap:10px
}
.language-picker {
  display:flex;
  align-items:center;
  gap:5px;
  margin:0;
  color:var(--dark);
  font-weight:700
}
.language-picker select {
  width:auto;
  margin:0;
  padding:10px 30px 10px 10px;
  background:#fff;
  border-radius:10px;
  font-size:12px
}
@media(max-width:700px) {
  .heading-actions {
  align-items:flex-end;
  flex-direction:column;
  gap:7px
}
.language-picker select {
  max-width:205px
}

}
