:root {
  --bg: #f6efe5;
  --panel: rgba(255, 252, 247, 0.85);
  --panel-strong: #fffaf1;
  --text: #2f241c;
  --muted: #7d6756;
  --line: rgba(88, 61, 38, 0.14);
  --accent: #a54d17;
  --accent-soft: #f4b68a;
  --accent-deep: #6f2b11;
  --olive: #7d8f46;
  --warm: #d17f23;
  --danger: #b33c2e;
  --shadow: 0 20px 60px rgba(88, 61, 38, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 182, 138, 0.55), transparent 28%),
    radial-gradient(circle at top right, rgba(125, 143, 70, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf5ee 0%, var(--bg) 100%);
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

.sales-page {
  min-height: 100vh;
  padding: 26px 24px 44px;
  background:
    radial-gradient(circle at 18% 12%, rgba(244, 182, 138, 0.46), transparent 26%),
    radial-gradient(circle at 84% 8%, rgba(111, 43, 17, 0.16), transparent 24%),
    linear-gradient(180deg, #fff9f0 0%, #f6e7d7 100%);
}

.sales-header {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sales-mantra {
  max-width: 680px;
  margin: 0;
  color: var(--accent-deep);
  font-family: "Luckiest Guy", "Fraunces", serif;
  font-size: clamp(42px, 8vw, 96px);
  line-height: 0.82;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    0 2px 0 #ffe6b9,
    0 12px 28px rgba(111, 43, 17, 0.18);
}

.admin-access-button,
.sales-hero-action,
.buy-button,
.quantity-control button {
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.admin-access-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: rgba(47, 22, 13, 0.58);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(47, 22, 13, 0.18);
}

.sales-main {
  max-width: 1180px;
  margin: 0 auto;
}

.sales-hero {
  display: grid;
  gap: 22px;
}

.sales-hero-copy,
.sales-carousel {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sales-hero-copy {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 30px 42px;
  text-align: center;
  color: #fffaf1;
  background:
    radial-gradient(circle at 86% 74%, rgba(244, 182, 138, 0.16) 0 10%, transparent 11% 100%),
    radial-gradient(circle at 86% 74%, transparent 0 21%, rgba(244, 182, 138, 0.10) 22% 31%, transparent 32% 100%),
    linear-gradient(145deg, #34150d 0%, #6f2b11 62%, #a54d17 100%);
}

.sales-hero-copy .eyebrow {
  color: #ffd16c;
}

.sales-hero-copy h1 {
  max-width: 820px;
  font-family: "Inter", sans-serif;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: 0;
}

.sales-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 50px;
  justify-self: center;
  margin-top: 0;
  padding: 0 22px;
  border-radius: 999px;
  background: #ffd16c;
  color: #35170d;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.sales-carousel {
  position: relative;
  background: #2f160d;
}

.sales-carousel-track {
  display: flex;
  width: max-content;
  animation: salesCarousel 32s linear infinite;
}

.sales-carousel-track img {
  flex: 0 0 auto;
  width: clamp(260px, 30vw, 380px);
  height: 320px;
  min-height: 0;
  display: block;
  object-fit: cover;
}

@keyframes salesCarousel {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.sales-menu {
  margin-top: 44px;
}

.sales-section-title {
  max-width: 680px;
  margin-bottom: 22px;
}

.sales-section-title h2 {
  font-family: "Inter", sans-serif;
  font-size: 36px;
}

.sales-section-title p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  grid-template-rows: 270px 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.88);
  box-shadow: 0 18px 42px rgba(88, 61, 38, 0.12);
}

.product-media {
  position: relative;
  overflow: hidden;
  background: #2f160d;
}

.product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-media span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(47, 22, 13, 0.84);
  color: #fff7ec;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.product-body h3 {
  font-family: "Inter", sans-serif;
  font-size: 20px;
}

.product-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.product-footer {
  display: grid;
  gap: 12px;
}

.product-footer strong {
  color: var(--accent-deep);
  font-size: 20px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fffaf1;
}

.quantity-control button {
  width: 40px;
  height: 42px;
  background: transparent;
  color: var(--accent-deep);
  font-size: 22px;
  font-weight: 900;
}

.quantity-control button:hover,
.admin-access-button:hover,
.sales-hero-action:hover,
.buy-button:hover {
  transform: translateY(-1px);
}

.quantity-control span {
  text-align: center;
  font-weight: 900;
  color: var(--text);
}

.order-card {
  width: 100%;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(47, 22, 13, 0.94);
  color: #fffaf1;
  box-shadow: 0 22px 60px rgba(47, 22, 13, 0.28);
}

.order-card span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 250, 241, 0.66);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-actions strong {
  min-width: 96px;
  text-align: right;
  color: #ffd16c;
  font-size: 22px;
}

.buy-button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d17f23, #ffd16c);
  color: #32150c;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.sales-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 34px;
  padding-top: 16px;
  text-align: center;
}

.sales-footer .admin-access-button {
  justify-self: end;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-brand img {
  width: min(320px, 72vw);
  height: 82px;
  object-fit: contain;
}

.sales-social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sales-social-links a {
  color: rgba(47, 22, 13, 0.68);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.sales-social-links a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.login-screen {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(420px, 1.08fr);
  min-height: 100vh;
  background: #fffaf5;
}

.login-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
  color: #fffaf1;
  background:
    radial-gradient(circle at 88% 72%, rgba(244, 182, 138, 0.18) 0 10%, transparent 11% 100%),
    radial-gradient(circle at 88% 72%, transparent 0 21%, rgba(244, 182, 138, 0.10) 22% 31%, transparent 32% 100%),
    linear-gradient(145deg, #3a170d 0%, #6f2b11 58%, #a54d17 100%);
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 60px solid rgba(255, 250, 241, 0.08);
  border-radius: 50%;
}

.login-brand,
.login-copy,
.login-metric {
  position: relative;
  z-index: 1;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  box-shadow: 0 16px 36px rgba(47, 36, 28, 0.24);
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 20px;
}

.login-brand span {
  margin-top: 4px;
  color: rgba(255, 250, 241, 0.74);
  font-size: 13px;
}

.login-copy {
  max-width: 620px;
}

.login-full-logo {
  display: block;
  width: min(420px, 92%);
  height: auto;
  margin: 0 0 34px;
}

.login-copy .eyebrow {
  color: #f4b68a;
}

.login-copy h1 {
  max-width: 620px;
  font-family: "Inter", sans-serif;
  font-size: 56px;
  line-height: 1.06;
  font-weight: 700;
}

.login-copy p:last-child {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255, 250, 241, 0.78);
  font-size: 17px;
  line-height: 1.7;
}

.login-metric {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 330px;
}

.login-metric strong {
  color: #ffd16c;
  font-size: 38px;
}

.login-metric span {
  color: rgba(255, 250, 241, 0.78);
  font-size: 13px;
  line-height: 1.4;
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    radial-gradient(circle at 78% 18%, rgba(244, 182, 138, 0.20), transparent 24%),
    linear-gradient(180deg, #fffaf5 0%, #f8efe7 100%);
}

.login-card {
  width: min(100%, 460px);
}

.login-back {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 0;
  margin-bottom: 56px;
}

.login-card h2 {
  margin-bottom: 14px;
  font-family: "Inter", sans-serif;
  font-size: 36px;
  font-weight: 600;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.login-form .primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  box-shadow: 0 18px 34px rgba(165, 77, 23, 0.24);
}

.login-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 32px 26px;
  border-right: 1px solid var(--line);
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.admin-credit {
  display: inline-flex;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-credit:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
}

h1 {
  font-size: 32px;
  line-height: 1;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 16px;
}

.sidebar-copy,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-filter {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px var(--line);
}

.sidebar-filter label {
  gap: 10px;
}

.nav-link,
.ghost-button,
.primary-button,
.remove-item,
.pagination-button {
  border: 0;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.nav-link {
  text-align: left;
  padding: 14px 16px;
  background: transparent;
  border-radius: 18px;
  color: var(--text);
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, rgba(165, 77, 23, 0.14), rgba(209, 127, 35, 0.18));
  color: var(--accent-deep);
}

.sidebar-tools {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.ghost-button,
.file-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
}

.ghost-button:hover,
.primary-button:hover,
.remove-item:hover {
  transform: translateY(-1px);
}

.ghost-button.danger {
  color: var(--danger);
}

.main {
  padding: 30px;
}

.section {
  display: none;
  gap: 24px;
}

.section.active {
  display: grid;
}

.hero-card,
.panel,
.kpi-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.kpi-grid,
.panel-grid {
  display: grid;
  gap: 18px;
}

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

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

.panel-grid.single {
  grid-template-columns: 1fr;
}

.kpi-card {
  border-radius: 24px;
  padding: 22px;
}

.kpi-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.kpi-card strong {
  font-size: 30px;
  color: var(--accent-deep);
}

.panel {
  border-radius: 28px;
  padding: 24px;
}

.panel-head,
.builder-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(125, 143, 70, 0.12);
  color: var(--olive);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag.warm {
  background: rgba(209, 127, 35, 0.12);
  color: var(--warm);
}

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

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

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 16px;
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  color: var(--text);
}

input:focus,
select:focus {
  outline: 2px solid rgba(165, 77, 23, 0.18);
  border-color: rgba(165, 77, 23, 0.44);
}

.actions {
  display: flex;
  justify-content: flex-end;
}

.primary-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 12px 28px rgba(165, 77, 23, 0.25);
}

.ingredient-builder {
  background: rgba(125, 143, 70, 0.08);
  border-radius: 24px;
  padding: 16px;
  border: 1px solid rgba(125, 143, 70, 0.12);
}

.builder-list {
  display: grid;
  gap: 12px;
}

.recipe-item-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 10px;
}

.remove-item {
  min-width: 96px;
  border-radius: 16px;
  background: rgba(179, 60, 46, 0.12);
  color: var(--danger);
  font-weight: 700;
}

.table-host {
  display: grid;
  gap: 12px;
}

.table-scroll {
  max-height: 430px;
  overflow: auto;
  border-radius: 18px;
  scrollbar-color: rgba(165, 77, 23, 0.42) transparent;
}

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

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-strong);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.suggested-row {
  background: rgba(165, 77, 23, 0.06);
}

.empty-state {
  padding: 22px;
  border-radius: 20px;
  background: rgba(125, 143, 70, 0.08);
  color: var(--muted);
  text-align: center;
}

.mini-list {
  display: grid;
  gap: 6px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(165, 77, 23, 0.08);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-action {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(165, 77, 23, 0.1);
  color: var(--accent-deep);
  font-weight: 700;
}

.table-action.danger {
  background: rgba(179, 60, 46, 0.12);
  color: var(--danger);
}

.pagination-info,
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pagination-button {
  min-width: 34px;
  min-height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pagination-button.active {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: white;
  box-shadow: 0 10px 20px rgba(165, 77, 23, 0.18);
}

.pagination-ellipsis {
  min-width: 24px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .sales-carousel-track img {
    width: 320px;
    height: 300px;
  }

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

  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 420px;
    padding: 36px;
  }

  .login-copy h1 {
    font-size: 44px;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .kpi-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sales-page {
    padding: 18px 14px 32px;
  }

  .sales-header {
    margin-bottom: 14px;
  }

  .sales-mantra {
    max-width: 360px;
    font-size: clamp(42px, 14vw, 58px);
  }

  .sales-hero-copy {
    padding: 24px 20px;
  }

  .sales-hero-copy h1 {
    font-size: 34px;
  }

  .sales-carousel-track img {
    width: 240px;
    height: 240px;
  }

  .sales-section-title h2 {
    font-size: 30px;
  }

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

  .product-card {
    grid-template-rows: 320px 1fr;
  }

  .order-card,
  .order-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .order-actions {
    width: 100%;
    gap: 10px;
  }

  .order-actions strong {
    min-width: 0;
    text-align: left;
  }

  .buy-button {
    width: 100%;
  }

  .login-brand-panel {
    min-height: auto;
    gap: 72px;
    padding: 28px 22px;
  }

  .login-copy h1 {
    font-size: 36px;
  }

  .login-form-panel {
    padding: 34px 22px;
  }

  .login-back {
    margin-bottom: 34px;
  }

  .login-card h2 {
    font-size: 30px;
  }

  .main {
    padding: 18px;
  }

  .panel,
  .hero-card,
  .kpi-card {
    border-radius: 22px;
    padding: 18px;
  }

  .form-grid,
  .recipe-item-row {
    grid-template-columns: 1fr;
  }
}
.hero-logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  display: block;
  background: transparent;
}

[hidden],
.sales-page[hidden],
.login-screen[hidden],
.shell[hidden] {
  display: none !important;
}
