/* ==========================================================================
   SUMMER HEALING HUT — SLIDE-OVER TEA BAG DRAWER & TOAST
   ========================================================================== */
.shh-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 34, 30, 0.42);
  backdrop-filter: blur(2px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.shh-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.shh-bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: #F9F5EE;
  border-left: 1px solid #E3D7C7;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  color: #2C221E;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: -18px 0 48px rgba(44, 34, 30, 0.14);
}

.shh-bag-drawer.is-open {
  transform: translateX(0) !important;
}

.shh-bag-header {
  padding: 22px 24px;
  border-bottom: 1px solid #E3D7C7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shh-bag-header h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  color: #2C221E;
}

.shh-bag-close {
  background: none;
  border: none;
  color: #2C221E;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.shh-bag-close:hover {
  color: #7D4E2D;
  background: rgba(125, 78, 45, 0.08);
}

.shh-shipping-meter {
  padding: 14px 24px;
  background: #FAF6F0;
  border-bottom: 1px solid #E3D7C7;
  font-size: 12.5px;
  color: #2C221E;
}

.shh-shipping-track {
  height: 5px;
  background: #E5D9CA;
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.shh-shipping-fill {
  height: 100%;
  background: #7D4E2D;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.shh-bag-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shh-bag-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #E3D7C7;
}

.shh-bag-thumb {
  width: 68px;
  height: 82px;
  border-radius: 8px;
  overflow: hidden;
  background: #EFE6D8;
  flex-shrink: 0;
}

.shh-bag-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shh-bag-info {
  flex: 1;
}

.shh-bag-info h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 3px;
  line-height: 1.25;
}

.shh-bag-info h4 a {
  color: #2C221E;
  text-decoration: none;
}

.shh-bag-info h4 a:hover {
  color: #7D4E2D;
}

.shh-bag-meta {
  font-size: 11.5px;
  color: #6B5B50;
  margin-bottom: 8px;
}

.shh-bag-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shh-mini-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #E3D7C7;
  border-radius: 4px;
  background: #FAF6F0;
}

.shh-mini-qty button {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: #2C221E;
}

.shh-mini-qty button:hover {
  color: #7D4E2D;
}

.shh-mini-qty span {
  padding: 0 8px;
  font-size: 12px;
}

.shh-bag-footer {
  padding: 20px 24px 26px;
  border-top: 1px solid #E3D7C7;
  background: #FAF6F0;
}

.shh-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.shh-tax-note {
  font-size: 12px;
  color: #6B5B50;
  margin-bottom: 16px;
}

.shh-checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border: 1px solid #7D4E2D;
  border-radius: 6px;
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 500;
  background: #7D4E2D;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.shh-checkout-btn:hover {
  background: #5E381E;
  border-color: #5E381E;
}

/* 按钮加载中微交互 */
.shh-btn-primary.is-adding {
  opacity: 0.72;
  pointer-events: none;
}

.shh-studio-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2C221E;
  color: #F9F5EE;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(44, 34, 30, 0.22);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.shh-studio-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 强制覆盖旧主题抽屉遮挡与隐藏问题 */
#shhGlobalBackdrop {
  z-index: 999990 !important;
}
#shhBagDrawer {
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #F9F5EE !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#shhBagDrawer > * {
  opacity: 1 !important;
  visibility: visible !important;
}
