/* --- Sección de enlaces usuario y carrito --- */
.user-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.user-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

/* Íconos */
.user-links i {
    font-size: 20px;
    margin-bottom: 5px;
}

/* span texto */
.user-links span {
    text-align: center;
}

/* Hover */
.user-links a:hover {
    color: #e48ca1;
}

/* Contador del carrito */
.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -12px;
    background-color: #e48ca1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 6px;
    line-height: 1;
}

/* Responsivo header */
@media (max-width: 768px) {
    .user-links {
        gap: 15px;
    }
    .user-links i {
        font-size: 18px;
    }

body.logged-in .woocommerce form .show-password-input::after {
  margin-top: 32px !important;
  margin-left: 25px !important;
}

.woocommerce form .show-password-input::after {
  margin-top: 15px !important;
  margin-left: 49px !important;
}


}

/* ====== CONTENEDOR LOGIN / REGISTRO ====== */
.woocommerce .u-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 50px;
    background-color: #fff;
    border: 1px solid #f8dce2;
    border-radius: 20px;
    padding: 60px 70px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    max-width: 1200px;
    width: 343% !important;
    margin: 80px auto; /* centrado perfecto */
    margin-left: 28px;
}

/* Columna izquierda (login) y derecha (registro) */
.woocommerce .u-column1,
.woocommerce .u-column2 {
    flex: 1 1 48%;
    background: #fff8f9;
    border-radius: 15px;
    padding: 40px;
    border: 1px solid #f5cdd5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
    min-height: 500px;
}

/* Títulos */
.woocommerce h2 {
    text-align: center;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #4a2b33;
    margin-bottom: 25px;
    border-bottom: 2px solid #f2b9c2;
    padding-bottom: 10px;
}

/* Inputs */
.woocommerce form .form-row input.input-text {
    width: 100%;
    border: 1px solid #f3b6c1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}
.woocommerce form .form-row input.input-text:focus {
    border-color: #e48ca1;
    outline: none;
    box-shadow: 0 0 4px rgba(228, 140, 161, 0.4);
}

/* Checkbox (Recuérdame) */
.woocommerce form .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

/* Botones */
.woocommerce form .button {
    background: linear-gradient(180deg, #ff9fba 0%, #f36f96 100%);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 15px;
    font-family: "Lato", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.woocommerce form .button:hover {
    background: linear-gradient(180deg, #f36f96 0%, #ff9fba 100%);
    box-shadow: 0 4px 10px rgba(228, 140, 161, 0.3);
}

/* Enlaces */
.woocommerce-LostPassword a,
.woocommerce a {
    color: #b74c73;
    text-decoration: none;
}
.woocommerce-LostPassword a:hover,
.woocommerce a:hover {
    text-decoration: underline;
}

/* ====== TEXTOS Y ESTÉTICA ====== */
.woocommerce form p {
    color: #4a2b33;
    font-size: 15px !important;
    line-height: 1.6;
}

.woocommerce p.policy-text {
    font-size: 0.9rem;
    color: #6a2a3b;
    margin-top: 1rem;
    line-height: 1.5;
}

/* ====== RESPONSIVO ====== */
@media (max-width: 1024px) {
    .woocommerce .u-columns {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 49px 57px;
        margin: 40px auto;
        width: 67% !important;
    }

    .woocommerce .u-column1,
    .woocommerce .u-column2 {
        width: 100%;
        min-height: auto;
        padding: 30px;
    }
}

/* ====== Ajuste de separación general ====== */
body.woocommerce-account {
    background: #fff;
    padding-top: 50px;
    padding-bottom: 80px;
}

/* === Mostrar/Ocultar Contraseña WooCommerce === */
.woocommerce form .show-password-input {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.woocommerce form .show-password-input::after {
  content: "\f06e"; /* FontAwesome eye */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 16px;
  color: #e48ca1; /* Rosa principal */
  transition: color 0.3s ease;
  margin-top: 11px;
  margin-left: -20px;
}

.woocommerce form .show-password-input.display-password::after {
  content: "\f070"; /* eye-slash */
  color: #b74c73; /* Rosa oscuro */
}

.woocommerce form .show-password-input:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.woocommerce form .form-row {
  position: relative; /* Necesario para posicionar el icono dentro del campo */
}
