/**
 * Premium store sidebar shell — ash/forest glass drawer
 * Used on general shop / cart / checkout / product with floating glass nav.
 */
.store-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 2990;
  background: rgba(18, 24, 20, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.store-sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.store-sidebar.sg-store-sidebar-shell,
.sg-store-sidebar-shell.store-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 86vw);
  z-index: 3000;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 249, 0.98) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-right: 1px solid rgba(28, 36, 32, 0.08);
  box-shadow: 12px 0 48px rgba(15, 23, 42, 0.14);
  transform: translate3d(-104%, 0, 0);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #1c2420;
}
.store-sidebar.sg-store-sidebar-shell.open {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}
.store-sidebar.sg-store-sidebar-shell.show-categories,
.store-sidebar.sg-store-sidebar-shell.show-contact {
  width: min(400px, 94vw);
}

.sg-store-sidebar-shell .store-sidebar-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.sg-store-sidebar-shell .store-sidebar-panel-categories,
.sg-store-sidebar-shell .store-sidebar-panel-contact {
  display: none;
}
.sg-store-sidebar-shell.show-categories .store-sidebar-panel-menu { display: none; }
.sg-store-sidebar-shell.show-categories .store-sidebar-panel-categories { display: flex; }
.sg-store-sidebar-shell.show-contact .store-sidebar-panel-menu { display: none; }
.sg-store-sidebar-shell.show-contact .store-sidebar-panel-contact { display: flex; }

.sg-sb-announcement {
  padding: 0.65rem 1.15rem;
  background: #1c2420;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.sg-store-sidebar-shell .store-sidebar-header {
  position: relative;
  padding: 1.35rem 1.2rem 1.1rem;
  border-bottom: 1px solid rgba(28, 36, 32, 0.07);
}
.sg-store-sidebar-shell .store-sidebar-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 36, 32, 0.06);
  color: #1c2420;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.sg-store-sidebar-shell .store-sidebar-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.sg-store-sidebar-shell .store-sidebar-avatar-initial {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(145deg, #2f6b4f, #1c2420);
  color: #fff;
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
}
.sg-store-sidebar-shell .store-sidebar-name {
  margin: 0 0 0.25rem;
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-right: 2.5rem;
  overflow-wrap: anywhere;
}
.sg-store-sidebar-shell .store-sidebar-subtitle {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sg-store-sidebar-shell .store-sidebar-subtitle i { color: #2f6b4f; }

.sg-store-sidebar-shell .store-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0;
  -webkit-overflow-scrolling: touch;
}
.sg-store-sidebar-shell .store-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.82rem 1.2rem;
  color: #1c2420;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: background 0.18s ease;
}
.sg-store-sidebar-shell .store-sidebar-nav a:hover {
  background: rgba(47, 107, 79, 0.07);
}
.sg-store-sidebar-shell .store-sidebar-nav a i {
  width: 22px;
  text-align: center;
  color: #2f6b4f;
}
.sg-store-sidebar-shell .store-sidebar-nav-divider {
  height: 1px;
  border: 0;
  background: rgba(28, 36, 32, 0.08);
  margin: 0.45rem 1.2rem;
}

.sg-store-sidebar-shell .store-sidebar-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(28, 36, 32, 0.07);
}
.sg-store-sidebar-shell .store-sidebar-powered {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.sg-store-sidebar-shell .store-sidebar-categories-header,
.sg-store-sidebar-shell .store-sidebar-contact-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(28, 36, 32, 0.07);
}
.sg-store-sidebar-shell .store-sidebar-categories-back,
.sg-store-sidebar-shell .store-sidebar-contact-back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 36, 32, 0.06);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.sg-store-sidebar-shell .store-sidebar-categories-title,
.sg-store-sidebar-shell .store-sidebar-contact-title {
  margin: 0;
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sg-store-sidebar-shell .store-sidebar-categories-search {
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid rgba(28, 36, 32, 0.07);
}
.sg-store-sidebar-shell .store-sidebar-categories-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(28, 36, 32, 0.12);
  border-radius: 12px;
  font: inherit;
  outline: none;
}
.sg-store-sidebar-shell .store-sidebar-categories-list {
  overflow-y: auto;
  padding: 0.5rem 0.75rem 1.25rem;
  flex: 1;
}
.sg-store-sidebar-shell .store-sidebar-cat-item {
  display: block;
  width: 100%;
  padding: 0.85rem 0.65rem;
  text-align: left;
  border: 0;
  background: transparent;
  border-bottom: 1px solid rgba(28, 36, 32, 0.06);
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  color: #1c2420;
  text-decoration: none;
  cursor: pointer;
}
.sg-store-sidebar-shell .store-sidebar-cat-item.hide { display: none; }

.sg-store-sidebar-shell .store-sidebar-contact-body {
  overflow-y: auto;
  padding: 1.15rem;
  flex: 1;
}
.sg-store-sidebar-shell .store-sidebar-contact-card {
  background: #f6f8f7;
  border: 1px solid rgba(28, 36, 32, 0.07);
  border-radius: 18px;
  padding: 1.2rem;
}
.sg-store-sidebar-shell .store-sidebar-contact-seller {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(28, 36, 32, 0.07);
}
.sg-store-sidebar-shell .store-sidebar-contact-avatar,
.sg-store-sidebar-shell .store-sidebar-contact-avatar-initial {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
}
.sg-store-sidebar-shell .store-sidebar-contact-avatar { object-fit: cover; }
.sg-store-sidebar-shell .store-sidebar-contact-avatar-initial {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2f6b4f, #1c2420);
  color: #fff;
  font-weight: 800;
}
.sg-store-sidebar-shell .store-sidebar-contact-seller-info h3 {
  margin: 0 0 0.2rem;
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.sg-store-sidebar-shell .store-sidebar-contact-verified {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sg-store-sidebar-shell .store-sidebar-contact-verified i { color: #2f6b4f; }
.sg-store-sidebar-shell .store-sidebar-contact-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 0.65rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}
.sg-store-sidebar-shell .store-sidebar-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 0.15rem;
  color: #1c2420;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.sg-store-sidebar-shell .store-sidebar-contact-row i { color: #2f6b4f; width: 22px; text-align: center; }
.sg-store-sidebar-shell .store-sidebar-contact-row--static { pointer-events: none; }
.sg-store-sidebar-shell .store-sidebar-contact-trust {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(28, 36, 32, 0.07);
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sg-store-sidebar-shell .store-sidebar-contact-trust i { color: #2f6b4f; }
