:root {
  --cream: #fff8e7;
  --cream-dark: #f2e3c1;
  --paper: #fffdf7;
  --brown: #4a2c20;
  --brown-soft: #74513f;
  --red: #02667d;
  --red-dark: #014c5e;
  --orange: #e96b19;
  --orange-soft: #fff0e4;
  --ink: #24211f;
  --muted: #706862;
  --green: #287a4d;
  --green-soft: #e6f5ec;
  --yellow: #b86800;
  --yellow-soft: #fff4d6;
  --danger: #b42318;
  --danger-soft: #feeceb;
  --line: #ded4c5;
  --shadow: 0 12px 35px rgba(74, 44, 32, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(233, 107, 25, 0.11), transparent 28rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--red);
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(127, 29, 29, 0.12);
  background: rgba(255, 248, 231, 0.95);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brown);
  text-decoration: none;
}

.brand-logo,
.logo-placeholder {
  flex: 0 0 auto;
  width: 58px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--brown);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
  background: var(--red);
}

.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.mobile-only {
  display: none;
}

main {
  min-height: 70vh;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.narrow {
  width: min(760px, calc(100% - 32px));
}

.hero {
  display: grid;
  min-height: 570px;
  align-items: center;
  gap: 42px;
  grid-template-columns: 1.08fr 0.92fr;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.13;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 84px);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 45px);
}

h3 {
  font-size: 23px;
}

.lead {
  max-width: 680px;
  color: var(--brown-soft);
  font-size: clamp(20px, 2.7vw, 27px);
}

.hero-actions,
.actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--red);
  box-shadow: 0 7px 18px rgba(127, 29, 29, 0.18);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--red);
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--red);
}

.button.orange {
  background: var(--orange);
}

.button.ghost {
  color: var(--brown);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
}

.button.danger {
  background: var(--danger);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  border-radius: 36px 36px 130px 36px;
  color: white;
  background: #02667d;
  box-shadow: var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
}

.hero-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::before {
  width: 330px;
  height: 330px;
}

.hero-visual::after {
  width: 245px;
  height: 245px;
}

.hero-monogram {
  z-index: 1;
  font-family: Georgia, serif;
  font-size: 104px;
  font-weight: 900;
}

.hero-card {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  width: min(290px, calc(100% - 44px));
  padding: 18px;
  border-radius: 16px;
  color: var(--brown);
  background: rgba(255, 253, 247, 0.95);
}

.hero-card strong {
  display: block;
  font-size: 19px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 22px;
  border: 1px solid rgba(74, 44, 32, 0.11);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 25px rgba(74, 44, 32, 0.07);
}

.card h3:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.feature-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  color: white;
  background: var(--orange);
  font-weight: 900;
}

.campaign-card {
  position: relative;
  overflow: hidden;
}

.campaign-card::after {
  position: absolute;
  top: -38px;
  right: -38px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--orange-soft);
  content: "";
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.badge.orange {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.badge.red {
  color: var(--danger);
  background: var(--danger-soft);
}

.badge.neutral {
  color: var(--brown-soft);
  background: #eee8de;
}

.notice {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 5px solid var(--orange);
  border-radius: 10px;
  background: var(--orange-soft);
}

.notice.success {
  border-color: var(--green);
  background: var(--green-soft);
}

.notice.danger {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.category-tab {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  background: var(--paper);
  font-weight: 800;
}

.category-tab.active {
  color: white;
  border-color: var(--red);
  background: var(--red);
}

.category-tab strong {
  margin-left: 6px;
}

.legal-page .card + .card {
  margin-top: 20px;
}

.legal-sections h3:not(:first-child) {
  margin-top: 28px;
}

.legal-missing {
  color: var(--danger);
  font-weight: 750;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field legend {
  color: var(--brown);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #cfc3b2;
  border-radius: 11px;
  color: var(--ink);
  background: white;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(233, 107, 25, 0.2);
  border-color: var(--orange);
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-field input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

.product-row {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto;
}

.product-row:last-child {
  border-bottom: 0;
}

.product-row h3,
.product-row p {
  margin-bottom: 4px;
}

.price {
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--red);
  background: white;
  font-size: 24px;
  font-weight: 800;
}

.quantity output {
  min-width: 28px;
  text-align: center;
  font-weight: 900;
}

.order-layout,
.admin-layout {
  display: grid;
  align-items: start;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 350px;
}

.order-summary,
.admin-sidebar {
  position: sticky;
  top: 96px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}

.summary-line.total {
  margin-top: 8px;
  padding-top: 15px;
  border-top: 2px solid var(--brown);
  color: var(--red);
  font-size: 23px;
  font-weight: 900;
}

.stat {
  min-height: 138px;
}

.stat strong {
  display: block;
  margin: 7px 0;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 34px;
}

.progress {
  height: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9e0d3;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.progress.orange > span {
  background: var(--orange);
}

.progress.red > span {
  background: var(--danger);
}

.admin-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 70px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.admin-sidebar {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 17px;
  background: var(--brown);
}

.admin-sidebar a {
  padding: 11px 12px;
  border-radius: 10px;
  color: #fff9ed;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: var(--brown);
  background: var(--cream);
}

.admin-content {
  min-width: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

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

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid #ece5da;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--brown);
  background: #f8f1e5;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.list-item p,
.list-item strong {
  margin: 0;
}

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

.text-small {
  font-size: 13px;
}

.empty {
  padding: 34px 20px;
  color: var(--muted);
  text-align: center;
}

.qr-image {
  display: block;
  width: 190px;
  height: 190px;
  margin: 15px auto;
  padding: 8px;
  border: 1px solid var(--line);
  background: white;
  image-rendering: pixelated;
}

.qr-card {
  text-align: center;
}

.loyalty-balance {
  padding: 28px;
  border-radius: 20px;
  color: white;
  background: linear-gradient(135deg, var(--red), #b9471e);
}

.loyalty-balance strong {
  display: block;
  margin: 8px 0;
  font-family: Georgia, serif;
  font-size: 54px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 12px;
  color: white;
  background: var(--brown);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: grid;
  gap: 24px;
  padding: 40px clamp(18px, 5vw, 72px);
  color: #f7ebd4;
  background: var(--brown);
  grid-template-columns: 1fr auto;
}

.footer-logo {
  display: block;
  width: 92px;
  height: 92px;
  margin-bottom: 12px;
  border-radius: 16px;
  object-fit: cover;
}

.site-footer a {
  display: block;
  margin-bottom: 7px;
  color: white;
}

.privacy {
  max-width: 850px;
  margin: 0;
  color: #d9c8b6;
  font-size: 13px;
  grid-column: 1 / -1;
}

.cookie-info {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  width: min(560px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cookie-info p {
  margin: 0 0 12px;
}

.print-only {
  display: none;
}

@media (max-width: 980px) {
  .mobile-only {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    border-radius: 9px;
  }

  .hero {
    min-height: auto;
    padding: 28px 0;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 340px;
  }

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

  .order-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .admin-sidebar a {
    flex: 0 0 auto;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 70px;
    padding: 8px 14px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand small {
    display: none;
  }

  .page {
    width: min(100% - 24px, 1180px);
    padding: 30px 0 52px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 300px;
    border-radius: 28px 28px 88px 28px;
  }

  .hero-monogram {
    font-size: 78px;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .full {
    grid-column: auto;
  }

  .section-heading {
    display: block;
  }

  .section-heading .button {
    margin-top: 14px;
  }

  .product-row {
    grid-template-columns: 1fr;
  }

  .quantity {
    justify-content: flex-end;
  }

  .button {
    min-height: 54px;
  }

  .admin-shell {
    width: min(100% - 18px, 1440px);
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    color: #000;
    background: white;
    font-size: 11px;
  }

  .site-header,
  .site-footer,
  .admin-sidebar,
  .admin-topbar,
  .no-print,
  .toast {
    display: none !important;
  }

  .admin-shell,
  .page {
    width: 100%;
    padding: 0;
  }

  .print-only {
    display: block;
  }

  .card,
  .table-wrap {
    border: 1px solid #777;
    box-shadow: none;
  }

  th,
  td {
    padding: 6px;
    border-color: #aaa;
  }
}
