/* ============================================================================
   ALWYN — Site-wide side navigation panel
   ----------------------------------------------------------------------------
   Slides in from the left when the header Menu button is clicked.
   Loaded on every page; HTML is injected dynamically by sidepanel.js
   ========================================================================= */

.sidepanel-backdrop{
  position: fixed; inset: 0;
  background: rgba(28, 26, 20, 0.45);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
.sidepanel-backdrop.is-open{
  opacity: 1;
  pointer-events: auto;
}

.sidepanel{
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(420px, 100vw);
  background: #fff;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  font-family: 'IBM Plex Serif', Georgia, serif;
  color: #1C1A14;
  -webkit-font-smoothing: antialiased;
}
.sidepanel.is-open{ transform: translateX(0); }

/* Top bar — Close + Search, mono uppercase */
.sidepanel__top{
  display: flex; align-items: center; gap: 28px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid #f1ede5;
}
.sidepanel__close,
.sidepanel__search{
  background: transparent; border: 0; padding: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'IBM Plex Mono', Menlo, monospace;
  font-weight: 500; font-size: 12px;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: #1C1A14;
  text-decoration: none;
}
.sidepanel__close svg,
.sidepanel__search svg{
  width: 18px; height: 18px; flex: none;
}

/* Categories container */
.sidepanel__categories{
  padding: 16px 0 8px;
}

/* Plain top-level link (no chevron) — sits alongside category groups */
.sidepanel__quick-link{
  display: block;
  padding: 18px 32px;
  border-bottom: 1px solid #f5f1e9;
  text-decoration: none;
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-weight: 400;
  font-size: 22px; line-height: 1.1;
  letter-spacing: -0.01em;
  color: #1C1A14;
  transition: color 180ms ease;
}
.sidepanel__quick-link em{ font-style: italic; }
.sidepanel__quick-link:hover{ color: #6b6055; }

/* Expandable category group — chevron + collapsible content */
.sidepanel__group{
  border-bottom: 1px solid #f5f1e9;
}
.sidepanel__group:last-of-type{ border-bottom: 0; }

.sidepanel__group-toggle{
  background: transparent; border: 0;
  width: 100%;
  padding: 18px 32px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-weight: 400;
  font-size: 22px; line-height: 1.1;
  letter-spacing: -0.01em;
  color: #1C1A14;
  text-align: left;
  transition: color 180ms ease;
}
.sidepanel__group-toggle:hover{ color: #6b6055; }
.sidepanel__chevron{
  width: 14px; height: 14px; flex: none;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sidepanel__group-toggle[aria-expanded="true"] .sidepanel__chevron{
  transform: rotate(90deg);
}

.sidepanel__group-content{
  padding: 0 32px 22px 48px;
  display: flex; flex-direction: column; gap: 14px;
}
.sidepanel__group-content[hidden]{ display: none; }

.sidepanel__subhead{
  font-family: 'IBM Plex Mono', Menlo, monospace;
  font-weight: 500; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #6b6055;
  text-decoration: none;
  padding-bottom: 2px;
}
.sidepanel__subhead:hover{ color: #1C1A14; }

.sidepanel__group-content a:not(.sidepanel__subhead){
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-weight: 400;
  font-size: 17px; line-height: 1.2;
  letter-spacing: -0.005em;
  color: #1C1A14;
  text-decoration: none;
  transition: color 180ms ease;
}
.sidepanel__group-content a:not(.sidepanel__subhead):hover{ color: #6b6055; }

.sidepanel__group-empty{
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-style: italic; font-size: 14px;
  color: #6b6055;
}

/* Bottom — icon rows: Shopping bag · Contact us · Region/Language */
.sidepanel__bottom{
  margin-top: auto;
  padding: 14px 22px 24px;
  border-top: 1px solid #f1ede5;
  display: flex; flex-direction: column;
}
.sidepanel__bottom-row{
  display: flex; align-items: center; gap: 18px;
  padding: 14px 10px;
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-weight: 400;
  font-size: 15px;
  color: #1C1A14;
  text-decoration: none;
  background: transparent;
  border: 0; cursor: pointer; text-align: left;
  width: 100%;
  transition: color 180ms ease, background-color 180ms ease;
}
.sidepanel__bottom-row:hover{ color: #6b6055; }
.sidepanel__bottom-row__icon{
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  color: currentColor;
}
.sidepanel__bottom-row__icon svg{ width: 20px; height: 20px; display: block; }
.sidepanel__bottom-row__label{ flex: 1; }
.sidepanel__bottom-row__info{
  font-family: 'IBM Plex Mono', Menlo, monospace;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: #2a5cdc;
}
.sidepanel__bottom-row__info:empty{ display: none; }

/* Mobile — slightly tighter spacing */
@media (max-width: 600px){
  .sidepanel{ width: 100vw; }
  .sidepanel__top{ padding: 22px 22px 18px; gap: 22px; }
  .sidepanel__quick-link{ padding: 16px 22px; font-size: 19px; }
  .sidepanel__group-toggle{ padding: 16px 22px; font-size: 19px; }
  .sidepanel__group-content{ padding: 0 22px 18px 38px; gap: 12px; }
  .sidepanel__bottom{ padding: 10px 14px 22px; }
  .sidepanel__bottom-row{ padding: 14px 8px; font-size: 14px; }
}
