/* Gucci-like sliding menu panels (inline, no overlay) */

.gsm-inline,
.gsm-inline * { box-sizing: border-box; }

.gsm-inline{
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #fff;
  height: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

.gsm-viewport{
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  height: 100%;
}

/* Panels */
.gsm-panel{
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 60px;
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(.4,0,.2,1);
  background: #fff;
}
.gsm-panel--root{
  transform: translateX(0);
}

/* Back */
.gsm-back{
  appearance:none;
  border:0;
  background:transparent;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 14px 28px 10px 28px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color:#111;
}
.gsm-back--spacer{
  padding: 0;
  display:block;
}
.gsm-back__chev{
  font-size: 18px;
  line-height: 1;
  margin-top: -1px;
}
.gsm-title{
  margin: 8px 0 26px 0;
  padding: 0 28px;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.12;
  color: #000;
  text-transform: uppercase;
}

/* List */
.gsm-list{
  display:flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 18px 0;
}

.gsm-item{
  appearance:none;
  border:0;
  background: transparent;
  color:#111;
  text-decoration:none;
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 28px;
  line-height: 1.35;
  text-transform: uppercase;
  cursor: pointer;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}
.gsm-item:focus-visible{
  outline: 2px solid rgba(0,0,0,.25);
  outline-offset: -2px;
}
.gsm-item:active{
  background: #d6d6d6;
}
.gsm-item__label{
  display:block;
  padding-right: 14px;
}
.gsm-item__chev{
  font-size: 22px;
  line-height: 1;
  opacity: .9;
}

/* Deep leaf links (Gucci-like underlined list items) */
.gsm-item--leaf-deep{
  justify-content: flex-start;
  padding-top: 16px;
  padding-bottom: 16px;
}
.gsm-item--leaf-deep .gsm-item__label{
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* Make links behave like buttons visually */
a.gsm-item:hover{ color:#111; }
a.gsm-item:active{ color:#111; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .gsm-panel{ transition: none; }
}
