/* ========================================
   Shop Vertical Dock — Left side auto-hide
   Simulates macOS-style dock, vertical layout
   ======================================== */

/* Hide top nav on shop when dock is active */
body.has-shop-dock .nav,
body.has-shop-dock .mobile-menu {
  display: none !important;
}
body.has-shop-dock .shop-hero {
  padding-top: 80px;
}

/* ======== Dock trigger zone (left edge) ======== */
.shop-dock-trigger {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  z-index: 998;
}

/* ======== Collapsed hint (pink glowing edge bar) ======== */
.shop-dock-hint {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 5px;
  height: 56px;
  border-radius: 0 6px 6px 0;
  background: var(--brand-pink);
  z-index: 997;
  opacity: 0;
  box-shadow: 0 0 12px rgba(232,161,184,0.5), 0 0 24px rgba(232,161,184,0.25);
  transition: opacity 0.3s;
  pointer-events: none;
  /* Entrance: slide in from left after 0.8s, then pulse 2 times, total ~6.3s */
  animation: shopDockHintEntrance 6.3s ease-out 0.8s forwards;
}
@keyframes shopDockHintEntrance {
  /* Slide in */
  0%   { opacity: 0; transform: translateY(-50%) translateX(-10px); }
  6%   { opacity: 0.7; transform: translateY(-50%) translateX(0); }
  /* Pulse 1 */
  16%  { opacity: 0.4; box-shadow: 0 0 8px rgba(232,161,184,0.3); }
  26%  { opacity: 0.85; box-shadow: 0 0 20px rgba(232,161,184,0.7), 0 0 32px rgba(232,161,184,0.35); }
  /* Pulse 2 */
  42%  { opacity: 0.4; box-shadow: 0 0 8px rgba(232,161,184,0.3); }
  52%  { opacity: 0.85; box-shadow: 0 0 20px rgba(232,161,184,0.7), 0 0 32px rgba(232,161,184,0.35); }
  /* Settle to resting state */
  70%  { opacity: 0.5; box-shadow: 0 0 10px rgba(232,161,184,0.4); }
  100% { opacity: 0.45; box-shadow: 0 0 8px rgba(232,161,184,0.35); }
}
.shop-dock-trigger:hover ~ .shop-dock-hint,
.shop-dock:hover ~ .shop-dock-hint {
  opacity: 0;
  animation: none;
}

/* ======== Dock container ======== */
.shop-dock {
  position: fixed;
  top: 50%;
  left: 10px;
  transform: translateY(-50%) translateX(-84px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 22px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
  pointer-events: none;
}

/* Show dock: hover on trigger or dock itself */
.shop-dock-trigger:hover ~ .shop-dock,
.shop-dock:hover,
.shop-dock.shop-dock-visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ======== Dock item (matches main dock: 56px cell) ======== */
.shop-dock-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.shop-dock-item:hover {
  background: rgba(0,0,0,0.05);
  transform: scale(1.1);
}
.shop-dock-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Active indicator dot — LEFT side */
.shop-dock-item.active::after {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-pink);
}

/* ======== Tooltip (appears on right) ======== */
.shop-dock-tooltip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: rgba(245,245,245,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #1a1a1a;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.08);
}
.shop-dock-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: rgba(245,245,245,0.95);
}
.shop-dock-item:hover .shop-dock-tooltip {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ======== Divider ======== */
.shop-dock-divider {
  width: 28px;
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 4px 0;
}

/* ======== Mobile: bottom bar instead ======== */
@media (max-width: 768px) {
  .shop-dock-trigger,
  .shop-dock-hint {
    display: none;
  }
  .shop-dock {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    flex-direction: row;
    justify-content: space-around;
    border-radius: 0;
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
    gap: 0;
    background: rgba(255,255,255,0.92);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-left: none;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
  }
  .shop-dock-item {
    width: 40px;
    height: 40px;
  }
  .shop-dock-item img {
    width: 28px;
    height: 28px;
  }
  .shop-dock-item.active::after {
    left: auto;
    bottom: -4px;
    top: auto;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .shop-dock-tooltip {
    display: none;
  }
  .shop-dock-divider {
    width: 1px;
    height: 28px;
    margin: 0 4px;
  }
  body.has-shop-dock .shop-hero {
    padding-top: 60px;
  }
  body.has-shop-dock .footer {
    padding-bottom: 80px;
  }
  .shop-dock-item.shop-dock-hide-mobile {
    display: none;
  }
}
