/* Shared shop chrome — cart, wishlist, modal, toasts. Layered on top of
   the per-page navy theme inherited from /shop/index.html. */

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--glass, rgba(255,255,255,.05));
  border: 1px solid var(--line, rgba(255,255,255,.12));
  color: var(--text, #cbd5e1);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.nav-icon-btn:hover,
.nav-icon-btn.is-active {
  background: var(--glass-strong, rgba(255,255,255,.09));
  border-color: var(--line-strong, rgba(255,255,255,.22));
  color: #fff;
}
.nav-icon-btn svg { width: 18px; height: 18px; }
.nav-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--teal, #14b8a6);
  color: var(--navy, #08111f);
  font-size: .68rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(20,184,166,.4);
}
.nav-badge.is-zero { display: none; }

/* --- Toasts --- */
.shop-toast-host {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
}
.shop-toast {
  background: rgba(15, 23, 42, .96);
  border: 1px solid var(--line-strong, rgba(255,255,255,.22));
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.shop-toast.is-visible { opacity: 1; transform: translateY(0); }

/* --- Modal --- */
.shop-modal-root {
  position: fixed; inset: 0;
  z-index: 150;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.shop-modal-root.is-open { display: flex; }
.shop-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 17, 31, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: shop-fade .25s ease;
}
@keyframes shop-fade { from { opacity: 0 } to { opacity: 1 } }
.shop-modal {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), #0f172a;
  border: 1px solid var(--line-strong, rgba(255,255,255,.22));
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55);
  animation: shop-rise .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes shop-rise { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }
.shop-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line, rgba(255,255,255,.12));
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s;
  z-index: 2;
}
.shop-modal-close:hover { background: rgba(255,255,255,.18); }
.shop-modal-close svg { width: 16px; height: 16px; }
.shop-modal-body { padding: 0; }
.shop-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.shop-modal-img {
  background: #fff;
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 22px 0 0 22px;
  overflow: hidden;
}
.shop-modal-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.shop-modal-info {
  padding: 22px 26px 20px;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--text, #cbd5e1);
}
.shop-modal-brand {
  font-size: .74rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal, #14b8a6);
}
.shop-modal-info h2 {
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.shop-modal-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: .82rem; color: var(--text-dim, #94a3b8);
}
.shop-modal-meta strong { color: #fff; font-weight: 600; }
.shop-modal-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.shop-badge {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
}
.shop-badge.haz { background: rgba(245,158,11,.16); color: var(--amber, #f59e0b); border: 1px solid rgba(245,158,11,.3); }
.shop-badge.disc { background: rgba(148,163,184,.16); color: var(--text-dim, #94a3b8); border: 1px solid rgba(148,163,184,.3); }
.shop-modal-desc {
  margin: 0;
  font-size: .9rem; line-height: 1.5;
}
.shop-attrs {
  border-collapse: collapse;
  width: 100%;
  font-size: .86rem;
}
.shop-attrs th, .shop-attrs td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.shop-attrs th {
  font-weight: 600;
  color: var(--text-dim, #94a3b8);
  width: 38%;
}
.shop-attrs td { color: #fff; }
.shop-modal-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 2px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line, rgba(255,255,255,.12));
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper button {
  width: 36px; height: 42px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
}
.qty-stepper button:hover { background: rgba(255,255,255,.08); }
.qty-stepper input {
  width: 48px; height: 42px;
  background: transparent;
  border: none;
  color: #fff;
  font: inherit;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 20px; height: 42px;
  border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal, #14b8a6), var(--sky, #38bdf8));
  color: var(--navy, #08111f);
  box-shadow: 0 12px 30px rgba(20,184,166,.3);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; }
.btn-ghost {
  background: var(--glass, rgba(255,255,255,.05));
  border-color: var(--line, rgba(255,255,255,.12));
  color: var(--text, #cbd5e1);
}
.btn-ghost:hover { background: var(--glass-strong, rgba(255,255,255,.09)); color: #fff; }
.btn-ghost.is-active { color: var(--teal, #14b8a6); border-color: rgba(20,184,166,.5); }
.btn-ghost svg { width: 16px; height: 16px; }
.shop-modal-note {
  margin: 6px 0 0;
  color: var(--text-dim, #94a3b8);
  font-size: .8rem;
}

/* Related-products + service add-on inside the product modal */
.shop-modal-recos {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 26px 22px;
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(255,255,255,.02);
}
.shop-modal-recos-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shop-modal-recos-head h3 { margin: 0; color: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: .01em; }
.shop-modal-recos-head span { color: #94a3b8; font-size: .85rem; }
.shop-modal-recos-loading { color: #94a3b8; font-size: .85rem; margin: 0; }
.shop-modal-recos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.shop-modal-reco {
  display: flex; flex-direction: column;
  text-align: left;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  font: inherit; color: inherit;
  padding: 0;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.shop-modal-reco:hover {
  transform: translateY(-2px);
  border-color: rgba(20,184,166,.55);
  background: rgba(20,184,166,.08);
}
.shop-modal-reco-view {
  display: flex; flex-direction: column;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit; color: inherit;
  cursor: pointer;
  width: 100%;
}
.shop-modal-reco-img {
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}
.shop-modal-reco-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.shop-modal-reco-img .shop-img-placeholder { width: 100%; height: 100%; border-radius: 0; }
.shop-modal-reco-meta { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 2px; }
.shop-modal-reco-meta strong {
  display: block;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-modal-reco-meta span { color: #94a3b8; font-size: .72rem; }
.shop-modal-reco-actions {
  display: flex; gap: 6px;
  padding: 6px 10px 10px;
}
.shop-modal-reco-btn {
  flex: 1;
  font: inherit;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 7px 8px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.shop-modal-reco-btn.is-add {
  background: var(--teal, #14b8a6);
  color: var(--navy, #08111f);
  border-color: var(--teal, #14b8a6);
}
.shop-modal-reco-btn.is-add:hover { background: #2dd4bf; border-color: #2dd4bf; }
.shop-modal-reco-btn.is-view {
  background: transparent;
  color: var(--text, #cbd5e1);
  border-color: rgba(255,255,255,.18);
}
.shop-modal-reco-btn.is-view:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.shop-modal-service {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20,184,166,.18), rgba(56,189,248,.12));
  border: 1px solid rgba(20,184,166,.35);
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, border-color .2s ease;
}
.shop-modal-service:hover { transform: translateY(-1px); border-color: rgba(20,184,166,.7); }
.shop-modal-service-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.shop-modal-service-eyebrow {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--teal, #14b8a6);
}
.shop-modal-service strong { font-size: .98rem; font-weight: 800; color: #fff; }
.shop-modal-service-body { font-size: .82rem; color: #cbd5e1; }
.shop-modal-service-cta {
  flex-shrink: 0;
  font-size: .82rem; font-weight: 700;
  color: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .shop-modal { max-height: 95vh; border-radius: 18px; }
  .shop-modal-grid { grid-template-columns: 1fr; }
  .shop-modal-img { aspect-ratio: 4 / 3; border-radius: 18px 18px 0 0; }
  .shop-modal-info { padding: 18px 18px 18px; }
  .shop-modal-recos { padding: 14px 18px 20px; }
  .shop-modal-recos-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-modal-service { flex-direction: column; align-items: flex-start; }
  .shop-modal-service-cta { align-self: stretch; text-align: center; }
}

/* --- Sub-nav (category bar) --- */
.shop-subnav {
  border-top: 1px solid var(--line, rgba(255,255,255,.08));
  border-bottom: 1px solid var(--line, rgba(255,255,255,.12));
  background: rgba(8, 17, 31, .55);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.shop-subnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-subnav-inner::-webkit-scrollbar { display: none; }
.shop-subnav-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 8px 0;
}
.shop-subnav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dim, #94a3b8);
  white-space: nowrap;
  transition: color .2s, background .2s;
  position: relative;
}
.shop-subnav-tab:hover { color: #fff; background: rgba(255,255,255,.04); }
.shop-subnav-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(20,184,166,.22), rgba(56,189,248,.18));
  box-shadow: inset 0 0 0 1px rgba(20,184,166,.35);
}
.shop-subnav-icon { display: inline-flex; }
.shop-subnav-icon svg { width: 16px; height: 16px; }
.shop-subnav-soon {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .15);
  color: var(--amber, #f59e0b);
  border: 1px solid rgba(245, 158, 11, .35);
  margin-left: 2px;
}

/* --- Section heading shared --- */
.shop-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--teal, #14b8a6);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.shop-section-eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.shop-section-h2 {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 8px 0 6px;
  letter-spacing: -.01em;
}
.shop-section-sub {
  margin: 0;
  color: var(--text-dim, #94a3b8);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 60ch;
}
.shop-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.shop-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--sky, #38bdf8);
  flex-shrink: 0;
}
.shop-section-link:hover { color: #fff; }
.shop-section-link svg { width: 14px; height: 14px; }

/* --- Featured module (editorial / merchandised) --- */
.featured-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px 40px;
}

.featured-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
    var(--navy-2, #0f172a);
  border: 1px solid var(--line, rgba(255,255,255,.12));
  margin-bottom: 18px;
  cursor: pointer;
  isolation: isolate;
  transition: transform .3s var(--ease, ease), border-color .3s, box-shadow .3s;
  text-align: left;
  position: relative;
}
.featured-hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 20% 20%, rgba(20,184,166,.10), transparent 55%);
  z-index: 0;
}
.featured-hero:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong, rgba(255,255,255,.22));
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.featured-hero-img {
  background:
    radial-gradient(120% 80% at 30% 30%, #ffffff 0%, #f5f7fa 100%);
  display: grid; place-items: center;
  position: relative;
  z-index: 1;
  min-height: 320px;
  overflow: hidden;
}
.featured-hero-img::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 50% at 50% 50%, rgba(56,189,248,.05), transparent 60%);
}
.featured-hero-img img {
  position: relative;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 28px 40px rgba(8, 17, 31, .15));
  transition: transform .5s var(--ease, ease);
}
.featured-hero:hover .featured-hero-img img { transform: scale(1.04); }
.featured-hero-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.featured-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal, #14b8a6);
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20,184,166,.12);
  border: 1px solid rgba(20,184,166,.25);
}
.featured-hero-brand {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
}
.featured-hero-title {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
}
.featured-hero-pitch {
  color: var(--text, #cbd5e1);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0;
}
.featured-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal, #14b8a6), var(--sky, #38bdf8));
  color: var(--navy, #08111f);
  font-weight: 800;
  font-size: .92rem;
  align-self: flex-start;
  box-shadow: 0 14px 30px rgba(20,184,166,.28);
  transition: transform .2s;
}
.featured-hero:hover .featured-hero-cta { transform: translateY(-1px); }
.featured-hero-cta svg { width: 14px; height: 14px; }

.featured-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
    var(--navy-2, #0f172a);
  border: 1px solid var(--line, rgba(255,255,255,.12));
  cursor: pointer;
  text-align: left;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.featured-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong, rgba(255,255,255,.22));
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.featured-card .featured-card-img {
  background: #fff;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.featured-card .featured-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform .4s var(--ease, ease);
}
.featured-card:hover .featured-card-img img { transform: scale(1.05); }
.featured-card .featured-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.featured-card .featured-card-brand {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal, #14b8a6);
}
.featured-card .featured-card-title {
  font-weight: 700;
  color: #fff;
  font-size: .92rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-card .featured-card-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--sky, #38bdf8);
}
.featured-card .featured-card-cta svg { width: 11px; height: 11px; }

@media (max-width: 920px) {
  .featured-hero { grid-template-columns: 1fr; }
  .featured-hero-img { min-height: 240px; aspect-ratio: 16 / 10; }
  .featured-hero-body { padding: 28px 24px 30px; }
  .featured-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 640px) {
  .featured-row { grid-template-columns: 1fr 1fr; }
  .featured-row > .featured-card:nth-child(n+3) { display: none; }
}

/* --- Card overlays for cart/wishlist actions --- */
.product-card-actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s;
  z-index: 2;
}
.product:hover .product-card-actions,
.product:focus-within .product-card-actions { opacity: 1; transform: translateY(0); }
.product-card-action {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .9);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, color .2s, transform .15s;
}
.product-card-action:hover { background: var(--teal, #14b8a6); color: var(--navy, #08111f); transform: scale(1.06); }
.product-card-action.is-active { background: var(--teal, #14b8a6); color: var(--navy, #08111f); }
.product-card-action svg { width: 15px; height: 15px; }

/* Always show actions on touch */
@media (hover: none) {
  .product-card-actions { opacity: 1; transform: none; }
}

/* --- Placeholder tile (renders in place of missing product images) --- */
.shop-img-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(var(--ph-angle, 135deg), var(--ph-from, #14b8a6), var(--ph-to, #38bdf8));
  color: var(--ph-text, #fff);
  overflow: hidden;
  isolation: isolate;
}
.shop-img-placeholder-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 0;
  opacity: .18;
  pointer-events: none;
}
.shop-img-placeholder-bg svg {
  width: 78%;
  height: 78%;
  color: inherit;
  transform: rotate(-8deg);
}
/* Subtle bottom-right glow for depth */
.shop-img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 80% 95%, rgba(255,255,255,.18), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.shop-img-placeholder-fg {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  text-align: center;
  max-width: 92%;
}
.shop-img-placeholder-initials {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 5cqi, 2.4rem);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 2px;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.shop-img-placeholder-brand {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .92;
}
.shop-img-placeholder-title {
  font-size: .8rem;
  line-height: 1.3;
  opacity: .88;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured-hero size needs bigger type */
.featured-hero-img .shop-img-placeholder-initials {
  font-size: clamp(2.4rem, 6cqi, 3.6rem);
}
.featured-hero-img .shop-img-placeholder-title {
  font-size: .96rem;
  -webkit-line-clamp: 4;
}

/* Modal hero (square white area) — invert tile so it pops on white */
.shop-modal-img .shop-img-placeholder {
  width: 78%;
  height: 78%;
  border-radius: 14px;
  box-shadow: 0 28px 40px rgba(8, 17, 31, .18);
}

/* Inventory thumb / cart line thumb — small placeholders should hide the title */
.line .img .shop-img-placeholder-title,
.line .img .shop-img-placeholder-brand,
.inv-product-img .shop-img-placeholder-title,
.inv-product-img .shop-img-placeholder-brand,
.shop-quote-item-img .shop-img-placeholder-title,
.shop-quote-item-img .shop-img-placeholder-brand {
  display: none;
}
.line .img .shop-img-placeholder-initials,
.inv-product-img .shop-img-placeholder-initials,
.shop-quote-item-img .shop-img-placeholder-initials {
  font-size: .8rem;
}

/* ===== Shop search ===== */
.shop-search {
  position: relative;
  flex: 1;
  max-width: 360px;
  margin: 0 12px;
}
.shop-search-field {
  width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.shop-search-field::placeholder { color: rgba(255,255,255,.45); }
.shop-search-field:focus { border-color: #14b8a6; background: rgba(255,255,255,.12); }
.shop-search-field::-webkit-search-cancel-button { display: none; }
.shop-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(2,8,23,.18);
  z-index: 200;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}
.shop-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background .12s;
}
.shop-search-result:hover,
.shop-search-result:focus { background: #f0fdfa; outline: none; }
.shop-search-thumb {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.shop-search-thumb-ph { display: block; border-radius: 8px; }
.shop-search-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-search-title { font-size: .88rem; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-search-meta { font-size: .75rem; color: #64748b; }
.shop-search-empty { padding: 16px 14px; color: #64748b; font-size: .88rem; margin: 0; }

/* ===== Our Favorites section ===== */
.shop-favorites { padding: 52px 0; }
.shop-favorites-head { max-width: 1200px; margin: 0 auto; padding: 0 24px 20px; display: flex; align-items: baseline; gap: 14px; }
.shop-favorites-head h2 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.shop-favorites-head span { color: #64748b; font-size: .88rem; }
.shop-favorites-grid { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.shop-fav-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.shop-fav-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(2,8,23,.1); border-color: #14b8a6; }
.shop-fav-img { aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f8fafc; }
.shop-fav-img img { width: 100%; height: 100%; object-fit: contain; }
.shop-fav-img .shop-img-placeholder { width: 100%; height: 100%; border-radius: 0; }
.shop-fav-body { padding: 12px 14px; }
.shop-fav-body strong { display: block; font-size: .88rem; font-weight: 700; color: #0f172a; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-fav-body span { font-size: .75rem; color: #64748b; }

/* ===== Service cross-sell band ===== */
.shop-service-band { background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%); color: #fff; padding: 44px 24px; text-align: center; }
.shop-service-band-inner { max-width: 640px; margin: 0 auto; }
.shop-service-band-eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: #14b8a6; font-weight: 800; margin-bottom: 10px; }
.shop-service-band h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; }
.shop-service-band p { color: #94a3b8; font-size: .92rem; margin: 0 0 24px; }
.shop-service-band a.cta { display: inline-block; background: #14b8a6; color: #fff; padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .15s; }
.shop-service-band a.cta:hover { background: #0d9488; }

/* ===== Custom Select (.cs) ===== */
.cs {
  position: relative;
  display: inline-block;
}
.cs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  min-width: 148px;
  justify-content: space-between;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cs-toggle:hover {
  border-color: rgba(20,184,166,.6);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(20,184,166,.1);
}
.cs.is-open .cs-toggle {
  border-color: #14b8a6;
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(20,184,166,.14);
}
.cs-toggle:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}
.cs-value {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-chevron {
  width: 15px;
  height: 15px;
  color: rgba(255,255,255,.45);
  flex-shrink: 0;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), color .18s ease;
}
.cs.is-open .cs-chevron {
  transform: rotate(180deg);
  color: #14b8a6;
}
.cs-panel {
  position: fixed; /* JS sets left/top precisely; fixed escapes all stacking contexts */
  z-index: 9999;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,20,38,.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 16px rgba(0,0,0,.25), 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(20,184,166,.07) inset;
  overflow: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
  animation: cs-appear .17s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cs-appear {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cs-option {
  padding: 11px 18px;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: background .12s ease, color .12s ease, padding-left .12s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.cs-option:last-child { border-bottom: none; }
.cs-option:hover {
  background: rgba(20,184,166,.12);
  color: #fff;
  padding-left: 22px;
}
.cs-option.is-sel {
  color: #14b8a6;
  font-weight: 600;
  background: rgba(20,184,166,.07);
}
.cs-option.is-sel::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20,184,166,.22);
  flex-shrink: 0;
}

/* ===== "Wants service" checkbox in cart ===== */
.shop-service-nudge { background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 12px; padding: 14px 16px; font-size: .88rem; color: #0d9488; margin-bottom: 14px; }
.shop-wants-service { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; cursor: pointer; }
.shop-wants-service input[type=checkbox] { width: 18px; height: 18px; accent-color: #14b8a6; flex-shrink: 0; margin-top: 2px; }
.shop-wants-service-text { font-size: .9rem; color: #0f172a; line-height: 1.5; }

/* ===== Site chrome override =====
   Site-wide nav (the partial) is sticky on top; the shop's local
   header.nav drops sticky/blur and rides in the page flow as a category bar. */
header.nav { position: relative !important; top: auto !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: transparent !important; border-bottom: 1px solid var(--line) !important; }
