/* Shared shop navigation, mobile actions, and account dropdown. */

.shop5-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  width: calc(100% - 4rem);
  max-width: calc(1280px - 4rem);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  box-sizing: border-box;
}

.shop5-nav-left,
.shop5-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.shop5-nav-left {
  min-width: 0;
}

.shop5-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  color: #f5e6a0;
  text-decoration: none;
  flex-shrink: 0;
}

.shop5-brand-main {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.shop5-brand-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 0.58rem;
  color: #9A7EB0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.shop5-nav-primary {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.shop5-nav-link {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9A7EB0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.shop5-nav-link:hover,
.shop5-nav-link.active {
  color: #d4af37;
}

.shop5-nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
}

.shop5-nav-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.shop5-cart-badge {
  position: absolute;
  top: -8px;
  right: -14px;
  background: #d4af37;
  color: #0d1117;
  font-family: 'Poppins', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop5-hidden {
  display: none !important;
}

.shop5-nav-user {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  color: #e0d8ec;
  line-height: 1.45;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
  text-align: center;
}

.shop5-nav-right .shop5-nav-link {
  cursor: pointer;
}

.shop5-mobile-actions {
  display: none;
}

.shop5-login-dropdown-wrapper {
  position: relative;
}

.shop5-login-trigger {
  background: none;
  border: none;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9A7EB0;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
  line-height: 1;
}

.shop5-login-trigger:hover,
.shop5-login-trigger[aria-expanded="true"] {
  color: #d4af37;
}

.shop5-login-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: -1rem;
  width: 288px;
  padding: 1.6rem;
  background: #06040e;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.04) inset,
    0 28px 70px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(212, 175, 55, 0.05);
  backdrop-filter: blur(24px);
  z-index: 600;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
  background-image:
    linear-gradient(#d4af37, #d4af37), linear-gradient(#d4af37, #d4af37),
    linear-gradient(#d4af37, #d4af37), linear-gradient(#d4af37, #d4af37),
    linear-gradient(#d4af37, #d4af37), linear-gradient(#d4af37, #d4af37),
    linear-gradient(#d4af37, #d4af37), linear-gradient(#d4af37, #d4af37);
  background-repeat: no-repeat;
  background-size:
    16px 1px, 1px 16px,
    16px 1px, 1px 16px,
    16px 1px, 1px 16px,
    16px 1px, 1px 16px;
  background-position:
    0 0, 0 0, 100% 0, 100% 0,
    0 100%, 0 100%, 100% 100%, 100% 100%;
}

.shop5-login-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 1.4rem;
  width: 8px;
  height: 8px;
  background: #06040e;
  border-left: 1px solid rgba(212, 175, 55, 0.28);
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  transform: rotate(45deg);
}

.shop5-login-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.shop5-login-dropdown-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #d4af37;
  text-align: center;
  margin: 0 0 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  position: relative;
}

.shop5-login-dropdown-title::after {
  content: '';
  position: absolute;
  bottom: -0.3rem;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 0.55rem;
  height: 0.55rem;
  background: #06040e;
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.shop5-login-field {
  margin-bottom: 1rem;
}

.shop5-login-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  color: #e0d8ec;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  padding: 0.5rem 0.1rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}

.shop5-login-field input::placeholder {
  color: #2e2240;
}

.shop5-login-field input:focus {
  border-bottom-color: #d4af37;
  box-shadow: 0 1px 0 rgba(212, 175, 55, 0.4);
}

.shop5-login-error {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  color: #ff4d4d;
  margin-bottom: 0.6rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.shop5-login-submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #d4af37, #f5e6a0);
  color: #0d1117;
  border: none;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.shop5-login-submit-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.shop5-login-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.shop5-login-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(13, 17, 23, 0.25);
  border-left-color: #0d1117;
  border-radius: 50%;
  animation: shop5-dspin 0.7s linear infinite;
  display: none;
  flex-shrink: 0;
}

.shop5-login-submit-btn.loading .shop5-login-spinner { display: block; }
.shop5-login-submit-btn.loading .btn-text { display: none; }

@keyframes shop5-dspin {
  to { transform: rotate(360deg); }
}

.shop5-login-dropdown-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1.1rem;
}

.shop5-login-dropdown-links a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.67rem;
  color: #3d2f52;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.shop5-login-dropdown-links a:hover {
  color: #9A7EB0;
}

.shop5-account-links {
  display: grid;
  gap: 0.55rem;
}

.shop5-account-links a {
  display: block;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.16);
  color: #e0d8ec;
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.shop5-account-links a:hover {
  border-color: rgba(0, 229, 255, 0.35);
  color: #00e5ff;
}

@media (max-width: 768px) {
  .shop5-nav {
    width: calc(100% - 2rem);
    max-width: none;
    padding: 0.65rem 0.8rem;
    gap: 0.7rem;
  }

  .shop5-nav-right {
    display: none;
  }

  .shop5-nav-left {
    flex: 0 1 auto;
    padding-right: 7rem;
  }

  .shop5-brand-main {
    font-size: 0.78rem;
  }

  .shop5-brand-sub {
    font-size: 0.5rem;
  }

  .shop5-nav-primary {
    display: none;
  }

  .shop5-nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .shop5-login-trigger {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 0;
    letter-spacing: 0;
  }

  .shop5-login-trigger::before {
    content: '';
    width: 1.15rem;
    height: 1.15rem;
    display: block;
    background:
      radial-gradient(circle at 50% 32%, currentColor 0 18%, transparent 19%),
      radial-gradient(ellipse at 50% 82%, currentColor 0 34%, transparent 35%);
  }

  .shop5-nav-cart {
    min-width: 2rem;
    justify-content: center;
    color: #d4af37;
  }

  .shop5-mobile-actions {
    position: fixed;
    top: 0.62rem;
    right: 1rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .shop5-mobile-action {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    text-decoration: none;
  }

  .shop5-mobile-action.active,
  .shop5-mobile-action:hover {
    color: #f5e6a0;
  }

  .shop5-mobile-account-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
    background:
      radial-gradient(circle at 50% 32%, currentColor 0 18%, transparent 19%),
      radial-gradient(ellipse at 50% 82%, currentColor 0 34%, transparent 35%);
  }

  .shop5-nav-icon {
    width: 1.2rem;
    height: 1.2rem;
  }

  .shop5-login-dropdown {
    position: fixed;
    top: 58px;
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .shop5-login-dropdown::before {
    display: none;
  }
}
