:root {
  --psamm-head-bg: #111;
  --psamm-text: #1A1D32;
  --psamm-border: rgba(26,29,50,.10);
  --psamm-muted: rgba(26,29,50,.05);
  --psamm-green-bg: #e7f6ef;
  --psamm-green: #11845b;
}

.psamm { display: block; }

@media (min-width: 1024px) {
  .psamm { display: none !important; }
}

.psamm-trigger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}

.psamm-trigger:hover { background: var(--psamm-muted); }

.psamm-trigger span {
  width: 24px;
  height: 2px;
  background: var(--psamm-text);
  border-radius: 4px;
}

.psamm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,.42);
}

.psamm-panel {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 9999;
  width: min(92vw, 420px);
  min-width: 320px;
  background: #fff;
  color: var(--psamm-text);
  transform: translateX(-105%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 12px 0 30px rgba(0,0,0,.18);
}

.psamm.is-open .psamm-panel { transform: translateX(0); }

.psamm-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--psamm-head-bg);
  color: #fff;
  position: relative;
  padding: 12px 56px;
}

.psamm-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.psamm-back,
.psamm-close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  width: 44px;
  height: 44px;
  font-size: 34px;
  line-height: 1;
}

.psamm-back { left: 8px; }
.psamm-close { right: 8px; font-size: 32px; }

.psamm-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  flex: 1;
}

.psamm-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.psamm-track {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--psamm-green-bg);
  color: var(--psamm-green);
  margin: 0 -16px 14px;
  padding: 14px 16px;
  font-size: 14px;
}

.psamm-track strong { flex: 1; }
.psamm-track a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.psamm-stack { position: relative; overflow: hidden; }

.psamm-view {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.psamm-view.is-active { display: block; }

.psamm-link {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid var(--psamm-border);
  background: transparent;
  color: var(--psamm-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 14px;
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.psamm-link:hover { color: #000; }
.psamm-chevron { font-size: 26px; line-height: 1; opacity: .55; }
.psamm-all .psamm-link { font-weight: 800; background: #fafafa; padding-left: 10px; }

.psamm-extra {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.psamm-extra a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 10px;
  color: var(--psamm-text);
  text-decoration: none;
  border-bottom: 1px solid var(--psamm-border);
  font-weight: 700;
  border-radius: 8px;
}

.psamm-extra img { width: 24px; height: 24px; object-fit: contain; }

.psamm-badge-offerte { background: #FFC8B4; }
.psamm-badge-formato { background: #FFBD73; }
.psamm-badge-allergie { background: #FDD66F; }
.psamm-badge-brand { background: #B0E9DD; }

body.psamm-lock { overflow: hidden; }
