:root {
  color-scheme: light;
  --olive: #47563a;
  --olive-deep: #26331e;
  --gold: #c89545;
  --blush: #efc8bc;
  --petal: #fff8ef;
  --cream: #fbf3e7;
  --paper: #fffdf8;
  --ink: #25251f;
  --muted: #6f6a5f;
  --line: #ead6bb;
  --shadow: 0 18px 48px rgba(71, 86, 58, .12);
  --radius: 8px;
  font-family: "Inter", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.cart-open,
body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.announcement {
  background: var(--olive);
  color: #fff9e8;
  text-align: center;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .75rem;
  padding: .55rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, .92);
  border-bottom: 1px solid rgba(234, 214, 187, .72);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.brand img {
  width: 172px;
  border-radius: 0;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: clamp(1rem, 3vw, 2.3rem);
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
}

.nav-links a {
  padding: .8rem .1rem;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.icon-btn {
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--olive-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--line);
  background: var(--cream);
}

.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 19px;
  height: 19px;
  border-radius: 99px;
  background: var(--gold);
  color: white;
  font-size: .72rem;
  display: grid;
  place-items: center;
}

.cart-count[hidden] {
  display: none;
}

.menu-btn {
  display: none;
}

.hero {
  min-height: clamp(500px, 70vh, 700px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 75% 30%, rgba(239, 200, 188, .32), transparent 28%),
    linear-gradient(105deg, rgba(255, 253, 248, .96) 0%, rgba(255, 248, 238, .95) 41%, rgba(255, 248, 238, .58) 100%),
    url("/assets/images/hero-bouquet.jpg") right center / min(58vw, 690px) no-repeat,
    var(--cream);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, var(--paper) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 500px;
  padding-block: 3.5rem;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .77rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--olive);
  line-height: .98;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 620px;
  font-size: clamp(3.5rem, 8vw, 7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-copy p:not(.eyebrow),
.lead {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.03rem;
}

.hero-actions,
.product-actions,
.search-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--olive);
  background: var(--olive);
  color: #fff;
  border-radius: 6px;
  min-height: 46px;
  padding: .9rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--olive-deep);
}

.btn.secondary {
  color: var(--gold);
  border-color: var(--gold);
  background: transparent;
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  color: white;
  background: var(--gold);
}

.btn.small {
  min-height: 38px;
  padding: .72rem .9rem;
}

.btn.wide {
  width: 100%;
}

.text-link {
  color: var(--olive);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section-heading {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 2rem;
}

.section-heading p:not(.eyebrow) {
  margin: .75rem 0 0;
  color: var(--muted);
}

.collection-grid,
.product-grid,
.bundle-grid {
  display: grid;
  gap: 1rem;
}

.collection-grid {
  grid-template-columns: repeat(6, 1fr);
}

.collection-card,
.product-card,
.mini-card,
.feature {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .88);
  border-radius: var(--radius);
}

.collection-card {
  overflow: hidden;
  text-align: center;
  padding-bottom: 1.1rem;
}

.collection-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.collection-card strong {
  display: block;
  margin: .95rem .75rem .55rem;
  color: var(--olive-deep);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .72rem;
  line-height: 1.35;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.4fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(120deg, #fffdf8, #fff7ec);
}

.about-band img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.about-copy {
  padding: clamp(2rem, 5vw, 4.2rem);
  display: grid;
  align-content: center;
  gap: 1rem;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.filters {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding-bottom: .35rem;
  scrollbar-width: thin;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--olive);
  border-radius: 999px;
  padding: .7rem 1rem;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
  font-size: .78rem;
}

.chip.is-active,
.chip:hover,
.chip:focus-visible {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.search {
  min-width: min(100%, 310px);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .85rem 1rem;
  color: var(--ink);
}

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

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

.product-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.product-image {
  position: relative;
  background: var(--cream);
}

.product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-image span {
  position: absolute;
  left: .75rem;
  top: .75rem;
  background: rgba(255, 253, 248, .9);
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .72rem;
  font-weight: 700;
}

.product-copy {
  padding: 1rem 1rem .4rem;
}

.product-copy p {
  margin: 0 0 .45rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 700;
}

.product-copy span {
  display: block;
  color: var(--olive-deep);
  font-weight: 700;
  margin-top: .65rem;
}

.product-actions {
  justify-content: space-between;
  padding: .85rem 1rem 1rem;
}

.promise-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.promise-strip span {
  background: var(--cream);
  color: var(--olive);
  text-align: center;
  padding: 1.1rem .75rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.promise-strip.compact {
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.site-footer {
  background: var(--olive-deep);
  color: #fdf7ea;
  padding-block: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.footer-grid img {
  width: 142px;
  mix-blend-mode: screen;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: end;
  color: #efe0c9;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.cart-open .cart-drawer {
  display: block;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.checkout-modal[hidden] {
  display: none !important;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(38, 51, 30, .42);
}

.checkout-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: grid;
  gap: .9rem;
}

.checkout-card label {
  display: grid;
  gap: .4rem;
}

.checkout-card label span {
  color: var(--olive-deep);
  font-weight: 700;
  font-size: .9rem;
}

.checkout-card input,
.checkout-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem .9rem;
  background: #fff;
  color: var(--ink);
}

.checkout-note {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.checkout-error {
  border: 1px solid #f3c5bd;
  background: #fff4f1;
  color: #9d2f22;
  border-radius: var(--radius);
  padding: .75rem;
}

.checkout-result {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  padding-block: 3rem;
}

.checkout-result img {
  width: 180px;
}

.checkout-result h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.checkout-result p:not(.eyebrow) {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 51, 30, .38);
}

.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(430px, 100%);
  height: 100%;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
}

.cart-head,
.cart-total,
.quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.cart-list {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: .85rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem;
  background: #fff;
}

.cart-item img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item span,
.cart-item small {
  display: block;
  color: var(--muted);
  margin-top: .25rem;
}

.quantity {
  justify-content: start;
  margin-top: .55rem;
}

.quantity button {
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--olive);
  border-radius: 999px;
  min-width: 30px;
  height: 30px;
  cursor: pointer;
}

.quantity .remove {
  width: auto;
  padding-inline: .75rem;
}

.empty {
  color: var(--muted);
  text-align: center;
  margin-top: 3rem;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2rem, 6vw, 5rem);
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  margin-bottom: 1rem;
}

.product-info {
  display: grid;
  align-content: start;
  gap: 1.1rem;
}

.product-info h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.product-info p {
  color: var(--muted);
  line-height: 1.7;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: .75rem;
}

.price-row strong {
  color: var(--olive-deep);
  font-size: 1.8rem;
}

.price-row span {
  color: var(--muted);
  text-decoration: line-through;
}

.note-field {
  display: grid;
  gap: .55rem;
}

.note-field span {
  color: var(--olive-deep);
  font-weight: 700;
}

.note-field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem;
  min-height: 122px;
  resize: vertical;
  background: #fff;
}

.specs {
  margin: 0;
  display: grid;
  gap: .7rem;
}

.specs div {
  border-top: 1px solid var(--line);
  padding-top: .7rem;
}

.specs dt {
  color: var(--olive);
  font-weight: 700;
}

.specs dd {
  margin: .25rem 0 0;
  color: var(--muted);
}

.product-support {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1.2rem;
  align-items: stretch;
  padding-bottom: clamp(2rem, 6vw, 5rem);
}

.product-support article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #fffdf8, #fff3e4);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.product-support p {
  color: var(--muted);
  line-height: 1.7;
}

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

.mini-card {
  padding: .8rem;
  display: grid;
  gap: .4rem;
  align-content: start;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.mini-card span,
.mini-card small {
  color: var(--gold);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.recommended {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

@media (max-width: 940px) {
  .nav {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .menu-btn {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 121px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.4rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .menu-open .nav-links {
    display: flex;
  }

  .hero {
    background:
      linear-gradient(105deg, rgba(255, 253, 248, .98) 0%, rgba(255, 248, 238, .9) 100%),
      url("/assets/images/hero-bouquet.jpg") center bottom / min(86vw, 520px) no-repeat,
      var(--cream);
    align-items: start;
    min-height: 760px;
  }

  .hero-copy {
    padding-top: 3rem;
  }

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

  .about-band,
  .product-detail,
  .product-support,
  .toolbar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .announcement {
    font-size: .62rem;
    letter-spacing: .12em;
  }

  .nav {
    min-height: 80px;
  }

  .brand img {
    width: 130px;
  }

  .nav-links {
    top: 109px;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.4rem);
  }

  .hero {
    min-height: 680px;
  }

  .collection-grid,
  .product-grid,
  .small-grid,
  .bundle-grid,
  .promise-strip,
  .promise-strip.compact {
    grid-template-columns: 1fr;
  }

  .product-actions {
    align-items: stretch;
  }

  .product-actions .btn,
  .product-actions .text-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .search {
    width: 100%;
  }
}

.admin-page {
  background:
    linear-gradient(180deg, rgba(251, 243, 231, .8), rgba(255, 253, 248, 1) 28rem),
    var(--paper);
}

.admin-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1rem;
}

.admin-hero h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
}

.admin-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.admin-status {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
}

.admin-status span,
.pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--olive);
  border-radius: 999px;
  padding: .65rem .9rem;
  font-weight: 700;
  font-size: .78rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .94);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.admin-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.compact-form {
  max-width: 420px;
}

.form-head,
.form-actions,
.admin-row-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.admin-form label,
.admin-form fieldset {
  display: grid;
  gap: .45rem;
  border: 0;
  margin: 0;
  padding: 0;
}

.admin-form span,
.admin-form legend {
  color: var(--olive-deep);
  font-weight: 700;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: .85rem .9rem;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

.category-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.check-pill {
  display: inline-flex;
}

.check-pill input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.check-pill span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .62rem .82rem;
  background: #fff;
  color: var(--olive);
  cursor: pointer;
  font-size: .78rem;
}

.check-pill input:checked + span {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.image-help {
  color: var(--muted);
  font-size: .86rem;
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.image-preview p {
  color: var(--muted);
  margin: 0;
}

.image-preview figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: .65rem;
  display: grid;
  gap: .45rem;
}

.image-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.image-preview figcaption {
  color: var(--muted);
  font-size: .78rem;
}

.image-preview button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--olive);
  min-height: 34px;
  cursor: pointer;
}

.admin-list {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}

.admin-product {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: .75rem;
}

.admin-product img {
  width: 84px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.admin-product strong,
.admin-product span,
.admin-product small {
  display: block;
}

.admin-product span {
  color: var(--gold);
  font-size: .84rem;
  font-weight: 500;
  margin-top: .25rem;
}

.admin-product small {
  color: var(--muted);
  margin-top: .35rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn.danger {
  border-color: #a5483f;
  background: #a5483f;
}

.btn.danger:hover,
.btn.danger:focus-visible {
  background: #743028;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  background: var(--olive-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: .9rem 1rem;
  box-shadow: var(--shadow);
  max-width: min(360px, calc(100% - 32px));
}

@media (max-width: 900px) {
  .admin-hero,
  .admin-grid,
  .admin-product {
    grid-template-columns: 1fr;
  }

  .admin-status,
  .admin-row-actions {
    justify-content: start;
  }
}

.admin-page:not(.admin-login-mode) .admin-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: #f3f4f6;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 14px;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 22px;
  color: #111827;
  font-weight: 700;
  font-size: 1.2rem;
}

.admin-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.admin-menu {
  display: grid;
  align-content: start;
  gap: 6px;
}

.admin-menu button {
  border: 0;
  background: transparent;
  color: #4b5563;
  border-radius: 10px;
  min-height: 42px;
  padding: 0 14px;
  text-align: left;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.admin-menu button:hover,
.admin-menu button.is-active {
  background: #1f2937;
  color: #fff;
}

.admin-sidebar-foot {
  border-top: 1px solid #e5e7eb;
  padding: 14px 12px 0;
  display: grid;
  gap: 4px;
  color: #6b7280;
  font-size: .8rem;
}

.admin-sidebar-foot strong {
  color: #111827;
}

.admin-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.admin-topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 28px;
  box-shadow: 0 1px 8px rgba(17, 24, 39, .05);
}

.admin-topbar h1 {
  font-size: 1.65rem;
}

.admin-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-profile span {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #374151;
  padding: .6rem .8rem;
  font-size: .82rem;
  font-weight: 500;
}

.admin-content {
  padding: 24px 28px 48px;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: grid;
  gap: 18px;
}

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

.metric-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
}

.metric-card span,
.metric-card small {
  color: #6b7280;
}

.metric-card span {
  font-weight: 500;
  font-size: .82rem;
}

.metric-card strong {
  color: #111827;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -.01em;
}

.dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 18px;
}

.card-title,
.table-toolbar,
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.card-title {
  margin-bottom: 16px;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-toolbar {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-search {
  min-width: min(320px, 100%);
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  min-height: 42px;
  padding: 0 .9rem;
  font: inherit;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f2f4;
  vertical-align: middle;
}

.admin-table th {
  background: #f9fafb;
  color: #6b7280;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-table td > small {
  display: block;
  color: #6b7280;
  margin-top: 4px;
  max-width: 300px;
  overflow-wrap: anywhere;
}

.product-cell {
  display: grid;
  grid-template-columns: 52px minmax(190px, 1fr);
  gap: 12px;
  align-items: center;
}

.product-cell img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
}

.product-cell strong,
.product-cell small {
  display: block;
}

.product-cell strong {
  color: #111827;
  font-weight: 500;
}

.product-cell small {
  color: #6b7280;
  margin-top: 4px;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-row-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.inline-row-actions button {
  border: 0;
  background: transparent;
  color: #2563eb;
  padding: 0;
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
}

.inline-row-actions button[data-delete] {
  color: #b42318;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  padding: .35rem .65rem;
  font-size: .78rem;
  font-weight: 500;
}

.status-pill.new {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-pill.in-progress {
  background: #fffbeb;
  color: #b45309;
}

.status-pill.completed {
  background: #ecfdf3;
  color: #067647;
}

.orders-table .order-items {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.orders-table .order-items span,
.orders-table .order-items small,
.order-note {
  display: block;
  color: #374151;
  overflow-wrap: anywhere;
}

.orders-table .order-items small,
.order-note {
  color: #6b7280;
  font-size: .82rem;
}

.table-count {
  color: #6b7280;
  font-size: .88rem;
}

.address-details {
  max-width: 260px;
  color: #374151;
}

.address-details summary {
  cursor: pointer;
  color: #2563eb;
  font-size: .84rem;
  user-select: none;
}

.address-details p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: .86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.table-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  white-space: nowrap;
}

.status-select-label {
  display: grid;
  gap: 5px;
  min-width: 160px;
}

.status-select-label span {
  color: #6b7280;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.status-select-label select {
  min-height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 2rem 0 .75rem;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}

.status-select-label select:focus {
  outline: 3px solid rgba(52, 70, 47, .16);
  border-color: #34462f;
}

.status-control {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.rider-link-field {
  display: grid;
  gap: 5px;
}

.rider-link-field span {
  color: #6b7280;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.rider-link-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 .75rem;
  font: inherit;
  font-size: .88rem;
}

.rider-link-field input:focus {
  outline: 3px solid rgba(52, 70, 47, .16);
  border-color: #34462f;
}

.table-row-actions button {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 .7rem;
  color: #374151;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.table-row-actions button[data-delete] {
  border-color: #fecaca;
  color: #b42318;
}

.table-footer {
  padding: 14px 20px;
  color: #6b7280;
}

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

.pager button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 28px 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #f0f2f4;
  border-radius: 12px;
  padding: 10px;
}

.rank-item > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
}

.rank-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 9px;
}

.rank-item strong,
.rank-item small {
  display: block;
}

.rank-item small {
  color: #6b7280;
  margin-top: 3px;
}

.empty-state {
  border: 1px dashed #d1d5db;
  border-radius: 14px;
  background: #f9fafb;
  padding: 28px;
  color: #6b7280;
}

.empty-state.inline {
  border: 0;
  background: transparent;
  padding: 12px;
}

.empty-state strong {
  display: block;
  color: #111827;
  margin-bottom: 6px;
}

.order-stack {
  display: grid;
  gap: 10px;
}

.order-stack.wide {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.order-card {
  display: grid;
  gap: 10px;
  border: 1px solid #f0f2f4;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.order-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-card p {
  margin: 0;
  color: #374151;
  display: grid;
  gap: 4px;
}

.order-card small {
  color: #6b7280;
}

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

.order-actions .status-select-label {
  width: 100%;
}

.tracking-admin-link {
  display: inline-flex;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: .84rem;
  text-decoration: none;
}

.checkout-tracking,
.tracking-card {
  border: 1px solid rgba(202, 166, 96, .35);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  padding: 18px;
  margin: 18px auto;
  max-width: 560px;
}

.checkout-tracking strong,
.tracking-card strong {
  display: block;
  color: var(--olive);
  margin-bottom: 6px;
}

.checkout-tracking .btn {
  margin-top: 8px;
}

.tracking-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding-block: 48px;
}

.tracking-card {
  width: min(620px, 100%);
  text-align: left;
}

.tracking-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 18px;
}

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

.tracking-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.tracking-steps li span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(73, 92, 57, .22);
  background: #fff;
}

.tracking-steps li.is-active {
  color: var(--olive);
}

.tracking-steps li.is-active span {
  background: var(--olive);
  border-color: var(--olive);
  box-shadow: inset 0 0 0 7px #fff;
}

.tracking-items {
  margin-top: 18px;
  border-top: 1px solid rgba(73, 92, 57, .14);
  padding-top: 14px;
  color: var(--muted);
}

.tracking-items p {
  margin: 4px 0;
}

.rider-track-btn {
  margin-top: 18px;
}

.admin-editor {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  width: min(520px, 100%);
  background: #fff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -24px 0 60px rgba(17, 24, 39, .16);
  overflow: auto;
  padding: 18px;
}

.admin-editor .admin-card {
  border: 0;
  box-shadow: none;
  padding: 0;
}

.icon-close {
  width: 38px;
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-size: 1.35rem;
}

@media (max-width: 980px) {
  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
    grid-template-rows: auto auto;
  }

  .admin-sidebar-foot {
    display: none;
  }

  .admin-menu {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .metric-grid,
  .dashboard-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .admin-topbar,
  .admin-content {
    padding-inline: 16px;
  }

  .metric-grid,
  .dashboard-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .two-cols,
  .image-preview {
    grid-template-columns: 1fr;
  }
}

/* Admin dashboard uses a neutral management UI, separate from the storefront theme. */
.admin-page {
  --admin-bg: #f4f6f5;
  --admin-panel: #ffffff;
  --admin-ink: #17201a;
  --admin-muted: #66736b;
  --admin-border: #d9e0dc;
  --admin-primary: #34462f;
  --admin-primary-hover: #24321f;
  --admin-danger: #b42318;
  --admin-focus: rgba(52, 70, 47, .18);
  min-height: 100vh;
  background: var(--admin-bg);
  color: var(--admin-ink);
  font-family: "Inter", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

.admin-page [hidden] {
  display: none !important;
}

.admin-login-mode {
  background: var(--admin-primary);
  display: grid;
  place-items: center;
}

.admin-page h1,
.admin-page h2,
.admin-page h3 {
  font-family: inherit;
  color: var(--admin-ink);
  line-height: 1.15;
  font-weight: 700;
}

.admin-page .eyebrow {
  color: var(--admin-muted);
  letter-spacing: .08em;
  font-size: .72rem;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  padding-block: 24px;
}

.admin-login-mode .admin-shell {
  width: min(440px, calc(100% - 32px));
  padding-block: 32px;
}

.admin-login-mode .admin-hero,
.admin-login-mode [data-setup-warning] {
  display: none;
}

.admin-hero {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--admin-muted);
  line-height: 1.55;
  margin: .5rem 0 0;
}

.admin-status span,
.pill {
  border: 1px solid var(--admin-border);
  background: var(--admin-panel);
  color: var(--admin-muted);
  border-radius: 999px;
  padding: .58rem .8rem;
  font-weight: 700;
  font-size: .78rem;
}

.admin-grid {
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.admin-card {
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-panel);
  box-shadow: 0 1px 2px rgba(23, 32, 26, .05);
  padding: 20px;
}

.admin-card h2 {
  font-size: 1.35rem;
}

.login-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
  padding: 28px;
}

.login-brand {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.login-brand img {
  width: 142px;
}

.login-brand h1 {
  font-size: 1.75rem;
}

.login-brand p {
  margin: 0;
  color: var(--admin-muted);
  line-height: 1.5;
}

.admin-form {
  gap: 14px;
}

.compact-form {
  max-width: none;
}

.form-head {
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 14px;
  margin-bottom: 2px;
}

.form-actions {
  border-top: 1px solid var(--admin-border);
  padding-top: 14px;
}

.admin-form span,
.admin-form legend {
  color: var(--admin-ink);
  font-weight: 700;
  font-size: .86rem;
}

.admin-form input,
.admin-form textarea {
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: #fff;
  color: var(--admin-ink);
  padding: .82rem .9rem;
  outline: none;
}

.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 4px var(--admin-focus);
}

.admin-page .btn {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
  border-radius: 10px;
  min-height: 42px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: .9rem;
}

.admin-page .btn:hover,
.admin-page .btn:focus-visible {
  background: var(--admin-primary-hover);
}

.admin-page .btn.secondary {
  background: #fff;
  border-color: var(--admin-border);
  color: var(--admin-ink);
}

.admin-page .btn.secondary:hover,
.admin-page .btn.secondary:focus-visible {
  background: #eef2ef;
  color: var(--admin-ink);
}

.admin-page .btn.danger,
.admin-page .form-actions .btn.secondary[data-delete-current],
.admin-page [data-delete] {
  border-color: var(--admin-danger);
  background: #fff;
  color: var(--admin-danger);
}

.admin-page .btn.danger:hover,
.admin-page .form-actions .btn.secondary[data-delete-current]:hover,
.admin-page [data-delete]:hover {
  background: #fff1f0;
}

.check-pill span {
  border-color: var(--admin-border);
  border-radius: 999px;
  padding: .55rem .72rem;
  background: #fff;
  color: var(--admin-muted);
  font-size: .8rem;
}

.check-pill input:checked + span {
  background: var(--admin-primary);
  border-color: var(--admin-primary);
  color: #fff;
}

.image-help {
  color: var(--admin-muted);
  background: #f7faf8;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: .75rem;
}

.image-preview figure,
.admin-product {
  border-color: var(--admin-border);
  border-radius: 10px;
  background: #fff;
}

.image-preview button {
  border-color: var(--admin-border);
  background: #f6f8f7;
  color: var(--admin-ink);
}

.admin-list {
  gap: 10px;
}

.admin-product {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  padding: 12px;
}

.admin-product img {
  width: 72px;
  border-radius: 8px;
}

.admin-product strong {
  font-size: .98rem;
  font-weight: 500;
}

.admin-product span {
  color: var(--admin-muted);
  font-size: .82rem;
  font-weight: 500;
}

.admin-product small {
  color: var(--admin-muted);
}

.toast {
  background: #17201a;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .42);
}

.confirm-card {
  position: relative;
  width: min(420px, 100%);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(17, 24, 39, .26);
  padding: 22px;
}

.confirm-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.confirm-card p:not(.eyebrow) {
  color: #6b7280;
  line-height: 1.55;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .admin-hero,
  .admin-grid,
  .admin-product {
    grid-template-columns: 1fr;
  }

  .admin-status,
  .admin-row-actions {
    justify-content: start;
  }
}
