/* Catalog view of the bulk menu (the designer's catalog layout, live) + the Grid/Catalog switch */

.view-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.view-switch { display: inline-flex; background: #f3f0fa; border-radius: 999px; padding: 3px; }
.view-btn { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: 600 .9rem Poppins, sans-serif; color: #555; cursor: pointer; }
.view-btn.active { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.btn-pdf:disabled { opacity: .75; cursor: progress; }

body.catalog-view .block-title,
body.catalog-view #gradeTiles { display: none; }

/* Teal catalog background with white strain cards */
.catalog { --teal: #3f7f82; --teal-dark: #0a7f85; --ink: #1f2a2a; --muted: #5b6b6b; --line: #e3e8e8; --orange: #ff8050;
  background: var(--teal); border-radius: 16px; padding: 20px; color: var(--ink); font-family: Poppins, sans-serif; }
.catalog-grade { margin: 0 0 36px; padding: 10px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 18px; }
.catalog-grade:last-child { margin-bottom: 0; }
.catalog-grade-bar { position: sticky; top: var(--catalog-bar-top, 0px); z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 14px 20px; background: #0b4f54; color: #fff; border-radius: 12px; font: 800 1.3rem/1.2 Poppins, sans-serif; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 4px 12px rgba(0, 0, 0, .28); }
.catalog-grade-bar small { font: 600 .85rem/1 Poppins, sans-serif; color: #bfe6e8; text-transform: none; letter-spacing: 0; white-space: nowrap; }

.catalog-block { display: grid; grid-template-columns: 250px 1fr; gap: 20px 24px; align-items: start; background: #fff; border: 2px solid #cfe1e1; border-radius: 14px; padding: 18px; margin: 0 0 16px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.catalog-block:last-child { margin-bottom: 0; }
.catalog-photo { display: block; width: 100%; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 10px; background: #f3f6f6; padding: 0; overflow: hidden; cursor: zoom-in; }
.catalog-photo:disabled { cursor: default; }
.catalog-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catalog-photo .strain-photo-placeholder { width: 100%; height: 100%; }
.catalog-photo-col small { display: block; margin-top: 8px; text-align: center; font: 500 .78rem/1.3 Poppins, sans-serif; color: var(--muted); }

.catalog-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.catalog-name { margin: 0; font: 800 1.35rem/1.15 Poppins, sans-serif; color: var(--ink); }
.catalog-grade-tag { font: 600 .74rem/1 Poppins, sans-serif; color: var(--teal-dark); background: #e7f3f3; border-radius: 999px; padding: 6px 10px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }

.catalog-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.catalog-label { display: block; font: 600 .72rem/1.2 Poppins, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.catalog-box { display: flex; align-items: center; min-height: 46px; padding: 8px 14px; border-radius: 8px; font: 800 1.2rem/1.2 Poppins, sans-serif; }
.catalog-box.price { background: var(--orange); color: #fff; }
.catalog-box.price small { font-size: .8rem; font-weight: 600; margin-left: 5px; opacity: .95; }
.catalog-box.class { background: #fff; border: 2px solid var(--line); color: var(--ink); text-transform: uppercase; letter-spacing: .03em; }
.catalog-box.class.type-hybrid { color: #d92626; }
.catalog-box.class.type-indica { color: #194b80; }
.catalog-box.class.type-sativa { color: #2f7a4f; }
.catalog-box.potency { background: #eef3f3; color: var(--ink); }
.catalog-box.potency small { font-size: .78rem; font-weight: 600; color: var(--muted); margin-left: 6px; }

.catalog-lbs { background: var(--teal-dark); color: #fff; text-align: center; font: 800 1.05rem/1.2 Poppins, sans-serif; padding: 11px 12px; border-radius: 8px; letter-spacing: .04em; }
.catalog-desc { margin: 0; font: 400 .98rem/1.55 Poppins, sans-serif; color: #34403f; }

.catalog-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.catalog-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.catalog-link { background: none; border: 0; padding: 0; color: var(--teal-dark); font: 700 .82rem/1.2 Poppins, sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.catalog-more { flex: 1 1 auto; min-width: 0; }
.catalog-more[open] { flex-basis: 100%; }
.catalog-more summary { list-style: none; display: inline-block; cursor: pointer; }
.catalog-more summary::-webkit-details-marker { display: none; }
.catalog-more summary::after { content: " \25BE"; }
.catalog-more[open] summary::after { content: " \25B4"; }
.catalog-more-body { margin-top: 12px; background: #f3f7f7; border-radius: 10px; padding: 12px 14px; font: 400 .92rem/1.55 Poppins, sans-serif; color: #34403f; }
.catalog-more-body p { margin: 0 0 6px; }
.catalog-more-body p:last-child { margin: 0; }
.catalog-more-body a { color: var(--teal-dark); }
.catalog-order { flex: 0 0 auto; }
.catalog-block.is-target { outline: 3px solid #ffd700; outline-offset: 4px; }

/* Strain description on grid cards */
.strain-desc { margin: 6px 0 0; font: 400 .82rem/1.45 Poppins, sans-serif; color: #5b6b6b; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Full strain list, laid out like the inventory sheet */
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; }
.sheet-head p { margin: .3rem 0 0; color: var(--text-secondary, #666); font-size: .9rem; }
.sheet-search input { width: min(100%, 280px); padding: 10px 14px; border: 1px solid #c9d2d2; border-radius: 10px; font: 500 .9rem Poppins, sans-serif; background: #fff; }
.sheet-wrap { overflow: auto; border: 1px solid #c9d2d2; border-radius: 10px; background: #fff; max-height: 80vh; -webkit-overflow-scrolling: touch; }
.sheet { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; font: 400 .88rem/1.35 Poppins, sans-serif; color: #1f2a2a; }
.sheet th, .sheet td { padding: 8px 12px; border-bottom: 1px solid #e3e8e8; border-right: 1px solid #eef1f1; text-align: left; vertical-align: middle; background: #fff; }
.sheet th:last-child, .sheet td:last-child { border-right: 0; }
.sheet thead th { position: sticky; top: 0; z-index: 2; background: #0b4f54; color: #fff; font: 700 .72rem/1.2 Poppins, sans-serif; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; padding: 11px 12px; }
.sheet thead th[data-sort] { cursor: pointer; user-select: none; }
.sheet thead th[data-sort]::after { content: " \2195"; opacity: .5; }
.sheet thead th[data-dir="asc"]::after { content: " \2191"; opacity: 1; }
.sheet thead th[data-dir="desc"]::after { content: " \2193"; opacity: 1; }
.sheet-section th { background: #e7f3f3; color: #0b4f54; font: 800 .82rem/1.2 Poppins, sans-serif; letter-spacing: .04em; position: sticky; top: 37px; z-index: 1; }
.sheet-section th small { font: 600 .74rem/1 Poppins, sans-serif; color: #3f7f82; letter-spacing: 0; margin-left: 8px; }
.sheet-row:hover td { background: #f6fafa; }
.sheet-row.is-target td { background: #fff7d6; }
.sheet .c-strain { position: sticky; left: 0; z-index: 1; box-shadow: 2px 0 0 #e3e8e8; }
.sheet thead .c-strain, .sheet thead th:first-child { left: 0; z-index: 3; }
.sheet .c-strain a { color: #0a7f85; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sheet .c-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet .c-price { font-weight: 800; }
.sheet .c-type { text-transform: uppercase; font-weight: 700; font-size: .76rem; letter-spacing: .04em; white-space: nowrap; }
.sheet .type-hybrid { color: #d92626; }
.sheet .type-indica { color: #194b80; }
.sheet .type-sativa { color: #2f7a4f; }
.sheet-photo { display: inline-block; width: 46px; height: 46px; border-radius: 6px; overflow: hidden; border: 1px solid #e3e8e8; background: #f3f6f6; vertical-align: middle; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet .c-notes { min-width: 260px; max-width: 380px; color: #34403f; font-size: .82rem; line-height: 1.4; }
.sheet .c-notes span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet .c-order { white-space: nowrap; min-width: 160px; }
.sheet .c-order .card-order { margin: 0; }
.sheet .c-order .btn-pill { padding: 7px 14px; font-size: .8rem; }
.sheet-empty td { text-align: center; color: #5b6b6b; padding: 20px; }

@media (max-width: 760px) {
  .sheet { min-width: 820px; font-size: .84rem; }
  .sheet th, .sheet td { padding: 6px 10px; }
  .sheet .c-notes { min-width: 220px; max-width: 260px; font-size: .76rem; }
  .sheet-photo { width: 40px; height: 40px; }
  .sheet-wrap { max-height: 70vh; }
  .catalog { padding: 12px; border-radius: 12px; }
  .catalog-grade { padding: 6px; border-radius: 14px; }
  .catalog-grade-bar { font-size: 1.05rem; padding: 12px 14px; }
  .catalog-block { grid-template-columns: minmax(130px, 40%) 1fr; gap: 12px; padding: 14px; }
  .catalog-name { font-size: 1.2rem; }
  .catalog-row { grid-template-columns: 1fr; gap: 8px; }
  .catalog-box { min-height: 42px; font-size: 1.1rem; padding: 7px 12px; }
  .catalog-actions { flex-direction: column; align-items: stretch; }
  .catalog-order .btn-pill { width: 100%; }
  .catalog-photo-col small { font-size: .7rem; }
}

/* Phones: photo on top and the details full width underneath, so prices, potency
   and descriptions aren't squeezed into a narrow column (2026-10-23) */
.catalog-block > *, .catalog-info > *, .catalog-row > * { min-width: 0; }
@media (max-width: 600px) {
  .catalog-block { grid-template-columns: 1fr; gap: 14px; }
  .catalog-photo-col { width: 100%; max-width: 360px; margin: 0 auto; }
  .catalog-photo { aspect-ratio: 4 / 3; }
  .catalog-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .catalog-box { font-size: 1.05rem; padding: 7px 10px; flex-wrap: wrap; }
  .catalog-box small { white-space: nowrap; }
  .catalog-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .catalog-order { flex: 1 1 100%; }
}
