:root {
  --bg: #f7f0e5;
  --bg-soft: #fffaf3;
  --surface: rgba(255, 250, 243, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --ink: #1f241c;
  --muted: #687064;
  --line: rgba(58, 77, 54, 0.12);
  --leaf-900: #1f4a2b;
  --leaf-700: #347145;
  --leaf-500: #59a05a;
  --leaf-300: #91cd88;
  --mint: #e4f4d9;
  --sand: #f4d8a8;
  --orange: #ff844d;
  --orange-deep: #f1652f;
  --heart: #ef596f;
  --shadow: 0 18px 34px rgba(46, 67, 36, 0.13);
  --shadow-soft: 0 10px 20px rgba(46, 67, 36, 0.09);
  --radius-2xl: 30px;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --nav-height: 78px;
  --hero-transition: 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(
      circle at top right,
      rgba(145, 205, 136, 0.45),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 180, 110, 0.26),
      transparent 22%
    ),
    linear-gradient(180deg, #fff7ec 0%, #f7f0e5 38%, #f4ecde 100%);
  color: var(--ink);
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

body::before {
  top: -72px;
  right: -88px;
  width: 240px;
  height: 240px;
  background: rgba(145, 205, 136, 0.28);
}

body::after {
  bottom: 92px;
  left: -64px;
  width: 180px;
  height: 180px;
  background: rgba(255, 179, 130, 0.2);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

input,
textarea {
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
}

.hidden {
  display: none !important;
}

.login-screen,
.app-screen {
  position: relative;
  z-index: 1;
}

.login-shell {
  min-height: 100vh;
  padding: 24px 18px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(100%, 420px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 249, 241, 0.9) 100%
  );
  backdrop-filter: blur(18px);
  border: 1px solid rgba(52, 113, 69, 0.1);
  border-radius: 32px;
  padding: 28px 22px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(145, 205, 136, 0.28) 0%,
    rgba(145, 205, 136, 0) 72%
  );
}

.brand-mark {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: linear-gradient(135deg, #2c6b3f 0%, #7cc16d 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(52, 113, 69, 0.24);
  margin-bottom: 18px;
}

.login-title {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: 0.02em;
  color: var(--leaf-900);
  margin-bottom: 10px;
}

.login-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.notice-box {
  background: rgba(255, 243, 223, 0.9);
  border: 1px solid rgba(255, 179, 130, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #825228;
  margin-bottom: 14px;
}

.hours-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--leaf-700);
}

.field input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(248, 244, 236, 0.9);
  border: 1px solid rgba(52, 113, 69, 0.12);
  font-size: 16px;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.field input:focus {
  border-color: rgba(89, 160, 90, 0.38);
  box-shadow: 0 0 0 4px rgba(145, 205, 136, 0.18);
  transform: translateY(-1px);
}

.primary-btn {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    var(--orange-deep) 0%,
    var(--orange) 100%
  );
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 18px 28px rgba(241, 101, 47, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.primary-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 10px 18px rgba(241, 101, 47, 0.2);
}

.login-footnote {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.field-tip {
  margin-top: -8px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.app-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 12px 12px calc(var(--nav-height) + 64px);
}

.hero-card {
  background: linear-gradient(
    180deg,
    rgba(35, 73, 43, 0.96) 0%,
    rgba(44, 96, 54, 0.96) 100%
  );
  color: #fff;
  border-radius: 24px;
  padding: 14px 14px 13px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 8px;
  z-index: 5;
  overflow: hidden;
  margin-bottom: 12px;
  transition: box-shadow 0.24s ease;
}

.hero-card::before {
  content: "";
  position: absolute;
  right: -52px;
  top: -36px;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 214, 142, 0.34) 0%,
    rgba(255, 214, 142, 0) 70%
  );
}

.hero-card.with-search-dock {
  position: relative;
  top: auto;
  z-index: 1;
  margin-bottom: 10px;
}

.search-dock {
  position: sticky;
  top: 4px;
  z-index: 6;
  margin-bottom: 12px;
  padding: 6px 12px 7px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(31, 69, 40, 0.98) 0%,
    rgba(43, 94, 53, 0.98) 100%
  );
  box-shadow: 0 14px 28px rgba(46, 67, 36, 0.16);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.search-dock::before {
  content: "";
  position: absolute;
  right: -44px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 214, 142, 0.26) 0%,
    rgba(255, 214, 142, 0) 72%
  );
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 4px;
}

.hero-title {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
}

.hero-subtext {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.ghost-chip {
  min-width: 64px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 16px;
  font-weight: 700;
  flex: 0 0 auto;
}

.user-main {
  min-width: 0;
}

.user-name-line {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-phone {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.74);
}

.hero-notice {
  border-radius: 16px;
  background: rgba(255, 235, 207, 0.92);
  color: #68431b;
  font-size: 12px;
  line-height: 1.55;
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.meta-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
  margin-bottom: 10px;
}

.meta-row::-webkit-scrollbar {
  display: none;
}

.meta-chip {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.84);
}

.search-panel {
  position: relative;
  z-index: 1;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(24, 42, 20, 0.12);
}

.search-icon {
  font-size: 16px;
  color: var(--leaf-700);
}

.search-box input {
  width: 100%;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #8f958e;
}

.search-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.76);
  margin-top: 4px;
  padding-left: 2px;
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 2px;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.category-chip.active {
  background: rgba(255, 244, 229, 0.96);
  border-color: rgba(255, 223, 186, 0.34);
  color: #6f421f;
  box-shadow: 0 10px 20px rgba(26, 42, 20, 0.14);
}

.content-stack {
  display: grid;
  gap: 12px;
}

.view {
  display: none;
  animation: fadeUp 0.22s ease;
}

.view.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.section-title {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 19px;
  line-height: 1.05;
  color: var(--leaf-900);
  margin-bottom: 4px;
}

.section-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.count-pill {
  flex: 0 0 auto;
  min-width: 56px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(89, 160, 90, 0.14);
  color: var(--leaf-700);
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.products-grid,
.orders-list,
.cart-list {
  display: grid;
  gap: 10px;
}

.product-card,
.cart-card,
.order-card,
.summary-card,
.notes-card,
.profile-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 250, 242, 0.88) 100%
  );
  backdrop-filter: blur(14px);
  border: 1px solid rgba(52, 113, 69, 0.08);
  box-shadow: var(--shadow-soft);
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  overflow: hidden;
}

.favorite-btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(52, 113, 69, 0.1);
  color: var(--leaf-700);
  box-shadow: 0 8px 14px rgba(35, 73, 43, 0.08);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.favorite-btn.active {
  color: var(--heart);
  background: rgba(255, 239, 243, 0.96);
  border-color: rgba(214, 98, 117, 0.18);
}

.product-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  align-self: start;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(145, 205, 136, 0.2) 0%,
    rgba(255, 233, 196, 0.68) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-icon {
  font-size: 40px;
}

.product-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.product-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-right: 0;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--leaf-900);
  margin-bottom: 3px;
}

.product-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  min-height: 18px;
}

.price-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 12px;
  background: rgba(255, 132, 77, 0.14);
  color: var(--orange-deep);
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.price-badge small {
  font-size: 10px;
  font-weight: 600;
  color: #af6b45;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(89, 160, 90, 0.12);
  color: var(--leaf-700);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.tag.warm {
  background: rgba(255, 132, 77, 0.12);
  color: #af5d36;
}

.tag.soft {
  background: rgba(64, 79, 57, 0.08);
  color: var(--muted);
}

.product-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.stepper {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(89, 160, 90, 0.1);
  border: 1px solid rgba(89, 160, 90, 0.12);
}

.stepper button {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--leaf-700);
  font-size: 18px;
  font-weight: 700;
}

.stepper input {
  width: 54px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--leaf-900);
}

.add-btn {
  width: auto;
  min-width: 124px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--leaf-700) 0%, var(--leaf-500) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 14px rgba(52, 113, 69, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
}

.add-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 25, 16, 0.42);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 55;
}

.sheet-overlay.show {
  opacity: 1;
}

.product-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  width: min(100%, 720px);
  padding: 0 10px calc(env(safe-area-inset-bottom, 0px) + 8px);
  transition: transform 0.24s ease;
  z-index: 56;
}

.product-sheet.show {
  transform: translateX(-50%) translateY(0);
}

.sheet-shell {
  position: relative;
  border-radius: 24px 24px 18px 18px;
  padding: 12px 12px 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 251, 246, 0.98) 0%,
    rgba(255, 247, 238, 0.96) 100%
  );
  border: 1px solid rgba(52, 113, 69, 0.1);
  box-shadow: 0 -12px 34px rgba(25, 38, 22, 0.2);
  backdrop-filter: blur(18px);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(95, 109, 91, 0.28);
  margin: 0 auto 12px;
}

.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(89, 160, 90, 0.1);
  color: var(--leaf-700);
  font-size: 20px;
  line-height: 1;
}

.sheet-content {
  display: grid;
  gap: 12px;
  max-height: 78dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px;
}

.variant-picker {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(52, 113, 69, 0.2);
  border-radius: 14px;
  display: grid;
  gap: 8px;
}

.variant-picker legend {
  padding: 0 6px;
  font-weight: 700;
}

.variant-option {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(52, 113, 69, 0.2);
  border-radius: 10px;
  background: white;
  color: var(--leaf-700);
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.variant-option.active {
  border: 2px solid var(--leaf-700);
  padding: 11px;
  background: #edf5e9;
}

.variant-option span {
  font-size: 13px;
}

.variant-detail-images img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 12px;
}

.sheet-top {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.sheet-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(145, 205, 136, 0.24) 0%,
    rgba(255, 233, 196, 0.68) 100%
  );
}

.sheet-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-icon {
  font-size: 36px;
}

.sheet-title {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 22px;
  line-height: 1.06;
  color: var(--leaf-900);
  margin-bottom: 4px;
  padding-right: 28px;
}

.sheet-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.sheet-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sheet-price {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--orange-deep);
  line-height: 1;
}

.sheet-price small {
  font-size: 11px;
  color: #a76744;
  font-weight: 600;
}

.sheet-summary {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(89, 160, 90, 0.08);
  border: 1px solid rgba(89, 160, 90, 0.12);
}

.sheet-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sheet-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--leaf-900);
}

.sheet-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.sheet-stepper button {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(89, 160, 90, 0.1);
  color: var(--leaf-700);
  font-size: 18px;
  font-weight: 700;
}

.sheet-stepper input {
  width: 56px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--leaf-900);
}

.sheet-estimate {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.sheet-estimate-label {
  font-size: 12px;
  color: var(--muted);
}

.sheet-estimate-value {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--leaf-900);
  line-height: 1;
}

.sheet-confirm {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--orange-deep) 0%,
    var(--orange) 100%
  );
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 18px rgba(241, 101, 47, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
}

.summary-card,
.notes-card,
.cart-card,
.order-card,
.profile-card {
  border-radius: 20px;
  padding: 14px;
}

.summary-card {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.summary-label {
  font-size: 13px;
  color: var(--muted);
}

.summary-amount {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 30px;
  line-height: 1;
  color: var(--leaf-900);
}

.summary-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-caption span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(89, 160, 90, 0.1);
  color: var(--leaf-700);
  font-size: 11px;
  font-weight: 700;
}

.cart-card {
  display: grid;
  gap: 10px;
}

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

.cart-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(145, 205, 136, 0.24) 0%,
    rgba(255, 236, 205, 0.68) 100%
  );
  font-size: 21px;
  flex: 0 0 auto;
}

.cart-main {
  min-width: 0;
  flex: 1;
}

.cart-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--leaf-900);
  margin-bottom: 4px;
}

.cart-sub {
  font-size: 11px;
  color: var(--muted);
}

.cart-price {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-deep);
}

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.remove-btn,
.cancel-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.remove-btn {
  background: rgba(239, 89, 111, 0.1);
  color: #c54359;
}

.notes-card {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.notes-card label {
  font-size: 12px;
  font-weight: 700;
  color: var(--leaf-700);
}

.notes-card textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(244, 239, 230, 0.78);
  border: 1px solid rgba(52, 113, 69, 0.1);
  font-size: 13px;
  line-height: 1.6;
}

.checkout-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--orange-deep) 0%,
    var(--orange) 100%
  );
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 18px rgba(241, 101, 47, 0.2);
}

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

.order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.order-id {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--leaf-900);
  line-height: 1.1;
  margin-bottom: 4px;
}

.order-time {
  font-size: 11px;
  color: var(--muted);
}

.status-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.status-pending {
  background: rgba(255, 171, 0, 0.14);
  color: #b76e00;
}

.status-sorted {
  background: rgba(0, 102, 255, 0.12);
  color: #0d5dcb;
}

.status-delivered {
  background: rgba(0, 196, 140, 0.12);
  color: #00885f;
}

.status-paid {
  background: rgba(147, 112, 219, 0.12);
  color: #7752b3;
}

.status-cancelled,
.status-returned {
  background: rgba(90, 96, 91, 0.1);
  color: #5a605b;
}

.order-items {
  display: grid;
  gap: 8px;
}

.order-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(89, 160, 90, 0.06);
}

.order-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--leaf-900);
  margin-bottom: 3px;
}

.order-item-detail {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.order-item-price {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-deep);
}

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.order-total-text {
  font-size: 12px;
  color: var(--muted);
}

.order-total-amount {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--leaf-900);
}

.order-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 132, 77, 0.1);
  color: #92562f;
  font-size: 12px;
  line-height: 1.6;
}

.cancel-btn {
  background: rgba(239, 89, 111, 0.1);
  color: #c54359;
  justify-self: start;
}

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

.profile-card {
  display: grid;
  gap: 12px;
}

.profile-user-pill {
  margin-bottom: 0;
  padding: 12px;
  background: linear-gradient(
    135deg,
    rgba(35, 73, 43, 0.96) 0%,
    rgba(58, 121, 70, 0.94) 100%
  );
  border: none;
  color: #fff;
  box-shadow: 0 14px 24px rgba(35, 73, 43, 0.16);
}

.profile-user-pill .user-avatar {
  background: rgba(255, 255, 255, 0.16);
}

.profile-user-pill .user-phone {
  color: rgba(255, 255, 255, 0.74);
}

.profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-shortcut {
  min-height: 86px;
  padding: 12px 10px;
  border-radius: 18px;
  background: rgba(89, 160, 90, 0.08);
  border: 1px solid rgba(89, 160, 90, 0.12);
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  color: var(--leaf-900);
}

.profile-shortcut strong {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 24px;
  line-height: 1;
  color: var(--leaf-700);
}

.profile-shortcut span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}

.profile-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--leaf-900);
  margin-bottom: 4px;
}

.profile-card-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.profile-meta {
  display: grid;
  gap: 8px;
}

.profile-meta-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(89, 160, 90, 0.06);
}

.profile-meta-label {
  flex: 0 0 74px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-meta-value {
  flex: 1;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--leaf-900);
  word-break: break-word;
}

.profile-action {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 18px rgba(239, 89, 111, 0.16);
}

.profile-action.danger {
  background: linear-gradient(135deg, #df596e 0%, #f17367 100%);
  color: #fff;
}

.profile-action.secondary {
  background: linear-gradient(
    135deg,
    rgba(44, 107, 63, 0.96) 0%,
    rgba(92, 163, 86, 0.94) 100%
  );
  color: #fff;
  box-shadow: 0 12px 18px rgba(52, 113, 69, 0.18);
}

.empty-state {
  text-align: center;
  padding: 24px 16px;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 251, 246, 0.8) 100%
  );
  border: 1px dashed rgba(52, 113, 69, 0.14);
  box-shadow: var(--shadow-soft);
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--leaf-900);
  margin-bottom: 6px;
}

.empty-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.empty-action {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(89, 160, 90, 0.12);
  color: var(--leaf-700);
  font-size: 12px;
  font-weight: 700;
}

.floating-cart {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + 6px);
  transform: translateX(-50%);
  width: min(calc(100% - 16px), 688px);
  padding: 0 2px;
  z-index: 40;
}

.floating-cart button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(35, 73, 43, 0.96) 0%,
    rgba(52, 113, 69, 0.96) 100%
  );
  color: #fff;
  box-shadow: 0 14px 22px rgba(35, 73, 43, 0.22);
}

.floating-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.floating-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.74);
}

.floating-amount {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.floating-action {
  flex: 0 0 auto;
  min-width: 78px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 720px);
  padding: 0 10px env(safe-area-inset-bottom, 0px);
  z-index: 45;
}

.nav-shell {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  min-height: var(--nav-height);
  padding: 8px 8px calc(env(safe-area-inset-bottom, 0px) + 6px);
  border-radius: 22px 22px 0 0;
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(52, 113, 69, 0.08);
  box-shadow: 0 -8px 18px rgba(44, 62, 35, 0.12);
}

.nav-item {
  min-height: 50px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #52604f;
  position: relative;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.nav-item.active {
  background: rgba(89, 160, 90, 0.14);
  color: var(--leaf-700);
}

.nav-item:active {
  transform: scale(0.98);
}

.nav-icon {
  font-size: 17px;
  line-height: 1;
}

.nav-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--orange-deep);
  color: #fff;
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .hero-card::before,
  .search-dock,
  .search-dock::before,
  .search-panel,
  .search-box {
    transition: none;
  }
}

@media (min-width: 560px) {
  .app-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .product-card {
    grid-template-columns: 136px minmax(0, 1fr);
  }

  .product-visual {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 22px;
  }

  .product-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .product-visual {
    width: 100%;
  }

  .price-badge {
    font-size: 13px;
  }

  .stepper {
    gap: 6px;
    padding: 5px;
  }

  .stepper button {
    width: 28px;
    height: 28px;
  }

  .stepper input {
    width: 48px;
  }

  .floating-cart button {
    min-height: 52px;
    border-radius: 16px;
  }

  .sheet-top {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .sheet-visual {
    width: 84px;
    min-height: 102px;
  }

  .sheet-title {
    font-size: 20px;
  }
}
