/* Dropdown menu transitions */

.navbar .dropdown-menu {
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: top;
}

.navbar .dropdown-menu:not(.show) {
  display: block;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.navbar .dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Nested dropdown positioning */

.dropdown-menu .dropdown {
  position: relative;
}

.dropdown-menu .dropdown .dropdown-menu {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 2px;
}

/* Smooth transition for dropdown items */

.dropdown-item {
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Keep parent dropdown open when hovering nested dropdown */

.dropdown-menu .dropdown:hover > .dropdown-menu {
  display: block !important;
}

/* Mobile navbar fixes */

/* Center Categorías dropdown on mobile */

@media (max-width: 991px) {
  .navbar-collapse custom-code {
    display: block;
    text-align: center;
  }
}

@media (max-width: 991px) {
  .navbar-collapse custom-code .navbar-nav {
    justify-content: center;
    margin-bottom: 1rem;
  }
}

/* Reduce spacing between Categorías and Buscar button */

@media (max-width: 991px) {
  .navbar-collapse .d-lg-flex {
    gap: 0;
  }
}

@media (max-width: 991px) {
  .navbar-collapse custom-code .nav-item {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}

/* Registration form inputs */

.pgpc-input {
  background-color: #1a1a1a;
  border: 1px solid #2f2f2f;
  color: rgb(255, 255, 255);
  font-family: Inter, sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pgpc-input::placeholder {
  color: #666666;
}

.pgpc-input:focus {
  background-color: #1a1a1a;
  color: rgb(255, 255, 255);
  border-color: #0569f1;
  box-shadow: 0 0 0 2px rgba(5, 105, 241, 0.25);
}

.pgpc-input.is-invalid {
  border-color: #dc3545;
  box-shadow: none;
}

.pgpc-input.is-invalid:focus {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Password toggle button */

.pgpc-toggle-pass {
  position: absolute;
  right: 10px;
  top: 0;
  height: 42px;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: #969696;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  line-height: 1;
}

.pgpc-toggle-pass:hover {
  color: #cccccc;
}

/* Auth pages full-screen container */

.pgpc-login-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #000000;
  background: linear-gradient(
    135deg,
    rgba(38, 139, 28, 0.3) 0%,
    rgba(23, 48, 146, 0.3) 20%,
    rgba(0, 0, 0, 1) 33%,
    rgba(5, 19, 3, 0.3) 84%,
    rgba(38, 141, 25, 0.1) 99%
  );
}

/* Back button on auth pages */

.pgpc-login-back {
  position: absolute;
  top: 16px;
  left: 2%;
  z-index: 10;
}

/* Social login provider buttons */

.pgpc-login-social {
  position: relative;
  min-height: 1px;
  display: flex;
  justify-content: space-around;
}

.pgpc-login-social > .btn {
  border: 1px solid #212529;
  line-height: normal;
  flex: 1;
  padding: 10px 20px;
}

/* "o" separator line */

.pgpc-o-linea {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  font-family: sans-serif;
}

.pgpc-o-linea span {
  padding: 0 10px;
  font-size: 18px;
  font-weight: 400;
  color: #fffdfd;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.pgpc-o-linea::before,
.pgpc-o-linea::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: #212529;
  margin: 0 2px;
}

/* Dark theme autofill override */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #212529 inset !important;
  -webkit-text-fill-color: white !important;
}

/* 2FA digit input */

.pgpc-digit-input {
  width: 50px;
  height: 50px;
  background-color: #1a1a1a;
  border: 2px solid #2f2f2f;
  color: rgb(255, 255, 255);
  font-family: Inter, sans-serif;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.pgpc-digit-input:focus {
  background-color: #1a1a1a;
  color: rgb(255, 255, 255);
  border-color: #0569f1;
  box-shadow: 0 0 0 2px rgba(5, 105, 241, 0.25);
}

/* Auth page form check styling */

.pgpc-login-container .form-check-input {
  background-color: #1a1a1a;
  border-color: #2f2f2f;
}

.pgpc-login-container .form-check-input:checked {
  background-color: #0569f1;
  border-color: #0569f1;
}

/* Promo badge on product cards */

.pgpc-promo-badge {
  font-family: Play, sans-serif;
  font-size: 11px;
  margin-top: 8px;
  background: linear-gradient(90deg, #0569f1, #05f24c) !important;
  z-index: 2;
}

/* Promo price (the discounted/special price) */

.pgpc-promo-price {
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

/* Original price with strikethrough */

.pgpc-original-price {
  color: #ff7d06;
  font-family: Inter, sans-serif;
  font-size: 11px;
  text-decoration: line-through;
  margin-bottom: 4px;
}

/* Discount percentage chip */

.pgpc-discount-pct {
  display: inline-block;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #bc0a20;
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Product detail promo section */

.pgpc-detail-promo-price {
  font-family: Poppins, sans-serif;
  color: #76b900;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: left;
  margin-bottom: 4px;
}

.pgpc-detail-original-price {
  font-family: Poppins, sans-serif;
  color: #999;
  font-size: 13px;
  letter-spacing: 1px;
  text-align: left;
  text-decoration: line-through;
}

.pgpc-detail-discount-badge {
  display: inline-block;
  background: linear-gradient(90deg, #0569f1, #05f24c);
  color: #fff;
  font-family: Play, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 8px;
  text-decoration: none;
}

