:root {
  --orange: #ff5028;
  --orange-dark: #852914;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --line: #e7ebf2;
  --text: #1f2430;
  --muted: #7a8394;
  --soft: #f8fafe;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  font-family: PingARLT, "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, #f9faff 0%, #f4f6fb 52%, #f7f8fb 100%);
  color: var(--text);
  padding-bottom: 120px;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 70;
  height: var(--header-h-desktop, 70px);
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.nav-top-row {
  width: min(1600px, 100%);
  display: grid;
  grid-template-columns: minmax(250px, auto) 1fr minmax(360px, auto);
  grid-template-areas: "actions search brand";
  align-items: center;
  column-gap: 16px;
  direction: ltr;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  height: 53px;
  flex-shrink: 0;
}

.brand-logo {
  width: 146px;
  height: 53px;
  object-fit: contain;
}

.brand-logo--mobile {
  display: none;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: #ff7a5c;
  opacity: 0.9;
}

.address-wrap {
  display: grid;
  line-height: 1.15;
  color: #fff;
  justify-items: end;
  gap: 6px;
}

.address-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}

.address-title svg {
  width: 11px;
  height: 12px;
}

.address-wrap .caption,
.address-title {
  color: rgba(255, 255, 255, 0.92);
}

.address-city {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.address-city i {
  font-size: 11px;
}

.search-box {
  height: 40px;
  background: #fff;
  border-radius: 999px;
  border: 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.nav-search {
  grid-area: search;
  display: flex;
  justify-content: center;
  align-items: center;
  direction: rtl;
}

.nav-search .search-box {
  width: min(600px, calc(100% - 8px));
}

.search-box i {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a93a3;
  font-size: 16px;
}

.search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: 0;
  font-family: inherit;
  font-size: 13px;
  text-align: right;
  color: #7c8596;
}

.nav-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 260px;
  justify-self: start;
  direction: rtl;
}

.nav-link {
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 10px;
  text-decoration: none;
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-link i {
  font-size: 16px;
}

.cart-link {
  padding-right: 6px;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
}

.nav-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 360px;
  justify-self: end;
  direction: rtl;
}

.page-wrap {
  width: min(980px, calc(100% - 34px));
  margin: 18px auto 14px;
  display: grid;
  gap: 14px;
}

.breadcrumbs {
  color: #a0a8b8;
  font-size: 12px;
}

.breadcrumbs span {
  margin: 0 4px;
}

.hero-head {
  padding: 4px 2px 10px;
}

.hero-head h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.03;
  letter-spacing: -0.3px;
}

.hero-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.batch-card,
.list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(30, 37, 53, 0.04);
}

.batch-card {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.batch-card h2,
.list-card h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.1px;
}

.batch-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.batch-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.batch-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #596276;
  font-size: 13px;
}

.batch-controls input,
.batch-controls select,
.freq-controls input,
.freq-controls select {
  height: 36px;
  border: 1px solid #e2e7f0;
  border-radius: 11px;
  background: #fbfcff;
  font-family: inherit;
  font-size: 14px;
  color: #495163;
  padding: 0 10px;
}

.batch-controls input,
.freq-controls input {
  width: 58px;
  text-align: center;
}

.list-card {
  padding: 18px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.list-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.product-line {
  border: 1px solid #e8edf5;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #fff;
}

.product-head {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 14px;
}

.product-thumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ebeff6;
  background: #f7f8fb;
}

.store-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  background: #f3f6fb;
  border: 1px solid #e2e8f3;
  color: #4f5f7c;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 5px;
}

.product-name {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.15px;
}

.price-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-current {
  color: var(--orange);
  font-size: 21px;
  font-weight: 700;
}

.price-regular {
  color: #9ba3b2;
  text-decoration: line-through;
  font-size: 14px;
}

.line-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.icon-round {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e5eaf2;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-round:hover {
  background: #f7f9fe;
}

.icon-round svg {
  width: 17px;
  height: 17px;
  fill: #798193;
}

.controls-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 12px;
  background: #f7f9fc;
  border: 1px solid #e9edf6;
  border-radius: 12px;
  padding: 10px 12px;
}

.qty-controls,
.freq-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-controls {
  justify-self: end;
}

.freq-controls {
  justify-self: start;
}

.qty-controls span,
.freq-controls span {
  font-size: 12px;
  color: #7a8395;
  font-weight: 600;
}

.control-prefix {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 1;
  color: #677086;
  font-weight: 600;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e0e6f1;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
}

.qty-stepper button {
  border: 0;
  background: #fff;
  width: 34px;
  height: 34px;
  font-size: 18px;
  color: #5f6778;
  cursor: pointer;
}

.qty-stepper button:hover {
  background: #f4f7fd;
}

.qty-stepper output {
  width: 34px;
  text-align: center;
  font-weight: 700;
  color: #3f4758;
}

.schedule-strip {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding-top: 8px;
  border-top: 1px solid #e5e9f1;
  color: #667085;
  font-size: 13px;
}

.schedule-cadence {
  color: #5e677a;
  font-size: 12px;
  font-weight: 600;
}

.schedule-dot {
  color: #99a1b1;
}

.schedule-next {
  color: #6f788b;
  font-weight: 500;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 12px 18px;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(255, 80, 40, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-compact {
  padding: 9px 14px;
  font-size: 14px;
  box-shadow: none;
}

.btn-secondary {
  background: #fef3ef;
  color: var(--orange-dark);
  border: 1px solid #ffd8cd;
  padding: 9px 14px;
}

.btn-ghost {
  background: #fff;
  color: #687287;
  border: 1px solid #e4e9f3;
  padding: 9px 14px;
}

.sticky-summary {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, calc(100% - 48px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 253, 255, 0.96) 100%);
  border: 1px solid rgba(224, 231, 241, 0.92);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 32px rgba(30, 38, 54, 0.11),
    0 4px 10px rgba(30, 38, 54, 0.07);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  z-index: 80;
}

.sticky-summary p {
  margin: 0;
  color: #8b93a5;
  font-size: 12px;
}

.sticky-summary strong {
  font-size: 25px;
  line-height: 1.02;
}

.summary-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.summary-link {
  border: 0;
  background: transparent;
  color: #6d778d;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 0 2px;
  cursor: pointer;
  white-space: nowrap;
}

.summary-link:hover {
  color: #46526b;
}

.summary-link:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 18, 0.45);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal,
.sheet-card {
  width: min(760px, 100%);
  max-height: 82vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 18px;
  padding: 14px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-note {
  margin: 0 0 12px;
  color: #7c8597;
  font-size: 13px;
  line-height: 1.7;
}

.modal-batch-controls {
  justify-content: flex-start;
  background: #f7f9fc;
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  padding: 8px;
  gap: 10px;
}

.modal--batch {
  border-radius: 20px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 36px rgba(25, 34, 50, 0.16);
}

.modal--batch .modal-head {
  margin-bottom: 8px;
}

.modal--batch .modal-head h3 {
  margin: 0;
  font-size: 39px;
  letter-spacing: -0.2px;
}

.btn-batch {
  border-color: #d9e1ed;
  color: #4f5d74;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31, 42, 60, 0.06);
}

.btn-batch:hover {
  background: #f7f9fd;
}

.icon-close {
  border: 1px solid #e4e9f2;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  background: #fff;
  cursor: pointer;
}

.available-products,
.sheet-lines {
  display: grid;
  gap: 8px;
}

.available-item,
.sheet-line {
  border: 1px solid #e8edf5;
  border-radius: 12px;
  padding: 8px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
}

.available-item img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.available-item h4,
.sheet-line h4 {
  margin: 0;
  font-size: 15px;
}

.available-item p,
.sheet-line p {
  margin: 4px 0 0;
  color: #7c8597;
  font-size: 13px;
}

.sheet {
  align-items: end;
}

.sheet-card {
  border-radius: 24px 24px 0 0;
  padding-bottom: 18px;
}

.sheet-card--now {
  max-width: 560px;
  border-radius: 20px;
  padding: 16px;
}

.sheet-card--now h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.2px;
}

.now-note {
  margin: 8px 0 0;
  color: #727c90;
  font-size: 14px;
  line-height: 1.7;
}

.now-meta {
  margin-top: 12px;
  border-top: 1px solid #e7ecf4;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #667086;
}

.now-meta strong {
  font-size: 24px;
  color: #1e2532;
}

.sheet-handle {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: #d5dae3;
  margin: 0 auto 10px;
}

.sheet-total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #e8edf5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sheet-total strong {
  font-size: 22px;
}

.result {
  margin: 10px 0;
  border-radius: 10px;
  background: #ecf8f1;
  border: 1px solid #bae7d1;
  color: #187d57;
  padding: 8px;
  font-size: 14px;
}

.block {
  width: 100%;
  margin-top: 8px;
}

.empty-state {
  text-align: center;
  border: 1px dashed #e4e9f2;
  border-radius: 12px;
  color: #8d96a6;
  padding: 18px;
  background: #fbfcff;
}

@media (max-width: 980px) {
  .app-nav {
    height: 70px;
    padding: 0 16px;
  }

  .nav-top-row {
    grid-template-columns: minmax(220px, auto) 1fr minmax(300px, auto);
    column-gap: 12px;
  }

  .nav-actions {
    min-width: 220px;
    gap: 8px;
  }

  .brand-link {
    height: 48px;
  }

  .brand-logo {
    width: auto;
    height: 48px;
  }

  .nav-brand {
    min-width: 300px;
  }

  .nav-search .search-box {
    width: min(540px, 100%);
  }

  .hero-head h1 {
    font-size: 38px;
  }

  .hero-head p {
    font-size: 15px;
  }

  .batch-card {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .product-thumb {
    width: 64px;
    height: 64px;
  }

  .product-name {
    font-size: 18px;
  }

  .line-actions {
    grid-column: 1 / -1;
    justify-items: start;
    grid-auto-flow: column;
  }

  .sticky-summary {
    bottom: 12px;
    width: calc(100% - 20px);
    padding: 9px 11px;
    border-radius: 12px;
  }

  .sticky-summary strong {
    font-size: 21px;
  }

  .summary-link {
    font-size: 11px;
  }

  .list-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .list-head-actions {
    width: 100%;
  }

  .list-head-actions .btn-ghost,
  .list-head-actions .btn-primary {
    flex: 1;
  }

  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    font-size: 13px;
    padding: 9px 12px;
  }

  .modal--batch .modal-head h3 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .app-nav {
    height: auto;
    padding: 8px 12px 10px;
  }

  .nav-top-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "account brand"
      "search search";
    align-items: center;
    min-height: 56px;
    row-gap: 6px;
    column-gap: 8px;
  }

  .nav-actions {
    grid-area: account;
    min-width: 0;
    gap: 0;
    justify-content: flex-start;
    justify-self: start;
  }

  .nav-link--desktop {
    display: none;
  }

  .nav-link--account {
    padding: 0;
    gap: 6px;
    font-size: 20px;
    line-height: 1;
  }

  .nav-link--account i {
    font-size: 18px;
  }

  .nav-link:hover {
    background: transparent;
  }

  .nav-brand {
    grid-area: brand;
    min-width: 0;
    gap: 0;
    justify-content: flex-end;
    justify-self: end;
  }

  .brand-logo--desktop,
  .brand-divider,
  .address-wrap {
    display: none;
  }

  .brand-logo--mobile {
    display: block;
    width: auto;
    height: 34px;
  }

  .brand-link {
    height: 34px;
  }

  .nav-search {
    grid-area: search;
    width: 100%;
    margin-top: 2px;
  }

  .nav-search .search-box {
    width: 100%;
    height: 39px;
    padding: 0 12px;
  }

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

/* Minimal pass: calmer hierarchy + progressive disclosure per product */
body {
  background: #f5f5f7;
}

.page-wrap {
  width: min(980px, calc(100% - 48px));
  margin: 30px auto 20px;
  gap: 22px;
}

.hero-head {
  padding: 0 2px;
}

.hero-head h1 {
  font-size: 54px;
  letter-spacing: -0.7px;
}

.hero-head p {
  margin-top: 6px;
  font-size: 20px;
  color: #6e7688;
  letter-spacing: -0.15px;
}

.list-card {
  border-radius: 24px;
  border: 1px solid #e4e8ef;
  box-shadow: 0 1px 1px rgba(17, 24, 39, 0.02);
  padding: 20px;
}

.list-head {
  margin-bottom: 18px;
}

.list-head h2 {
  font-size: 31px;
  letter-spacing: -0.45px;
}

.list-head-actions {
  gap: 10px;
}

.list-head-actions .btn-ghost {
  border: 0;
  background: transparent;
  color: #6b7488;
  padding: 0 8px;
  box-shadow: none;
}

.list-head-actions .btn-ghost:hover {
  background: transparent;
  color: #424b5d;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  font-weight: 600;
  transition: all 0.18s ease;
}

.btn-primary {
  box-shadow: none;
  padding: 11px 18px;
}

.btn-primary:hover {
  transform: none;
  filter: brightness(0.97);
}

.btn-ghost {
  background: #fff;
  border-color: #d8deea;
  color: #4f5b72;
}

.products-list {
  gap: 14px;
}

.product-line {
  border: 1px solid #e5e9f0;
  border-radius: 20px;
  padding: 18px;
  background: #fff;
  gap: 12px;
}

.product-line.is-editing {
  border-color: #d6deeb;
  box-shadow: 0 8px 20px rgba(25, 35, 52, 0.06);
}

.suggestion-line {
  border: 1px dashed #dce4f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcff 0%, #f7f9fd 100%);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 12px;
}

.suggestion-thumb {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e8edf5;
  background: #fff;
}

.suggestion-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #8a95a8;
  margin-bottom: 4px;
}

.suggestion-title {
  margin: 0;
  font-size: 15px;
  color: #2a3343;
}

.suggestion-note {
  margin: 3px 0 0;
  font-size: 12px;
  color: #7f889d;
}

.suggestion-add {
  border: 0;
  background: transparent;
  color: #ff5028;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 0 2px;
}

.suggestion-add:hover {
  color: #de4521;
}

.product-head {
  grid-template-columns: 86px 1fr auto;
  align-items: start;
  gap: 16px;
}

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

.product-thumb {
  width: 86px;
  height: 86px;
  border-radius: 14px;
}

.store-name {
  font-size: 13px;
  font-weight: 600;
  color: #5f6980;
}

.product-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.product-qty-inline {
  font-size: 12px;
  font-weight: 600;
  color: #808aa0;
}

.product-name {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.35px;
}

.price-row {
  margin-top: 8px;
  gap: 10px;
}

.price-current {
  font-size: 30px;
  line-height: 1;
}

.price-regular {
  font-size: 20px;
}

.line-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.editing-state {
  font-size: 12px;
  color: #6f7a90;
  background: #f5f7fb;
  border: 1px solid #dfe5ef;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.edit-toggle {
  border: 1px solid #d8dfeb;
  border-radius: 999px;
  background: #fff;
  color: #3f4e67;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  cursor: pointer;
}

.edit-toggle:hover {
  background: #f7f9fd;
}

.schedule-summary {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #eceff5;
  color: #6f7990;
  font-size: 14px;
  letter-spacing: -0.12px;
}

.editor-panel {
  margin-top: 2px;
  border: 1px solid #e4e9f1;
  border-radius: 14px;
  background: #fafbfe;
  padding: 12px;
  display: grid;
  gap: 10px;
}

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

.editor-title {
  font-size: 13px;
  color: #738098;
  font-weight: 600;
}

.edit-done {
  border: 1px solid #d8dfeb;
  border-radius: 999px;
  background: #fff;
  color: #3f4e67;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

.edit-done:hover {
  background: #f4f7fc;
}

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

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

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #7b8397;
}

.freq-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.freq-prefix {
  color: #606b82;
  font-weight: 600;
  font-size: 14px;
}

.freq-inline input,
.freq-inline select {
  height: 36px;
  border: 1px solid #dbe2ee;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  color: #3d4658;
  font-size: 14px;
}

.freq-inline input {
  width: 60px;
  text-align: center;
}

.freq-inline select {
  padding: 0 10px;
}

.qty-stepper {
  border-color: #dbe2ee;
  border-radius: 10px;
}

.editor-field .qty-stepper {
  width: fit-content;
  justify-self: start;
}

.qty-stepper button {
  width: 32px;
  height: 34px;
}

.qty-stepper output {
  width: 34px;
  font-size: 17px;
}

.remove-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #a4544a;
  justify-self: start;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.remove-link:hover {
  color: #8d3c33;
}

@media (max-width: 980px) {
  .page-wrap {
    width: min(960px, calc(100% - 30px));
    margin-top: 20px;
    gap: 16px;
  }

  .hero-head h1 {
    font-size: 46px;
  }

  .hero-head p {
    font-size: 18px;
  }

  .product-name {
    font-size: 26px;
  }

  .price-current {
    font-size: 24px;
  }

  .price-regular {
    font-size: 17px;
  }

  .suggestion-line {
    grid-template-columns: 58px 1fr auto;
    gap: 10px;
  }

  .suggestion-thumb {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 106px;
  }

  .page-wrap {
    width: calc(100% - 20px);
    margin-top: 12px;
    gap: 14px;
  }

  .breadcrumbs {
    display: none;
  }

  .hero-head {
    padding: 0 4px;
  }

  .hero-head h1 {
    font-size: 48px;
    line-height: 0.95;
  }

  .hero-head p {
    margin-top: 8px;
    font-size: 15px;
  }

  .list-card {
    border-radius: 18px;
    padding: 14px;
  }

  .list-head {
    margin-bottom: 12px;
    gap: 10px;
  }

  .list-head h2 {
    font-size: 24px;
  }

  .list-head-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .list-head-actions .btn-primary {
    width: 100%;
    padding: 11px 10px;
    border-radius: 12px;
    font-size: 15px;
  }

  .list-head-actions .btn-ghost {
    width: auto;
    justify-self: end;
    align-self: center;
    padding: 0 4px;
    font-size: 15px;
  }

  .products-list {
    gap: 10px;
  }

  .product-line {
    border-radius: 15px;
    padding: 12px;
    gap: 9px;
  }

  .suggestion-line {
    border-radius: 14px;
    padding: 10px;
    grid-template-columns: 56px 1fr;
  }

  .suggestion-thumb {
    width: 56px;
    height: 56px;
  }

  .suggestion-title {
    font-size: 14px;
  }

  .suggestion-note {
    font-size: 11px;
  }

  .suggestion-add {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 2px;
    font-size: 12px;
  }

  .product-head {
    grid-template-columns: 72px 1fr;
    gap: 10px;
  }

  .product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }

  .store-name {
    font-size: 12px;
  }

  .product-meta-row {
    margin-bottom: 3px;
    gap: 6px;
  }

  .product-qty-inline {
    font-size: 11px;
  }

  .product-name {
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -0.2px;
  }

  .price-row {
    margin-top: 4px;
  }

  .price-current {
    font-size: 17px;
  }

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

  .line-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: auto;
  }

  .editing-state {
    font-size: 11px;
    padding: 5px 8px;
  }

  .schedule-summary {
    font-size: 12px;
    padding-top: 8px;
  }

  .editor-panel {
    border-radius: 12px;
    padding: 10px;
  }

  .editor-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .freq-inline {
    width: 100%;
  }

  .freq-inline select {
    flex: 1;
  }

  .sticky-summary {
    bottom: 8px;
    width: calc(100% - 12px);
    border-radius: 12px;
    padding: 9px 10px;
  }

  .sticky-summary p {
    font-size: 11px;
  }

  .sticky-summary strong {
    font-size: 18px;
  }

  .sticky-summary .btn-primary {
    border-radius: 11px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .summary-actions {
    gap: 7px;
  }

  .summary-link {
    font-size: 10px;
  }

  .sheet-card--now {
    border-radius: 16px;
    padding: 12px;
  }

  .sheet-card--now h3 {
    font-size: 20px;
  }

  .now-note {
    font-size: 12px;
  }

  .now-meta strong {
    font-size: 18px;
  }
}

/* Modal refresh: align add/batch dialogs with the new minimal visual style */
.overlay {
  background: rgba(16, 22, 32, 0.36);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(760px, 100%);
  border-radius: 22px;
  border: 1px solid #e4e9f1;
  box-shadow: 0 22px 54px rgba(22, 30, 43, 0.2);
  padding: 18px;
}

.modal-head {
  margin-bottom: 12px;
}

.modal-head h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.3px;
}

.icon-close {
  width: 36px;
  height: 36px;
  border-color: #d9e1ee;
  color: #54627a;
}

.icon-close:hover {
  background: #f6f8fc;
}

.available-products {
  gap: 10px;
}

.available-item {
  border-radius: 14px;
  border-color: #e5eaf2;
  padding: 11px 12px;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
}

.available-item img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid #edf1f7;
}

.available-item h4 {
  font-size: 16px;
  line-height: 1.24;
  letter-spacing: -0.15px;
}

.available-item p {
  font-size: 14px;
  color: #7b8496;
}

.available-item .btn-secondary {
  border: 1px solid #d8dfeb;
  background: #fff;
  color: #3f4d66;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.available-item .btn-secondary:hover {
  background: #f7f9fd;
}

.modal--batch {
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(22, 30, 43, 0.2);
}

.modal--batch .modal-head h3 {
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.35px;
}

.modal-note {
  margin: 0 0 14px;
  color: #737e93;
  font-size: 15px;
  line-height: 1.6;
}

.modal-batch-controls {
  background: #f7f9fc;
  border: 1px solid #e3e8f1;
  border-radius: 14px;
  padding: 10px;
  gap: 8px;
}

.modal-batch-controls label {
  color: #5c6881;
  font-size: 14px;
}

.modal-batch-controls input,
.modal-batch-controls select {
  height: 40px;
  border: 1px solid #d8dfeb;
  border-radius: 11px;
  background: #fff;
}

.btn-batch {
  border-color: #d8dfeb;
  color: #405069;
  padding: 10px 14px;
  box-shadow: none;
}

@media (max-width: 980px) {
  .modal-head h3 {
    font-size: 24px;
  }

  .modal--batch .modal-head h3 {
    font-size: 32px;
  }

  .modal-note {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .overlay {
    padding: 10px;
  }

  .modal {
    border-radius: 18px;
    padding: 14px;
  }

  .modal-head h3 {
    font-size: 20px;
  }

  .modal--batch .modal-head h3 {
    font-size: 28px;
    line-height: 1.06;
  }

  .modal-note {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .modal-batch-controls {
    gap: 6px;
    padding: 8px;
  }

  .available-item {
    grid-template-columns: 52px 1fr auto;
    padding: 10px;
  }

  .available-item h4 {
    font-size: 16px;
  }

  .available-item p {
    font-size: 13px;
  }
}

/* Hero share action */
.hero-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-head-top h1 {
  margin: 0;
}

.share-cta {
  border: 0;
  background: transparent;
  color: #69758d;
  border-radius: 0;
  height: auto;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.share-cta i {
  font-size: 13px;
  color: #8a95a8;
}

.share-cta:hover {
  color: #4c576f;
}

.share-cta:hover i {
  color: #6f7b91;
}

.share-cta:focus-visible {
  outline: 2px solid #d8dfeb;
  outline-offset: 4px;
  border-radius: 6px;
}

.share-feedback {
  margin: 7px 0 0;
  color: #5c6982;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-head-top {
    align-items: flex-end;
  }

  .share-cta {
    height: auto;
    min-width: 0;
    padding: 0;
    font-size: 12px;
    gap: 4px;
  }

  .share-cta i {
    font-size: 12px;
    margin: 0;
  }

  .share-feedback {
    font-size: 11px;
    margin-top: 6px;
  }
}

/* Final mobile correction: spacing + pill buttons + sticky summary depth */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .edit-toggle,
  .edit-done {
    border-radius: 999px;
  }

  .page-wrap {
    width: calc(100% - 20px);
    margin-top: 12px;
    gap: 12px;
  }

  .hero-head {
    padding: 0 4px 6px;
  }

  .hero-head h1 {
    font-size: 56px;
    line-height: 0.95;
  }

  .hero-head p {
    margin-top: 4px;
    font-size: 15px;
  }

  .list-card {
    border-radius: 20px;
    padding: 14px;
  }

  .list-head {
    margin-bottom: 12px;
    gap: 8px;
  }

  .list-head h2 {
    font-size: 22px;
    letter-spacing: -0.2px;
  }

  .list-head-actions {
    gap: 10px;
  }

  .list-head-actions .btn-primary,
  .list-head-actions .btn-ghost,
  .sticky-summary .btn-primary {
    min-height: 46px;
    border-radius: 999px;
  }

  .sticky-summary .btn-primary {
    font-size: 15px;
    padding: 0 18px;
  }

  .list-head-actions .btn-primary {
    padding: 0 20px;
  }

  .list-head-actions .btn-ghost {
    padding: 0 4px;
    font-size: 14px;
  }

  .product-line {
    border-radius: 18px;
    padding: 12px;
  }

  .sticky-summary {
    width: calc(100% - 20px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    border-radius: 18px;
    padding: 10px 12px;
    border-color: #e3e8f1;
    box-shadow:
      0 8px 22px rgba(20, 29, 44, 0.1),
      0 2px 6px rgba(20, 29, 44, 0.05);
  }

  .sticky-summary p {
    font-size: 11px;
  }

  .sticky-summary strong {
    font-size: 18px;
    line-height: 1;
  }

  .summary-actions {
    gap: 10px;
  }

  .summary-link {
    font-size: 12px;
    line-height: 1;
  }
}
