/* ============================================================
   CATEGORY PAGE (e.g. lamb.html)
   ============================================================ */

body { padding-top: 0; }
.nav.scrolled { backdrop-filter: blur(20px); }

/* ============ CATEGORY HERO ============ */
.cat-hero {
  position: relative;
  padding: 160px 40px 80px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
.cat-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cat-hero-inner {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.breadcrumb a {
  color: var(--muted);
  transition: color 0.3s;
}
.breadcrumb a:hover { color: var(--orange); }
.bc-sep { color: var(--line); }
.bc-current { color: var(--orange); font-weight: 600; }

.cat-hero-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.cat-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
  color: var(--muted);
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.cat-hero-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s ease infinite;
}

.cat-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.cat-hero-title span { display: inline; }
.cat-hero-title em {
  display: inline;
  font-style: italic;
  font-weight: 300;
  color: var(--orange);
  margin-left: 6px;
}
.cat-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.cat-hero-feats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.feat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.feat-icon {
  width: 22px; height: 22px;
  background: rgba(255, 107, 26, 0.15);
  color: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-icon svg { width: 12px; height: 12px; }

/* Hero visual */
.cat-hero-visual {
  display: flex;
  justify-content: center;
}
.hero-illu-card {
  position: relative;
  width: 360px;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 107, 26, 0.2), transparent 60%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-orange);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}
.hero-illu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 0.42  0 0 0 0 0.1  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
}
.hero-illu-card img {
  width: 70%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 30px 50px rgba(255, 107, 26, 0.3));
  animation: floatY 6s ease-in-out infinite;
}
/* Photo variant — bigger fill, no filter, the photo has its own drama */
.hero-illu-card.hero-illu-photo {
  padding: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 107, 26, 0.25), transparent 60%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
}
.hero-illu-card.hero-illu-photo img {
  width: 110%;
  max-width: 110%;
  height: 100%;
  object-fit: cover;
  filter: none;
  border-radius: 32px;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-illu-badge {
  position: absolute;
  top: 24px; right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  z-index: 2;
}
.badge-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--orange);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.badge-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .cat-hero { padding: 120px 20px 60px; }
  .cat-hero-row { grid-template-columns: 1fr; gap: 40px; }
  .cat-hero-visual { order: -1; }
  .hero-illu-card { width: 240px; }
  .badge-num { font-size: 38px; }
}

/* ============ SHOP LAYOUT ============ */
.shop-layout {
  padding: 40px 40px 120px;
  background: var(--bg);
}

/* Toolbar */
.shop-toolbar {
  max-width: 1500px;
  margin: 0 auto 32px;
  padding: 20px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.shop-results {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.results-count {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--orange);
  line-height: 1;
}
.results-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
}
.filter-toggle svg { width: 16px; height: 16px; color: var(--orange); }

.shop-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-sort label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.select-wrap {
  position: relative;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 40px 10px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}
.select-wrap select:hover { border-color: var(--line-orange); }
.select-wrap select option { background: var(--bg-2); }
.select-wrap svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
}

/* Grid wrap (sidebar + products) */
.shop-grid-wrap {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* ============ SIDEBAR ============ */
.shop-sidebar {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  /* nice thin scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--line-orange) transparent;
}
.shop-sidebar::-webkit-scrollbar { width: 6px; }
.shop-sidebar::-webkit-scrollbar-track { background: transparent; }
.shop-sidebar::-webkit-scrollbar-thumb {
  background: var(--line-orange);
  border-radius: 999px;
}

.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.sidebar-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.sidebar-close {
  display: none;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}
.sidebar-close svg { width: 16px; height: 16px; }

/* Filter block */
.filter-block {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.filter-block:last-of-type { border-bottom: none; }
.filter-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
  color: var(--cream);
}
.filter-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.filter-chev {
  width: 20px; height: 20px;
  color: var(--orange);
  transition: transform 0.3s;
}
.filter-chev svg { width: 100%; height: 100%; }
.filter-block.open .filter-chev {
  transform: rotate(180deg);
}
.filter-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-block.open .filter-body {
  max-height: 400px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Custom checkbox */
.filter-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--cream);
  transition: color 0.3s;
}
.filter-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cbox {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}
.cbox svg {
  width: 14px;
  height: 14px;
  color: var(--bg);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.filter-check input:checked ~ .cbox {
  background: var(--orange);
  border-color: var(--orange);
}
.filter-check input:checked ~ .cbox svg {
  opacity: 1;
  transform: scale(1);
}
.filter-check:hover .cbox { border-color: var(--orange); }
.filter-check em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  margin-left: 4px;
}
.cb-lbl { flex: 1; }

/* Price range */
.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.price-input {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color 0.3s;
}
.price-input:focus-within { border-color: var(--orange); }
.px-prefix {
  color: var(--muted);
  font-size: 14px;
  margin-right: 4px;
}
.price-input input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
}
.price-input input::-webkit-outer-spin-button,
.price-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-input input[type=number] { -moz-appearance: textfield; }
.px-label {
  position: absolute;
  top: -7px;
  left: 10px;
  background: var(--bg-2);
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--orange);
}
.price-sep {
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
}
.price-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.3s;
}
.chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.chip.active {
  background: var(--orange);
  color: var(--bg);
  border-color: var(--orange);
}

/* Sidebar clear */
.sidebar-clear {
  margin-top: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 107, 26, 0.06);
  border: 1px solid var(--line-orange);
  border-radius: 12px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background 0.3s;
}
.sidebar-clear svg { width: 14px; height: 14px; }
.sidebar-clear:hover { background: rgba(255, 107, 26, 0.15); }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ============ PRODUCT GRID ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  min-height: 400px;
}

.product-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), border-color 0.6s, box-shadow 0.6s;
}
.product-card.hidden {
  display: none;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-orange);
  box-shadow: 0 30px 60px -25px rgba(255, 107, 26, 0.3);
}
.prod-link {
  display: block;
  color: inherit;
  height: 100%;
}

/* Product image with gradient placeholder */
.prod-img {
  position: relative;
  aspect-ratio: 1.16;
  overflow: hidden;
}
.prod-img-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease-out);
}
.prod-real-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-out);
}
/* Box images: show the full branded box without cropping */
.prod-real-img.prod-box-img {
  object-fit: contain;
  padding: 8px;
  background: radial-gradient(circle at 50% 60%, rgba(255, 107, 26, 0.08), transparent 70%);
}
.product-card:hover .prod-real-img {
  transform: scale(1.08);
}
.product-card:hover .prod-img-bg {
  transform: scale(1.08);
}
/* Each gradient simulates a distinct meat photo mood */
.prod-grad-1 {
  background:
    radial-gradient(circle at 40% 30%, #7A2305, transparent 55%),
    radial-gradient(circle at 70% 70%, #E04518, transparent 50%),
    linear-gradient(160deg, #2a0a05, #4A1505);
}
.prod-grad-2 {
  background:
    radial-gradient(circle at 30% 50%, #8B2D0A, transparent 55%),
    radial-gradient(circle at 80% 30%, #C73E11, transparent 50%),
    linear-gradient(135deg, #1a0a05, #3a1505);
}
.prod-grad-3 {
  background:
    radial-gradient(circle at 50% 40%, #FF8A4C, transparent 50%),
    radial-gradient(circle at 20% 70%, #5C1A05, transparent 60%),
    linear-gradient(150deg, #2a1006, #1a0a05);
}
.prod-grad-4 {
  background:
    radial-gradient(circle at 60% 30%, #FFB07C, transparent 45%),
    radial-gradient(circle at 30% 70%, #C73E11, transparent 55%),
    linear-gradient(140deg, #3a1505, #1a0a05);
}
.prod-grad-5 {
  background:
    radial-gradient(circle at 50% 50%, #7A2305, transparent 60%),
    radial-gradient(circle at 80% 80%, #FF6B1A, transparent 45%),
    linear-gradient(125deg, #2a0a05, #4A1505);
}
.prod-grad-6 {
  background:
    radial-gradient(circle at 40% 60%, #C73E11, transparent 55%),
    radial-gradient(circle at 70% 30%, #FF8A4C, transparent 50%),
    linear-gradient(165deg, #2a0a05, #3a1505);
}
.prod-grad-7 {
  background:
    radial-gradient(circle at 30% 40%, #8B2D0A, transparent 55%),
    radial-gradient(circle at 70% 70%, #E04518, transparent 50%),
    linear-gradient(155deg, #2a0a05, #1a0a05);
}
.prod-grad-8 {
  background:
    radial-gradient(circle at 50% 30%, #FF8A4C, transparent 50%),
    radial-gradient(circle at 30% 70%, #7A2305, transparent 60%),
    linear-gradient(135deg, #1a0a05, #3a1505);
}
.prod-grad-9 {
  background:
    radial-gradient(circle at 60% 60%, #C73E11, transparent 55%),
    radial-gradient(circle at 20% 30%, #FFB07C, transparent 45%),
    linear-gradient(150deg, #2a0a05, #1a0a05);
}
.prod-grad-10 {
  background:
    radial-gradient(circle at 40% 40%, #7A2305, transparent 50%),
    radial-gradient(circle at 80% 60%, #FF6B1A, transparent 45%),
    linear-gradient(145deg, #1a0a05, #2a0a05);
}
.prod-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(10, 6, 6, 0.5)),
    repeating-linear-gradient(45deg, transparent 0px, transparent 14px, rgba(255, 107, 26, 0.05) 14px, rgba(255, 107, 26, 0.05) 15px);
  pointer-events: none;
}
.prod-flag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 999px;
  z-index: 2;
}
.flag-orange {
  background: var(--orange);
  color: var(--bg);
}
.prod-wish {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 38px; height: 38px;
  background: rgba(10, 6, 6, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: background 0.3s, color 0.3s, transform 0.3s;
  cursor: pointer;
}
.prod-wish svg { width: 16px; height: 16px; }
.prod-wish:hover {
  background: var(--orange);
  color: var(--bg);
  transform: scale(1.1);
}
.prod-wish.liked {
  background: var(--orange);
  color: var(--bg);
}
.prod-wish.liked svg { fill: currentColor; }

/* Product body */
.prod-body {
  padding: 22px 22px 22px;
}
.prod-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.prod-cat {
  color: var(--orange);
  font-weight: 600;
}
.prod-origin {
  color: var(--muted);
}
.prod-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.2;
}
.prod-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
  min-height: 39px;
}
.prod-specs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.dot-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--orange);
}
.prod-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.prod-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.price-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}
.prod-add {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.prod-add svg { width: 18px; height: 18px; }
.product-card:hover .prod-add {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--bg);
  transform: rotate(90deg);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  display: none;
}
.product-grid.empty .empty-state { display: block; }
.empty-icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.empty-icon svg { width: 32px; height: 32px; }
.empty-state h4 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--muted);
  margin-bottom: 24px;
}
.empty-clear {
  padding: 12px 24px;
  background: var(--orange);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: background 0.3s, transform 0.3s;
}
.empty-clear:hover { background: var(--orange-light); transform: translateY(-2px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .shop-layout { padding: 30px 20px 80px; }
  .shop-grid-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .filter-toggle { display: inline-flex; }
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    max-height: 100vh;
    width: 320px;
    max-width: 85vw;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease);
    border-radius: 0;
  }
  .shop-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close { display: flex; }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .shop-toolbar { padding: 14px 18px; gap: 12px; }
  .results-count { font-size: 24px; }
  .cat-hero-title { font-size: 56px; }
}
