.shop-tool-shell {
  --shop-paper: rgba(255, 250, 240, 0.98);
  --shop-paper-soft: rgba(255, 247, 231, 0.92);
  --shop-border: rgba(131, 96, 50, 0.12);
  --shop-olive: #6d9728;
  --shop-olive-deep: #4f7418;
  --shop-brown: #6e4823;
  --shop-berry: #b64c3f;
  display: grid;
  gap: 24px;
}

.shop-hero-panel,
.shop-panel {
  border-radius: 30px;
  border: 1px solid var(--shop-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 232, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 58%);
  box-shadow:
    0 18px 28px rgba(89, 61, 29, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(214, 181, 128, 0.14);
}

.shop-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 24px;
  padding: 28px;
}

.shop-hero-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.shop-eyebrow,
.shop-panel-kicker {
  margin: 0;
  color: var(--shop-olive);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-hero-copy h1 {
  margin: 0;
  color: #1f1710;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(2.4rem, 3vw, 3.35rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.shop-lede,
.shop-panel-copy {
  margin: 0;
  color: #5d4a33;
  line-height: 1.72;
}

.shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.shop-button:hover {
  transform: translateY(-1px);
}

.shop-button-primary {
  background: linear-gradient(180deg, #8bc53f, #74ab28);
  color: #fff8e5;
  box-shadow: 0 12px 20px rgba(105, 148, 36, 0.18);
}

.shop-button-secondary {
  background: rgba(255, 255, 255, 0.94);
  color: var(--shop-brown);
  box-shadow: inset 0 0 0 1px rgba(131, 96, 50, 0.14);
}

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

.shop-kpi-card,
.shop-summary-card,
.shop-goal-card,
.shop-sellback-card,
.shop-season-card,
.shop-item-card,
.shop-shop-card,
.shop-preset-button,
.shop-selected-card,
.shop-detail-card,
.shop-shot-card,
.shop-results-bar,
.shop-preset-panel,
.shop-filter-panel,
.shop-basket-panel {
  background: var(--shop-paper);
  box-shadow:
    0 10px 18px rgba(91, 63, 27, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.shop-kpi-card {
  padding: 14px 16px;
  border-radius: 20px;
}

.shop-kpi-card span,
.shop-summary-card span,
.shop-goal-card span {
  display: block;
  color: #70553a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-kpi-card strong,
.shop-summary-card strong,
.shop-goal-card strong {
  display: block;
  margin-top: 4px;
  color: #1f1710;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
}

.shop-kpi-card p,
.shop-summary-card p,
.shop-goal-card p {
  margin: 8px 0 0;
  color: #5d4a33;
  line-height: 1.55;
}

.shop-hero-media {
  display: grid;
  gap: 14px;
}

.shop-shot-card {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
}

.shop-shot-card img {
  width: 100%;
  image-rendering: pixelated;
  background: #f5edd7;
}

.shop-shot-card figcaption {
  padding: 14px 16px 18px;
  color: #5d4a33;
  line-height: 1.58;
}

.shop-shot-card-owners img {
  background: #fffdf7;
}

.shop-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-anchor-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 249, 236, 0.92);
  box-shadow:
    0 8px 14px rgba(91, 63, 27, 0.06),
    inset 0 0 0 1px rgba(131, 96, 50, 0.12);
  color: var(--shop-brown);
  font-weight: 800;
  text-decoration: none;
}

.shop-content-grid {
  display: grid;
  gap: 22px;
}

.shop-panel {
  padding: 22px;
}

.shop-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.shop-panel-head h2,
.shop-basket-head h3 {
  margin: 0;
  color: #1f1710;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(1.8rem, 2vw, 2.25rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.shop-planner-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.shop-filter-panel,
.shop-basket-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(131, 96, 50, 0.1);
  align-self: stretch;
}

.shop-basket-panel {
  position: sticky;
  top: 20px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(246, 236, 208, 0.95)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 58%);
}

.shop-catalog-panel {
  display: grid;
  gap: 14px;
}

.shop-field,
.shop-gold-field {
  display: grid;
  gap: 6px;
}

.shop-field span,
.shop-gold-field span {
  color: #34261a;
  font-size: 0.88rem;
  font-weight: 800;
}

.shop-field input,
.shop-field select,
.shop-gold-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(131, 96, 50, 0.16);
  border-radius: 14px;
  background: #fffdf8;
  color: #24170f;
  font: inherit;
  padding: 0 0.9rem;
}

.shop-preset-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(131, 96, 50, 0.1);
}

.shop-preset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-preset-head span {
  color: #34261a;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-preset-grid {
  display: grid;
  gap: 10px;
}

.shop-preset-button {
  border: 1px solid rgba(131, 96, 50, 0.1);
  border-radius: 18px;
  color: inherit;
  cursor: pointer;
  padding: 12px 14px;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.shop-preset-button:hover,
.shop-preset-button.is-active {
  transform: translateY(-1px);
  border-color: rgba(109, 151, 40, 0.3);
  box-shadow:
    0 12px 20px rgba(91, 63, 27, 0.08),
    inset 0 0 0 1px rgba(109, 151, 40, 0.12);
}

.shop-preset-button strong {
  display: block;
  color: #1f1710;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.08rem;
  line-height: 1;
  text-transform: uppercase;
}

.shop-preset-button span {
  display: block;
  margin-top: 6px;
  color: #5d4a33;
  line-height: 1.45;
}

.shop-clear-button {
  min-height: 36px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: rgba(110, 72, 35, 0.1);
  color: var(--shop-brown);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.shop-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(131, 96, 50, 0.1);
}

.shop-results-bar p {
  margin: 0;
}

.shop-results-note {
  color: #70553a;
  font-size: 0.9rem;
}

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

.shop-item-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(131, 96, 50, 0.1);
}

.shop-item-top,
.shop-meta-row,
.shop-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-pill,
.shop-price-pill,
.shop-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 0.72rem;
  border-radius: 999px;
  background: rgba(109, 151, 40, 0.12);
  color: var(--shop-olive-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.shop-price-pill {
  background: rgba(182, 76, 63, 0.12);
  color: var(--shop-berry);
}

.shop-item-card h3 {
  margin: 0;
  color: #1f1710;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.22rem;
  line-height: 1;
  text-transform: uppercase;
}

.shop-item-card p {
  margin: 0;
  color: #5d4a33;
  line-height: 1.55;
}

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

.shop-meta-line {
  display: grid;
  gap: 4px;
}

.shop-meta-line strong {
  color: #33251a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.shop-stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(110, 72, 35, 0.12);
  color: var(--shop-brown);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
}

.shop-stepper output {
  min-width: 1.8rem;
  color: #1f1710;
  font-weight: 800;
  text-align: center;
}

.shop-basket-head {
  display: grid;
  gap: 14px;
}

.shop-summary-grid {
  display: grid;
  gap: 10px;
}

.shop-summary-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(131, 96, 50, 0.1);
}

.shop-summary-card-highlight {
  background: linear-gradient(180deg, rgba(139, 197, 63, 0.18), rgba(255, 248, 230, 0.98));
}

.shop-basket-note {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid rgba(131, 96, 50, 0.1);
  color: #5d4a33;
  line-height: 1.58;
}

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

.shop-selected-card,
.shop-empty-state {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(131, 96, 50, 0.1);
}

.shop-empty-state {
  color: #5d4a33;
  line-height: 1.58;
}

.shop-selected-card h4 {
  margin: 0;
  color: #1f1710;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.08rem;
  line-height: 1;
  text-transform: uppercase;
}

.shop-selected-card p {
  margin: 7px 0 0;
  color: #5d4a33;
  line-height: 1.5;
}

.shop-selected-card ul,
.shop-detail-stock,
.shop-detail-notes {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  color: #3c2d1e;
}

.shop-selected-card li + li,
.shop-detail-stock li + li,
.shop-detail-notes li + li {
  margin-top: 6px;
}

.shop-directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

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

.shop-shop-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  font: inherit;
  color: inherit;
  border: 1px solid rgba(131, 96, 50, 0.1);
  border-radius: 22px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.shop-shop-card:hover,
.shop-shop-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(109, 151, 40, 0.3);
  box-shadow:
    0 12px 20px rgba(91, 63, 27, 0.08),
    inset 0 0 0 1px rgba(109, 151, 40, 0.12);
}

.shop-shop-card img {
  width: 100%;
  border-radius: 16px;
  image-rendering: pixelated;
  background: #f5edd7;
}

.shop-shop-card h3,
.shop-detail-head h3,
.shop-season-card h3,
.shop-sellback-card h3 {
  margin: 0;
  color: #1f1710;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.26rem;
  line-height: 1;
  text-transform: uppercase;
}

.shop-shop-card p,
.shop-detail-body p,
.shop-season-card p,
.shop-sellback-card p {
  margin: 0;
  color: #5d4a33;
  line-height: 1.55;
}

.shop-detail-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(131, 96, 50, 0.1);
  position: sticky;
  top: 20px;
}

.shop-detail-hero {
  display: grid;
  gap: 12px;
}

.shop-detail-hero img {
  width: 100%;
  border-radius: 20px;
  image-rendering: pixelated;
  background: #f7efdd;
}

.shop-detail-head {
  display: grid;
  gap: 10px;
}

.shop-owner-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-owner-row img {
  width: 60px;
  height: 84px;
  object-fit: contain;
  border-radius: 16px;
  background: #fffdf7;
  image-rendering: pixelated;
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(131, 96, 50, 0.1);
}

.shop-owner-copy {
  display: grid;
  gap: 4px;
}

.shop-owner-copy span {
  color: #70553a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(109, 151, 40, 0.14);
  color: var(--shop-olive-deep);
  font-weight: 800;
  text-decoration: none;
}

.shop-season-grid,
.shop-goal-grid,
.shop-sellback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shop-season-card,
.shop-goal-card,
.shop-sellback-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(131, 96, 50, 0.1);
}

.shop-season-card {
  background:
    linear-gradient(180deg, rgba(255, 251, 239, 0.98), rgba(248, 238, 214, 0.95)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 58%);
}

.shop-crop-grid {
  display: grid;
  gap: 10px;
}

.shop-crop-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(131, 96, 50, 0.1);
}

.shop-crop-card strong {
  display: block;
  color: #1f1710;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.08rem;
  line-height: 1;
  text-transform: uppercase;
}

.shop-crop-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 0;
}

.shop-crop-card dt,
.shop-crop-card dd {
  margin: 0;
}

.shop-crop-card dt {
  color: #70553a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shop-crop-card dd {
  margin-top: 2px;
  color: #33251a;
  font-weight: 800;
}

.shop-goal-card strong,
.shop-sellback-card strong {
  display: block;
  color: #1f1710;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.shop-goal-card p + p,
.shop-sellback-card p + p {
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .shop-hero-panel,
  .shop-directory-layout,
  .shop-planner-layout {
    grid-template-columns: 1fr;
  }

  .shop-basket-panel,
  .shop-detail-card {
    position: static;
  }

  .shop-card-grid,
  .shop-season-grid,
  .shop-goal-grid,
  .shop-sellback-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .shop-kpi-grid,
  .shop-item-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shop-hero-panel,
  .shop-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .shop-anchor-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-panel-head {
    flex-direction: column;
  }

  .shop-hero-actions {
    flex-direction: column;
  }

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

  .shop-results-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
