/* drawer/mobile overlay styles are currently in pages/catalog.css legacy block */


/* extracted from legacy.css */
.sf-mobile-catalog {
  position: fixed;
  inset: 0;
  z-index: 1300;
}
.sf-mobile-catalog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 4, .58);
  backdrop-filter: blur(4px);
}
.sf-mobile-catalog-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f4efe4;
  border-top: 1px solid rgba(200,166,66,.42);
  border-radius: 18px 18px 0 0;
  min-height: min(72vh, 680px);
  max-height: min(86vh, 800px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
}
.sf-mobile-catalog-grip {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(200,166,66,.5);
  margin: 8px auto 6px;
}
.sf-mobile-catalog-head {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 34px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 11px;
  border-bottom: 1px solid rgba(200,166,66,.24);
}
.sf-mobile-catalog-title-wrap h3 {
  margin: 0;
  color: #1a140c;
  font-family: "Cormorant SC", Georgia, serif;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.1;
}
.sf-mobile-catalog-crumbs {
  margin: 3px 0 0;
  color: #8f7442;
  font-size: 11px;
}
.sf-mobile-catalog-back,
.sf-mobile-catalog-close {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid rgba(200,166,66,.38);
  color: #9a7b28;
  background: #f4efe4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.sf-mobile-catalog-back.sf-hidden {
  display: inline-flex !important;
  visibility: hidden;
  pointer-events: none;
}
.sf-mobile-catalog-body {
  overflow-y: auto;
  padding: 10px 10px 8px;
}
.sf-mobile-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(200,166,66,.24);
  border-radius: 6px;
  overflow: hidden;
}
.sf-mobile-catalog-cell {
  border: 0;
  border-right: 1px solid rgba(200,166,66,.2);
  border-bottom: 1px solid rgba(200,166,66,.2);
  background: rgba(255,255,255,.35);
  min-height: 108px;
  padding: 12px 8px 10px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  color: #1a140c;
}
.sf-mobile-catalog-cell:nth-child(3n) { border-right: 0; }
.sf-mobile-catalog-cell-ico,
.sf-mobile-catalog-row-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(200,166,66,.35);
  background: #efe6d3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.sf-mobile-catalog-cell strong {
  font: 600 10px/1.12 "Cormorant SC", Georgia, serif;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  text-align: center;
}
.sf-mobile-catalog-cell span:last-child {
  font-size: 15px;
  color: #8f7442;
  font-family: "Cormorant Garamond", Georgia, serif;
}
.sf-mobile-catalog-list {
  border-top: 1px solid rgba(200,166,66,.22);
  border-bottom: 1px solid rgba(200,166,66,.22);
}
.sf-mobile-catalog-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid rgba(200,166,66,.16);
  background: rgba(255,255,255,.3);
  color: #1a140c;
  padding: 10px;
  text-align: left;
}
.sf-mobile-catalog-row-main strong {
  display: block;
  font-size: 18px;
  font-family: var(--font);
  line-height: 1.14;
  letter-spacing: 0;
  font-weight: 600;
}
.sf-mobile-catalog-row-main small {
  display: block;
  margin-top: 2px;
  color: #8f7442;
  font-size: 12px;
  font-family: var(--font);
}
.sf-mobile-catalog-row-tail {
  color: rgba(154,123,40,.6);
  font-size: 16px;
}
.sf-mobile-catalog-row-all {
  background: rgba(220,185,92,.12);
}
.sf-mobile-catalog-foot {
  padding: 12px 12px 14px;
  border-top: 1px solid rgba(200,166,66,.22);
  background: #f4efe4;
}
.sf-mobile-catalog-cta {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(200,166,66,.62);
  border-radius: 4px;
  background: #c8a642;
  color: #161107;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font: 700 11px/1 "Cormorant SC", Georgia, serif;
  letter-spacing: 2.9px;
  text-transform: uppercase;
}
body.sf-mobile-catalog-open { overflow: hidden; }

/* Mobile header: search overlay + right drawer */
.sf-mobile-actions,
.sf-mobile-search,
.sf-mobile-drawer {
  display: none;
}

@media (max-width: 960px) {
  .sf-search,
  .sf-menu,
  .sf-authbox {
    display: none !important;
  }

  .sf-mobile-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sf-mobile-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border2);
    background: var(--bg3);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }

  .sf-mobile-icon-btn-close {
    background: #fff;
  }

  .sf-mobile-search,
  .sf-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 310;
    display: block;
  }

  .sf-mobile-search-backdrop,
  .sf-mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, .34);
    backdrop-filter: blur(2px);
  }

  .sf-mobile-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: #fffdfa;
    border-bottom: 1px solid var(--border);
    padding: 12px 12px 10px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
  }

  body.sf-mobile-search-open .sf-mobile-search-panel {
    transform: translateY(0);
    opacity: 1;
  }

  .sf-mobile-search-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
  }

  #sf-mobile-search-input {
    width: 100%;
    min-width: 0;
    height: 40px;
    border-radius: 10px;
    background: #fff;
  }

  .sf-mobile-search-results {
    margin-top: 10px;
    max-height: min(58vh, 440px);
    overflow: auto;
    display: grid;
    gap: 6px;
  }

  .sf-mobile-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
  }

  .sf-mobile-search-item b {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
  }

  .sf-mobile-search-item span {
    font-size: 13px;
    color: var(--text2);
    white-space: nowrap;
  }

  .sf-mobile-search-empty {
    margin: 6px 0 2px;
    color: var(--text3);
    font-size: 13px;
    padding: 4px;
  }

  .sf-mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(86vw, 340px);
    height: 100%;
    background: #fffdfa;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .24s ease;
    padding: 12px;
    overflow: auto;
  }

  body.sf-mobile-drawer-open .sf-mobile-drawer-panel {
    transform: translateX(0);
  }

  .sf-mobile-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .sf-mobile-drawer-head b {
    font-size: 16px;
    letter-spacing: -.01em;
  }

  .sf-mobile-drawer-nav {
    display: grid;
    gap: 6px;
  }

  .sf-mobile-drawer-nav a {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    padding: 11px 12px;
    font-weight: 600;
    font-size: 14px;
  }
}

/* Mobile header fix: hidden overlays must stay hidden on load */
@media (max-width: 960px) {
  .sf-mobile-search.sf-hidden,
  .sf-mobile-drawer.sf-hidden {
    display: none !important;
  }
}


