/* ============================================================
   VALA FRESH — shop.css
   Sysco-Shop-style category catalogue (guest view):
   197px filter sidebar + 4-col product grid on white.
   Measured neutrals: #2A2F33 text, #AAACAE light grey,
   #E4E5E6 borders. Brand accents: pink var(--pink-deep, #E43E7F) (links),
   leaf green #4C9F13 (primary buttons).
   Loaded on products.html after style.css.
   ============================================================ */

.shop-section {
  background: #fff;
  padding: 22px 0 64px;
}

.shop-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

/* ---------- Sidebar (197px, transparent on white) ---------- */
.shop-side {
  flex: 0 0 197px;
  width: 197px;
  background: transparent;
}

.side-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0 10px;
}

.side-filterby {
  font-size: 14px;
  font-weight: 700;
  color: #2A2F33;
}

.side-clear {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  color: var(--pink-deep, #E43E7F);
  cursor: pointer;
}

.side-clear:hover { text-decoration: underline; }

/* Filter groups: thin divider above each, bold 14px header */
.side-group {
  border-top: 1px solid #E4E5E6;
  padding: 12px 0;
}

.side-group-title {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #2A2F33;
  margin: 0 0 6px;
}

/* Category tree */
.side-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-cat {
  display: block;
  font-size: 13px;
  line-height: 2;
  color: #2A2F33;
  text-decoration: none;
}

.side-cat:hover {
  color: var(--pink-deep, #E43E7F);
  text-decoration: underline;
}

.side-cat.is-current {
  color: var(--pink-deep, #E43E7F);
  font-weight: 700;
}

/* Checkbox filter lists */
.side-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.side-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #2A2F33;
  cursor: pointer;
}

.side-check input[type=checkbox] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--pink-deep, #E43E7F);
  cursor: pointer;
}

.side-check input[type=checkbox]:focus-visible {
  outline: 2px solid var(--pink-deep, #E43E7F);
  outline-offset: 2px;
}

.side-lab { flex: 1 1 auto; }

/* ---------- Main column ---------- */
.shop-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* Small category title row (no hero) */
.shop-cat-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #2A2F33;
  margin: 0 0 10px;
}

/* Results bar */
.shop-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 14px;
}

.shop-results {
  margin: 0;
  font-size: 13px;
  color: #2A2F33;
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-sort-label {
  font-size: 13px;
  color: #2A2F33;
}

.shop-sort-select {
  font: inherit;
  font-size: 13px;
  color: #2A2F33;
  background: #fff;
  border: 1px solid #AAACAE;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
}

.shop-sort-select:focus-visible {
  outline: 2px solid var(--pink-deep, #E43E7F);
  outline-offset: 1px;
}

/* ---------- Product grid: 4 columns ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Card */
.shop-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E4E5E6;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.shop-card[hidden] { display: none; }

.shop-card:hover,
.shop-card:focus-visible {
  box-shadow: 0 2px 10px rgba(42, 47, 51, 0.14);
}

.shop-card:focus-visible {
  outline: 2px solid var(--pink-deep, #E43E7F);
  outline-offset: 2px;
}

.shop-media {
  width: 136px;
  height: 136px;
  margin: 0 auto;
}

.shop-media img {
  width: 136px;
  height: 136px;
  object-fit: cover;
  display: block;
  border: 0;
}

.shop-code {
  margin: 10px 0 2px;
  font-size: 10px;
  line-height: 1.4;
  color: #AAACAE;
}

.shop-brand {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: #2A2F33;
}

.shop-name {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #2A2F33;
}

/* Guest price row */
.shop-signin {
  margin: auto 0 0;
  padding-top: 10px;
  font-size: 12.5px;
}

.shop-signin a {
  color: var(--pink-deep, #E43E7F);
  font-weight: 600;
  text-decoration: none;
}

.shop-signin a:hover { text-decoration: underline; }

/* ---------- Empty state ---------- */
.shop-empty {
  text-align: center;
  padding: 56px 20px;
  border: 1px dashed #E4E5E6;
  border-radius: 8px;
  color: #2A2F33;
}

.shop-empty p {
  margin: 0 0 10px;
  font-size: 13px;
}

.shop-empty-clear {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--pink-deep, #E43E7F);
  text-decoration: underline;
  cursor: pointer;
}

.shop-empty-clear:hover { text-decoration: none; }

/* ---------- Guest CTA strip ---------- */
.shop-guest {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid #E4E5E6;
  border-radius: 8px;
}

.shop-guest p {
  margin: 0;
  font-size: 13px;
  color: #2A2F33;
}

.shop-become {
  display: inline-block;
  background: #4C9F13;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 4px;
  text-decoration: none;
}

.shop-become:hover { background: #3F850F; }

.shop-guest-signin {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-deep, #E43E7F);
  text-decoration: none;
}

.shop-guest-signin:hover { text-decoration: underline; }

/* Keep the "can't find it" note breathing room */
.shop-main .produce-note {
  margin-top: 22px;
  font-size: 13px;
  color: #2A2F33;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shop-layout {
    flex-direction: column;
    gap: 20px;
  }

  .shop-side {
    flex: 0 0 auto;
    width: 100%;
  }

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

  .shop-section { padding: 16px 0 48px; }
}
