:root {
  --forest: #1b4332;
  --forest-dark: #143528;
  --violet: #488c70;
  --mint: #488c70;
  --brand: linear-gradient(105deg, #2f6a52 0%, #488c70 100%);
  --ink: #1c1917;
  --muted: #5c6560;
  --bg: #f6f5f1;
  --card: #ffffff;
  --line: #e4e1d8;
  --lime: #6a994e;
  --lime-soft: #e7f2df;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 10px 28px rgba(28, 25, 23, 0.05);
  --bs-primary: #1b4332;
  --bs-primary-rgb: 27, 67, 50;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --bs-body-font-family: var(--font);
  --bs-body-color: #1c1917;
  --bs-body-bg: #f6f5f1;
  --bs-border-color: #e4e1d8;
  --bs-link-color: #1b4332;
  --bs-link-hover-color: #143528;
  --bs-border-radius: 0.8rem;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body:has(.site-footer) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body:has(.site-footer) > main {
  flex: 1 0 auto;
}
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.03em;
}
.detail-price strong,
.detail-subtotal strong,
.market-price strong,
.basket-line,
.basket-total strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

img { max-width: 100%; }

@media (min-width: 992px) {
  .container {
    max-width: calc(100% - 10.5rem);
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: white;
  padding: 0.5rem 0.8rem;
  z-index: 2000;
}
.skip-link:focus { top: 1rem; }

.btn { min-height: 44px; font-weight: 600; }
.btn-sm { min-height: 36px; }
.btn-primary {
  background-image: var(--brand);
  border-color: transparent;
  color: white;
}
.btn-primary:hover, .btn-primary:focus {
  background-image: linear-gradient(105deg, #275a46 0%, #3d7a62 100%);
  border-color: transparent;
  color: white;
}
.btn-lime { background: var(--lime); border-color: var(--lime); color: #14291f; }
.btn-lime:hover { background: #5d8a44; color: #14291f; }

.top-strip {
  background-image: var(--brand);
  color: white;
  font-size: 0.85rem;
}
.top-strip a { color: inherit; text-decoration: none; }

.store-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.04);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #e7f2df;
  font-weight: 700;
}
.brand-name { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; color: var(--muted); font-size: 0.75rem; }
.search-wrap { position: relative; }
.suggest-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
}
.suggest-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.suggest-list a:hover { background: var(--lime-soft); }
.count-pill {
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--lime);
  color: #14291f;
  font-size: 0.75rem;
  display: inline-grid;
  place-items: center;
  padding: 0 0.35rem;
}

.hero {
  background: var(--forest);
  color: #f4f7f2;
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.75rem);
}
.hero p { color: #d5e4da; max-width: 38rem; }
.hero-search { background: white; border-radius: 14px; padding: 0.4rem; }

.section-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; }
.section-lead { color: var(--muted); margin-bottom: 1rem; }
.aisle-nav {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0 0 0.85rem;
  scrollbar-width: none;
}
.aisle-nav::-webkit-scrollbar { display: none; }
.aisle-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f3f7f2;
  color: var(--forest);
  border: 1px solid #e1ebe3;
  padding: 0.42rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.aisle-chip:hover, .aisle-chip.is-active { background-image: var(--brand); color: white; border-color: transparent; }
.brand-lockup { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { height: 44px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
.header-btn {
  height: 44px;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid #d7e3d8;
  background: #fff;
  color: #2f6a52;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}
.header-btn:hover { background: #eef6f2; color: #2f6a52; }
.header-btn-solid, .header-btn-solid:hover { background: #488c70; border-color: #488c70; color: #fff; }
.store-header .shop-search { height: 44px; }
.auth-wrap { display: flex; justify-content: center; padding: 1.5rem 0 2rem; }
.auth-card {
  width: min(100%, 460px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.6rem 1.4rem 1.4rem;
}
.auth-logo { height: 46px; width: auto; margin-bottom: 0.8rem; }
.auth-card h1 { font-size: 1.55rem; font-weight: 700; margin: 0 0 0.3rem; }
.auth-lead { color: var(--muted); margin-bottom: 1.1rem; }
.auth-card .form-control { min-height: 46px; border-radius: 12px; }
.auth-card .btn { height: 46px; border-radius: 12px; }
.auth-switch { margin: 1rem 0 0; text-align: center; }
.auth-switch a { color: #2f6a52; font-weight: 700; }
.footer-logo { height: 44px; width: auto; }
.side-logo { height: 34px; width: auto; max-width: 168px; background: white; border-radius: 8px; padding: 2px 6px; }
@media (min-width: 992px) {
  .shell.is-collapsed .side-logo { max-width: 44px; object-fit: cover; object-position: left center; }
}
.shop-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #f4f6f3;
  border: 1px solid #e4ebe4;
  border-radius: 999px;
  padding: 0.15rem 0.9rem;
  min-height: 44px;
}
.shop-search i { color: #6d7a72; }
.shop-search input {
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 40px;
  outline: none;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #d7e3d8;
  background: white;
  color: var(--forest);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.cart-link:hover { background: var(--lime-soft); color: var(--forest-dark); }
.shop-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.35rem 1.4rem;
  border-radius: 22px;
  background-image: var(--brand);
  color: white;
}
.shop-banner h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin: 0.1rem 0 0.35rem; }
.shop-banner p { margin: 0; color: #e7f5ee; max-width: 36rem; }
.shop-banner .promo-kicker { color: #d8f3dc; }
.shop-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.15rem;
}
.shop-tools .shop-search { flex: 1 1 220px; }
.shop-select {
  border: 1px solid #e1ebe3;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 0.9rem;
  font-weight: 600;
}
.shop-apply { width: auto; padding: 0 1.1rem; }

.category-row, .product-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
.category-row { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.panel, .product-card, .metric, .category-card, .order-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.category-card, .product-card { overflow: hidden; text-decoration: none; color: inherit; min-width: 0; }
.category-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.15rem;
  height: 148px;
  padding: 1rem 1.05rem;
}
.category-card strong {
  line-height: 1.3;
  min-height: 2.6em;
}
.category-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--lime-soft);
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.category-card:hover, .product-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08); }
.product-card, .category-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-media {
  aspect-ratio: 1 / 1;
  background: #eef3ee;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}
.product-card .product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.product-fallback { font-size: 2rem; font-weight: 700; color: var(--forest); }
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0.95rem 1rem 1rem;
}
.product-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
  margin: 0 0 0.2rem;
}
.product-name a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-unit {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.2rem;
  height: 1.2rem;
  margin-bottom: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-body form { margin-top: auto; }
.eyebrow { color: var(--muted); font-size: 0.78rem; margin-bottom: 0.2rem; letter-spacing: 0.01em; }
.price-row { display: flex; gap: 0.5rem; align-items: baseline; min-height: 1.6rem; margin-bottom: 0.85rem; }
.price-row strong { font-size: 1.05rem; }
.price-row s { color: var(--muted); font-size: 0.85rem; }
.badge-offer, .badge-stock {
  position: absolute;
  top: 0.6rem;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-offer { left: 0.6rem; background: #f6e7d3; color: #8a4b08; }
.badge-stock { right: 0.6rem; background: #f8e4e2; color: #9b2226; }

.site-footer {
  margin-top: 3.5rem;
  background:
    radial-gradient(1200px 280px at 10% -40%, rgba(72, 140, 112, 0.45), transparent 55%),
    linear-gradient(180deg, #174c38 0%, #10281f 100%);
  color: #d5e4db;
}
.footer-promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-promise article {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.footer-promise i {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #e7f6ee;
  font-size: 1.05rem;
}
.footer-promise strong { display: block; color: #fff; font-size: 0.92rem; font-weight: 600; }
.footer-promise span { display: block; color: #b7cbbf; font-size: 0.8rem; }
.footer-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding: 2.3rem 0 2rem;
  align-items: start;
}
.footer-links-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.footer-brand .footer-logo {
  display: block;
  height: 48px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 0.95rem;
}
.footer-brand p {
  max-width: 24rem;
  margin: 0;
  color: #c9dbd1;
  line-height: 1.65;
}
.site-footer h2 {
  margin: 0 0 0.9rem;
  color: #f7fbf8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-links, .footer-contact { display: grid; align-content: start; gap: 0.5rem; }
.footer-links a, .footer-contact a {
  color: #d5e4db;
  text-decoration: none;
  font-size: 0.94rem;
}
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { margin: 0; line-height: 1.55; color: #c9dbd1; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-base .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.15rem;
  color: #9fb3a6;
  font-size: 0.8rem;
}
.footer-base p { margin: 0; }
@media (max-width: 767px) {
  .footer-promise { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-links-pair { grid-template-columns: 1fr 1fr; }
  .footer-base .container { flex-direction: column; }
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-pending, .status-unpaid, .status-low { background: #f6e7d3; color: #8a4b08; }
.status-confirmed, .status-processing { background: #e7f2df; color: #1b4332; }
.status-ready, .status-ok, .status-paid, .status-delivered { background: #dceee4; color: #14532d; }
.status-out_for_delivery { background: #e7eef6; color: #1d4e89; }
.status-cancelled, .status-out, .status-expired { background: #f8e4e2; color: #9b2226; }
.status-archived { background: #eeeae4; color: #57534e; }

.table-card { background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.table-card .table { margin: 0; }
.table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fbfaf7;
}
.thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3ee;
}

.metric {
  display: block;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.metric { border-top: 3px solid #488c70; }
.metric-ok { border-top-color: #2f6a52; }
.metric-warn { border-top-color: #c47b2b; }
.metric-bad { border-top-color: #b42318; }
.metric:hover { border-color: #c9d7c4; border-top-width: 3px; }
.metric-label { color: var(--muted); font-size: 0.85rem; }
.metric-value { display: block; font-size: 1.55rem; margin: 0.2rem 0; }
.metric-hint { color: var(--muted); font-size: 0.78rem; }

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.empty-state i { font-size: 1.8rem; color: var(--forest); }
.error-page {
  max-width: 36rem;
  margin: 1.5rem auto 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2.4rem 1.5rem 2rem;
}
.error-code {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  background-image: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 { font-size: 1.55rem; margin: 0.75rem 0 0.45rem; }
.error-page p { color: var(--muted); margin: 0 auto; max-width: 28rem; }
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.pagination-bar { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; margin-top: 1rem; }

.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px;
  flex: 0 0 248px;
  background: var(--forest-dark);
  color: #e7f2ea;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 1rem 0.75rem 2rem;
}
.sidebar a { color: inherit; text-decoration: none; }
.side-link, .side-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
.side-link:hover, .side-link.active { background: rgba(255, 255, 255, 0.08); }
.side-link.active { font-weight: 700; }
.nav-section {
  margin: 1rem 0.7rem 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fb5a8;
}
.shell-main { flex: 1; min-width: 0; }
.topbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.content { padding: 1.25rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem; }
.crumbs a { color: var(--forest); text-decoration: none; }
.page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; }
.stock-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stock-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid #d7e3d8;
  background: #fff;
  color: #2f6a52;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
}
.stock-chips a.is-on, .stock-chips a:hover { background: #488c70; border-color: #488c70; color: #fff; }
.unit-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.unit-card {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eceae4;
  text-decoration: none;
  color: inherit;
}
.unit-card:hover { border-color: #488c70; }
.unit-card-name { color: #5c6560; font-size: 0.82rem; font-weight: 700; }
.unit-card strong { font-size: 1.45rem; letter-spacing: -0.03em; color: #143528; }
.unit-card span:last-child { color: #7b817c; font-size: 0.8rem; }
.stock-list { display: grid; gap: 0.65rem; }
.stock-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 8.5rem max-content max-content;
  gap: 0.85rem;
  align-items: center;
  background: #fff;
  border: 1px solid #eceae4;
  border-radius: 16px;
  padding: 0.75rem;
}
.stock-photo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f6f3;
  display: grid;
  place-items: center;
}
.stock-photo img { width: 100%; height: 100%; object-fit: cover; }
.stock-copy { min-width: 0; }
.stock-name { color: inherit; font-weight: 700; text-decoration: none; }
.stock-row p { margin: 0.15rem 0 0; color: #7b817c; font-size: 0.8rem; }
.stock-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin-top: 0.4rem; }
.unit-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef6f2;
  color: #174c38;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.stock-price { font-weight: 700; color: #143528; }
.stock-left { display: grid; min-width: 6.5rem; }
.stock-left strong { font-size: 1.15rem; letter-spacing: -0.03em; color: #143528; line-height: 1.1; }
.stock-left span { color: #5c6560; font-size: 0.78rem; }
.stock-flags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.stock-actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.desk-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.85rem;
}
.desk-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 176px;
  background: #fff;
  border: 1px solid #eceae4;
  border-radius: 18px;
  overflow: hidden;
}
.desk-photo {
  position: relative;
  display: block;
  min-height: 176px;
  background: #f3f6f2;
}
.desk-photo img { width: 100%; height: 100%; object-fit: cover; }
.desk-photo .product-fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.desk-body { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 0.85rem 0.7rem; min-width: 0; }
.desk-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.4rem; }
.desk-body p { margin: 0; color: #7b817c; font-size: 0.78rem; }
.desk-stock { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.4rem; }
.desk-stock strong { font-size: 1.7rem; letter-spacing: -0.04em; line-height: 1; color: #143528; }
.desk-stock span { color: #5c6560; font-size: 0.8rem; font-weight: 600; }
.desk-card.is-low .desk-stock strong { color: #8a4b08; }
.desk-card.is-out .desk-stock strong, .desk-card.is-expired .desk-stock strong { color: #9b2226; }
.desk-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.45rem; margin-top: 0.35rem; }
.desk-actions { display: flex; gap: 0.35rem; margin-top: auto; padding-top: 0.6rem; }
.desk-actions .btn { flex: 1; }
.catalog-panel {
  background: #fff;
  border: 1px solid #eceae4;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(20, 53, 40, 0.04);
  overflow: hidden;
}
.catalog-toolbar, .catalog-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.catalog-toolbar { padding: 0.9rem 1rem 0.35rem; }
.catalog-form { flex: 1; min-width: 0; }
.catalog-search, .catalog-pick {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  background: #f7f7f8;
  border: 1px solid #ececee;
  border-radius: 10px;
  color: #5c6560;
  font-size: 0.86rem;
}
.catalog-search { flex: 1 1 220px; padding: 0 0.75rem; }
.catalog-search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  min-height: 38px;
  color: #1c1917;
}
.catalog-pick { padding: 0 0.7rem; white-space: nowrap; }
.catalog-pick select {
  border: 0;
  outline: none;
  background: transparent;
  font-weight: 700;
  color: #1c1917;
  max-width: 11rem;
}
.catalog-add { margin-left: auto; border-radius: 10px; white-space: nowrap; }
.catalog-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.95rem;
}
.catalog-filter-row label {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7b817c;
}
.catalog-filter-row select {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #ececee;
  background: #f7f7f8;
  padding: 0 0.7rem;
  color: #1c1917;
}
.catalog-table { width: 100%; border-collapse: collapse; margin: 0; }
.catalog-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a918c;
  padding: 0.75rem 1rem;
  background: #fafafa;
  border-top: 1px solid #f0f0f1;
  border-bottom: 1px solid #f0f0f1;
}
.catalog-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f3f4;
  vertical-align: middle;
}
.catalog-table tbody tr:last-child td { border-bottom: 0; }
.catalog-table tbody tr:hover { background: #fafcfb; }
.catalog-product {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 180px;
  color: inherit;
  text-decoration: none;
}
.catalog-product img, .catalog-product .product-fallback {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f6f2;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  font-size: 1rem;
}
.catalog-product strong { display: block; font-size: 0.92rem; }
.catalog-product small { color: #8a918c; }
.catalog-left { display: grid; line-height: 1.2; }
.catalog-left span { color: #8a918c; font-size: 0.75rem; }
.dot-status { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.86rem; white-space: nowrap; }
.dot-status i { width: 8px; height: 8px; border-radius: 50%; background: #1f8a4c; }
.dot-status.is-low i { background: #c47b2b; }
.dot-status.is-out i, .dot-status.is-expired i { background: #d64545; }
.dot-status.is-archived i { background: #a8a29e; }
.catalog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.4rem; }
.catalog-edit { border-radius: 8px; min-width: 4.4rem; background: #488c70; border-color: #488c70; }
.catalog-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e6e6e8;
  background: #fff;
  color: #6b7280;
  display: grid;
  place-items: center;
}
.catalog-icon:hover { color: #9b2226; border-color: #e7c7c4; }
.catalog-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 1rem 0.2rem;
}
.catalog-pages a {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  text-decoration: none;
  color: #5c6560;
  font-weight: 700;
  font-size: 0.86rem;
}
.catalog-pages a.is-on, .catalog-pages a:hover { background: #488c70; color: #fff; }
.catalog-count { text-align: center; color: #8a918c; font-size: 0.8rem; margin: 0.35rem 0 0.9rem; }
@media (max-width: 760px) {
  .catalog-filter-row { grid-template-columns: 1fr; }
  .catalog-add { margin-left: 0; }
}
.sheet { background: #fff; border: 1px solid #eceae4; border-radius: 18px; overflow: hidden; }
.sheet-top { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
.sheet-photo { position: relative; min-height: 260px; background: #f3f6f2; display: grid; place-items: center; }
.sheet-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet-main { padding: 1.1rem 1.2rem 1.15rem; min-width: 0; }
.sheet-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin: 0.2rem 0 0.85rem; }
.sheet-stat { background: #f7f7f8; border-radius: 12px; padding: 0.7rem 0.8rem; }
.sheet-stat span { display: block; color: #7b817c; font-size: 0.75rem; font-weight: 700; }
.sheet-stat strong { display: block; margin-top: 0.15rem; font-size: 1.35rem; letter-spacing: -0.03em; color: #143528; line-height: 1.1; }
.sheet-stat small { color: #5c6560; }
.sheet-note { color: #5c6560; margin-bottom: 0.6rem; }
.sheet-thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; padding: 0.75rem 1rem 1rem; border-top: 1px solid #f0f0f1; }
.sheet-thumbs > img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: #f3f6f2; }
.photo-column { display: grid; justify-items: start; }
.photo-column > .mb-3, .photo-column > .form-check { width: min(100%, 28rem); }
.photo-column > [data-photo-adder] { width: 100%; }
.photo-column .preview-img { width: 120px; height: 120px; }
.main-photo-item { width: 120px; }
.photo-slot.main-photo-slot { width: 120px; height: 120px; }
.photo-slot:has(img:not([hidden])) .photo-slot-label { display: none; }
.photo-adder, .photo-slots, .photo-column .photo-manage { display: flex; flex-flow: row wrap; align-items: flex-start; gap: 0.7rem; }
.photo-plus, .photo-slot {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px dashed #488c70;
  background: #eef6f2;
  color: #174c38;
}
.photo-plus {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  padding: 0;
}
.photo-plus:hover { background: #488c70; color: #fff; }
.photo-slot {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  cursor: pointer;
  background: #f7faf8;
  border-color: #c9d5cc;
}
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot-label { font-size: 0.68rem; font-weight: 700; text-align: center; padding: 0.25rem; line-height: 1.2; }
.photo-slot-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #143528;
  line-height: 1;
  padding: 0;
}
.photo-save { height: 40px; }
@media (max-width: 800px) {
  .sheet-top, .sheet-stats { grid-template-columns: 1fr; }
  .sheet-photo { min-height: 220px; }
}
.field-grid { display: grid; gap: 0 1rem; }
.field-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid .form-control, .field-grid .form-select { width: 100%; }
.field-grid.align-end { align-items: end; }
@media (max-width: 900px) {
  .field-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .field-grid.cols-3, .field-grid.cols-2 { grid-template-columns: 1fr; }
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  align-items: end;
}
.filter-grid .btn { min-height: 38px; width: auto; justify-self: start; padding-inline: 1.1rem; }
@media (max-width: 760px) {
  .stock-row { grid-template-columns: 64px minmax(0, 1fr); }
  .stock-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .desk-board { grid-template-columns: 1fr; }
}
.chart-box { height: 260px; }
.timeline { border-left: 2px solid var(--line); margin-left: 0.4rem; padding-left: 1rem; }
.timeline-item { position: relative; margin-bottom: 0.9rem; }
.timeline-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  position: absolute;
  left: -1.35rem;
  top: 0.3rem;
}
.sidebar-backdrop { display: none; }
.toast-note {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
  max-width: min(360px, calc(100vw - 2rem));
}
.toast-note.err { border-left-color: #9b2226; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.filter-bar .form-control, .filter-bar .form-select { min-width: 9rem; }
.preview-img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    z-index: 1040;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  .shell.is-open .sidebar { transform: none; }
  .shell.is-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.35);
    border: 0;
    z-index: 1035;
  }
  .shell.is-collapsed .nav-label,
  .shell.is-collapsed .nav-section,
  .shell.is-collapsed .brand-text { display: inline; }
}

@media (min-width: 992px) {
  .shell.is-collapsed .sidebar { width: 76px; flex-basis: 76px; }
  .shell.is-collapsed .nav-label,
  .shell.is-collapsed .nav-section,
  .shell.is-collapsed .brand-text { display: none; }
}

.market-block { margin-bottom: 1.75rem; }
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}
.market-card, .pick-card {
  background: #fff;
  border: 1px solid #eceae4;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.04);
  min-width: 0;
}
.market-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.65rem 0.65rem 0.8rem;
}
.market-photo, .pick-photo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f4f6f3;
  border-radius: 14px;
}
.market-photo { aspect-ratio: 1 / 1; }
.market-photo img, .pick-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.market-name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6em;
  margin: 0.65rem 0 0.15rem;
}
.market-name a, .pick-copy h3 a { color: inherit; text-decoration: none; }
.market-name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-unit { color: #7b817c; font-size: 0.78rem; margin: 0 0 0.35rem; }
.market-price { display: flex; align-items: baseline; gap: 0.4rem; min-height: 1.4rem; margin-bottom: 0.55rem; }
.market-price strong { color: #00a856; font-size: 0.98rem; }
.market-price s { color: #9aa19c; font-size: 0.78rem; }
.market-card form, .pick-copy form { margin-top: auto; }
.btn-cart {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background-image: var(--brand);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.btn-cart:hover { filter: brightness(0.96); color: white; }
.btn-cart:disabled { background: #c5cdc8; }
.shop-tools .btn-cart { width: auto; flex: 0 0 auto; padding: 0 1.15rem; }
.off-pill, .stock-pill {
  position: absolute;
  top: 0.45rem;
  z-index: 1;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
}
.off-pill { left: 0.45rem; background: #e11d48; color: white; }
.stock-pill { right: 0.45rem; background: #fff; color: #9b2226; }
.market-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.market-head h2 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.market-arrows { display: flex; gap: 0.4rem; }
.market-arrows button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.pick-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.55rem) / 4);
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}
.pick-track::-webkit-scrollbar { display: none; }
.pick-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem;
  scroll-snap-align: start;
}
.pick-photo { aspect-ratio: 1; }
.pick-copy h3 { font-size: 0.92rem; font-weight: 600; margin: 0 0 0.15rem; line-height: 1.3; }
.pick-copy p { color: #7b817c; font-size: 0.75rem; margin: 0 0 0.25rem; }
.pick-copy .btn-cart { width: auto; padding: 0 0.8rem; }
.promo-board, .promo-split {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.promo-board { grid-template-columns: minmax(220px, 0.85fr) 1.6fr; }
.promo-split { grid-template-columns: 0.85fr 1.4fr; }
.promo-stack { display: grid; gap: 0.85rem; }
.promo-card, .promo-hero, .split-card {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 148px;
  padding: 1.15rem 1.2rem;
}
.promo-card h2, .promo-hero h2, .split-card h2 { font-size: 1.35rem; font-weight: 700; margin: 0.15rem 0 0.35rem; }
.promo-kicker { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }
.promo-cta {
  display: inline-flex;
  margin-top: 0.7rem;
  background: white;
  color: #14532d;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.promo-cta-dark { background: #143528; color: white; }
.promo-daily { background: linear-gradient(135deg, #f6b73c, #ef7d3b); color: #3b2208; }
.promo-way { background: linear-gradient(135deg, #7dce7a, #2f9e68); color: #143528; }
.promo-hero {
  display: grid;
  grid-template-columns: 1fr 42%;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(120deg, #ffe56a, #f6c445);
  color: #3f2d05;
  min-height: 320px;
}
.promo-hero img { width: 100%; height: 240px; object-fit: cover; border-radius: 18px; position: static; }
.split-fresh { background: linear-gradient(135deg, #ffe08a, #f0b429); color: #3f2d05; }
.split-smart {
  background:
    linear-gradient(100deg, rgba(20, 53, 40, 0.88), rgba(20, 53, 40, 0.45)),
    #1b4332;
  color: white;
  display: flex;
  align-items: flex-end;
  min-height: 210px;
}
.split-smart p { color: #e7f2df; max-width: 34rem; }
@media (max-width: 1199px) {
  .shelf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pick-track { grid-auto-columns: calc((100% - 0.85rem) / 2); }
}
@media (max-width: 767px) {
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-board, .promo-split, .promo-hero { grid-template-columns: 1fr; }
  .promo-hero { min-height: 0; }
  .pick-track { grid-auto-columns: 86%; }
}

.basket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.basket-head h1 { font-size: 1.7rem; font-weight: 700; margin: 0; }
.basket-head p { margin: 0.15rem 0 0; color: var(--muted); }
.basket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}
.basket-list { display: grid; gap: 0.75rem; }
.basket-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  background: #fff;
  border: 1px solid #eceae4;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.04);
  padding: 0.85rem;
}
.basket-photo {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f6f3;
}
.basket-photo img { width: 100%; height: 100%; object-fit: cover; }
.basket-copy h2 { font-size: 1.02rem; font-weight: 700; margin: 0 0 0.15rem; }
.basket-copy h2 a { color: inherit; text-decoration: none; }
.basket-copy p { margin: 0 0 0.35rem; color: #7b817c; font-size: 0.82rem; }
.basket-copy strong { color: #488c70; }
.basket-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}
.basket-qty { display: flex; align-items: center; gap: 0.45rem; }
.qty-step {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border: 1px solid #e4ebe4;
  border-radius: 999px;
  background: #f7faf7;
}
.qty-step button {
  width: 36px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #174c38;
  font-size: 1.15rem;
  line-height: 1;
}
.qty-step input {
  width: 3.1rem;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  outline: none;
}
.qty-step input::-webkit-outer-spin-button,
.qty-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-step input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.basket-update {
  border: 0;
  background: transparent;
  color: #2f6a52;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0;
}
.basket-line { font-size: 1.05rem; color: #143528; }
.basket-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0;
}
.basket-summary {
  position: sticky;
  top: 1rem;
  background: #fff;
  border: 1px solid #eceae4;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.04);
  padding: 1.1rem 1.1rem 1rem;
}
.basket-summary h2 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.85rem; }
.basket-meter-bar {
  height: 8px;
  border-radius: 999px;
  background: #e7f0ea;
  overflow: hidden;
}
.basket-meter-bar span {
  display: block;
  height: 100%;
  background: #488c70;
}
.basket-meter p { margin: 0.45rem 0 0.9rem; color: #3d4a43; font-size: 0.84rem; }
.basket-summary dl { margin: 0; }
.basket-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}
.basket-summary dt { color: #66736c; font-weight: 500; }
.basket-summary dd { margin: 0; font-weight: 700; }
.basket-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0.7rem 0 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eceae4;
  font-size: 1.05rem;
  font-weight: 700;
}
.basket-total strong { font-size: 1.25rem; color: #143528; }
.basket-summary .btn { height: 46px; border-radius: 12px; }
.basket-block { color: var(--muted); margin: 0 0 0.7rem; }
.basket-pay { margin: 0.75rem 0 0; color: #7b817c; font-size: 0.8rem; }
@media (max-width: 991px) {
  .basket-layout { grid-template-columns: 1fr; }
  .basket-summary { position: static; }
}
@media (max-width: 640px) {
  .basket-head { align-items: flex-start; flex-direction: column; }
  .basket-item { grid-template-columns: 72px minmax(0, 1fr); }
  .basket-photo { width: 72px; height: 72px; }
  .basket-side {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
}

.detail {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
  gap: 1.6rem;
  align-items: start;
  background: #fff;
  border: 1px solid #eceae4;
  border-radius: 24px;
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.04);
  padding: 1.1rem;
}
.gallery-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: #f3f4f2;
}
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.8rem; }
.gallery-thumbs button {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f2;
}
.gallery-thumbs button.is-active { border-color: #488c70; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding: 0.45rem 0.55rem 0.2rem 0.15rem; }
.detail-cat {
  display: inline-flex;
  align-items: center;
  background: #e7f6ee;
  color: #174c38;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.detail-copy h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  margin: 0.7rem 0 0.2rem;
}
.detail-meta { margin: 0 0 0.7rem; color: #7b817c; font-size: 0.88rem; }
.detail-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.75rem;
}
.detail-price strong { color: #143528; font-size: 1.9rem; line-height: 1; }
.detail-price span, .detail-price s { color: #7b817c; font-size: 1rem; }
.detail-desc { margin: 0 0 1rem; color: #3d4a43; max-width: 36rem; }
.detail-label { display: block; margin: 0 0 0.4rem; font-weight: 600; font-size: 0.88rem; }
.size-pill {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.4rem 0.8rem;
  border: 1.5px solid #488c70;
  border-radius: 999px;
  background: #f3faf6;
  color: #174c38;
  font-size: 0.86rem;
  font-weight: 700;
}
.detail-subtotal { margin: 0.85rem 0 0.35rem; color: #3d4a43; }
.detail-subtotal strong { color: #488c70; font-size: 1.15rem; }
.detail-stock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: #5c6560;
}
.detail-add { width: 100%; height: 48px; font-size: 1rem; border-radius: 12px; }
.detail-notes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  margin: 1rem 0 0;
  padding: 0.95rem 0 0;
  border-top: 1px solid #eceae4;
  color: #5c6560;
  font-size: 0.84rem;
}
.detail-notes li { display: flex; align-items: center; gap: 0.4rem; }
.detail-notes i { color: #488c70; }
.photo-manage { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.photo-manage-item {
  width: 108px;
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #5c6560;
}
.photo-manage-item img { width: 108px; height: 80px; object-fit: cover; border-radius: 10px; background: #f3f4f2; }
.main-photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.detail-more { margin-top: 1.75rem; }
.detail-more .market-head a { color: #2f6a52; font-weight: 700; text-decoration: none; }
.detail-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 991px) {
  .detail { grid-template-columns: 1fr; align-items: start; }
  .detail-copy { padding: 0.2rem 0.25rem 0.4rem; }
  .detail-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .detail-notes { display: grid; }
}

@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .invoice { box-shadow: none; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
