/* ========================================
   MI CUENTA - WRAPPER
======================================== */
.duque-cuenta-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: 'Poppins', sans-serif;
}
.duque-cuenta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 0 0 32px;
}

/* ========================================
   LOGIN / REGISTRO (no logueado)
======================================== */
.duque-cuenta-auth {
    display: flex;
    justify-content: center;
    padding: 40px 0 60px;
}
.duque-auth-card {
    max-width: 460px;
    width: 100%;
    text-align: center;
}
.duque-auth-icon {
    margin-bottom: 20px;
}
.duque-auth-card h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px;
}
.duque-auth-card > p {
    font-size: 14px;
    color: #666;
    margin: 0 0 32px;
}

/* ========================================
   FORMULARIOS LOGIN/REGISTRO
======================================== */
.duque-cuenta-wrapper .woocommerce-form-login,
.duque-cuenta-wrapper .woocommerce-form-register {
    border: 1px solid #eaeaea !important;
    padding: 28px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    text-align: left !important;
}
.duque-cuenta-wrapper .woocommerce form .form-row label {
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #333 !important;
}
.duque-cuenta-wrapper .woocommerce form .form-row input.input-text,
.duque-cuenta-wrapper .woocommerce form .form-row input[type="text"],
.duque-cuenta-wrapper .woocommerce form .form-row input[type="email"],
.duque-cuenta-wrapper .woocommerce form .form-row input[type="password"] {
    width: 100% !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    padding: 12px 14px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    color: #333 !important;
    background: #fff !important;
    transition: border-color 0.2s !important;
}
.duque-cuenta-wrapper .woocommerce form .form-row input:focus {
    border-color: #000 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Botones de login/registro */
.duque-cuenta-wrapper .woocommerce button.woocommerce-button,
.duque-cuenta-wrapper .woocommerce .button,
.duque-cuenta-wrapper .woocommerce button[type="submit"] {
    background: #000 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 14px 28px !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    width: 100% !important;
}
.duque-cuenta-wrapper .woocommerce button:hover,
.duque-cuenta-wrapper .woocommerce .button:hover {
    background: #333 !important;
}

/* Links */
.duque-cuenta-wrapper .woocommerce-LostPassword a,
.duque-cuenta-wrapper a {
    color: #000 !important;
    text-decoration: underline !important;
    font-size: 13px !important;
}
.duque-cuenta-wrapper .woocommerce-LostPassword {
    margin-top: 12px !important;
}

/* Checkbox remember */
.duque-cuenta-wrapper .woocommerce-form__label-for-checkbox {
    font-size: 13px !important;
    color: #555 !important;
}

/* ========================================
   DASHBOARD (logueado) - NAVEGACIÓN
======================================== */
.duque-cuenta-wrapper .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin-bottom: 32px !important;
    border-bottom: 2px solid #000 !important;
    padding-bottom: 0 !important;
}
.duque-cuenta-wrapper .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    display: flex !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
}
.duque-cuenta-wrapper .woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
}
.duque-cuenta-wrapper .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 12px 20px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #666 !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
    transition: color 0.2s, border-color 0.2s !important;
}
.duque-cuenta-wrapper .woocommerce-MyAccount-navigation ul li a:hover {
    color: #000 !important;
}
.duque-cuenta-wrapper .woocommerce-MyAccount-navigation ul li.is-active a {
    color: #000 !important;
    border-bottom-color: #000 !important;
}

/* Contenido del dashboard */
.duque-cuenta-wrapper .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}
.duque-cuenta-wrapper .woocommerce-MyAccount-content p {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.8 !important;
}

/* ========================================
   TABLAS DE PEDIDOS
======================================== */
.duque-cuenta-wrapper table.woocommerce-orders-table,
.duque-cuenta-wrapper table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-family: 'Poppins', sans-serif !important;
    display: table !important;
}
.duque-cuenta-wrapper table.woocommerce-orders-table thead th,
.duque-cuenta-wrapper table.shop_table thead th {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #999 !important;
    padding: 12px 16px !important;
    border-bottom: 2px solid #000 !important;
    background: transparent !important;
    text-align: left !important;
}
.duque-cuenta-wrapper table.woocommerce-orders-table td,
.duque-cuenta-wrapper table.shop_table td {
    font-size: 13px !important;
    color: #333 !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #eaeaea !important;
    vertical-align: middle !important;
}
.duque-cuenta-wrapper table a.woocommerce-button {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    transition: background 0.2s, color 0.2s !important;
}
.duque-cuenta-wrapper table a.woocommerce-button:hover {
    background: #000 !important;
    color: #fff !important;
}

/* ========================================
   FORMULARIO EDITAR DATOS
======================================== */
.duque-cuenta-wrapper .woocommerce-EditAccountForm .form-row {
    margin-bottom: 16px !important;
}
.duque-cuenta-wrapper .woocommerce-EditAccountForm fieldset {
    border: 1px solid #eaeaea !important;
    padding: 20px !important;
    margin-top: 20px !important;
    border-radius: 0 !important;
}
.duque-cuenta-wrapper .woocommerce-EditAccountForm legend {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #000 !important;
    padding: 0 8px !important;
}

/* ========================================
   DIRECCIONES
======================================== */
.duque-cuenta-wrapper .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
}
.duque-cuenta-wrapper .woocommerce-Address {
    border: 1px solid #eaeaea !important;
    padding: 24px !important;
}
.duque-cuenta-wrapper .woocommerce-Address-title h3 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #000 !important;
    margin: 0 0 12px !important;
}
.duque-cuenta-wrapper .woocommerce-Address-title a {
    font-size: 12px !important;
    color: #000 !important;
}
.duque-cuenta-wrapper .woocommerce-Address address {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1.8 !important;
    font-style: normal !important;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .duque-cuenta-wrapper .woocommerce-MyAccount-navigation ul {
        flex-direction: column !important;
    }
    .duque-cuenta-wrapper .woocommerce-MyAccount-navigation ul li a {
        border-bottom: 1px solid #f0f0f0 !important;
        margin-bottom: 0 !important;
        padding: 14px 16px !important;
    }
    .duque-cuenta-wrapper .woocommerce-MyAccount-navigation ul li.is-active a {
        background: #f9f9f9 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        border-left: 2px solid #000 !important;
    }
    .duque-cuenta-wrapper .woocommerce-MyAccount-navigation {
        border-bottom: none !important;
    }
    .duque-cuenta-wrapper .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
    }
    .duque-auth-card {
        padding: 0 20px !important;
    }
    /* Tabla pedidos scroll horizontal */
    .duque-cuenta-wrapper table.woocommerce-orders-table {
        display: block !important;
        overflow-x: auto !important;
    }
}
