/* =========================================================
   Shop page (uses blog.css tokens + products.css cards)
   ========================================================= */
.sp { background: var(--bl-cream); }
.sp a { text-decoration: none; }
:where(.sp) section { padding: 0; }

/* Hero */
.sp-hero { position: relative; overflow: hidden; padding: 140px 0 48px; }
.sp-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 380px at 92% 10%, rgba(241, 79, 15, .16), transparent 70%),
    radial-gradient(rgba(13, 13, 13, .07) 1px, transparent 1.2px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
          mask-image: linear-gradient(to bottom, #000 50%, transparent);
}
.sp-hero .container { position: relative; }
.sp-crumbs {
  display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px;
  font-size: 13px; color: var(--bl-muted);
}
.sp-crumbs a { color: var(--bl-ink); font-weight: 500; }
.sp-crumbs a:hover { color: var(--bl-orange); }
.sp-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.sp-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sp-hero h1 {
  font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
  color: var(--bl-ink); margin: 0 0 14px;
}
.sp-lead { font-size: 17px; line-height: 1.7; color: var(--bl-body); max-width: 56ch; margin: 0; }
.sp-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sp-chips li {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #f1e4dc; border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 500; color: var(--bl-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}
.sp-chips i { color: var(--bl-orange); }

/* Toolbar */
.sp-body { padding: 8px 0 88px !important; }
.sp-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid #f1e4dc; border-radius: 18px;
  padding: 12px; margin-bottom: 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .04);
}
.sp-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.sp-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--bl-muted); font-size: 14px; }
.sp-search input {
  width: 100%; height: 46px; border: 1.5px solid #ece4de; border-radius: 12px;
  padding: 0 14px 0 42px; font-size: 15px; color: var(--bl-ink); background: var(--bl-cream);
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.sp-search input:focus { border-color: var(--bl-orange); background: #fff; box-shadow: 0 0 0 4px rgba(241, 79, 15, .12); }
.sp-toolbar-right { display: flex; align-items: center; gap: 14px; }
.sp-count { font-size: 14px; color: var(--bl-muted); white-space: nowrap; }
.sp-sort { position: relative; margin: 0; }
.sp-sort i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--bl-orange); font-size: 13px; pointer-events: none; }
.sp-sort select {
  height: 46px; border: 1.5px solid #ece4de; border-radius: 12px; background: #fff;
  padding: 0 36px 0 36px; font-size: 14px; font-weight: 600; color: var(--bl-ink); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1a1a' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  outline: none;
}
.sp-sort select:focus { border-color: var(--bl-orange); box-shadow: 0 0 0 4px rgba(241, 79, 15, .12); }

/* Grid */
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.sp-item { display: flex; min-width: 0; }
.sp-item > .pt-card { flex: 1; }
.sp-item[hidden] { display: none !important; }

.sp-empty { text-align: center; background: #fff; border-radius: 20px; padding: 52px 20px; border: 1px solid #f1e4dc; }
.sp-empty i { font-size: 32px; color: var(--bl-orange); margin-bottom: 12px; display: block; }
.sp-empty h2 { font-size: 20px; font-weight: 800; color: var(--bl-ink); margin: 0 0 6px; }
.sp-empty p { margin: 0; color: var(--bl-muted); }
.sp-empty a { color: var(--bl-orange); font-weight: 600; }

/* Perks */
.sp-perks {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid #f1e4dc; border-radius: 20px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .05);
}
.sp-perk { display: flex; align-items: center; gap: 14px; padding: 22px 24px; }
.sp-perk + .sp-perk { border-left: 1px solid var(--bl-line); }
.sp-perk i {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bl-orange-soft); color: var(--bl-orange); font-size: 17px;
}
.sp-perk strong { display: block; font-size: 15px; color: var(--bl-ink); }
.sp-perk span { font-size: 13px; color: var(--bl-muted); }

/* Help band */
.sp-help { margin-top: 40px; }
.sp-help-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.sp-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, .35); color: #fff;
  border-radius: 999px; padding: 12px 22px; font-size: 15px; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.sp-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

@media (max-width: 1199px) {
  .sp-perk { padding: 18px; }
}
@media (max-width: 991px) {
  .sp-hero { padding: 125px 0 40px; }
  .sp-chips { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .sp-perks { grid-template-columns: repeat(2, 1fr); }
  .sp-perk:nth-child(3) { border-left: 0; }
  .sp-perk:nth-child(n+3) { border-top: 1px solid var(--bl-line); }
}
@media (max-width: 767px) {
  .sp-hero { padding: 110px 0 32px; }
  .sp-hero h1 { font-size: 30px; }
  .sp-lead { font-size: 15.5px; }
  .sp-chips { gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; width: auto; max-width: calc(100% + 12px); }
  .sp-chips::-webkit-scrollbar { display: none; }
  .sp-chips li { flex: none; white-space: nowrap; }
  .sp-chips li { padding: 7px 12px; font-size: 13px; }
  .sp-body { padding-bottom: 56px !important; }
  .sp-toolbar { padding: 10px; border-radius: 16px; margin-bottom: 20px; }
  .sp-search { max-width: none; flex-basis: 100%; }
  .sp-toolbar-right { width: 100%; justify-content: space-between; }
  .sp-sort select { height: 42px; }
  .sp-perks { margin-top: 40px; grid-template-columns: 1fr; }
  .sp-perk + .sp-perk { border-left: 0; border-top: 1px solid var(--bl-line); }
  .sp-help { padding: 28px 22px; flex-direction: column; align-items: stretch; text-align: center; }
  .sp-help h2 { font-size: 22px; }
  .sp-help-actions { flex-direction: column; }
  .sp-help-actions a { justify-content: center; }
}
@media (max-width: 575px) {
  .sp-grid { grid-template-columns: 1fr; gap: 18px; }
}
